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 dist-bzip2])
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"
31 AC_ARG_WITH(expat, [ --with-expat=<dir> Use expat from here],
33 CPPFLAGS="$CPPFLAGS -I$withval/include"
34 LDFLAGS="$LDFLAGS -L$withval/lib" ] )
35 AC_CHECK_HEADERS(expat.h, [AC_DEFINE(HAVE_EXPAT_H)],
36 [AC_MSG_ERROR([Can't find expat.h. Please install expat.])])
37 AC_CHECK_LIB(expat, XML_ParserCreate, [EXPAT_LIBS="-lexpat"],
38 [AC_MSG_ERROR([Can't find expat library. Please install expat.])])
41 AC_CONFIG_FILES([Makefile
44 wayland/wayland-server.pc
45 wayland/wayland-client.pc])