Fake that Apache is installed. Instead of checking version number with apache2 -v, we hard-code a working version. This enables the package to be built without installing a running Apache on the building host.
Hard-code apreq2-config --prefix apreq2-config will leak information about the build environment. Hard-code what --prefix returns, so it's at least slightly more sane.
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.
fix type mismatch of MGVTBL.svt_copy namelen argument Since Perl 5.12, the type of the namelen argument of the svt_copy member of MGVTBL struct has changed its type from `int` to `I32`. . Perl commit: https://github.com/Perl/perl5/commit/3468c7eaa8d7687e8ae89928492b408a4d6c752f . On 64-bit platforms `int` and `I32` are both 32-bit integers, but on 32-bit platforms I32 is `long int` and a simple `int` is 16-bit.