]> granicus.if.org Git - graphviz/commitdiff
Add check for zend.h for php binding; not available on SGIs.
authorellson <devnull@localhost>
Tue, 12 Apr 2005 14:28:02 +0000 (14:28 +0000)
committerellson <devnull@localhost>
Tue, 12 Apr 2005 14:28:02 +0000 (14:28 +0000)
configure.ac

index dcc12f38b5aee2e87e1e165ffcd92001de5e9e9b..7813f2c71beec7f5289d988e1d3fb10711a05c8b 100644 (file)
@@ -360,6 +360,12 @@ else
   PHP_INCLUDES="-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM"
   PHP_LIBS=
 fi
+save_CPPFLAGS=$CPPFLAGS
+CPPFLAGS="$CPPFLAGS $PHP_INCLUDES"
+AC_CHECK_HEADER(zend.h,,[
+  AC_MSG_WARN([Unable to find header zend.h. The PHP packages will not be built])
+  HAVE_PHP=0])
+CPPFLAGS=$save_CPPFLAGS
 AC_SUBST(HAVE_PHP)
 AC_SUBST(PHP_INCLUDES)
 AC_SUBST(PHP_LIBS)