configure: move HAVE_LINUX_INPUT_H to CheckInputEvents()

c.f.: https://github.com/libsdl-org/SDL/pull/8459.
Ref. issue https://github.com/libsdl-org/SDL/issues/8450
This commit is contained in:
Ozkan Sezer committed 2023-11-02 23:33:20 +03:00
1 parent 8b1b6734f6
commit e226008d83
2 files changed
+5 -7

No files matched your search

Vendored
+3 -6
View File
@@ -18942,12 +18942,6 @@ if test "x$ac_cv_header_signal_h" = xyes
then :
printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
if test "x$ac_cv_header_linux_input_h" = xyes
then :
printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
fi
@@ -26434,6 +26428,9 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
printf "%s\n" "$use_input_events" >&6; }
if test x$use_input_events = xyes; then
printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
SUMMARY_input="${SUMMARY_input} linuxev"