f726974d0fb3125ebc56d515a4b16fed215c39de
[p5sagit/p5-mst-13.2.git] / hints / dynixptx.sh
1 # Sequent Dynix/Ptx v. 4 hints
2 # Created 1996/03/15 by Brad Howerter, bhower@wgc.woodward.com
3
4 # Modified 1998/11/10 by Martin J. Bligh, mbligh@sequent.com
5 # to incorporate work done by Kurtis D. Rader & myself.
6
7 # Use Configure -Dcc=gcc to use gcc.
8
9 # cc wants -G for dynamic loading
10 lddlflags='-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,
15 # link with -lsocket instead of -linet
16
17 libswanted=`echo $libswanted | sed -e 's/ inet / /'`
18
19 # Configure defaults to usenm='y', which doesn't work very well
20 usenm='n'
21
22 # for performance, apparently this makes a huge difference (~krader)
23
24 d_vfork='define'
25 optimize='-Wc,-O3 -W0,-xstring'
26
27 case "$osvers" in
28 4.4*) # configure doesn't find sockets, as they're in libsocket, not libc
29         d_socket='define'
30         d_oldsock='undef'
31         d_sockpair='define'
32         ;;
33 4.2*) # on ptx/TCP 4.2, we can use BSD sockets, but they're not the default.
34         cppflags='-Wc,+bsd-socket'
35         ccflags='-Wc,+bsd-socket'
36         ldflags='-Wc,+bsd-socket'
37         d_socket='define'
38         d_oldsock='undef'
39         d_sockpair='define'
40     ;;
41 esac