/[cvs]/eggdrop1.9/aclocal.m4
ViewVC logotype

Diff of /eggdrop1.9/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.46 by drummer, Fri Jul 27 00:46:27 2001 UTC revision 1.47 by drummer, Sun Jul 29 19:43:05 2001 UTC
# Line 1283  dnl Line 1283  dnl
1283  dnl  EGG_ENABLE_IPV6()  dnl  EGG_ENABLE_IPV6()
1284  dnl  dnl
1285  AC_DEFUN(EGG_ENABLE_IPV6, [dnl  AC_DEFUN(EGG_ENABLE_IPV6, [dnl
1286    AC_MSG_CHECKING(whether you enabled IPv6 support)
1287  AC_ARG_ENABLE(ipv6,  AC_ARG_ENABLE(ipv6,
1288  [  --enable-ipv6           Enable IPV6 support.  [  --enable-ipv6           Enable IPV6 support.
1289    --disable-ipv6          Disable IPV6 support. ],    --disable-ipv6          Disable IPV6 support. ],
1290      [ ac_cv_ipv6=$enableval ], [ ac_cv_ipv6='no' ])  [ ac_cv_ipv6=$enableval
1291      AC_MSG_RESULT($ac_cv_ipv6)
1292    ], [
1293      ac_cv_ipv6='no'
1294      AC_MSG_RESULT((default) $ac_cv_ipv6)
1295    ])
1296  if test "$ac_cv_ipv6" = "yes" ; then  if test "$ac_cv_ipv6" = "yes" ; then
1297          AC_DEFINE(IPV6)          AC_DEFINE(IPV6)
         echo "Using IPv6 support."  
         echo "Warning! This option requires kernel IPv6 support!"  
         echo "If your kernel does not support IPv6 your bot won't be able"  
         echo "to connect to any IPv4 or IPv6 host!"  
1298  fi  fi
 AC_SUBST(MAKEIPV6)dnl  
1299  ])dnl  ])dnl
1300    
1301    
# Line 1343  else Line 1343  else
1343   ])   ])
1344  fi  fi
1345  ])dnl  ])dnl
1346    
1347    dnl EGG_IPV6_SUPPORTED
1348    dnl
1349    dnl AC_TRY_RUN(PROGRAM, [ACTION-IF-TRUE [, ACTION-IF-FALSE
1350    dnl            [, ACTION-IF-CROSS-COMPILING]]])
1351    AC_DEFUN(EGG_IPV6_SUPPORTED, [dnl
1352    AC_MSG_CHECKING(for kernel IPv6 support)
1353    AC_CACHE_VAL(egg_cv_ipv6_supported,[
1354     AC_TRY_RUN_NATIVE([
1355    #include <sys/socket.h>
1356    #include <sys/types.h>
1357    #include <unistd.h>
1358    
1359    int main()
1360    {
1361        int s = socket(AF_INET6, SOCK_STREAM, 0);
1362        if (s != -1)
1363        close(s);
1364        return s == -1;
1365    }
1366    ], egg_cv_ipv6_supported=yes, egg_cv_ipv6_supported=no)])
1367    if test "$egg_cv_ipv6_supported" = yes; then
1368     AC_MSG_RESULT(yes)
1369    else
1370     AC_MSG_RESULT(no)
1371    fi
1372    ])dnl
1373    

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23