Move RAWCPP macro to xorg-macros.m4 so other modules can use it Add check for whether or not RAWCPP needs -traditional instead of hardcoding it, so non-gcc cpp's can be used

This commit is contained in:
Alan Coopersmith 2005-08-15 19:53:37 +00:00
parent 5bb43de17d
commit 83406d69c6
2 changed files with 2 additions and 5 deletions

View file

@ -17,9 +17,8 @@ AC_CONFIG_HEADER([include/X11/XlibConf.h])
# Checks for programs.
AC_PROG_LIBTOOL
AC_PROG_CC
AC_PROG_CPP
AC_PATH_PROGS(RAWCPP, [cpp], [$(CPP)],
[$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
XORG_PROG_RAWCPP
# Checks for pkg-config packages
PKG_CHECK_MODULES(BIGREQS, bigreqsproto)

View file

@ -10,8 +10,6 @@ WCHAR32_FLAGS = -DWCHAR32=@WCHAR32@
CPP_FILES_FLAGS = $(WCHAR32_FLAGS)
RAWCPPFLAGS = -traditional
# Translate XCOMM into pound sign with sed, rather than passing -DXCOMM=XCOMM
# to cpp, because that trick does not work on all ANSI C preprocessors.
# Delete line numbers from the cpp output (-P is not portable, I guess).