2 # Configure Script for UCW Libraries
3 # (c) 2007--2010 Martin Mares <mj@ucw.cz>
10 my $pkgfile = "ucw/wildmatch.c";
11 if (!defined ($srcdir = $ENV{"SRCDIR"})) {
14 } elsif ($0 =~ m@^(.*)/configure$@ && -f "$1/$pkgfile") {
17 die "Don't know how to find myself. Please set SRCDIR manually.\n";
22 use lib "$srcdir/ucw/perl/";
25 Init($srcdir, "default.cfg");
26 Include "ucw/default.cfg";
27 Log "### Configuring UCW Libraries " . Get("UCW_VERSION") . " with configuration " . Get("CONFIG") . "\n";
28 Include Get("CONFIG");
29 require UCW::Configure::Paths;
30 require UCW::Configure::C;
31 require UCW::Configure::LibUCW;
32 require UCW::Configure::Doc;
35 Log "\nConfigured, run `make' to build everything.\n";