Only check for Linux-specific input APIs on Linux targets (thanks, Marcus!). This is only for the configure script. The CMake project files already make this Linux-exclusive. Fixes Bugzilla #2659.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
diff --git a/configure b/configure
index 42283e1..314c439 100755
--- a/configure
+++ b/configure
@@ -23001,8 +23001,12 @@ case "$host" in
CheckLibUDev
CheckDBus
CheckIBus
- CheckInputEvents
- CheckInputKD
+ case $ARCH in
+ linux)
+ CheckInputEvents
+ CheckInputKD
+ ;;
+ esac
CheckTslib
CheckUSBHID
CheckPTHREAD
diff --git a/configure.in b/configure.in
index 38c682b..fd4200c 100644
--- a/configure.in
+++ b/configure.in
@@ -2897,8 +2897,12 @@ case "$host" in
CheckLibUDev
CheckDBus
CheckIBus
- CheckInputEvents
- CheckInputKD
+ case $ARCH in
+ linux)
+ CheckInputEvents
+ CheckInputKD
+ ;;
+ esac
CheckTslib
CheckUSBHID
CheckPTHREAD