summaryrefslogtreecommitdiff
path: root/win32/config_sh.PL
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>1997-11-22 21:18:11 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>1997-11-22 21:18:11 +0000
commitacbc2db62d28b1660277b33463f96f796b30a6c3 (patch)
treef30ca3832ee607f9a52fe9655e0674656aa43c9c /win32/config_sh.PL
parentf987c7de872f3c20b09e75a8cd08fc8c3c4aefd2 (diff)
downloadperl-acbc2db62d28b1660277b33463f96f796b30a6c3.tar.gz
Munge pseudo-Configure stuff to add -thread to archname as
Malcolm seems to think that is way to test for threads. Update @INC stuffing hackery to have traditional @INC search order archlib, privlib, sitearch, site. p4raw-id: //depot/ansiperl@282
Diffstat (limited to 'win32/config_sh.PL')
-rw-r--r--win32/config_sh.PL11
1 files changed, 11 insertions, 0 deletions
diff --git a/win32/config_sh.PL b/win32/config_sh.PL
index 0c3713cb2e..5f3f157a0c 100644
--- a/win32/config_sh.PL
+++ b/win32/config_sh.PL
@@ -5,6 +5,17 @@ while (@ARGV && $ARGV[0] =~ /^([\w_]+)=(.*)$/)
shift(@ARGV);
}
+$opt{'archname'} = 'MSWin32';
+if (defined $ENV{'PROCESSOR_ARCHITECTURE'})
+ {
+ $opt{'archname'} .= '-'.$ENV{'PROCESSOR_ARCHITECTURE'};
+ }
+
+if ($opt{'ccflags'} =~ /USE_THREADS/)
+ {
+ $opt{'archname'} .= '-thread';
+ }
+
if ($] =~ /\.(\d\d\d)?(\d\d)?$/) { # should always be true
$opt{PATCHLEVEL} = int($1 || 0);
$opt{SUBVERSION} = $2 || '00';