autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNATS needs some work (autoconf/59)


From: Akim Demaille
Subject: Re: GNATS needs some work (autoconf/59)
Date: 30 Jan 2001 21:24:24 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Crater Lake)

>>>>> "Tim" == Tim Van Holder <address@hidden> writes:

Tim> A big problem is deciding which pathsep is best in each case.
Tim> For the build pathsep, I'd originally thought to use a test for a
Tim> DOS/Win-ish environment (test -n "$COMSPEC$ComSpec"), but this
Tim> breaks for recent cygwin, as it seems to always use ':' as
Tim> pathsep (using its "/cygdrive/x/" system to replace "x:/"-style
Tim> DOS drivespecs).  So by my current thinking, I'd use uname as a
Tim> basis for setting an ac_pathsep variable, 

Gross!

Tim> as this is fairly low-cost and could therefore be done
Tim> unconditionally at autoconf startup. It would be necessary to be
Tim> able to distinguish between (recent) cygwin and other win32
Tim> environments (mingw32, for example) though.

Have you given a try to my suggestion of

cat <<EOF >conftest.sh
#! $SHELL
exit 0
EOF

chmod +x conftest.sh

if (PATH=.;`pwd`; conftest.sh); then
  # We like `;', let's use it.
else if (PATH=.:`pwd`; conftest.sh); then
  # We like `:', let's use it.
else
  # Get lost.
fi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]