]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/d10v/configure.in
Make exit/stop return correct exit value; Add line number tracing.
[thirdparty/binutils-gdb.git] / sim / d10v / configure.in
CommitLineData
2934d1c9
MH
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.5)dnl
3AC_INIT(Makefile.in)
4
5AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
6AC_CANONICAL_SYSTEM
7AC_ARG_PROGRAM
8AC_PROG_CC
9AC_PROG_INSTALL
10AC_C_BIGENDIAN
11
1eaaf305
MM
12# Put a plausible default for CC_FOR_BUILD in Makefile.
13AC_C_CROSS
14if test "x$cross_compiling" = "xno"; then
15 CC_FOR_BUILD='$(CC)'
16else
17 CC_FOR_BUILD=gcc
18fi
19
2934d1c9
MH
20. ${srcdir}/../../bfd/configure.host
21
7eebfc62
MM
22AC_ARG_ENABLE(sim-cflags,
23[ --enable-sim-cflags=opts Extra CFLAGS for use in building simulator],
24[case "${enableval}" in
25 yes) sim_cflags="-O2";;
a49a15ad 26 trace) AC_MSG_ERROR("Please use --enable-sim-debug instead."); sim_cflags="";;
7eebfc62
MM
27 no) sim_cflags="";;
28 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
29esac
30if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
31 echo "Setting sim cflags = $sim_cflags" 6>&1
32fi],[sim_cflags=""])dnl
33
a49a15ad
MM
34AC_ARG_ENABLE(sim-debug,
35[ --enable-sim-debug=opts Enable debugging flags],
36[case "${enableval}" in
37 yes) sim_debug="-DDEBUG=7";;
38 no) sim_debug="-DDEBUG=0";;
39 *) sim_debug="-DDEBUG='(${enableval})'";;
40esac
41if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
42 echo "Setting sim debug = $sim_debug" 6>&1
43fi],[sim_cflags=""])dnl
44
1eaaf305 45AC_SUBST(CC_FOR_BUILD)
2934d1c9
MH
46AC_SUBST(CFLAGS)
47AC_SUBST(HDEFINES)
48AR=${AR-ar}
49AC_SUBST(AR)
50AC_PROG_RANLIB
7eebfc62 51AC_SUBST(sim_cflags)
a49a15ad 52AC_SUBST(sim_debug)
2934d1c9
MH
53
54# Put a plausible default for CC_FOR_BUILD in Makefile.
55AC_C_CROSS
56if test "x$cross_compiling" = "xno"; then
57 CC_FOR_BUILD='$(CC)'
58else
59 CC_FOR_BUILD=gcc
60fi
61AC_SUBST(CC_FOR_BUILD)
62
63AC_OUTPUT(Makefile)