Rajavenu Kyatham | 038ee09 | 2016-08-19 17:41:53 +0530 | [diff] [blame] | 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 |
| 8 | AC_PREREQ(2.61) |
| 9 | # Initialize the display package version 1.0.0 |
| 10 | AC_INIT([display],1.0.0) |
| 11 | # Does not strictly follow GNU Coding standards |
| 12 | AM_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 |
| 16 | AC_CONFIG_HEADERS([config.h]) |
| 17 | AC_CONFIG_MACRO_DIR([m4]) |
| 18 | AC_SUBST([COMMON_CFLAGS], [-Wall -Werror -Wno-sign-conversion -Wconversion -DDEBUG_CALC_FPS]) |
| 19 | AC_SUBST([AM_CPPFLAGS], [--std=c++11]) |
| 20 | |
| 21 | AC_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 | |
| 27 | if test "x$with_core_includes" != "xno"; then |
| 28 | CFLAGS="${CFLAGS} -I${core_incdir}" |
| 29 | fi |
| 30 | |
| 31 | AC_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. |
| 37 | AC_PROG_CC |
| 38 | AM_PROG_CC_C_O |
| 39 | AC_PROG_CXX |
| 40 | AC_PROG_LIBTOOL |
| 41 | AC_PROG_AWK |
| 42 | AC_PROG_CPP |
| 43 | AC_PROG_INSTALL |
| 44 | AC_PROG_LN_S |
| 45 | AC_PROG_MAKE_SET |
| 46 | |
| 47 | AC_SUBST([CFLAGS]) |
| 48 | AC_SUBST([CC]) |
| 49 | AC_CONFIG_FILES([ \ |
| 50 | Makefile \ |
| 51 | libqservice/Makefile \ |
| 52 | libqdutils/Makefile \ |
| 53 | libgralloc/Makefile \ |
| 54 | sdm/libs/utils/Makefile \ |
| 55 | sdm/libs/core/Makefile |
| 56 | ]) |
| 57 | AC_OUTPUT |