}
use Benchmark qw( timediff timestr );
+use Config;
use Getopt::Std 'getopts';
getopts('vI:p:');
my $test = shift;
my @results;
local $ENV{PERL5LIB} = $perl5lib;
+ my $opt_f = $Config{ccflags} =~ /USE_SITECUSTOMIZE/ ? '-f' : '';
my $opt_d = '-d:DProf';
my $t_start = new Benchmark;
- open( R, "$perl -f \"$opt_d\" $test |" ) || warn "$0: Can't run. $!\n";
+ open( R, "$perl $opt_f \"$opt_d\" $test |" ) || warn "$0: Can't run. $!\n";
@results = <R>;
close R or warn "Could not close: $!";
my $t_total = timediff( new Benchmark, $t_start );
print "1..20\n";
while( @tests ){
$test = shift @tests;
- $test =~ s/\.$// if $^O eq 'VMS';
+ $test =~ s/\.$// if $^O eq 'VMS';
if( $test =~ /_t$/i ){
print "# $test" . '.' x (20 - length $test);
profile $test;
register SV *sv;
register char *s;
const char *cddir = Nullch;
+#ifdef USE_SITECUSTOMIZE
bool minus_f = FALSE;
+#endif
PL_fdscript = -1;
PL_suidscript = -1;
sv_catpv(PL_e_script, "\n");
break;
+#ifdef USE_SITECUSTOMIZE
case 'f':
minus_f = TRUE;
s++;
goto reswitch;
+#endif
case 'I': /* -I handled both here and in moreswitches() */
forbid_setid("-I");
if (!*++s && (s=argv[1]) != Nullch) {