mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 19:17:22 +00:00
Commit handles two things
1] fail when no curses or readline is found, yet ipmishell is about to be compiled in. ipmishell depends on these two libraries; 2] add 'ipmishell' line to the % ./configure ; summary output to tell user whether ipmishell support is enabled or disabled. Committed for Duncan Idaho
This commit is contained in:
parent
f1fced7ec8
commit
62df3e6ea8
@ -469,9 +469,13 @@ if test "x$enable_ipmishell" = "xyes"; then
|
|||||||
AC_SEARCH_LIBS([tgetent], [tinfo ncurses curses readline termcap])
|
AC_SEARCH_LIBS([tgetent], [tinfo ncurses curses readline termcap])
|
||||||
AC_SEARCH_LIBS([initscr], [ncurses curses], [have_curses=yes])
|
AC_SEARCH_LIBS([initscr], [ncurses curses], [have_curses=yes])
|
||||||
AC_SEARCH_LIBS([readline], [readline edit], [have_readline=yes])
|
AC_SEARCH_LIBS([readline], [readline edit], [have_readline=yes])
|
||||||
if test "x$have_curses" = "xyes" && test "x$have_readline" = "xyes"; then
|
if test "x$have_curses" != "xyes"; then
|
||||||
AC_DEFINE(HAVE_READLINE, [1], [Define to 1 if readline present.])
|
AC_MSG_ERROR([** Unable to find curses required by ipmishell.])
|
||||||
fi
|
fi
|
||||||
|
if test "x$have_readline" != "xyes"; then
|
||||||
|
AC_MSG_ERROR([** Unable to find readline required by ipmishell.])
|
||||||
|
fi
|
||||||
|
AC_DEFINE(HAVE_READLINE, [1], [Define to 1 if readline present.])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Enable -Wall -Werror
|
dnl Enable -Wall -Werror
|
||||||
@ -553,6 +557,7 @@ AC_MSG_RESULT([ bmc : $enable_intf_bmc])
|
|||||||
AC_MSG_RESULT([ lipmi : $enable_intf_lipmi])
|
AC_MSG_RESULT([ lipmi : $enable_intf_lipmi])
|
||||||
AC_MSG_RESULT([])
|
AC_MSG_RESULT([])
|
||||||
AC_MSG_RESULT([Extra tools])
|
AC_MSG_RESULT([Extra tools])
|
||||||
AC_MSG_RESULT([ ipmievd : yes])
|
AC_MSG_RESULT([ ipmievd : yes])
|
||||||
|
AC_MSG_RESULT([ ipmishell : $enable_ipmishell])
|
||||||
AC_MSG_RESULT([])
|
AC_MSG_RESULT([])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user