1 # UCW Library configuration system: find UCW build system
2 # (c) 2008 Michal Vaner <vorner@ucw.cz>
4 # This module asks pkg-config for a path to UCW build system
5 # and sets propper variables for it (or fails, as it is expected
6 # the build system is crucial).
8 package UCW::Configure::Build;
14 if (!IsGiven("BUILDSYS")) {
15 Test("BUILDSYS", "Looking for UCW build system", sub {
16 my $path=`pkg-config libucw --variable=build_system`;
17 if($? || not defined $path) {
18 Fail("Not found (is libUCW installed and PKG_CONFIG_PATH set?)");