blob: 94ca645ae91437f02d0d1130cdb65e7dac79137c [file] [log] [blame]
Sidipotu Ashok404f26d2017-10-10 22:27:51 +05301# -*- Autoconf -*-
2# configure.ac -- Autoconf script for halinterface
3#
4
5# Process this file with autoconf to produce a configure script.
6
7# Requires autoconf tool later than 2.61
8AC_PREREQ([2.69])
9# Initialize the audiohalwrapper-interface package version 1.0.0
10AC_INIT(audiohalwrapperinterface,1.0.0)
11# Does not strictly follow GNU Coding standards
12AM_INIT_AUTOMAKE([foreign])
13# Disables auto rebuilding of configure, Makefile.ins
14#AM_MAINTAINER_MODE
15# defines some macros variable to be included by source
16AC_CONFIG_HEADERS([config.h])
17# defines some macros variable to be included by source
18AC_CONFIG_MACRO_DIR([m4])
19
20# Checks for programs.
21AC_PROG_CC
22AM_PROG_CC_C_O
23AC_PROG_CXX
24AC_PROG_LIBTOOL
25AC_PROG_AWK
26AC_PROG_CPP
27AC_PROG_INSTALL
28AC_PROG_LN_S
29AC_PROG_MAKE_SET
30PKG_PROG_PKG_CONFIG
31
Dhanalakshmi Siddani7764e3f2018-03-05 19:57:06 +053032AM_CONDITIONAL([SVA_AUDIO_CONCURRENCY],[test x$BOARD_SUPPORTS_SVA_AUDIO_CONCURRENCY = xtrue])
Josh Kirschc03f31d2019-01-15 11:50:53 -080033AM_CONDITIONAL([QAHW_V1], [test x$AUDIO_FEATURE_ENABLED_QAHW_1_0 = xtrue])
Sachin Mohan Gadag12f58842017-12-05 15:46:28 +053034AC_ARG_WITH([glib],
35 AC_HELP_STRING([--with-glib],
36 [enable glib, Build against glib. Use this when building for HLOS systems which use glib]))
37
38if (test "x${with_glib}" = "xyes"); then
39 PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= 2.16, dummy=yes,
40 AC_MSG_ERROR(GThread >= 2.16 is required))
41 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16, dummy=yes,
42 AC_MSG_ERROR(GLib >= 2.16 is required))
43 GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS"
44 GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS"
45
46 AC_SUBST(GLIB_CFLAGS)
47 AC_SUBST(GLIB_LIBS)
48fi
49
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053050AC_CONFIG_FILES([ \
51 Makefile
52 ])
53
54AC_OUTPUT