From a092d240526911dd8284a018cd9aceb03393940a Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Mon, 13 Mar 2006 18:59:27 +0000 Subject: [PATCH] Split break out the installprefix code from setprefixvar, which allows the remaining 8 places to call the common prefix conversion code. p4raw-id: //depot/perl@27489 --- Configure | 84 ++++++++++++++++++++----------------------------------- 1 file changed, 30 insertions(+), 54 deletions(-) diff --git a/Configure b/Configure index 32ef64a99a..6326ffeece 100755 --- a/Configure +++ b/Configure @@ -5969,14 +5969,11 @@ esac installstyle=$dflt -: Set variables such as privlib and privlibexp from the output of ./getfile -: performing the prefixexp/installprefixexp correction if necessary. -cat <setprefixvar +: Perform the prefixexp/installprefixexp correction if necessary +cat <installprefix $startsh EOS -cat <<'EOSC' >>setprefixvar -eval "${prefixvar}=\"\$ans\"" -eval "${prefixvar}exp=\"\$ansexp\"" +cat <<'EOSC' >>installprefix : Change installation prefix, if necessary. if $test X"$prefix" != X"$installprefix"; then eval "install${prefixvar}=\`echo \$${prefixvar}exp | sed \"s#^\$prefixexp#\$installprefixexp#\"\`" @@ -5985,6 +5982,17 @@ else fi EOSC +: Set variables such as privlib and privlibexp from the output of ./getfile +: performing the prefixexp/installprefixexp correction if necessary. +cat <setprefixvar +$startsh +EOS +cat <<'EOSC' >>setprefixvar +eval "${prefixvar}=\"\$ans\"" +eval "${prefixvar}exp=\"\$ansexp\"" +. ./installprefix +EOSC + : determine where private library files go : Usual default is /usr/local/lib/perl5/$version. : Also allow things like /opt/perl/lib/$version, since @@ -6612,12 +6620,8 @@ case "$vendorprefix" in ;; esac vendorlib_stem=`echo "$vendorlibexp" | sed "s,/$version$,,"` -: Change installation prefix, if necessary. -if $test X"$prefix" != X"$installprefix"; then - installvendorlib=`echo $vendorlibexp | $sed "s#^$prefixexp#$installprefixexp#"` -else - installvendorlib="$vendorlibexp" -fi +prefixvar=vendorlib +. ./installprefix case "$vendorprefix" in '') d_vendorarch="$undef" @@ -6642,12 +6646,8 @@ case "$vendorprefix" in vendorarchexp="$ansexp" ;; esac -: Change installation prefix, if necessary. -if $test X"$prefix" != X"$installprefix"; then - installvendorarch=`echo $vendorarchexp | sed "s#^$prefixexp#$installprefixexp#"` -else - installvendorarch="$vendorarchexp" -fi +prefixvar=vendorarch +. ./installprefix : Final catch-all directories to search $cat <