~people-project/people-glib/trunk

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Ali Sabil
  • Date: 2008-12-29 14:26:12 UTC
  • Revision ID: ali.sabil@gmail.com-20081229142612-1vtm72zl7fswlacb
Initial import

Show diffs side-by-side

added added

removed removed

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