+2008-09-29 Bruno Haible <bruno@clisp.org>
+
+ * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
+ * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
+ ARPA_INET_H directly.
+ * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
+
2008-09-28 Bruno Haible <bruno@clisp.org>
* m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
-# arpa_inet_h.m4 serial 4
+# arpa_inet_h.m4 serial 5
dnl Copyright (C) 2006, 2008 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
gl_CHECK_NEXT_HEADERS([arpa/inet.h])
])
+dnl Unconditionally enables the replacement of <arpa/inet.h>.
+AC_DEFUN([gl_REPLACE_ARPA_INET_H],
+[
+ AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS])
+ ARPA_INET_H='arpa/inet.h'
+)
+
AC_DEFUN([gl_ARPA_INET_MODULE_INDICATOR],
[
dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
-# inet_ntop.m4 serial 6
+# inet_ntop.m4 serial 7
dnl Copyright (C) 2005, 2006, 2008 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl Persuade Solaris <arpa/inet.h> to declare inet_ntop.
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
- AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS])
- ARPA_INET_H='arpa/inet.h'
+ gl_REPLACE_ARPA_INET_H
AC_REPLACE_FUNCS(inet_ntop)
gl_PREREQ_INET_NTOP
-# inet_pton.m4 serial 5
+# inet_pton.m4 serial 6
dnl Copyright (C) 2006, 2008 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl Persuade Solaris <arpa/inet.h> to declare inet_pton.
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
- AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS])
- ARPA_INET_H='arpa/inet.h'
+ gl_REPLACE_ARPA_INET_H
AC_REPLACE_FUNCS(inet_pton)
gl_PREREQ_INET_PTON