Commit bbebec68 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

configure.in: - Fix for _use_keypad check breaking slang support (Christian Weisgerber)

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@465 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 113 additions and 106 deletions
+113 -106
CVS code - CVS code -
- configure.in:
- Fix for _use_keypad check breaking slang support (Christian
Weisgerber).
- files.c: - files.c:
real_dir_from_tilde() real_dir_from_tilde()
- Oops, fix case where buf ="~", silly crash (bug discovered by - Oops, fix case where buf ="~", silly crash (bug discovered by
......
This diff is collapsed.
...@@ -206,20 +206,22 @@ else ...@@ -206,20 +206,22 @@ else
fi fi
AC_CHECK_LIB($CURSES_LIB_NAME, wresize, AC_DEFINE(HAVE_WRESIZE)) if test x$slang_support != xyes; then
AC_CHECK_LIB($CURSES_LIB_NAME, wresize, AC_DEFINE(HAVE_WRESIZE))
# Taken from aumix (can't tell form the variable name?) # Taken from aumix (can't tell form the variable name?)
AC_CACHE_CHECK(for private member _use_keypad in WINDOW, AC_CACHE_CHECK(for private member _use_keypad in WINDOW,
aumix_cv_struct_window_usekeypad, aumix_cv_struct_window_usekeypad,
[AC_TRY_COMPILE([#ifdef HAVE_NCURSES_H [AC_TRY_COMPILE([#ifdef HAVE_NCURSES_H
#include <ncurses.h> #include <ncurses.h>
#else #else
#include <curses.h> #include <curses.h>
#endif], [WINDOW w; w._use_keypad;], #endif], [WINDOW w; w._use_keypad;],
aumix_cv_struct_window_usekeypad=yes, aumix_cv_struct_window_usekeypad=no)]) aumix_cv_struct_window_usekeypad=yes, aumix_cv_struct_window_usekeypad=no)])
if test $aumix_cv_struct_window_usekeypad = yes; then if test $aumix_cv_struct_window_usekeypad = yes; then
AC_DEFINE(HAVE_USEKEYPAD) AC_DEFINE(HAVE_USEKEYPAD)
fi
fi fi
dnl Parse any configure options dnl Parse any configure options
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment