From 43e43407b8eaf58a1afa5020987e324cbaec5b9d Mon Sep 17 00:00:00 2001 From: ewt Date: Wed, 14 May 1997 18:42:47 +0000 Subject: [PATCH] Fixed some minor problems. CVS patchset: 1623 CVS date: 1997/05/14 18:42:47 --- configure.in | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/configure.in b/configure.in index 8b479ac..d722ee8 100644 --- a/configure.in +++ b/configure.in @@ -294,26 +294,29 @@ if test "x$tmpdir" = "x"; then 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 -- 2.7.4