summaryrefslogtreecommitdiff
path: root/hints/sco_3.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/sco_3.sh')
-rw-r--r--hints/sco_3.sh35
1 files changed, 29 insertions, 6 deletions
diff --git a/hints/sco_3.sh b/hints/sco_3.sh
index 1bb8fb11a9..a89ffbec6a 100644
--- a/hints/sco_3.sh
+++ b/hints/sco_3.sh
@@ -1,7 +1,30 @@
-yacc='/usr/bin/yacc -Sm11000'
-libswanted=`echo $libswanted | sed 's/ x / /'`
-ccflags="$ccflags -U M_XENIX"
-cppstdin='/lib/cpp -Di386 -DM_I386 -Dunix -DM_UNIX -DM_INTERNAT -DLAI_TCP'
-cppminus=''
+# 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"
+ ;;
+*)
+ ccflags="$ccflags -W0 -U M_XENIX"
+ ;;
+esac
i_varargs=undef
-d_rename='undef'
+nm_opt='-p'