From: Bruno Haible Date: Mon, 8 May 2006 13:33:33 +0000 (+0000) Subject: Fix __builtin_expect detection. X-Git-Tag: v0.15~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e2c6c315671deb5473738530ebd4ccda4dd96a1;p=thirdparty%2Fgettext.git Fix __builtin_expect detection. --- diff --git a/gettext-runtime/m4/ChangeLog b/gettext-runtime/m4/ChangeLog index 290753434..4d8fd6c71 100644 --- a/gettext-runtime/m4/ChangeLog +++ b/gettext-runtime/m4/ChangeLog @@ -1,3 +1,8 @@ +2006-05-07 Bruno Haible + + * gettext.m4 (gt_INTL_SUBDIR_CORE): Fix test of __builtin_expect so + that it works correctly with non-gcc compilers. + 2006-04-17 Bruno Haible * nls.m4 (AM_MKINSTALLDIRS): Remove macro. diff --git a/gettext-runtime/m4/gettext.m4 b/gettext-runtime/m4/gettext.m4 index d8e8f0dc5..e26ce00a7 100644 --- a/gettext-runtime/m4/gettext.m4 +++ b/gettext-runtime/m4/gettext.m4 @@ -1,4 +1,4 @@ -# gettext.m4 serial 46 (gettext-0.15) +# gettext.m4 serial 47 (gettext-0.15) 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, @@ -492,7 +492,7 @@ AC_DEFUN([gt_INTL_SUBDIR_CORE], AC_REQUIRE([gt_INTTYPES_PRI])dnl AC_REQUIRE([gl_LOCK])dnl - AC_TRY_COMPILE( + AC_TRY_LINK( [int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }], [], [AC_DEFINE([HAVE_BUILTIN_EXPECT], 1,