Tue Jul 29 18:07:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
authorPaolo Molaro <lupus@oddwiz.org>
Tue, 29 Jul 2003 16:21:20 +0000 (16:21 -0000)
committerPaolo Molaro <lupus@oddwiz.org>
Tue, 29 Jul 2003 16:21:20 +0000 (16:21 -0000)
* configure.in: ipv6 portability fixes from Felix Ortga (guile@lared.es).

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

acconfig.h
configure.in

index 1abf4695049e4518059974b1420d7548d40b9d38..5c0bb43a8989292e801c79e979704def3590689b 100644 (file)
@@ -3,6 +3,7 @@
 #undef HAVE_MSG_NOSIGNAL
 #undef HAVE_SOL_IP
 #undef HAVE_SOL_TCP
+#undef HAVE_SOL_IPV6
 #undef HAVE_IP_PKTINFO
 #undef HAVE_STRUCT_IP_MREQN
 #undef HAVE_STRUCT_IP_MREQ
index 9652d37cc8949a2211172686425f238c5635b96b..0dd6e9775132a4524521e6faafc4f208347719f5 100644 (file)
@@ -349,6 +349,21 @@ if test x$platform_win32 = xno; then
                AC_MSG_RESULT(no)
        ])
 
+       dnl *****************************
+       dnl *** Checks for SOL_IPV6     ***
+       dnl *****************************
+       AC_MSG_CHECKING(for SOL_IPV6)
+       AC_TRY_COMPILE([#include <netdb.h>], [
+               int level = SOL_IPV6;
+       ], [
+               # Yes, we have it...
+               AC_MSG_RESULT(yes)
+               AC_DEFINE(HAVE_SOL_IPV6)
+       ], [
+               # We'll have to use getprotobyname
+               AC_MSG_RESULT(no)
+       ])
+
        dnl *****************************
        dnl *** Checks for SOL_TCP    ***
        dnl *****************************
@@ -410,7 +425,7 @@ if test x$platform_win32 = xno; then
        dnl *** Check for gethostbyname2_r ***
        dnl **********************************
        AC_MSG_CHECKING(for gethostbyname2_r)
-               AC_TRY_COMPILE([#include <netdb.h>], [
+               AC_TRY_LINK([#include <netdb.h>], [
                gethostbyname2_r(NULL,0,NULL,NULL,0,NULL,NULL);
        ], [
                # Yes, we have it...