diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-07-20 19:37:27 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-07-20 19:38:34 +0100 |
commit | ed7853d4991f17a5e6df694808d33603eecf9186 (patch) | |
tree | 67361c933af760124c1e7e432af1526608ca7454 /build | |
parent | 809f77a5cb7c17582a0ed90285a3c48c0696ed3e (diff) |
[build] Use ${CC} as the default value for CC_FOR_BUILD
Diffstat (limited to 'build')
-rw-r--r-- | build/configure.ac.tools | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build/configure.ac.tools b/build/configure.ac.tools index a24dbcec..fb085efd 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() |