Revision 26030,
1.5 KB
checked in by achernya, 11 years ago
(diff) |
In locker:
* Convert to dh7
* Update build system to use automake
* Provide a pkg-config file
* Switch from pioctl to k_pioctl
* Don't build for squeeze and lucid, OpenAFS 1.4 is too old
|
Line | |
---|
1 | # -*- Autoconf -*- |
---|
2 | # Process this file with autoconf to produce a configure script. |
---|
3 | |
---|
4 | AC_PREREQ([2.65]) |
---|
5 | AC_INIT([liblocker], [10.1], [debathena@mit.edu]) |
---|
6 | AM_INIT_AUTOMAKE([foreign -Wall]) |
---|
7 | AM_MAINTAINER_MODE([enable]) |
---|
8 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
---|
9 | AC_CONFIG_MACRO_DIR([m4]) |
---|
10 | AC_CONFIG_SRCDIR([src/afs.c]) |
---|
11 | AC_CONFIG_HEADERS([config.h]) |
---|
12 | |
---|
13 | # Checks for programs. |
---|
14 | AC_PROG_CC |
---|
15 | # automake 1.12 seems to require this, but automake 1.11 doesn't recognize it |
---|
16 | m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) |
---|
17 | LT_INIT |
---|
18 | |
---|
19 | # Checks for libraries. |
---|
20 | RRA_LIB_KRB5 |
---|
21 | RRA_LIB_KAFS |
---|
22 | |
---|
23 | # Checks for header files. |
---|
24 | AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stddef.h stdlib.h string.h sys/mount.h sys/param.h sys/socket.h unistd.h]) |
---|
25 | |
---|
26 | # Checks for typedefs, structures, and compiler characteristics. |
---|
27 | AC_TYPE_UID_T |
---|
28 | AC_TYPE_MODE_T |
---|
29 | AC_TYPE_PID_T |
---|
30 | AC_TYPE_SIZE_T |
---|
31 | |
---|
32 | # Checks for library functions. |
---|
33 | AC_FUNC_FORK |
---|
34 | AC_FUNC_GETGROUPS |
---|
35 | AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK |
---|
36 | AC_FUNC_MALLOC |
---|
37 | AC_FUNC_REALLOC |
---|
38 | AC_CHECK_FUNCS([alarm dup2 ftruncate getcwd gethostbyaddr gethostbyname inet_ntoa memmove memset mkdir regcomp rmdir strchr strcspn strdup strerror strncasecmp strrchr strtol strtoul uname]) |
---|
39 | |
---|
40 | # More stuff |
---|
41 | PKG_CHECK_MODULES([HESIOD], [hesiod]) |
---|
42 | AC_SUBST([HESIOD_CFLAGS]) |
---|
43 | AC_SUBST([HESIOD_LIBS]) |
---|
44 | PKG_CHECK_MODULES([ZEPHYR], [zephyr]) |
---|
45 | AC_SUBST([ZEPHYR_CFLAGS]) |
---|
46 | AC_SUBST([ZEPHYR_LIBS]) |
---|
47 | |
---|
48 | AC_CONFIG_FILES([Makefile |
---|
49 | src/Makefile |
---|
50 | src/liblocker.pc |
---|
51 | man/Makefile |
---|
52 | ]) |
---|
53 | AC_OUTPUT |
---|
Note: See
TracBrowser
for help on using the repository browser.