1999-06-05 19:52:58 +00:00
|
|
|
dnl $Id$
|
|
|
|
|
2000-03-27 23:33:38 +00:00
|
|
|
PHP_ARG_WITH(mm,for mm support,
|
|
|
|
[ --with-mm[=DIR] Include mm support for session storage])
|
|
|
|
|
|
|
|
PHP_ARG_ENABLE(trans-sid,whether to enable transparent session id propagation,
|
|
|
|
[ --enable-trans-sid Enable transparent session id propagation])
|
2000-03-26 02:47:00 +00:00
|
|
|
|
2000-05-01 02:42:55 +00:00
|
|
|
PHP_ARG_ENABLE(session, whether to enable session support,
|
|
|
|
[ --disable-session Disable session support], yes)
|
|
|
|
|
2000-03-26 02:47:00 +00:00
|
|
|
if test "$PHP_MM" != "no"; then
|
|
|
|
for i in /usr/local /usr $PHP_MM; do
|
|
|
|
if test -f "$i/include/mm.h"; then
|
2001-05-12 11:09:05 +00:00
|
|
|
MM_DIR=$i
|
2000-03-26 02:47:00 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
if test -z "$MM_DIR" ; then
|
|
|
|
AC_MSG_ERROR(cannot find mm library)
|
|
|
|
fi
|
2000-05-01 02:42:55 +00:00
|
|
|
|
2001-03-27 20:35:04 +00:00
|
|
|
PHP_ADD_LIBRARY_WITH_PATH(mm, $MM_DIR/lib, SESSION_SHARED_LIBADD)
|
|
|
|
PHP_ADD_INCLUDE($MM_DIR/include)
|
2000-03-26 02:47:00 +00:00
|
|
|
AC_DEFINE(HAVE_LIBMM, 1, [Whether you have libmm])
|
|
|
|
PHP_MODULE_PTR(phpext_ps_mm_ptr)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$PHP_TRANS_SID" = "yes"; then
|
|
|
|
AC_DEFINE(TRANS_SID, 1, [Whether you want transparent session id propagation])
|
|
|
|
fi
|
1999-08-27 21:03:22 +00:00
|
|
|
|
2000-05-01 02:42:55 +00:00
|
|
|
if test "$PHP_SESSION" != "no"; then
|
2001-05-11 17:43:40 +00:00
|
|
|
AC_CHECK_FUNCS(pread pwrite)
|
2001-05-20 23:39:09 +00:00
|
|
|
PHP_MISSING_PWRITE_DECL
|
|
|
|
PHP_MISSING_PREAD_DECL
|
2000-05-01 02:42:55 +00:00
|
|
|
PHP_EXTENSION(session,$ext_shared)
|
2000-05-02 04:01:15 +00:00
|
|
|
PHP_SUBST(SESSION_SHARED_LIBADD)
|
2000-03-26 02:47:00 +00:00
|
|
|
fi
|