summaryrefslogtreecommitdiff
path: root/hints/sco.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/sco.sh')
-rw-r--r--hints/sco.sh45
1 files changed, 45 insertions, 0 deletions
diff --git a/hints/sco.sh b/hints/sco.sh
new file mode 100644
index 0000000000..daf3aec008
--- /dev/null
+++ b/hints/sco.sh
@@ -0,0 +1,45 @@
+# sco_3.sh
+# Courtesy of Joel Rosi-Schwartz <joel@ftechne.co.uk>
+# To use gcc, do Configure -Dcc=gcc
+#
+# Try to use libintl.a since it has strcoll and strxfrm
+libswanted="intl $libswanted"
+# Try to use libdbm.nfs.a since it has dbmclose.
+#
+if test -f /usr/lib/libdbm.nfs.a ; then
+ libswanted=`echo "dbm.nfs $libswanted " | sed -e 's/ dbm / /'`
+fi
+set X $libswanted
+shift
+libswanted="$*"
+#
+# We don't want Xenix cross-development libraries
+glibpth=`echo $glibpth | sed -e 's! /usr/lib/386 ! !' -e 's! /lib/386 ! !'`
+xlibpth=''
+#
+case "$cc" in
+gcc)
+ ccflags="$ccflags -U M_XENIX"
+ optimize="$optimize -O2"
+ ;;
+scocc) ;;
+
+*)
+ ccflags="$ccflags -W0 -U M_XENIX"
+ ;;
+esac
+i_varargs=undef
+
+# I have received one report that nm extraction doesn't work if you're
+# using the scocc compiler. This system had the following 'myconfig'
+# uname='xxx xxx 3.2 2 i386 '
+# cc='scocc', optimize='-O'
+usenm='false'
+
+# If you want to use nm, you'll probably have to use nm -p. The
+# following does that for you:
+nm_opt='-p'
+
+# I have received one report that you can't include utime.h in
+# pp_sys.c. Uncomment the following line if that happens to you:
+# i_utime=undef