configure.ac 1.23 KB
Newer Older
Jürg Billeter's avatar
Jürg Billeter committed
1
AC_INIT([vala], [0.1.1], [j@bitron.ch], [vala])
Jürg Billeter's avatar
Jürg Billeter committed
2
3
4
5
6
7
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE([dist-bzip2])

# Checks for programs.
AC_PROG_CC
8
AM_PROG_CC_C_O
9
AC_DISABLE_STATIC
Jürg Billeter's avatar
Jürg Billeter committed
10
AC_PROG_LIBTOOL
11
12
13
14
15
16
17
18
19
20

AC_PROG_LEX
if test "$LEX" = :; then
	AC_MSG_ERROR([flex not found but required])
fi

AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc, :)
if test "$YACC" = :; then
	AC_MSG_ERROR([bison not found but required])
fi
Jürg Billeter's avatar
Jürg Billeter committed
21

22
23
24
AC_PATH_PROG(VALAC, valac, valac)
AC_SUBST(VALAC)

Jürg Billeter's avatar
Jürg Billeter committed
25
26
27
28
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)

Jürg Billeter's avatar
Jürg Billeter committed
29
30
31
AC_ARG_ENABLE(vapigen, AS_HELP_STRING([--enable-vapigen], [Enable VAPI generator]), enable_vapigen=$enableval, enable_vapigen=no)
AM_CONDITIONAL(ENABLE_VAPIGEN, test x$enable_vapigen = xyes)

Jürg Billeter's avatar
Jürg Billeter committed
32
33
GLIB_REQUIRED=2.10.0

34
PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED)
Jürg Billeter's avatar
Jürg Billeter committed
35
36
37
38
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)

AC_CONFIG_FILES([Makefile
39
           vala-1.0.pc
40
41
           ccode/Makefile
           vala/Makefile
42
           gobject/Makefile
43
           compiler/Makefile
44
           vapi/Makefile
45
           tests/Makefile
Jürg Billeter's avatar
Jürg Billeter committed
46
47
48
           doc/Makefile
           gobject-introspection/Makefile
           vapigen/Makefile
49
50
           vapigen/gidlgen/Makefile
           vapigen/gidlgen/gidlgen])
Jürg Billeter's avatar
Jürg Billeter committed
51
52

AC_OUTPUT