From c5334e6a455f4fe79eb320981c6bebc17f1816bf Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Fri, 14 Nov 2008 23:05:45 +0100 Subject: [PATCH] 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 --- xorg-macros.m4.in | 4 ++++ 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 -- 1.6.0.3