diff options
author | Marvin Schmidt <marv@exherbo.org> | 2016-05-27 15:13:56 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-03-30 15:50:36 -0700 |
commit | bd66ce3ba4a9d1d1490cb5775a2fdd0b408879b6 (patch) | |
tree | 083bc575f31a28f3c028d65593a6b10a5ec4f6ae | |
parent | 771b773b50717884b37f6b2473166b4be4670076 (diff) |
XORG_PROG_RAWCPP: Use AC_PATH_TOOL to find preprocessor
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.
https://bugs.freedesktop.org/show_bug.cgi?id=96257
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xorg-macros.m4.in | 2 |
1 files changed, 1 insertions, 1 deletions
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, |