]> git.pld-linux.org Git - packages/apache.git/blob - apache-apxs.patch
- initial 2.4.x fun
[packages/apache.git] / apache-apxs.patch
1 --- httpd-2.2.3/support/apxs.in-orig    2006-11-01 00:59:27.000000000 +0100
2 +++ httpd-2.2.3/support/apxs.in 2006-11-01 00:59:54.000000000 +0100
3 @@ -35,6 +35,7 @@
4  my $exec_prefix    = get_vars("exec_prefix");
5  my $datadir        = get_vars("datadir");
6  my $localstatedir  = get_vars("localstatedir");
7 +my $libdir        = get_vars("libdir");
8  my $CFG_TARGET     = get_vars("progname");
9  my $CFG_SYSCONFDIR = get_vars("sysconfdir");
10  my $CFG_CFLAGS     = join ' ', map { get_vars($_) }
11 @@ -44,6 +45,7 @@
12  my $CFG_CC         = get_vars("CC");
13  my $libexecdir     = get_vars("libexecdir");
14  my $CFG_LIBEXECDIR = eval qq("$libexecdir");
15 +my $CFG_DESTDIR    = '';
16  my $sbindir        = get_vars("sbindir");
17  my $CFG_SBINDIR    = eval qq("$sbindir");
18  my $ltflags        = $ENV{'LTFLAGS'};
19 @@ -171,7 +173,7 @@
20             my ($val) = $2;
21             my $oldval = eval "\$CFG_$var";
22  
23 -           unless ($var and $oldval) {
24 +           unless ($var and defined $oldval) {
25                 print STDERR "apxs:Error: no config variable $var\n";
26                 &usage;
27             }
28 @@ -211,7 +212,7 @@
29      error("your server binary `$httpd'.");
30      exit 1;
31  }
32 -
33 +}
34  sub get_config_vars{
35      my ($file, $rh_config) = @_;
36  
37 @@ -479,8 +480,8 @@
38          $t =~ s|\.[^./\\]+$|\.so|;
39          if ($opt_i) {
40             push(@cmds, "$installbuilddir/instdso.sh SH_LIBTOOL='" .
41 -                 "$libtool' $f $CFG_LIBEXECDIR");
42 -           push(@cmds, "chmod 755 $CFG_LIBEXECDIR/$t");
43 +                 "$libtool' $f $CFG_DESTDIR$CFG_LIBEXECDIR");
44 +           push(@cmds, "chmod 755 $CFG_DESTDIR$CFG_LIBEXECDIR/$t");
45          }
46  
47          #   determine module symbolname and filename
This page took 0.033833 seconds and 4 git commands to generate.