insert DS2408
[owTools.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.69])
5 AC_INIT([owTools], [0.5], [tm@tm3d.de])
6 AM_INIT_AUTOMAKE
7 AC_CONFIG_SRCDIR([config.h.in])
8 AC_CONFIG_HEADERS([config.h])
9
10 # Checks for programs.
11 AC_PROG_CXX
12 AC_PROG_CC
13
14 # Checks for libraries.
15 # FIXME: Replace `main' with a function in `-lpthread':
16 AC_CHECK_LIB([pthread], [main])
17 # FIXME: Replace `main' with a function in `-lrt':
18 AC_CHECK_LIB([rt], [main])
19 # FIXME: Replace `main' with a function in `-lusb':
20 AC_CHECK_LIB([usb], [main])
21
22 # Checks for header files.
23 AC_CHECK_HEADERS([fcntl.h memory.h stdint.h stdlib.h string.h sys/ioctl.h sys/time.h termios.h unistd.h])
24
25 # Checks for typedefs, structures, and compiler characteristics.
26 AC_C_INLINE
27 AC_TYPE_INT16_T
28 AC_TYPE_INT32_T
29 AC_TYPE_INT8_T
30 AC_TYPE_SIZE_T
31 AC_TYPE_UINT16_T
32 AC_TYPE_UINT32_T
33 AC_TYPE_UINT64_T
34 AC_TYPE_UINT8_T
35
36 # Checks for library functions.
37 AC_FUNC_MMAP
38 AC_CHECK_FUNCS([gettimeofday memset select strncasecmp strstr strtol])
39
40 AC_CONFIG_FILES([Makefile
41                  src/Makefile])
42 AC_OUTPUT