~ubuntu-branches/ubuntu/quantal/libbonobo/quantal-201207170711

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2009-03-06 18:53:16 UTC
  • mfrom: (1.1.25 upstream) (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090306185316-uf09r30g7cvf67xi
Tags: 2.24.1-1
* New upstream bugfix release.
* debian/control.in:
  + Build depend on GLib >= 2.14.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
m4_define([bonobo_major_version],[2])
4
4
m4_define([bonobo_minor_version],[24])
5
 
m4_define([bonobo_micro_version],[0])
 
5
m4_define([bonobo_micro_version],[1])
6
6
m4_define([bonobo_version],[bonobo_major_version.bonobo_minor_version.bonobo_micro_version])
7
7
 
8
8
AC_INIT([libbonobo],[bonobo_version],[http://bugzilla.gnome.org/enter_bug.cgi?product=bonobo&component=libbonobo])
107
107
# Start of pkg-config checks
108
108
#
109
109
ORBIT_VERSION=2.11.2
110
 
GLIB_VERSION=2.8.0
 
110
GLIB_VERSION=2.14.0
111
111
 
112
112
PKG_CHECK_MODULES(LIBBONOBO, \
113
113
        ORBit-2.0 >= $ORBIT_VERSION \
128
128
AC_SUBST(SERVER_LIBS)
129
129
AC_SUBST(SERVER_CFLAGS)
130
130
 
 
131
if test "$enable_maintainer_mode" = "yes"; then
 
132
        DISABLE_DEPRECATED_CFLAGS="-DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES"
 
133
        AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
 
134
fi
 
135
 
131
136
# orbit-idl
132
 
ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
 
137
test x$ORBIT_IDL = x && ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
133
138
AC_SUBST(ORBIT_IDL)
134
139
 
135
140
AC_CHECK_HEADER(popt.h,,AC_MSG_ERROR([Failed to find popt.h - you may have to adjust your environment]))
149
154
  libbonobo_save_LIBS=$LIBS
150
155
  CFLAGS="$CFLAGS $GTHREAD_CFLAGS"
151
156
  LIBS="$LIBS $GTHREAD_LIBS"
152
 
  AC_TRY_RUN([#include <glib/gthread.h>
 
157
  AC_TRY_RUN([#include <glib.h>
153
158
                int main (void) {
154
159
                        if (!g_thread_supported()) g_thread_init(NULL);
155
160
                        return NULL == g_mutex_new(); }],
157
162
                AC_MSG_RESULT(no)
158
163
                AC_MSG_ERROR(
159
164
                        [No working gthread-2.0 support found, using --disable-threads IS DISCOURAGED])
160
 
        ]
161
 
  )
 
165
        ], [AC_MSG_RESULT(unknown)
 
166
            AC_MSG_WARN(
 
167
                [Couldn't check for working gthread-2.0 support while crosscompiling
 
168
        ])])
162
169
  CFLAGS=$libbonobo_save_CFLAGS
163
170
  LIBS=$libbonobo_save_LIBS
164
171
  AC_DEFINE(HAVE_GTHREADS,,[whether we use gthreads])