check for getaddrinfo() && getnameinfo(), which both beat the
authoraland <aland>
Tue, 19 Apr 2005 23:33:44 +0000 (23:33 +0000)
committeraland <aland>
Tue, 19 Apr 2005 23:33:44 +0000 (23:33 +0000)
pants off of gethostbybname() & friends

configure
configure.in
src/include/autoconf.h.in

index aedfc99..d15b525 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 1.208 .
+# From configure.in Revision: 1.209 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.57.
 #
@@ -22139,6 +22139,8 @@ _ACEOF
 
 
 
+
+
 for ac_func in \
        getopt_long \
        lockf \
@@ -22162,7 +22164,9 @@ for ac_func in \
        setlinebuf \
        setvbuf \
        getusershell \
-       initgroups
+       initgroups \
+       getaddrinfo \
+       getnameinfo
 
 do
 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -23896,7 +23900,7 @@ USE_STATIC_LIBS=$enable_static
 
 
 
-export CFLAGS LIBS
+export CFLAGS LIBS LDFLAGS CPPFLAGS
 
                                                                                                                                             ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/check-radiusd-config ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf"
 cat >confcache <<\_ACEOF
index d88f585..45da617 100644 (file)
@@ -673,7 +673,9 @@ AC_CHECK_FUNCS( \
        setlinebuf \
        setvbuf \
        getusershell \
-       initgroups
+       initgroups \
+       getaddrinfo \
+       getnameinfo
 )
 RADIUSD_NEED_DECLARATIONS( \
        crypt \
@@ -1004,7 +1006,7 @@ AC_SUBST(STATIC_MODULES)
 AC_SUBST(RADIUSD_MAJOR_VERSION)
 AC_SUBST(RADIUSD_MINOR_VERSION)
 AC_SUBST(RADIUSD_VERSION)
-export CFLAGS LIBS
+export CFLAGS LIBS LDFLAGS CPPFLAGS
 
 AC_OUTPUT(\
        ./Make.inc \
index 86ee140..ad8bd73 100644 (file)
 /* Define to 1 if you have the <fcntl.h> header file. */
 #undef HAVE_FCNTL_H
 
+/* Define to 1 if you have the `getaddrinfo' function. */
+#undef HAVE_GETADDRINFO
+
 /* Define to 1 if you have the `gethostname' function. */
 #undef HAVE_GETHOSTNAME
 
+/* Define to 1 if you have the `getnameinfo' function. */
+#undef HAVE_GETNAMEINFO
+
 /* Define to 1 if you have the <getopt.h> header file. */
 #undef HAVE_GETOPT_H