X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=m4%2Fvararrays.m4;h=3d7b56769c931dbb9c2da12f0d2cde5d59caf2cd;hb=4c70b27d0ef674b04f414b8e7f6717e6a1d73a46;hp=192b612274d4ac8f7df7566ab112769519f932fd;hpb=42d1eda5dcce2d68deab7a642e7f29bcd7144a0d;p=gnulib.git diff --git a/m4/vararrays.m4 b/m4/vararrays.m4 index 192b61227..3d7b56769 100644 --- a/m4/vararrays.m4 +++ b/m4/vararrays.m4 @@ -1,10 +1,10 @@ # Check for variable-length arrays. -# serial 3 +# serial 4 # From Paul Eggert -# Copyright (C) 2001, 2009 Free Software Foundation, Inc. +# Copyright (C) 2001, 2009-2013 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -13,9 +13,9 @@ AC_DEFUN([AC_C_VARARRAYS], [ AC_CACHE_CHECK([for variable-length arrays], ac_cv_c_vararrays, - [AC_TRY_COMPILE( - [], - [static int x; char a[++x]; a[sizeof a - 1] = 0; return a[0];], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM( + [], + [[static int x; char a[++x]; a[sizeof a - 1] = 0; return a[0];]])], ac_cv_c_vararrays=yes, ac_cv_c_vararrays=no)]) if test $ac_cv_c_vararrays = yes; then