config.m4 688 B

123456789101112131415161718192021
  1. dnl config.m4 for extension ftp
  2. PHP_ARG_ENABLE(ftp,whether to enable FTP support,
  3. [ --enable-ftp Enable FTP support])
  4. PHP_ARG_WITH(openssl-dir,OpenSSL dir for FTP,
  5. [ --with-openssl-dir[=DIR] FTP: openssl install prefix], no, no)
  6. if test "$PHP_FTP" = "yes"; then
  7. AC_DEFINE(HAVE_FTP,1,[Whether you want FTP support])
  8. PHP_NEW_EXTENSION(ftp, php_ftp.c ftp.c, $ext_shared)
  9. dnl Empty variable means 'no'
  10. test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
  11. if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then
  12. PHP_SETUP_OPENSSL(FTP_SHARED_LIBADD)
  13. PHP_SUBST(FTP_SHARED_LIBADD)
  14. AC_DEFINE(HAVE_FTP_SSL,1,[Whether FTP over SSL is supported])
  15. fi
  16. fi