menuselect: Fix curses build on Gentoo Linux

Because keypad() is exported by libtinfo, it needs to be explicitly
added to the linker options.

ASTERISK-28487 #close

Change-Id: I6c2ad5b95f422c263d078b5c0e84c111807dffc6
This commit is contained in:
Sean Bright
2019-08-09 06:51:28 -04:00
parent 7251b76c62
commit 8a96746994
5 changed files with 356 additions and 4 deletions

View File

@@ -65,6 +65,7 @@ AST_EXT_LIB_SETUP([NEWT], [newt], [newt])
AST_EXT_LIB_SETUP([CURSES], [curses], [curses])
AST_EXT_LIB_SETUP([NCURSES], [ncurses], [ncurses])
AST_EXT_LIB_SETUP([LIBXML2], [LibXML2], [libxml2])
AST_EXT_LIB_SETUP([TINFO], [terminfo], [libtinfo])
AST_EXT_LIB_CHECK([NEWT], [newt], [newtBell], [newt.h])
AST_EXT_LIB_CHECK([NCURSES], [ncurses], [initscr], [ncurses.h])
@@ -78,6 +79,17 @@ if test "${PBX_NCURSES}" != 1; then
fi
fi
AC_SUBST(HAVE_NCURSES_SUBDIR)
if test "${PBX_NCURSES}" = 1; then
if test "${HAVE_NCURSES_SUBDIR}" = "yes"; then
AST_EXT_LIB_CHECK([TINFO], [tinfo], [keypad], [ncurses/ncurses.h])
else
AST_EXT_LIB_CHECK([TINFO], [tinfo], [keypad], [ncurses.h])
fi
else
AST_EXT_LIB_CHECK([TINFO], [tinfo], [keypad], [curses.h])
fi
AST_EXT_TOOL_CHECK([LIBXML2], [xml2-config], , ,
[#include <libxml/tree.h>
#include <libxml/parser.h>],