From af94bd4a6befb2610a6f0ff0197e7904c20f52a1 Mon Sep 17 00:00:00 2001 From: ellson Date: Tue, 22 May 2007 16:44:22 +0000 Subject: [PATCH] add test for /usr/include/php5 (debian) v. /usr/include/php (fedora) --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 2610d78fb..d7eaba41c 100644 --- a/configure.ac +++ b/configure.ac @@ -768,7 +768,11 @@ if test `$SWIG -help 2>&1 | $GREP -c '\-php[[5 ]]*- Generate'` = 0; then AC_MSG_WARN([swig does not support php. The PHP packages will not be built]) else AC_CHECK_PROG(PHP,php,php) -PHP_INCLUDES="-I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/Zend -I/usr/include/php5/TSRM -I/usr/include/php5 -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM" +if test -d /usr/include/php5; then +PHP_INCLUDES="-I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/Zend -I/usr/include/php5/TSRM" +else +PHP_INCLUDES="-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM" +fi PHP_LIBS= save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $PHP_INCLUDES" -- 2.40.0