autotools: fix linux joystick breakage after commit 221d6ea8a8

Fixes https://github.com/libsdl-org/SDL/issues/8488
This commit is contained in:
Ozkan Sezer committed 2023-11-06 23:25:58 +03:00
1 parent 065d80716b
commit 7555701def
2 files changed
+10 -4

No files matched your search

+2 -1
View File
@@ -2758,6 +2758,8 @@ dnl See if we can use the new unified event interface in Linux 2.4
CheckInputEvents()
{
dnl Check for Linux 2.4 unified input event interface support
AC_CHECK_HEADERS(linux/input.h)
AC_MSG_CHECKING(for Linux 2.4 unified input interface)
use_input_events=no
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
@@ -2769,7 +2771,6 @@ dnl Check for Linux 2.4 unified input event interface support
]])], [use_input_events=yes],[])
AC_MSG_RESULT($use_input_events)
if test x$use_input_events = xyes; then
AC_DEFINE(HAVE_LINUX_INPUT_H, 1, [ ])
AC_DEFINE(SDL_INPUT_LINUXEV, 1, [ ])
SUMMARY_input="${SUMMARY_input} linuxev"
fi