]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Fixed ncurses test
authorJaroslav Kysela <perex@perex.cz>
Mon, 16 Jun 2003 18:46:06 +0000 (18:46 +0000)
committerJaroslav Kysela <perex@perex.cz>
Mon, 16 Jun 2003 18:46:06 +0000 (18:46 +0000)
configure.in

index 4b56635a87d68ef814e4d08d1666cdfbd6f7fff1..0064f4f73591f5b9aca5dea6ed2a42f15142bdfa 100644 (file)
@@ -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)