aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 798b756..e355c24 100644
--- a/configure.ac
+++ b/configure.ac
@@ -335,6 +335,10 @@ case $INTERFACE in
AC_DEFINE(PDC_FORCE_UTF8, 1, [PDCursesMod forces use of UTF8])
])
+ AC_CHECK_FUNC([has_mouse], [
+ AC_DEFINE(PDC_NCMOUSE, 1, [PDCurses built with ncurses mouse API])
+ ])
+
# This is detectable at runtime on PDCursesMod using PDC_get_version().
# "Classic" PDCurses however does not allow runtime or compile-time checks for
# discerning e.g. WinCon from SDL.