We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4655 - evdev is available on FreeBSD, check in 'configure' limited to Linux
Summary: evdev is available on FreeBSD, check in 'configure' limited to Linux
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: 2.0.9
Hardware: x86 FreeBSD
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-05 13:04 UTC by Jan Martin Mikkelsen
Modified: 2019-06-05 19:04 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Martin Mikkelsen 2019-06-05 13:04:55 UTC
Hi,

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.

This change to the distribution configure script handles the first case.

diff -dur SDL2-2.0.9.orig/configure SDL2-2.0.9/configure
--- SDL2-2.0.9.orig/configure   2018-10-31 16:07:22.000000000 +0100
+++ SDL2-2.0.9/configure        2019-05-29 18:31:12.865491000 +0200
@@ -24058,9 +24062,9 @@
         CheckIME
         CheckIBus
         CheckFcitx
+        CheckInputEvents
         case $ARCH in
           linux)
-              CheckInputEvents
               CheckInputKD
           ;;
         esac
Comment 1 Sam Lantinga 2019-06-05 19:04:02 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/0fa532733f3f