compile.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #!/bin/bash
  2. if [[ "$ENABLE_MAINTAINER_ZTS" == 1 ]]; then
  3. TS="--enable-maintainer-zts";
  4. else
  5. TS="";
  6. fi
  7. if [[ "$ENABLE_DEBUG" == 1 ]]; then
  8. DEBUG="--enable-debug";
  9. else
  10. DEBUG="";
  11. fi
  12. ./buildconf --force
  13. ./configure \
  14. --prefix=$HOME"/php-install" \
  15. --quiet \
  16. $DEBUG \
  17. $TS \
  18. --enable-fpm \
  19. --with-pdo-mysql=mysqlnd \
  20. --with-mysql=mysqlnd \
  21. --with-mysqli=mysqlnd \
  22. --with-pgsql \
  23. --with-pdo-pgsql \
  24. --with-pdo-sqlite \
  25. --enable-intl \
  26. --with-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-phpdbg \
  55. --enable-calendar \
  56. --enable-ftp \
  57. --with-pspell=/usr \
  58. --with-recode=/usr \
  59. --with-enchant=/usr \
  60. --enable-wddx \
  61. --enable-sysvmsg
  62. make -j2 --quiet
  63. make install