cygwin -mno-cygwin AC_CHECK_SIZEOF

Paul Eggert eggert@CS.UCLA.EDU
Fri Dec 1 19:22:00 GMT 2006


Eric Blake <ebb9@byu.net> writes:
> Patch below. Keep replies on the autoconf-patches list.

Thanks. In retrospect it was a mistake to append the trailing
newline, I guess. I installed the following: it differs from your
patch only in adding more commentary.
2006年12月01日 Eric Blake <ebb9@byu.net>
	* lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
	cross-compiling from cygwin to mingw.
	Reported by Bob Rossi. This resurrects the 2000年11月30日 patch to
	aclang.m4, which was mistakenly removed in the 2001年09月17日 patch
	to lib/autoconf/c.m4.
--- lib/autoconf/c.m4	28 Nov 2006 00:26:45 -0000	1.240
+++ lib/autoconf/c.m4	1 Dec 2006 19:20:43 -0000
@@ -284,15 +284,17 @@ static unsigned long int ulongval () { r
 long int i = longval ();
 if (i != (2ドル))
 	return 1;
- fprintf (f, "%ld\n", i);
+ fprintf (f, "%ld", i);
 }
 else
 {
 unsigned long int i = ulongval ();
 if (i != (2ドル))
 	return 1;
- fprintf (f, "%lu\n", i);
+ fprintf (f, "%lu", i);
 }
+ /* Do not output a trailing newline, as this causes \r\n confusion
+ on some platforms. */
 return ferror (f) || fclose (f) != 0;
 ])])
 
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /