Skip to content

Commit 5947437

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Fix bug #79112: IMAP can't find OpenSSL during configure
2 parents 6ada49a + 7438046 commit 5947437

File tree

4 files changed

+8
-20
lines changed

4 files changed

+8
-20
lines changed

build/php.m4

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,13 +1920,7 @@ dnl
19201920
AC_DEFUN([PHP_SETUP_OPENSSL],[
19211921
found_openssl=no
19221922
1923-
dnl Empty variable means 'no'.
1924-
test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
1925-
test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
1926-
1927-
if test "$PHP_OPENSSL" != "no"; then
1928-
PKG_CHECK_MODULES([OPENSSL], [openssl >= 1.0.1], [found_openssl=yes])
1929-
fi
1923+
PKG_CHECK_MODULES([OPENSSL], [openssl >= 1.0.1], [found_openssl=yes])
19301924
19311925
if test "$found_openssl" = "yes"; then
19321926
PHP_EVAL_LIBLINE($OPENSSL_LIBS, $1)

ext/ftp/config.m4

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ PHP_ARG_ENABLE([ftp],
33
[AS_HELP_STRING([--enable-ftp],
44
[Enable FTP support])])
55

6+
dnl TODO: Rename this option for master.
67
PHP_ARG_WITH([openssl-dir],
7-
[OpenSSL dir for FTP],
8-
[AS_HELP_STRING([[--with-openssl-dir[=DIR]]],
9-
[FTP: openssl install prefix])],
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])],
1011
[no],
1112
[no])
1213

ext/imap/config.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ AC_DEFUN([PHP_IMAP_SSL_CHK], [
7373
], [
7474
AC_MSG_ERROR([OpenSSL libraries not found.
7575
76-
Check the path given to --with-openssl-dir and output in config.log)
76+
Check whether openssl is on your PKG_CONFIG_PATH and the output in config.log)
7777
])
7878
])
7979
elif test -f "$IMAP_INC_DIR/linkage.c"; then
@@ -100,8 +100,8 @@ PHP_ARG_WITH([kerberos],
100100

101101
PHP_ARG_WITH([imap-ssl],
102102
[for IMAP SSL support],
103-
[AS_HELP_STRING([[--with-imap-ssl[=DIR]]],
104-
[IMAP: Include SSL support. DIR is the OpenSSL install prefix])],
103+
[AS_HELP_STRING([[--with-imap-ssl]],
104+
[IMAP: Include SSL support])],
105105
[no],
106106
[no])
107107

ext/snmp/config.m4

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@ PHP_ARG_WITH([snmp],
33
[AS_HELP_STRING([[--with-snmp[=DIR]]],
44
[Include SNMP support])])
55

6-
PHP_ARG_WITH([openssl-dir],
7-
[OpenSSL dir for SNMP],
8-
[AS_HELP_STRING([[--with-openssl-dir[=DIR]]],
9-
[SNMP: openssl install prefix])],
10-
[no],
11-
[no])
12-
136
if test "$PHP_SNMP" != "no"; then
147

158
if test "$PHP_SNMP" = "yes"; then

0 commit comments

Comments
 (0)