]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Remove inttypes-h.m4.
authorBruno Haible <bruno@clisp.org>
Mon, 18 Sep 2006 19:11:21 +0000 (19:11 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:00 +0000 (12:14 +0200)
gettext-runtime/m4/ChangeLog
gettext-runtime/m4/intl.m4
gettext-runtime/m4/inttypes-h.m4 [deleted file]
gettext-runtime/m4/inttypes-pri.m4

index 5b43b9023124663f8a92846af2174617372bbb0e..8779d9946746924a3e2ee90a21708a172dfa71a7 100644 (file)
@@ -1,3 +1,13 @@
+2006-09-18  Bruno Haible  <bruno@clisp.org>
+
+       Assume autoconf-2.52 or newer.
+       * inttypes-h.m4: Remove file.
+       * inttypes-pri.m4: Require autoconf >= 2.52.
+       (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
+       ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
+       * intl.m4: Require autoconf >= 2.52.
+       (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
+
 2006-09-11  Bruno Haible  <bruno@clisp.org>
 
        * intl.m4: New file, extracted from gettext.m4.
index cd2dce2b40c7abf17dfbcfbcb04196a530c0514d..e0ab3966f5723f4244b3ea932d1059cfa3b8b0bb 100644 (file)
@@ -1,4 +1,4 @@
-# intl.m4 serial 1 (gettext-0.15.1)
+# intl.m4 serial 2 (gettext-0.15.1)
 dnl Copyright (C) 1995-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,
@@ -17,6 +17,7 @@ dnl Authors:
 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2006.
 
+AC_PREREQ(2.52)
 
 dnl Checks for all prerequisites of the intl subdirectory,
 dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
@@ -167,7 +168,6 @@ AC_DEFUN([gt_INTL_SUBDIR_CORE],
   AC_REQUIRE([AC_FUNC_MMAP])dnl
   AC_REQUIRE([gt_INTDIV0])dnl
   AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl
-  AC_REQUIRE([gl_HEADER_INTTYPES_H])dnl
   AC_REQUIRE([gt_INTTYPES_PRI])dnl
   AC_REQUIRE([gl_LOCK])dnl
 
@@ -177,7 +177,7 @@ AC_DEFUN([gt_INTL_SUBDIR_CORE],
     [AC_DEFINE([HAVE_BUILTIN_EXPECT], 1,
        [Define to 1 if the compiler understands __builtin_expect.])])
 
-  AC_CHECK_HEADERS([argz.h limits.h unistd.h sys/param.h])
+  AC_CHECK_HEADERS([argz.h inttypes.h limits.h unistd.h sys/param.h])
   AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \
     stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
     argz_next __fsetlocking])
diff --git a/gettext-runtime/m4/inttypes-h.m4 b/gettext-runtime/m4/inttypes-h.m4
deleted file mode 100644 (file)
index d7ec94c..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-# inttypes-h.m4 serial 1 (gettext-0.15)
-dnl Copyright (C) 1997-2002, 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,
-dnl with or without modifications, as long as this notice is preserved.
-
-dnl From Paul Eggert.
-
-# Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with
-# <sys/types.h>.
-
-AC_DEFUN([gl_HEADER_INTTYPES_H],
-[
-  AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h,
-  [
-    AC_TRY_COMPILE(
-      [#include <sys/types.h>
-#include <inttypes.h>],
-      [], gl_cv_header_inttypes_h=yes, gl_cv_header_inttypes_h=no)
-  ])
-  if test $gl_cv_header_inttypes_h = yes; then
-    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
-      [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.])
-  fi
-])
index 6b53d0b6f6ca9e1582d8f0d4c8b9196caf841b5c..d7f5a50634f83d5de0741380f02346a61c9dfa76 100644 (file)
@@ -1,4 +1,4 @@
-# inttypes-pri.m4 serial 3 (gettext-0.15.1)
+# inttypes-pri.m4 serial 4 (gettext-0.15.1)
 dnl Copyright (C) 1997-2002, 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,
@@ -6,13 +6,15 @@ dnl with or without modifications, as long as this notice is preserved.
 
 dnl From Bruno Haible.
 
+AC_PREREQ(2.52)
+
 # Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
 # macros to non-string values.  This is the case on AIX 4.3.3.
 
 AC_DEFUN([gt_INTTYPES_PRI],
 [
-  AC_REQUIRE([gl_HEADER_INTTYPES_H])
-  if test $gl_cv_header_inttypes_h = yes; then
+  AC_CHECK_HEADERS([inttypes.h])
+  if test $ac_cv_header_inttypes_h = yes; then
     AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
       gt_cv_inttypes_pri_broken,
       [