Don't try to regenerate Makefiles at installation time, as this will forget to link against the internal copy of libapreq2-dev, which will cause problems when trying to load the module outside Apache. Index: libapreq2-2.12/glue/Makefile.am =================================================================== --- libapreq2-2.12.orig/glue/Makefile.am +++ libapreq2-2.12/glue/Makefile.am @@ -15,7 +15,6 @@ perl_test: perl/Makefile cd perl; $(MAKE) test perl_install: - cd perl; INSTALL=1 @PERL@ @PERL_OPTS@ Makefile.PL -apxs @APACHE2_APXS@ @MM_OPTS@ cd perl; $(MAKE) install perl_clean: Index: libapreq2-2.12/glue/Makefile.in =================================================================== --- libapreq2-2.12.orig/glue/Makefile.in +++ libapreq2-2.12/glue/Makefile.in @@ -265,7 +265,6 @@ perl_test: perl/Makefile cd perl; $(MAKE) test perl_install: - cd perl; INSTALL=1 @PERL@ @PERL_OPTS@ Makefile.PL -apxs @APACHE2_APXS@ @MM_OPTS@ cd perl; $(MAKE) install perl_clean: