6d8f266fd7e1a602433db58560f46abd66223ede
[p5sagit/p5-mst-13.2.git] / hints / esix4.sh
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 case "$cc" in
7 '') cc='/bin/cc'
8     test -f $cc || cc='/usr/ccs/bin/cc'
9     cccdlflags='-Kpic'
10     ;;
11 esac
12 ldflags='-L/usr/ccs/lib -L/usr/ucblib'
13 test -d /usr/local/man || mansrc='none'
14 ccflags='-I/usr/include -I/usr/ucbinclude'
15 libswanted=`echo " $libswanted " | sed -e 's/ malloc / /' `
16 d_index='undef'
17 d_suidsafe=define
18 lddlflags="-G $ldflags"
19 usevfork='false'
20 if test "$osvers" = "3.0"; then
21         d_gconvert='undef'
22         grep 'define[   ]*AF_OSI[       ]' /usr/include/sys/socket.h | grep '/\*[^*]*$' >/tmp/esix$$
23         if test -s /tmp/esix$$; then
24                 cat <<EOM
25
26 WARNING: You are likely to have problems compiling the Socket extension
27 unless you fix the unterminated comment for AF_OSI in the file
28 /usr/include/sys/socket.h.
29
30 EOM
31         fi
32         rm -f /tmp/esix$$
33 fi
34 # dlopen routines exist but they don't work with perl.
35 # The case statement allows experimenters to override hint with
36 # Configure -D usedl
37 case "$usedl" in
38 '') usedl="$undef" ;;   
39 esac