* configure.in: Look for "struct lifconf" and maybe define HAVE_STRUCT_LIFCONF
authorKen Raeburn <raeburn@mit.edu>
Thu, 22 Jul 2004 21:50:22 +0000 (21:50 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 22 Jul 2004 21:50:22 +0000 (21:50 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16620 dc483132-0cff-0310-8789-dd5450dbe970

src/include/ChangeLog
src/include/configure.in

index 9c836f724a6c3bb7a55b441eec2b510c08de2822..6bf9b88a69c0a56a98a8f0ec98a4612be5672b43 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-22  Ken Raeburn  <raeburn@mit.edu>
+
+       * configure.in: Look for "struct lifconf" and maybe define
+       HAVE_STRUCT_LIFCONF.
+
 2004-07-19  Ken Raeburn  <raeburn@mit.edu>
 
        * fake-addrinfo.h (struct face, struct fac): Always declare.
index 381836ccbb806e7e0268720849c32fd04e3f8e84..72de2b61bade20c2364c00e3799839c951202482 100644 (file)
@@ -207,6 +207,18 @@ if test $krb5_cv_has_type_socklen_t = yes; then
     AC_DEFINE(HAVE_SOCKLEN_T,1,[Define if there is a socklen_t type. If not, probably use size_t])
 fi
 dnl
+AC_MSG_CHECKING(for struct lifconf)
+AC_CACHE_VAL(krb5_cv_has_struct_lifconf,
+[AC_TRY_COMPILE(
+[#include <sys/socket.h>
+#include <net/if.h>
+],[sizeof (struct lifconf);],
+krb5_cv_has_struct_lifconf=yes,krb5_cv_has_struct_lifconf=no)])
+AC_MSG_RESULT($krb5_cv_has_struct_lifconf)
+if test $krb5_cv_has_struct_lifconf = yes; then
+    AC_DEFINE(HAVE_STRUCT_LIFCONF,1,[Define if there is a struct lifconf.])
+fi
+dnl
 dnl
 KRB5_AC_NEED_BIND_8_COMPAT
 dnl