From 88e1e9777949edaf7283b2a9806de221818ff28f Mon Sep 17 00:00:00 2001 From: Jess Robinson Date: Sat, 29 Dec 2012 21:23:01 +0000 Subject: Fix two Configure tests when targethost is set --- Configure | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'Configure') diff --git a/Configure b/Configure index f6fc4c90c8..2b601492e8 100755 --- a/Configure +++ b/Configure @@ -19614,7 +19614,13 @@ EOCP set tryp if eval $compile; then $rm -f tryp.out - $cat tryp.c | $run ./tryp 2>/dev/null > tryp.out + # Copy the .c file to the remote host ($to is an ssh-alike if targethost is set) + if $test "X$targethost" != X; then + $to tryp.c + $run ./tryp \< tryp.c 2>/dev/null > tryp.out + else + $cat tryp.c | $run ./tryp 2>/dev/null > tryp.out + fi if cmp tryp.c tryp.out >/dev/null 2>&1; then $cat >&4 </dev/null > tryp.out + if $test "X$targethost" != X; then + $to tryp.c + $run ./tryp \< tryp.c 2>/dev/null > tryp.out + else + $cat tryp.c | $run ./tryp 2>/dev/null > tryp.out + fi if cmp tryp.c tryp.out >/dev/null 2>&1; then $cat >&4 <