1 dnl #############################################################
3 dnl # For information about autoconf, see:
5 dnl # http://www.gnu.org/software/autoconf/
7 dnl # The recommended order is:
10 dnl # 0. checks for compiler, libtool, and command line options
11 dnl # 1. checks for programs
12 dnl # 2. checks for libraries
13 dnl # 3. checks for header files
14 dnl # 4. checks for typedefs
15 dnl # 5. checks for structures and functions
16 dnl # 6. checks for compiler characteristics
17 dnl # 7. checks for library functions
18 dnl # 8. checks for system services
19 dnl # AC_OUTPUT([file...])
21 dnl #############################################################
23 AC_INIT(src/main/radiusd.c)
24 AC_CONFIG_HEADER(src/include/autoconf.h)
25 AC_REVISION($Revision$)dnl
27 dnl # The version of the software
28 RADIUSD_MAJOR_VERSION=1
29 RADIUSD_MINOR_VERSION=1.0-pre0
30 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
32 dnl #############################################################
34 dnl # 0. Checks for compiler, libtool, and command line options.
36 dnl #############################################################
40 AC_PROG_GCC_TRADITIONAL
44 abs_top_builddir=`pwd`
45 AC_SUBST(abs_top_builddir)
47 dnl # autoconf 2.50 and later
48 dnl # AC_SYS_LARGEFILE
53 dnl # check for AIX, to allow us to use some BSD functions
54 dnl # must be before macros that call the compiler.
59 AC_CHECK_PROG(GMAKE, gmake, yes, no)
60 if test $GMAKE = no; then
61 AC_PATH_PROG(MAKE, make, /usr/local/bin/make)
63 AC_PATH_PROG(MAKE, gmake, /usr/local/gnu/bin/make)
65 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
66 if test -z "$makever"; then
67 AC_MSG_ERROR(GNU Make is not installed. Please download and install it
68 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing.)
71 dnl libltdl is installable
72 AC_LIBLTDL_INSTALLABLE
74 dnl use system-wide libtool, if it exists
75 AC_ARG_WITH(system-libtool,
76 [ --with-system-libtool try to use libtool installed in your system [default=use our own]],
77 [ AC_PATH_PROG(LIBTOOL, libtool,,$PATH:/usr/local/bin) ],
79 LIBTOOL="`pwd`/libtool"
81 dnl ensure that we're looking for dlopen
84 dnl Figure out how to build shared libraries
89 dnl Put this in later, when all distributed modules use autoconf.
90 dnl AC_ARG_WITH(disablemodulefoo,
91 dnl [ --without-rlm_foo Disables module compilation. Module list:]
92 dnl esyscmd([find src/modules -type d -name rlm_\* -print |\
93 dnl sed -e 's%src/modules/.*/% (sub)- %; s%.*/%- %' |\
94 dnl awk '{print " "$0}']))
96 AC_ARG_ENABLE(strict-dependencies,
97 [ --enable-strict-dependencies Fail configure on lack of module dependancy.])
99 dnl extra argument: --with-logdir
100 logdir='${localstatedir}/log/radius'
101 AC_MSG_CHECKING(logdir)
103 [ --with-logdir=DIR Directory for logfiles [LOCALSTATEDIR/log/radius] ],
106 AC_MSG_ERROR(Need logdir)
116 AC_MSG_RESULT($logdir)
118 dnl extra argument: --with-radacctdir
119 radacctdir='${logdir}/radacct'
120 AC_MSG_CHECKING(radacctdir)
121 AC_ARG_WITH(radacctdir,
122 [ --with-radacctdir=PATH Directory for detail files [LOGDIR/radacct] ],
125 AC_MSG_ERROR(Need radacctdir)
130 radacctdir="$withval"
135 AC_MSG_RESULT($radacctdir)
137 dnl extra argument: --with-raddbdir
138 raddbdir='${sysconfdir}/raddb'
139 AC_MSG_CHECKING(raddbdir)
140 AC_ARG_WITH(raddbdir,
141 [ --with-raddbdir=DIR Directory for config files [SYSCONFDIR/raddb] ],
144 AC_MSG_ERROR(Need raddbdir)
154 AC_MSG_RESULT($raddbdir)
156 dnl extra argument: --with-ascend-binary
158 AC_ARG_WITH(ascend-binary,
159 [ --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)],
167 if test "X$ASCEND_BINARY" = "Xyes"; then
168 AC_DEFINE(ASCEND_BINARY)
171 dnl extra argument: --with-threads
174 [ --with-threads Use threads, if available. (default=yes) ],
183 dnl extra argument: --with-snmp
186 [ --with-snmp Compile in SNMP support. (default=yes)],
195 dnl extra argument: --with-large-files
196 rad_enable_largefiles=no
197 AC_ARG_WITH(large-files,
198 [ --with-large-files Compile in large (2G+) file support. (default=no)],
201 rad_enable_largefiles=yes
209 dnl AC_ARG_ENABLE(ltdl-install,
210 dnl [ --disable-ltdl-install do not install libltdl])
211 dnl if test x"${enable_ltdl_install+set}" != xset; then
212 dnl enable_ltdl_install=yes
213 dnl ac_configure_args="$ac_configure_args --enable-ltdl-install"
215 dnl AC_CONFIG_SUBDIRS(libltdl)
218 dnl # Allow the user to specify a list of modules to be linked
219 dnl # statically to the server.
222 AC_ARG_WITH(static_modules,
223 [ --with-static-modules=QUOTED-MODULE-LIST],[
224 for i in $withval; do
225 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
230 dnl # Enable developer C compiler warnings
232 AC_ARG_ENABLE(developer,
233 [ --enable-developer Enables features of interest to developers.],
234 [ case "$enableval" in
243 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
244 dnl turn on the developer flag when taken from a CVS checkout (not a release)
248 dnl extra argument: --with-experimental-modules
250 AC_ARG_WITH(experimental-modules,
251 [ --with-experimental-modules Use experimental and unstable modules. (default=no) ],
261 dnl # extra argument: --openssl-includes=dir
263 AC_ARG_WITH(openssl-includes,
264 [ --with-openssl-includes=DIR Directory to look for OpenSSL include files],
266 *) OPENSSL_INCLUDE="$withval"
270 AC_SUBST(OPENSSL_INCLUDE)
273 dnl # extra argument: --openssl-libraries=dir
275 AC_ARG_WITH(openssl-libraries,
276 [ --with-openssl-libraries=DIR Directory to look for OpenSSL library files],
278 *) OPENSSL_LIBS="$withval"
282 AC_SUBST(OPENSSL_LIBS)
286 dnl # These next two arguments don't actually do anything. They're
287 dnl # place holders so that the top-level configure script can tell
288 dnl # the user how to configure lower-level modules
292 dnl # extra argument: --with-rlm-FOO-lib-dir
294 AC_ARG_WITH(rlm-FOO-lib-dir,
295 [ --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO],
303 dnl # extra argument: --with-rlm-FOO-include-dir
305 AC_ARG_WITH(rlm-FOO-include-dir,
306 [ --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO],
313 dnl See what include-style is used by the make program.
314 dnl AC_MSG_CHECKING(include style for make)
315 dnl echo "include /dev/null" > testmake.$$
316 dnl echo "all:" >> testmake.$$
317 dnl make -f testmake.$$ >/dev/null 2>&1
326 dnl rm -f testmake.$$
327 dnl AC_MSG_RESULT(" $INCLUDE")
328 dnl AC_SUBST(INCLUDE)
331 dnl extra argument: --with-udpfromto
333 AC_ARG_WITH(udpfromto,
334 [ --with-udpfromto Compile in UDPFROMTO support. (default=no)],
344 if test "x$WITH_UDPFROMTO" = "xyes"; then
345 AC_DEFINE(WITH_UDPFROMTO)
348 dnl #############################################################
350 dnl # 1. Checks for programs
352 dnl #############################################################
355 AC_PATH_PROG(PERL, perl, /usr/local/bin/perl)
356 if test "x$ac_cv_path_PERL" = "x"; then
357 AC_MSG_WARN(perl not found - Simultaneous-Use and checkrad.pl may not work)
359 AC_PATH_PROG(SNMPGET, snmpget)
360 if test "x$ac_cv_path_SNMPGET" = "x"; then
361 AC_MSG_WARN(snmpget not found - Simultaneous-Use and checkrad.pl may not work)
364 AC_PATH_PROG(SNMPWALK, snmpwalk)
365 if test "x$ac_cv_path_SNMPWALK" = "x"; then
366 AC_MSG_WARN(snmpwalk not found - Simultaneous-Use and checkrad.pl may not work)
369 AC_PATH_PROG(RUSERS, rusers, /usr/bin/rusers)
371 dnl FIXME This is truly gross.
372 missing_dir=`cd $ac_aux_dir && pwd`
373 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
374 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
375 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
377 AC_PATH_PROG(LOCATE,locate)
378 AC_PATH_PROG(DIRNAME,dirname)
379 AC_PATH_PROG(GREP,grep)
381 dnl #############################################################
383 dnl # 2. Checks for libraries
385 dnl #############################################################
387 dnl If using pthreads, check for -lpthread (posix) or -lc_r (*BSD)
389 if test "x$WITH_THREADS" = "xyes"; then
390 if test $ac_cv_prog_suncc = "yes"; then
394 AC_CHECK_HEADERS(pthread.h, [], [ WITH_THREADS="no" ])
397 dnl # pthread stuff is usually in -lpthread
398 dnl # or in -lc_r, on *BSD
400 dnl # On Some systems, we need extra pre-processor flags, to get them to
401 dnl # to do the threading properly.
403 AC_CHECK_LIB(pthread, pthread_create,
404 [ CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
405 LIBS="$LIBS -lpthread" ],
406 AC_CHECK_LIB(c_r, pthread_create,
407 [ CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE" ],
408 [ WITH_THREADS="no" ]
414 dnl # If we have NO pthread libraries, remove any knowledge of threads.
416 if test "x$WITH_THREADS" != "xyes"; then
418 ac_cv_header_pthread_h="no"
422 dnl # We need sem_init() and friends, as they're the friendliest
423 dnl # semaphore functions for threading.
425 dnl # HP/UX requires linking with librt, too, to get the sem_* symbols.
426 dnl # Some systems have them in -lsem
427 dnl # Solaris has them in -lposix4
429 AC_SEARCH_LIBS(sem_init, pthread sem posix4 rt,
431 [AC_MSG_ERROR(-lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz)]
435 dnl Check if we need -lsocket
436 AC_CHECK_LIB(socket, getsockname)
438 dnl Check for -lresolv
439 dnl This library may be needed later.
440 AC_CHECK_LIB(resolv, inet_aton)
442 dnl Check if we need -lnsl. Usually if we want to
443 dnl link against -lsocket we need to include -lnsl as well.
444 AC_CHECK_LIB(nsl, inet_ntoa)
446 dnl #############################################################
448 dnl # 3. Checks for header files
450 dnl #############################################################
453 dnl # Interix requires us to set -D_ALL_SOURCE, otherwise
454 dnl # getopt will be #included, but won't link. <sigh>
459 CFLAGS="$CFLAGS -D_ALL_SOURCE"
500 AC_CHECK_HEADER(regex.h, AC_DEFINE(HAVE_REGEX_H))
501 if test "x$ac_cv_header_regex_h" = "xyes"; then
509 ], [AC_DEFINE(HAVE_REG_EXTENDED) REGEX_EXTENDED=yes])
512 AC_SUBST(REGEX_EXTENDED)
515 dnl # other checks which require headers
517 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
522 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
527 smart_try_dir="$OPENSSL_INCLUDE"
528 dnl # stupid RedHat shit
529 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
530 AC_SMART_CHECK_INCLUDE(openssl/ssl.h)
531 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
532 AC_DEFINE(HAVE_OPENSSL_SSL_H)
533 old_CPPFLAGS="$CPPFLAGS"
534 if test "x$OPENSSL_INCLUDE" != "x"; then
535 CPPFLAGS="-I$OPENSSL_INCLUDE $CPPFLAGS"
543 CPPFLAGS="$old_CPPFLAGS"
545 AC_MSG_CHECKING([for OpenSSL version >= 0.9.7])
546 old_CPPFLAGS=$CPPFLAGS
547 if test "x$OPENSSL_INCLUDE" != "x"; then
548 CPPFLAGS="-I$OPENSSL_INCLUDE"
551 [#include <openssl/crypto.h>
552 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
556 if test "x$goodssl" != "xyes"; then
563 # Look for the OpenSSL libraries.
564 smart_try_dir=$OPENSSL_LIBS
565 AC_SMART_CHECK_LIB(crypto, DH_new)
566 if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
567 AC_SMART_CHECK_LIB(ssl, SSL_new)
568 if test "x$ac_cv_lib_ssl_SSL_new" != "xyes"; then
572 export OPENSSL_INCLUDE OPENSSL_LIBS
575 CPPFLAGS=$old_CPPFLAGS
578 dnl #############################################################
580 dnl # 4. Checks for typedefs
582 dnl #############################################################
585 dnl # Ensure that these are defined
592 dnl check for socklen_t
593 AC_CHECK_TYPE_INCLUDE([
594 #ifdef HAVE_SYS_TYPES_H
595 #include <sys/types.h>
597 #ifdef HAVE_SYS_SOCKET_H
598 #include <sys/socket.h>
602 dnl check for uint8_t
603 AC_CHECK_TYPE_INCLUDE([
604 #ifdef HAVE_INTTYPES_H
605 #include <inttypes.h>
610 ],uint8_t, unsigned char)
612 dnl check for uint16_t
613 AC_CHECK_TYPE_INCLUDE([
614 #ifdef HAVE_INTTYPES_H
615 #include <inttypes.h>
620 ],uint16_t, unsigned short)
622 dnl check for uint32_t
623 AC_CHECK_TYPE_INCLUDE([
624 #ifdef HAVE_INTTYPES_H
625 #include <inttypes.h>
630 ],uint32_t, unsigned int)
632 dnl #############################################################
634 dnl # 5. Checks for structures and functions
636 dnl #############################################################
660 RADIUSD_NEED_DECLARATIONS( \
673 dnl # check if we have utmpx.h
674 dnl # if so, check if struct utmpx has entry ut_xtime
675 dnl # if not, set it to define ut_xtime == ut_tv.tv_sec
676 if test "x$ac_cv_header_utmpx_h" = "xyes"
678 AC_CHECK_STRUCT_HAS_MEMBER([#include <utmpx.h>], [struct utmpx], ut_xtime)
679 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
681 AC_DEFINE(ut_xtime,ut_tv.tv_sec)
685 dnl # struct ip_pktinfo
686 AC_CHECK_STRUCT_HAS_MEMBER([#include <netinet/in.h>], [struct in_pktinfo], ipi_addr)
687 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
689 AC_DEFINE(HAVE_IP_PKTINFO)
692 dnl #############################################################
694 dnl # 6. Checks for compiler characteristics
696 dnl #############################################################
699 dnl # Ensure that these are defined
704 dnl # See if this is OS/2
706 AC_MSG_CHECKING(type of OS)
709 if test "$OS" = "OS/2"; then
717 dnl # Set Default CFLAGS
719 if test "x$GCC" = "xyes"; then
720 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
723 AC_MSG_CHECKING(for developer gcc flags)
724 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
725 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
726 CFLAGS="$CFLAGS $devflags"
728 AC_MSG_RESULT(yes. Using $devflags)
731 CFLAGS="$CFLAGS -DNDEBUG"
736 dnl #############################################################
738 dnl # 7. Checks for library functions
740 dnl #############################################################
742 dnl Check for libcrypt
743 dnl We use crypt(3) which may be in libc, or in libcrypt (eg FreeBSD)
744 AC_CHECK_LIB(crypt, crypt,
747 if test "$CRYPTLIB" != ""; then
748 AC_DEFINE(HAVE_CRYPT)
750 AC_CHECK_FUNC(crypt, AC_DEFINE(HAVE_CRYPT))
753 dnl Check for libcipher
754 AC_CHECK_LIB(cipher, setkey,
755 CRYPTLIB="${CRYPTLIB} -lcipher"
759 if test "x$WITH_SNMP" = "xyes"; then
763 dnl Check the style of gethostbyaddr, in order of preference
764 dnl GNU (_r eight args)
765 dnl SYSV (_r six args)
766 dnl BSD (three args, may not be thread safe)
767 dnl Tru64 has BSD version, but it is thread safe
768 dnl http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/1739____.HTM
769 dnl We need #stdio.h to define NULL on FreeBSD (at least)
770 gethostbyaddrrstyle=""
771 AC_MSG_CHECKING([gethostbyaddr_r() syntax])
774 AC_DEFINE(GETHOSTBYADDRRSTYLE, BSDSTYLE)
775 gethostbyaddrrstyle=BSD
776 AC_MSG_WARN([FreeBSD overridden to BSD-style])
779 if test "x$gethostbyaddrrstyle" = "x"; then
783 ], [ gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL) ], [
784 AC_DEFINE(GETHOSTBYADDRRSTYLE, GNUSTYLE)
785 gethostbyaddrrstyle=GNU
788 if test "x$gethostbyaddrrstyle" = "x"; then
792 ], [ gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL) ] , [
793 AC_DEFINE(GETHOSTBYADDRRSTYLE, SYSVSTYLE)
794 gethostbyaddrrstyle=SYSV
797 if test "x$gethostbyaddrrstyle" = "x"; then
801 ], [ gethostbyaddr(NULL, 0, 0) ], [
802 AC_DEFINE(GETHOSTBYADDRRSTYLE, BSDSTYLE)
803 gethostbyaddrrstyle=BSD
807 if test "x$gethostbyaddrrstyle" = "x"; then
808 AC_MSG_RESULT([none! It must not exist, here.])
810 AC_MSG_RESULT([${gethostbyaddrrstyle}-style])
813 if test "x$gethostbyaddrrstyle" = "xBSD"; then
814 AC_MSG_WARN([ ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** ])
817 dnl Check the style of gethostbyname, in order of preference
818 dnl GNU (_r seven args)
819 dnl SYSV (_r five args)
820 dnl BSD (two args, may not be thread safe)
821 dnl Tru64 has BSD version, but it _is_ thread safe
822 dnl http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/1946____.HTM
823 dnl We need #stdio.h to define NULL on FreeBSD (at least)
824 gethostbynamerstyle=""
825 AC_MSG_CHECKING([gethostbyname_r() syntax])
829 ], [ gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL) ], [
830 AC_DEFINE(GETHOSTBYNAMERSTYLE, GNUSTYLE)
831 gethostbynamerstyle=GNU
833 if test "x$gethostbynamerstyle" = "x"; then
837 ], [ gethostbyname_r(NULL, NULL, NULL, 0, NULL) ] , [
838 AC_DEFINE(GETHOSTBYNAMERSTYLE, SYSVSTYLE)
839 gethostbynamerstyle=SYSV
842 if test "x$gethostbynamerstyle" = "x"; then
846 ], [ gethostbyname(NULL) ], [
847 AC_DEFINE(GETHOSTBYNAMERSTYLE, BSDSTYLE)
848 gethostbynamerstyle=BSD
852 if test "x$gethostbynamerstyle" = "x"; then
853 AC_MSG_RESULT([none! It must not exist, here.])
855 AC_MSG_RESULT([${gethostbynamerstyle}-style])
858 if test "x$gethostbynamerstyle" = "xBSD"; then
859 AC_MSG_WARN([ ****** BSD-style gethostbyname might NOT be thread-safe! ****** ])
862 dnl check for non-posix solaris ctime_r (extra buflen int arg)
864 AC_MSG_CHECKING([ctime_r() syntax])
867 ], [ ctime_r(NULL, NULL, 0) ], [
868 AC_DEFINE(CTIMERSTYLE, SOLARISSTYLE)
869 ctimerstyle="SOLARIS"
871 if test "x$ctimerstyle" = "x"; then
874 ], [ ctime_r(NULL, NULL) ], [
875 AC_DEFINE(CTIMERSTYLE, POSIXSTYLE)
880 if test "x$ctimerstyle" = "x"; then
881 AC_MSG_RESULT([none! It must not exist, here.])
883 AC_MSG_RESULT([${ctimerstyle}-style])
887 dnl If configuring with large file support, determine the right flags to
888 dnl use based on the platform. This is the wrong approach; autoconf 2.50
889 dnl comes with a macro that takes the right approach. But this works well
890 dnl enough until we switch to autoconf 2.50 or later.
891 if test x"$rad_enable_largefiles" = xyes ; then
892 AC_MSG_CHECKING(for largefile linkage)
896 AC_MSG_ERROR([AIX before 4.2 does not support large files])
900 LFS_CFLAGS="-D_LARGE_FILES"
906 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
912 AC_MSG_ERROR([Large files not supported on this platform])
916 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
919 AC_DEFINE([_GNU_SOURCE], 1,
920 [Some versions of glibc need this defined for pread/pwrite.])
924 AC_PATH_PROG(GETCONF, getconf)
925 if test -z "$GETCONF" ; then
926 AC_MSG_ERROR([getconf required to configure large file support])
928 LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
929 LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
930 LFS_LIBS=`$GETCONF LFS_LIBS`
934 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
940 AC_SUBST(LFS_LDFLAGS)
944 AC_SUBST(HOSTINFO, $host)
946 dnl #############################################################
948 dnl # 8. Checks for system services
950 dnl #############################################################
953 dnl # Figure out where libtool is located,
957 AC_MSG_RESULT([top_builddir=$top_builddir])
958 dnl # AC_SUBST(top_builddir)
963 dnl # Work around stupid autoconf crap
965 if test "x$INCLTDL" != "x";then
966 INCLTDL='-I${top_builddir}/''libltdl'
969 dnl import libtool stuff
971 dnl #############################################################
973 dnl # Configure in any module directories.
975 dnl #############################################################
978 if test "x$EXPERIMENTAL" = "xyes"; then
979 bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
980 dnl # get rid of LF's.
981 mysubdirs=`echo $bar`
984 dnl # Find 'configure' in ONLY the stable modules
986 for bar in `cat src/modules/stable`; do
987 if test -f src/modules/$bar/configure; then
988 mysubdirs="$mysubdirs src/modules/$bar"
993 dnl ############################################################
994 dnl # make modules by list
995 dnl #############################################################
997 if test "x$EXPERIMENTAL" = "xyes"; then
998 for foo in `ls -1 src/modules | grep rlm_`; do
999 MODULES="$MODULES $foo"
1003 dnl # make ONLY the stable modules
1005 for foo in `cat src/modules/stable`; do
1006 MODULES="$MODULES $foo"
1011 dnl # Don't change the variable name here. Autoconf goes bonkers
1014 AC_CONFIG_SUBDIRS($mysubdirs)
1017 dnl #############################################################
1019 dnl # And finally, output the results.
1021 dnl #############################################################
1024 dnl # Substitute whatever libraries we found to be necessary
1027 AC_SUBST(INSTALLSTRIP)
1029 USE_SHARED_LIBS=$enable_shared
1030 AC_SUBST(USE_SHARED_LIBS)
1031 USE_STATIC_LIBS=$enable_static
1032 AC_SUBST(USE_STATIC_LIBS)
1033 AC_SUBST(STATIC_MODULES)
1034 AC_SUBST(RADIUSD_MAJOR_VERSION)
1035 AC_SUBST(RADIUSD_MINOR_VERSION)
1036 AC_SUBST(RADIUSD_VERSION)
1041 ./src/include/build-radpaths-h \
1042 ./src/main/Makefile \
1043 ./src/main/checkrad.pl \
1044 ./src/main/radlast \
1045 ./src/main/radtest \
1046 ./scripts/rc.radiusd \
1047 ./scripts/radwatch \
1048 ./scripts/check-radiusd-config \
1049 ./scripts/radiusd.cron.daily \
1050 ./scripts/radiusd.cron.monthly \
1051 ./scripts/cryptpasswd \
1052 ./raddb/dictionary \
1053 ./raddb/radiusd.conf
1056 AC_OUTPUT_COMMANDS([echo timestamp > src/include/stamp-h])
1057 AC_OUTPUT_COMMANDS([(cd ./src/include && /bin/sh ./build-radpaths-h)])
1058 AC_OUTPUT_COMMANDS([(cd ./src/main && chmod +x checkrad.pl radlast radtest)])
1059 AC_OUTPUT_COMMANDS([(cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd)])