Check the GSS-API checksum exists before trying to use it [CVE-2010-1321]
[heimdal.git] / cf / vararray.m4
blob8511b16287b2a5f87ba5a4dc83194563b1751105
1 dnl
2 dnl $Id$
3 dnl
4 dnl Test for variable size arrays.
5 dnl
7 AC_DEFUN([rk_C_VARARRAY], [
8         AC_CACHE_CHECK([if the compiler supports variable-length arrays],[rk_cv_c_vararray],[
9         AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[int x = 0; { int y[x]; }]])],
10                 [rk_cv_c_vararray=yes],
11                 [rk_cv_c_vararray=no])])
12         if test "$rk_cv_c_vararray" = yes; then
13                 AC_DEFINE([HAVE_VARIABLE_LENGTH_ARRAY], [1],
14                         [Define if your compiler supports variable-length arrays.])
15         fi