#! /bin/sh
# Generated automatically from mercury.in by configure.
#---------------------------------------------------------------------------#
# Copyright (C) 1995 University of Melbourne.
# This file may only be copied under the terms of the GNU General
# Public License - see the file COPYING in the Mercury distribution.
#---------------------------------------------------------------------------#
#
# MC - Mercury Compiler.
#
# Use `mc -h' for help.
#
# Environment variables: MERCURY_INT_DIR, MERCURY_C_INCL_DIR,
# MERCURY_COMPILER, MERCURY_C_COMPILER,
# MERCURY_DEFAULT_GRADE, MERCURY_DEFAULT_OPT_LEVEL.

INTDIR=${MERCURY_INT_DIR=/usr/lib/mercury/ints}
C_INCL=${MERCURY_C_INCL_DIR=/usr/lib/mercury/inc}
MC=${MERCURY_COMPILER="/usr/lib/mercury/bin/i486-unknown-linux/mercury_compile"}
DEFAULT_GRADE=${MERCURY_DEFAULT_GRADE=asm_fast.gc}
CC=${MERCURY_C_COMPILER="gcc"}
CFLAGS_FOR_REGS="-fno-builtin -fno-omit-frame-pointer"
CFLAGS_FOR_GOTOS="-fno-defer-pop"
LOW_TAG_BITS=2
BITS_PER_WORD=32
BYTES_PER_WORD=4
NUM_REAL_R_REGS=1
NUM_REAL_R_TEMPS=0
HAVE_DELAY_SLOT=
HAVE_BOXED_FLOATS=--no-unboxed-float
DEFAULT_OPT_LEVEL=${MERCURY_DEFAULT_OPT_LEVEL="-O2"}

# The default optimization level should be after
# all the options that describe the machine configuration.

case $# in
	0) exec $MC -I "$INTDIR" --c-include-directory "$C_INCL" \
		--cc "$CC" --grade "$DEFAULT_GRADE" \
		--cflags-for-regs "$CFLAGS_FOR_REGS" \
		--cflags-for-gotos "$CFLAGS_FOR_GOTOS" \
		--num-real-r-regs "$NUM_REAL_R_REGS" \
		--num-real-r-temps "$NUM_REAL_R_TEMPS" \
		--conf-low-tag-bits "$LOW_TAG_BITS" \
		--bits-per-word "$BITS_PER_WORD" \
		--bytes-per-word "$BYTES_PER_WORD" \
		$HAVE_DELAY_SLOT \
		$HAVE_BOXED_FLOATS \
		$DEFAULT_OPT_LEVEL \
		;;
	*) exec $MC -I "$INTDIR" --c-include-directory "$C_INCL" \
		--cc "$CC" --grade "$DEFAULT_GRADE" \
		--cflags-for-regs "$CFLAGS_FOR_REGS" \
		--cflags-for-gotos "$CFLAGS_FOR_GOTOS" \
		--num-real-r-regs "$NUM_REAL_R_REGS" \
		--num-real-r-temps "$NUM_REAL_R_TEMPS" \
		--conf-low-tag-bits "$LOW_TAG_BITS" \
		--bits-per-word "$BITS_PER_WORD" \
		--bytes-per-word "$BYTES_PER_WORD" \
		$HAVE_DELAY_SLOT \
		$HAVE_BOXED_FLOATS \
		$DEFAULT_OPT_LEVEL \
		"$@" ;;
esac
