[ --with-mpm=MPM Choose the process model for Apache to use.
MPM={dexter,mpmt_beos,mpmt_pthread,prefork,spmt_os2}],[
APACHE_MPM=$withval
+ mpm_explicit="yes"
],[
APACHE_MPM=mpmt_pthread
case "`uname -sr`" in
"OS/2"*)
APACHE_MPM=spmt_os2;;
esac
+ mpm_explicit="no"
])
AC_MSG_RESULT($APACHE_MPM)
APACHE_FAST_OUTPUT(modules/mpm/Makefile)
MPM_NAME=$apache_cv_mpm
-if test "$MPM_NAME" = "prefork" ; then
+MPM_DIR=modules/mpm/$MPM_NAME
+MPM_LIB=$MPM_DIR/lib${MPM_NAME}.la
+
+if test "$mpm_explicit" = "no"; then
+ if test "$MPM_NAME" = "prefork" ; then
MPM_NAME="mpmt_pthread"
EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_THREADS"
ac_cv_enable_threads="no"
AC_CACHE_SAVE
-fi
+ fi
-if test "$MPM_NAME" = "mpmt_pthread" ; then
+ if test "$MPM_NAME" = "mpmt_pthread" ; then
EXTRA_CFLAGS="$EXTRA_CFLAGS -DMPMT_PTHREAD"
-elif test "$MPM_NAME" = "dexter" ; then
+ elif test "$MPM_NAME" = "dexter" ; then
EXTRA_CFLAGS="$EXTRA_CFLAGS -DDEXTER"
-fi
+ fi
-if test "$MPM_NAME" = "dexter" -o "$MPM_NAME" = "mpmt_pthread"; then
+ if test "$MPM_NAME" = "dexter" -o "$MPM_NAME" = "mpmt_pthread"; then
MPM_DIR=modules/mpm/mpmt;
MPM_LIB=$MPM_DIR/libmpmt.la
MPM_NAME="mpmt"
-else
+ else
MPM_DIR=modules/mpm/$MPM_NAME
MPM_LIB=$MPM_DIR/lib${MPM_NAME}.la
+ fi
fi
APACHE_SUBST(MPM_NAME)