diff options
author | Bruno Haible <bruno@clisp.org> | 2003-02-14 12:39:22 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:09:20 +0200 |
commit | d2f4044f90e554f852438f8295d9da743cc8c4dd (patch) | |
tree | 6f761068cf09389c083fc3f274da9ce04b164175 /m4 | |
parent | 187d68627ad3e71161e5bf1d992fbcd81e4b811a (diff) | |
download | gettext-d2f4044f90e554f852438f8295d9da743cc8c4dd.tar.gz |
Move m4/hostname.m4 to gettext-tools/m4/hostname.m4.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/hostname.m4 | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/m4/hostname.m4 b/m4/hostname.m4 deleted file mode 100644 index cca598d8e..000000000 --- a/m4/hostname.m4 +++ /dev/null @@ -1,28 +0,0 @@ -# hostname.m4 serial 1 (gettext-0.11) -dnl Copyright (C) 2001-2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. - -# 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 -]) |