1#                                               -*- Autoconf -*-
2# configure.ac -- Autoconf script for sdm
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.61)
9# Initialize the display package version 1.0.0
10AC_INIT([display],1.0.0)
11# Does not strictly follow GNU Coding standards
12AM_INIT_AUTOMAKE([foreign])
13# Disables auto rebuilding of configure, Makefile.ins
14AM_MAINTAINER_MODE
15# defines some macros variable to be included by source
16AC_CONFIG_HEADERS([config.h])
17AC_CONFIG_MACRO_DIR([m4])
18AC_SUBST([COMMON_CFLAGS], [-Wall -Werror -Wno-sign-conversion -Wconversion -DDEBUG_CALC_FPS])
19AC_SUBST([AM_CPPFLAGS], [--std=c++11])
20
21AC_ARG_WITH([core_includes],
22    AC_HELP_STRING([--with-core-includes=@<:@dir@:>@],
23       [Specify the location of the core headers]),
24    [core_incdir=$withval],
25    with_core_includes=no)
26
27if test "x$with_core_includes" != "xno"; then
28   CFLAGS="${CFLAGS} -I${core_incdir}"
29fi
30
31AC_ARG_WITH(sanitized-headers,
32   AS_HELP_STRING([--with-sanitized-headers=DIR],
33       [Specify the location of the sanitized Linux headers]),
34   [CPPFLAGS="$CPPFLAGS -idirafter $withval"])
35
36# Checks for programs.
37AC_PROG_CC
38AM_PROG_CC_C_O
39AC_PROG_CXX
40AC_PROG_LIBTOOL
41AC_PROG_AWK
42AC_PROG_CPP
43AC_PROG_INSTALL
44AC_PROG_LN_S
45AC_PROG_MAKE_SET
46
47AC_SUBST([CFLAGS])
48AC_SUBST([CC])
49AC_CONFIG_FILES([ \
50        Makefile \
51        libqservice/Makefile \
52        libqdutils/Makefile \
53        libgralloc/Makefile \
54        sdm/libs/utils/Makefile \
55        sdm/libs/core/Makefile
56        ])
57AC_OUTPUT