fi
# Solaris 2.5.1 seems to confuse things
-if echo "$build" grep "solaris2.5" > /dev/null ; then
- echo "Real Time is hacking things up for Solaris 2.5.x"
+if echo "$build" | grep "solaris2.5" > /dev/null ; then
+ echo "Hacking things up for Solaris 2.5.x"
build_os="solaris"
fi
-if echo "$build" | egrep 'solaris|hpux10|sco' >/dev/null ; then
- # Solaris needs -ldl to use -lnsl, and it can't build static
- # binaries if you use -ldl
+RPM=rpm
+# Solaris needs -ldl to use -lnsl, and it can't build static
+# binaries if you use -ldl
+if echo "$build_os" | grep solaris >/dev/null; then
+ echo "hacking things up for solaris"
RPM=rpm.shared
- if echo "$build" | grep solaris >/dev/null; then
- echo "hacking things up for solaris"
- LIBDL=-ldl
- elif echo "$build" | grep sco > /dev/null; then
- echo "hacking things up for sco"
- AC_DEFINE(NEED_STRINGS_H)
- else
- echo "hacking things up for hpux"
- fi
-else
- RPM=rpm
+ LIBDL=-ldl
+elif echo "$build_os" | grep sco > /dev/null; then
+ echo "hacking things up for sco"
+ RPM=rpm.shared
+ AC_DEFINE(NEED_STRINGS_H)
+elif echo "$build_os" | grep sunos > /dev/null; then
+ echo "hacking things up for sunos"
+ CFLAGS="$CFLAGS -D__USE_FIXED_PROTOTYPES__"
+ AC_DEFINE(NEED_STRINGS_H)
+elif echo "$build_os" | grep hpux > /dev/null; then
+ RPM=rpm.shared
+ echo "hacking things up for hpux"
fi
rm -f ./find-provides.sh