From: Derick Rethans Date: Fri, 15 Dec 2000 15:35:48 +0000 (+0000) Subject: - Added a patch that changed the checking of which version of libmcrypt is X-Git-Tag: php-4.0.5RC1~886 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6caa8c37c222461a07b7039fa46d14a1be10f96c;p=php - Added a patch that changed the checking of which version of libmcrypt is installed (Thanks to: Anil Madhavapeddy ) --- diff --git a/ext/mcrypt/config.m4 b/ext/mcrypt/config.m4 index 9082c77fb5..0320785653 100644 --- a/ext/mcrypt/config.m4 +++ b/ext/mcrypt/config.m4 @@ -27,11 +27,11 @@ if test "$PHP_MCRYPT" != "no"; then AC_CHECK_LIB(mcrypt, mcrypt_module_open, [LIBS="$LIBS -lltdl"],[ ],) LIBS=$old_LIBS LDFLAGS="$old_LDFLAGS" - if test "$ac_cv_lib_mcrypt_init_mcrypt" = "yes"; then - AC_DEFINE(HAVE_LIBMCRYPT22,1,[ ]) - elif test "$ac_cv_lib_mcrypt_mcrypt_module_open" = "yes"; then + if test "$ac_cv_lib_mcrypt_mcrypt_module_open" = "yes"; then AC_ADD_LIBRARY(ltdl) - AC_DEFINE(HAVE_LIBMCRYPT24,1,[ ]) + AC_DEFINE(HAVE_LIBMCRYPT24,1,[ ]) + elif test "$ac_cv_lib_mcrypt_init_mcrypt" = "yes"; then + AC_DEFINE(HAVE_LIBMCRYPT22,1,[ ]) else AC_MSG_ERROR(Sorry, I was not able to diagnose which libmcrypt version you have installed.) fi