Drop C99 requirement and test for inline and restrict instead.
[platform/upstream/libaec.git] / configure.ac
1 AC_PREREQ([2.64])
2 AC_INIT([libaec], [0.2], [rosenhauer@dkrz.de])
3
4 AC_CONFIG_MACRO_DIR([m4])
5 AC_CONFIG_AUX_DIR([config])
6 AC_CONFIG_SRCDIR([src/libaec.h])
7 AC_CONFIG_HEADERS(config/config.h)
8
9 LT_INIT
10
11 AM_INIT_AUTOMAKE
12
13 # Checks for programs.
14 AC_PROG_CC
15
16 # Checks for libraries.
17 AC_CHECK_LIB([aec], [aec_decode])
18
19 # Checks for header files.
20 AC_HEADER_STDC
21
22 # Checks for typedefs, structures, and compiler characteristics.
23 AC_C_BIGENDIAN
24 AC_C_INLINE
25 AC_TYPE_INT64_T
26 AC_TYPE_SIZE_T
27 AC_TYPE_UINT32_T
28 AC_TYPE_UINT64_T
29 AC_TYPE_UINT8_T
30 AC_C_INLINE
31 AC_C_RESTRICT
32
33 # Checks for library functions.
34 AC_CHECK_FUNCS([memset strstr])
35 AC_CHECK_DECLS(__builtin_clzll)
36
37 AC_CONFIG_FILES([Makefile         \
38                  src/Makefile     \
39                  tests/Makefile])
40
41 AC_OUTPUT