feat: make gmp flag configurable

This commit is contained in:
susurri
2020-11-30 01:04:40 +09:00
parent ba85be6aa3
commit 1f2fd044d5

View File

@@ -90,7 +90,6 @@ construct_configure_options() {
--with-xmlrpc \
--with-zip \
--with-zlib \
--without-gmp \
--without-snmp"
if [ "$PHP_CONFIGURE_OPTIONS" = "" ]; then
@@ -99,6 +98,12 @@ construct_configure_options() {
local configure_options="$PHP_CONFIGURE_OPTIONS $global_config"
fi
if [ "${PHP_WITH_GMP:-no}" != "no" ]; then
configure_options="$configure_options --with-gmp"
else
configure_options="$configure_options --without-gmp"
fi
if [ "${PHP_WITHOUT_PEAR:-no}" != "no" ]; then
configure_options="$configure_options --without-pear"
else