mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-22 18:54:39 +02:00
da4424df4b
Allow usbboot to be built on systems without a mipsel cross-compiler by passing configure the --disable-firmware option. Before using the resulting binary, one would need to grab the firmware from another machine. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
60 lines
1.5 KiB
Plaintext
60 lines
1.5 KiB
Plaintext
# -*- Autoconf -*-
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ(2.63)
|
|
AC_INIT([xburst-tools], [0.1])
|
|
AC_CONFIG_AUX_DIR(m4)
|
|
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
|
|
AM_CONFIG_HEADER([config.h])
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
AC_ARG_ENABLE([firmware],
|
|
[AS_HELP_STRING([--disable-firmware],
|
|
[Do not build initialization code]
|
|
[(for example, because some other package contains it).])],
|
|
[
|
|
case "$enableval" in
|
|
yes) firmware=true ;;
|
|
no) firmware=false ;;
|
|
*) AC_MSG_ERROR([bad value $enableval for --enable-firmware]) ;;
|
|
esac],[firmware=false])
|
|
AM_CONDITIONAL([COND_FIRMWARE], [test "$firmware" = true])
|
|
|
|
# Checks for programs.
|
|
AC_PROG_CC
|
|
AC_PROG_CXX
|
|
|
|
# Checks for libraries.
|
|
AC_CHECK_LIB([c], [main])
|
|
AC_CHECK_LIB([confuse], [main], [], [
|
|
echo "Error! You need to have libconfuse."
|
|
echo "Maybe run 'sudo apt-get install libconfuse-dev' under debian"
|
|
exit -1 ])
|
|
AC_CHECK_LIB([gcc], [main])
|
|
AC_CHECK_LIB([m], [main])
|
|
AC_CHECK_LIB([usb], [main], [], [
|
|
echo "Error! You need to have libusb. \n"
|
|
echo "Maybe run 'sudo apt-get install libusb-dev' under debian"
|
|
exit -1 ])
|
|
|
|
LIBS="$LIBS $USB_LIBS"
|
|
CFLAGS="$CFLAGS $USB_CFLAGS"
|
|
|
|
# Checks for header files.
|
|
AC_HEADER_STDC
|
|
AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h unistd.h])
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
AC_C_INLINE
|
|
AC_TYPE_SIZE_T
|
|
AC_TYPE_UINT8_T
|
|
|
|
# Checks for library functions.
|
|
AC_FUNC_MALLOC
|
|
AC_FUNC_MEMCMP
|
|
AC_CHECK_FUNCS([memset strerror])
|
|
|
|
AC_CONFIG_FILES(Makefile src/Makefile )
|
|
AC_OUTPUT
|