freebsd-ports/x11/xdm/files/patch-config-Makefile.in
Niclas Zeising 47ad784422 Fix build when clang is installed as cc (more specifically when clang-cpp is
installed as cpp).
This is done in a similar way as in other x11 ports with the same issue, see
r301687 for details.

PR:		ports/172100
Submitted by:	Oliver Pinter <oliver.pntr@gmail.com> (pr)
		Jan Beich <jbeich@tormail.org> (patch, based on)
Approved by:	miwi (mentor)
Obtained from:	xorg staging area
2012-09-27 09:45:38 +00:00

11 lines
624 B
Text

--- config/Makefile.in.orig 2012-09-27 10:37:59.000000000 +0200
+++ config/Makefile.in 2012-09-27 10:38:41.000000000 +0200
@@ -296,7 +296,7 @@
# output lines with trailing backslashes.
# Allow XHASH to always be substituted, even in cases where XCOMM isn't.
CPP_SED_MAGIC = $(SED) -e '/^\# *[0-9][0-9]* *.*$$/d' \
- -e '/^\#line *[0-9][0-9]* *.*$$/d' \
+ -e '/^$$/d' \
-e '/^[ ]*XCOMM$$/s/XCOMM/\#/' \
-e '/^[ ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/\#/' \
-e '/^[ ]*XHASH/s/XHASH/\#/' \