}
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 $opt_f \"$opt_d\" $test |" ) || warn "$0: Can't run. $!\n";
+ open( R, "$perl -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 );
sv_catpv(PL_e_script, "\n");
break;
-#ifdef USE_SITECUSTOMIZE
case 'f':
+#ifdef USE_SITECUSTOMIZE
minus_f = TRUE;
+#endif
s++;
goto reswitch;
-#endif
case 'I': /* -I handled both here and in moreswitches() */
forbid_setid("-I");
if (!*++s && (s=argv[1]) != Nullch) {
"-d[:debugger] run program under debugger",
"-D[number/list] set debugging flags (argument is a bit mask or alphabets)",
"-e program one line of program (several -e's allowed, omit programfile)",
-#ifdef USE_SITECUSTOMIZE
"-f don't do $sitelib/sitecustomize.pl at startup",
-#endif
"-F/pattern/ split() pattern for -a switch (//'s are optional)",
"-i[extension] edit <> files in place (makes backup if extension supplied)",
"-Idirectory specify @INC/#include directory (several -I's allowed)",