summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-02-14 12:39:22 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:09:20 +0200
commitd2f4044f90e554f852438f8295d9da743cc8c4dd (patch)
tree6f761068cf09389c083fc3f274da9ce04b164175 /m4
parent187d68627ad3e71161e5bf1d992fbcd81e4b811a (diff)
downloadgettext-d2f4044f90e554f852438f8295d9da743cc8c4dd.tar.gz
Move m4/hostname.m4 to gettext-tools/m4/hostname.m4.
Diffstat (limited to 'm4')
-rw-r--r--m4/hostname.m428
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
-])