+dnl ----
+dnl MHASH
+dnl ----
+
+ if test "$PHP_MHASH" != "no"; then
+ for i in $PHP_MHASH /usr/local /usr /opt/mhash; do
+ test -f $i/include/mhash.h && MHASH_DIR=$i && break
+ done
+
+ if test -z "$MHASH_DIR"; then
+ AC_MSG_ERROR(Please reinstall libmhash - cannot find mhash.h)
+ fi
+
+ PHP_ADD_INCLUDE($MHASH_DIR/include)
+ PHP_ADD_LIBRARY_WITH_PATH(mhash, $MHASH_DIR/lib, MHASH_SHARED_LIBADD)
+ AC_DEFINE(HAVE_LIBMHASH,1,[HAve mhash support])
+ fi
+