From 8ba1bd0bd34feb39b9ac89d1ca90b98570f7cf7f Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Tue, 30 Aug 2016 20:59:26 +0200 Subject: BUILD: Don't try to run the curl test executable when cross-compiling --- configure | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 328d2ad126..42be5a3405 100755 --- a/configure +++ b/configure @@ -4185,11 +4185,16 @@ EOF cc_check_no_clean $LIBCURL_CFLAGS $LIBCURL_LIBS if test "$?" -eq 0; then - $TMPO$HOSTEXEEXT - if test "$?" -eq 0; then + if test -n "$_host"; then + # In cross-compiling mode, we cannot run the result, assume SSL is available _libcurl=yes else - _libcurl="no SSL support" + $TMPO$HOSTEXEEXT + if test "$?" -eq 0; then + _libcurl=yes + else + _libcurl="no SSL support" + fi fi fi cc_check_clean -- cgit v1.2.3