dnl misc setup for vic/vat/etc. autoconf scripts.
dnl $Header: /usr/src/mash/repository/common/conf/configure.in.misc,v 1.10 1998/04/01 03:17:37 hodes Exp $ (LBL)

case "$target" in 
*-dec-*)
	;;
sparc-sun-solaris*)
	if test $CC = gcc ; then
		V_DEFINE="$V_DEFINE -mv8 -msupersparc"
	fi
	V_DEFINE="$V_DEFINE -D__svr4__"
	V_LIB="$V_LIB -ldl"
	;;
sparc-sun-sunos*)
	V_DEFINE="$V_DEFINE -DNEED_SUNOS_PROTOS"
	;;
*-sgi-irix5*)
	V_DEFINE="$V_DEFINE -DIRIX5 -D_BSD_SIGNALS"
	if test "$target_os" = irix5.3 ; then
		V_DEFINE="$V_DEFINE -DIRIX5_3"
	fi
	V_TARCMD="tar cfL"
	V_SHELL="SHELL = /bin/sh"
	if test $CC != gcc ; then
		V_DEFINE="$V_DEFINE -signed -g3"
		V_CXXOPT="$V_CXXOPT +p -float"
		CC="cc -xansi -D__STDC__ -Dinline="
		CXX="CC +p -float -DSGI_COMPAT"
	fi
	V_RANLIB="ar ts"
	;;
*-sgi-irix6*)
	V_DEFINE="$V_DEFINE -DIRIX6 -D_BSD_SIGNALS"
	V_TARCMD="tar cfL"
	V_SHELL="SHELL = /bin/sh"
	if test $CC != gcc ; then
		V_DEFINE="$V_DEFINE -signed -g3"
		V_CXXOPT="$V_CXXOPT +p -float"
		CC="cc -xansi -D__STDC__ -Dinline="
		CXX="CC +p -float -DSGI_COMPAT"
	fi
	V_RANLIB="ar ts"
	;;
*-*-bsdi1*)
	V_SHM=""
	V_TARCMD="tar cfL"
	;;
*-*-bsdi2.0*)
	V_SHM=""
	V_TARCMD="tar cfL"
	;;
*-*-bsdi2.1*)
	# bsdi2.1 added sys-v shared memory support but their implementation
	# is broken so we have to turn it off.  If they ever fix libipc,
	# the following line should be deleted.
	V_SHM=""
	V_TARCMD="tar cfL"
	V_CCOPT="-O2 -m486"
	V_LIB="$V_LIB -lipc -ldl"
	;;
*-*-bsdi3*)
	V_SHM=""
	V_TARCMD="tar cfL"
	V_LIB="$V_LIB -lipc -ldl"
	;;
*-*-freebsd*)
	V_OBJ="$V_OBJ misc/serial.o"
	;;
*-*-netbsd*)
	V_TARCMD="tar -h -c -f"
	V_LIB="$V_LIB -L/usr/local/lib"
	;;
*-*-hpux*)
	AC_DEFINE(random,lrand48)
	AC_DEFINE(srandom,srand)
	V_CCOPT="-O"
	;;
*-*-aix3*)
	V_DEFINE="$V_DEFINE -DSIGARGS=int"
	if test "$V_LIB_AIXSHM" != "" ; then
		V_LIB="$V_LIB $V_LIB_AIXSHM"
	else
		V_SHM=""
	fi
	CXX="xlC -+"
	;;
*-*-aix4*)
	V_DEFINE="$V_DEFINE -DSIGARGS=int -D_AIX41"
	if test "$V_LIB_AIXSHM" != "" ; then
		V_LIB="$V_LIB $V_LIB_AIXSHM"
	else
		V_SHM=""
	fi
	CXX="g++"
	;;
*-*-linux*)
	V_BROKEN_OBJ=
	;;
esac
