If you want to build httpd separately from mod_perl, you should use the NO_HTTPD=1 option during the perl Makefile.PL (mod_perl build) stage. Then you will have to configure various things by hand and proceed to build Apache. You shouldn't run perl Makefile.PL before following the steps described in this section.
If you choose to manually build mod_perl, there are three things you may need to set up before the build stage:
Optionally, instead of tweaking the options during the perl Makefile.PLstage, you can edit mod_perl-1.xx/src/modules/perl/Makefile before running perl Makefile.PL.
AddModule modules/perl/libperl.a
We suggest you add this entry at the end of the Configuration file if you want your callback hooks to have precedence over core handlers.
Add the following to EXTRA_LIBS:
EXTRA_LIBS=`perl -MExtUtils::Embed -e ldopts`
Add the following to EXTRA_CFLAGS:
EXTRA_CFLAGS=`perl -MExtUtils::Embed -e ccopts`
panic% cp -r src/modules/perl apache_1.3.xx/src/modules/
When you are done with the configuration parts, run:
panic% perl Makefile.PL NO_HTTPD=1 DYNAMIC=1 EVERYTHING=1 \ APACHE_SRC=../apache_1.3.xx/src
DYNAMIC=1 enables a build of the shared mod_perl library. Add other options if required.
panic# make install
Now you may proceed with the plain Apache build process. Note that in order for your changes to the apache_1.3.xx/src/Configuration file to take effect, you must run apache_1.3.xx/src/Configure instead of the default apache_1.3.xx/configure script:
panic% cd ../apache_1.3.xx/src panic% ./Configure panic% make panic# make install
 
Continue to: