]> mj.ucw.cz Git - libucw.git/blobdiff - free/libs/examples/external-ucw-build/configure
Example: Request a new version of libucw.
[libucw.git] / free / libs / examples / external-ucw-build / configure
index f87fcc735132e471a4abfc5bc206db351fdbd44d..1e9ccedc1b103c9a2fc250fe616cd6ba3754a963 100755 (executable)
@@ -1,8 +1,6 @@
 #!/usr/bin/perl
 #!/usr/bin/perl
-# Configure script for the libucw example
+# Configure script for the libucw example (inspired by ../external/configure)
 # (c) 2008 Michal Vaner <vorner@ucw.cz>
 # (c) 2008 Michal Vaner <vorner@ucw.cz>
-# A lot copyed from ../external/configure
-# (c) 2007 Martin Mares <mj@ucw.cz>
 
 use warnings;
 use strict;
 
 use warnings;
 use strict;
@@ -21,9 +19,9 @@ BEGIN {
                }
        }
        # Ask pkg-config for the rest of configure
                }
        }
        # Ask pkg-config for the rest of configure
-       $libdir=`pkg-config libucw --variable=perl_modules_dir`;
+       $libdir=`pkg-config libucw --atleast-version=3.13 --variable=perl_modules_dir`;
        chomp $libdir;
        chomp $libdir;
-       die "libUCW not found. Is PKG_CONFIG_PATH set properly?" if $? || not defined $libdir;
+       die "Package `libucw' (version 3.13 or newer) not found. Is PKG_CONFIG_PATH set properly?" if $? || not defined $libdir;
 }
 use lib $libdir;
 use UCW::Configure;
 }
 use lib $libdir;
 use UCW::Configure;