# Copyright (c) 1995-1999 Nick Ing-Simmons. All rights reserved.
# This program is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.
use vars
qw($VERSION @EXPORT);
$VERSION = '3.010'; # $Id: //depot/Tk8/Tk/MMtry.pm#10 $
@EXPORT = qw(try_compile try_run);
my $stderr_too = ($^O
eq 'MSWin32') ?
'' : '2>&1';
my $out = basename
($file,'.c').$Config{'exe_ext'};
warn "Test Compiling $file\n";
my $msgs = `$Config{'cc'} -o $out $Config{'ccflags'} $file $stderr_too`;
unlink($out) if (-f
$out);
my $out = basename
($file,'.c').$Config{'exe_ext'};
warn "Test Compiling $file\n";
my $msgs = `$Config{'cc'} -o $out $Config{'ccflags'} $file $stderr_too`;
unlink($out) if (-f
$out);