2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([barry], [0.2], [barry-devel@lists.sourceforge.net])
6 AM_INIT_AUTOMAKE([barry], [0.2])
7 AM_CONFIG_HEADER(config.h)
8 AC_CONFIG_SRCDIR([src/btool.cc])
10 AC_CONFIG_SUBDIRS([libusb])
12 # Checks for programs.
17 # Checks for libraries.
18 AC_CHECK_LIB([IOKit], [main])
19 AC_CHECK_LIB([pthread], [main])
21 # Checks for header files.
24 AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h stdint.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h])
26 # Checks for typedefs, structures, and compiler characteristics.
34 # Checks for library functions.
36 AC_PROG_GCC_TRADITIONAL
40 AC_FUNC_SELECT_ARGTYPES
42 AC_CHECK_FUNCS([bzero gettimeofday memset select strcasecmp strchr strerror strtol strtoul])
44 AC_CONFIG_FILES([Makefile