Changeset View
Changeset View
Standalone View
Standalone View
b/m4/curses.m4
Context not available. | |||||
AC_ARG_ENABLE(ncurses, [ --disable-ncurses don't prefer -lncurses over -lcurses], | AC_ARG_ENABLE(ncurses, [ --disable-ncurses don't prefer -lncurses over -lcurses], | ||||
, enable_ncurses=yes) | , enable_ncurses=yes) | ||||
if test "$enable_ncurses" = yes; then | if test "$enable_ncurses" = yes; then | ||||
AC_CHECK_LIB(ncursesw, initscr, LIBNCURSES="-lncursesw", | PKG_CHECK_MODULES([NCURSES], [ncursesw], [LIBNCURSES="${NCURSES_LIBS}" have_ncursesw=yes], [ | ||||
AC_CHECK_LIB(ncurses, initscr, LIBNCURSES="-lncurses")) | PKG_CHECK_MODULES([NCURSES], [ncurses], [LIBNCURSES="${NCURSES_LIBS}" have_ncursesw=no], [ | ||||
if test "$ac_cv_lib_ncursesw_initscr" = yes; then | AC_CHECK_LIB(ncursesw, initscr, LIBNCURSES="-lncursesw", | ||||
have_ncursesw=yes | AC_CHECK_LIB(ncurses, initscr, LIBNCURSES="-lncurses")) | ||||
else | if test "$ac_cv_lib_ncursesw_initscr" = yes; then | ||||
have_ncursesw=no | have_ncursesw=yes | ||||
fi | else | ||||
have_ncursesw=no | |||||
fi | |||||
]) | |||||
]) | |||||
if test "$LIBNCURSES"; then | if test "$LIBNCURSES"; then | ||||
# Use ncurses header files instead of the ordinary ones, if possible; | # Use ncurses header files instead of the ordinary ones, if possible; | ||||
# is there a better way of doing this, that avoids looking in specific | # is there a better way of doing this, that avoids looking in specific | ||||
Context not available. |