#!/bin/sh
# $Id: cc-unproto,v 1.5 1996/01/15 00:35:19 dickey Exp $
#
# This is a wrapper for the C-compiler that uses 'unproto' to convert from
# ANSI to K&R syntax at the preprocessor stage.
#
P=/usr/local/lib/unproto
if test ! -d $P; then
	echo 'Sorry - not configured for this system'
	exit 1
fi
ARCH=`uname -s -r | sed -e 's/ /-/g'`
case $ARCH in
SunOS-4.1.*)
	CC_OPTS="-Qpath $P -I$P"
	;;
HP-UX-A.09.*)
	CC_OPTS="-tp,$P/cpp -I$P -D_HPUX_SOURCE"
	;;
*)	echo 'Sorry - configuration data is missing'
	exit 1
	;;
esac
cc -Dsigned= -Dvolatile= -Dconst= -D__STDC__ $CC_OPTS $*
