mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:05:41 +01:00
Fixed ncurses test
This commit is contained in:
parent
6d7d5a362d
commit
f586f8bc08
1 changed files with 8 additions and 6 deletions
14
configure.in
14
configure.in
|
@ -36,12 +36,14 @@ AM_CONDITIONAL(ALSAMIXER, test x$alsamixer = xtrue)
|
|||
|
||||
dnl Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
#AC_CHECK_LIB(ncurses, initscr,
|
||||
# [ CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; ], [
|
||||
# AC_CHECK_LIB(curses, initscr,
|
||||
# [ CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; ],
|
||||
# AC_MSG_ERROR(this packages requires a curses library))
|
||||
#])
|
||||
if test x$alsamixer = xtrue; then
|
||||
AC_CHECK_LIB(ncurses, initscr,
|
||||
[ CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; ], [
|
||||
AC_CHECK_LIB(curses, initscr,
|
||||
[ CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; ],
|
||||
AC_MSG_ERROR(this packages requires a curses library))
|
||||
])
|
||||
fi
|
||||
|
||||
AC_SUBST(CURSESINC)
|
||||
AC_SUBST(CURSESLIB)
|
||||
|
|
Loading…
Reference in a new issue