Changeset 3150


Ignore:
Timestamp:
Apr 16, 2007, 4:19:20 AM (18 years ago)
Author:
bird
Message:

Unixroot and the drive letter fix.

Location:
trunk/essentials/sys-devel/automake-1.10
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/sys-devel/automake-1.10/aclocal.in

    r3147 r3150  
    3131BEGIN
    3232{
    33   my $perllibdir = $ENV{'perllibdir'} || '@datadir@/@PACKAGE@-@APIVERSION@';
     33  my $perllibdir = $ENV{'perllibdir'} || $ENV{'UNIXROOT'}.'@datadir@/@PACKAGE@-@APIVERSION@';
     34  $perllibdir =~ s/$ENV{'UNIXROOT'}\/\@unixroot/$ENV{'UNIXROOT'}/; # The EMX built perl doesn't know @unixroot.
     35  $perllibdir =~ s/\/\@unixroot/$ENV{'UNIXROOT'}/; # The EMX built perl doesn't know @unixroot.
    3436  unshift @INC, (split '@PATH_SEPARATOR@', $perllibdir);
    3537}
     
    5759# --acdir will reset both @automake_includes and @system_includes.
    5860my @user_includes = ();
    59 my @automake_includes = ("@datadir@/aclocal-$APIVERSION");
    60 my @system_includes = ('@datadir@/aclocal');
     61my $my_acdir = $ENV{'UNIXROOT'}.'@datadir@/aclocal';
     62$my_acdir =~ s/$ENV{'UNIXROOT'}\/\@unixroot/$ENV{'UNIXROOT'}/; # The EMX built perl doesn't know @unixroot.
     63$my_acdir =~ s/\/\@unixroot/$ENV{'UNIXROOT'}/; # The EMX built perl doesn't know @unixroot.
     64my @automake_includes = ("$my_acdir-$APIVERSION");
     65my @system_includes = ("$my_acdir");
    6166
    6267# Whether we should copy M4 file in $user_includes[0].
     
    675680    {
    676681      chomp;
    677       my ($file, $macro, $arg1) = split (/::/);
     682      # Stupid, stupid unix guys.
     683      #my ($file, $macro, $arg1) = split (/:/);
     684      my ($file, $macro, $arg1, $dos) = split (/:/);
     685      if (length($file) == 1 && $dos ne '')
     686        {
     687          $file = $file.":".$macro;
     688          $macro = $arg1;
     689          $arg1 = $dos;
     690        }
    678691
    679692      $traced{$macro} = 1 if exists $macro_seen{$macro};
  • trunk/essentials/sys-devel/automake-1.10/automake.in

    r3147 r3150  
    3333BEGIN
    3434{
    35   my $perllibdir = $ENV{'perllibdir'} || '@datadir@/@PACKAGE@-@APIVERSION@';
     35  my $perllibdir = $ENV{'perllibdir'} || $ENV{'UNIXROOT'}.'@datadir@/@PACKAGE@-@APIVERSION@';
     36  $perllibdir =~ s/$ENV{'UNIXROOT'}\/\@unixroot/$ENV{'UNIXROOT'}/; # The EMX built perl doesn't know @unixroot.
     37  $perllibdir =~ s/\/\@unixroot/$ENV{'UNIXROOT'}/; # The EMX built perl doesn't know @unixroot.
    3638  unshift @INC, (split '@PATH_SEPARATOR@', $perllibdir);
    3739
  • trunk/essentials/sys-devel/automake-1.10/lib/Automake/Config.in

    r3147 r3150  
    3232our $VERSION = '@VERSION@';
    3333our $libdir = '@datadir@/@PACKAGE@-@APIVERSION@';
     34$libdir =~ s/$ENV{'UNIXROOT'}\/\@unixroot/$ENV{'UNIXROOT'}/; # The EMX built perl doesn't know @unixroot.
     35$libdir =~ s/\/\@unixroot/$ENV{'UNIXROOT'}/; # The EMX built perl doesn't know @unixroot.
     36
    3437
    35381;;
Note: See TracChangeset for help on using the changeset viewer.