From Tor Lillqvist <tml@iki.fi>:

* ltmain.in [cygwin* mingw*]: Take care of the difference between
wrapper script name and executable name.
This commit is contained in:
Gary V. Vaughan 2001-09-21 19:49:29 +00:00
parent a8f95641c3
commit 0cb0784e76
2 changed files with 16 additions and 4 deletions

View File

@ -1,5 +1,9 @@
2001-09-21 Gary V. Vaughan <gary@gnu.org>
From Tor Lillqvist <tml@iki.fi>:
* ltmain.in [cygwin* mingw*]: Take care of the difference between
wrapper script name and executable name.
* libtool.m4 (archive_cmds) [darwin1.[0-2]]: Darwin uses zsh-3.1.6
for /bin/sh, and that shell does not handle escaped quotes
properly yet.

View File

@ -4770,19 +4770,27 @@ relink_command=\"$relink_command\""
fi
# Do a test to see if this is really a libtool program.
if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
case $host in
*cygwin*|*mingw*)
wrapper=`echo $file | sed -e 's,.exe$,,'`
;;
*)
wrapper=$file
;;
esac
if (sed -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
notinst_deplibs=
relink_command=
# If there is no directory component, then add one.
case $file in
*/* | *\\*) . $file ;;
*) . ./$file ;;
*/* | *\\*) . $wrapper ;;
*) . ./$wrapper ;;
esac
# Check the variables that should have been set.
if test -z "$notinst_deplibs"; then
$echo "$modename: invalid libtool wrapper script \`$file'" 1>&2
$echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
exit 1
fi