Fixed bug 4655 - evdev is available on FreeBSD, check in 'configure' limited to Linux
authorSam Lantinga <slouken@libsdl.org>
Wed, 05 Jun 2019 12:03:45 -0700
changeset 127620fa532733f3f
parent 12761 f5c0b39addb1
child 12763 e539b6245d43
Fixed bug 4655 - evdev is available on FreeBSD, check in 'configure' limited to Linux

Jan Martin Mikkelsen

The evdev interface is available on FreeBSD, with the xf86-input-evdev for include files in /usr/local/include/linux, so <linux/input.h> works, or when build with the native evdev option, where <dev/evdev/input.h> is available.
configure
configure.ac
     1.1 --- a/configure	Wed Jun 05 12:01:26 2019 -0700
     1.2 +++ b/configure	Wed Jun 05 12:03:45 2019 -0700
     1.3 @@ -24403,13 +24403,13 @@
     1.4          CheckVulkan
     1.5          CheckWayland
     1.6          CheckLibUDev
     1.7 +        CheckInputEvents
     1.8          CheckDBus
     1.9          CheckIME
    1.10          CheckIBus
    1.11          CheckFcitx
    1.12          case $ARCH in
    1.13            linux)
    1.14 -              CheckInputEvents
    1.15                CheckInputKD
    1.16            ;;
    1.17          esac
     2.1 --- a/configure.ac	Wed Jun 05 12:01:26 2019 -0700
     2.2 +++ b/configure.ac	Wed Jun 05 12:03:45 2019 -0700
     2.3 @@ -3333,6 +3333,7 @@
     2.4          CheckOpenGLESX11
     2.5          CheckVulkan
     2.6          CheckWayland
     2.7 +        CheckInputEvents
     2.8          CheckLibUDev
     2.9          CheckDBus
    2.10          CheckIME
    2.11 @@ -3340,7 +3341,6 @@
    2.12          CheckFcitx
    2.13          case $ARCH in
    2.14            linux)
    2.15 -              CheckInputEvents
    2.16                CheckInputKD
    2.17            ;;
    2.18          esac