aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/krb5/ChangeLog5
-rw-r--r--src/lib/krb5/configure.in15
2 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/krb5/ChangeLog b/src/lib/krb5/ChangeLog
index b634697..4c7cb00 100644
--- a/src/lib/krb5/ChangeLog
+++ b/src/lib/krb5/ChangeLog
@@ -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.
diff --git a/src/lib/krb5/configure.in b/src/lib/krb5/configure.in
index 32ca0c2..631d4dc 100644
--- a/src/lib/krb5/configure.in
+++ b/src/lib/krb5/configure.in
@@ -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)