From: Bruno Haible Date: Wed, 31 Aug 2005 10:40:41 +0000 (+0000) Subject: Remove unused tests from AM_INTL_SUBDIR. X-Git-Tag: v0.15~406 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc051ee5f0063b6b892188447c5b270205b20819;p=thirdparty%2Fgettext.git Remove unused tests from AM_INTL_SUBDIR. --- diff --git a/gettext-runtime/ChangeLog b/gettext-runtime/ChangeLog index 72f646e30..1c9343b89 100644 --- a/gettext-runtime/ChangeLog +++ b/gettext-runtime/ChangeLog @@ -1,3 +1,8 @@ +2005-08-28 Bruno Haible + + * Makefile.am (config.h_vms): Remove setting of HAVE_MALLOC_H, + HAVE_NL_TYPES_H. + 2005-08-28 Bruno Haible * Makefile.am (intl/libgnuintl.h_vms, intl/libgnuintl.h.msvc-static, diff --git a/gettext-runtime/Makefile.am b/gettext-runtime/Makefile.am index 77db5b116..db58922e0 100644 --- a/gettext-runtime/Makefile.am +++ b/gettext-runtime/Makefile.am @@ -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/' \ diff --git a/gettext-runtime/m4/ChangeLog b/gettext-runtime/m4/ChangeLog index b7bcfdced..71c47cd4a 100644 --- a/gettext-runtime/m4/ChangeLog +++ b/gettext-runtime/m4/ChangeLog @@ -1,3 +1,9 @@ +2005-08-28 Bruno Haible + + * 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 * gettext.m4 (gt_INTL_SUBDIR_CORE): New macro, extracted from diff --git a/gettext-runtime/m4/gettext.m4 b/gettext-runtime/m4/gettext.m4 index d953c0067..455aa369b 100644 --- a/gettext-runtime/m4/gettext.m4 +++ b/gettext-runtime/m4/gettext.m4 @@ -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 , 1995-2000. -dnl Bruno Haible , 2000-2003. +dnl Bruno Haible , 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 \