X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=free%2Flibs%2Fexamples%2Fexternal-ucw-build%2Fconfigure;h=ec4b279e7fbbed3f46fbdcac76280994efa11605;hb=1cf8ac51f5495ccd5187dc220ffc69e95d6e0cfc;hp=1e9ccedc1b103c9a2fc250fe616cd6ba3754a963;hpb=93e3291a928d278807b3824f4e7e1ff71f47836d;p=libucw.git diff --git a/free/libs/examples/external-ucw-build/configure b/free/libs/examples/external-ucw-build/configure index 1e9ccedc..ec4b279e 100755 --- a/free/libs/examples/external-ucw-build/configure +++ b/free/libs/examples/external-ucw-build/configure @@ -15,13 +15,15 @@ BEGIN { } elsif ($0 =~ m@^(.*)/configure$@ && -f "$1/$pkgfile") { $srcdir=$1; } else { - die "Don't know how to find myself. Please set SRCDIR manually."; + die "Don't know how to find myself. Please set SRCDIR manually.\n"; } } - # Ask pkg-config for the rest of configure - $libdir=`pkg-config libucw --atleast-version=3.13 --variable=perl_modules_dir`; + # Ask pkg-config if libucw is installed and find its configure modules + `pkg-config libucw --atleast-version=3.13`; + !$? or die "Package `libucw' (version 3.13 or newer) not found. Is PKG_CONFIG_PATH set properly?\n"; + $libdir=`pkg-config libucw --variable=perl_modules_dir`; chomp $libdir; - die "Package `libucw' (version 3.13 or newer) not found. Is PKG_CONFIG_PATH set properly?" if $? || not defined $libdir; + die "Unable to find the libucw configure system\n" if $? || not defined $libdir; } use lib $libdir; use UCW::Configure;