]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
When using Cygwin, in spite of all their efforts, it may happen
authorAkim Demaille <akim@epita.fr>
Thu, 30 Nov 2000 14:49:43 +0000 (14:49 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 30 Nov 2000 14:49:43 +0000 (14:49 +0000)
that `confestval' be read in binary mode.  The shell then fails to
properly strip the rn.
Reported by Lars J. Aas.
* aclang.m4 (AC_LANG_INT_SAVE): Don't add any trailing new line,
and close the file.
Suggested by Peter Eisentraut.

ChangeLog
aclang.m4
lib/autoconf/c.m4
lib/autoconf/fortran.m4
lib/autoconf/lang.m4

index 6e113eb4dabcc17db312347fb594cb23918bba27..5fb9b46c63ac05b8dba5cdd73b16657897245afc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2000-11-30  Akim Demaille  <akim@epita.fr>
+
+       When using Cygwin, in spite of all their efforts, it may happen
+       that `confestval' be read in binary mode.  The shell then fails to
+       properly strip the \r\n.
+       Reported by Lars J. Aas.
+
+       * aclang.m4 (AC_LANG_INT_SAVE): Don't add any trailing new line,
+       and close the file.
+       Suggested by Peter Eisentraut.
+
 2000-11-30  Akim Demaille  <akim@epita.fr>
 
        * doc/autoconf.texi (Systemology): New section.
index 4e3ba05667774f3472b261756477f116b0667389..e9d4e76645c3b4ae7918f1adb890c333ef474f77 100644 (file)
--- a/aclang.m4
+++ b/aclang.m4
@@ -400,7 +400,8 @@ m4_define([AC_LANG_INT_SAVE(C)],
 [FILE *f = fopen ("conftestval", "w");
 if (!f)
   exit (1);
-fprintf (f, "%d\n", ($2));])])
+fprintf (f, "%d", ($2));
+fclose (f);])])
 
 
 # ----------------- #
index 4e3ba05667774f3472b261756477f116b0667389..e9d4e76645c3b4ae7918f1adb890c333ef474f77 100644 (file)
@@ -400,7 +400,8 @@ m4_define([AC_LANG_INT_SAVE(C)],
 [FILE *f = fopen ("conftestval", "w");
 if (!f)
   exit (1);
-fprintf (f, "%d\n", ($2));])])
+fprintf (f, "%d", ($2));
+fclose (f);])])
 
 
 # ----------------- #
index 4e3ba05667774f3472b261756477f116b0667389..e9d4e76645c3b4ae7918f1adb890c333ef474f77 100644 (file)
@@ -400,7 +400,8 @@ m4_define([AC_LANG_INT_SAVE(C)],
 [FILE *f = fopen ("conftestval", "w");
 if (!f)
   exit (1);
-fprintf (f, "%d\n", ($2));])])
+fprintf (f, "%d", ($2));
+fclose (f);])])
 
 
 # ----------------- #
index 4e3ba05667774f3472b261756477f116b0667389..e9d4e76645c3b4ae7918f1adb890c333ef474f77 100644 (file)
@@ -400,7 +400,8 @@ m4_define([AC_LANG_INT_SAVE(C)],
 [FILE *f = fopen ("conftestval", "w");
 if (!f)
   exit (1);
-fprintf (f, "%d\n", ($2));])])
+fprintf (f, "%d", ($2));
+fclose (f);])])
 
 
 # ----------------- #