No empty .Rs/.Re
[netbsd-mini2440.git] / crypto / dist / heimdal / cf / vararray.m4
blob57f0ce5c962bcd70c00534edb93445ee3130268f
1 dnl
2 dnl $Heimdal: vararray.m4 14166 2004-08-26 12:35:42Z joda $
3 dnl $NetBSD$
4 dnl
5 dnl Test for variable size arrays.
6 dnl
8 AC_DEFUN([rk_C_VARARRAY], [
9         AC_CACHE_CHECK([if the compiler supports variable-length arrays],[rk_cv_c_vararray],[
10         AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[int x = 0; { int y[x]; }]])],
11                 [rk_cv_c_vararray=yes],
12                 [rk_cv_c_vararray=no])])
13         if test "$rk_cv_c_vararray" = yes; then
14                 AC_DEFINE([HAVE_VARIABLE_LENGTH_ARRAY], [1],
15                         [Define if your compiler supports variable-length arrays.])
16         fi