]> granicus.if.org Git - php/commitdiff
opcache config.m4: Use = for comparison
authorGuillaume Outters <guillaume-github@outters.eu>
Thu, 28 Jan 2016 21:54:24 +0000 (22:54 +0100)
committerNikita Popov <nikic@php.net>
Fri, 29 Jan 2016 16:02:21 +0000 (17:02 +0100)
HAVE_OPCACHE_FILE_CACHE and HAVE_HUGE_CODE_PAGES where not
correctly set on old systems (e.g. FreeBSD 8), due to a PHPism in
config.m4.  Using the standard shell operator = instead of == makes
the configure script produce the correct output.

ext/opcache/config.m4

index 497aa4c79abb357a66a436b5c44e832a1465c80e..1e7fce47f235c32a6a7adb22a4185826551d0617 100644 (file)
@@ -14,11 +14,11 @@ PHP_ARG_ENABLE(huge-code-pages, whether to enable copying PHP CODE pages into HU
 
 if test "$PHP_OPCACHE" != "no"; then
 
-  if test "$PHP_OPCACHE_FILE" == "yes"; then
+  if test "$PHP_OPCACHE_FILE" = "yes"; then
     AC_DEFINE(HAVE_OPCACHE_FILE_CACHE, 1, [Define to enable file based caching (experimental)])
   fi
 
-  if test "$PHP_HUGE_CODE_PAGES" == "yes"; then
+  if test "$PHP_HUGE_CODE_PAGES" = "yes"; then
     AC_DEFINE(HAVE_HUGE_CODE_PAGES, 1, [Define to enable copying PHP CODE pages into HUGE PAGES (experimental)])
   fi