1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
AC_INIT([people-glib], [0.1.0], [ali.sabil@gmail.com], [people-glib])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE([dist-bzip2])
AM_MAINTAINER_MODE
VERSION_MAJOR_MINOR=0.1
AC_SUBST(VERSION_MAJOR_MINOR)
AC_DEFINE_UNQUOTED(VERSION_MAJOR_MINOR, "$VERSION_MAJOR_MINOR",
[library major.minor version])
AC_PROG_CC
AM_PROG_CC_C_O
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AC_PATH_PROG(VALAC, valac, valac)
AC_SUBST(VALAC)
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
GLIB_REQUIRED=2.16.0
PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED)
PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.95, dbus-glib-1 >= 0.74])
PEOPLE_GLIB_PKG_DEPS="glib-2.0, gobject-2.0, dbus-1, dbus-glib-1"
AC_SUBST(PEOPLE_GLIB_PKG_DEPS)
PEOPLE_GLIB_VALAFLAGS="--pkg dbus-glib-1"
AC_SUBST(PEOPLE_GLIB_VALAFLAGS)
PEOPLE_GLIB_CFLAGS="$GLIB_CFLAGS $DBUS_CFLAGS"
AC_SUBST(PEOPLE_GLIB_CFLAGS)
PEOPLE_GLIB_LIBS="$GLIB_LIBS $DBUS_LIBS"
AC_SUBST(PEOPLE_GLIB_LIBS)
AC_CONFIG_FILES([Makefile
data/people-glib.pc
data/people-glib-uninstalled.pc
people-glib/Makefile
tests/Makefile
data/Makefile])
AC_OUTPUT
|