php-src/travis/compile.sh
Nikita Popov 75279b50a5 Merge branch 'PHP-7.4'
* PHP-7.4:
  Add ARM64 CI to Travis
2019-10-25 16:38:13 +02:00

84 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
if [[ "$ENABLE_ZTS" == 1 ]]; then
TS="--enable-zts";
else
TS="";
fi
if [[ "$ENABLE_DEBUG" == 1 ]]; then
DEBUG="--enable-debug";
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:-$(nproc)}
./buildconf --force
./configure \
--enable-option-checking=fatal \
--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 \
--enable-gd \
--with-jpeg \
--with-webp \
--with-freetype \
--with-xpm \
--enable-exif \
--with-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 \
--with-kerberos \
--enable-sysvmsg \
--with-ffi \
--enable-zend-test=shared \
--enable-werror \
--with-pear
make "-j${MAKE_JOBS}" $MAKE_QUIET
make install