[cairo-commit] build/configure.ac.tools
Chris Wilson
ickle at kemper.freedesktop.org
Mon Jul 20 11:39:31 PDT 2009
build/configure.ac.tools | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit ed7853d4991f17a5e6df694808d33603eecf9186
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Mon Jul 20 19:37:27 2009 +0100
[build] Use ${CC} as the default value for CC_FOR_BUILD
diff --git a/build/configure.ac.tools b/build/configure.ac.tools
index a24dbce..fb085ef 100644
--- a/build/configure.ac.tools
+++ b/build/configure.ac.tools
@@ -8,6 +8,13 @@ AC_PROG_CXX dnl required for BeOS (and cannot be a conditional dependency)
AM_PROG_CC_C_O
AC_C_INLINE
+# Set reasonable defaults for the tools in case we are cross-compiling
+if test "${build}" != "${host}" ; then
+ CC_FOR_BUILD=${CC_FOR_BUILD-cc}
+else
+ CC_FOR_BUILD=${CC}
+fi
+
dnl ===========================================================================
PKG_PROG_PKG_CONFIG()
More information about the cairo-commit
mailing list