Author: richter
Date: Thu Sep 21 04:58:19 2023
New Revision: 1912452

URL: http://svn.apache.org/viewvc?rev=1912452&view=rev
Log:
Ask for libxml2 if ExtUtils::PkgConfig is not installed, instead of throwing an 
error

Modified:
    perl/embperl/trunk/driver/eplibxslt.MAKEPL

Modified: perl/embperl/trunk/driver/eplibxslt.MAKEPL
URL: 
http://svn.apache.org/viewvc/perl/embperl/trunk/driver/eplibxslt.MAKEPL?rev=1912452&r1=1912451&r2=1912452&view=diff
==============================================================================
--- perl/embperl/trunk/driver/eplibxslt.MAKEPL (original)
+++ perl/embperl/trunk/driver/eplibxslt.MAKEPL Thu Sep 21 04:58:19 2023
@@ -4,6 +4,12 @@ use File::Find ;
 use Cwd ;
 use ExtUtils::PkgConfig ;
 
+
+BEGIN
+    {
+    eval "use ExtUtils::PkgConfig" ;
+    $nopkgcfg = 1 if ($@) ;
+    } ;
 $win32 = ($^O eq 'MSWin32') ;
 
 my $prefix  ;
@@ -15,7 +21,7 @@ my $cflags2  ;
 my $version ;
 my $version2 ;
 
-if (!$win32)
+if (!$win32 && !$nopkgcfg)
     {
     my $pkg = 'libxml-2.0';
     my %xml2_info = ExtUtils::PkgConfig->find ($pkg) ;



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-cvs-unsubscr...@perl.apache.org
For additional commands, e-mail: embperl-cvs-h...@perl.apache.org

Reply via email to