extra code in pp_concat, Take 2
[p5sagit/p5-mst-13.2.git] / hints / epix.sh
CommitLineData
16d20bd9 1# epix.sh
2# Hint file for EP/IX on CDC RISC boxes.
3#
4# From: Stanley Donald Capelik <sd9sdc@hp100.den.mmc.com>
1973dd96 5# Modified by Andy Dougherty <doughera@lafayette.edu>
16d20bd9 6# Last modified: Mon May 8 15:29:18 EDT 1995
7#
8# This hint file appears to be based on the svr4 hints for perl5.000,
9# with some CDC-specific additions. I've tried to updated it to
10# match the 5.001 svr4 hints, which allow for dynamic loading,
11# but I have no way of testing the resulting file.
12#
13# There were also some contradictions that I've tried to straighten
14# out, but I'm not sure I got them all right.
15#
16# Edit config.sh to change shmattype from 'char *' to 'void *'"
17
18# Use Configure -Dcc=gcc to use gcc.
19case "$cc" in
20'') cc='/bin/cc3.11'
21 test -f $cc || cc='/usr/ccs/bin/cc'
22 ;;
23esac
24
25usrinc='/svr4/usr/include'
26
27# Various things that Configure apparently doesn't get right.
28strings='/svr4/usr/include/string.h'
29timeincl='/svr4/usr/include/sys/time.h '
30libc='/svr4/usr/lib/libc.a'
facbc158 31glibpth="/svr4/usr/lib /svr4/usr/lib/cmplrs/cc /usr/ccs/lib /svr4/lib /svr4/usr/ucblib $glibpth"
16d20bd9 32osname='epix2'
33archname='epix2'
34d_suidsafe='define' # "./Configure -d" can't figure this out easilly
35d_flock='undef'
36
37# Old version had this, but I'm not sure why since the old version
38# also mucked around with libswanted. This is also definitely wrong
39# if the user is trying to use DB_File or GDBM_File.
40# libs='-lsocket -lnsl -ldbm -ldl -lc -lcrypt -lm -lucb'
41
42# We include support for using libraries in /usr/ucblib, but the setting
43# of libswanted excludes some libraries found there. You may want to
44# prevent "ucb" from being removed from libswanted and see if perl will
45# build on your system.
c22e42be 46ldflags="$ldflags -non_shared -systype svr4 -L/svr4/usr/lib -L/svr4/usr/lib/cmplrs/cc -L/usr/ccs/lib -L/svr4/usr/ucblib"
47ccflags="$ccflags -systype svr4 -D__STDC__=0 -I/svr4/usr/include -I/svr4/usr/ucbinclude"
48cppflags="$ccflags -D__STDC__=0 -I/svr4/usr/include -I/svr4/usr/ucbinclude"
16d20bd9 49
50# Don't use problematic libraries:
51
52libswanted=`echo " $libswanted " | sed -e 's/ malloc / /'` # -e 's/ ucb / /'`
53# libmalloc.a - Probably using Perl's malloc() anyway.
54# libucb.a - Remove it if you have problems ld'ing. We include it because
55# it is needed for ODBM_File and NDBM_File extensions.
56if [ -r /usr/ucblib/libucb.a ]; then # If using BSD-compat. library:
57 # Use the "native" counterparts, not the BSD emulation stuff:
58 d_bcmp='undef'; d_bcopy='undef'; d_bzero='undef'; d_safebcpy='undef'
59 d_index='undef'; d_killpg='undef'; d_getprior='undef'; d_setprior='undef'
60 d_setlinebuf='undef'; d_setregid='undef'; d_setreuid='undef'
61fi
62
63lddlflags="-G $ldflags" # Probably needed for dynamic loading
4aa0a1f7 64# We _do_ want the -L paths in ldflags, but we don't want the -non_shared.
65lddlflags=`echo $lddlflags | sed 's/-non_shared//'`
16d20bd9 66