configure.ac 1.62 KB
Newer Older
1 2 3 4 5
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.63])
AC_INIT([libovccclient], [0.0], [dev@ovcc.tuxfamily.org])
6
AC_CONFIG_SRCDIR([src/ovccclient-client.vala])
7 8
AC_CONFIG_AUX_DIR([build/aux])
AC_CONFIG_MACRO_DIR([build/m4])
9
AM_INIT_AUTOMAKE([-Wall foreign])
10 11 12 13 14
AC_CONFIG_HEADERS([config.h])

m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])

pkgconfigdir="${libdir}/pkgconfig"
15 16
vapidir="${datadir}/vala/vapi"
ovccclientincludedir="${includedir}/ovcc"
17
AC_SUBST(pkgconfigdir)
18 19
AC_SUBST(vapidir)
AC_SUBST(ovccclientincludedir)
20 21

# Checks for programs.
22
m4_ifdef([AM_PROG_AR],[AM_PROG_AR])
23 24 25 26
AC_PROG_CC
AM_PROG_VALAC([0.8.0])
AC_PROG_LIBTOOL

27 28
OVCC_VALADOC_CHECK([0.2.1])

29 30 31
# Checks for libraries.
GLIB_REQUIRE=2.12
GIO_REQUIRE=2.0
32 33 34 35 36
OVCC_REQUIRE=0.0

PKG_CHECK_MODULES([LIBOVCCCLIENT], [glib-2.0  >= ${GLIB_REQUIRE}
                                    gio-2.0   >= ${GIO_REQUIRE}
                                    ovcc      >= ${OVCC_REQUIRE}])
37
LIBOVCCCLIENT_VALAFLAGS="--pkg glib-2.0 --pkg gio-2.0 --pkg ovcc"
38 39 40 41

# get the correct VAPI directory for ovcc
AC_MSG_CHECKING([for OVCC VAPI dir])
ovcc_vapidir="$($PKG_CONFIG --variable prefix ovcc)/share/vala/vapi"
42
LIBOVCCCLIENT_VALAFLAGS="$LIBOVCCCLIENT_VALAFLAGS --vapidir=$ovcc_vapidir"
43 44
AC_MSG_RESULT([$ovcc_vapidir])

45
AC_SUBST([LIBOVCCCLIENT_VALAFLAGS])
46 47 48 49 50 51 52 53 54

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.

AC_CONFIG_FILES([Makefile
                 src/Makefile
55
                 docs/Makefile
56 57 58
                 ovccclient.pc
                 ])
AC_OUTPUT