From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jim Meyering Newsgroups: gmane.emacs.devel Subject: build from source fails on fedora-12 (with gcc 4.4.2) Date: Fri, 23 Oct 2009 08:51:18 +0200 Message-ID: <87vdi61u3d.fsf@meyering.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1256280708 23366 80.91.229.12 (23 Oct 2009 06:51:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2009 06:51:48 +0000 (UTC) To: Emacs development discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 23 08:51:41 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N1Dzw-0007U8-Vd for ged-emacs-devel@m.gmane.org; Fri, 23 Oct 2009 08:51:41 +0200 Original-Received: from localhost ([127.0.0.1]:42308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1Dzw-0002qN-IX for ged-emacs-devel@m.gmane.org; Fri, 23 Oct 2009 02:51:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N1Dzp-0002pv-LO for emacs-devel@gnu.org; Fri, 23 Oct 2009 02:51:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N1Dzk-0002n8-9Z for emacs-devel@gnu.org; Fri, 23 Oct 2009 02:51:32 -0400 Original-Received: from [199.232.76.173] (port=48074 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1Dzk-0002n5-0D for emacs-devel@gnu.org; Fri, 23 Oct 2009 02:51:28 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:60541) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N1Dzj-0003Tq-9i for emacs-devel@gnu.org; Fri, 23 Oct 2009 02:51:27 -0400 Original-Received: from smtp3-g21.free.fr ([212.27.42.3]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N1Dzh-0000Mi-Lh for emacs-devel@gnu.org; Fri, 23 Oct 2009 02:51:26 -0400 Original-Received: from smtp3-g21.free.fr (localhost [127.0.0.1]) by smtp3-g21.free.fr (Postfix) with ESMTP id 47465818050 for ; Fri, 23 Oct 2009 08:51:20 +0200 (CEST) Original-Received: from mx.meyering.net (mx.meyering.net [82.230.74.64]) by smtp3-g21.free.fr (Postfix) with ESMTP id 4EEF181814E for ; Fri, 23 Oct 2009 08:51:18 +0200 (CEST) Original-Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000) id 354842657F; Fri, 23 Oct 2009 08:51:18 +0200 (CEST) Original-Lines: 93 X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116317 Archived-At: Here's the patch: FYI, at first I thought it was a bug in gcc and reported it, but Jakub Jelinek explained that it is a feature, and suggested the work-around of using -P. >From 8e02dcac08aec4aa87a5130bcde547c955840dcd Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 23 Oct 2009 08:47:52 +0200 Subject: [PATCH] invoke $CPP with its -P option, to accommodate change in latest gcc * configure.in: Use $CPP's -P option when creating Makefile and src/Makefile. This is required with at least by gcc 4.4.2, which is part of fedora 12. Otherwise, each backslash-newline pair in the input would be mistakenly converted to a bare newline, yielding invalid Makefiles. * configure: Regenerate. --- ChangeLog | 10 ++++++++++ configure | 6 ++---- configure.in | 4 ++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index ce05b51..7927e78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2009-10-23 Jim Meyering + + invoke $CPP with its -P option, to accommodate change in latest gcc + * configure.in: Use $CPP's -P option when creating Makefile and + src/Makefile. This is required with at least by gcc 4.4.2, which + is part of fedora 12. Otherwise, each backslash-newline pair in + the input would be mistakenly converted to a bare newline, yielding + invalid Makefiles. + * configure: Regenerate. + 2009-10-19 Dan Nicolaescu * configure.in (vax-dec-vms): Remove, not supported anymore. diff --git a/configure b/configure index ee6871b..a4453af 100755 --- a/configure +++ b/configure @@ -26762,7 +26762,7 @@ echo creating lib-src/Makefile sed -e '1,/start of cpp stuff/d'\ -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ < Makefile.c > junk.c - $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ + $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c cat junk1.c junk2.c > Makefile.new rm -f junk.c junk1.c junk2.c @@ -26778,7 +26778,7 @@ echo creating src/Makefile sed -e '1,/start of cpp stuff/d'\ -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ < Makefile.c > junk.c - $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ + $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c cat junk1.c junk2.c > Makefile.new rm -f junk.c junk1.c junk2.c @@ -26832,5 +26832,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} fi - - diff --git a/configure.in b/configure.in index 87c820f..a110407 100644 --- a/configure.in +++ b/configure.in @@ -3057,7 +3057,7 @@ echo creating lib-src/Makefile sed -e '1,/start of cpp stuff/d'\ -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ < Makefile.c > junk.c - $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ + $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c cat junk1.c junk2.c > Makefile.new rm -f junk.c junk1.c junk2.c @@ -3073,7 +3073,7 @@ echo creating src/Makefile sed -e '1,/start of cpp stuff/d'\ -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ < Makefile.c > junk.c - $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ + $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c cat junk1.c junk2.c > Makefile.new rm -f junk.c junk1.c junk2.c -- 1.6.5.1.305.g914c1