blob: 2d166c55cd7d2c195cdd3d2735057ccd2130a3ad [file] [log] [blame]
Allen Martin624cec62013-04-08 16:25:54 -07001# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.67])
Stephen Warrenfac58752013-08-27 12:29:40 -06005AC_INIT([cbootimage], [1.2], [pchiu@nvidia.com])
Allen Martin624cec62013-04-08 16:25:54 -07006AM_INIT_AUTOMAKE
7AC_CONFIG_SRCDIR([src/cbootimage.c])
8AC_CONFIG_HEADERS([config.h])
9
10# Checks for programs.
11AC_PROG_CXX
12AC_PROG_CC
Stefan Agner14574162013-08-19 22:10:20 +020013AM_PROG_CC_C_O
Allen Martin624cec62013-04-08 16:25:54 -070014PKG_PROG_PKG_CONFIG
15
16# Checks for libraries.
17AC_CHECK_LIB(m, log2)
18
19# Checks for header files.
20AC_CHECK_HEADERS([stdio.h string.h ctype.h sys/stat.h getopt.h stdlib.h assert.h errno.h sys/types.h math.h])
21
22# Checks for typedefs, structures, and compiler characteristics.
23AC_TYPE_SSIZE_T
24AC_HEADER_STDBOOL
25AC_TYPE_UINT16_T
26AC_TYPE_UINT32_T
27AC_TYPE_UINT64_T
28AC_TYPE_UINT8_T
29
30# Checks for library functions.
31AC_FUNC_ERROR_AT_LINE
32AC_FUNC_MALLOC
33AC_CHECK_FUNCS([memset])
34
35AC_CONFIG_FILES([
36 Makefile
37 src/Makefile
38])
39AC_OUTPUT