1 use ExtUtils::MakeMaker;
3 ## $Id: Makefile.PL,v 1.8 2005-03-13 20:01:38 adam Exp $
5 my $yazconf = "yaz-config";
6 my $yazinc = `$yazconf --cflags threads`;
7 my $yazlibs = `$yazconf --libs threads`;
8 if (!$yazinc && !$yazlibs) {
10 ERROR: Unable to call script: yaz-config
11 If you're using a YAZ installation from the Debian package "yaz", you
12 will also need to install "libyaz-dev" in order to build the
18 # $yazinc = '-Ic:\yaz\include'
19 # $yazlibs = 'c:\yaz\lib\yaz.lib'
22 'NAME' => 'Net::Z3950::SimpleServer',
23 'VERSION_FROM' => 'SimpleServer.pm', # finds $VERSION
24 'LIBS' => [$yazlibs], # e.g., '-lm'
25 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
26 'INC' => $yazinc, # e.g., '-I/usr/include/other'