xref: /openbsd/gnu/usr.bin/perl/hints/esix4.sh (revision 78b63d65)
1# hints/esix4.sh
2# Original esix4 hint file courtesy of
3# Kevin O'Gorman ( kevin@kosman.UUCP, kevin%kosman.uucp@nrc.com )
4#
5# Use Configure -Dcc=gcc to use gcc.
6
7# Why can't we just use PATH?  It contains /usr/ccs/bin.
8case "$cc" in
9'') cc='/bin/cc'
10    test -f $cc || cc='/usr/ccs/bin/cc'
11    ;;
12esac
13
14ldflags="$ldflags -L/usr/ccs/lib -L/usr/ucblib"
15test -d /usr/local/man || mansrc='none'
16# Do we really need to tell cc to look in /usr/include?
17ccflags="$ccflags -I/usr/include -I/usr/ucbinclude"
18libswanted=`echo " $libswanted " | sed -e 's/ malloc / /' `
19d_index='undef'
20d_suidsafe=define
21usevfork='false'
22if test "$osvers" = "3.0"; then
23	d_gconvert='undef'
24	grep 'define[ 	]*AF_OSI[ 	]' /usr/include/sys/socket.h | grep '/\*[^*]*$' >esix$$
25	if test -s esix$$; then
26		cat <<EOM >&2
27
28WARNING: You are likely to have problems compiling the Socket extension
29unless you fix the unterminated comment for AF_OSI in the file
30/usr/include/sys/socket.h.
31
32EOM
33	fi
34	rm -f esix$$
35fi
36
37