fix compilation with disabled unicode support
This commit is contained in:
@@ -19,13 +19,14 @@ dnl ========================
|
|||||||
if test "$unicode" = "yes" ; then
|
if test "$unicode" = "yes" ; then
|
||||||
ncurses_config_bin=ncursesw5-config
|
ncurses_config_bin=ncursesw5-config
|
||||||
ncurses_lib=ncursesw
|
ncurses_lib=ncursesw
|
||||||
|
CPPFLAGS="$CPPFLAGS -DUTF8_ENABLED"
|
||||||
else
|
else
|
||||||
ncurses_config_bin=ncurses5-config
|
ncurses_config_bin=ncurses5-config
|
||||||
ncurses_lib=ncurses
|
ncurses_lib=ncurses
|
||||||
fi
|
fi
|
||||||
AC_PATH_PROG(NCURSES_CONFIG, $ncurses_config_bin)
|
AC_PATH_PROG(NCURSES_CONFIG, $ncurses_config_bin)
|
||||||
if test "$NCURSES_CONFIG" != "" ; then
|
if test "$NCURSES_CONFIG" != "" ; then
|
||||||
CPPFLAGS="$CPPFLAGS -DUTF8_ENABLED `$NCURSES_CONFIG --cflags`"
|
CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
|
||||||
LDFLAGS="$LDFLAGS `$NCURSES_CONFIG --libs`"
|
LDFLAGS="$LDFLAGS `$NCURSES_CONFIG --libs`"
|
||||||
AC_CHECK_LIB($ncurses_lib, initscr, , AC_MSG_ERROR([$ncurses_lib library is required]))
|
AC_CHECK_LIB($ncurses_lib, initscr, , AC_MSG_ERROR([$ncurses_lib library is required]))
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user