mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
- MFH Fix dependency checks
This commit is contained in:
parent
c4b81d8720
commit
477f503b9e
1 changed files with 3 additions and 3 deletions
|
@ -1000,8 +1000,7 @@ AC_DEFUN([PHP_WITH_SHARED],[
|
||||||
dnl
|
dnl
|
||||||
dnl PHP_ADD_EXTENSION_DEP(extname, depends [, depconf])
|
dnl PHP_ADD_EXTENSION_DEP(extname, depends [, depconf])
|
||||||
dnl
|
dnl
|
||||||
dnl This macro is currently a placeholder in the config.m4 file
|
dnl This macro is scanned by genif.sh when it builds the internal functions
|
||||||
dnl it is scanned by genif.sh when it builds the internal functions
|
|
||||||
dnl list, so that modules can be init'd in the correct order
|
dnl list, so that modules can be init'd in the correct order
|
||||||
dnl $1 = name of extension, $2 = extension upon which it depends
|
dnl $1 = name of extension, $2 = extension upon which it depends
|
||||||
dnl $3 = optional: if true, it's ok for $2 to have not been configured
|
dnl $3 = optional: if true, it's ok for $2 to have not been configured
|
||||||
|
@ -1013,6 +1012,7 @@ dnl
|
||||||
AC_DEFUN([PHP_ADD_EXTENSION_DEP], [
|
AC_DEFUN([PHP_ADD_EXTENSION_DEP], [
|
||||||
am_i_shared=$[PHP_]translit($1,a-z_-,A-Z__)[_SHARED]
|
am_i_shared=$[PHP_]translit($1,a-z_-,A-Z__)[_SHARED]
|
||||||
is_it_shared=$[PHP_]translit($2,a-z_-,A-Z__)[_SHARED]
|
is_it_shared=$[PHP_]translit($2,a-z_-,A-Z__)[_SHARED]
|
||||||
|
is_it_enabled=$[PHP_]translit($2,a-z_-,A-Z__)
|
||||||
if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
|
if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
|
||||||
AC_MSG_ERROR([
|
AC_MSG_ERROR([
|
||||||
You've configured extension $1 to build statically, but it
|
You've configured extension $1 to build statically, but it
|
||||||
|
@ -1021,7 +1021,7 @@ You either need to build $1 shared or build $2 statically for the
|
||||||
build to be successful.
|
build to be successful.
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
if test "x$is_it_shared" = "x" && test "x$3" != "xtrue"; then
|
if test "x$is_it_enabled" = "xno" && test "x$3" != "xtrue"; then
|
||||||
AC_MSG_ERROR([
|
AC_MSG_ERROR([
|
||||||
You've configured extension $1, which depends on extension $2,
|
You've configured extension $1, which depends on extension $2,
|
||||||
but you've either not enabled $2, or have disabled it.
|
but you've either not enabled $2, or have disabled it.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue