config.m4 808 B

1234567891011121314151617181920212223242526
  1. PHP_ARG_ENABLE([ftp],
  2. [whether to enable FTP support],
  3. [AS_HELP_STRING([--enable-ftp],
  4. [Enable FTP support])])
  5. dnl TODO: Rename this option for master.
  6. PHP_ARG_WITH([openssl-dir],
  7. [whether to explicitly enable FTP SSL support],
  8. [AS_HELP_STRING([[--with-openssl-dir]],
  9. [FTP: Whether to enable FTP SSL support without ext/openssl])],
  10. [no],
  11. [no])
  12. if test "$PHP_FTP" = "yes"; then
  13. AC_DEFINE(HAVE_FTP,1,[Whether you want FTP support])
  14. PHP_NEW_EXTENSION(ftp, php_ftp.c ftp.c, $ext_shared)
  15. dnl Empty variable means 'no'
  16. test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
  17. if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then
  18. PHP_SETUP_OPENSSL(FTP_SHARED_LIBADD)
  19. PHP_SUBST(FTP_SHARED_LIBADD)
  20. AC_DEFINE(HAVE_FTP_SSL,1,[Whether FTP over SSL is supported])
  21. fi
  22. fi