Configure: Set to/from/run scripts if targethost is passed
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:19 +0000 (13:08 -0300)
Do this regardless of whether we are cross compiling

Configure

index 5efc25b..44a6c0d 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -2878,8 +2878,13 @@ $define|true|[yY]*)
 esac
 
 : Define -Dtargethost=somecomputer to run compiled tests on another machine
-case "$usecrosscompile" in
-$define|true|[yY]*) echo "Using targethost $targethost." >&4
+case "$targethost" in
+    '') echo "No targethost for running compiler tests against defined, running locally" >&4
+        run=''
+        to=:
+        from=:
+        ;;
+    *) echo "Using targethost $targethost." >&4
        case "$src" in
        /*) run=$src/Cross/run
            targetmkdir=$src/Cross/mkdir