Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 468430 | Differences between
and this patch

Collapse All | Expand All

(-)a/m4/curses.m4 (-7 / +11 lines)
Lines 28-40 AC_DEFUN([IU_LIB_NCURSES], [ Link Here
28
  AC_ARG_ENABLE(ncurses,    [  --disable-ncurses       don't prefer -lncurses over -lcurses],
28
  AC_ARG_ENABLE(ncurses,    [  --disable-ncurses       don't prefer -lncurses over -lcurses],
29
              , enable_ncurses=yes)
29
              , enable_ncurses=yes)
30
  if test "$enable_ncurses" = yes; then
30
  if test "$enable_ncurses" = yes; then
31
    AC_CHECK_LIB(ncursesw, initscr, LIBNCURSES="-lncursesw",
31
    PKG_CHECK_MODULES([NCURSES], [ncursesw], [LIBNCURSES="${NCURSES_LIBS}" have_ncursesw=yes], [
32
      AC_CHECK_LIB(ncurses, initscr, LIBNCURSES="-lncurses"))
32
        PKG_CHECK_MODULES([NCURSES], [ncurses], [LIBNCURSES="${NCURSES_LIBS}" have_ncursesw=no], [
33
    if test "$ac_cv_lib_ncursesw_initscr" = yes; then
33
            AC_CHECK_LIB(ncursesw, initscr, LIBNCURSES="-lncursesw",
34
      have_ncursesw=yes
34
              AC_CHECK_LIB(ncurses, initscr, LIBNCURSES="-lncurses"))
35
    else
35
            if test "$ac_cv_lib_ncursesw_initscr" = yes; then
36
      have_ncursesw=no
36
              have_ncursesw=yes
37
    fi
37
            else
38
              have_ncursesw=no
39
            fi
40
        ])
41
    ])
38
    if test "$LIBNCURSES"; then
42
    if test "$LIBNCURSES"; then
39
      # Use ncurses header files instead of the ordinary ones, if possible;
43
      # Use ncurses header files instead of the ordinary ones, if possible;
40
      # is there a better way of doing this, that avoids looking in specific
44
      # is there a better way of doing this, that avoids looking in specific

Return to bug 468430