head 1.1; access; symbols OPENPKG_E1_MP:1.1 OPENPKG_E1_MP_HEAD:1.1 OPENPKG_2_STABLE_MP:1.1 OPENPKG_2_STABLE:1.1.0.2; locks; strict; comment @# @; 1.1 date 2006.12.22.14.37.32; author rse; state Exp; branches 1.1.2.1; next ; commitid JatepDqK7uwVMwZr; 1.1.2.1 date 2006.12.22.14.37.32; author thl; state dead; branches; next 1.1.2.2; commitid 64YWMfcnWvBu2s1s; 1.1.2.2 date 2007.01.06.13.49.41; author thl; state Exp; branches; next ; commitid 64YWMfcnWvBu2s1s; desc @@ 1.1 log @perl is always required even for building PARI/GP itself; add optional Math-Pari Perl bindings @ text @Index: Makefile.PL --- Makefile.PL.orig 2006-10-25 22:36:34 +0200 +++ Makefile.PL 2006-12-22 15:24:00 +0100 @@@@ -23,8 +23,9 @@@@ grep {/^pari_tgz=(.*?)[\/\\]?$/i and $parisrc = $1} @@ARGV; grep {/^force_download$/i and $force_download = 1} @@ARGV; grep {/^parilib=(.*)$/i and $common::parilib = $1} @@ARGV; +grep {/^parihdr=(.*)$/i and $common::parihdr = $1} @@ARGV; -@@ARGV = grep !/^((machine|paridir|pari_tgz|parilib)=.*|configure|force_download)$/i, @@ARGV; +@@ARGV = grep !/^((machine|paridir|pari_tgz|parilib|parihdr)=.*|configure|force_download)$/i, @@ARGV; $paridir = find_pari_dir() unless defined $paridir or $parisrc or $force_download; ($paridir) = download_and_patch_pari($parisrc, $force_download) @@@@ -44,7 +45,7 @@@@ EOP if ($common::parilib) { - $pari_version = '2001004'; # XXXX How to get a correct one? + $pari_version = '2003001'; # XXXX How to get a correct one? $define = '-DNO_HIGHLEVEL_PARI'; print <= 2003000; -my $extra_inc = extra_includes($paridir); +my $extra_inc = $common::parihdr . " " . extra_includes($paridir); # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile being created. @ 1.1.2.1 log @file pari.patch was added on branch OPENPKG_2_STABLE on 2007-01-06 13:49:41 +0000 @ text @d1 32 @ 1.1.2.2 log @MFC: make up leeway for 2_STABLE by virtue of build-time results @ text @a0 32 Index: Makefile.PL --- Makefile.PL.orig 2006-10-25 22:36:34 +0200 +++ Makefile.PL 2006-12-22 15:24:00 +0100 @@@@ -23,8 +23,9 @@@@ grep {/^pari_tgz=(.*?)[\/\\]?$/i and $parisrc = $1} @@ARGV; grep {/^force_download$/i and $force_download = 1} @@ARGV; grep {/^parilib=(.*)$/i and $common::parilib = $1} @@ARGV; +grep {/^parihdr=(.*)$/i and $common::parihdr = $1} @@ARGV; -@@ARGV = grep !/^((machine|paridir|pari_tgz|parilib)=.*|configure|force_download)$/i, @@ARGV; +@@ARGV = grep !/^((machine|paridir|pari_tgz|parilib|parihdr)=.*|configure|force_download)$/i, @@ARGV; $paridir = find_pari_dir() unless defined $paridir or $parisrc or $force_download; ($paridir) = download_and_patch_pari($parisrc, $force_download) @@@@ -44,7 +45,7 @@@@ EOP if ($common::parilib) { - $pari_version = '2001004'; # XXXX How to get a correct one? + $pari_version = '2003001'; # XXXX How to get a correct one? $define = '-DNO_HIGHLEVEL_PARI'; print <= 2003000; -my $extra_inc = extra_includes($paridir); +my $extra_inc = $common::parihdr . " " . extra_includes($paridir); # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile being created. @