]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in: Use sed '$q' instead of sed "" for copying ltmain,
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sun, 20 Jun 1999 09:07:22 +0000 (09:07 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sun, 20 Jun 1999 09:07:22 +0000 (09:07 +0000)
just in case some sed does not support an empty command.

ChangeLog
ltconfig.in

index 6241cd1e02e43d6cde4db7664d22969be9b6d996..43cf9765b2e566c65f0e2b005d707cac0efc976e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 1999-06-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * ltconfig.in: Use sed '$q' instead of sed "" for copying ltmain,
+       just in case some sed does not support an empty command.
+       
        * ltconfig.in (link_static_flag, ac_cv_prog_cc_static): Use the
        latter in the test.
 
index 7d937f2b377850ca18b353f1e59c50285bb848b3..57ed3ac004b6ccd7ab8556c069c9068c8c19e9e9 100755 (executable)
@@ -3020,7 +3020,11 @@ EOF
   esac
 
   # Append the ltmain.sh script.
-  sed -e "" "$ltmain" >> "$ofile" || (rm -f "$ofile"; exit 1)
+  sed '$q' "$ltmain" >> "$ofile" || (rm -f "$ofile"; exit 1)
+  # We use sed instead of cat because bash on DJGPP gets confused if
+  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
+  # text mode, it properly converts lines to CR/LF.  This bash problem
+  # is reportedly fixed, but why not run on old versions too?
 
   chmod +x "$ofile"
   ;;