14 |
|
AC_ARG_ENABLE(addressing, |
15 |
|
[ --enable-addressing=mode specify the addressing mode to use [default=fastest]], |
16 |
|
[ case "$enableval" in |
17 |
< |
real) ADDRESSING_TEST_ORDER="real";; |
18 |
< |
direct) ADDRESSING_TEST_ORDER="direct";; |
19 |
< |
banks) ADDRESSING_TEST_ORDER="banks";; |
20 |
< |
dnl fastest) ADDRESSING_TEST_ORDER="real direct banks";; gb-- will enable later... |
21 |
< |
fastest) ADDRESSING_TEST_ORDER="direct banks";; |
22 |
< |
*) AC_MSG_ERROR([--enable-mem-addressing takes only one of the following values: fastest, real, direct, banks]);; |
17 |
> |
real) ADDRESSING_TEST_ORDER="real";; |
18 |
> |
direct) ADDRESSING_TEST_ORDER="direct";; |
19 |
> |
banks) ADDRESSING_TEST_ORDER="banks";; |
20 |
> |
dnl fastest) ADDRESSING_TEST_ORDER="real direct banks";; gb-- will enable later... |
21 |
> |
fastest) ADDRESSING_TEST_ORDER="direct banks";; |
22 |
> |
*) AC_MSG_ERROR([--enable-mem-addressing takes only one of the following values: fastest, real, direct, banks]);; |
23 |
|
esac |
24 |
|
], |
25 |
|
dnl [ ADDRESSING_TEST_ORDER="real direct banks" gb-- will probably reactivate later |
67 |
|
MONSRCS= |
68 |
|
if [[ "x$WANT_MON" = "xyes" ]]; then |
69 |
|
AC_MSG_CHECKING(for mon) |
70 |
< |
if grep mon_init ../../../mon/src/mon.h >/dev/null 2>/dev/null; then |
70 |
> |
mon_srcdir=../../../mon/src |
71 |
> |
if grep mon_init $mon_srcdir/mon.h >/dev/null 2>/dev/null; then |
72 |
|
AC_MSG_RESULT(yes) |
73 |
|
AC_DEFINE(ENABLE_MON) |
74 |
< |
MONSRCS="../../../mon/src/mon.cpp ../../../mon/src/mon_6502.cpp ../../../mon/src/mon_68k.cpp ../../../mon/src/mon_8080.cpp ../../../mon/src/mon_cmd.cpp ../../../mon/src/mon_ppc.cpp ../../../mon/src/mon_x86.cpp" |
75 |
< |
CXXFLAGS="$CXXFLAGS -I../../../mon/src" |
74 |
> |
MONSRCS="$mon_srcdir/mon.cpp $mon_srcdir/mon_6502.cpp $mon_srcdir/mon_8080.cpp $mon_srcdir/mon_cmd.cpp $mon_srcdir/mon_disass.cpp $mon_srcdir/mon_ppc.cpp $mon_srcdir/disass/floatformat.c $mon_srcdir/disass/i386-dis.c $mon_srcdir/disass/m68k-dis.c $mon_srcdir/disass/m68k-opc.c" |
75 |
> |
CXXFLAGS="$CXXFLAGS -I$mon_srcdir -I$mon_srcdir/disass" |
76 |
|
AC_CHECK_LIB(readline, readline) |
77 |
|
AC_CHECK_LIB(termcap, tputs) |
78 |
|
AC_CHECK_HEADERS(readline.h history.h readline/readline.h readline/history.h) |