php-src/travis/compile.sh

84 lines
1.5 KiB
Bash
Raw Normal View History

2012-04-26 19:48:49 +08:00
#!/bin/bash
if [[ "$ENABLE_MAINTAINER_ZTS" == 1 ]]; then
TS="--enable-maintainer-zts";
else
TS="";
fi
if [[ "$ENABLE_DEBUG" == 1 ]]; then
2017-07-14 02:28:44 +08:00
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}
2014-05-08 16:08:55 +08:00
./buildconf --force
./configure \
--prefix="$HOME"/php-install \
$CONFIG_QUIET \
$DEBUG \
$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 \
--with-pgsql \
--with-pdo-pgsql \
--with-pdo-sqlite \
--enable-intl \
2015-12-06 05:48:29 +08:00
--without-pear \
--with-gd \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--enable-exif \
--enable-zip \
--without-libzip \
--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 \
--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 \
--enable-sysvmsg \
--enable-zend-test \
> "$CONFIG_LOG_FILE"
make "-j${MAKE_JOBS}" $MAKE_QUIET > "$MAKE_LOG_FILE"
make install >> "$MAKE_LOG_FILE"