From: Neil Williams Date: Fri, 11 Jan 2013 17:01:22 +0000 (+0000) Subject: add an escape for when targethost is not defined but usecrosscompile is. X-Git-Tag: upstream/5.20.0~643^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97076f2d65c868728b9943392be44a3d4c8e881d;p=platform%2Fupstream%2Fperl.git add an escape for when targethost is not defined but usecrosscompile is. See http://www.nntp.perl.org/group/perl.perl5.porters/2012/12/msg196443.html "Cross-building and Makefile.SH", which explains the reasoning for this. --- diff --git a/Configure b/Configure index 44a6c0d..73d6e21 100755 --- a/Configure +++ b/Configure @@ -2879,7 +2879,20 @@ esac : Define -Dtargethost=somecomputer to run compiled tests on another machine case "$targethost" in - '') echo "No targethost for running compiler tests against defined, running locally" >&4 + '') echo "Checking for cross-compile" >&4 + case "$usecrosscompile$multiarch" in + *$define*) echo "Skipping the rest of Configure as no targethost was defined when cross-compiling" >&4 + if [ -f Makefile ]; then + echo " " + echo "Now you must ensure config.sh, config.h and the generated headers exist and run a $make." + else + echo "Configure done." + fi + exit 0 + ;; + esac + ;; + *) echo "No targethost for running compiler tests against defined, running locally" >&4 run='' to=: from=: