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 -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 AM_CONDITIONAL(ENABLE_SCANNER, test "x$enable_scanner" = xyes)
39 AC_ARG_WITH(expat, [ --with-expat=<dir> Use expat from here],
41 CPPFLAGS="$CPPFLAGS -I$withval/include"
42 LDFLAGS="$LDFLAGS -L$withval/lib" ] )
43 if test "x$enable_scanner" = "xyes"; then
44 AC_CHECK_HEADERS(expat.h, [AC_DEFINE(HAVE_EXPAT_H)],
45 [AC_MSG_ERROR([Can't find expat.h. Please install expat.])])
46 AC_CHECK_LIB(expat, XML_ParserCreate, [EXPAT_LIBS="-lexpat"],
47 [AC_MSG_ERROR([Can't find expat library. Please install expat.])])
51 AC_CONFIG_FILES([Makefile
55 src/wayland-client.pc])