1 AC_MSG_CHECKING(which MPM to use)
3 APACHE_HELP_STRING(--with-mpm=MPM,Choose the process model for Apache to use.
4 MPM={simple|event|worker|prefork|winnt}
7 AC_MSG_RESULT($withval);
9 dnl Order of preference for default MPM:
10 dnl The Windows and OS/2 MPMs are used on those platforms.
11 dnl Everywhere else: event, worker, prefork
12 if ap_mpm_is_supported "winnt"; then
15 elif ap_mpm_is_supported "mpmt_os2"; then
17 AC_MSG_RESULT(mpmt_os2)
18 elif ap_mpm_is_supported "event"; then
21 elif ap_mpm_is_supported "worker"; then
23 AC_MSG_RESULT(worker - event is not supported)
26 AC_MSG_RESULT(prefork - event and worker are not supported)
30 APACHE_MPM_ENABLED($default_mpm)
32 AC_ARG_ENABLE(mpms-shared,
33 APACHE_HELP_STRING(--enable-mpms-shared=MODULE-LIST,Space-separated list of shared MPM modules to enable | "all"),[
35 for i in $enableval; do
36 if test "$i" = "all"; then
37 for j in $SUPPORTED_MPMS; do
38 eval "enable_mpm_$j=shared"
39 APACHE_MPM_ENABLED($j)
42 i=`echo $i | sed 's/-/_/g'`
43 eval "enable_mpm_$i=shared"
44 APACHE_MPM_ENABLED($i)
47 ], [mpm_build=static])
49 for i in $ENABLED_MPMS; do
50 if ap_mpm_is_supported $i; then
53 AC_MSG_ERROR([MPM $i is not supported on this platform.])
57 APACHE_FAST_OUTPUT(server/mpm/Makefile)
59 if test $mpm_build = "shared"; then
62 MPM_LIB=server/mpm/$default_mpm/lib${default_mpm}.la
63 MODLIST="$MODLIST mpm_${default_mpm}"
66 MPM_SUBDIRS=$ENABLED_MPMS
67 APACHE_SUBST(MPM_SUBDIRS)