~osomon/libappindicator/multiarch

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Ted Gould
  • Date: 2009-10-13 18:48:46 UTC
  • mto: This revision was merged to the branch mainline in revision 2.
  • Revision ID: ted@canonical.com-20091013184846-8ox3jq2anne0rk0h
Very basic.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
AC_INIT(indicator-custom, 0.0.1, ted@canonical.com)
 
3
AC_COPYRIGHT([Copyright 2009 Canonical])
 
4
 
 
5
AC_PREREQ(2.53)
 
6
 
 
7
AM_CONFIG_HEADER(config.h)
 
8
AM_INIT_AUTOMAKE(indicator-custom, 0.2.6)
 
9
 
 
10
AM_MAINTAINER_MODE
 
11
 
 
12
AC_ISC_POSIX
 
13
AC_PROG_CC
 
14
AM_PROG_CC_C_O
 
15
AC_STDC_HEADERS
 
16
AC_PROG_LIBTOOL
 
17
 
 
18
AC_SUBST(VERSION)
 
19
AC_CONFIG_MACRO_DIR([m4])
 
20
 
 
21
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
 
22
 
 
23
###########################
 
24
# Dependencies 
 
25
###########################
 
26
 
 
27
GTK_REQUIRED_VERSION=2.12
 
28
INDICATOR_REQUIRED_VERSION=0.2.0
 
29
DBUSMENUGTK_REQUIRED_VERSION=0.1.1
 
30
 
 
31
PKG_CHECK_MODULES(INDICATOR, gtk+-2.0 >= $GTK_REQUIRED_VERSION
 
32
                             indicator >= $INDICATOR_REQUIRED_VERSION
 
33
                             dbusmenu-gtk >= $DBUSMENUGTK_REQUIRED_VERSION)
 
34
 
 
35
AC_SUBST(INDICATOR_CFLAGS)
 
36
AC_SUBST(INDICATOR_LIBS)
 
37
 
 
38
###########################
 
39
# Check to see if we're local
 
40
###########################
 
41
 
 
42
with_localinstall="no"
 
43
AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall], [install all of the files localy instead of system directories (for distcheck)]), with_localinstall=$enableval, with_localinstall=no)
 
44
 
 
45
###########################
 
46
# Indicator Info
 
47
###########################
 
48
 
 
49
if test "x$with_localinstall" = "xyes"; then
 
50
        INDICATORDIR="${libdir}/indicators/2/"
 
51
        INDICATORICONSDIR="${datadir}/libindicate/icons/"
 
52
else
 
53
        INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator`
 
54
        INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator`
 
55
fi
 
56
AC_SUBST(INDICATORDIR)
 
57
AC_SUBST(INDICATORICONSDIR)
 
58
 
 
59
###########################
 
60
# DBus Service Info
 
61
###########################
 
62
 
 
63
if test "x$with_localinstall" = "xyes"; then
 
64
        DBUSSERVICEDIR="${datadir}/dbus-1/services/"
 
65
else
 
66
        DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
 
67
fi
 
68
AC_SUBST(DBUSSERVICEDIR)
 
69
 
 
70
###########################
 
71
# Files
 
72
###########################
 
73
 
 
74
AC_OUTPUT([
 
75
Makefile
 
76
src/Makefile
 
77
data/Makefile
 
78
])
 
79
 
 
80
###########################
 
81
# Results
 
82
###########################
 
83
 
 
84
AC_MSG_NOTICE([
 
85
 
 
86
Custom Indicator Configuration:
 
87
 
 
88
        Prefix:        $prefix
 
89
        Indicator Dir: $INDICATORDIR
 
90
])