#!/usr/local/cpanel/3rdparty/bin/perl

$ENV{'LANG'} = 'C';

my @paths = grep( !/cpan_sandbox/, split( /:/, $ENV{'PATH'} ) );
foreach my $path (@paths) {
    if ( -x $path . '/' . 'xml2-config' ) {
        if ( grep( /--libs/, @ARGV ) && -e '/usr/lib64' ) {
            print "-L/usr/lib64 ";
        }
        exec( $path . '/' . 'xml2-config', @ARGV );
    }
}
die;
