sascha 99/12/29 15:54:28
Modified: src/lib/apr aclocal.m4 configure.in
Log:
Add check for socklen_t. Falls back to unsigned int.
Revision Changes Path
1.8 +26 -0 apache-2.0/src/lib/apr/aclocal.m4
Index: aclocal.m4
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/aclocal.m4,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -u -r1.7 -r1.8
--- aclocal.m4 1999/12/21 21:16:17 1.7
+++ aclocal.m4 1999/12/29 23:54:27 1.8
@@ -161,3 +161,29 @@
undefine([AC_CV_NAME])dnl
])
+dnl
+dnl check for socklen_t, fall back to unsigned int
+dnl
+
+AC_DEFUN(APR_CHECK_SOCKLEN_T,[
+AC_CACHE_CHECK(for socklen_t, ac_cv_socklen_t,[
+AC_TRY_COMPILE([
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+],[
+socklen_t foo = (socklen_t) 0;
+],[
+ ac_cv_socklen_t=yes
+],[
+ ac_cv_socklen_t=no
+])
+])
+
+if test "$ac_cv_socklen_t" = "no"; then
+ AC_DEFINE(socklen_t, unsigned int, [Whether you have socklen_t])
+fi
+])
1.41 +2 -0 apache-2.0/src/lib/apr/configure.in
Index: configure.in
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/configure.in,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -u -r1.40 -r1.41
--- configure.in 1999/12/27 23:00:31 1.40
+++ configure.in 1999/12/29 23:54:27 1.41
@@ -306,6 +306,8 @@
AC_FUNC_MMAP
AC_FUNC_SETPGRP
+APR_CHECK_SOCKLEN_T
+
if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
mmap="1"
AC_SUBST(mmap)