Enhance to check parameters and move volume_level_max array to audio_hal_volume_t
[platform/adaptation/spreadtrum/audio-hal-sc7727.git] / configure.ac
1 AC_PREREQ([2.67])
2
3 AC_INIT([audio-hal-sc7727], [0.1])
4 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
5 AC_CONFIG_HEADERS([config.h])
6
7 AC_CONFIG_MACRO_DIR([m4])
8
9 # Checks for programs.
10 m4_pattern_allow([AM_PROG_AR])
11 AM_PROG_AR
12 AC_PROG_CC
13 AM_PROG_CC_C_O
14 AC_PROG_CXX
15 AC_PROG_LIBTOOL
16 AC_PROG_AWK
17 AC_PROG_CPP
18 AC_PROG_INSTALL
19 AC_PROG_LN_S
20 AC_PROG_MAKE_SET
21 PKG_PROG_PKG_CONFIG
22
23 # Checks for libraries.
24
25 PKG_CHECK_MODULES(ASOUNDLIB, alsa >= 1.0.24)
26 AC_SUBST(ASOUNDLIB_CFLAGS)
27 AC_SUBST(ASOUNDLIB_LIBS)
28
29 if test $USE_TINYALSA = "1"; then
30 PKG_CHECK_MODULES(TINYALSA, tinyalsa)
31 AC_SUBST(TINYALSA_CFLAGS)
32 AC_SUBST(TINYALSA_LIBS)
33 AM_CONDITIONAL(USE_TINYALSA, true)
34 else
35 AM_CONDITIONAL(USE_TINYALSA, false)
36 fi
37
38 PKG_CHECK_MODULES(VCONF, vconf)
39 AC_SUBST(VCONF_CFLAGS)
40 AC_SUBST(VCONF_LIBS)
41
42 PKG_CHECK_MODULES(INIPARSER, iniparser)
43 AC_SUBST(INIPARSER_CFLAGS)
44 AC_SUBST(INIPARSER_LIBS)
45
46 PKG_CHECK_MODULES(DLOG, dlog)
47 AC_SUBST(DLOG_CFLAGS)
48 AC_SUBST(DLOG_LIBS)
49
50 PKG_CHECK_MODULES(EXPAT, expat)
51 AC_SUBST(EXPAT_CFLAGS)
52 AC_SUBST(EXPAT_LIBS)
53
54 # Checks for header files.
55
56 # Checks for typedefs, structures, and compiler characteristics.
57
58 # Checks for library functions.
59
60
61 AC_CONFIG_FILES([ \
62         Makefile
63         ])
64 AC_OUTPUT