sub OS2_massage
{ # Need to put before BEGIN
Please start me as one of
if (not defined $win_arch) {
No Window architecture specified, building for PM.
Please start me as one of
if you want to specify architecture explicitely.
if ($win_arch ne 'x' and not -r
'pTk/mTk/open32/tkWinOS2.c' ) {
Cannot find pTk/mTk/open32/tkWinOS2.c, trying to find Tk-OS2src nearby...
my @zips = <../Tk-OS2src-*/perltk_os
2_common
.zip
>;
Cannot find ../Tk-OS2src-*/perltk_os2_common.zip, did you read README.os2?
print 'Extracting OS/2-related files...\nunzip', $zips[-1], "\n";
system 'unzip', $zips[-1] and die "Unzip: $!";
if ($win_arch eq 'pm' and not -r
'pTk/mTk/os2/tkOS2Int.h') {
print <<EOD unless @zips;
Cannot find pTk/mTk/os2/tkOS2Int.h, trying to find Tk-OS2src nearby...
my @zips = <../Tk-OS2src-*/perltk_os
2_pm
.zip
>;
Cannot find ../Tk-OS2src-*/perltk_os2_pm.zip, did you read README.os2?
print 'Extracting OS/2-related files...\nunzip', $zips[-1], "\n";
system 'unzip', $zips[-1] and die "Unzip: $!";
$test_perl = 'perl__.exe' if $win_arch ne 'x';