Code

keyboard: implement keyboard_unread() without ungetch()
[ncmpc.git] / configure.ac
index 2a78958598272c5e0c1dac6d9c585c647768b07a..6273a09ed0a6b0ab52d39e75d9226996ddd83b28 100644 (file)
@@ -227,11 +227,10 @@ AM_CONDITIONAL(ENABLE_HELP_SCREEN, test x$enable_help_screen = xyes)
 
 dnl Optional - curses getmouse support
 
-dnl AC_CHECK_LIB depends on being able to prepend a '-l', remove the '-l' from CURSES_LIB first
-AC_CHECK_LIB([$(expr substr $CURSES_LIB 3 99)],
-               [getmouse],
+MPD_WITH_LIBRARY([CURSES],
+       [AC_CHECK_FUNC([getmouse],
                [ax_cv_curses_mouse=yes],
-               [ax_cv_curses_mouse=no])
+               [ax_cv_curses_mouse=no])])
 
 AC_ARG_ENABLE([mouse], 
        AS_HELP_STRING([--enable-mouse],