php-src/ext/mhash/config.m4

26 lines
660 B
Plaintext
Raw Normal View History

1999-05-16 12:01:25 +00:00
dnl $Id$
dnl config.m4 for extension mhash
dnl don't forget to call PHP_EXTENSION(mhash)
2000-03-27 23:43:00 +00:00
PHP_ARG_WITH(mhash, for mhash support,
[ --with-mhash[=DIR] Include mhash support. DIR is the mhash
2000-03-27 23:43:00 +00:00
install directory.])
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
2000-03-27 23:43:00 +00:00
AC_ADD_INCLUDE($MHASH_DIR/include)
AC_ADD_LIBRARY_WITH_PATH(mhash, $MHASH_DIR/lib)
AC_DEFINE(HAVE_LIBMHASH,1,[ ])
PHP_EXTENSION(mhash)
fi