Autoconf support for glibc IPv6 support, from Pekka Savola.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 9 Jul 2001 23:42:39 +0000 (23:42 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 9 Jul 2001 23:42:39 +0000 (23:42 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3673 f5534014-38df-0310-8fa8-9805f1628bb7

AUTHORS
acinclude.m4

diff --git a/AUTHORS b/AUTHORS
index f054b21346248cb5dc7ca2b3a4e9fac3ef80e052..3782dd14771c25007cc53a83cd8cabb74d6ff3a6 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -723,6 +723,10 @@ Aamer Akhter <aakhter@cisco.com> {
        Support for additional BGP extended communities
 }
 
+Pekka Savola <pekkas@netcore.fi> {
+       Autoconf support for glibc IPv6 support
+}
+
 Alain Magloire <alainm@rcsm.ece.mcgill.ca> was kind enough to
 give his permission to use his version of snprintf.c.
 
index ec88486e55c85b119d244857a71839542b8963b4..08407f9fe7e19da676092c9bcea7cc2240f62088 100644 (file)
@@ -2,7 +2,7 @@ dnl Macros that test for specific features.
 dnl This file is part of the Autoconf packaging for Ethereal.
 dnl Copyright (C) 1998-2000 by Gerald Combs.
 dnl
-dnl $Id: acinclude.m4,v 1.27 2001/06/27 07:47:48 guy Exp $
+dnl $Id: acinclude.m4,v 1.28 2001/07/09 23:42:39 guy Exp $
 dnl
 dnl This program is free software; you can redistribute it and/or modify
 dnl it under the terms of the GNU General Public License as published by
@@ -103,7 +103,7 @@ AC_DEFUN(AC_ETHEREAL_IPV6_STACK,
        v6lib=none
 
        AC_MSG_CHECKING([ipv6 stack type])
-       for i in v6d toshiba kame inria zeta linux; do
+       for i in v6d toshiba kame inria zeta linux linux-glibc; do
                case $i in
                v6d)
                        AC_EGREP_CPP(yes, [
@@ -161,6 +161,16 @@ yes
                                CFLAGS="-DINET6 $CFLAGS"
                        fi
                        ;;
+               linux-glibc)
+                       AC_EGREP_CPP(yes, [
+#include <features.h>
+#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
+#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || __GLIBC__ > 2
+yes
+#endif
+#endif],
+                       [v6type=$i; v6lib=inet6; CFLAGS="-DINET6 $CFLAGS"])
+                       ;;
                esac
                if test "$v6type" != "unknown"; then
                        break