source: trunk/tools/autoconf/patches/000-relocatable.patch @ 29821

Last change on this file since 29821 was 29821, checked in by jow, 5 years ago

[tools] autoconf: make relocatable by searching resources relative to STAGING_DIR

File size: 3.5 KB
  • bin/autoheader.in

    a b eval 'case $# in 0) exec @PERL@ -S "$0"; 
    2929 
    3030BEGIN 
    3131{ 
    32   my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@'; 
     32  my $pkgdatadir = $ENV{'autom4te_perllibdir'} || 
     33        ($ENV{'STAGING_DIR'} ? $ENV{'STAGING_DIR'} . '/../host/share/autoconf' : '@pkgdatadir@'); 
    3334  unshift @INC, "$pkgdatadir"; 
    3435 
    3536  # Override SHELL.  On DJGPP SHELL may not be set to a shell 
  • bin/autom4te.in

    a b eval 'case $# in 0) exec @PERL@ -S "$0"; 
    2525 
    2626BEGIN 
    2727{ 
    28   my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@'; 
     28  my $pkgdatadir = $ENV{'autom4te_perllibdir'} || 
     29        ($ENV{'STAGING_DIR'} ? $ENV{'STAGING_DIR'} . '/../host/share/autoconf' : '@pkgdatadir@'); 
    2930  unshift @INC, $pkgdatadir; 
    3031 
    3132  # Override SHELL.  On DJGPP SHELL may not be set to a shell 
    use File::Basename; 
    4546use strict; 
    4647 
    4748# Data directory. 
    48 my $pkgdatadir = $ENV{'AC_MACRODIR'} || '@pkgdatadir@'; 
     49my $pkgdatadir = $ENV{'AC_MACRODIR'} || 
     50        ($ENV{'STAGING_DIR'} ? $ENV{'STAGING_DIR'} . '/../host/share/autoconf' : '@pkgdatadir@'); 
    4951 
    5052# $LANGUAGE{LANGUAGE} -- Automatic options for LANGUAGE. 
    5153my %language; 
  • bin/autoreconf.in

    a b eval 'case $# in 0) exec @PERL@ -S "$0"; 
    2727 
    2828BEGIN 
    2929{ 
    30   my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@'; 
     30  my $pkgdatadir = $ENV{'autom4te_perllibdir'} || 
     31        ($ENV{'STAGING_DIR'} ? $ENV{'STAGING_DIR'} . '/../host/share/autoconf' : '@pkgdatadir@'); 
    3132  unshift @INC, $pkgdatadir; 
    3233 
    3334  # Override SHELL.  On DJGPP SHELL may not be set to a shell 
  • bin/autoscan.in

    a b eval 'case $# in 0) exec @PERL@ -S "$0"; 
    2626 
    2727BEGIN 
    2828{ 
    29   my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@'; 
     29  my $pkgdatadir = $ENV{'autom4te_perllibdir'} || 
     30        ($ENV{'STAGING_DIR'} ? $ENV{'STAGING_DIR'} . '/../host/share/autoconf' : '@pkgdatadir@'); 
    3031  unshift @INC, $pkgdatadir; 
    3132 
    3233  # Override SHELL.  On DJGPP SHELL may not be set to a shell 
    my $log; 
    9596my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@'; 
    9697my $autoconf = "$autom4te --language=autoconf"; 
    9798my @prepend_include; 
    98 my @include = ('@pkgdatadir@'); 
     99my @include = ($ENV{'STAGING_DIR'} ? $ENV{'STAGING_DIR'} . '/../host/share/autoconf' : '@pkgdatadir@'); 
    99100 
    100101# $help 
    101102# ----- 
  • bin/autoupdate.in

    a b eval 'case $# in 0) exec @PERL@ -S "$0"; 
    2727 
    2828BEGIN 
    2929{ 
    30   my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@'; 
     30  my $pkgdatadir = $ENV{'autom4te_perllibdir'} || 
     31        ($ENV{'STAGING_DIR'} ? $ENV{'STAGING_DIR'} . '/../host/share/autoconf' : '@pkgdatadir@'); 
    3132  unshift @INC, $pkgdatadir; 
    3233 
    3334  # Override SHELL.  On DJGPP SHELL may not be set to a shell 
    my $autom4te = $ENV{'AUTOM4TE'} || '@bin 
    5152my $autoconf = "$autom4te --language=autoconf"; 
    5253# We need to find m4sugar. 
    5354my @prepend_include; 
    54 my @include = ('@pkgdatadir@'); 
     55my @include = ($ENV{'STAGING_DIR'} ? $ENV{'STAGING_DIR'} . '/../host/share/autoconf' : '@pkgdatadir@'); 
    5556my $force = 0; 
    5657# m4. 
    5758my $m4 = $ENV{"M4"} || '@M4@'; 
  • bin/ifnames.in

    a b eval 'case $# in 0) exec @PERL@ -S "$0"; 
    3131 
    3232BEGIN 
    3333{ 
    34   my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@'; 
     34  my $pkgdatadir = $ENV{'autom4te_perllibdir'} || 
     35        ($ENV{'STAGING_DIR'} ? $ENV{'STAGING_DIR'} . '/../host/share/autoconf' : '@pkgdatadir@'); 
    3536  unshift @INC, $pkgdatadir; 
    3637 
    3738  # Override SHELL.  On DJGPP SHELL may not be set to a shell 
Note: See TracBrowser for help on using the repository browser.