2002-02-16 Jeffrey Stedfast <fejj@ximian.com>
authorJeffrey Stedfast <fejj@novell.com>
Sat, 16 Feb 2002 19:37:58 +0000 (19:37 -0000)
committerJeffrey Stedfast <fejj@novell.com>
Sat, 16 Feb 2002 19:37:58 +0000 (19:37 -0000)
* configure.in: Add checks for SOL_IP, SOL_TCP, IP_PKTINFO,
IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP. Also check for struct
ip_mreqn.

svn path=/trunk/mono/; revision=2447

ChangeLog
acconfig.h
configure.in

index ba19ce68392b9ddb7121aed20c817dd4a54c7e8f..ec9f80ee8744c80b8aab871df65633bbc1546ae1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,8 @@
 2002-02-16  Jeffrey Stedfast  <fejj@ximian.com>
 
        * configure.in: Add checks for SOL_IP, SOL_TCP, IP_PKTINFO,
-       IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.
+       IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP. Also check for struct
+       ip_mreqn.
 
 2002-02-14  Jeffrey Stedfast  <fejj@ximian.com>
 
index a587674d14f52ec6671151106151453823188a92..489deae998e867477ff416b6be9dc393ebb3ee06 100644 (file)
@@ -5,6 +5,7 @@
 #undef HAVE_IP_PKTINFO
 #undef HAVE_IP_ADD_MEMBERSHIP
 #undef HAVE_IP_DROP_MEMBERSHIP
+#undef HAVE_STRUCT_IP_MREQN
 #undef HAVE_PTHREAD
 #undef HAVE_PTHREAD_MUTEX_TIMEDLOCK
 #undef USE_MONO_MUTEX
index 2e44a750ffe55b8e8f8f6001eef6e58ac49ce91e..dd382112ce761d851ffd0f5d474f933682b88b82 100644 (file)
@@ -233,6 +233,22 @@ if test x$platform_win32 = xno; then
                AC_MSG_RESULT(no)
        ])
 
+       dnl *********************************
+       dnl *** Check for struct ip_mreqn ***
+       dnl *********************************
+       AC_MSG_CHECKING(for struct ip_mreqn)
+       AC_TRY_COMPILE([#include <netinet/in.h>], [
+               struct ip_mreqn mreq;
+               mreq.imr_address.s_addr = 0;
+       ], [
+               # Yes, we have it...
+               AC_MSG_RESULT(yes)
+               AC_DEFINE(HAVE_STRUCT_IP_MREQN)
+       ], [
+               # We'll just have to use struct ip_mreq
+               AC_MSG_RESULT(no)
+       ])
+
        dnl *****************************
        dnl *** Checks for libnsl     ***
        dnl *****************************