|
From: Chris K. <st...@us...> - 2003-11-13 00:53:21
|
Build Version : T2.0.0.5729 Firebird 2.0 UNSTABLE
(writeBuildNum.sh,v 1.5729 2003/11/13 00:53:14 stryqx Exp $ )
Update of /cvsroot/firebird/firebird2
In directory sc8-pr-cvs1:/tmp/cvs-serv18924
Modified Files:
configure.in
Log Message:
Fix build on FreeBSD 4.x
Index: configure.in
===================================================================
RCS file: /cvsroot/firebird/firebird2/configure.in,v
retrieving revision 1.181
retrieving revision 1.182
diff -b -U3 -r1.181 -r1.182
--- configure.in 10 Nov 2003 11:25:05 -0000 1.181
+++ configure.in 13 Nov 2003 00:53:12 -0000 1.182
@@ -510,6 +510,17 @@
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 <sys/types.h>
+ #include <sys/socket.h>],
+ [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))
|