| 1 |
# -*- Autoconf -*- |
| 2 |
# Process this file with autoconf to produce a configure script. |
| 3 |
|
| 4 |
AC_PREREQ([2.67]) |
| 5 |
AC_INIT([cbootimage], [1.8], [[email protected]]) |
| 6 |
AM_INIT_AUTOMAKE |
| 7 |
AC_CONFIG_SRCDIR([src/cbootimage.c]) |
| 8 |
AC_CONFIG_HEADERS([config.h]) |
| 9 |
|
| 10 |
# Checks for programs. |
| 11 |
AC_PROG_CC |
| 12 |
AM_PROG_CC_C_O |
| 13 |
PKG_PROG_PKG_CONFIG |
| 14 |
|
| 15 |
# Checks for libraries. |
| 16 |
AC_CHECK_LIB(m, log2) |
| 17 |
|
| 18 |
# Checks for header files. |
| 19 |
AC_CHECK_HEADERS([stdio.h string.h ctype.h sys/stat.h getopt.h stdlib.h assert.h errno.h sys/types.h math.h]) |
| 20 |
|
| 21 |
# Checks for typedefs, structures, and compiler characteristics. |
| 22 |
AC_TYPE_SSIZE_T |
| 23 |
AC_HEADER_STDBOOL |
| 24 |
AC_TYPE_UINT16_T |
| 25 |
AC_TYPE_UINT32_T |
| 26 |
AC_TYPE_UINT64_T |
| 27 |
AC_TYPE_UINT8_T |
| 28 |
|
| 29 |
# Checks for library functions. |
| 30 |
AC_FUNC_ERROR_AT_LINE |
| 31 |
AC_FUNC_MALLOC |
| 32 |
AC_CHECK_FUNCS([memset]) |
| 33 |
|
| 34 |
AC_CONFIG_FILES([ |
| 35 |
Makefile |
| 36 |
src/Makefile |
| 37 |
]) |
| 38 |
AC_OUTPUT |