2012-04-26 11:48:49 +00:00
|
|
|
#!/bin/bash
|
2020-08-01 15:43:08 +00:00
|
|
|
set -ex
|
2019-03-22 09:10:01 +00:00
|
|
|
if [[ "$ENABLE_ZTS" == 1 ]]; then
|
|
|
|
TS="--enable-zts";
|
2014-04-27 15:52:59 +00:00
|
|
|
else
|
|
|
|
TS="";
|
|
|
|
fi
|
2014-04-28 06:31:02 +00:00
|
|
|
if [[ "$ENABLE_DEBUG" == 1 ]]; then
|
2019-07-02 20:29:54 +00:00
|
|
|
DEBUG="--enable-debug";
|
2014-04-28 06:31:02 +00:00
|
|
|
else
|
|
|
|
DEBUG="";
|
|
|
|
fi
|
2020-04-12 22:13:58 +00:00
|
|
|
if [[ "$S390X" == 1 ]]; then
|
|
|
|
S390X_CONFIG="--without-pcre-jit";
|
|
|
|
else
|
|
|
|
S390X_CONFIG="";
|
|
|
|
fi
|
2017-04-18 18:27:19 +00:00
|
|
|
|
2014-05-08 08:08:55 +00:00
|
|
|
./buildconf --force
|
2015-08-23 20:47:51 +00:00
|
|
|
./configure \
|
2019-07-02 20:29:54 +00:00
|
|
|
--enable-option-checking=fatal \
|
2017-04-18 18:27:19 +00:00
|
|
|
--prefix="$HOME"/php-install \
|
|
|
|
$CONFIG_QUIET \
|
2014-04-28 06:31:02 +00:00
|
|
|
$DEBUG \
|
2014-04-27 15:52:59 +00:00
|
|
|
$TS \
|
2020-04-12 22:13:58 +00:00
|
|
|
$S390X_CONFIG \
|
2014-10-24 17:32:35 +00:00
|
|
|
--enable-phpdbg \
|
2014-06-30 10:30:24 +00:00
|
|
|
--enable-fpm \
|
2013-08-11 08:36:59 +00:00
|
|
|
--with-pdo-mysql=mysqlnd \
|
|
|
|
--with-mysqli=mysqlnd \
|
2012-04-28 01:27:29 +00:00
|
|
|
--with-pgsql \
|
|
|
|
--with-pdo-pgsql \
|
|
|
|
--with-pdo-sqlite \
|
|
|
|
--enable-intl \
|
2015-12-05 21:48:29 +00:00
|
|
|
--without-pear \
|
2019-03-04 13:11:34 +00:00
|
|
|
--enable-gd \
|
2019-01-11 13:15:18 +00:00
|
|
|
--with-jpeg \
|
|
|
|
--with-webp \
|
|
|
|
--with-freetype \
|
|
|
|
--with-xpm \
|
2012-04-28 01:27:29 +00:00
|
|
|
--enable-exif \
|
2019-07-02 20:29:54 +00:00
|
|
|
--with-zip \
|
2012-04-28 01:27:29 +00:00
|
|
|
--with-zlib \
|
|
|
|
--with-zlib-dir=/usr \
|
|
|
|
--enable-soap \
|
|
|
|
--enable-xmlreader \
|
|
|
|
--with-xsl \
|
|
|
|
--with-tidy \
|
|
|
|
--enable-sysvsem \
|
|
|
|
--enable-sysvshm \
|
|
|
|
--enable-shmop \
|
|
|
|
--enable-pcntl \
|
|
|
|
--with-readline \
|
|
|
|
--enable-mbstring \
|
|
|
|
--with-curl \
|
|
|
|
--with-gettext \
|
|
|
|
--enable-sockets \
|
|
|
|
--with-bz2 \
|
2013-08-13 07:17:21 +00:00
|
|
|
--with-openssl \
|
2014-04-28 07:55:51 +00:00
|
|
|
--with-gmp \
|
2014-06-09 13:30:09 +00:00
|
|
|
--enable-bcmath \
|
2014-07-06 01:09:26 +00:00
|
|
|
--enable-calendar \
|
|
|
|
--enable-ftp \
|
|
|
|
--with-pspell=/usr \
|
|
|
|
--with-enchant=/usr \
|
2015-01-25 09:21:53 +00:00
|
|
|
--with-kerberos \
|
2017-03-10 23:33:32 +00:00
|
|
|
--enable-sysvmsg \
|
2019-05-07 12:32:06 +00:00
|
|
|
--with-ffi \
|
2020-02-24 10:00:58 +00:00
|
|
|
--with-sodium \
|
2019-04-18 10:24:34 +00:00
|
|
|
--enable-zend-test=shared \
|
2019-04-23 11:24:29 +00:00
|
|
|
--enable-werror \
|
2019-10-23 10:58:21 +00:00
|
|
|
--with-pear
|
2017-04-18 18:27:19 +00:00
|
|
|
|
2020-04-24 01:27:40 +00:00
|
|
|
if [[ -z "$CONFIG_ONLY" ]]; then
|
|
|
|
MAKE_JOBS=${MAKE_JOBS:-$(nproc)}
|
|
|
|
make "-j${MAKE_JOBS}" $MAKE_QUIET
|
|
|
|
make install
|
|
|
|
fi
|