You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by do...@apache.org on 2002/05/23 04:52:15 UTC

cvs commit: modperl Changes Makefile.PL

dougm       02/05/22 19:52:15

  Modified:    .        Changes Makefile.PL
  Log:
  autoset PERL_USELARGEFILES=0 if needed
  
  Revision  Changes    Path
  1.642     +2 -0      modperl/Changes
  
  Index: Changes
  ===================================================================
  RCS file: /home/cvs/modperl/Changes,v
  retrieving revision 1.641
  retrieving revision 1.642
  diff -u -r1.641 -r1.642
  --- Changes	16 Apr 2002 02:43:55 -0000	1.641
  +++ Changes	23 May 2002 02:52:15 -0000	1.642
  @@ -10,6 +10,8 @@
   
   =item 1.26_01-dev
   
  +autoset PERL_USELARGEFILES=0 if needed
  +
   fix taint issues with bleedperl
   
   fix bug in modules/util test
  
  
  
  1.201     +10 -7     modperl/Makefile.PL
  
  Index: Makefile.PL
  ===================================================================
  RCS file: /home/cvs/modperl/Makefile.PL,v
  retrieving revision 1.200
  retrieving revision 1.201
  diff -u -r1.200 -r1.201
  --- Makefile.PL	23 May 2002 02:44:40 -0000	1.200
  +++ Makefile.PL	23 May 2002 02:52:15 -0000	1.201
  @@ -382,13 +382,6 @@
       $PERL_EXTRA_CFLAGS .= " -DPERL_SAFE_STARTUP=1";
   }
   
  -if ($PERL_USELARGEFILES and $] >= 5.006) {
  -    $PERL_EXTRA_CFLAGS .= " $Config{ccflags}";
  -}
  -
  -# apache-1.3.xx won't compile with -D_GNU_SOURCE
  -$PERL_EXTRA_CFLAGS =~ s/-D_GNU_SOURCE//;
  -
   for (keys %PassEnv) {
       $ENV{$_} = $$_ if $$_;
   }
  @@ -430,6 +423,13 @@
   
   system_sanity_check();
   
  +if ($PERL_USELARGEFILES and $] >= 5.006) {
  +    $PERL_EXTRA_CFLAGS .= " $Config{ccflags}";
  +}
  +
  +# apache-1.3.xx won't compile with -D_GNU_SOURCE
  +$PERL_EXTRA_CFLAGS =~ s/-D_GNU_SOURCE//;
  +
   if ($USE_APACI) {
       print "Will configure via APACI";
       if($USE_DSO) {
  @@ -2459,6 +2459,9 @@
       local $Apache::src::APXS = $WITH_APXS;
       my $cflags = Apache::src->new->apxs('-q' => 'CFLAGS') || '';
       return if $cflags =~ /LARGEFILE/;
  +
  +    $PERL_USELARGEFILES=0; #just do it since
  +    return; #nobody seems to listen to the warning below
   
       phat_warn(<<EOF);
   Your Perl is uselargefiles enabled, but Apache is not, suggestions: