Skip to content

Commit

Permalink
Update configure.ac to include a check for KEY_RESIZE
Browse files Browse the repository at this point in the history
i.e. ncurses(w) compiled with the default --enable-sigwinch
Closes htop-dev#1474. Thank you very much Rudi Heitbaum.
  • Loading branch information
Daniel Lange authored and Daniel Lange committed May 7, 2024
1 parent 30618c5 commit 90b6237
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,11 @@ else
AC_SEARCH_LIBS([keypad], [tinfo])
fi

# test for KEY_RESIZE being defined in one of the (n)curses header files
AC_CHECK_DECLS([KEY_RESIZE], [],
[AC_MSG_ERROR([can not find required ncurses KEY_RESIZE definition, compile ncurses with --enable-sigwinch])],
[#include "ProvideCurses.h"])

if test "$enable_static" = yes; then
AC_SEARCH_LIBS([Gpm_GetEvent], [gpm])
fi
Expand Down

0 comments on commit 90b6237

Please sign in to comment.