diff options
author | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-11-28 02:53:11 +0000 |
---|---|---|
committer | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-11-28 02:53:11 +0000 |
commit | e3e72c421693d3960c5570b9b2dfbaa3ed1c2c3f (patch) | |
tree | 3a366261eee79faa9635abf6363688d0c3bcc1b2 | |
parent | b40c8657d4c687335eaac88e3467da2ba097ac70 (diff) | |
download | zsh-e3e72c421693d3960c5570b9b2dfbaa3ed1c2c3f.tar.gz zsh-e3e72c421693d3960c5570b9b2dfbaa3ed1c2c3f.tar.xz zsh-e3e72c421693d3960c5570b9b2dfbaa3ed1c2c3f.zip |
Merge of 24108 plus yet another tweak: the test for whether we are
using ncurses as a library was both wrong and in the wrong place.
-rw-r--r-- | configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a5d99a637..3f103aa36 100644 --- a/configure.ac +++ b/configure.ac @@ -716,6 +716,17 @@ AC_DEFINE(HAVE_STRNAMES) strnames=yes, strnames=no) AC_MSG_RESULT($strnames) ]) + +dnl If our terminal library is not ncurses, don't try including +dnl any ncurses headers. +AH_TEMPLATE([ZSH_IGNORE_NCURSES], +[Define to 1 to ignore any ncurses library headers found on the system.]) +case $LIBS in + *-lncurses*) ;; + *) + AC_DEFINE(ZSH_IGNORE_NCURSES) ;; +esac + dnl Some systems (Solaris 2.x, Linux Redhat 5.x) require dnl libnsl (Network Services Library) to find yp_all |