From: Chris Allegretta Date: Thu, 31 Jul 2008 17:01:47 +0000 (+0000) Subject: * configure.ac: Add ncursesw dir to include path if lib detected X-Git-Tag: v2.1.3~10 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e418b694b6360c3e9b052df5b5869eb61653b684;p=nano.git * configure.ac: Add ncursesw dir to include path if lib detected git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4284 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index ef2580cd..2c9c0a47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2008-07-23 Chris Allegretta + * configure.ac: Add ncursesw dir to include path if lib detected + 2008-07-11 Mike Frysinger * doc/nanorc.sample.in: Include the updates files in the default sample nanorc. diff --git a/configure.ac b/configure.ac index 1e09e23b..0fc5c240 100644 --- a/configure.ac +++ b/configure.ac @@ -417,7 +417,7 @@ if eval "test x$CURSES_LIB_NAME = x"; then AC_CHECK_HEADERS(ncurses.h) if test x$enable_utf8 != xno; then - AC_CHECK_LIB(ncursesw, get_wch, [CURSES_LIB="-lncursesw" CURSES_LIB_NAME=ncursesw CURSES_LIB_WIDE=yes]) + AC_CHECK_LIB(ncursesw, get_wch, [CURSES_LIB="-lncursesw" CPPFLAGS="-I/usr/include/ncursesw $CPPFLAGS" CURSES_LIB_NAME=ncursesw CURSES_LIB_WIDE=yes]) fi if eval "test x$CURSES_LIB_NAME = x"; then