+use PLP;
+
+use constant MP2 => (
+ defined $ENV{MOD_PERL_API_VERSION} and $ENV{MOD_PERL_API_VERSION} >= 2
+);
+
+BEGIN {
+ if (MP2) {
+ require Apache2::Const;
+ require Apache2::RequestRec;
+ require Apache2::RequestUtil;
+ require Apache2::RequestIO;
+ } else {
+ require Apache::Constants;
+ }
+}
+
+our $r;
+