X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=configure.ac;h=8b5bc5d0bd94f6d9e4b817e996cf894b1d6ae581;hb=8939bb3cffad2321df6c1361f93de7f195980187;hp=f177892386a7304cab3ab90efc6eac066c2f803b;hpb=5a9190603dc7ab9bde12c2be3915949c537e2450;p=kconfig-frontends diff --git a/configure.ac b/configure.ac index f177892..8b5bc5d 100644 --- a/configure.ac +++ b/configure.ac @@ -257,19 +257,22 @@ AC_SUBST([intl_LIBS]) # Check for ncurses, for the mconf & nconf frontends AS_IF( [test "$need_curses" = "yes" -o "$need_curses" = "auto"], - [AC_SUBST([CURSES_LOC]) + [AC_SUBST([ncurses_mconf_CPPFLAGS]) AC_SUBST([ncurses_LIBS]) LIBS_old="$LIBS" LIBS= AC_CHECK_HEADERS( [ncursesw/curses.h ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h], - [CURSES_LOC=$ac_header; break]) + [CURSES_LOC=$ac_header; ncurses_mconf_CPPFLAGS=-DCURSES_LOC=\\\"$ac_header\\\"; break]) AS_IF( [test -z "$CURSES_LOC"], [AS_IF( [test "$need_curses" = "yes"], [AC_MSG_ERROR([could not find curses headers (frontends: mconf/nconf)])], [has_curses=no])]) + AS_CASE( + [$CURSES_LOC], + [ncursesw/*],[ncurses_mconf_CPPFLAGS="$ncurses_mconf_CPPFLAGS -DNCURSES_WIDECHAR=1"]) AC_SEARCH_LIBS( [initscr], [ncursesw ncurses curses],