14a4f25f9Sdownsj# Sequent Dynix/Ptx v. 4 hints 24a4f25f9Sdownsj# Created 1996/03/15 by Brad Howerter, bhower@wgc.woodward.com 36345ca90Smillert 46345ca90Smillert# Modified 1998/11/10 by Martin J. Bligh, mbligh@sequent.com 56345ca90Smillert# to incorporate work done by Kurtis D. Rader & myself. 66345ca90Smillert 74a4f25f9Sdownsj# Use Configure -Dcc=gcc to use gcc. 84a4f25f9Sdownsj 94a4f25f9Sdownsj# cc wants -G for dynamic loading 104a4f25f9Sdownsjlddlflags='-G' 114a4f25f9Sdownsj 124a4f25f9Sdownsj# Remove inet to avoid this error in Configure, which causes Configure 134a4f25f9Sdownsj# to be unable to figure out return types: 144a4f25f9Sdownsj# dynamic linker: ./ssize: can't find libinet.so, 154a4f25f9Sdownsj# link with -lsocket instead of -linet 164a4f25f9Sdownsj 174a4f25f9Sdownsjlibswanted=`echo $libswanted | sed -e 's/ inet / /'` 184a4f25f9Sdownsj 194a4f25f9Sdownsj# Configure defaults to usenm='y', which doesn't work very well 204a4f25f9Sdownsjusenm='n' 214a4f25f9Sdownsj 22e2e5c5d3Smillert# removed d_vfork='define'; we can't use it any more ... 236345ca90Smillert 24e2e5c5d3Smillertcase "$optimize" in 25e2e5c5d3Smillert'') optimize='-Wc,-O3 -W0,-xstring' ;; 26e2e5c5d3Smillertesac 276345ca90Smillert 286345ca90Smillert# We override d_socket because it's very hard for Configure to get it right 296345ca90Smillert# in Dynix/Ptx, for several reasons. 306345ca90Smillert# (1) the socket interface is in libsocket.so -- this wouldn't be so hard 316345ca90Smillert# for Configure to fathom...but it gets more tangled. 326345ca90Smillert# (2) if the system has been patched there can be libsocket.so.1.FOO.BAR, 336345ca90Smillert# the FOO.BAR being the old version of the system before the patching. 346345ca90Smillert# Configure picks up the old broken version. 356345ca90Smillert# (3) libsocket.so points to either libsocket.so.1 (v4.2) 366345ca90Smillert# or libsocket.so.1.1 (v4.4) The socket call in libsocket.so.1.1 376345ca90Smillert# (BSD socket library) is called bsd_socket(), and has a macro wrapper 386345ca90Smillert# to hide this. 396345ca90Smillert# This information kindly provided by Martin J. Bligh of Sequent. 406345ca90Smillert# As he puts it: 416345ca90Smillert# "Sequent has unusual capabilities, taking it above and beyond 426345ca90Smillert# the complexity of any other vendor" :-) 436345ca90Smillert# 446345ca90Smillert# Jarkko Hietaniemi November 1998 456345ca90Smillert 466345ca90Smillertcase "$osvers" in 47*79cd0b9aSmillert4.[45]*) # configure doesn't find sockets, as they're in libsocket, not libc 486345ca90Smillert d_socket='define' 496345ca90Smillert d_oldsock='undef' 506345ca90Smillert d_sockpair='define' 516345ca90Smillert ;; 526345ca90Smillert4.2*) # on ptx/TCP 4.2, we can use BSD sockets, but they're not the default. 53e2e5c5d3Smillert cppflags="$cppflags -Wc,+bsd-socket" 54e2e5c5d3Smillert ccflags="$ccflags -Wc,+bsd-socket" 55e2e5c5d3Smillert ldflags="$ldflags -Wc,+bsd-socket" 566345ca90Smillert d_socket='define' 576345ca90Smillert d_oldsock='undef' 586345ca90Smillert d_sockpair='define' 596345ca90Smillert ;; 606345ca90Smillertesac 61