- allow readline to be disabled if you want, as in
configure --enable-debugger --disable-readline
This commit is contained in:
parent
017691abdc
commit
e8d89eb7eb
385
bochs/configure
vendored
385
bochs/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -427,16 +427,34 @@ AC_ARG_ENABLE(disasm,
|
|||||||
)
|
)
|
||||||
AC_SUBST(DISASM_VAR)
|
AC_SUBST(DISASM_VAR)
|
||||||
|
|
||||||
AC_CHECK_LIB(readline,
|
AC_MSG_CHECKING(whether to use readline)
|
||||||
readline,
|
AC_ARG_ENABLE(readline,
|
||||||
[
|
[ --enable-readline use readline library with debugger],
|
||||||
if test "$bx_debugger" = 1; then
|
[if test "$enableval" = yes; then
|
||||||
# only add readline library if debugger is on
|
AC_MSG_RESULT(yes)
|
||||||
AC_DEFINE(HAVE_LIBREADLINE, 1)
|
want_readline=yes
|
||||||
READLINE_LIB='-lreadline'
|
else
|
||||||
fi
|
AC_MSG_RESULT(no)
|
||||||
]
|
want_readline=no
|
||||||
)
|
fi],
|
||||||
|
[ # default is yes
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
want_readline=yes ]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
if test "$want_readline" = yes; then
|
||||||
|
AC_CHECK_LIB(readline,
|
||||||
|
readline,
|
||||||
|
[
|
||||||
|
if test "$bx_debugger" = 1; then
|
||||||
|
# only add readline library if debugger is on
|
||||||
|
AC_DEFINE(HAVE_LIBREADLINE, 1)
|
||||||
|
READLINE_LIB='-lreadline'
|
||||||
|
fi
|
||||||
|
]
|
||||||
|
)
|
||||||
|
fi
|
||||||
AC_SUBST(READLINE_LIB)
|
AC_SUBST(READLINE_LIB)
|
||||||
|
|
||||||
AC_CHECK_HEADER(readline/history.h,
|
AC_CHECK_HEADER(readline/history.h,
|
||||||
|
Loading…
Reference in New Issue
Block a user