From fcf4a440423963d25d62e9cad6e540d0c07c182c Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Wed, 25 Mar 2009 20:14:02 +0100 Subject: [PATCH] allow to choose name another than XCurses for pdcurses library to search for --- configure.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index b1df913d..500ec0da 100644 --- a/configure.in +++ b/configure.in @@ -13,7 +13,7 @@ AC_ARG_ENABLE(clock, AS_HELP_STRING([--enable-clock], [Enable clock screen]), [c AC_ARG_ENABLE(unicode, AS_HELP_STRING([--enable-unicode], [Enable utf8 support]), [unicode=$enableval], [unicode=yes]) AC_ARG_WITH(taglib, AS_HELP_STRING([--with-taglib], [Enable tag editor]), [taglib=$withval], [taglib=no]) AC_ARG_WITH(curl, AS_HELP_STRING([--with-curl], [Enable fetching lyrics from the Internet]), [curl=$withval], [curl=no]) -AC_ARG_WITH(pdcurses, AS_HELP_STRING([--with-pdcurses], [Link against pdcurses instead of ncurses]), [pdcurses=$withval], [pdcurses=no]) +AC_ARG_WITH(pdcurses, AS_HELP_STRING([--with-pdcurses[=LIBNAME]], [Link against pdcurses instead of ncurses @<:@default=XCurses@:>@]), [pdcurses=$withval], [pdcurses=no]) if test "$clock" = "yes"; then AC_DEFINE([ENABLE_CLOCK], [1], [enables clock screen]) @@ -43,8 +43,11 @@ if test "$pdcurses" = "no" ; then curses_lib=ncurses fi else + if test "$pdcurses" = "yes" ; then + pdcurses=XCurses + fi curses_config_bin=xcurses-config - curses_lib=XCurses + curses_lib=$pdcurses AC_DEFINE([USE_PDCURSES], [1], [enables pdcurses support]) fi AC_PATH_PROG(CURSES_CONFIG, $curses_config_bin)