comparison configure.in @ 407:173909e17b7f

API changes on OpenBSD and FreeBSD...
author Sam Lantinga <slouken@libsdl.org>
date Wed, 12 Jun 2002 03:32:01 +0000
parents cbb346aca05d
children 2a1486305412
comparison
equal deleted inserted replaced
406:9916da315b0d 407:173909e17b7f
1612 ]) 1612 ])
1613 if test x$have_usbhid_ucr_data = xyes; then 1613 if test x$have_usbhid_ucr_data = xyes; then
1614 CFLAGS="$CFLAGS -DUSBHID_UCR_DATA" 1614 CFLAGS="$CFLAGS -DUSBHID_UCR_DATA"
1615 fi 1615 fi
1616 AC_MSG_RESULT($have_usbhid_ucr_data) 1616 AC_MSG_RESULT($have_usbhid_ucr_data)
1617
1618 AC_MSG_CHECKING(for new usbhid API)
1619 have_usbhid_new=no
1620 AC_TRY_COMPILE([
1621 #include <sys/types.h>
1622 #if defined(HAVE_USB_H)
1623 #include <usb.h>
1624 #endif
1625 #include <dev/usb/usb.h>
1626 #include <dev/usb/usbhid.h>
1627 #if defined(HAVE_USBHID_H)
1628 #include <usbhid.h>
1629 #elif defined(HAVE_LIBUSB_H)
1630 #include <libusb.h>
1631 #elif defined(HAVE_LIBUSBHID_H)
1632 #include <libusbhid.h>
1633 #endif
1634 ],[
1635 report_desc_t d;
1636 hid_start_parse(d, 1, 1);
1637 ],[
1638 have_usbhid_new=yes
1639 ])
1640 if test x$have_usbhid_new = xyes; then
1641 CFLAGS="$CFLAGS -DUSBHID_NEW"
1642 fi
1643 AC_MSG_RESULT($have_usbhid_new)
1617 1644
1618 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS bsd" 1645 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS bsd"
1619 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS bsd/libjoystick_bsd.la" 1646 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS bsd/libjoystick_bsd.la"
1620 fi 1647 fi
1621 fi 1648 fi