~ubuntu-branches/ubuntu/utopic/indicator-printers/utopic

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Lars Uebernickel
  • Date: 2012-02-16 21:19:35 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120216211935-3xrgag9lqadzp96j
Tags: 0.1.1-0ubuntu1
* New upstream release.
  - prepare for i18n
  - make sure CUPS' dbus notification is on while the service is running
  - fix build system to enable out-of-tree builds

* debian/control
  - bump libindicator dependency 0.3.91

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
 
AC_INIT(indicator-printers, 0.1)
 
2
AC_INIT(indicator-printers, 0.1.1)
3
3
 
4
4
AC_PREREQ(2.53)
5
5
AM_INIT_AUTOMAKE([])
10
10
AM_PROG_CC_C_O
11
11
AM_SILENT_RULES([yes])
12
12
 
 
13
IT_PROG_INTLTOOL([0.35.0])
 
14
GETTEXT_PACKAGE=indicator-printers
 
15
AC_SUBST(GETTEXT_PACKAGE)
 
16
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [gettext package])
 
17
AM_GLIB_GNU_GETTEXT
 
18
 
13
19
AC_CONFIG_HEADER(config.h)
14
20
AC_CONFIG_FILES([
15
21
    Makefile
16
22
    src/Makefile
17
23
    data/Makefile
18
24
    test/Makefile
 
25
    po/Makefile.in
19
26
])
20
27
 
21
28
PKG_CHECK_MODULES(APPLET, gtk+-3.0 >= 3.0
33
40
SERVICE_CFLAGS+=`$CUPS_CONFIG --cflags`
34
41
SERVICE_LIBS+=`$CUPS_CONFIG --libs`
35
42
 
36
 
INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator3-0.4`
37
 
INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator3-0.4`
38
 
 
39
 
DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
40
 
 
 
43
 
 
44
with_localinstall="no"
 
45
AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall],
 
46
                                           [install all files locally (for distcheck)]),
 
47
              with_localinstall=$enableval,
 
48
              with_localinstall=no)
 
49
 
 
50
if test "x$with_localinstall" = "xyes"; then
 
51
        INDICATORDIR="${libdir}/indicators/2/"
 
52
        INDICATORICONSDIR="${datadir}/libindicate/icons/"
 
53
else
 
54
        INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator3-0.4`
 
55
        INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator3-0.4`
 
56
fi
41
57
AC_SUBST(INDICATORDIR)
42
 
AC_SUBST(INDICATORICONDIR)
 
58
AC_SUBST(INDICATORICONSDIR)
 
59
 
 
60
###########################
 
61
# DBus Service Info
 
62
###########################
 
63
 
 
64
if test "x$with_localinstall" = "xyes"; then
 
65
        DBUSSERVICEDIR="${datadir}/dbus-1/services/"
 
66
else
 
67
        DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
 
68
fi
43
69
AC_SUBST(DBUSSERVICEDIR)
44
70
 
 
71
 
45
72
AC_SUBST(AM_CFLAGS, "-Wall")
46
73
 
47
74
AC_OUTPUT