Commit 69598e396c0e58444dc8de3e869e25da5b0e551d
1 parent
9017fb84
Exists in
master
and in
5 other branches
Atualizando empacotamento windows
Showing
1 changed file
with
17 additions
and
6 deletions
Show diff stats
configure.ac
@@ -396,12 +396,23 @@ AC_SEARCH_LIBS([dlopen], [dl], AC_DEFINE(HAVE_LIBDL), AC_MSG_NOTICE([libdl not p | @@ -396,12 +396,23 @@ AC_SEARCH_LIBS([dlopen], [dl], AC_DEFINE(HAVE_LIBDL), AC_MSG_NOTICE([libdl not p | ||
396 | 396 | ||
397 | AC_ARG_WITH([php-config], [AS_HELP_STRING([--with-php-config], [Path to php-config tool])], [ PHPCONFIG="$withval" ],[ AC_PATH_TOOL(PHPCONFIG, php-config, , $PATH) ]) | 397 | AC_ARG_WITH([php-config], [AS_HELP_STRING([--with-php-config], [Path to php-config tool])], [ PHPCONFIG="$withval" ],[ AC_PATH_TOOL(PHPCONFIG, php-config, , $PATH) ]) |
398 | 398 | ||
399 | -if test -z "${PHPCONFIG}"; then | ||
400 | - AC_MSG_NOTICE([Program php-config not found. Use --with-php-config=path to specify absolute path to the php-config tool.]) | ||
401 | -else | ||
402 | - AC_DEFINE(HAVE_PHP) | ||
403 | - EXTENSIONS="$EXTENSIONS php" | ||
404 | -fi | 399 | +case "$host" in |
400 | + *-mingw32) | ||
401 | + AC_MSG_NOTICE([PHP disabled on windows platforms.]) | ||
402 | + ;; | ||
403 | + | ||
404 | + *-apple-*) | ||
405 | + AC_MSG_NOTICE([PHP disabled on apple platforms.]) | ||
406 | + ;; | ||
407 | + | ||
408 | + *) | ||
409 | + if test -z "${PHPCONFIG}"; then | ||
410 | + AC_MSG_NOTICE([Program php-config not found. Use --with-php-config=path to specify absolute path to the php-config tool.]) | ||
411 | + else | ||
412 | + AC_DEFINE(HAVE_PHP) | ||
413 | + EXTENSIONS="$EXTENSIONS php" | ||
414 | + fi | ||
415 | +esac | ||
405 | 416 | ||
406 | AC_SUBST(PHPCONFIG) | 417 | AC_SUBST(PHPCONFIG) |
407 | 418 |