From: oetiker Date: Wed, 21 Nov 2007 06:47:17 +0000 (+0000) Subject: make perlbuild more portable X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=af075c4b504d2e29f1ec903363c83109845aaa57;p=rrdtool.git make perlbuild more portable git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1240 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/bindings/perl-shared/Makefile.PL b/bindings/perl-shared/Makefile.PL index 863444c..8793dd8 100644 --- a/bindings/perl-shared/Makefile.PL +++ b/bindings/perl-shared/Makefile.PL @@ -31,7 +31,9 @@ WriteMakefile( 'DEFINE' => "-DPERLPATCHLEVEL=$Config{PATCHLEVEL}", 'INC' => '-I../../src', # Perl will figure out which one is valid - 'dynamic_lib' => {'OTHERLDFLAGS' => "$librrd -lm"}, + #'dynamic_lib' => {'OTHERLDFLAGS' => "$librrd -lm"}, + 'depend' => {'RRDs.c' => "../../src/librrd.la"}, + 'LDFROM' => '$(OBJECT) '.$librrd, 'realclean' => {FILES => 't/demo?.rrd t/demo?.png' } ); diff --git a/configure.ac b/configure.ac index 7912436..9d1f5f9 100644 --- a/configure.ac +++ b/configure.ac @@ -91,6 +91,7 @@ AH_BOTTOM([ #ifdef HAVE_SYS_MMAN_H # include #endif + #if !defined HAVE_MADVISE && defined HAVE_POSIX_MADVISE /* use posix_madvise family */ # define madvise posix_madvise