[PATCH:macros] XORG_PROG_RAWCPP: Use AC_PATH_TOOL to find preprocessor
Alan Coopersmith
alan.coopersmith at oracle.com
Sat Mar 24 18:57:18 UTC 2018
From: Marvin Schmidt <marv at exherbo.org>
On some distributions tools like cpp are prefixed with the host-triple,
to check for this prefixed version first AC_PATH_TOOL should be used. If
no prefixed cpp, it will fallback to the unprefixed name.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
This looks reasonable to me and seems to work in my normal builds.
But I have zero experience with cross-compiling and no way to test
that, so I'm sending out to give those with more experience there a
chance to pipe in before pushing.
xorg-macros.m4.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in
index efce888..e4889c6 100644
--- a/xorg-macros.m4.in
+++ b/xorg-macros.m4.in
@@ -57,7 +57,7 @@ m4_undefine([maj_needed])
# such as man pages and config files
AC_DEFUN([XORG_PROG_RAWCPP],[
AC_REQUIRE([AC_PROG_CPP])
-AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
+AC_PATH_TOOL(RAWCPP, [cpp], [${CPP}],
[$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
# Check for flag to avoid builtin definitions - assumes unix is predefined,
--
2.15.0
More information about the xorg-devel
mailing list