diff options
author | Clint Adams <clint@users.sourceforge.net> | 2007-12-07 02:47:46 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2007-12-07 02:47:46 +0000 |
commit | 2214554d8ee21982aa277fbfeb2bbf598c048166 (patch) | |
tree | bfa2fb7fecc50db70f3afa559e0ebc124b375f43 /configure.ac | |
parent | 14121f3d42a6791ad4ee3bd34ad5a72118e24cb6 (diff) | |
download | zsh-2214554d8ee21982aa277fbfeb2bbf598c048166.tar.gz zsh-2214554d8ee21982aa277fbfeb2bbf598c048166.tar.xz zsh-2214554d8ee21982aa277fbfeb2bbf598c048166.zip |
24172: check ncurses.h, ncurses/ncurses.h, and ncursesw/ncurses.h for curses keys.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 11a74f55a..39906167f 100644 --- a/configure.ac +++ b/configure.ac @@ -1390,15 +1390,18 @@ dnl Where are curses key definitions located? Need for keypad() mode. AC_CACHE_CHECK(where curses key definitions are located, zsh_cv_path_curses_keys_h, [dnl This is an identical trick to errno.h, except we use ncurses.h dnl if we can. -if test x$ac_cv_header_ncurses_h = xyes || test x$ac_cv_header_ncurses_ncurses_h = xyes || test x$ac_cv_header_ncursesw_ncurses_h = xyes; then +if test x$ac_cv_header_ncurses_h = xyes; then echo "#include <ncurses.h>" >nametmp.c +elif test x$ac_cv_header_ncurses_ncurses_h = xyes + echo "#include <ncurses/ncurses.h>" >nametmp.c +elif test x$ac_cv_header_ncursesw_ncurses_h = xyes; then + echo "#include <ncursesw/ncurses.h>" >nametmp.c +elif test x$ac_cv_header_curses_h = xyes; then + echo "#include <curses.h>" >nametmp.c else - if test x$ac_cv_header_curses_h = xyes; then - echo "#include <curses.h>" >nametmp.c - else - echo >nametmp.c - fi + echo >nametmp.c fi + curses_list="`$CPP nametmp.c | sed -n -e 's/^#line[ ].*\"\(.*\)\"/\1/p' \ -e 's/^#[ 0-9].*\"\(.*\)\"/\1/p' | |