summaryrefslogtreecommitdiff
path: root/xorg-macros.m4.in
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2008-11-14 23:05:45 +0100
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-29 05:13:32 -0200
commit0e8c41dd09080cf692b7437bb23435137febaf26 (patch)
treede06d5bbba88928b8bf88e6497f86164082890c9 /xorg-macros.m4.in
parent4cce4c8169a252bce129411dbf70c3212974e7ca (diff)
fix XORG_PROG_RAWCPP for cygwin
Patch by Yaakov Selkowitz from xorg mailing list http://lists.freedesktop.org/archives/xorg/attachments/20081016/04a64242/attachment.asc
Diffstat (limited to 'xorg-macros.m4.in')
-rw-r--r--xorg-macros.m4.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in
index 2ea2e6f..06f7c9d 100644
--- a/xorg-macros.m4.in
+++ b/xorg-macros.m4.in
@@ -80,6 +80,10 @@ else
if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
RAWCPPFLAGS=-undef
AC_MSG_RESULT([yes])
+ # under Cygwin unix is still defined even with -undef
+ elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
+ RAWCPPFLAGS="-undef -ansi"
+ AC_MSG_RESULT([yes, with -ansi])
else
AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.])
fi