2 # Hint file for EP/IX on CDC RISC boxes.
4 # From: Stanley Donald Capelik <sd9sdc@hp100.den.mmc.com>
5 # Modified by Andy Dougherty <doughera@lafcol.lafayette.edu>
6 # Last modified: Mon May 8 15:29:18 EDT 1995
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.
13 # There were also some contradictions that I've tried to straighten
14 # out, but I'm not sure I got them all right.
16 # Edit config.sh to change shmattype from 'char *' to 'void *'"
18 # Use Configure -Dcc=gcc to use gcc.
21 test -f $cc || cc='/usr/ccs/bin/cc'
25 usrinc='/svr4/usr/include'
27 # Various things that Configure apparently doesn't get right.
28 strings='/svr4/usr/include/string.h'
29 timeincl='/svr4/usr/include/sys/time.h '
30 libc='/svr4/usr/lib/libc.a'
31 glibpth="/svr4/usr/lib /svr4/usr/lib/cmplrs/cc /usr/ccs/lib /svr4/lib /svr4/usr/ucblib $glibpth"
34 d_suidsafe='define' # "./Configure -d" can't figure this out easilly
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'
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.
46 ldflags="$ldflags -non_shared -systype svr4 -L/svr4/usr/lib -L/svr4/usr/lib/cmplrs/cc -L/usr/ccs/lib -L/svr4/usr/ucblib"
47 ccflags="$ccflags -systype svr4 -D__STDC__=0 -I/svr4/usr/include -I/svr4/usr/ucbinclude"
48 cppflags="$ccflags -D__STDC__=0 -I/svr4/usr/include -I/svr4/usr/ucbinclude"
50 # Don't use problematic libraries:
52 libswanted=`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.
56 if [ -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'
63 lddlflags="-G $ldflags" # Probably needed for dynamic loading
64 # We _do_ want the -L paths in ldflags, but we don't want the -non_shared.
65 lddlflags=`echo $lddlflags | sed 's/-non_shared//'`