diff options
author | Michael Meissner <gnu@the-meissners.org> | 1996-09-18 13:23:31 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1996-09-18 13:23:31 +0000 |
commit | a49a15ade80ed7fa3c08b5faf6bffdb70054760e (patch) | |
tree | 91e3e0875c9e64434eb8c71779f090a782603e64 /sim/d10v/configure.in | |
parent | 8ebc98911a9133e0bd2a9f841b013593eee5aea3 (diff) | |
download | gdb-a49a15ade80ed7fa3c08b5faf6bffdb70054760e.zip gdb-a49a15ade80ed7fa3c08b5faf6bffdb70054760e.tar.gz gdb-a49a15ade80ed7fa3c08b5faf6bffdb70054760e.tar.bz2 |
Make exit/stop return correct exit value; Add line number tracing.
Diffstat (limited to 'sim/d10v/configure.in')
-rw-r--r-- | sim/d10v/configure.in | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sim/d10v/configure.in b/sim/d10v/configure.in index 647255e..cc9c4ad 100644 --- a/sim/d10v/configure.in +++ b/sim/d10v/configure.in @@ -23,7 +23,7 @@ AC_ARG_ENABLE(sim-cflags, [ --enable-sim-cflags=opts Extra CFLAGS for use in building simulator], [case "${enableval}" in yes) sim_cflags="-O2";; - trace) sim_cflags="-O2 -DDEBUG=3";; + trace) AC_MSG_ERROR("Please use --enable-sim-debug instead."); sim_cflags="";; no) sim_cflags="";; *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;; esac @@ -31,6 +31,17 @@ if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then echo "Setting sim cflags = $sim_cflags" 6>&1 fi],[sim_cflags=""])dnl +AC_ARG_ENABLE(sim-debug, +[ --enable-sim-debug=opts Enable debugging flags], +[case "${enableval}" in + yes) sim_debug="-DDEBUG=7";; + no) sim_debug="-DDEBUG=0";; + *) sim_debug="-DDEBUG='(${enableval})'";; +esac +if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then + echo "Setting sim debug = $sim_debug" 6>&1 +fi],[sim_cflags=""])dnl + AC_SUBST(CC_FOR_BUILD) AC_SUBST(CFLAGS) AC_SUBST(HDEFINES) @@ -38,6 +49,7 @@ AR=${AR-ar} AC_SUBST(AR) AC_PROG_RANLIB AC_SUBST(sim_cflags) +AC_SUBST(sim_debug) # Put a plausible default for CC_FOR_BUILD in Makefile. AC_C_CROSS |