]> granicus.if.org Git - apache/blob - server/mpm/config.m4
Update our copyright for this year.
[apache] / server / mpm / config.m4
1 AC_MSG_CHECKING(which MPM to use)
2 AC_ARG_WITH(mpm,
3 APACHE_HELP_STRING(--with-mpm=MPM,Choose the process model for Apache to use.
4                           MPM={beos|worker|prefork|mpmt_os2|perchild}),[
5   APACHE_MPM=$withval
6 ],[
7   if test "x$APACHE_MPM" = "x"; then
8     APACHE_MPM=prefork
9   fi
10 ])
11 AC_MSG_RESULT($APACHE_MPM)
12
13 apache_cv_mpm=$APACHE_MPM
14         
15 if test "$apache_cv_mpm" = "worker" -o "$apache_cv_mpm" = "perchild"; then
16   APR_CHECK_APR_DEFINE(APR_HAS_THREADS, srclib/apr)
17
18   if test "x$ac_cv_define_APR_HAS_THREADS" = "xno"; then
19     AC_MSG_RESULT(The currently selected MPM requires threads which your system seems to lack)
20     AC_MSG_CHECKING(checking for replacement)
21     AC_MSG_RESULT(prefork selected)
22     apache_cv_mpm=prefork
23   fi
24 fi
25 if test ! -f "$abs_srcdir/server/mpm/$apache_cv_mpm/mpm.h"; then
26     AC_MSG_ERROR(the selected mpm -- $apache_cv_mpm -- is not supported)
27 fi
28
29 APACHE_FAST_OUTPUT(server/mpm/Makefile)
30
31 MPM_NAME=$apache_cv_mpm
32 MPM_DIR=server/mpm/$MPM_NAME
33 MPM_LIB=$MPM_DIR/lib${MPM_NAME}.la
34
35 APACHE_SUBST(MPM_NAME)
36 MODLIST="$MODLIST mpm_${MPM_NAME}"
37