1#!/bin/bash 2if [[ "$ENABLE_MAINTAINER_ZTS" == 1 ]]; then 3 TS="--enable-maintainer-zts"; 4else 5 TS=""; 6fi 7if [[ "$ENABLE_DEBUG" == 1 ]]; then 8 DEBUG="--enable-debug"; 9else 10 DEBUG=""; 11fi 12./buildconf --force 13./configure \ 14--prefix=$HOME"/php-install" \ 15--quiet \ 16$DEBUG \ 17$TS \ 18--enable-phpdbg \ 19--enable-fpm \ 20--with-pdo-mysql=mysqlnd \ 21--with-mysqli=mysqlnd \ 22--with-pgsql \ 23--with-pdo-pgsql \ 24--with-pdo-sqlite \ 25--enable-intl \ 26--without-pear \ 27--with-gd \ 28--with-jpeg-dir=/usr \ 29--with-png-dir=/usr \ 30--enable-exif \ 31--enable-zip \ 32--with-zlib \ 33--with-zlib-dir=/usr \ 34--with-mcrypt=/usr \ 35--enable-soap \ 36--enable-xmlreader \ 37--with-xsl \ 38--with-curl=/usr \ 39--with-tidy \ 40--with-xmlrpc \ 41--enable-sysvsem \ 42--enable-sysvshm \ 43--enable-shmop \ 44--enable-pcntl \ 45--with-readline \ 46--enable-mbstring \ 47--with-curl \ 48--with-gettext \ 49--enable-sockets \ 50--with-bz2 \ 51--with-openssl \ 52--with-gmp \ 53--enable-bcmath \ 54--enable-calendar \ 55--enable-ftp \ 56--with-pspell=/usr \ 57--with-enchant=/usr \ 58--enable-wddx \ 59--with-freetype-dir=/usr \ 60--with-xpm-dir=/usr \ 61--with-kerberos \ 62--enable-sysvmsg 63make -j2 --quiet 64make install 65