1 AC_INIT([vala], [0.7.6], [j@bitron.ch], [vala])
2 AC_CONFIG_SRCDIR([Makefile.am])
3 AC_CONFIG_HEADERS(config.h)
4 AC_CONFIG_MACRO_DIR([m4])
5 AM_INIT_AUTOMAKE([dist-bzip2])
15 if test "$LEX" = :; then
16 AC_MSG_ERROR([flex not found but required])
19 AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc, :)
20 if test "$YACC" = :; then
21 AC_MSG_ERROR([bison not found but required])
24 AC_PATH_PROG(VALAC, valac, valac)
32 AC_ARG_ENABLE(vapigen, AS_HELP_STRING([--enable-vapigen], [Enable VAPI generator]), enable_vapigen=$enableval, enable_vapigen=no)
33 AM_CONDITIONAL(ENABLE_VAPIGEN, test x$enable_vapigen = xyes)
35 if test "$enable_vapigen" = "yes"; then
36 vapigen_decl='vapigen=${bindir}/vapigen'
37 gen_introspect_decl='gen_introspect=${libdir}/vala/gen-introspect'
38 vala_gen_introspect_decl='vala_gen_introspect=${bindir}/vala-gen-introspect'
41 gen_introspect_decl=''
42 vala_gen_introspect_decl=''
44 AC_SUBST(vapigen_decl)
45 AC_SUBST(gen_introspect_decl)
46 AC_SUBST(vala_gen_introspect_decl)
50 PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED)
55 PKG_CHECK_MODULES(GMODULE, gmodule-2.0 >= $GLIB_REQUIRED)
57 AC_SUBST(GMODULE_CFLAGS)
58 AC_SUBST(GMODULE_LIBS)
60 PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= $GLIB_REQUIRED)
62 AC_SUBST(GTHREAD_CFLAGS)
63 AC_SUBST(GTHREAD_LIBS)
65 AC_PATH_PROG([XSLTPROC], [xsltproc], :)
66 AM_CONDITIONAL(HAVE_XSLTPROC, test "$XSLTPROC" != :)
68 AC_CONFIG_FILES([Makefile
79 gobject-introspection/Makefile
81 vapigen/vala-gen-introspect/Makefile
82 vapigen/vala-gen-introspect/vala-gen-introspect])