summaryrefslogtreecommitdiff
path: root/source4/build/m4
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/m4')
-rw-r--r--source4/build/m4/check_cc.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4
index 251d0a5491..5ca88f5698 100644
--- a/source4/build/m4/check_cc.m4
+++ b/source4/build/m4/check_cc.m4
@@ -103,3 +103,7 @@ if test -n "$DEVELOPER_CFLAGS"; then
AC_MSG_WARN([cannot run when cross-compiling]))
CFLAGS="${OLD_CFLAGS}"
fi
+
+# allow for --with-hostcc=gcc
+AC_ARG_WITH(hostcc,[Choose host compiler],[HOSTCC=$withval],[HOSTCC=$CC])
+AC_SUBST(HOSTCC)