On FreeBSD, X11 headers are in /usr/local/include/X11, not
/usr/include/X11. since -I/usr/local/include is added to CFLAGS
in Makefile.in, the test should also include that.
This allows FreeBSD to properly test XInput2 and XTest headers.
- provide feedback for dependency checking
- warn about building without xtest support
- eliminate redundant check_header invocations for the same file
Closes github issue #50
- test for presence of the XTest.h header file in configure and
conditionally compile XTEST support
- check for availability of the XTEST extension when connecting to the
X server, and fallback to the old XSendEvent code if it's not
available.
- fix formatting and code style issues with the original patch
Using XTestFakeKeyEvent rather than XSendEvent makes Shift, Control and
Alt working. The Escape key was working also with XSendEvent. Other keys
were not tested.
and add_ldflags to the makefile, to CFLAGS and LDFLAGS, which is much
more conventional and predictable. This only affects the configure
script, the Makefile itself still expects user-specified CFLAGS and
LDFLAGS as add_cflags and add_ldflags, but it's preferable to set those
during configure so it doesn't matter.
- fixed a couple of annoying warnings in dummy_usb.c
- in spnavd.c I forgot to include string.h
- fixed a typo in xdetect_freebsd.c and made it compile on MacOSX too
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@145 ef983eb1-d774-4af8-acfd-baaf7b16a646
- separated hotplug functionality from device driver for USB devices
- factored out common code to minimize redundancy for different platforms (linux/freebsd)
- created an internal "device" data type to allow handling both USB and serial devices
transparently without conditions everywhere.
Also fixed a minor performance bug. If there is no device plugged in, the repeat interval is ignored.
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@139 ef983eb1-d774-4af8-acfd-baaf7b16a646
- added -fno-strict-aliasing to the makefiles
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@95 ef983eb1-d774-4af8-acfd-baaf7b16a646
(conditionally compiled). The configure script autodetects whether hotplug
should be enabled by default or not, based on the output of uname. The user
can override that decision with --enable-hotplug and --disable-hotplug.
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@92 ef983eb1-d774-4af8-acfd-baaf7b16a646
- added forgotten GPL notices to the new files
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@87 ef983eb1-d774-4af8-acfd-baaf7b16a646
message to the user instead.
Applied Hans Meine's patches:
- allow build dir != source dir
- install into /lib64 if /lib64 exists
(modified that one to use uname -m in the configure script, debian seems to
have a lib64 even on 32bit systems)
- display X11 connection closing in verbose mode, too (not only init)
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@47 ef983eb1-d774-4af8-acfd-baaf7b16a646