Fixed ncurses test

This commit is contained in:
Jaroslav Kysela 2003-06-16 18:46:06 +00:00
parent 6d7d5a362d
commit f586f8bc08

View file

@ -36,12 +36,14 @@ AM_CONDITIONAL(ALSAMIXER, test x$alsamixer = xtrue)
dnl Checks for header files. dnl Checks for header files.
AC_HEADER_STDC AC_HEADER_STDC
#AC_CHECK_LIB(ncurses, initscr, if test x$alsamixer = xtrue; then
# [ CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; ], [ AC_CHECK_LIB(ncurses, initscr,
# AC_CHECK_LIB(curses, initscr, [ CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; ], [
# [ CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; ], AC_CHECK_LIB(curses, initscr,
# AC_MSG_ERROR(this packages requires a curses library)) [ CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; ],
#]) AC_MSG_ERROR(this packages requires a curses library))
])
fi
AC_SUBST(CURSESINC) AC_SUBST(CURSESINC)
AC_SUBST(CURSESLIB) AC_SUBST(CURSESLIB)