1999-04-25 16:50:40 +00:00
|
|
|
dnl $Id$
|
|
|
|
dnl config.m4 for extension mcrypt
|
|
|
|
dnl don't forget to call PHP_EXTENSION(mcrypt)
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for mcrypt support)
|
|
|
|
AC_ARG_WITH(mcrypt,
|
|
|
|
[ --with-mcrypt[=DIR] Include mcrypt support. DIR is the mcrypt
|
|
|
|
install directory.],
|
|
|
|
[
|
|
|
|
if test "$withval" != "no"; then
|
|
|
|
for i in /usr/local /usr $withval; do
|
1999-05-01 11:14:22 +00:00
|
|
|
if test -f $i/include/mcrypt.h; then
|
1999-04-25 16:50:40 +00:00
|
|
|
MCRYPT_DIR=$i
|
|
|
|
fi
|
|
|
|
done
|
1999-05-01 11:14:22 +00:00
|
|
|
if test "$MCRYPT_DIR" = ""; then
|
1999-05-21 08:20:13 +00:00
|
|
|
AC_MSG_ERROR(Please reinstall libmcrypt - I cannot find mcrypt.h)
|
1999-05-01 11:14:22 +00:00
|
|
|
fi
|
1999-06-20 18:52:46 +00:00
|
|
|
AC_ADD_INCLUDE($MCRYPT_DIR/include)
|
|
|
|
AC_ADD_LIBRARY_WITH_PATH(mcrypt, $MCRYPT_DIR/lib)
|
1999-04-25 16:50:40 +00:00
|
|
|
|
|
|
|
AC_DEFINE(HAVE_LIBMCRYPT)
|
|
|
|
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
PHP_EXTENSION(mcrypt)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
],[
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
])
|