From 60fe575ce3d5ad0647d3c12698d0d3fcb0cb8f7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD=20=D0=9F=D0=B0=D0=BB=D0=B0?= =?UTF-8?q?=D1=83=D0=B7=D0=BE=D0=B2?= Date: Fri, 19 Nov 2021 21:30:41 +0200 Subject: [PATCH] Fix #75725: ./configure: detecting RAND_egd Closes GH-7668. --- NEWS | 3 +++ ext/openssl/config0.m4 | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 41654b32945..f17112179cf 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,9 @@ PHP NEWS - GD: . Fixed bug #71316 (libpng warning from imagecreatefromstring). (cmb) +- OpenSSL: + . Fixed bug #75725 (./configure: detecting RAND_egd). (Dilyan Palauzov) + - Standard: . Fixed bug #81618 (dns_get_record fails on FreeBSD for missing type). (fsbruva) diff --git a/ext/openssl/config0.m4 b/ext/openssl/config0.m4 index 9df2469363f..9714ffec174 100644 --- a/ext/openssl/config0.m4 +++ b/ext/openssl/config0.m4 @@ -28,8 +28,6 @@ if test "$PHP_OPENSSL" != "no"; then PHP_EVAL_LIBLINE($KERBEROS_LIBS, OPENSSL_SHARED_LIBADD) fi - AC_CHECK_FUNCS([RAND_egd]) - PHP_SETUP_OPENSSL(OPENSSL_SHARED_LIBADD, [ AC_DEFINE(HAVE_OPENSSL_EXT,1,[ ]) @@ -39,4 +37,5 @@ if test "$PHP_OPENSSL" != "no"; then if test "$PHP_SYSTEM_CIPHERS" != "no"; then AC_DEFINE(USE_OPENSSL_SYSTEM_CIPHERS,1,[ Use system default cipher list instead of hardcoded value ]) fi + AC_CHECK_FUNCS([RAND_egd]) fi