From f78cf8ee67a7d0f0f7b4bb381a46dd592061564d Mon Sep 17 00:00:00 2001 From: foobar Date: Sat, 22 Sep 2001 17:55:16 +0000 Subject: [PATCH] Moved the check for mcrypt_generic_deinit to the right place. --- ext/mcrypt/config.m4 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/ext/mcrypt/config.m4 b/ext/mcrypt/config.m4 index ae04910373..5f6c206a94 100644 --- a/ext/mcrypt/config.m4 +++ b/ext/mcrypt/config.m4 @@ -21,6 +21,14 @@ if test "$PHP_MCRYPT" != "no"; then [ PHP_ADD_LIBRARY(ltdl,, MCRYPT_SHARED_LIBADD) AC_DEFINE(HAVE_LIBMCRYPT24,1,[ ]) + + PHP_CHECK_LIBRARY(mcrypt, mcrypt_generic_deinit, + [ + AC_DEFINE(HAVE_MCRYPT_GENERIC_DEINIT,1,[ ]) + ],[],[ + -L$MCRYPT_DIR/lib + ]) + ],[ PHP_CHECK_LIBRARY(mcrypt, init_mcrypt, [ @@ -31,13 +39,6 @@ if test "$PHP_MCRYPT" != "no"; then -L$MCRYPT_DIR/lib ]) - PHP_CHECK_LIBRARY(mcrypt, mcrypt_generic_deinit, - [ - AC_DEFINE(HAVE_MCRYPT_GENERIC_DEINIT,1,[ ]) - ],[],[ - -L$MCRYPT_DIR/lib - ]) - ],[ -L$MCRYPT_DIR/lib -lltdl ]) -- 2.50.1