diff options
| author | Sascha Schumann <sas@php.net> | 1999-04-25 16:50:40 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 1999-04-25 16:50:40 +0000 |
| commit | 11fc109ca647ecb70c544fa8e6a93b9cfb0f3853 (patch) | |
| tree | fd82426253f9aa26fed0cb8ef533abfebb316770 /ext/mcrypt/config.m4 | |
| parent | c4442ed7c56de371cb8d76b6a2148b48f5889e1b (diff) | |
| download | php-git-11fc109ca647ecb70c544fa8e6a93b9cfb0f3853.tar.gz | |
add mcrypt module
Diffstat (limited to 'ext/mcrypt/config.m4')
| -rw-r--r-- | ext/mcrypt/config.m4 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ext/mcrypt/config.m4 b/ext/mcrypt/config.m4 new file mode 100644 index 0000000000..78dd7fb497 --- /dev/null +++ b/ext/mcrypt/config.m4 @@ -0,0 +1,28 @@ +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/lcrypt.h; then + MCRYPT_DIR=$i + fi + done + 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) +]) |
