alloca is in stdlib.h on some platforms.
authorrbdpngn <rbdpngn>
Thu, 1 Apr 2004 17:32:30 +0000 (17:32 +0000)
committerrbdpngn <rbdpngn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 1 Apr 2004 17:32:30 +0000 (17:32 +0000)
SVN revision: 9556

legacy/embryo/configure.in
legacy/embryo/src/lib/embryo_private.h

index e015b69..dfc2729 100644 (file)
@@ -18,6 +18,7 @@ AC_HEADER_STDC
 AC_C_CONST
 AM_ENABLE_SHARED
 AM_PROG_LIBTOOL
+AC_FUNC_ALLOCA
 
 if test "x${exec_prefix}" = "xNONE"; then
   if test "x${prefix}" = "xNONE"; then
index 32ef429..f630df5 100644 (file)
 #include <limits.h>
 #include <stdarg.h>
 #include <string.h>
+
+#if HAVE_ALLOCA_H
 #include <alloca.h>
+#endif
 
 typedef enum _Embryo_Opcode Embryo_Opcode;