- Fix for bug #6263

This commit is contained in:
Derick Rethans 2000-08-20 17:39:44 +00:00
parent 5a7409ee1a
commit 45e9e3a9fe

View File

@ -20,9 +20,10 @@ if test "$PHP_MCRYPT" != "no"; then
AC_ADD_INCLUDE($MCRYPT_DIR/include)
PHP_SUBST(MCRYPT_SHARED_LIBADD)
old_LDFLAGS="$LDFLAGS"
old_LIBS=$LIBS
LIBS="-lmcrypt"
LDFLAGS="$ld_runpath_switch$MCRYPT_DIR/lib -L$MCRYPT_DIR/lib"
AC_CHECK_LIB(mcrypt, init_mcrypt)
old_LIBS=$LIBS
LIBS="$LIBS -lltdl"
AC_CHECK_LIB(mcrypt, mcrypt_module_open, [LIBS="$LIBS -lltdl"],[ ],)
LIBS=$old_LIBS