mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
19d8a6b771
* --with-webp-dir becomes --with-webp * --with-jpeg-dir becomes --with-jpeg * --with-png-dir is removed. libpng is required. * --with-zlib-dir is removed. zlib is required. * --with-xpm-dir becomes --with-xpm. We also enable --with-webp on Travis.
82 lines
1.4 KiB
Bash
Executable File
82 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
if [[ "$ENABLE_MAINTAINER_ZTS" == 1 ]]; then
|
|
TS="--enable-maintainer-zts";
|
|
else
|
|
TS="";
|
|
fi
|
|
if [[ "$ENABLE_DEBUG" == 1 ]]; then
|
|
DEBUG="--enable-debug --without-pcre-valgrind";
|
|
else
|
|
DEBUG="";
|
|
fi
|
|
|
|
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}
|
|
|
|
./buildconf --force
|
|
./configure \
|
|
--prefix="$HOME"/php-install \
|
|
$CONFIG_QUIET \
|
|
$DEBUG \
|
|
$TS \
|
|
--enable-phpdbg \
|
|
--enable-fpm \
|
|
--with-pdo-mysql=mysqlnd \
|
|
--with-mysqli=mysqlnd \
|
|
--with-pgsql \
|
|
--with-pdo-pgsql \
|
|
--with-pdo-sqlite \
|
|
--enable-intl \
|
|
--without-pear \
|
|
--with-gd \
|
|
--with-jpeg \
|
|
--with-webp \
|
|
--with-freetype \
|
|
--with-xpm \
|
|
--enable-exif \
|
|
--enable-zip \
|
|
--with-zlib \
|
|
--with-zlib-dir=/usr \
|
|
--enable-soap \
|
|
--enable-xmlreader \
|
|
--with-xsl \
|
|
--with-tidy \
|
|
--with-xmlrpc \
|
|
--enable-sysvsem \
|
|
--enable-sysvshm \
|
|
--enable-shmop \
|
|
--enable-pcntl \
|
|
--with-readline \
|
|
--enable-mbstring \
|
|
--with-curl \
|
|
--with-gettext \
|
|
--enable-sockets \
|
|
--with-bz2 \
|
|
--with-openssl \
|
|
--with-gmp \
|
|
--enable-bcmath \
|
|
--enable-calendar \
|
|
--enable-ftp \
|
|
--with-pspell=/usr \
|
|
--with-enchant=/usr \
|
|
--enable-wddx \
|
|
--with-kerberos \
|
|
--enable-sysvmsg \
|
|
--enable-zend-test \
|
|
> "$CONFIG_LOG_FILE"
|
|
|
|
make "-j${MAKE_JOBS}" $MAKE_QUIET > "$MAKE_LOG_FILE"
|
|
make install >> "$MAKE_LOG_FILE"
|