2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([OpenBSM], [1.0a10], [trustedbsd-audit@TrustesdBSD.org],[openbsm])
6 AC_REVISION([$P4: //depot/projects/trustedbsd/openbsm/configure.ac#29 $])
7 AC_CONFIG_SRCDIR([bin/auditreduce/auditreduce.c])
8 AC_CONFIG_AUX_DIR(config)
9 AC_CONFIG_HEADER([config/config.h])
12 # Checks for programs.
17 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
19 AC_SEARCH_LIBS(dlsym, dl)
20 AC_SEARCH_LIBS(clock_gettime, rt)
22 # Checks for header files.
25 AC_CHECK_HEADERS([endian.h mach/mach.h machine/endian.h sys/endian.h])
27 # Checks for typedefs, structures, and compiler characteristics.
32 AC_CHECK_MEMBERS([struct stat.st_rdev])
34 AC_CHECK_MEMBER([struct ipc_perm.__key],
35 [AC_DEFINE(HAVE_IPC_PERM___KEY,, Define if ipc_perm.__key instead of key)],
37 #include <sys/types.h>
41 AC_CHECK_MEMBER([struct ipc_perm.__seq],
42 [AC_DEFINE(HAVE_IPC_PERM___SEQ,, Define if ipc_perm.__seq instead of seq)],
44 #include <sys/types.h>
51 # Checks for library functions.
59 AC_CHECK_FUNCS([bzero clock_gettime ftruncate gettimeofday inet_ntoa memset strchr strerror strrchr strstr strtol strtoul])
61 # sys/queue.h exists on most systems, but its capabilities vary a great deal.
62 # test for LIST_FIRST and TAILQ_FOREACH_SAFE, which appears to not exist in
63 # all of them, and are necessary for OpenBSM.
65 #include <sys/queue.h>
69 #error LIST_FIRST missing
71 #ifndef TAILQ_FOREACH_SAFE
72 #error TAILQ_FOREACH_SAFE
75 AC_DEFINE(HAVE_FULL_QUEUE_H,, Define if queue.h includes LIST_FIRST)
78 # Systems may not define key audit system calls, in which case libbsm cannot
79 # depend on them or it will generate link-time or run-time errors. Test for
84 extern int auditon(int, void *, int);
88 err = auditon(0, NULL, 0);
90 AC_DEFINE(HAVE_AUDIT_SYSCALLS,, Define if audit system calls present)
91 have_audit_syscalls=true
93 have_audit_syscalls=false
95 AM_CONDITIONAL(HAVE_AUDIT_SYSCALLS, $have_audit_syscalls)
97 AC_CONFIG_FILES([Makefile
101 bin/auditfilterd/Makefile
102 bin/auditreduce/Makefile
107 modules/auditfilter_noop/Makefile