From: Thomas Tanner Date: Sun, 23 May 1999 10:03:23 +0000 (+0000) Subject: * ltmain.in: strip off the .exe suffix only on *Win X-Git-Tag: release-1-3b~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=306612d348e0eaca0a432bc388bb3b507e19b4a2;p=thirdparty%2Flibtool.git * ltmain.in: strip off the .exe suffix only on *Win (Reported by Matthew D. Langston ) --- diff --git a/ChangeLog b/ChangeLog index 7bea59c94..65bfe2e8b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-05-23 Thomas Tanner + + * ltmain.in: strip off the .exe suffix only on *Win + (Reported by Matthew D. Langston ) + 1999-05-22 Thomas Tanner * NEWS: updated diff --git a/bootstrap b/bootstrap index 1869b2fd5..8de3de847 100755 --- a/bootstrap +++ b/bootstrap @@ -11,7 +11,7 @@ touch ltconfig touch ltmain.sh touch libtoolize aclocal -automake --gnits --add-missing +automake --gnu --add-missing autoconf for sub in demo depdemo libltdl mdemo cdemo; do diff --git a/depdemo/README b/depdemo/README index f122fabfb..30d716684 100644 --- a/depdemo/README +++ b/depdemo/README @@ -8,4 +8,4 @@ l2 depends on l1. l3 depends on l1 and l2. l4 depends on l3 and libm. -The test program uses l1, l2 and l4. \ No newline at end of file +The test program uses l1, l2 and l4. diff --git a/libltdl/Makefile.am b/libltdl/Makefile.am index 831ce281b..12bdcbbf1 100644 --- a/libltdl/Makefile.am +++ b/libltdl/Makefile.am @@ -42,4 +42,3 @@ local-install-files: $(DISTFILES) || cp -p $$d/$$file $(DESTDIR)$(datadir)/libtool/libltdl/$$file || :; \ fi; \ done - diff --git a/ltmain.in b/ltmain.in index fd9864fc7..b58f78500 100644 --- a/ltmain.in +++ b/ltmain.in @@ -3262,10 +3262,14 @@ static const void *lt_preloaded_setup() { # Only actually do things if our run command is non-null. if test -z "$run"; then - # win32 will think the script is a binary if it has - # a .exe suffix, so we strip it off here. - case $output in - *.exe) output=`echo $output|sed 's,.exe$,,'` ;; + case "$host" in + *-*-cygwin* | *-*-mingw* | *-*-os2*) + # win32 will think the script is a binary if it has + # a .exe suffix, so we strip it off here. + case $output in + *.exe) output=`echo $output|sed 's,.exe$,,'` ;; + esac + ;; esac $rm $output trap "$rm $output; exit 1" 1 2 15