Configure: Split the usecrosscompile section from the to/from/run section
authorJess Robinson <castaway@desert-island.me.uk>
Sat, 29 Dec 2012 21:23:01 +0000 (21:23 +0000)
committerBrian Fraser <fraserbn@gmail.com>
Wed, 22 Jan 2014 16:08:18 +0000 (13:08 -0300)
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.

Configure

index ba8e7f4..5efc25b 100755 (executable)
--- 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