Use AC_CHECK_DECLS, suggestion by Thomas J.
[platform/upstream/libaec.git] / configure.ac
1 AC_PREREQ([2.64])
2 AC_INIT([libaec], [0.1.0], [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
31 # Checks for library functions.
32 AC_CHECK_FUNCS([memset strstr])
33 AC_CHECK_DECLS(__builtin_clzll)
34
35 AC_CONFIG_FILES([Makefile         \
36                  src/Makefile     \
37                  tests/Makefile])
38
39 AC_OUTPUT