+ AC_MSG_ERROR("obstack.h not found")
+fi
+
+
+AC_CHECK_HEADERS(alloca.h, ac_alloca_headers="yes", ac_alloca_headers="no")
+if test "$ac_alloca_headers" != yes; then
+ if test "$ac_cv_header_stdc" == no; then
+ AC_MSG_ERROR("alloca.h and stdlib.h not found")
+ else
+ AC_DEFINE(HAVE_ALLOCA_H)
+ fi
+fi
+
+
+dnl check for jni header files
+
+if test "$enable_firm_jni" = yes; then
+ AC_CHECK_HEADERS(jni.h, ac_jni_headers="yes", ac_jni_headers="no")
+ if test "$ac_jni_headers" != yes; then
+ AC_MSG_ERROR(jni header file not found. (IPD: add --with-includedir=/usr/public2/java/jdk1.3.1-sun/include/:/usr/public2/java/jdk1.3.1-sun/include/linux/ to configure flags))
+ fi