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