[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoconf & DJGPP: SHELL, ${ac_make}, IFS=:
From: |
Tim Van Holder |
Subject: |
Re: autoconf & DJGPP: SHELL, ${ac_make}, IFS=: |
Date: |
25 Feb 2003 10:13:11 +0100 |
On Mon, 2003-02-24 at 19:44, Richard Dawe wrote:
> Index: bin/autoheader.in
> ===================================================================
> RCS file: /cvsroot/autoconf/autoconf/bin/autoheader.in,v
> retrieving revision 1.126
> diff -p -u -3 -r1.126 autoheader.in
> --- bin/autoheader.in 22 Oct 2002 11:14:44 -0000 1.126
> +++ bin/autoheader.in 24 Feb 2003 18:38:37 -0000
> @@ -31,6 +31,12 @@ BEGIN
> {
> my $perllibdir = $ENV{'autom4te_perllibdir'} || '@datadir@';
> unshift @INC, "$perllibdir";
> +
> + # Override SHELL. On DJGPP SHELL may not be set to a shell
> + # that can handle redirection and quote arguments correctly,
> + # e.g.: COMMAND.COM. For DJGPP always use the shell that configure
> + # has detected.
> + $ENV{'SHELL'} = '@SHELL@' if exists $ENV{'DJGPP'};
> }
I _think_ that the DJGPP perl has its OS variable ($^O) set to 'djgpp'
(might possibly be 'msdos' as well - but that would not invalidate the
setting of SHELL in this way).
That's probably a better test than relying on an envvar that may easily
be set on non-DJGPP platforms.
--
Tim Van Holder <address@hidden>