summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorJess Robinson <castaway@desert-island.me.uk>2012-12-29 21:23:01 +0000
committerBrian Fraser <fraserbn@gmail.com>2014-01-22 13:08:18 -0300
commitcb87e003d326c2b93218621fcb55241056a83aa1 (patch)
tree028b432c51707da2dfe13f0bb896b24b199d96ec /Configure
parentc9d1bf8e2b28429d0317b74fdaafba4b42aca99b (diff)
downloadperl-cb87e003d326c2b93218621fcb55241056a83aa1.tar.gz
Configure: Split the usecrosscompile section from the to/from/run section
Beyond organization, this also makes sure that usecrosscompile is always set to undef if we're not cross-compiling, which enables code to realibly use $Config{usecrosscompile} to check for a cross-compiling perl.
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/Configure b/Configure
index ba8e7f4da7..5efc25b4a2 100755
--- a/Configure
+++ b/Configure
@@ -2871,6 +2871,15 @@ $define|true|[yY]*)
case "$croak" in
y) echo "Cannot continue, aborting." >&4; exit 1 ;;
esac
+ ;;
+*)
+ usecrosscompile='undef'
+ ;;
+esac
+
+: Define -Dtargethost=somecomputer to run compiled tests on another machine
+case "$usecrosscompile" in
+$define|true|[yY]*) echo "Using targethost $targethost." >&4
case "$src" in
/*) run=$src/Cross/run
targetmkdir=$src/Cross/mkdir