aboutsummaryrefslogtreecommitdiff
path: root/sim/d10v/configure.in
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1996-09-04 17:42:51 +0000
committerMichael Meissner <gnu@the-meissners.org>1996-09-04 17:42:51 +0000
commit7eebfc6296f0830a435a21be0ab37a076c8566bd (patch)
treebb7d99cce94c0f928c238e030e3937971dcb13d9 /sim/d10v/configure.in
parent10d183a0f044d53e923380e919bc65a783ea6a32 (diff)
downloadgdb-7eebfc6296f0830a435a21be0ab37a076c8566bd.zip
gdb-7eebfc6296f0830a435a21be0ab37a076c8566bd.tar.gz
gdb-7eebfc6296f0830a435a21be0ab37a076c8566bd.tar.bz2
More debug support; Enable -t/-v to work correctly; Add --enable-sim-cflags configure switch
Diffstat (limited to 'sim/d10v/configure.in')
-rw-r--r--sim/d10v/configure.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/sim/d10v/configure.in b/sim/d10v/configure.in
index 6bc9b3c..cd1700a 100644
--- a/sim/d10v/configure.in
+++ b/sim/d10v/configure.in
@@ -11,11 +11,24 @@ AC_C_BIGENDIAN
. ${srcdir}/../../bfd/configure.host
+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";;
+ no) sim_cflags="";;
+ *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
+esac
+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_SUBST(CFLAGS)
AC_SUBST(HDEFINES)
AR=${AR-ar}
AC_SUBST(AR)
AC_PROG_RANLIB
+AC_SUBST(sim_cflags)
# Put a plausible default for CC_FOR_BUILD in Makefile.
AC_C_CROSS