1 dnl Process this file with autoconf to produce a configure script.
5 AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
12 # Put a plausible default for CC_FOR_BUILD in Makefile.
14 if test "x$cross_compiling" = "xno"; then
20 . ${srcdir}/../../bfd/configure.host
22 AC_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";;
26 trace) AC_MSG_ERROR("Please use --enable-sim-debug instead."); sim_cflags="";;
28 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
30 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
31 echo "Setting sim cflags = $sim_cflags" 6>&1
32 fi],[sim_cflags=""])dnl
34 AC_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})'";;
41 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
42 echo "Setting sim debug = $sim_debug" 6>&1
43 fi],[sim_cflags=""])dnl
45 AC_SUBST(CC_FOR_BUILD)
54 # Put a plausible default for CC_FOR_BUILD in Makefile.
56 if test "x$cross_compiling" = "xno"; then
61 AC_SUBST(CC_FOR_BUILD)