mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-26 11:17:30 +02:00
[flash-tool] add configure.ac
This commit is contained in:
parent
907f9c1856
commit
36bb0d4bef
39
flash-tool/configure.ac
Normal file
39
flash-tool/configure.ac
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# -*- Autoconf -*-
|
||||||
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
|
AC_PREREQ(2.59)
|
||||||
|
AC_INIT([inflash],[0.1])
|
||||||
|
AC_CONFIG_AUX_DIR(m4)
|
||||||
|
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
|
||||||
|
#AC_CONFIG_SRCDIR([src/atmel.c])
|
||||||
|
AM_CONFIG_HEADER([config.h])
|
||||||
|
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
# Checks for programs.
|
||||||
|
AC_PROG_CC
|
||||||
|
|
||||||
|
# Checks for libraries.
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(USB, libusb >= 0.1.4,,
|
||||||
|
AC_MSG_ERROR([*** Required libusb >= 0.1.4 not installed ***]))
|
||||||
|
AC_CHECK_LIB([usbpath],[usb_path2devnum],,,-lusb)
|
||||||
|
|
||||||
|
LIBS="$LIBS $USB_LIBS"
|
||||||
|
CFLAGS="$CFLAGS $USB_CFLAGS"
|
||||||
|
|
||||||
|
# Checks for header files.
|
||||||
|
AC_HEADER_STDC
|
||||||
|
AC_CHECK_HEADERS([stdlib.h string.h stdio.h usbpath.h])
|
||||||
|
|
||||||
|
# Checks for typedefs, structures, and compiler characteristics.
|
||||||
|
AC_C_CONST
|
||||||
|
AC_TYPE_SIZE_T
|
||||||
|
|
||||||
|
# Checks for library functions.
|
||||||
|
AC_FUNC_MALLOC
|
||||||
|
AC_FUNC_MEMCMP
|
||||||
|
AC_CHECK_FUNCS([memset])
|
||||||
|
|
||||||
|
AC_CONFIG_FILES(Makefile src/Makefile )
|
||||||
|
AC_OUTPUT
|
Loading…
Reference in New Issue
Block a user