Update of /cvsroot/alsa/alsa-utils In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27904
Modified Files: configure.in Log Message: added --with-curses option to specify the curses library. Index: configure.in =================================================================== RCS file: /cvsroot/alsa/alsa-utils/configure.in,v retrieving revision 1.77 retrieving revision 1.78 diff -u -r1.77 -r1.78 --- configure.in 23 Feb 2004 10:58:34 -0000 1.77 +++ configure.in 25 Feb 2004 11:25:53 -0000 1.78 @@ -37,12 +37,25 @@ dnl Checks for header files. AC_HEADER_STDC 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)) - ]) + AC_ARG_WITH(curses, + [ --with-curses libname Specify the curses library to use (default=auto)], + curseslib="$withval", + curseslib="auto") + 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 AC_SUBST(CURSESINC) ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog