diff --git a/configure.in b/configure.in index 83c4716699..a57a2f509f 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.181 2003-11-10 11:25:05 aafemt Exp $ +dnl $Id: configure.in,v 1.182 2003-11-13 00:53:12 stryqx Exp $ dnl ############################# INITIALISATION ############################### @@ -510,6 +510,17 @@ case "$PLATFORM" in AC_DEFINE(HAVE_POSIX_THREADS) ;; + FREEBSD) + dnl the AC_CHECK_TYPES for socklen_t doesn't include sys/socket.h + dnl so test for socklen_t with sys/socket.h included + AC_MSG_CHECKING(if sys/socket.h defines socklen_t) + AC_TRY_COMPILE([#include + #include ], + [socklen_t s;], + [AC_DEFINE(HAVE_SOCKLEN_T) AC_MSG_RESULT(yes)], + [AC_MSG_RESULT(no)]) + ;; + SOLARIS|solx86) dnl kkuznetsov: Solaris always check for -lnsl AC_CHECK_LIB(nsl, gethostname, XE_APPEND(-lnsl,LIBS))