summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2008-09-23 19:02:02 +0300
committerDaniel Stone <daniel@fooishbar.org>2008-09-23 19:02:02 +0300
commit0877bc916afbd1ff8f1833edc930b765ea783576 (patch)
treecdea23cc26cda12aa38a5c7de9952bc72cdc7673
parent58bf3aa746908f01c37be7045699e43a4e270944 (diff)
configure.ac: Fix CC_FOR_BUILD logic error
Turns out we were accidentally smashing it so that you couldn't set it externally at all. Oops.
-rw-r--r--configure.ac11
1 files changed, 7 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 97e3156e..5febfb35 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,11 +22,14 @@ XORG_MACROS_VERSION(1.1)
AC_PROG_LIBTOOL
AC_PROG_CC
-if test x"$CC_FOR_BUILD" = x && test x"$cross_compiling" = xyes; then
- AC_CHECK_PROGS(CC_FOR_BUILD, gcc cc)
-else
- CC_FOR_BUILD="$CC"
+if test x"$CC_FOR_BUILD" = x; then
+ if test x"$cross_compiling" = xyes; then
+ AC_CHECK_PROGS(CC_FOR_BUILD, gcc cc)
+ else
+ CC_FOR_BUILD="$CC"
+ fi
fi
+AC_SUBST([CC_FOR_BUILD])
XORG_PROG_RAWCPP