diff options
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 25 |
1 files changed, 24 insertions, 1 deletions
@@ -592,7 +592,7 @@ AC_DEFUN([gt_JAVACOMP], if test -n "$JAVAC"; then ac_result="$JAVAC" else - if gcj --version >/dev/null 2>/dev/null; then + if gcj --version 2>/dev/null | grep '^[3-9]' >/dev/null; then HAVE_GCJ=1 ac_result="gcj -C" else @@ -4535,6 +4535,29 @@ AC_DEFINE_UNQUOTED(SETLOCALE_CONST,$gt_cv_proto_setlocale_arg1, [Define as const if the declaration of setlocale() needs const.]) ]) +#serial 1 + +# Prerequisites of the hostname.c program. +AC_DEFUN(gt_PREREQ_HOSTNAME, +[ + AC_CHECK_HEADERS(arpa/inet.h) + AC_CHECK_FUNCS(gethostname gethostbyname inet_ntop) + + AC_MSG_CHECKING([for IPv6 sockets]) + AC_CACHE_VAL(gt_cv_socket_ipv6,[ + AC_TRY_COMPILE([ +#include <sys/types.h> +#include <sys/socket.h> +#include <netinet/in.h>], +[int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;], + gt_cv_socket_ipv6=yes, gt_cv_socket_ipv6=no) + ]) + AC_MSG_RESULT($gt_cv_socket_ipv6) + if test $gt_cv_socket_ipv6 = yes; then + AC_DEFINE(HAVE_IPV6, 1, [Define if <sys/socket.h> defines AF_INET6.]) + fi +]) + # Macro to add for using GNU gettext. # Ulrich Drepper <drepper@cygnus.com>, 1995. # |