Fix C code name for types nested in interfaces
[vala-lang.git] / configure.ac
blobec8b3810a4cdec4a61714e639563deee5fc7c80e
1 AC_INIT([vala], [0.7.7], [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])
6 AM_MAINTAINER_MODE
8 # Checks for programs.
9 AC_PROG_CC
10 AM_PROG_CC_C_O
11 AC_DISABLE_STATIC
12 AC_PROG_LIBTOOL
14 AC_PROG_LEX
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)
25 AC_SUBST(VALAC)
27 AC_SUBST(VALAFLAGS)
28 AC_SUBST(CFLAGS)
29 AC_SUBST(CPPFLAGS)
30 AC_SUBST(LDFLAGS)
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'
39 else
40   vapigen_decl=''
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)
48 GLIB_REQUIRED=2.12.0
50 PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED)
52 AC_SUBST(GLIB_CFLAGS)
53 AC_SUBST(GLIB_LIBS)
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
69            vala-1.0.pc
70            gee/Makefile
71            ccode/Makefile
72            vala/Makefile
73            codegen/Makefile
74            compiler/Makefile
75            vapi/Makefile
76            tests/Makefile
77            doc/Makefile
78            doc/vala/Makefile
79            gobject-introspection/Makefile
80            vapigen/Makefile
81            vapigen/vala-gen-introspect/Makefile
82            vapigen/vala-gen-introspect/vala-gen-introspect])
84 AC_OUTPUT