diff options
author | Neil Williams <codehelp@debian.org> | 2013-01-11 17:01:22 +0000 |
---|---|---|
committer | Brian Fraser <fraserbn@gmail.com> | 2014-01-22 13:08:19 -0300 |
commit | 97076f2d65c868728b9943392be44a3d4c8e881d (patch) | |
tree | ba5a50afcdf688576797534b5af36656ef676ed7 /Configure | |
parent | 0eafc8c9fb36e2eff46fe122307868db398c4211 (diff) | |
download | perl-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-x | Configure | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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=: |