~ubuntu-branches/ubuntu/utopic/inkscape/utopic-proposed

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Alex Valavanis
  • Date: 2014-08-19 19:10:32 UTC
  • mfrom: (1.6.5) (2.5.14 sid)
  • Revision ID: package-import@ubuntu.com-20140819191032-2eca1qihaszjk9i6
Tags: 0.48.5-2ubuntu1
* Merge with Debian Unstable (LP: #1358863). Fixes several Ubuntu bugs:
  - Illustrator CS SVG won't load: namespace URIs in entities (LP: #166371)
  - inkscape crashed with SIGSEGV in
    sp_dtw_color_profile_event() (LP: #966441)
  - inkscape crashed with SIGSEGV (LP: #1051017)
  - inkscape crashed with SIGSEGV in Inkscape::Preferences::_getNode()
    (LP: #1163241)
  - save a copy reverts to save as (LP: #529843)
  - Extension to braille not working on Xubuntu 12.10 (LP: #1090865)
* Remaining changes:
  - debian/control:
    + Set Ubuntu Developer as maintainer,
    + build-depend on dh-translation to handle Ubuntu translation,
    + demote pstoedit from Recommends to Suggests (because it's in universe),
  - debian/patches/0006_add_unity_quicklist_support.patch: add.
  - debian/patches/series: update.
  - debian/rules:
    + add dh_translation to handle Ubuntu translation
* Drop debian/patches/librevenge.patch (superseded by
    debian/patches/0006-Update_to_new_libwpg.patch)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
# `dpkg --compare-versions'.  (ii) We don't always know what the next
8
8
# version is going to be called until about the time we release it
9
9
# (whereas we always know what the previous version was called).
10
 
AC_INIT(inkscape, 0.48.4)
 
10
AC_INIT(inkscape, 0.48.5)
11
11
 
12
12
AC_CANONICAL_HOST
13
13
AC_CONFIG_SRCDIR([src/main.cpp])
106
106
dnl Honor aclocal flags
107
107
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
108
108
 
109
 
dnl Verify our GCC version
110
 
if test "x$GXX" = "xyes"; then
111
 
        AC_MSG_CHECKING([GNU compiler version])
112
 
 
113
 
        # Don't pass CXXFLAGS to the following CXX command as some 
114
 
        # of them can't be specified along with '-v'.
115
 
        cc_version=["`$CXX -v 2>&1 </dev/null |grep 'gcc version' |\
116
 
                sed 's/.*gcc version \([-a-z0-9\.]*\).*/\1/'`"]
117
 
 
118
 
        AC_MSG_RESULT([$cc_version])
119
 
 
120
 
        # Some version numbers
121
 
        cc_vers_major=`echo $cc_version | cut -f1 -d.`
122
 
        cc_vers_minor=`echo $cc_version | cut -f2 -d.`
123
 
        cc_vers_patch=`echo $cc_version | cut -f3 -d.`
124
 
        test -n "$cc_vers_major" || cc_vers_major=0
125
 
        test -n "$cc_vers_minor" || cc_vers_minor=0
126
 
        test -n "$cc_vers_patch" || cc_vers_patch=0
127
 
        cc_vers_all=`expr $cc_vers_major '*' 1000000 + $cc_vers_minor '*' 1000 + $cc_vers_patch`
128
 
 
129
 
        if test $cc_vers_major -lt 3; then
130
 
                AC_MSG_ERROR([gcc >= 3.0 is needed to compile inkscape])
131
 
        fi
132
 
fi
133
 
 
134
109
# Detect a working version of unordered containers.
135
110
AC_MSG_CHECKING([TR1 unordered_set usability])
136
111
AC_COMPILE_IFELSE([
193
168
dnl Check for OpenMP 
194
169
dnl Replace this with AC_OPENMP once Autoconf 2.62 is widespread
195
170
dnl ******************************
196
 
AX_OPENMP([openmp_ok=yes],[openmp_ok=no])
 
171
AX_OPENMP([AC_CHECK_HEADER([omp.h],
 
172
                           [openmp_ok=yes],
 
173
                           [openmp_ok=no])
 
174
])
 
175
 
197
176
if test "x$openmp_ok" = "xyes"; then
198
177
        dnl We have it, now set up the flags
199
178
        CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
200
 
        AC_CHECK_HEADER(omp.h)
201
179
        AC_DEFINE(HAVE_OPENMP, 1, [Use OpenMP])
202
180
fi
203
181
 
682
660
with_libwpg=no
683
661
 
684
662
PKG_CHECK_MODULES(LIBWPG, libwpg-0.3 librevenge-0.0 librevenge-stream-0.0, with_libwpg=yes, with_libwpg=no)
685
 
AC_SUBST(LIBWPG_LIBS)
686
 
AC_SUBST(LIBWPG_CFLAGS)
 
663
AM_CONDITIONAL(WITH_LIBWPG01, test "x$with_libwpg" = "xyes")
 
664
 
 
665
if test "x$with_libwpg" = "xyes"; then
 
666
        AC_DEFINE(WITH_LIBWPG,1,[Build in libwpg])
 
667
fi
687
668
AM_CONDITIONAL(WITH_LIBWPG, test "x$with_libwpg" = "xyes")
688
669
 
689
670
dnl ******************************
713
694
dnl   Unconditional dependencies
714
695
dnl ******************************
715
696
 
716
 
dnl sigc++-2.0 >= 2.0.12: using "visit_each" not available in 2.0.10
717
 
if test $cc_vers_major -gt 3; then
718
 
  min_sigc_version=2.0.12
719
 
else
720
 
  min_sigc_version=2.0.11
721
 
fi
722
 
PKG_CHECK_MODULES(INKSCAPE, gdkmm-2.4  glibmm-2.4 giomm-2.4 gtkmm-2.4 >= 2.10.0  gtk+-2.0  libxml-2.0 >= 2.6.11  libxslt >= 1.0.15  cairo  sigc++-2.0 >= $min_sigc_version  $ink_spell_pkg  gthread-2.0 >= 2.0 libpng >= 1.2 gsl)
 
697
PKG_CHECK_MODULES(INKSCAPE, gdkmm-2.4  glibmm-2.4 giomm-2.4 gtkmm-2.4 >= 2.10.0  gtk+-2.0 pangoft2 libxml-2.0 >= 2.6.11  libxslt >= 1.0.15  cairo  sigc++-2.0 >= 2.0.12  $ink_spell_pkg  gthread-2.0 >= 2.0 libpng >= 1.2 gsl)
723
698
 
724
699
dnl gtkmm provides no preprocessor macros for easily checking versions.  This check is used
725
700
dnl to figure out if we are working with the newer 2.24 series or not.