2012-04-26 19:48:49 +08:00
|
|
|
#!/bin/bash
|
2014-04-27 23:52:59 +08:00
|
|
|
if [[ "$ENABLE_MAINTAINER_ZTS" == 1 ]]; then
|
|
|
|
TS="--enable-maintainer-zts";
|
|
|
|
else
|
|
|
|
TS="";
|
|
|
|
fi
|
2014-04-28 14:31:02 +08:00
|
|
|
if [[ "$ENABLE_DEBUG" == 1 ]]; then
|
2017-07-14 02:28:44 +08:00
|
|
|
DEBUG="--enable-debug --without-pcre-valgrind";
|
2014-04-28 14:31:02 +08:00
|
|
|
else
|
|
|
|
DEBUG="";
|
|
|
|
fi
|
2017-04-19 02:27:19 +08:00
|
|
|
|
|
|
|
if [[ -z "$CONFIG_LOG_FILE" ]]; then
|
|
|
|
CONFIG_QUIET="--quiet"
|
|
|
|
CONFIG_LOG_FILE="/dev/stdout"
|
|
|
|
else
|
|
|
|
CONFIG_QUIET=""
|
|
|
|
fi
|
|
|
|
if [[ -z "$MAKE_LOG_FILE" ]]; then
|
|
|
|
MAKE_QUIET="--quiet"
|
|
|
|
MAKE_LOG_FILE="/dev/stdout"
|
|
|
|
else
|
|
|
|
MAKE_QUIET=""
|
|
|
|
fi
|
|
|
|
|
|
|
|
MAKE_JOBS=${MAKE_JOBS:-2}
|
|
|
|
|
2014-05-08 16:08:55 +08:00
|
|
|
./buildconf --force
|
2015-08-24 04:47:51 +08:00
|
|
|
./configure \
|
2017-04-19 02:27:19 +08:00
|
|
|
--prefix="$HOME"/php-install \
|
|
|
|
$CONFIG_QUIET \
|
2014-04-28 14:31:02 +08:00
|
|
|
$DEBUG \
|
2014-04-27 23:52:59 +08:00
|
|
|
$TS \
|
2014-10-25 01:32:35 +08:00
|
|
|
--enable-phpdbg \
|
2014-06-30 18:30:24 +08:00
|
|
|
--enable-fpm \
|
2013-08-11 16:36:59 +08:00
|
|
|
--with-pdo-mysql=mysqlnd \
|
|
|
|
--with-mysqli=mysqlnd \
|
2012-04-28 09:27:29 +08:00
|
|
|
--with-pgsql \
|
|
|
|
--with-pdo-pgsql \
|
|
|
|
--with-pdo-sqlite \
|
|
|
|
--enable-intl \
|
2015-12-06 05:48:29 +08:00
|
|
|
--without-pear \
|
2012-04-28 09:27:29 +08:00
|
|
|
--with-gd \
|
|
|
|
--with-jpeg-dir=/usr \
|
|
|
|
--with-png-dir=/usr \
|
|
|
|
--enable-exif \
|
|
|
|
--enable-zip \
|
2017-09-11 15:19:11 +08:00
|
|
|
--without-libzip \
|
2012-04-28 09:27:29 +08:00
|
|
|
--with-zlib \
|
|
|
|
--with-zlib-dir=/usr \
|
|
|
|
--enable-soap \
|
|
|
|
--enable-xmlreader \
|
|
|
|
--with-xsl \
|
|
|
|
--with-curl=/usr \
|
|
|
|
--with-tidy \
|
|
|
|
--with-xmlrpc \
|
|
|
|
--enable-sysvsem \
|
|
|
|
--enable-sysvshm \
|
|
|
|
--enable-shmop \
|
|
|
|
--enable-pcntl \
|
|
|
|
--with-readline \
|
|
|
|
--enable-mbstring \
|
|
|
|
--with-curl \
|
|
|
|
--with-gettext \
|
|
|
|
--enable-sockets \
|
|
|
|
--with-bz2 \
|
2013-08-13 15:17:21 +08:00
|
|
|
--with-openssl \
|
2014-04-28 15:55:51 +08:00
|
|
|
--with-gmp \
|
2014-06-09 21:30:09 +08:00
|
|
|
--enable-bcmath \
|
2014-07-06 09:09:26 +08:00
|
|
|
--enable-calendar \
|
|
|
|
--enable-ftp \
|
|
|
|
--with-pspell=/usr \
|
|
|
|
--with-enchant=/usr \
|
|
|
|
--enable-wddx \
|
2015-01-25 17:21:53 +08:00
|
|
|
--with-freetype-dir=/usr \
|
|
|
|
--with-xpm-dir=/usr \
|
|
|
|
--with-kerberos \
|
2017-03-11 07:33:32 +08:00
|
|
|
--enable-sysvmsg \
|
2017-04-19 02:27:19 +08:00
|
|
|
--enable-zend-test \
|
|
|
|
> "$CONFIG_LOG_FILE"
|
|
|
|
|
|
|
|
make "-j${MAKE_JOBS}" $MAKE_QUIET > "$MAKE_LOG_FILE"
|
|
|
|
make install >> "$MAKE_LOG_FILE"
|