blob: b1ff3d465a479442d2cd58a383c171b2d22823d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
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
if test -f $i/include/mcrypt.h; then
MCRYPT_DIR=$i
fi
done
if test "$MCRYPT_DIR" = ""; then
AC_MSG_ERROR(Please install mcrypt.h and libmcrypt.a accordingly to the do
cumentation - I cannot find mcrypt.h)
fi
INCLUDES="$INCLUDES -I$MCRYPT_DIR/include"
EXTRA_LIBS="$EXTRA_LIBS -L$MCRYPT_DIR/lib -lmcrypt"
AC_DEFINE(HAVE_LIBMCRYPT)
AC_MSG_RESULT(yes)
PHP_EXTENSION(mcrypt)
else
AC_MSG_RESULT(no)
fi
],[
AC_MSG_RESULT(no)
])
|