configure.ac
1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
AC_PREREQ([2.68])
AC_INIT([mod_entropy], [0.1.0], [Georg Hopp <georg@steffers.org])
LT_INIT
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([mod_entropy.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
#AM_SILENT_RULES([yes])
AC_COPYRIGHT([Copyright © 2012 Georg Hopp])
AC_REVISION([$Revision: 0.01 $])
# Checks for programs.
AC_PROG_CC
AM_PROG_LIBTOOL
# Checks for libraries.
AC_CHECK_LIB([m], [log])
AC_CHECK_LIB([rt], [clock_gettime])
AC_CHECK_LIB([aprutil], [apr_palloc])
# apache apxs
AC_SUBST(APXS)
AC_CHECK_PROGS(APXS, apxs)
if test -z "$APXS"; then
AC_MSG_ERROR([[apxs missing]])
fi
# apache include dir
AC_SUBST(AP_INCLUDE)
AC_MSG_CHECKING(apache include directory)
AP_INCLUDE=$(${APXS} -q INCLUDEDIR)
AC_MSG_RESULT($AP_INCLUDE)
# apr-1
AC_SUBST(APR1)
AC_CHECK_PROGS(APR1, apr-1-config)
# apr-1 include dir
AC_SUBST(APR_INCLUDE)
AC_MSG_CHECKING(apr-1 include directory)
APR_INCLUDE=$(${APR1} --includedir)
AC_MSG_RESULT($APR_INCLUDE)
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h sys/ioctl.h linux/random.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([clock_gettime memset])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT