~ubuntu-branches/ubuntu/utopic/gnome-chemistry-utils/utopic

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-05-10 21:30:51 UTC
  • mfrom: (1.1.15) (2.1.25 sid)
  • Revision ID: package-import@ubuntu.com-20130510213051-mswxsp3vitsgqspm
Tags: 0.14.2-1ubuntu1
* Sync with Debian. Remaining change:
  - Build-depend on firefox-dev instead of xulrunner-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
AC_PREREQ(2.64)
2
2
 
3
 
AC_INIT([gnome-chemistry-utils], [0.12.12], [http://savannah.nongnu.org/bugs/?group=gchemutils],[gnome-chemistry-utils],[http://gchemutils.nongnu.org/])
4
 
AC_CONFIG_SRCDIR([libs/gcu/gcuperiodic.c])
 
3
AC_INIT([gnome-chemistry-utils], [0.14.2], [http://savannah.nongnu.org/bugs/?group=gchemutils],[gnome-chemistry-utils],[http://gchemutils.nongnu.org/])
 
4
AC_CONFIG_SRCDIR([libs/gcugtk/gcuperiodic.c])
5
5
AM_INIT_AUTOMAKE([1.11.1 tar-ustar no-dist-gzip dist-bzip2 dist-xz])
6
 
AM_MAINTAINER_MODE
 
6
AM_MAINTAINER_MODE([enable])
7
7
AC_CANONICAL_HOST
8
8
AC_CONFIG_MACRO_DIR([m4])
9
9
GCU_VERSION=$VERSION
25
25
LT_INIT([disable-static])
26
26
 
27
27
AC_PROG_LN_S
28
 
DOLT
 
28
AM_PROG_CC_C_O
29
29
IT_PROG_INTLTOOL([0.40.6])
30
30
GNOME_DOC_INIT
31
31
 
33
33
GNOME_CXX_WARNINGS([yes])
34
34
GNOME_MAINTAINER_MODE_DEFINES
35
35
 
 
36
AC_ARG_VAR(GLIB_GENMARSHAL, [The glib-genmarshal executable.])
 
37
AC_CHECK_PROG(GLIB_GENMARSHAL, glib-genmarshal, glib-genmarshal)
 
38
 
36
39
GCU_VERSION_INFO=`echo $GCU_VERSION | awk -F . '{ print $1+$2":"$3":"$2 }'`
37
40
AC_SUBST([GCU_VERSION_INFO])
38
41
 
65
68
 
66
69
AC_ARG_ENABLE(
67
70
        [update-databases],
68
 
        AC_HELP_STRING(
 
71
        AS_HELP_STRING(
69
72
                [--enable-update-databases],
70
73
                [
71
74
                 enable (or disable) the running of the update-desktop-database and update-mime-database
93
96
dnl install desktop files for kde if needed
94
97
AC_ARG_WITH(
95
98
        [kde-mime-dir],
96
 
        AC_HELP_STRING(
 
99
        AS_HELP_STRING(
97
100
                [--with-kde-mime-dir],
98
101
                [
99
102
                 path to KDE's directory containing MIME .desktop files
119
122
AM_CONDITIONAL([DOXYGEN_AVAILABLE], [test "x$DOXYGEN" != "xno"])
120
123
 
121
124
libgoffice=
122
 
dnl Only 0.7.5, or later will work
123
 
for ver in 0.8 ; do
 
125
dnl Only 0.10.0, or later will work
 
126
for ver in 0.10 ; do
124
127
  if test "x$libgoffice" = x; then
125
128
    if pkg-config --exists libgoffice-$ver; then
126
129
      libgoffice=libgoffice-$ver
129
132
done
130
133
if test "x$libgoffice" = x; then
131
134
  # Not important.  Things will fail below.
132
 
  libgoffice=libgoffice-0.8
 
135
  libgoffice=libgoffice-0.10
133
136
fi
134
137
 
135
138
PKG_CHECK_MODULES(shared_mime_info, [shared-mime-info >= 0.12])
136
139
PKG_CHECK_MODULES(cairo, [cairo >= 1.6.0])
137
 
PKG_CHECK_MODULES(gio, [gio-2.0 >= 2.16.1])
138
 
PKG_CHECK_MODULES(gtk, [gtk+-2.0 >= 2.18.0])
139
 
PKG_CHECK_MODULES(gtkglext, [gtkglext-1.0 >= 1.0.0])
 
140
PKG_CHECK_MODULES(gio, [gio-2.0 >= 2.26.0])
 
141
PKG_CHECK_MODULES(gdk_pixbuf, [gdk-pixbuf-2.0 >= 2.22.0])
 
142
PKG_CHECK_MODULES(gtk, [gtk+-3.0 >= 3.0.0])
140
143
PKG_CHECK_MODULES(xml, [libxml-2.0 >= 2.4.16])
141
144
PKG_CHECK_MODULES(gsf, [libgsf-1 >= 1.14.9])
142
 
PKG_CHECK_MODULES(goffice, [$libgoffice >= 0.7.16])
 
145
PKG_CHECK_MODULES(goffice, [$libgoffice >= 0.10.0])
143
146
PKG_CHECK_MODULES(chemical_mime_data, [chemical-mime-data >= 0.1.94])
144
147
PKG_CHECK_MODULES(bodr, [bodr >= 5])
145
 
PKG_CHECK_MODULES(openbabel, [openbabel-2.0 >= 2.1.0])
 
148
PKG_CHECK_MODULES(openbabel, [openbabel-2.0 >= 2.3.0])
146
149
PKG_CHECK_MODULES(x11, [x11 >= 1.0.0])
147
150
 
148
 
PKG_CHECK_MODULES(OB22, openbabel-2.0 >= 2.2.0,
149
 
[ob22="yes"],[ob22="no"])
150
 
if test "x$ob22" = "xyes"; then
151
 
  AC_DEFINE_UNQUOTED([HAVE_OPENBABEL_2_2], 1, [Whether OpenBabel is >= 2.2.0])
152
 
fi
153
 
 
154
 
dnl The following 4 lines were borrowed from gnumeric
155
 
dnl The following conditional is set in AM_GCONF_SOURCE_2.
156
 
dnl Because we may skip its execution, we have to set a default here.
157
 
m4_pattern_allow([^AM_GCONF_SOURCE_2$])
158
 
AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [false])
159
 
 
160
 
use_gconf="no"
161
 
if test ! -z "`echo $goffice_CFLAGS|grep gconf`"; then
162
 
AC_PATH_PROG([GCONFTOOL], [gconftool-2], [no])
163
 
if test "x$GCONFTOOL" = "xno"; then
164
 
        AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
165
 
else
166
 
        use_gconf="yes"
167
 
fi
168
 
AM_GCONF_SOURCE_2
169
 
fi
170
 
AM_CONDITIONAL([USE_GCONF], [test "x$use_gconf" = "xyes"] )
 
151
dnl Not sure we need to test for glu.h and glx.h
 
152
AC_CHECK_HEADER(GL/glu.h,,[AC_MSG_ERROR([Error, GL/glu.h not found.])])
 
153
AC_CHECK_HEADER(GL/glx.h,,[AC_MSG_ERROR([Error, GL/glx.h not found.])])
171
154
 
172
155
dnl GSettings related stuff
173
156
GLIB_GSETTINGS
177
160
AC_DEFINE_UNQUOTED([BODR_PKGDATADIR], ["$bodr_pkgdatadir"], [Path to Blue Obelisk Data Repository])
178
161
 
179
162
if test "x$gcu_is_stable" = "xyes"; then
180
 
        GCU_CFLAGS="-Wall -Wextra"
 
163
        GCU_CFLAGS="-Wall -Wextra -Werror=format-security"
181
164
else
182
 
        GCU_CFLAGS="-DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGSEAL_ENABLE -Wall -Wextra"
 
165
        GCU_CFLAGS="-DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGSEAL_ENABLE -Wall -Wextra -Werror=format-security"
183
166
fi
184
167
AC_SUBST([GCU_CFLAGS])
185
168
 
187
170
GOFFICE_PLUGINS_DIR=`pkg-config --variable=PluginDir $libgoffice`
188
171
AC_ARG_WITH(
189
172
        [goffice-plugins-dir],
190
 
        AC_HELP_STRING(
 
173
        AS_HELP_STRING(
191
174
                [--with-goffice-plugins-dir],
192
175
                [path to GOffice plugins directory [default=auto]]
193
176
        ),
223
206
test_mozilla_plugin=true
224
207
AC_ARG_ENABLE(
225
208
        [mozilla-plugin],
226
 
        AC_HELP_STRING(
 
209
        AS_HELP_STRING(
227
210
                [--enable-mozilla-plugin],
228
211
                [build a Mozilla/Firefox chemistry files viewing plugin @<:@default=auto@:>@]
229
212
        ),
230
213
        [test_mozilla_plugin="$enableval"]
231
214
)
232
215
 
233
 
ac_moz_mime_const_char=no
234
216
if test "x$test_mozilla_plugin" != "xno"; then
235
217
        if test -z "$MOZILLA_CONFIG"; then
236
218
                AC_PATH_PROG([MOZILLA_CONFIG], [mozilla-config], [no])
264
246
 
265
247
AC_ARG_WITH(
266
248
        [mozilla-libdir],
267
 
        AC_HELP_STRING(
 
249
        AS_HELP_STRING(
268
250
                [--with-mozilla-libdir],
269
251
                [path to mozilla/firefox/... libdir @<:@default=auto@:>@]
270
252
        ),
273
255
 
274
256
if test -z "$mozlibdir"; then
275
257
                build_mozilla_plugin=no
276
 
                AC_WARN([Mozilla plugins directory has not been set, the plugin will not be built])
 
258
                AS_WARN([Mozilla plugins directory has not been set, the plugin will not be built])
277
259
fi
278
260
AM_CONDITIONAL([WITH_MOZILLA], [test "x$build_mozilla_plugin" = "xyes"])
279
261
AC_SUBST([MOZILLA_CFLAGS])
288
270
##################################################
289
271
 
290
272
libspreadsheet=
291
 
for ver in 1.10 ; do
 
273
for ver in 1.12 ; do
292
274
  if test "x$libspreadsheet" = x; then
293
275
    if pkg-config --exists libspreadsheet-$ver; then
294
276
      libspreadsheet=libspreadsheet-$ver
297
279
done
298
280
if test "x$libspreadsheet" = x; then
299
281
  # Not important.  Things will fail below.
300
 
  libspreadsheet=libspreadsheet-1.10
 
282
  libspreadsheet=libspreadsheet-1.12
301
283
fi
302
284
 
303
 
PKG_CHECK_MODULES(gnumeric, [$libspreadsheet >= 1.9.10], [build_gnumeric_plugin=yes],
 
285
PKG_CHECK_MODULES(gnumeric, [$libspreadsheet >= 1.11.6], [build_gnumeric_plugin=yes],
304
286
                [build_gnumeric_plugin=no])
305
287
dnl --without is not handled
306
288
 
309
291
gnm_version=`pkg-config --modversion $libspreadsheet`
310
292
AC_ARG_WITH(
311
293
        [gnumeric-plugins-dir],
312
 
        AC_HELP_STRING(
 
294
        AS_HELP_STRING(
313
295
                [--with-gnumeric-plugins-dir],
314
296
                [path to Gnumeric plugins directory [default=auto]]
315
297
        ),
379
361
libs/Makefile
380
362
libs/gccv/Makefile
381
363
libs/gcp/Makefile
 
364
libs/gcr/Makefile
382
365
libs/gcu/Makefile
 
366
libs/gcugtk/Makefile
383
367
plugins/Makefile
384
368
plugins/loaders/Makefile
385
369
plugins/loaders/cdx/Makefile
386
370
plugins/loaders/cdxml/Makefile
387
371
plugins/loaders/cif/Makefile
388
372
plugins/loaders/cml/Makefile
 
373
plugins/loaders/nuts/Makefile
389
374
plugins/paint/Makefile
390
375
plugins/paint/arrows/Makefile
391
376
plugins/paint/arrows/org.gnome.gchemutils.paint.plugins.arrows.gschema.xml.in
396
381
plugins/paint/selection/Makefile
397
382
plugins/paint/templates/Makefile
398
383
plugins/paint/text/Makefile
399
 
plugins/paint/wikipedia/Makefile
400
384
mozilla-plugin/Makefile
401
385
gnumeric/Makefile
402
386
gnumeric/plugin.xml.in
403
387
goffice/Makefile
 
388
openbabel/Makefile
404
389
pixmaps/Makefile
405
390
po/Makefile.in
406
391
samples/Makefile