From f586f8bc08d629f669c35776b1dd87cccc3bb225 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 16 Jun 2003 18:46:06 +0000 Subject: [PATCH] Fixed ncurses test --- configure.in | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/configure.in b/configure.in index 4b56635..0064f4f 100644 --- a/configure.in +++ b/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=''; CURSESLIB='-lncurses'; ], [ -# AC_CHECK_LIB(curses, initscr, -# [ CURSESINC=''; CURSESLIB='-lcurses'; ], -# AC_MSG_ERROR(this packages requires a curses library)) -#]) +if test x$alsamixer = xtrue; then + AC_CHECK_LIB(ncurses, initscr, + [ CURSESINC=''; CURSESLIB='-lncurses'; ], [ + AC_CHECK_LIB(curses, initscr, + [ CURSESINC=''; CURSESLIB='-lcurses'; ], + AC_MSG_ERROR(this packages requires a curses library)) + ]) +fi AC_SUBST(CURSESINC) AC_SUBST(CURSESLIB)