[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
autoconf 2.57 and DJGPP: $ENV{'TMPDIR'} may contain slashes
From: |
Richard Dawe |
Subject: |
autoconf 2.57 and DJGPP: $ENV{'TMPDIR'} may contain slashes |
Date: |
Sat, 11 Jan 2003 11:24:30 +0000 |
Hello.
$ENV{'TMPDIR'} may contain backward slashes in it under DJGPP. Below is a
ChangeLog and patch to make autom4te cope with this.
(I'm subscribed to the autoconf mailing list now.)
Thanks, regards,
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
2003-01-11 Richard Dawe <address@hidden>
* lib/Autom4te/General.pm: $ENV{'TMPDIR'} may have backward slashes
in it under DJGPP.
--- /dev/c/develop/ports/orig/autoconf-2.57/lib/Autom4te/General.pm 2002-10-16
06:38:50.000000000 +0000
+++ /dev/c/develop/ports/gnu.dev/autoconf-2.57/lib/Autom4te/General.pm
2003-01-05 13:06:56.000000000 +0000
@@ -324,6 +324,10 @@ sub mktmpdir ($)
my ($signature) = @_;
my $TMPDIR = $ENV{'TMPDIR'} || '/tmp';
+ # <address@hidden>: Forward-slashify TMPDIR.
+ # TMPDIR may have backward slashes in it under DJGPP.
+ $TMPDIR =~ s,\\,/,g;
+
# If mktemp supports dirs, use it.
$tmp = `(umask 077 &&
mktemp -d -q "$TMPDIR/${signature}XXXXXX") 2>/dev/null`;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- autoconf 2.57 and DJGPP: $ENV{'TMPDIR'} may contain slashes,
Richard Dawe <=