summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-02-07 18:11:30 +0100
committerJan Holesovsky <kendy@collabora.com>2015-02-07 18:40:48 +0100
commitfbbd58dc587bdd16edc7d780a17b4261d27478e6 (patch)
tree9fe51714708aab2fa6ab22c4801b805ef1137023
parent6e8acc24eb8eb5f91e2db5e11457bb44e2b19f23 (diff)
Allow setting ICECC_VERSION in the autogen.input.
That way you can avoid having to set ICECC_VERSION in every shell where you want to use icecream with cross-compilation. See http://holesovsky.blogspot.cz/2015/02/using-icecream-to-speed-up-libreoffice.html for details. Change-Id: I1adf67934c2687f0fca1b73e7793b72120eeedab
-rw-r--r--config_host.mk.in1
-rw-r--r--configure.ac11
2 files changed, 12 insertions, 0 deletions
diff --git a/config_host.mk.in b/config_host.mk.in
index e8d0ec4851c0..1a28e6353557 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -268,6 +268,7 @@ export HUNSPELL_LIBS=$(gb_SPACE)@HUNSPELL_LIBS@
export HYPHEN_LIB=$(gb_SPACE)@HYPHEN_LIB@
export HYPH_SYSTEM_DIR=@HYPH_SYSTEM_DIR@
export ICECREAM_RUN=@ICECREAM_RUN@
+@x_ICECC_VERSION@ export ICECC_VERSION=@ICECC_VERSION@
export ICU_CFLAGS=$(gb_SPACE)@ICU_CFLAGS@
export ICU_LIBS=$(gb_SPACE)@ICU_LIBS@
export ICU_MAJOR=@ICU_MAJOR@
diff --git a/configure.ac b/configure.ac
index d8401fc5b4e7..0e27a30a04e8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12637,6 +12637,17 @@ fi
AC_SUBST(ICECREAM_RUN)
dnl ===================================================================
+dnl Setup the ICECC_VERSION for the build the same way it was set for
+dnl configure, so that CC/CXX and ICECC_VERSION are in sync
+dnl ===================================================================
+x_ICECC_VERSION=[\#]
+if test -n "$ICECC_VERSION" ; then
+ x_ICECC_VERSION=
+fi
+AC_SUBST(x_ICECC_VERSION)
+AC_SUBST(ICECC_VERSION)
+
+dnl ===================================================================
AC_MSG_CHECKING([MPL subset])
MPL_SUBSET=