blob: c5ad38ba2f4dfd4b549d8e88c9c7f0292489e0d5 (
plain)
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
60
|
AC_PREREQ([2.69])
AC_INIT
AC_CONFIG_SRCDIR([rlm_ippool.c])
AC_REVISION($Revision$)
FR_INIT_MODULE([rlm_ippool])
FR_MODULE_START_TESTS
AC_PROG_CC
AC_PROG_CPP
FR_SMART_CHECK_INCLUDE(gdbm.h)
FR_SMART_CHECK_LIB(gdbm, gdbm_open)
if test "x$ac_cv_lib_gdbm_gdbm_open" != "xyes"; then
FR_MODULE_FAIL([libgdbm])
else
AC_MSG_CHECKING(to see GDBM_SYNC status)
AC_EGREP_CPP(found-gdbm-sync, [
#include <gdbm.h>
#ifdef GDBM_SYNC
found-gdbm-sync!
#else
not found. This version must use sync by default.
#endif
], [
AC_DEFINE(NEED_GDBM_SYNC, yes, [do we need GDBM_SYNC])
AC_MSG_RESULT(needs it.)
], [
AC_MSG_RESULT(SYNCs by default.)
]
)
fi
old_LIBS=$LIBS
LIBS="$LIBS $SMART_LIBS"
AC_CHECK_FUNC(gdbm_fdesc)
if test "x$ac_cv_func_gdbm_fdesc" = "xyes";
then
AC_DEFINE(HAVE_GDBM_FDESC, [], [do we have gdbm_fdesc])
fi
LIBS=$old_LIBS
FR_MODULE_END_TESTS
FR_MODULE_TEST_PASS_DO([
ippool_utils="rlm_ippool_tool"
ippool_install="rlm_ippool_install"
])
mod_ldflags="$SMART_LIBS"
mod_cflags="$SMART_CPPFLAGS"
AC_SUBST(mod_ldflags)
AC_SUBST(mod_cflags)
AC_SUBST(ippool_utils)
AC_SUBST(ippool_install)
AC_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([all.mk])
AC_OUTPUT
|