openat: Ensure autoconf macro ordering.
[pspp] / m4 / intl.m4
index c918e571771b122179874bd5bb3fcb4e12ff13e1..d84bc4a9b43582a6972082b31ad78d79f25000d5 100644 (file)
@@ -1,4 +1,4 @@
-# intl.m4 serial 17a
+# intl.m4 serial 17b
 dnl Copyright (C) 1995-2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -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.])])
 
@@ -280,7 +281,7 @@ AC_DEFUN([gt_CHECK_DECL],
 [
   AC_CACHE_CHECK([whether $1 is declared], [ac_cv_have_decl_$1],
     [AC_COMPILE_IFELSE(
-       [AC_LANG_PRORAM(
+       [AC_LANG_PROGRAM(
           [[$2]],
           [[
 #ifndef $1