mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 18:05:42 +01:00
added --with-curses option to specify the curses library.
This commit is contained in:
parent
60f7debd00
commit
6957fcafe1
1 changed files with 19 additions and 6 deletions
25
configure.in
25
configure.in
|
@ -37,12 +37,25 @@ AM_CONDITIONAL(ALSAMIXER, test x$alsamixer = xtrue)
|
||||||
dnl Checks for header files.
|
dnl Checks for header files.
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
if test x$alsamixer = xtrue; then
|
if test x$alsamixer = xtrue; then
|
||||||
AC_CHECK_LIB(ncurses, initscr,
|
AC_ARG_WITH(curses,
|
||||||
[ CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; ], [
|
[ --with-curses libname Specify the curses library to use (default=auto)],
|
||||||
AC_CHECK_LIB(curses, initscr,
|
curseslib="$withval",
|
||||||
[ CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; ],
|
curseslib="auto")
|
||||||
AC_MSG_ERROR(this packages requires a curses library))
|
if test "$curseslib" = "ncursesw"; then
|
||||||
])
|
AC_CHECK_LIB(ncursesw, initscr,
|
||||||
|
[ CURSESINC='<ncurses.h>'; CURSESLIB='-lncursesw'; curseslib="ncursesw"])
|
||||||
|
fi
|
||||||
|
if test "$curseslib" = "ncurses" -o "$curseslib" = "auto"; then
|
||||||
|
AC_CHECK_LIB(ncurses, initscr,
|
||||||
|
[ CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; curseslib="ncurses"])
|
||||||
|
fi
|
||||||
|
if test "$curseslib" = "curses" -o "$curseslib" = "auto"; then
|
||||||
|
AC_CHECK_LIB(curses, initscr,
|
||||||
|
[ CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; curseslib="curses"])
|
||||||
|
fi
|
||||||
|
if test -z "$CURSESINC"; then
|
||||||
|
AC_MSG_ERROR(this packages requires a curses library)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(CURSESINC)
|
AC_SUBST(CURSESINC)
|
||||||
|
|
Loading…
Reference in a new issue