diff options
author | Joyce Janczyn <janczyn@cygnus> | 1998-03-24 20:16:25 +0000 |
---|---|---|
committer | Joyce Janczyn <janczyn@cygnus> | 1998-03-24 20:16:25 +0000 |
commit | 4f262a370da1735ff521f5de9248d23c33dba815 (patch) | |
tree | aef1e44821865835a4677be52d3564de710528ae /sim/mn10300/configure.in | |
parent | 13e0e254dcbb74a6a7a25799ff1b642ba3a7fb98 (diff) | |
download | gdb-4f262a370da1735ff521f5de9248d23c33dba815.zip gdb-4f262a370da1735ff521f5de9248d23c33dba815.tar.gz gdb-4f262a370da1735ff521f5de9248d23c33dba815.tar.bz2 |
Add ability to configure mn10300 built with common simulator code base.
Use --enable-sim-common to build this way; default configure has not
changed.
Diffstat (limited to 'sim/mn10300/configure.in')
-rw-r--r-- | sim/mn10300/configure.in | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/sim/mn10300/configure.in b/sim/mn10300/configure.in index 033b0bc..2a5719a 100644 --- a/sim/mn10300/configure.in +++ b/sim/mn10300/configure.in @@ -5,6 +5,30 @@ AC_INIT(Makefile.in) SIM_AC_COMMON -AC_CHECK_HEADERS(unistd.h) +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) + +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 +fi],[sim_gen=""; mn10300_common="WITHOUT"])dnl +AC_SUBST(sim_gen) +AC_SUBST(mn10300_common) SIM_AC_OUTPUT |