summaryrefslogtreecommitdiff
path: root/win32/config_sh.PL
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-06-19 07:57:10 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-06-19 07:57:10 +0000
commit1076f1fdb19bacf64e54d08f4a34bbf8042caa24 (patch)
tree1c0796ed1be7a78488013f9dc151c2aadf0a126e /win32/config_sh.PL
parent5eac4321f8221a26c9e14f37c0d61443bfafe0b6 (diff)
downloadperl-1076f1fdb19bacf64e54d08f4a34bbf8042caa24.tar.gz
Get Win32 known_extensions and extensions right in config.sh and hence Config.pm
p4raw-id: //depot/perlio@10708
Diffstat (limited to 'win32/config_sh.PL')
-rw-r--r--win32/config_sh.PL17
1 files changed, 15 insertions, 2 deletions
diff --git a/win32/config_sh.PL b/win32/config_sh.PL
index 9757e52cac..35bb6e26e3 100644
--- a/win32/config_sh.PL
+++ b/win32/config_sh.PL
@@ -44,8 +44,21 @@ while (@{$optref} && $optref->[0] =~ /^([\w_]+)=(.*)$/) {
shift(@{$optref});
}
-$opt{'dynamic_ext'} = join(' ',FindExt::dynamic_extensions());
-$opt{'nonxs_ext'} = join(' ',FindExt::noxs_extensions());
+my @dynamic = FindExt::dynamic_extensions();
+my @noxs = FindExt::noxs_extensions();
+my @known = sort(@dynamic,split(/\s+/,$opt{'staticext'}),@noxs);
+$opt{'known_extensions'} = join(' ',@known);
+
+if (!$opt{'use5005threads'} || $opt{'use5005threads'} eq 'undef')
+ {
+ @dynamic = grep(!/Thread/,@dynamic);
+ @known = grep(!/Thread/,@dynamic);
+ }
+
+$opt{'dynamic_ext'} = join(' ',@dynamic);
+$opt{'nonxs_ext'} = join(' ',@noxs);
+
+$opt{'extensions'} = join(' ',@known);
my $pl_h = '../patchlevel.h';