]> granicus.if.org Git - php/commitdiff
MFH:- Prevent errors in CVS builds when bison is not there (for Sean :)
authorJani Taskinen <jani@php.net>
Wed, 16 Jul 2008 16:23:59 +0000 (16:23 +0000)
committerJani Taskinen <jani@php.net>
Wed, 16 Jul 2008 16:23:59 +0000 (16:23 +0000)
configure.in

index f8fef85c77f059b6f19b4795e6c756358a76329a..6d38a0fcce79ef1045274564e2c3b341809ebb85 100644 (file)
@@ -151,6 +151,15 @@ PHP_PROG_AWK
 PHP_PROG_BISON
 PHP_PROG_LEX
 
+dnl Check if bison generated files exist when bison does not..
+case $php_cv_bison_version in
+  ""|invalid[)]
+    if ! test -f "$abs_srcdir/Zend/zend_language_parser.h" || ! test -f "$abs_srcdir/Zend/zend_language_parser.c" ; then
+      AC_MSG_ERROR([bison is required to build PHP/Zend when building a CVS checkout!])
+    fi
+    ;;
+esac
+
 dnl Platform-specific compile settings.
 dnl -------------------------------------------------------------------------