summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2011-02-08 19:36:50 -0800
committerRoland McGrath <[email protected]>2011-02-08 19:36:50 -0800
commitf64e25f232cc1f508edb1ebb66012265dd76b3f1 (patch)
treee96b0d2bc00ebe1c62bdc3eb999a712ac6ed7cf9 /configure.ac
parentbc88fffec993bcf7736ad6060ebc9c55988bb444 (diff)
Use AC_LANG_SOURCE.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 533d50e5..10698315 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,8 +63,8 @@ AM_PROG_LEX
AC_CACHE_CHECK([for gcc with C99 support], ac_cv_c99, [dnl
old_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -std=gnu99"
-AC_COMPILE_IFELSE([dnl
-int foo (int a) { for (int i = 0; i < a; ++i) if (i % 4) break; int s = a; }],
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([dnl
+int foo (int a) { for (int i = 0; i < a; ++i) if (i % 4) break; int s = a; }])],
ac_cv_c99=yes, ac_cv_c99=no)
CFLAGS="$old_CFLAGS"])
AS_IF([test "x$ac_cv_c99" != xyes],