]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Remove unused tests from AM_INTL_SUBDIR.
authorBruno Haible <bruno@clisp.org>
Wed, 31 Aug 2005 10:40:41 +0000 (10:40 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:49 +0000 (12:12 +0200)
gettext-runtime/ChangeLog
gettext-runtime/Makefile.am
gettext-runtime/m4/ChangeLog
gettext-runtime/m4/gettext.m4

index 72f646e304d9386a0e41ffea27b0215586ac1cf0..1c9343b898a5783a081f0f801dc00e897764d4aa 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-28  Bruno Haible  <bruno@clisp.org>
+
+       * Makefile.am (config.h_vms): Remove setting of HAVE_MALLOC_H,
+       HAVE_NL_TYPES_H.
+
 2005-08-28  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.am (intl/libgnuintl.h_vms, intl/libgnuintl.h.msvc-static,
index 77db5b1169b29a6f5a7fcce135b5ebb180b43c02..db58922e03e2f4aa4188b0c5013592caa9ba37ea 100644 (file)
@@ -70,12 +70,10 @@ config.h_vms: config.h.in ../version.sh
             -e 's/#undef HAVE_LOCALE_H$$/#define HAVE_LOCALE_H 1/' \
             -e 's/#undef HAVE_LONG_DOUBLE$$/#define HAVE_LONG_DOUBLE 1/' \
             -e 's/#undef HAVE_LONG_LONG$$/#define HAVE_LONG_LONG 1/' \
-            -e 's/#undef HAVE_MALLOC_H$$/#define HAVE_MALLOC_H 1/' \
             -e 's/#undef HAVE_MEMMOVE$$/#define HAVE_MEMMOVE 1/' \
             -e 's/#undef HAVE_MEMORY_H$$/#define HAVE_MEMORY_H 1/' \
             -e 's/#undef HAVE_MMAP$$/#define HAVE_MMAP 1/' \
             -e 's/#undef HAVE_MUNMAP$$/#define HAVE_MUNMAP 1/' \
-            -e 's/#undef HAVE_NL_TYPES_H$$/#define HAVE_NL_TYPES_H 1/' \
             -e 's/#undef HAVE_POSIX_PRINTF$$/#define HAVE_POSIX_PRINTF 1/' \
             -e 's/#undef HAVE_PTRDIFF_T$$/#define HAVE_PTRDIFF_T 1/' \
             -e 's/#undef HAVE_PUTENV$$/#define HAVE_PUTENV 1/' \
index b7bcfdced0f81068069e959c3eebeb06037a4692..71c47cd4a81e07700fc71c81049d4e6fa04fe3b7 100644 (file)
@@ -1,3 +1,9 @@
+2005-08-28  Bruno Haible  <bruno@clisp.org>
+
+       * gettext.m4 (AM_INTL_SUBDIR): Remove AC_HEADER_STDC, AC_TYPE_OFF_T
+       tests. Remove tests for locale.h, nl_types.h, malloc.h.
+       (gt_INTL_SUBDIR_CORE): Add test for __builtin_expect.
+
 2005-08-28  Bruno Haible  <bruno@clisp.org>
 
        * gettext.m4 (gt_INTL_SUBDIR_CORE): New macro, extracted from
index d953c0067c241cc303d54f1c5d91f27ea7798b91..455aa369beea1ce8fa37a9e220de63cf7a54a5cb 100644 (file)
@@ -1,4 +1,4 @@
-# gettext.m4 serial 42 (gettext-0.15)
+# gettext.m4 serial 43 (gettext-0.15)
 dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -15,7 +15,7 @@ dnl They are *not* in the public domain.
 
 dnl Authors:
 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
-dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
+dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2005.
 
 dnl Macro to add for using GNU gettext.
 
@@ -361,9 +361,7 @@ AC_DEFUN([AM_INTL_SUBDIR],
   AC_REQUIRE([AC_ISC_POSIX])dnl
   AC_REQUIRE([gl_VISIBILITY])dnl
   AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl
-  AC_REQUIRE([AC_HEADER_STDC])dnl
   AC_REQUIRE([bh_C_SIGNED])dnl
-  AC_REQUIRE([AC_TYPE_OFF_T])dnl
   AC_REQUIRE([gl_AC_TYPE_LONG_LONG])dnl
   AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl
   AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
@@ -379,7 +377,7 @@ AC_DEFUN([AM_INTL_SUBDIR],
     [AC_DEFINE([ptrdiff_t], [long],
        [Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
     ])
-  AC_CHECK_HEADERS([locale.h nl_types.h malloc.h stddef.h stdlib.h string.h])
+  AC_CHECK_HEADERS([stddef.h stdlib.h string.h])
   AC_CHECK_FUNCS([asprintf fwprintf putenv setenv setlocale snprintf wcslen])
 
   dnl Use the _snprintf function only if it is declared (because on NetBSD it
@@ -495,6 +493,13 @@ AC_DEFUN([gt_INTL_SUBDIR_CORE],
   AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl
   AC_REQUIRE([gt_INTTYPES_PRI])dnl
   AC_REQUIRE([gl_LOCK])dnl
+
+  AC_TRY_COMPILE(
+    [int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }],
+    [],
+    [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_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \
     stpcpy strcasecmp strdup strtoul tsearch __argz_count __argz_stringify \