]> granicus.if.org Git - php/commitdiff
phpdbg config.m4: make it detectable by old shells
authorGuillaume Outters <guillaume-github@outters.eu>
Thu, 28 Jan 2016 20:36:14 +0000 (21:36 +0100)
committerNikita Popov <nikic@php.net>
Fri, 29 Jan 2016 16:01:04 +0000 (17:01 +0100)
--enable-phpdbg is not detected on old systems (e.g.: stock FreeBSD 8), due to a PHPism in config.m4 (use of == operator).
Replacing == with the historic = makes it pass.

sapi/phpdbg/config.m4

index aa5b0efe3aa578812ee521effcf0a047efd104de..9fb4e6298443d72fea7a5ff3a0653e3fdbf91e34 100644 (file)
@@ -11,7 +11,7 @@ PHP_ARG_ENABLE(phpdbg-webhelper, for phpdbg web SAPI support,
 PHP_ARG_ENABLE(phpdbg-debug, for phpdbg debug build,
 [  --enable-phpdbg-debug      Build phpdbg in debug mode], no, no)
 
-if test "$BUILD_PHPDBG" == "" && test "$PHP_PHPDBG" != "no"; then
+if test "$BUILD_PHPDBG" = "" && test "$PHP_PHPDBG" != "no"; then
   AC_HEADER_TIOCGWINSZ
   AC_DEFINE(HAVE_PHPDBG, 1, [ ])