summaryrefslogtreecommitdiff
path: root/ext/mcrypt/config.m4
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-05-01 11:14:22 +0000
committerSascha Schumann <sas@php.net>1999-05-01 11:14:22 +0000
commit8baa86ed515469788e28c16aea4f80029078d03b (patch)
treed72c62d270c6d485828e90b4724f0f98e679d840 /ext/mcrypt/config.m4
parent064f75fd1b11f42431a2118289e211fa9afe267e (diff)
downloadphp-git-8baa86ed515469788e28c16aea4f80029078d03b.tar.gz
mcrypt 2.1.18 support, better autoconf checking
Diffstat (limited to 'ext/mcrypt/config.m4')
-rw-r--r--ext/mcrypt/config.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/mcrypt/config.m4 b/ext/mcrypt/config.m4
index 78dd7fb497..b1ff3d465a 100644
--- a/ext/mcrypt/config.m4
+++ b/ext/mcrypt/config.m4
@@ -9,10 +9,14 @@ AC_ARG_WITH(mcrypt,
[
if test "$withval" != "no"; then
for i in /usr/local /usr $withval; do
- if test -f $i/include/lcrypt.h; then
+ 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"