1998-09-09 07:00:04 +00:00
|
|
|
# hints/esix4.sh
|
|
|
|
# Original esix4 hint file courtesy of
|
|
|
|
# Kevin O'Gorman ( kevin@kosman.UUCP, kevin%kosman.uucp@nrc.com )
|
|
|
|
#
|
|
|
|
# Use Configure -Dcc=gcc to use gcc.
|
2000-06-25 11:04:01 +00:00
|
|
|
|
|
|
|
# Why can't we just use PATH? It contains /usr/ccs/bin.
|
1998-09-09 07:00:04 +00:00
|
|
|
case "$cc" in
|
|
|
|
'') cc='/bin/cc'
|
|
|
|
test -f $cc || cc='/usr/ccs/bin/cc'
|
|
|
|
;;
|
|
|
|
esac
|
2000-06-25 11:04:01 +00:00
|
|
|
|
|
|
|
ldflags="$ldflags -L/usr/ccs/lib -L/usr/ucblib"
|
1998-09-09 07:00:04 +00:00
|
|
|
test -d /usr/local/man || mansrc='none'
|
2000-06-25 11:04:01 +00:00
|
|
|
# Do we really need to tell cc to look in /usr/include?
|
|
|
|
ccflags="$ccflags -I/usr/include -I/usr/ucbinclude"
|
1998-09-09 07:00:04 +00:00
|
|
|
libswanted=`echo " $libswanted " | sed -e 's/ malloc / /' `
|
|
|
|
d_index='undef'
|
|
|
|
d_suidsafe=define
|
|
|
|
usevfork='false'
|
|
|
|
if test "$osvers" = "3.0"; then
|
|
|
|
d_gconvert='undef'
|
2000-06-25 11:04:01 +00:00
|
|
|
grep 'define[ ]*AF_OSI[ ]' /usr/include/sys/socket.h | grep '/\*[^*]*$' >esix$$
|
|
|
|
if test -s esix$$; then
|
1998-09-09 07:00:04 +00:00
|
|
|
cat <<EOM >&2
|
|
|
|
|
|
|
|
WARNING: You are likely to have problems compiling the Socket extension
|
|
|
|
unless you fix the unterminated comment for AF_OSI in the file
|
|
|
|
/usr/include/sys/socket.h.
|
|
|
|
|
|
|
|
EOM
|
|
|
|
fi
|
2000-06-25 11:04:01 +00:00
|
|
|
rm -f esix$$
|
1998-09-09 07:00:04 +00:00
|
|
|
fi
|
|
|
|
|