diff options
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/configure.ac b/configure.ac index abd90413..ae7eb30b 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -475,30 +475,6 @@ AC_ARG_WITH([ipv6], | |||
| 475 | [AS_HELP_STRING([--with-ipv6], [support IPv6 @<:@default=check@:>@])], | 475 | [AS_HELP_STRING([--with-ipv6], [support IPv6 @<:@default=check@:>@])], |
| 476 | [], [with_ipv6=check]) | 476 | [], [with_ipv6=check]) |
| 477 | 477 | ||
| 478 | dnl Check for AF_INET6 support - unistd.h required for Darwin | ||
| 479 | if test "$with_ipv6" != "no"; then | ||
| 480 | AC_CACHE_CHECK([for IPv6 support], np_cv_sys_ipv6, [ | ||
| 481 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_UNISTD_H | ||
| 482 | #include <unistd.h> | ||
| 483 | #endif | ||
| 484 | #include <netinet/in.h> | ||
| 485 | #include <sys/socket.h>]], [[struct sockaddr_in6 sin6; | ||
| 486 | void *p; | ||
| 487 | |||
| 488 | sin6.sin6_family = AF_INET6; | ||
| 489 | sin6.sin6_port = 587; | ||
| 490 | p = &sin6.sin6_addr;]])],[np_cv_sys_ipv6=yes],[np_cv_sys_ipv6=no]) | ||
| 491 | ]) | ||
| 492 | if test "$np_cv_sys_ipv6" = "no" -a "$with_ipv6" != "check"; then | ||
| 493 | AC_MSG_FAILURE([--with-ipv6 was given, but test for IPv6 support failed]) | ||
| 494 | fi | ||
| 495 | if test "$np_cv_sys_ipv6" = "yes"; then | ||
| 496 | AC_DEFINE(USE_IPV6,1,[Enable IPv6 support]) | ||
| 497 | fi | ||
| 498 | with_ipv6="$np_cv_sys_ipv6" | ||
| 499 | fi | ||
| 500 | |||
| 501 | |||
| 502 | dnl Checks for Kerberos. Must come before openssl checks for Redhat EL 3 | 478 | dnl Checks for Kerberos. Must come before openssl checks for Redhat EL 3 |
| 503 | AC_CHECK_HEADERS(krb5.h,FOUNDINCLUDE=yes,FOUNDINCLUDE=no) | 479 | AC_CHECK_HEADERS(krb5.h,FOUNDINCLUDE=yes,FOUNDINCLUDE=no) |
| 504 | if test "$FOUNDINCLUDE" = "no"; then | 480 | if test "$FOUNDINCLUDE" = "no"; then |
| @@ -810,7 +786,7 @@ elif ps axwo 'stat comm vsz rss user uid pid ppid etime args' 2>/dev/null | \ | |||
| 810 | then | 786 | then |
| 811 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos]" | 787 | ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos]" |
| 812 | ac_cv_ps_command="$PATH_TO_PS axwo 'stat uid pid ppid vsz rss pcpu etime comm args'" | 788 | ac_cv_ps_command="$PATH_TO_PS axwo 'stat uid pid ppid vsz rss pcpu etime comm args'" |
| 813 | ac_cv_ps_format="%s %u %d %d %d %d %f %s %s %n" | 789 | ac_cv_ps_format="%s %d %d %d %d %d %f %s %s %n" |
| 814 | ac_cv_ps_cols=10 | 790 | ac_cv_ps_cols=10 |
| 815 | AC_MSG_RESULT([$ac_cv_ps_command]) | 791 | AC_MSG_RESULT([$ac_cv_ps_command]) |
| 816 | 792 | ||
