1 AC_INIT([vala], [0.5.6], [j@bitron.ch], [vala])
2 AC_CONFIG_SRCDIR([Makefile.am])
3 AC_CONFIG_HEADERS(config.h)
4 AM_INIT_AUTOMAKE([dist-bzip2])
14 if test "$LEX" = :; then
15 AC_MSG_ERROR([flex not found but required])
18 AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc, :)
19 if test "$YACC" = :; then
20 AC_MSG_ERROR([bison not found but required])
23 AC_PATH_PROG(VALAC, valac, valac)
30 AC_ARG_ENABLE(vapigen, AS_HELP_STRING([--enable-vapigen], [Enable VAPI generator]), enable_vapigen=$enableval, enable_vapigen=no)
31 AM_CONDITIONAL(ENABLE_VAPIGEN, test x$enable_vapigen = xyes)
35 PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED)
40 PKG_CHECK_MODULES(GMODULE, gmodule-2.0 >= $GLIB_REQUIRED)
42 AC_SUBST(GMODULE_CFLAGS)
43 AC_SUBST(GMODULE_LIBS)
45 PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= $GLIB_REQUIRED)
47 AC_SUBST(GTHREAD_CFLAGS)
48 AC_SUBST(GTHREAD_LIBS)
50 AC_PATH_PROG([XSLTPROC], [xsltproc], :)
51 AM_CONDITIONAL(HAVE_XSLTPROC, test "$XSLTPROC" != :)
53 AC_CONFIG_FILES([Makefile
64 gobject-introspection/Makefile
66 vapigen/vala-gen-introspect/Makefile
67 vapigen/vala-gen-introspect/vala-gen-introspect])