etc/services - sync with NetBSD-8
[minix.git] / crypto / external / bsd / heimdal / dist / cf / vararray.m4
blob70a3e602cd711a3b27d17a0efded0ee17e0ce185
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