4 [https://bugs.freedesktop.org/enter_bug.cgi?product=wayland],
6 [http://wayland.freedesktop.org/])
8 AC_CONFIG_HEADERS([config.h])
9 AC_CONFIG_MACRO_DIR([m4])
11 AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])
13 AM_SILENT_RULES([yes])
23 PKG_CHECK_MODULES(FFI, [libffi])
25 if test "x$GCC" = "xyes"; then
26 GCC_CFLAGS="-Wall -Wextra -Wno-unused-parameter -g -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden"
30 AC_ARG_ENABLE([scanner],
31 [AC_HELP_STRING([--disable-scanner],
32 [Disable compilation of wayland-scannner])],
36 AC_ARG_ENABLE([documentation],
37 [AC_HELP_STRING([--disable-documentation],
38 [Disable building the documentation])],
40 [enable_documentation=yes])
42 AM_CONDITIONAL(ENABLE_SCANNER, test "x$enable_scanner" = xyes)
45 AC_ARG_WITH(expat, [ --with-expat=<dir> Use expat from here],
47 CPPFLAGS="$CPPFLAGS -I$withval/include"
48 LDFLAGS="$LDFLAGS -L$withval/lib" ] )
49 if test "x$enable_scanner" = "xyes"; then
50 AC_CHECK_HEADERS(expat.h, [AC_DEFINE(HAVE_EXPAT_H)],
51 [AC_MSG_ERROR([Can't find expat.h. Please install expat.])])
52 AC_CHECK_LIB(expat, XML_ParserCreate, [EXPAT_LIBS="-lexpat"],
53 [AC_MSG_ERROR([Can't find expat library. Please install expat.])])
57 AC_PATH_PROG(XSLTPROC, xsltproc)
58 AM_CONDITIONAL([HAVE_XSLTPROC], [test "x$XSLTPROC" != "x"])
60 if test "x$enable_documentation" = "xyes"; then
61 AC_PATH_PROG(PUBLICAN, publican)
63 AM_CONDITIONAL([HAVE_PUBLICAN], [test "x$PUBLICAN" != "x"])
65 AC_CONFIG_FILES([Makefile