1997-02-04 21:42:27 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
1998-04-26 22:03:55 +00:00
|
|
|
sinclude(../common/aclocal.m4)
|
1998-03-25 00:08:52 +00:00
|
|
|
dnl 2.12 botches SHELL substitution
|
|
|
|
AC_PREREQ(2.12.1)dnl
|
1996-11-25 19:52:08 +00:00
|
|
|
AC_INIT(Makefile.in)
|
|
|
|
|
|
|
|
SIM_AC_COMMON
|
|
|
|
|
1998-03-24 20:16:25 +00:00
|
|
|
SIM_AC_OPTION_ENDIAN(LITTLE_ENDIAN)
|
|
|
|
SIM_AC_OPTION_ALIGNMENT(NONSTRICT_ALIGNMENT)
|
|
|
|
SIM_AC_OPTION_HOSTENDIAN
|
|
|
|
SIM_AC_OPTION_WARNINGS
|
|
|
|
SIM_AC_OPTION_RESERVED_BITS
|
|
|
|
SIM_AC_OPTION_BITSIZE(32,31)
|
1998-04-14 00:59:30 +00:00
|
|
|
SIM_AC_OPTION_INLINE()
|
1998-06-12 20:15:43 +00:00
|
|
|
SIM_AC_OPTION_HARDWARE(yes,,mn103cpu mn103int mn103tim mn103ser mn103iop)
|
1998-03-24 20:16:25 +00:00
|
|
|
|
|
|
|
AC_CHECK_FUNCS(time chmod utime fork execve execv chown)
|
|
|
|
AC_CHECK_HEADERS(unistd.h stdlib.h string.h strings.h utime.h time.h)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Enable common
|
|
|
|
#
|
|
|
|
AC_ARG_ENABLE(sim-common,
|
|
|
|
[ --enable-sim-common Enable common simulator],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) sim_gen="-DWITH_COMMON=1"; mn10300_common="WITH";;
|
|
|
|
no) sim_gen="-DWITH_COMMON=0"; mn10300_common="WITHOUT";;
|
|
|
|
*) AC_MSG_ERROR("Unknown value $enableval passed to --enable-sim-common"); sim_gen="";;
|
|
|
|
esac
|
|
|
|
if test x"$silent" != x"yes" && test x"$sim_gen" != x""; then
|
|
|
|
echo "Setting sim_common = $sim_common" 6>&1
|
1998-03-26 01:13:38 +00:00
|
|
|
fi],[sim_gen="-DWITH_COMMON=1"; mn10300_common="WITH"])dnl
|
1998-03-24 20:16:25 +00:00
|
|
|
AC_SUBST(sim_gen)
|
|
|
|
AC_SUBST(mn10300_common)
|
1996-11-25 19:52:08 +00:00
|
|
|
|
|
|
|
SIM_AC_OUTPUT
|