1f59d82ffSelricdnl 2*fcfd9267Selricdnl Id 3f59d82ffSelricdnl 4f59d82ffSelricdnl Test for variable size arrays. 5f59d82ffSelricdnl 6f59d82ffSelric 7f59d82ffSelricAC_DEFUN([rk_C_VARARRAY], [ 8f59d82ffSelric AC_CACHE_CHECK([if the compiler supports variable-length arrays],[rk_cv_c_vararray],[ 9f59d82ffSelric AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[int x = 0; { int y[x]; }]])], 10f59d82ffSelric [rk_cv_c_vararray=yes], 11f59d82ffSelric [rk_cv_c_vararray=no])]) 12f59d82ffSelric if test "$rk_cv_c_vararray" = yes; then 13f59d82ffSelric AC_DEFINE([HAVE_VARIABLE_LENGTH_ARRAY], [1], 14f59d82ffSelric [Define if your compiler supports variable-length arrays.]) 15f59d82ffSelric fi 16f59d82ffSelric]) 17