Remove AC_FUNC_MALLOC since it breaks AIX, fix position of AC_C_BIGENDIAN
[platform/upstream/libaec.git] / configure.ac
1 AC_PREREQ([2.68])
2 AC_INIT([libaec], [0.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 AC_PROG_CXX
16
17 # Checks for libraries.
18 AC_CHECK_LIB([aec], [aec_decode])
19
20 # Checks for header files.
21 AC_CHECK_HEADERS([inttypes.h stddef.h stdlib.h string.h unistd.h])
22
23 # Checks for typedefs, structures, and compiler characteristics.
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
34 AC_CONFIG_FILES([Makefile
35                  src/Makefile
36                  tests/Makefile])
37 AC_C_BIGENDIAN
38
39 AC_OUTPUT