From: Jarkko Hietaniemi Date: Mon, 13 Sep 1999 15:35:18 +0000 (+0000) Subject: Add -A option to Configure to diddle with variables X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=02e93a22d20fc9a528c7ba76d142151f565790cd;p=p5sagit%2Fp5-mst-13.2.git Add -A option to Configure to diddle with variables after the hints file has been applied. p4raw-id: //depot/cfgperl@4139 --- diff --git a/Configure b/Configure index 4b55fa6..c80612b 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Mon Aug 30 22:33:03 EET DST 1999 [metaconfig 3.0 PL70] +# Generated on Mon Sep 13 18:34:32 EET DST 1999 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.com) cat >/tmp/c1$$ <options.awk <<'EOF' BEGIN { - optstr = "dD:eEf:hKOrsSU:V"; # getopt-style specification + optstr = "A:dD:eEf:hKOrsSU:V"; # getopt-style specification len = length(optstr); for (i = 1; i <= len; i++) { @@ -1161,7 +1161,7 @@ silent='' extractsh='' override='' knowitall='' -rm -f optdef.sh +rm -f optdef.sh posthint.sh cat >optdef.sh <> posthint.sh + ;; + clear) + echo "$yyy=''" >> posthint.sh + ;; + define) + case "$zzz" in + '') zzz=define ;; + esac + echo "$yyy='$zzz'" >> posthint.sh + ;; + eval) + echo "eval \"$yyy=$zzz\"" >> posthint.sh + ;; + prepend) + echo "$yyy=\"$zzz\${$yyy}\"" >> posthint.sh + ;; + undef) + case "$zzz" in + '') zzz="$uuu" ;; + esac + echo "$yyy=$zzz" >> posthint.sh + ;; + *) echo "$me: unknown -A command '$xxx', ignoring -A $1" >&2 + ;; + esac + ;; -V) echo "$me generated by metaconfig 3.0 PL70." >&2 exit 0;; --) break;; @@ -1227,7 +1278,7 @@ case "$error" in true) cat >&2 <&1` cf_by=`(logname) 2>/dev/null`