~ubuntu-branches/ubuntu/trusty/indicator-sync/trusty

« back to all changes in this revision

Viewing changes to .pc/upstream-soname-versioning.patch/configure.ac

  • Committer: Package Import Robot
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2012-08-28 16:25:25 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120828162525-v3mx9o332fqrseu8
Tags: 12.10.1-0ubuntu1
* New upstream release.
* debian/control:
  - rename gir1.2-syncclient-12.10 to gir1.2-syncmenu-0.1.
  - rename libindicator-sync-client1 to libsync-menu1.
  - rename libindicator-sync-client-dev to libsync-menu-dev.
  - add gir1.2-dbusmenu-glib-0.4 to Build-Depends.
  - add dbus-test-runner to Build-Depends.
* debian/*.install:
  - rename files as per package name changes.
  - update libsync-menu-dev.install to the library name.
  - update libsync-menu1.install to the library name.
  - update libsync-menu1.symbols to the library name.
  - rename /usr/include/indicator-sync-0.1 to /usr/include/sync-menu-0.1.
* debian/patches/upstream-soname-versioning.patch,
  debian/patches/upstream-pkgconfig-fixes.patch: dropped, no longer needed.
* debian/libsync-menu1.symbols:
  - update symbols that were renamed; keep the old ones as missing.
* debian/patches/upstream-watchers-client-test.patch: fix up the client test
  to avoid failing due to watchers not being allowed to connect.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_INIT(indicator-sync, 12.10.0)
2
 
 
3
 
AC_PREREQ(2.53)
4
 
 
5
 
AM_CONFIG_HEADER(config.h)
6
 
AM_INIT_AUTOMAKE()
7
 
 
8
 
AM_MAINTAINER_MODE
9
 
 
10
 
IT_PROG_INTLTOOL([0.35.0])
11
 
 
12
 
AC_ISC_POSIX
13
 
AC_PROG_CC
14
 
AM_PROG_CC_C_O
15
 
AC_STDC_HEADERS
16
 
AC_DISABLE_STATIC
17
 
AC_PROG_LIBTOOL
18
 
 
19
 
AC_SUBST(VERSION)
20
 
AC_CONFIG_MACRO_DIR([m4])
21
 
 
22
 
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
23
 
 
24
 
AC_PATH_PROG([GLIB_MKENUMS], [glib-mkenums])
25
 
 
26
 
# the Google Test targets are cpp
27
 
AC_PROG_CXX
28
 
 
29
 
 
30
 
###########################
31
 
# GObject Introspection
32
 
###########################
33
 
 
34
 
AC_MSG_CHECKING([for gobject-introspection m4 macros])
35
 
m4_ifdef([GOBJECT_INTROSPECTION_CHECK], , AC_MSG_FAILURE([failed. Please install the package 'gobject-introspection' in order to compile]))
36
 
AC_MSG_RESULT([yes])
37
 
 
38
 
GOBJECT_INTROSPECTION_CHECK([0.10.0])
39
 
 
40
 
GIR_MAJOR=1
41
 
GIR_MINOR=0
42
 
AC_SUBST([GIR_VERSION],[$GIR_MAJOR.$GIR_MINOR])
43
 
AC_DEFINE_UNQUOTED(GIR_VERSION, [$GIR_VERSION], [GIR version])
44
 
 
45
 
###########################
46
 
# Dependencies 
47
 
###########################
48
 
 
49
 
IDO_REQUIRED_VERSION=12.10
50
 
GTK_REQUIRED_VERSION=3.0
51
 
GIO_UNIX_REQUIRED_VERSION=2.18
52
 
PANEL_REQUIRED_VERSION=2.0.0
53
 
INDICATOR_REQUIRED_VERSION=0.3.19
54
 
DBUSMENUGLIB_REQUIRED_VERSION=.0.6.2
55
 
DBUSMENUGTK_REQUIRED_VERSION=0.5.90
56
 
GLIB_REQUIRED_VERSION=2.32.0
57
 
 
58
 
PKG_CHECK_MODULES(SYNC_CLIENT, [dbusmenu-glib-0.4 >= $DBUSMENUGLIB_REQUIRED_VERSION
59
 
                                gio-unix-2.0      >= $GIO_UNIX_REQUIRED_VERSION
60
 
                                glib-2.0          >= $GLIB_REQUIRED_VERSION
61
 
                                gmodule-2.0       >= $GLIB_REQUIRED_VERSION])
62
 
AC_SUBST(SYNC_CLIENT_CFLAGS)
63
 
AC_SUBST(SYNC_CLIENT_LIBS)
64
 
 
65
 
PKG_CHECK_MODULES(SYNC_SERVICE, [indicator3-0.4    >= $INDICATOR_REQUIRED_VERSION
66
 
                                 dbusmenu-glib-0.4 >= $DBUSMENUGLIB_REQUIRED_VERSION
67
 
                                 gio-unix-2.0      >= $GIO_UNIX_REQUIRED_VERSION
68
 
                                 glib-2.0          >= $GLIB_REQUIRED_VERSION
69
 
                                 gmodule-2.0       >= $GLIB_REQUIRED_VERSION])
70
 
AC_SUBST(SYNC_SERVICE_CFLAGS)
71
 
AC_SUBST(SYNC_SERVICE_LIBS)
72
 
 
73
 
PKG_CHECK_MODULES(SYNC_INDICATOR, [libido3-0.1          >= $IDO_REQUIRED_VERSION
74
 
                                   indicator3-0.4       >= $INDICATOR_REQUIRED_VERSION
75
 
                                   dbusmenu-gtk3-0.4    >= $DBUSMENUGTK_REQUIRED_VERSION
76
 
                                   gtk+-3.0             >= $GTK_REQUIRED_VERSION
77
 
                                   glib-2.0             >= $GLIB_REQUIRED_VERSION
78
 
                                   gmodule-2.0          >= $GLIB_REQUIRED_VERSION])
79
 
AC_SUBST(SYNC_INDICATOR_CFLAGS)
80
 
AC_SUBST(SYNC_INDICATOR_LIBS)
81
 
 
82
 
###########################
83
 
# gcov coverage reporting
84
 
###########################
85
 
 
86
 
m4_include([m4/gcov.m4])
87
 
AC_TDD_GCOV
88
 
AM_CONDITIONAL([HAVE_GCOV], [test "x$ac_cv_check_gcov" = xyes])
89
 
AM_CONDITIONAL([HAVE_LCOV], [test "x$ac_cv_check_lcov" = xyes])
90
 
AM_CONDITIONAL([HAVE_GCOVR], [test "x$ac_cv_check_gcovr" = xyes])
91
 
AC_SUBST(COVERAGE_CFLAGS)
92
 
AC_SUBST(COVERAGE_CXXFLAGS)
93
 
AC_SUBST(COVERAGE_LDFLAGS)
94
 
 
95
 
###########################
96
 
# Google Test framework
97
 
###########################
98
 
 
99
 
AC_ARG_ENABLE([tests],
100
 
    [AS_HELP_STRING([--disable-tests], [Disable test scripts and tools (default=auto)])],
101
 
    [enable_tests=${enableval}],
102
 
    [enable_tests=auto])
103
 
if test "x$enable_tests" != "xno"; then
104
 
    m4_include([m4/gtest.m4])
105
 
    CHECK_GTEST
106
 
    if test "x$enable_tests" = "xauto"; then
107
 
        enable_tests=${have_gtest}
108
 
    elif test "x$enable_tests" = "xyes" && test "x$have_gtest" != "xyes"; then
109
 
        AC_MSG_ERROR([tests were requested but gtest is not installed.])
110
 
    fi
111
 
fi
112
 
AM_CONDITIONAL([BUILD_TESTS],[test "x$enable_tests" = "xyes"])
113
 
 
114
 
###########################
115
 
# Check to see if we're local
116
 
###########################
117
 
 
118
 
with_localinstall="no"
119
 
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)
120
 
 
121
 
###########################
122
 
# Indicator Info
123
 
###########################
124
 
 
125
 
if test "x$with_localinstall" = "xyes"; then
126
 
        INDICATORDIR="${libdir}/indicators/2/"
127
 
        INDICATORICONSDIR="${datadir}/icons/"
128
 
else
129
 
        INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator3-0.4`
130
 
        INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator3-0.4`
131
 
fi
132
 
AC_SUBST(INDICATORDIR)
133
 
AC_SUBST(INDICATORICONSDIR)
134
 
 
135
 
###########################
136
 
# DBus Service Info
137
 
###########################
138
 
 
139
 
if test "x$with_localinstall" = "xyes"; then
140
 
        DBUSSERVICEDIR="${datadir}/dbus-1/services/"
141
 
else
142
 
        DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
143
 
fi
144
 
AC_SUBST(DBUSSERVICEDIR)
145
 
 
146
 
##############################
147
 
# Custom Junk
148
 
##############################
149
 
 
150
 
AC_DEFUN([AC_DEFINE_PATH], [
151
 
        test "x$prefix" = xNONE && prefix="$ac_default_prefix"
152
 
        test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
153
 
        ac_define_path=`eval echo [$]$2`
154
 
        ac_define_path=`eval echo [$]ac_define_path`
155
 
        $1="$ac_define_path"
156
 
        AC_SUBST($1)
157
 
        ifelse($3, ,
158
 
                AC_DEFINE_UNQUOTED($1, "$ac_define_path"),
159
 
                AC_DEFINE_UNQUOTED($1, "$ac_define_path", $3))
160
 
])
161
 
 
162
 
###########################
163
 
# Internationalization
164
 
###########################
165
 
 
166
 
GETTEXT_PACKAGE=indicator-sync
167
 
AC_SUBST(GETTEXT_PACKAGE)
168
 
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the default get text domain])
169
 
AC_DEFINE_PATH(GNOMELOCALEDIR, "${datadir}/locale", [locale directory])
170
 
 
171
 
AM_GLIB_GNU_GETTEXT
172
 
 
173
 
###########################
174
 
# Files
175
 
###########################
176
 
 
177
 
AM_CONDITIONAL([HAS_PYTHON], [test "x$have_python" = "xyes"])
178
 
 
179
 
AC_OUTPUT([Makefile
180
 
           indicator-sync/Makefile
181
 
           indicator-sync/indicator-sync-client-0.1.pc.in
182
 
           data/Makefile
183
 
           data/icons/Makefile
184
 
           data/icons/22x22/Makefile
185
 
           data/icons/22x22/status/Makefile
186
 
           examples/Makefile
187
 
           test/Makefile
188
 
           po/Makefile.in])
189
 
 
190
 
###########################
191
 
# Results
192
 
###########################
193
 
 
194
 
AC_MSG_NOTICE([
195
 
 
196
 
Sync Indicator Configuration:
197
 
 
198
 
        Prefix:           $prefix
199
 
        Indicator Dir:    $INDICATORDIR
200
 
        Python Bindings:  $have_python
201
 
        gtest:            $enable_tests
202
 
        gcov:             $use_gcov
203
 
])