bug fix: It will end, if many events come from Weston continuously.
[profile/ivi/ico-uxf-device-input-controller.git] / configure.ac
1 AC_PREREQ([2.68])
2 AC_INIT([ico-uxf-device-input-controller],
3         [0.9.03],
4         [https://BUG-REPORT-ADDRESS])
5
6 AC_CONFIG_HEADERS([config.h])
7
8 AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])
9
10 AM_SILENT_RULES([yes])
11
12 # Check for programs
13 AC_PROG_CC
14 AC_PROG_CXX
15 AC_PROG_SED
16
17 # Initialize libtool
18 LT_PREREQ([2.2])
19 LT_INIT([disable-static])
20
21 PKG_PROG_PKG_CONFIG()
22
23 AC_CHECK_HEADERS([execinfo.h])
24
25 AC_CHECK_FUNCS([mkostemp strchrnul])
26
27 AC_ARG_ENABLE(setuid-install, [  --enable-setuid-install],,
28               enable_setuid_install=yes)
29 AM_CONDITIONAL(ENABLE_SETUID_INSTALL, test x$enable_setuid_install = xyes)
30
31 PKG_PROG_PKG_CONFIG
32
33 PKG_CHECK_MODULES([GLIB], [glib-2.0])
34
35 SHARED_LIBS=
36 SHARED_CFLAGS=
37 AC_SUBST(SHARED_LIBS)
38 AC_SUBST(SHARED_CFLAGS)
39
40 COMPOSITOR_LIBS="$COMPOSITOR_LIBS"
41 COMPOSITOR_CFLAGS="$COMPOSITOR_CFLAGS"
42
43 AM_CONDITIONAL(ENABLE_DESKTOP_SHELL, true)
44
45 if test "x$GCC" = "xyes"; then
46         my_common_gcc_flags="-Wall -Wextra -Wno-unused-parameter \
47                 -Wno-missing-field-initializers -g -fvisibility=hidden"
48         GCC_CFLAGS="$my_common_gcc_flags \
49                 -Wstrict-prototypes -Wmissing-prototypes"
50         GCC_CXXFLAGS="$my_common_gcc_flags"
51 fi
52 AC_SUBST(GCC_CFLAGS)
53 AC_SUBST(GCC_CXXFLAGS)
54
55 WAYLAND_SCANNER_RULES(['$(top_srcdir)/protocol'])
56
57 AC_CONFIG_FILES([Makefile
58                  gtforce/Makefile
59                  tests/Makefile])
60 AC_OUTPUT