David Wheeler wrote:
> On Feb 7, 2006, at 3:13 AM, Tom Schindl wrote:
> 
>> I always thought that could be retrieved from "Apache2::BuildConfig"
>> e.g. to get where you apx is located you could use:
>>
>> print Apache2::BuildConfig->new()->MP_APXS . "\n";
> 
> 
> Doesn't seem to work for me:
> 
> geertz% perl -MApache2::BuildConfig -le 'print Apache2::BuildConfig-
>>new->MP_APXS, $/'
> 
> 
> geertz% perldoc Apache2::BuildConfig
> No documentation found for "Apache2::BuildConfig".
> 
> Besides, I need to detect Apache even if mod_perl isn't installed.
> 
> Best,
> 
> David
> 
> 

Your line works like a charme ;-)

-----------------8<-----------------
[EMAIL PROTECTED] ~]$ /opt/myperl/bin/perl -MApache2::BuildConfig -le 'print
Apache2::BuildConfig->new->MP_APXS, $/'
/opt/myapache/bin/apxs

[EMAIL PROTECTED] ~]$
-----------------8<-----------------

In my case the file is located in
/opt/myperl/lib/site_perl/5.8.6/i686-linux/

In think that mp2bug is also using this Apache2::BuildConfig or rather
ModPerl::Config which it self uses Apache2::BuildConfig.

The only idea if have is to ask the user for the Apache-Installation if
none is found on the system :-) e.g. using a parameter passed to perl
Makefile.PL.

Tom

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to