perl 5.003_03: hints/os2.sh
[p5sagit/p5-mst-13.2.git] / hints / sco.sh
CommitLineData
a0d0e21e 1# sco_3.sh
2# Courtesy of Joel Rosi-Schwartz <joel@ftechne.co.uk>
a5f75d66 3# Additional SCO version info from
4# Peter Wolfe <wolfe@teloseng.com>
5# Last revised
6# Tue Feb 13 09:09:10 EST 1996
7
8# To use gcc, use sh Configure -Dcc=gcc
9
10# figure out what SCO version we are:
11case `uname -X | egrep '^Release'` in
12*3.2v4.2) scorls=3 ;;
13*3.2v5.*) scorls=5 ;;
14*) scorls=3 ;; # this probabaly shouldn't happen
15esac
16
a0d0e21e 17# Try to use libintl.a since it has strcoll and strxfrm
18libswanted="intl $libswanted"
19# Try to use libdbm.nfs.a since it has dbmclose.
20#
21if test -f /usr/lib/libdbm.nfs.a ; then
22 libswanted=`echo "dbm.nfs $libswanted " | sed -e 's/ dbm / /'`
23fi
24set X $libswanted
25shift
26libswanted="$*"
a5f75d66 27
a0d0e21e 28# We don't want Xenix cross-development libraries
29glibpth=`echo $glibpth | sed -e 's! /usr/lib/386 ! !' -e 's! /lib/386 ! !'`
30xlibpth=''
a5f75d66 31
a0d0e21e 32case "$cc" in
180c3c44 33*gcc*)
a0d0e21e 34 ccflags="$ccflags -U M_XENIX"
35 optimize="$optimize -O2"
36 ;;
5d94fbed 37scocc) ;;
38
a5f75d66 39*) # Apparently, SCO's cc gives rather verbose warnings
cdc1f821 40 # Set -w0 to turn them off.
a5f75d66 41 case $scorls in
42 3) ccflags="$ccflags -W0 -quiet -U M_XENIX" ;;
43 5) ccflags="$ccflags -w0 -U M_XENIX" ;;
44 esac
a0d0e21e 45 ;;
46esac
988174c1 47i_varargs=undef
5d94fbed 48
49# I have received one report that nm extraction doesn't work if you're
50# using the scocc compiler. This system had the following 'myconfig'
51# uname='xxx xxx 3.2 2 i386 '
52# cc='scocc', optimize='-O'
53usenm='false'
54
55# If you want to use nm, you'll probably have to use nm -p. The
56# following does that for you:
a0d0e21e 57nm_opt='-p'
c2960299 58
59# I have received one report that you can't include utime.h in
60# pp_sys.c. Uncomment the following line if that happens to you:
61# i_utime=undef
cdc1f821 62
63# Apparently, some versions of SCO include both .so and .a libraries,
64# but they don't mix as they do on other ELF systems. The upshot is
65# that Configure finds -ldl (libdl.so) but 'ld' complains it can't
66# find libdl.a.
67# I don't know which systems have this feature, so I'll just remove
68# -dl from libswanted for all SCO systems until someone can figure
69# out how to get dynamic loading working on SCO.
70#
71# The output of uname -X on one such system was
72# System = SCO_SV
73# Node = xxxxx
74# Release = 3.2v5.0.0
75# KernelID = 95/08/08
76# Machine = Pentium
77# BusType = ISA
78# Serial = xxxxx
79# Users = 5-user
80# OEM# = 0
81# Origin# = 1
82# NumCPU = 1
83#
84# The 5.0.0 on the Release= line is probably the thing to watch.
85# Andy Dougherty <doughera@lafcol.lafayette.edu>
86# Thu Feb 1 15:06:56 EST 1996
87libswanted=`echo " $libswanted " | sed -e 's/ dl / /'`
88set X $libswanted
89shift
90libswanted="$*"