From 6bcd0ae557bd09398d069c9cdba1b5f905906a9a Mon Sep 17 00:00:00 2001 From: foobar Date: Sat, 22 Sep 2001 17:51:07 +0000 Subject: [PATCH] Check if mcrypt lib has mcrypt_generic_deinit --- ext/mcrypt/config.m4 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ext/mcrypt/config.m4 b/ext/mcrypt/config.m4 index e98b77ebf8..ae04910373 100644 --- a/ext/mcrypt/config.m4 +++ b/ext/mcrypt/config.m4 @@ -30,6 +30,14 @@ 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