Subject: | On systems without GNU libidn preinstalled or installed into /usr/, use pkg-config instead of requiring perl Makefile.PL --with-libidn and --with-libidn-inc |
With ExtUtils::PkgConfig, getting those paths (if not specified) should be trivial, viz:
$ perl
use ExtUtils::PkgConfig;
$package = 'libidn';
%pkg_info = ExtUtils::PkgConfig->find ($package);
print "cflags: $pkg_info{cflags}\n";
print "libs: $pkg_info{libs}\n";
cflags: -I/usr/local/include
libs: -L/usr/local/lib -lidn
$ perl
use ExtUtils::PkgConfig;
$package = 'libidn';
%pkg_info = ExtUtils::PkgConfig->find ($package);
print "cflags: $pkg_info{cflags}\n";
print "libs: $pkg_info{libs}\n";
cflags: -I/usr/local/include
libs: -L/usr/local/lib -lidn