diff options
author | Alex Wu <zhiwen.wu@linux.intel.com> | 2014-01-08 18:43:55 +0800 |
---|---|---|
committer | Alex Wu <zhiwen.wu@linux.intel.com> | 2014-01-08 18:43:55 +0800 |
commit | 22e0f2682e84ff36848554978e7747b1e767f529 (patch) | |
tree | d58ca3401623be5b5d748ffa6749cc6ccac030f2 /configure.ac | |
download | weston-mobile-shell-22e0f2682e84ff36848554978e7747b1e767f529.tar.gz weston-mobile-shell-22e0f2682e84ff36848554978e7747b1e767f529.tar.bz2 weston-mobile-shell-22e0f2682e84ff36848554978e7747b1e767f529.zip |
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..e958b97 --- /dev/null +++ b/configure.ac @@ -0,0 +1,44 @@ +AC_PREREQ([2.68]) +AC_INIT([mobile-shell], + [0.0.1], + [https://BUG-REPORT-ADDRESS]) + +AC_CONFIG_HEADERS([config.h]) + +AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz]) + +AM_SILENT_RULES([yes]) + +# Check for programs +AC_PROG_CC + +# Initialize libtool +LT_PREREQ([2.2]) +LT_INIT([disable-static]) + +PKG_PROG_PKG_CONFIG() + +AC_CHECK_HEADERS([execinfo.h]) + +AC_CHECK_FUNCS([mkostemp strchrnul]) + +PKG_CHECK_MODULES([PLUGIN], [weston >= 1.1.1 pixman-1 xkbcommon]) + +if test "x$GCC" = "xyes"; then + my_common_gcc_flags="-Wall -Wextra -Wno-unused-parameter \ + -Wno-missing-field-initializers -g -fvisibility=hidden" + GCC_CFLAGS="$my_common_gcc_flags \ + -Wstrict-prototypes -Wmissing-prototypes" + GCC_CXXFLAGS="$my_common_gcc_flags" +fi +AC_SUBST(GCC_CFLAGS) +AC_SUBST(GCC_CXXFLAGS) + +AC_PATH_PROG([wayland_scanner], [wayland-scanner]) +if test x$wayland_scanner = x; then + AC_MSG_ERROR([wayland-scanner is needed to compile weston]) +fi + +AC_CONFIG_FILES([Makefile + src/Makefile]) +AC_OUTPUT |