On Monday, July 28, 2003, at 04:28 AM, Robin Berjon wrote:
 eval {
     print "running xml2-config... ";
-    my $libs = backtick('xml2-config --libs');
+    my $libs = backtick('xml2-config --libs') . " -L/sw/lib";
     $config{LIBS} .= " $libs" if $libs;
-    my $inc = backtick('xml2-config --cflags');
+    my $inc = backtick('xml2-config --cflags') . " -I/sw/include";
     $config{INC} .= " $inc" if $inc;
     print "ok\n";
 };

It's a hack I'm afraid (but hey, whatever gets AxKit to install...). Passing the right options on the command line should have ended those directories in $config{LIBS,INC}. Either there's a bug in the Makefile.PL, or you've mispassed an option.

What would the correct options have looked like? I tried --libs=-L/sw/lib, '--libs=-L/sw/lib', LIBS=/sw/lib and 'LIBS=/sw/lib' I think.


Here's a context grep (and you can see my changes)

% grep -C LIBS Makefile.PL
    print "running xml2-config... ";
    my $libs = backtick('xml2-config --libs') . " -L/sw/lib";
    $config{LIBS} .= " $libs" if $libs;
    my $inc = backtick('xml2-config --cflags') . " -I/sw/include";
    $config{INC} .= " $inc" if $inc;
--
if (have_library('xml2')) {
    $config{DEFINE} .= ' -DHAVE_LIBXML2';
    $config{LIBS} .= ' -lxml2 -lz';
    $xml_parser_found++;
}
--
    $config{CCFLAGS} = $Config{ccflags} .
        ' -D_WINSOCK2API_ -D_MSWSOCK_ -D_INC_SIGNAL -D_INC_MALLOC ';
    $config{LIBS} =
        qq{ -L"$Apache::MyConfig::Setup{APACHE_LIB}" -lApacheCore } .
        qq{ -L"$Apache::MyConfig::Setup{MODPERL_LIB}" -lmod_perl};
--
    my ($src, $opt) = @_;
    my $cfile = gensym();
    # local $config{LIBS};
    # $config{LIBS} .= $opt;
    unless (mkdir(".testlink", 0777)) {
        rm_fr(".testlink");


simon



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to