Fix GtkWidget::style_set and gtk_rc_get_style_by_paths bindings
[vala-lang.git] / configure.ac
blob77b20e756fbdd2fe9ea3dffe7d6cf4d59f8581c8
1 AC_INIT([vala], [0.5.4], [j@bitron.ch], [vala])
2 AC_CONFIG_SRCDIR([Makefile.am])
3 AC_CONFIG_HEADERS(config.h)
4 AM_INIT_AUTOMAKE([dist-bzip2])
5 AM_MAINTAINER_MODE
7 # Checks for programs.
8 AC_PROG_CC
9 AM_PROG_CC_C_O
10 AC_DISABLE_STATIC
11 AC_PROG_LIBTOOL
13 AC_PROG_LEX
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)
24 AC_SUBST(VALAC)
26 AC_SUBST(CFLAGS)
27 AC_SUBST(CPPFLAGS)
28 AC_SUBST(LDFLAGS)
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)
33 GLIB_REQUIRED=2.12.0
35 PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED)
37 AC_SUBST(GLIB_CFLAGS)
38 AC_SUBST(GLIB_LIBS)
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
54            vala-1.0.pc
55            gee/Makefile
56            ccode/Makefile
57            vala/Makefile
58            gobject/Makefile
59            compiler/Makefile
60            vapi/Makefile
61            tests/Makefile
62            doc/Makefile
63            doc/vala/Makefile
64            gobject-introspection/Makefile
65            vapigen/Makefile
66            vapigen/vala-gen-introspect/Makefile
67            vapigen/vala-gen-introspect/vala-gen-introspect])
69 AC_OUTPUT