mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-29 10:50:39 +02:00
[flash tool] correct the configure.ac with autoscan
This commit is contained in:
parent
f2633bd5cc
commit
6183206747
@ -1,39 +1,41 @@
|
|||||||
# -*- Autoconf -*-
|
# -*- Autoconf -*-
|
||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_PREREQ(2.59)
|
AC_PREREQ(2.63)
|
||||||
AC_INIT([inflash],[0.1])
|
AC_INIT([inflash], [0.1])
|
||||||
AC_CONFIG_AUX_DIR(m4)
|
AC_CONFIG_AUX_DIR(m4)
|
||||||
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
|
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
|
||||||
#AC_CONFIG_SRCDIR([src/atmel.c])
|
|
||||||
AM_CONFIG_HEADER([config.h])
|
AM_CONFIG_HEADER([config.h])
|
||||||
|
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
AC_PROG_CXX
|
||||||
|
|
||||||
# Checks for libraries.
|
# Checks for libraries.
|
||||||
|
AC_CHECK_LIB([c], [main])
|
||||||
PKG_CHECK_MODULES(USB, libusb >= 0.1.4,,
|
AC_CHECK_LIB([confuse], [main])
|
||||||
AC_MSG_ERROR([*** Required libusb >= 0.1.4 not installed ***]))
|
AC_CHECK_LIB([gcc], [main])
|
||||||
AC_CHECK_LIB([usbpath],[usb_path2devnum],,,-lusb)
|
AC_CHECK_LIB([m], [main])
|
||||||
|
AC_CHECK_LIB([usb], [main])
|
||||||
|
|
||||||
LIBS="$LIBS $USB_LIBS"
|
LIBS="$LIBS $USB_LIBS"
|
||||||
CFLAGS="$CFLAGS $USB_CFLAGS"
|
CFLAGS="$CFLAGS $USB_CFLAGS"
|
||||||
|
|
||||||
# Checks for header files.
|
# Checks for header files.
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
AC_CHECK_HEADERS([stdlib.h string.h stdio.h usbpath.h])
|
AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h unistd.h])
|
||||||
|
|
||||||
# Checks for typedefs, structures, and compiler characteristics.
|
# Checks for typedefs, structures, and compiler characteristics.
|
||||||
AC_C_CONST
|
AC_C_INLINE
|
||||||
AC_TYPE_SIZE_T
|
AC_TYPE_SIZE_T
|
||||||
|
AC_TYPE_UINT8_T
|
||||||
|
|
||||||
# Checks for library functions.
|
# Checks for library functions.
|
||||||
AC_FUNC_MALLOC
|
AC_FUNC_MALLOC
|
||||||
AC_FUNC_MEMCMP
|
AC_FUNC_MEMCMP
|
||||||
AC_CHECK_FUNCS([memset])
|
AC_CHECK_FUNCS([memset strerror])
|
||||||
|
|
||||||
AC_CONFIG_FILES(Makefile src/Makefile )
|
AC_CONFIG_FILES(Makefile src/Makefile )
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
@ -2,4 +2,4 @@ inflash (1.0.0-1) unstable; urgency=low
|
|||||||
|
|
||||||
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
|
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
|
||||||
|
|
||||||
-- xiangfu <xiangfu@unknown> Mon, 22 Jun 2009 22:48:14 +0800
|
-- xiangfu <xiangfu.z@gmail.com> Mon, 22 Jun 2009 22:48:14 +0800
|
||||||
|
@ -2,7 +2,7 @@ Source: inflash
|
|||||||
Section: misc
|
Section: misc
|
||||||
Priority: extra
|
Priority: extra
|
||||||
Maintainer: Xiangfu Liu <xiangfu.z@gmail.com>
|
Maintainer: Xiangfu Liu <xiangfu.z@gmail.com>
|
||||||
Build-Depends: debhelper (>= 7) libusb (>= 0.1.4) libconfuse0
|
Build-Depends: debhelper (>= 7), libusb (>= 0.1.4), libconfuse
|
||||||
Standards-Version: 3.8.0
|
Standards-Version: 3.8.0
|
||||||
Homepage: http://code.google.com/p/pi-project/
|
Homepage: http://code.google.com/p/pi-project/
|
||||||
Package: inflash
|
Package: inflash
|
||||||
|
Loading…
Reference in New Issue
Block a user