Separate SH used to run Configure from SH used on target system
[perl.git] / Configure
index a81e3a4..e4e5570 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -217,6 +217,7 @@ usecrosscompile=''
 hostperl=''
 hostgenerate=''
 hostosname=''
+targetsh=''
 extern_C=''
 mistrustnm=''
 usedevel=''
@@ -1439,6 +1440,10 @@ EOM
        ;;
 esac
 
+: When cross-compiling we need to separate the sh-to-run-Configure-with from the sh-to-use-in-Perl
+: default both to the same thing, cross-compilers can then set targetsh differently if they like
+targetsh=$sh
+
 : see if sh knows # comments
 if `$sh -c '#' >/dev/null 2>&1`; then
        shsharp=true
@@ -23817,6 +23822,7 @@ targetdir='$targetdir'
 targethost='$targethost'
 targetmkdir='$targetmkdir'
 targetport='$targetport'
+targetsh='$targetsh'
 tbl='$tbl'
 tee='$tee'
 test='$test'