AC_FUNC_ALLOCA
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h getopt.h errno.h ])
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h getopt.h errno.h asm/byteorder.h machine/endian.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
#include <errno.h>
#include <stdio.h>
#include <stdarg.h>
#if defined(HAVE_ASM_BYTEORDER_H)
#include <asm/byteorder.h>
#define le16_to_cpu __le16_to_cpu
#elif defined(HAVE_MACHINE_ENDIAN_H)
#include <machine/endian.h>
#if _BYTE_ORDER == _LITTLE_ENDIAN
#define le16_to_cpu(x) (x)
#else
#define le16_to_cpu __bswap16
#endif
#include <usb.h>
/* NOTE: that should be <libusb.h> and it should include