Root/usbboot/configure.ac

1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.63)
5AC_INIT([xburst-tools], [0.1])
6AC_CONFIG_AUX_DIR(m4)
7AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
8AM_CONFIG_HEADER([config.h])
9
10AM_MAINTAINER_MODE
11
12# Checks for programs.
13AC_PROG_CC
14AC_PROG_CXX
15
16# Checks for libraries.
17AC_CHECK_LIB([c], [main])
18AC_CHECK_LIB([confuse], [main], [], [
19echo "Error! You need to have libconfuse."
20echo "Maybe run 'sudo apt-get install libconfuse-dev' under debian"
21exit -1 ])
22AC_CHECK_LIB([gcc], [main])
23AC_CHECK_LIB([m], [main])
24AC_CHECK_LIB([usb], [main], [], [
25echo "Error! You need to have libconfuse. \n"
26echo "Maybe run 'sudo apt-get install libusb-dev' under debian"
27exit -1 ])
28
29LIBS="$LIBS $USB_LIBS"
30CFLAGS="$CFLAGS $USB_CFLAGS"
31
32# Checks for header files.
33AC_HEADER_STDC
34AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h unistd.h])
35
36# Checks for typedefs, structures, and compiler characteristics.
37AC_C_INLINE
38AC_TYPE_SIZE_T
39AC_TYPE_UINT8_T
40
41# Checks for library functions.
42AC_FUNC_MALLOC
43AC_FUNC_MEMCMP
44AC_CHECK_FUNCS([memset strerror])
45
46AC_CONFIG_FILES(Makefile src/Makefile )
47AC_OUTPUT
48

Archive Download this file



interactive