summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2013-01-11 17:01:22 +0000
committerBrian Fraser <fraserbn@gmail.com>2014-01-22 13:08:19 -0300
commit97076f2d65c868728b9943392be44a3d4c8e881d (patch)
treeba5a50afcdf688576797534b5af36656ef676ed7 /Configure
parent0eafc8c9fb36e2eff46fe122307868db398c4211 (diff)
downloadperl-97076f2d65c868728b9943392be44a3d4c8e881d.tar.gz
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.
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure15
1 files changed, 14 insertions, 1 deletions
diff --git a/Configure b/Configure
index 44a6c0db22..73d6e21442 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=: