Re: Perl 5.003 + FastCGI

Stefan Farestam (stefan@igis.se)
Thu, 08 Aug 1996 18:02:22 +0200

Message-Id: <320A0F8E.2F1C@igis.se>
Date: Thu, 08 Aug 1996 18:02:22 +0200
From: Stefan Farestam <stefan@igis.se>
To: fastcgi-developers@openmarket.com
Subject: Re: Perl 5.003 + FastCGI
In-Reply-To:<3209FBF2.2781E494@ind70.industry.net>
from Ron Newman on Jul 26, 1996 14:50:15 -0400

Hi,
 Just to add another input to configuring perl5.003 for fastcgi.
 Here are my complete notes which work for both an SGI Indy and
 Solaris.

 Hope this helps,
 Stefan
---------------------------------------------
gunzip < perl5.003.tar.gz | tar xvf -

cd perl5.003

set fcgi = /usr/local/src/fcgi/src/fcgi-devel-kit

cp -r $fcgi/perl-5/common/ext/FCGI ext/FCGI

if (! -r proto.h-orig)   cp proto.h proto.h-orig
cat > proto.h << \
-----------
#ifdef _FCGI_STDIO
#undef printf
#endif
-----------
cat proto.h-orig >> proto.h
cat >> proto.h << \
-----------
#ifdef _FCGI_STDIO
#define printf FCGI_printf
#endif
-----------

## Force use of the gnu assembler to make gcc happy!
set path = (/usr/local/bin $path)

## Start from scratch and do a normal configure!
set options = "-D cc=gcc -D optimize=-O2 -des"
sh Configure $options

sed "\
s|ccflags='|ccflags='-I$fcgi/include -include $fcgi/include/fcgi_stdio.h
|\
s|cppflags='|cppflags='-I$fcgi/include -include
$fcgi/include/fcgi_stdio.h |\
s|libs='|libs='$fcgi/libfcgi/libfcgi.a |\
s|d_stdio_cnt_lval='define'|d_stdio_cnt_lval='undef'|\
s|d_stdio_ptr_lval='define'|d_stdio_ptr_lval='undef'|\
s|d_stdiobase='define'|d_stdiobase='undef'|\
s|d_stdstdio='define'|d_stdstdio='undef'|\
" < config.sh > config.sh-tmp; mv config.sh-tmp config.sh

## A second round with configure seems to make everyone happy!
sh Configure $options

make
make test

./perl installperl

--
Stefan Farestam              IGIS - Industrial Grade Information Systems
<stefan@igis.se>             Sibyllegatan 43 - 45    Tel: +46 8 667 2848
    www.igis.se              114 42 Stockholm        Fax: +46 8 667 7898