diff options
Diffstat (limited to 'gl/m4/arpa_inet_h.m4')
-rw-r--r-- | gl/m4/arpa_inet_h.m4 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gl/m4/arpa_inet_h.m4 b/gl/m4/arpa_inet_h.m4 index 15a30e2b..ea69af57 100644 --- a/gl/m4/arpa_inet_h.m4 +++ b/gl/m4/arpa_inet_h.m4 | |||
@@ -1,5 +1,5 @@ | |||
1 | # arpa_inet_h.m4 serial 8 | 1 | # arpa_inet_h.m4 serial 13 |
2 | dnl Copyright (C) 2006, 2008, 2009, 2010 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2006, 2008-2013 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl with or without modifications, as long as this notice is preserved. |
@@ -22,24 +22,22 @@ AC_DEFUN([gl_HEADER_ARPA_INET], | |||
22 | dnl <arpa/inet.h> is always overridden, because of GNULIB_POSIXCHECK. | 22 | dnl <arpa/inet.h> is always overridden, because of GNULIB_POSIXCHECK. |
23 | gl_CHECK_NEXT_HEADERS([arpa/inet.h]) | 23 | gl_CHECK_NEXT_HEADERS([arpa/inet.h]) |
24 | 24 | ||
25 | AC_REQUIRE([gl_FEATURES_H]) | ||
26 | |||
25 | dnl Check for declarations of anything we want to poison if the | 27 | dnl Check for declarations of anything we want to poison if the |
26 | dnl corresponding gnulib module is not in use. | 28 | dnl corresponding gnulib module is not in use. |
27 | gl_WARN_ON_USE_PREPARE([[ | 29 | gl_WARN_ON_USE_PREPARE([[ |
28 | /* On some systems, this header is not self-consistent. */ | 30 | /* On some systems, this header is not self-consistent. */ |
29 | #ifndef __GLIBC__ | 31 | #if !(defined __GLIBC__ || defined __UCLIBC__) |
30 | # include <sys/socket.h> | 32 | # include <sys/socket.h> |
31 | #endif | 33 | #endif |
34 | #ifdef __TANDEM | ||
35 | # include <netdb.h> | ||
36 | #endif | ||
32 | #include <arpa/inet.h> | 37 | #include <arpa/inet.h> |
33 | ]], [inet_ntop inet_pton]) | 38 | ]], [inet_ntop inet_pton]) |
34 | ]) | 39 | ]) |
35 | 40 | ||
36 | dnl Unconditionally enables the replacement of <arpa/inet.h>. | ||
37 | AC_DEFUN([gl_REPLACE_ARPA_INET_H], | ||
38 | [ | ||
39 | dnl This is a no-op, because <arpa/inet.h> is always overridden. | ||
40 | : | ||
41 | ]) | ||
42 | |||
43 | AC_DEFUN([gl_ARPA_INET_MODULE_INDICATOR], | 41 | AC_DEFUN([gl_ARPA_INET_MODULE_INDICATOR], |
44 | [ | 42 | [ |
45 | dnl Use AC_REQUIRE here, so that the default settings are expanded once only. | 43 | dnl Use AC_REQUIRE here, so that the default settings are expanded once only. |
@@ -54,4 +52,6 @@ AC_DEFUN([gl_ARPA_INET_H_DEFAULTS], | |||
54 | dnl Assume proper GNU behavior unless another module says otherwise. | 52 | dnl Assume proper GNU behavior unless another module says otherwise. |
55 | HAVE_DECL_INET_NTOP=1; AC_SUBST([HAVE_DECL_INET_NTOP]) | 53 | HAVE_DECL_INET_NTOP=1; AC_SUBST([HAVE_DECL_INET_NTOP]) |
56 | HAVE_DECL_INET_PTON=1; AC_SUBST([HAVE_DECL_INET_PTON]) | 54 | HAVE_DECL_INET_PTON=1; AC_SUBST([HAVE_DECL_INET_PTON]) |
55 | REPLACE_INET_NTOP=0; AC_SUBST([REPLACE_INET_NTOP]) | ||
56 | REPLACE_INET_PTON=0; AC_SUBST([REPLACE_INET_PTON]) | ||
57 | ]) | 57 | ]) |