Typo fixed.
[libfirm] / configure.in
index f35f27a..62a160d 100644 (file)
@@ -187,13 +187,15 @@ fi
 
 
 dnl check for the obstack header file
-AC_FUNC_OBSTACK
+dnl does not work with:
+dnl  - cygwin
+dnl  - MacOSX
+#AC_FUNC_OBSTACK
 
-#AC_CHECK_HEADERS(obstack.h, ac_obstack_headers="yes", ac_obstack_headers="no")
-#if test "$ac_obstack_headers" != yes; then
-if test "$ac_cv_func_obstack" != "yes"; then
+AC_CHECK_HEADERS(obstack.h, ac_obstack_headers="yes", ac_obstack_headers="no")
+if test "$ac_obstack_headers" != yes; then
   dnl obstack header not found.
-  AC_MSG_ERROR("no obstack support")
+  AC_MSG_ERROR("obstack.h not found")
 fi
 
 
@@ -202,7 +204,7 @@ 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 -I/usr/public2/java/jdk1.3.1-sun/include/ -I/usr/public2/java/jdk1.3.1-sun/include/linux/ to CPPFLAGS))
+    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
 fi