X-Git-Url: http://git.indexdata.com/?p=simpleserver-moved-to-github.git;a=blobdiff_plain;f=Makefile.PL;h=d3bc617ebce8768acb13c7dd8ef102cd235ab9f2;hp=a280ea00f386e0dedc599482f3a8c75ceb9c563f;hb=650f9f63991b895eb0335503b7d24771d022e083;hpb=bf76c3f6ff0e224efce7e47f9f778f6379a3e504 diff --git a/Makefile.PL b/Makefile.PL index a280ea0..d3bc617 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,13 +1,27 @@ use ExtUtils::MakeMaker; -## $Id: Makefile.PL,v 1.4 2004-06-05 07:55:05 adam Exp $ +## $Id: Makefile.PL,v 1.8 2005-03-13 20:01:38 adam Exp $ -my $libs = `yaz-config --libs` || die "ERROR: Unable to call script: yaz-config"; +my $yazconf = "yaz-config"; +my $yazinc = `$yazconf --cflags threads`; +my $yazlibs = `$yazconf --libs threads`; +if (!$yazinc && !$yazlibs) { + die qq[ +ERROR: Unable to call script: yaz-config +If you're using a YAZ installation from the Debian package "yaz", you +will also need to install "libyaz-dev" in order to build the +SimpleServer module. +]; +} + +# For Windows use +# $yazinc = '-Ic:\yaz\include' +# $yazlibs = 'c:\yaz\lib\yaz.lib' WriteMakefile( 'NAME' => 'Net::Z3950::SimpleServer', 'VERSION_FROM' => 'SimpleServer.pm', # finds $VERSION - 'LIBS' => [$libs], # e.g., '-lm' + 'LIBS' => [$yazlibs], # e.g., '-lm' 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' - 'INC' => '', # e.g., '-I/usr/include/other' + 'INC' => $yazinc, # e.g., '-I/usr/include/other' );