Code

don't use libncursesw if libncurses was selected
authorMax Kellermann <max@duempel.org>
Tue, 16 Sep 2008 16:52:54 +0000 (18:52 +0200)
committerMax Kellermann <max@duempel.org>
Tue, 16 Sep 2008 16:52:54 +0000 (18:52 +0200)
No idea what this code was intended for, but if the user chooses
libncurses, ncmpc shouldn't override this manual choice if it finds
libncursesw.

configure.ac

index 74ea386dd1bf2971fc76b413f90ec0a80a47c8ee..8382c32cb4764b6fe1320daf425c7d4665cb044e 100644 (file)
@@ -81,13 +81,6 @@ if test "x$ncurses" = "xauto"; then
                     [ncurses=ncursesw],
                     [ncurses=ncurses])
 fi
-                    
-AC_CHECK_HEADER([ncursesw/ncurses.h],
-               [have_ncursesw_h=yes],
-               ,)
-
-
-
 
 AC_CHECK_LIB([$ncurses], 
             [initscr],
@@ -95,14 +88,6 @@ AC_CHECK_LIB([$ncurses],
             [AC_MSG_ERROR($ncurses library is required)])
 
 
-if test "x$ncurses" != "xncursesw" ; then
-       if test "x$have_ncursesw_h" = "xyes" ; then
-                AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, [wide-char wget_ch()])
-                AC_DEFINE(USE_NCURSESW, 1, [use wide-char ncurses library])
-       fi
-fi
-
-
 
 dnl Check for glib-2.4
 PKG_CHECK_MODULES([GLIB],