emacs/emacs-23.1-fix_cpp.patch
Dominique Leuenberger 5c909ca26f Accepting request 33402 from home:coolo:branches:openSUSE:Factory
Copy from home:coolo:branches:openSUSE:Factory/emacs via accept of submit request 33402 revision 2.
Request was accepted with message:
Thanks for the fix.

OBS-URL: https://build.opensuse.org/request/show/33402
OBS-URL: https://build.opensuse.org/package/show/editors/emacs?expand=0&rev=20
2010-02-25 07:42:29 +00:00

28 lines
1.2 KiB
Diff
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

2009-10-23 Jim Meyering <meyering@redhat.com>
* configure.in: Invoke $CPP with -P when creating Makefile and
src/Makefile. Without this, gcc 4.4.2 converts each
backslash-newline pair in the input to a bare newline, yielding
invalid Makefiles.
--- emacs-23.1.orig/configure.in 2010-02-24 18:49:14.000000000 +0100
+++ emacs-23.1/configure.in 2010-02-24 18:51:16.000000000 +0100
@@ -2984,7 +2984,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
@@ -3000,7 +3000,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