diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2008-08-23 14:59:26 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2008-08-23 14:59:26 +0000 |
commit | d1331def5b2b757b7372435500e043bf4e3c62ee (patch) | |
tree | 465ac05046c720ea669269aafe5530b72ce562da /driver | |
parent | 46f38bc06a3103078b7487c60f6229fa84dae15d (diff) |
Fix check for dev/usb/usbhid.h (needs dev/usb/usb.h).
Diffstat (limited to 'driver')
-rw-r--r-- | driver/xf86-input-joystick/configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/driver/xf86-input-joystick/configure.ac b/driver/xf86-input-joystick/configure.ac index ba7fa585d..7afe3f70a 100644 --- a/driver/xf86-input-joystick/configure.ac +++ b/driver/xf86-input-joystick/configure.ac @@ -89,7 +89,12 @@ if test "x$linux_backend" = xyes; then fi bsd_backend=yes -AC_CHECK_HEADERS([usbhid.h dev/usb/usb.h dev/usb/usbhid.h],, [bsd_backend=no]) +AC_CHECK_HEADERS([dev/usb/usb.h]) +AC_CHECK_HEADERS([usbhid.h dev/usb/usbhid.h],, [bsd_backend=no], +[[#if HAVE_DEV_USB_USB_H +#include <dev/usb/usb.h> +#endif +]]) AC_CHECK_LIB([usbhid],[hid_get_item],, [bsd_backend=no]) AM_CONDITIONAL(BSD_BACKEND, [test "x$bsd_backend" = xyes]) if test "x$bsd_backend" = xyes; then |