~ubuntu-branches/ubuntu/karmic/pango1.0/karmic-security

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Loic Minier
  • Date: 2007-12-18 21:11:37 UTC
  • mfrom: (1.2.44 upstream)
  • Revision ID: james.westby@ubuntu.com-20071218211137-0ibmwreimvxf3cp1
Tags: 1.19.2-1ubuntu1
* Sync with Debian; Ubuntu changes are:
  - Add patch 30_anymetrics, turns on FC_ANY_METRICS whenever looking up
    fonts with fontconfig; lets fontconfig's configuration know that we
    don't care about getting a font with exactly the same shape as the
    family we asked for and fixes (eg) a firefox vs. evince font metrics
    ugliness issue.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
dnl The triplet 
23
23
m4_define([pango_version_major], [1])
24
24
m4_define([pango_version_minor], [19])
25
 
m4_define([pango_version_micro], [1])
 
25
m4_define([pango_version_micro], [2])
26
26
m4_define([pango_version],
27
27
          [pango_version_major.pango_version_minor.pango_version_micro])
28
28
dnl The X.Y in -lpango-X.Y line. This is expected to stay 1.0 until Pango 2.
29
29
m4_define([pango_api_version], [1.0])
30
30
dnl Number of releases since we've added interfaces
31
 
m4_define([pango_interface_age], [1])
 
31
m4_define([pango_interface_age], [2])
32
32
dnl Number of releases since we've broken binary compatibility.
33
33
m4_define([pango_binary_age],
34
34
          [m4_eval(100 * pango_version_minor + pango_version_micro)])
333
333
have_cairo_freetype=false
334
334
have_cairo_win32=false
335
335
have_cairo_atsui=false
 
336
cairo_required=1.2.6
336
337
 
337
 
PKG_CHECK_MODULES(CAIRO, cairo >= 1.2.6, have_cairo=true, AC_MSG_RESULT([no]))
 
338
PKG_CHECK_MODULES(CAIRO, cairo >= $cairo_required, have_cairo=true, AC_MSG_RESULT([no]))
338
339
   
339
340
if $have_cairo ; then
340
 
  pango_save_ldflags=$LDFLAGS
341
341
  m4_pattern_allow([PKG_CONFIG_DISABLE_UNINSTALLED])
342
342
  INSTALLED_CAIRO_LIBS=`PKG_CONFIG_DISABLE_UNINSTALLED=yes $PKG_CONFIG --libs cairo`
 
343
  pango_save_libs=$LIBS
 
344
  LIBS="$LIBS $INSTALLED_CAIRO_LIBS"
 
345
  pango_save_ldflags=$LDFLAGS
343
346
  LDFLAGS="$LDFLAGS $INSTALLED_CAIRO_LIBS"
344
347
 
345
 
 
346
 
  AC_CHECK_LIB(cairo, cairo_surface_write_to_png, have_cairo_png=true, :)
 
348
  PKG_CHECK_EXISTS(cairo-png >= $cairo_required, have_cairo_png=true, :)
347
349
  if $have_cairo_png; then
348
350
    AC_DEFINE(HAVE_CAIRO_PNG, 1, [Whether Cairo has PNG support])
349
351
  fi
350
352
 
351
 
  AC_CHECK_LIB(cairo, cairo_ps_surface_create, have_cairo_ps=true, :)
 
353
  PKG_CHECK_EXISTS(cairo-ps >= $cairo_required, have_cairo_ps=true, :)
352
354
  if $have_cairo_ps; then
353
355
    AC_DEFINE(HAVE_CAIRO_PS, 1, [Whether Cairo has PS support])
354
356
  fi
355
357
 
356
 
  AC_CHECK_LIB(cairo, cairo_pdf_surface_create, have_cairo_pdf=true, :)
 
358
  PKG_CHECK_EXISTS(cairo-pdf >= $cairo_required, have_cairo_pdf=true, :)
357
359
  if $have_cairo_pdf; then
358
360
    AC_DEFINE(HAVE_CAIRO_PDF, 1, [Whether Cairo has PDF support])
359
361
  fi
360
362
 
361
 
  AC_CHECK_LIB(cairo, cairo_xlib_surface_create, have_cairo_xlib=true, :)
 
363
  PKG_CHECK_EXISTS(cairo-xlib >= $cairo_required, have_cairo_xlib=true, :)
362
364
  if $have_cairo_xlib; then
363
365
    AC_DEFINE(HAVE_CAIRO_XLIB, 1, [Whether Cairo has Xlib support])
364
366
  fi
365
367
 
366
368
  have_cairo=false
367
369
 
368
 
  AC_CHECK_LIB(cairo, cairo_win32_scaled_font_select_font, have_cairo_win32=true, :)
 
370
  PKG_CHECK_EXISTS(cairo-win32 >= $cairo_required, have_cairo_win32=true, :)
369
371
  if $have_cairo_win32 && $have_win32; then
370
372
    AC_DEFINE(HAVE_CAIRO_WIN32, 1, [Whether Cairo uses the Win32 GDI for fonts])
371
373
    have_cairo=true
372
374
  fi
373
375
 
374
 
  AC_CHECK_LIB(cairo, cairo_ft_scaled_font_lock_face, have_cairo_freetype=true, :)
 
376
  PKG_CHECK_EXISTS(cairo-ft >= $cairo_required, have_cairo_freetype=true, :)
375
377
  if $have_cairo_freetype && $have_freetype ; then
376
378
    AC_DEFINE(HAVE_CAIRO_FREETYPE, 1, [Whether Cairo uses FreeType for fonts])
377
379
    have_cairo=true
378
380
  fi
379
381
 
380
 
  AC_CHECK_LIB(cairo, cairo_atsui_font_face_create_for_atsu_font_id, have_cairo_atsui=true, :)
 
382
  PKG_CHECK_EXISTS(cairo-atsui >= $cairo_required, have_cairo_atsui=true, :)
381
383
  if $have_cairo_atsui && $have_atsui ; then
382
384
    AC_DEFINE(HAVE_CAIRO_ATSUI, 1, [Whether Cairo uses ATSUI for fonts])
383
385
    have_cairo=true
387
389
    AC_DEFINE(HAVE_CAIRO, 1, [Have usable Cairo library and font backend])
388
390
  fi
389
391
 
 
392
  LIBS=$pango_save_libs
390
393
  LDFLAGS=$pango_save_ldflags
391
394
fi
392
395