summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorYitzchak Scott-Thoennes <sthoenna@efn.org>2002-08-06 04:28:15 +0000
committerhv <hv@crypt.org>2002-08-08 14:52:45 +0000
commit736accd3cd04ba6a7a2bd59103c2b280027984c6 (patch)
tree34f60657a78035d154c3507c1caae39bd03182b3 /Configure
parentfeb6f007033805f50279da3c0c8a2b3dc41cec48 (diff)
downloadperl-736accd3cd04ba6a7a2bd59103c2b280027984c6.tar.gz
[perl #16000] Configure -Dstatic_ext=foo builds foo as both static and dynamic
From: Yitzchak Scott-Thoennes (via RT) <perlbug@perl.org> Message-id: <rt-16000-32913.8.41582281961522@bugs6.perl.org> p4raw-id: //depot/perl@17698
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure14
1 files changed, 13 insertions, 1 deletions
diff --git a/Configure b/Configure
index 546874901e..03b4c7d65f 100755
--- a/Configure
+++ b/Configure
@@ -19424,7 +19424,19 @@ Note that DynaLoader is always built and need not be mentioned here.
EOM
case "$dynamic_ext" in
- '') dflt="$avail_ext" ;;
+ '')
+ : Exclude those listed in static_ext
+ dflt=''
+ for xxx in $avail_ext; do
+ case " $static_ext " in
+ *" $xxx "*) ;;
+ *) dflt="$dflt $xxx" ;;
+ esac
+ done
+ set X $dflt
+ shift
+ dflt="$*"
+ ;;
*) dflt="$dynamic_ext"
# Perhaps we are reusing an old out-of-date config.sh.
case "$hint" in