From: Brian Fraser Date: Fri, 3 Jan 2014 04:32:09 +0000 (-0300) Subject: Configure, sysroot: failing to guess usrinc needn't be fatal X-Git-Tag: upstream/5.20.0~793 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ea734f88d1b94acf863a54bbbe478ed0a1d00ad;p=platform%2Fupstream%2Fperl.git Configure, sysroot: failing to guess usrinc needn't be fatal Previously, if we failed to guess usrinc, incpth, or libpth and were cross-compiling, Configure would've bailed out immediately. This commit makes it more lenient if using -Dsysroot; in case of failure it will now warn, but Configure will continue as usual; this is because the defaults for those variables will now use sysroot, so they have a higher chance of being accurate. --- diff --git a/Configure b/Configure index 3e80e85..8350ba2 100755 --- a/Configure +++ b/Configure @@ -4715,7 +4715,13 @@ case "$ccname" in *) echo "Using usrinc $usrinc." >&4 ;; esac case "$croak" in - y) echo "Cannot continue, aborting." >&4; exit 1 ;; + y) + if test "X$sysroot" = X; then + echo "Cannot continue, aborting." >&4; exit 1 + else + echo "Cross-compiling using sysroot $sysroot, failing to guess inc/lib paths is not fatal" >&4 + fi + ;; esac ;; esac