From: Adam Dickmeiss Date: Thu, 9 Sep 2004 14:07:06 +0000 (+0000) Subject: Use idzebra-config for Perl Makefile X-Git-Tag: snippet.version.1~362 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=cb968c5c5fc37ac9bfbc8b91227b377d31e683e1;p=idzebra-moved-to-github.git Use idzebra-config for Perl Makefile --- diff --git a/perl/Makefile.PL.in b/perl/Makefile.PL.in index f771960..8d4eae1 100644 --- a/perl/Makefile.PL.in +++ b/perl/Makefile.PL.in @@ -1,10 +1,12 @@ use ExtUtils::MakeMaker; +my $libs = `../idzebra-config --libs`; +my $flags = `../idzebra-config --cflags`; WriteMakefile( 'NAME' => 'IDZebra', 'OBJECT' => 'IDZebra_wrap.o zebra_perl.o' , - 'INC' => "-I@top_srcdir@/index -I../include @YAZINC@", - 'LIBS' => "-L@top_srcdir@/index -lzebra @TCL_LIB@ @YAZLIB@ @ZPERL_LIBS@", + 'INC' => $flags, + 'LIBS' => [$libs], 'OPTIMIZE' => '-g', # 'PREREQ_FATAL' => 1, 'PREREQ_PM' => {