aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--configure.in16
2 files changed, 19 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3ce0623746..bdb41fcb08 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-10-17 Jeffrey Stedfast <fejj@ximian.com>
+
+ * configure.in: added a configure check for AI_ADDRCONFIG
+
2003-10-24 Dan Winship <danw@ximian.com>
* libversit/Makefile.am: Change YFLAGS to AM_YFLAGS to stop an
diff --git a/configure.in b/configure.in
index 07d94194d5..36fc58990b 100644
--- a/configure.in
+++ b/configure.in
@@ -295,6 +295,20 @@ fi
if test "x$enable_ipv6" = "xyes"; then
AC_DEFINE(ENABLE_IPv6,1,[Enable IPv6 support])
+ AC_TRY_COMPILE([
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <netdb.h>
+
+ ],[
+ struct addrinfo hints;
+
+ hints.ai_flags = AI_ADDRCONFIG;
+ ],[
+ AC_DEFINE(HAVE_AI_ADDRCONFIG,1,[Define if the system defines the AI_ADDRCONFIG flag for getaddrinfo])
+ ])
fi
AM_CONDITIONAL(ENABLE_IPv6, test "x$enable_ipv6" = "xyes")
@@ -395,7 +409,7 @@ AC_SUBST(DB3_LDADD)
AC_CACHE_CHECK([that db3 library version matches header version], ac_cv_db3_lib_version_match,
[
- LIBS="$DB3_LDADD $LIBS"
+ LIBS="$DB3_LDADD $LIBS -pthread"
AC_TRY_RUN([
#ifdef HAVE_DB3_DB_H
#include <db3/db.h>