* aclocal.in (write_aclocal): Don't write aclocal.m4 with
authorAkim Demaille <akim@epita.fr>
Mon, 23 Oct 2000 18:58:33 +0000 (18:58 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 23 Oct 2000 18:58:33 +0000 (18:58 +0000)
CRLFs. This circumvents a bug in Cygwin bash.

* automake.in (generate_makefile): Don't write Makefile.in
files with CRLFs, as it causes problems for the dependency-file
extraction in AM_OUTPUT_DEPENDENCY_COMMANDS.

ChangeLog
aclocal.in
automake.in

index aaed042..52037ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2000-10-23  Morten Eriksen  <mortene@sim.no>
+
+       * aclocal.in (write_aclocal): Don't write aclocal.m4 with
+       CRLFs. This circumvents a bug in Cygwin bash.
+
+       * automake.in (generate_makefile): Don't write Makefile.in
+       files with CRLFs, as it causes problems for the dependency-file
+       extraction in AM_OUTPUT_DEPENDENCY_COMMANDS.
+
 2000-10-19  Alex Hornby  <alex@anvil.co.uk>
 
        * automake.in (handle_merge_targets): Allow parallel install
index 7c9e9a2..d35a64a 100644 (file)
@@ -427,6 +427,13 @@ sub write_aclocal
 
     print STDERR "Writing $output_file\n" if $verbosity;
 
+
+    # In case we're running under MSWindows, don't write with CRLF.
+    # (This circumvents a bug in at least Cygwin bash where the shell
+    # parsing fails on lines ending with the continuation character '\'
+    # and CRLF.)
+    binmode ACLOCAL;
+
     open (ACLOCAL, "> " . $output_file)
        || die "aclocal: couldn't open \`$output_file' for writing: $!\n";
     print ACLOCAL "# $output_file generated automatically by aclocal $VERSION\n";
index 89d2619..d8254e5 100755 (executable)
@@ -690,6 +690,11 @@ sub generate_makefile
     }
     print "automake: creating ", $makefile, ".in\n" if $verbose;
 
+    # In case we're running under MSWindows, don't write with CRLF
+    # (as it causes problems for the dependency-file extraction in
+    # AM_OUTPUT_DEPENDENCY_COMMANDS).
+    binmode GM_FILE;
+
     print GM_FILE $output_vars;
     # We make sure that `all:' is the first target.
     print GM_FILE $output_all;