]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix a configure warning on AIX 4.
authorBruno Haible <bruno@clisp.org>
Tue, 19 Dec 2006 20:24:18 +0000 (20:24 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:32 +0000 (12:14 +0200)
gnulib-local/ChangeLog
gnulib-local/m4/libxml.m4

index d26df7553bd1d54d217d562e20696ed825e2f8de..716c796f272e708250ddec16197b442aaeeedd11 100644 (file)
@@ -1,3 +1,8 @@
+2006-12-19  Bruno Haible  <bruno@clisp.org>
+
+       * m4/libxml.m4 (gl_LIBXML): Check for arpa/nameser.h and resolv.h
+       with some prerequisite headers. Needed for AIX 4.3.2.
+
 2006-12-19  Bruno Haible  <bruno@clisp.org>
 
        * lib/term-ostream.oo.c (term_ostream_create): Add color information
index 43cec43a11b4c3e967513b48c9a58d69a89f32d6..a39924956fa2c9bb8dbeb266c8512652c51ede23 100644 (file)
@@ -1,4 +1,4 @@
-# libxml.m4 serial 3 (gettext-0.16.2)
+# libxml.m4 serial 4 (gettext-0.16.2)
 dnl Copyright (C) 2006 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -137,11 +137,27 @@ AC_DEFUN([gl_LIBXML],
     LIBXML_H="$LIBXML_H libxml/xpath.h"
     LIBXML_H="$LIBXML_H libxml/xpathInternals.h"
     LIBXML_H="$LIBXML_H libxml/xpointer.h"
-    AC_CHECK_HEADERS([arpa/inet.h arpa/nameser.h ctype.h dlfcn.h dl.h errno.h \
+    AC_CHECK_HEADERS([arpa/inet.h ctype.h dlfcn.h dl.h errno.h \
                       fcntl.h float.h limits.h malloc.h math.h netdb.h \
-                      netinet/in.h resolv.h signal.h stdlib.h string.h \
+                      netinet/in.h signal.h stdlib.h string.h \
                       strings.h sys/select.h sys/socket.h sys/stat.h \
                       sys/time.h sys/types.h time.h unistd.h])
+    AC_CHECK_HEADERS([arpa/nameser.h] [], [], [
+      #if HAVE_SYS_TYPES_H
+      # include <sys/types.h>
+      #endif
+    ])
+    AC_CHECK_HEADERS([resolv.h], [], [], [
+      #if HAVE_SYS_TYPES_H
+      # include <sys/types.h>
+      #endif
+      #if HAVE_NETINET_IN_H
+      # include <netinet/in.h>
+      #endif 
+      #if HAVE_ARPA_NAMESER_H 
+      # include <arpa/nameser.h>
+      #endif
+    ])
     AC_CHECK_FUNCS([dlopen getaddrinfo localtime shlload stat _stat strftime])
     dnl This relies on the va_copy replacement from the stdarg module.
     AC_DEFINE([VA_COPY], [va_copy],