* configure.in: Look for socklen_t, define HAVE_SOCKLEN_T if found
authorKen Raeburn <raeburn@mit.edu>
Mon, 18 Dec 2000 08:03:48 +0000 (08:03 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 18 Dec 2000 08:03:48 +0000 (08:03 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12897 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ChangeLog
src/lib/krb5/configure.in

index b63469736d66e5643bc3e3aff9e9c7bea64e5935..4c7cb002d22eac5456c9974dd8cd0997b37e4dd1 100644 (file)
@@ -1,3 +1,8 @@
+2000-12-18  Ken Raeburn  <raeburn@mit.edu>
+
+       * configure.in: Look for socklen_t, define HAVE_SOCKLEN_T if
+       found.
+
 2000-11-01  Ezra Peisach  <epeisach@mit.edu>
 
        * configure.in: Use AC_C_CONST instead of AC_CONST.
index 32ca0c2734ece5221fe951b97d0502d8bcf77b0f..631d4dc2485a0e8efe1a170b2b83233e1e36cee5 100644 (file)
@@ -6,6 +6,21 @@ dnl
 AC_C_CONST
 AC_TYPE_UID_T
 AC_TYPE_OFF_T
+dnl
+dnl
+AC_MSG_CHECKING(for socklen_t)
+AC_CACHE_VAL(krb5_cv_has_type_socklen_t,
+[AC_TRY_COMPILE(
+[#include <sys/types.h>
+#include <sys/socket.h>
+],[sizeof (socklen_t);],
+krb5_cv_has_type_socklen_t=yes,krb5_cv_has_type_socklen_t=no)])
+AC_MSG_RESULT($krb5_cv_has_type_socklen_t)
+if test $krb5_cv_has_type_socklen_t = yes; then
+    AC_DEFINE(HAVE_SOCKLEN_T)
+fi
+dnl
+dnl
 HAS_ANSI_VOLATILE
 AC_HEADER_STDARG
 AC_CHECK_HEADERS(unistd.h paths.h regex.h regexp.h regexpr.h fcntl.h memory.h ifaddrs.h)