Continue cpp symbol update.
[p5sagit/p5-mst-13.2.git] / hints / dynixptx.sh
CommitLineData
a2c75dc2 1# Sequent Dynix/Ptx v. 4 hints
2# Created 1996/03/15 by Brad Howerter, bhower@wgc.woodward.com
7e41cbf5 3
4# Modified 1998/11/10 by Martin J. Bligh, mbligh@sequent.com
5# to incorporate work done by Kurtis D. Rader & myself.
6
a2c75dc2 7# Use Configure -Dcc=gcc to use gcc.
8
9# cc wants -G for dynamic loading
10lddlflags='-G'
11
12# Remove inet to avoid this error in Configure, which causes Configure
13# to be unable to figure out return types:
14# dynamic linker: ./ssize: can't find libinet.so,
439a7939 15# link with -lsocket instead of -linet
a2c75dc2 16
17libswanted=`echo $libswanted | sed -e 's/ inet / /'`
18
19# Configure defaults to usenm='y', which doesn't work very well
20usenm='n'
21
7e41cbf5 22# for performance, apparently this makes a huge difference (~krader)
23
24d_vfork='define'
c22e42be 25case "$optimize" in
26'') optimize='-Wc,-O3 -W0,-xstring' ;;
27esac
7e41cbf5 28
d1b4cc9b 29# We override d_socket because it's very hard for Configure to get it right
30# in Dynix/Ptx, for several reasons.
31# (1) the socket interface is in libsocket.so -- this wouldn't be so hard
32# for Configure to fathom...but it gets more tangled.
33# (2) if the system has been patched there can be libsocket.so.1.FOO.BAR,
34# the FOO.BAR being the old version of the system before the patching.
35# Configure picks up the old broken version.
36# (3) libsocket.so points to either libsocket.so.1 (v4.2)
37# or libsocket.so.1.1 (v4.4) The socket call in libsocket.so.1.1
38# (BSD socket library) is called bsd_socket(), and has a macro wrapper
39# to hide this.
40# This information kindly provided by Martin J. Bligh of Sequent.
41# As he puts it:
42# "Sequent has unusual capabilities, taking it above and beyond
43# the complexity of any other vendor" :-)
44#
240eed2d 45# Jarkko Hietaniemi November 1998
d1b4cc9b 46
7e41cbf5 47case "$osvers" in
484.4*) # configure doesn't find sockets, as they're in libsocket, not libc
49 d_socket='define'
50 d_oldsock='undef'
51 d_sockpair='define'
52 ;;
534.2*) # on ptx/TCP 4.2, we can use BSD sockets, but they're not the default.
c22e42be 54 cppflags="$cppflags -Wc,+bsd-socket"
55 ccflags="$ccflags -Wc,+bsd-socket"
56 ldflags="$ldflags -Wc,+bsd-socket"
7e41cbf5 57 d_socket='define'
58 d_oldsock='undef'
59 d_sockpair='define'
60 ;;
61esac