Use idzebra-config for Perl Makefile
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 9 Sep 2004 14:07:06 +0000 (14:07 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 9 Sep 2004 14:07:06 +0000 (14:07 +0000)
perl/Makefile.PL.in

index f771960..8d4eae1 100644 (file)
@@ -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'     => {