On Sat, 8 Mar 2008, Ralf Wildenhues wrote:

Now, in that test, the toplevel configure script chooses
$top_srcdir/INSTALL (yes, the text file) as install script.  I suspect
this is because you have /uhome/src/gnu/libtool-head in the $PATH, the
beginning of testsuite.log reveals that.  Why is that, did you add that
manually?

It seems that our build environment is extending the path. Both msys and cygwin are happy to execute INSTALL as a shell script if passed to it like a command. Something is clearly doing a case-insensitive search of the PATH to find 'install' and is then using what it found.

This is interesting:

MINGW
=====

Bob [EMAIL PROTECTED] ~
$ export PATH=/uhome/src/gnu/libtool-head:$PATH

Bob [EMAIL PROTECTED] ~
$ which install
install is /bin/install

Bob [EMAIL PROTECTED] ~
$ which INSTALL
INSTALL is /bin/INSTALL

Bob [EMAIL PROTECTED] ~
$ INSTALL
INSTALL: too few arguments
Try `INSTALL --help' for more information.

Bob [EMAIL PROTECTED] ~
$ echo $SHELL
/bin/sh

Cygwin
======

velma:~% which install
/usr/bin/install
velma:~% export PATH=/uhome/src/gnu/libtool-head:$PATH
velma:~% which install
/usr/bin/install
velma:~% rehash
velma:~% which install
/usr/bin/install
velma:~% install
install: missing file operand
Try `install --help' for more information.
velma:~% INSTALL
/uhome/src/gnu/libtool-head/INSTALL: line 1: Installation: command not found
./#.emacs#: line 2: syntax error near unexpected token `;;'
./#.emacs#: line 2: ` ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!' /uhome/src/gnu/libtool-head/INSTALL: line 4: syntax error near unexpected token `C' /uhome/src/gnu/libtool-head/INSTALL: line 4: `Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,'
velma:~% echo $SHELL
/bin/zsh
velma:~% bash
bash-3.2$ which install
install is /usr/bin/install
bash-3.2$ echo $PATH
/uhome/src/gnu/libtool-head:/activestate/bin:/usr/local/bin:/usr/X11R6/bin:/usr/bin:/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:.
bash-3.2$ export SHELL=/bin/bash
bash-3.2$ which install
install is /usr/bin/install
bash-3.2$ which INSTALL
INSTALL is /usr/bin/INSTALL
bash-3.2$ INSTALL
INSTALL: missing file operand
Try `INSTALL --help' for more information.


======================================
Bob Friesenhahn
[EMAIL PROTECTED], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/



Reply via email to