diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-01-26 09:39:01 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-01-26 09:39:01 +0000 |
commit | bcd4b40e67010378892ce56f551d9e45958f07fa (patch) | |
tree | e5fe07cbe90198d788a74dc3a3189d0094e2fcdd /configure.in | |
parent | d8eebab473de16ec293a53a3bab46f4fce787dc2 (diff) |
supported IPv6 on Win32.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@932 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/configure.in b/configure.in index 55e2db79..116de230 100644 --- a/configure.in +++ b/configure.in @@ -300,13 +300,24 @@ AC_MSG_CHECKING([whether to use IPv6]) if test x"$ac_cv_enable_ipv6" = xyes; then AC_MSG_RESULT(yes) AC_MSG_CHECKING([for IPv6 support]) - AC_CACHE_VAL(ac_cv_ipv6,[ - AC_TRY_COMPILE([#define INET6 - #include <sys/types.h> - #include <netinet/in.h>], - [int x = IPPROTO_IPV6; struct in6_addr a;], - ac_cv_ipv6=yes, ac_cv_ipv6=no) - ]) + if test "$native_win32" = yes; then + AC_CACHE_VAL(ac_cv_ipv6,[ + AC_TRY_COMPILE([#define INET6 + #include <sys/types.h> + #include <winsock2.h> + #include <ws2tcpip.h>], + [int x = IPPROTO_IPV6; struct in6_addr a;], + ac_cv_ipv6=yes, ac_cv_ipv6=no) + ]) + else + AC_CACHE_VAL(ac_cv_ipv6,[ + AC_TRY_COMPILE([#define INET6 + #include <sys/types.h> + #include <netinet/in.h>], + [int x = IPPROTO_IPV6; struct in6_addr a;], + ac_cv_ipv6=yes, ac_cv_ipv6=no) + ]) + fi AC_MSG_RESULT($ac_cv_ipv6) if test $ac_cv_ipv6 = yes; then AC_DEFINE(INET6, 1, Define if you want IPv6 support.) |