diff --git a/configure b/configure index 181a67bef..debd654af 100755 --- a/configure +++ b/configure @@ -539,6 +539,15 @@ done [ "$cli" = "no" -a "$shared" = "no" -a "$static" = "no" ] && die "Nothing to build. Enable cli, shared or static." +# check whether gcc or cl are present +if [ -z "$CC" ]; then + if $(${cross_prefix}gcc >/dev/null 2>&1); then + CC="${cross_prefix}gcc}" + elif $(${cross_prefix}cl >/dev/null 2>&1); then + CC="${cross_prefix}cl" + fi +fi + CC="${CC-${cross_prefix}gcc}" STRIP="${STRIP-${cross_prefix}strip}" INSTALL="${INSTALL-install}"