Include alloca.h into glib.h if needed.
[mono.git] / eglib / configure.ac
index 26a8e58d3232553412fb5ccff1a44b96c01c49cb..7d52c708efba2d3e2851c22fe4069c4a10aa4986 100644 (file)
@@ -127,6 +127,8 @@ fi
 AC_SUBST(G_HAVE_ISO_VARARGS)
 
 AC_CHECK_HEADERS(getopt.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h localcharset.h)
+AC_CHECK_HEADER(alloca.h, [HAVE_ALLOCA_H=1], [HAVE_ALLOCA_H=0])
+AC_SUBST(HAVE_ALLOCA_H)
 
 if test $ac_cv_sizeof_void_p != $ac_cv_sizeof_int; then
    GPOINTER_TO_INT="((gint)(long) (ptr))"