},
} if $ExtUtils::MakeMaker::VERSION >= 6.46;
-$plfiles = {
- 'echo.PL' => 'echo.fpl',
- 'remote.PL' => 'remote.fpl',
- 'threaded.PL' => 'threaded.fpl',
-};
-
if ("$sys" eq "win32") {
push @libs, ":nosearch -lws2_32";
push @extras, 'DEFINE' => '-DDLLAPI=__declspec(dllexport)';
'$(MV) MANIFEST.old MANIFEST',
},
'clean' => { FILES => 'config.cache fcgi_config.h' .
- ' FCGI.c ' .
- (join ' ', values %$plfiles)},
- 'PL_FILES' => $plfiles,
+ ' FCGI.c ' },
PM => {'FCGI.pm' => '$(INST_ARCHLIBDIR)/FCGI.pm'},
@extras,
);
-use Config;
-
-open OUT, ">remote.fpl";
-print OUT "#!$Config{perlpath}\n";
-print OUT while <DATA>;
-close OUT;
-chmod 0755, "remote.fpl";
-__END__
+#!/usr/bin/perl
# An example of using a remote script with an Apache webserver.
# Run this Perl program on "otherhost" to bind port 8888 and wait
# for FCGI requests from the webserver.
-use Config;
-
-open OUT, ">threaded.fpl";
-print OUT "#!$Config{perlpath}\n";
-print OUT while <DATA>;
-close OUT;
-chmod 0755, "threaded.fpl";
-__END__
+#!/usr/bin/perl
use FCGI;
use Thread;