freebsd-nq/crypto/heimdal/cf/vararray.m4
2008-05-07 13:39:42 +00:00

17 lines
502 B
Plaintext

dnl
dnl $Id: vararray.m4 14166 2004-08-26 12:35:42Z joda $
dnl
dnl Test for variable size arrays.
dnl
AC_DEFUN([rk_C_VARARRAY], [
AC_CACHE_CHECK([if the compiler supports variable-length arrays],[rk_cv_c_vararray],[
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[int x = 0; { int y[x]; }]])],
[rk_cv_c_vararray=yes],
[rk_cv_c_vararray=no])])
if test "$rk_cv_c_vararray" = yes; then
AC_DEFINE([HAVE_VARIABLE_LENGTH_ARRAY], [1],
[Define if your compiler supports variable-length arrays.])
fi
])