# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) AC_INIT(usbutils, 0.71) AC_CONFIG_SRCDIR([lsusb.c]) AC_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE(-Wall) # Checks for programs. AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S # Checks for libraries. # Checks for header files. 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 ]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_OFF_T AC_TYPE_SIZE_T # Checks for library functions. AC_FUNC_MALLOC AC_FUNC_VPRINTF AC_CHECK_FUNCS([getcwd memset getopt_long strchr strerror strstr strtoul uname]) AC_CHECK_LIB(usb, usb_get_string_simple, , [AC_MSG_ERROR(get libusb 0.1.8 or newer)]) AC_ARG_ENABLE(usbmodules, [ --enable-usbmodules build usbmodules (for Linux 2.4)], [ case "${enableval}" in yes) usbmod=true ;; no) usbmod=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-usbmodules) ;; esac ], [usbmod=false]) AM_CONDITIONAL(USBMODULES, test x$usbmod = xtrue) AM_MAINTAINER_MODE AC_CONFIG_FILES([Makefile]) AC_OUTPUT