2001-11-30 19:00:13 +00:00
|
|
|
dnl
|
1999-05-16 12:01:25 +00:00
|
|
|
dnl $Id$
|
2001-11-30 19:00:13 +00:00
|
|
|
dnl
|
1999-05-16 12:01:25 +00:00
|
|
|
|
2000-03-27 23:43:00 +00:00
|
|
|
PHP_ARG_WITH(mhash, for mhash support,
|
2001-11-30 19:00:13 +00:00
|
|
|
[ --with-mhash[=DIR] Include mhash support.])
|
1999-05-16 12:01:25 +00:00
|
|
|
|
2000-03-27 23:43:00 +00:00
|
|
|
if test "$PHP_MHASH" != "no"; then
|
|
|
|
for i in /usr/local /usr /opt/mhash $PHP_MHASH; do
|
|
|
|
if test -f $i/include/mhash.h; then
|
|
|
|
MHASH_DIR=$i
|
|
|
|
fi
|
|
|
|
done
|
1999-05-16 12:01:25 +00:00
|
|
|
|
2000-03-27 23:43:00 +00:00
|
|
|
if test -z "$MHASH_DIR"; then
|
|
|
|
AC_MSG_ERROR(Please reinstall libmhash - I cannot find mhash.h)
|
1999-05-16 12:01:25 +00:00
|
|
|
fi
|
2001-03-27 20:35:04 +00:00
|
|
|
PHP_ADD_INCLUDE($MHASH_DIR/include)
|
|
|
|
PHP_ADD_LIBRARY_WITH_PATH(mhash, $MHASH_DIR/lib, MHASH_SHARED_LIBADD)
|
2000-05-02 04:01:15 +00:00
|
|
|
PHP_SUBST(MHASH_SHARED_LIBADD)
|
2000-03-27 23:43:00 +00:00
|
|
|
|
|
|
|
AC_DEFINE(HAVE_LIBMHASH,1,[ ])
|
|
|
|
|
2002-03-12 16:44:00 +00:00
|
|
|
PHP_NEW_EXTENSION(mhash, mhash.c, $ext_shared)
|
2000-03-27 23:43:00 +00:00
|
|
|
fi
|