- "./configure --without-mon" now works

This commit is contained in:
cebix 2000-04-14 18:46:05 +00:00
parent 00440a7695
commit ce1960df81
2 changed files with 183 additions and 179 deletions

File diff suppressed because it is too large Load Diff

View File

@ -22,19 +22,21 @@ AC_PROG_INSTALL
dnl We use mon if possible. dnl We use mon if possible.
MONSRCS= MONSRCS=
AC_MSG_CHECKING(for mon) if [[ "x$WANT_MON" = "xyes" ]]; then
if grep mon_init ../../../mon/src/mon.h >/dev/null 2>/dev/null; then AC_MSG_CHECKING(for mon)
AC_MSG_RESULT(yes) if grep mon_init ../../../mon/src/mon.h >/dev/null 2>/dev/null; then
WANT_MON=yes AC_MSG_RESULT(yes)
DEFINES="$DEFINES -DENABLE_MON=1" DEFINES="$DEFINES -DENABLE_MON=1"
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" 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"
CXXFLAGS="$CXXFLAGS -I../../../mon/src" CXXFLAGS="$CXXFLAGS -I../../../mon/src"
AC_CHECK_LIB(readline, readline) AC_CHECK_LIB(readline, readline)
AC_CHECK_HEADERS(readline/readline.h readline/history.h) AC_CHECK_HEADERS(readline/readline.h readline/history.h)
else else
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
WANT_MON=no AC_MSG_WARN([Could not find mon, ignoring --with-mon.])
DEFINES="$DEFINES -DENABLE_MON=0" WANT_MON=no
DEFINES="$DEFINES -DENABLE_MON=0"
fi
fi fi
dnl Checks for libraries. dnl Checks for libraries.