X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fintl.m4;h=d67e29c5de33af5f480d8837c5baab8545b6cf27;hb=519433afa90446b3a2e9d0bbfc145525b185471f;hp=335b23c20ceab742e8803266f7c99b0f4565d0fd;hpb=190bf61ecbb3727a3dd742498938be9e251f9315;p=gnulib.git diff --git a/m4/intl.m4 b/m4/intl.m4 index 335b23c20..d67e29c5d 100644 --- a/m4/intl.m4 +++ b/m4/intl.m4 @@ -1,5 +1,5 @@ -# intl.m4 serial 17 (gettext-0.18) -dnl Copyright (C) 1995-2009 Free Software Foundation, Inc. +# intl.m4 serial 17c +dnl Copyright (C) 1995-2012 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. @@ -17,7 +17,7 @@ dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2009. -AC_PREREQ([2.52]) +AC_PREREQ([2.53]) dnl Checks for all prerequisites of the intl subdirectory, dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, @@ -220,9 +220,10 @@ AC_DEFUN([gt_INTL_SUBDIR_CORE], AC_REQUIRE([gt_INTTYPES_PRI])dnl AC_REQUIRE([gl_LOCK])dnl - AC_TRY_LINK( - [int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }], - [], + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[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.])]) @@ -279,16 +280,21 @@ dnl Check whether a function is declared. AC_DEFUN([gt_CHECK_DECL], [ AC_CACHE_CHECK([whether $1 is declared], [ac_cv_have_decl_$1], - [AC_TRY_COMPILE([$2], [ + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[$2]], + [[ #ifndef $1 char *p = (char *) $1; #endif -], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)]) + ]])], + [ac_cv_have_decl_$1=yes], + [ac_cv_have_decl_$1=no])]) if test $ac_cv_have_decl_$1 = yes; then gt_value=1 else gt_value=0 fi AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value], - [Define to 1 if you have the declaration of `$1', and to 0 if you don't.]) + [Define to 1 if you have the declaration of '$1', and to 0 if you don't.]) ])