merge manifest file
[external/opencore-amr.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_INIT([opencore-amr], [0.1.2], [https://sourceforge.net/apps/trac/opencore-amr/])
5 AC_CONFIG_AUX_DIR(.)
6 AC_CONFIG_MACRO_DIR([m4])
7 AM_INIT_AUTOMAKE([tar-ustar])
8 AC_CONFIG_HEADERS([config.h])
9 AM_MAINTAINER_MODE
10
11 # Cross compiling support
12 AC_CANONICAL_BUILD
13 AC_CANONICAL_HOST
14
15 # Various options for configure
16 AC_ARG_ENABLE([compile-c],
17             [AS_HELP_STRING([--enable-compile-c],
18                [enable compiling as C program (default is yes)])],
19             [compile_as_c=$enableval],
20             [compile_as_c=yes])
21
22 # Automake conditionals to set
23 AM_CONDITIONAL(COMPILE_AS_C, test x$compile_as_c = xyes)
24
25 # Checks for programs.
26 AC_PROG_CXX
27 AC_PROG_CC
28 AC_PROG_INSTALL
29 AC_PROG_LN_S
30 AC_PROG_MAKE_SET
31
32 # Setup for libtool
33 AC_PROG_LIBTOOL
34 AC_SUBST(LIBTOOL_DEPS)
35
36 # Checks for libraries.
37 AC_CHECK_LIB([m], [main])
38
39 # Checks for header files.
40 AC_CHECK_HEADERS([stdint.h stdlib.h string.h])
41
42 # Checks for typedefs, structures, and compiler characteristics.
43 AC_HEADER_STDBOOL
44 AC_C_INLINE
45 AC_TYPE_INT16_T
46 AC_TYPE_INT32_T
47 AC_TYPE_INT64_T
48 AC_TYPE_INT8_T
49 AC_TYPE_UINT16_T
50 AC_TYPE_UINT32_T
51 AC_TYPE_UINT64_T
52 AC_TYPE_UINT8_T
53
54 # Checks for library functions.
55 AC_FUNC_MALLOC
56 AC_CHECK_FUNCS([memset])
57
58 # OpenCORE AMR soname version to use
59 # goes by ‘current[:revision[:age]]’ with the soname ending up as
60 # current.age.revision.
61 OPENCORE_AMRNB_VERSION=0:2:0
62 OPENCORE_AMRWB_VERSION=0:2:0
63 AC_SUBST(OPENCORE_AMRNB_VERSION)
64 AC_SUBST(OPENCORE_AMRWB_VERSION)
65
66 AC_CONFIG_FILES([Makefile
67                  amrnb/Makefile
68                  amrwb/Makefile
69                  test/Makefile
70                  amrnb/opencore-amrnb.pc
71                  amrwb/opencore-amrwb.pc])
72 AC_OUTPUT