Date: 12/15/00
- Next message: Anil Madhavapeddy: "Re: [PHP-DEV] libmcrypt patch"
- Previous message: Bill Stoddard: "[PHP-DEV] [PATCH] Fix symbol conflict tripping up AIX compiles using xlc"
- Maybe in reply to: Anil Madhavapeddy: "[PHP-DEV] libmcrypt patch"
- Next in thread: Derick Rethans: "Re: [PHP-DEV] libmcrypt patch"
- Reply: Derick Rethans: "Re: [PHP-DEV] libmcrypt patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Quoting Derick Rethans <d.rethans <email protected>>:
> I suggest the following:
> check for "mcrypt_init_module", this only available on the 2.4.x
> series, that's for sure. If configure doesn't find this functon,
> we fall back to 2.2.x and test if "init_mcrypt" works. If this
> doesn't work either, then the module isn't corretly used (wether
> on the system, or the wrong line after --with-mcrypt=)
>
Which is exactly what this patch is intended to do (and fixes my problem)
-- Anil Madhavapeddy, <anil <email protected>>
Index: ext/mcrypt/config.m4 =================================================================== RCS file: /repository/php4/ext/mcrypt/config.m4,v retrieving revision 1.14 diff -u -r1.14 config.m4 --- ext/mcrypt/config.m4 2000/09/09 12:24:20 1.14 +++ ext/mcrypt/config.m4 2000/12/14 20:22:53 @@ -27,11 +27,11 @@ 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,[ ]) + 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
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Anil Madhavapeddy: "Re: [PHP-DEV] libmcrypt patch"
- Previous message: Bill Stoddard: "[PHP-DEV] [PATCH] Fix symbol conflict tripping up AIX compiles using xlc"
- Maybe in reply to: Anil Madhavapeddy: "[PHP-DEV] libmcrypt patch"
- Next in thread: Derick Rethans: "Re: [PHP-DEV] libmcrypt patch"
- Reply: Derick Rethans: "Re: [PHP-DEV] libmcrypt patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

