~ubuntu-branches/ubuntu/trusty/pango1.0/trusty-proposed

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2010-02-23 10:42:39 UTC
  • mfrom: (1.6.2 upstream) (63.3.16 lucid)
  • Revision ID: james.westby@ubuntu.com-20100223104239-yt4u4nop2nqtw65f
Tags: 1.27.1-1
* New upstream development release:
  + debian/rules:
    - Include check-dist.mk to prevent accidental uploads to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
dnl The triplet 
23
23
m4_define([pango_version_major], [1])
24
 
m4_define([pango_version_minor], [25])
25
 
m4_define([pango_version_micro], [6])
 
24
m4_define([pango_version_minor], [27])
 
25
m4_define([pango_version_micro], [1])
26
26
 
27
27
m4_define([pango_version],
28
28
          [pango_version_major.pango_version_minor.pango_version_micro])
29
29
dnl The X.Y in -lpango-X.Y line. This is expected to stay 1.0 until Pango 2.
30
30
m4_define([pango_api_version], [1.0])
31
 
dnl Number of releases since we've added interfaces
32
 
dnl XXX For 1.25 release simply remove it and make it automatic.
33
 
m4_define([pango_interface_age], [0])
34
31
m4_if(m4_eval(pango_version_minor % 2), [1],
35
32
      [
36
33
        dnl for unstable releases
228
225
 
229
226
AM_CONDITIONAL(CROSS_COMPILING, [test $cross_compiling = yes])
230
227
 
231
 
# define a MAINT-like variable REBUILD which is set if Perl
232
 
# is found, so autogenerated sources can be rebuilt
233
 
 
234
 
AC_CHECK_PROGS(PERL, perl5 perl)
235
 
 
236
 
REBUILD=\#
237
 
if test "x$enable_rebuilds" = "xyes" && \
238
 
     test -n "$PERL" && \
239
 
     $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 ; then
240
 
  REBUILD=
241
 
fi
242
 
AC_SUBST(REBUILD)
243
 
 
244
228
have_x=false
245
229
if test "x$pango_os_win32" != xyes; then
246
230
  AC_PATH_XTRA
368
352
PKG_CHECK_MODULES(CAIRO, cairo >= $cairo_required, have_cairo=true, AC_MSG_RESULT([no]))
369
353
   
370
354
if $have_cairo ; then
371
 
  m4_pattern_allow([PKG_CONFIG_DISABLE_UNINSTALLED])
372
 
  INSTALLED_CAIRO_LIBS=`PKG_CONFIG_DISABLE_UNINSTALLED=yes $PKG_CONFIG --libs cairo`
373
355
  pango_save_libs=$LIBS
374
 
  LIBS="$LIBS $INSTALLED_CAIRO_LIBS"
 
356
  LIBS="$LIBS $CAIRO_LIBS"
375
357
  pango_save_ldflags=$LDFLAGS
376
 
  LDFLAGS="$LDFLAGS $INSTALLED_CAIRO_LIBS"
 
358
  LDFLAGS="$LDFLAGS $CAIRO_LIBS"
377
359
 
378
360
  have_cairo=false
379
361
  cairo_font_backends=""
472
454
*** Glib $GLIB_REQUIRED_VERSION or better is required. The latest version of 
473
455
*** Glib is always available from ftp://ftp.gtk.org/.]))
474
456
 
 
457
# Setup GLIB_MKENUMS to use glib-mkenums even if GLib is uninstalled.
 
458
GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
 
459
AC_SUBST(GLIB_MKENUMS)
 
460
 
 
461
 
475
462
# Add in gthread-2.0 to CFLAGS but not to LIBS so we get any
476
463
# necesary defines for thread-safety.
477
464
GLIB_CFLAGS=`$PKG_CONFIG --cflags $GLIB_MODULES gthread-2.0`
493
480
#
494
481
# Checks for GObject Introspection
495
482
#
496
 
have_introspection=false
497
 
PKG_CHECK_MODULES(INTROSPECTION, gobject-introspection-1.0 >= 0.6.4, have_introspection=true, have_introspection=false)
498
 
AM_CONDITIONAL(HAVE_INTROSPECTION, $have_introspection)
499
483
 
500
 
G_IR_SCANNER=
501
 
G_IR_COMPILER=
502
 
G_IR_GENERATE=
503
 
GIRDIR=
504
 
TYPELIBDIR=
505
 
if $have_introspection; then
506
 
   G_IR_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
507
 
   G_IR_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
508
 
   G_IR_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
509
 
   GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
510
 
   TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
511
 
fi
512
 
AC_SUBST(G_IR_SCANNER)
513
 
AC_SUBST(G_IR_COMPILER)
514
 
AC_SUBST(G_IR_GENERATE)
515
 
AC_SUBST(GIRDIR)
516
 
AC_SUBST(TYPELIBDIR)
 
484
GOBJECT_INTROSPECTION_CHECK([0.6.7])
517
485
 
518
486
#
519
487
# Modules to build