Tidier output in configure when php is not found

This commit is contained in:
William S Fulton 2017-01-27 08:36:03 +00:00
commit c766bf334a

View file

@ -1950,6 +1950,7 @@ else
PHP5=$PHP5BIN PHP5=$PHP5BIN
fi fi
if test -n "$PHP5"; then
AC_MSG_CHECKING(for PHP5 header files) AC_MSG_CHECKING(for PHP5 header files)
dnl /usr/bin/php5 -> /usr/bin/php-config5 dnl /usr/bin/php5 -> /usr/bin/php-config5
case $PHP5 in case $PHP5 in
@ -1973,6 +1974,7 @@ else
*) *)
AC_MSG_RESULT([found PHP $php_version - not PHP 5]) ;; AC_MSG_RESULT([found PHP $php_version - not PHP 5]) ;;
esac esac
fi
fi fi
AC_SUBST(PHP5) AC_SUBST(PHP5)
AC_SUBST(PHP5INC) AC_SUBST(PHP5INC)
@ -1997,6 +1999,7 @@ else
PHP=$PHPBIN PHP=$PHPBIN
fi fi
if test -n "$PHP"; then
AC_MSG_CHECKING(for PHP header files) AC_MSG_CHECKING(for PHP header files)
dnl /usr/bin/php7.0 -> /usr/bin/php-config7.0 dnl /usr/bin/php7.0 -> /usr/bin/php-config7.0
case $PHP in case $PHP in
@ -2020,6 +2023,7 @@ else
*) *)
AC_MSG_RESULT([found PHP $php_version - not PHP 7]) ;; AC_MSG_RESULT([found PHP $php_version - not PHP 7]) ;;
esac esac
fi
fi fi
AC_SUBST(PHP) AC_SUBST(PHP)
AC_SUBST(PHPINC) AC_SUBST(PHPINC)