1
m4_define([bonobo_major_version],[2])
2
m4_define([bonobo_minor_version],[24])
3
m4_define([bonobo_micro_version],[5])
4
m4_define([bonobo_version],[bonobo_major_version.bonobo_minor_version.bonobo_micro_version])
6
AC_INIT([libbonoboui],[bonobo_version],[http://bugzilla.gnome.org/enter_bug.cgi?product=bonobo&component=libbonoboui])
8
AC_CONFIG_HEADERS([config.h])
9
AM_INIT_AUTOMAKE([1.9 foreign no-dist-gzip dist-bzip2])
24
if test "$os_win32" = "yes"; then
25
if test x$enable_static = xyes -o x$enable_static = x; then
26
AC_MSG_WARN([Disabling static library build, must build as DLL on Windows.])
29
if test x$enable_shared = xno; then
30
AC_MSG_WARN([Enabling shared library build, must build as DLL on Windows.])
41
AC_PATH_PROGS(PATH_TO_XRDB, "xrdb")
45
GNOME_COMPILE_WARNINGS([maximum])
48
# GNOME_MAINTAINER_MODE_DEFINES
50
IT_PROG_INTLTOOL([0.40.0])
52
GETTEXT_PACKAGE=libbonoboui-2.0
53
AC_SUBST(GETTEXT_PACKAGE)
54
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext domain])
58
AC_PATH_PROG([PKG_CONFIG], [pkg-config], [no])
59
if test x$PKG_CONFIG = xno; then
60
AC_MSG_ERROR([Couldn't find pkg-config, please install it and retry])
63
gtk_target="`$PKG_CONFIG --variable=target gtk+-2.0`"
65
if test $gtk_target = x11 ; then
66
dnl X development libraries check
69
# If Pango included the shared library dependencies from X11 in
70
# the pkg-config output, then we use that (to avoid duplicates).
71
# but if they were omitted to avoid binary compatibility problems
72
# then we need to repeat the checks.
74
if $PKG_CONFIG --exists pangoxft ; then
75
PANGO_PACKAGES="pangox pangoxft"
77
PANGO_PACKAGES="pangox"
80
x_libs="`$PKG_CONFIG --libs $PANGO_PACKAGES`"
82
*-lX11*) pango_omitted_x_deps=no ;;
83
*) pango_omitted_x_deps=yes ;;
86
if test $pango_omitted_x_deps = yes ; then
89
if test x$no_x = xyes ; then
90
AC_MSG_ERROR([X development libraries not found])
92
X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
100
AC_CHECK_LIB(popt, poptStrippedArgv, POPT_LIBS=-lpopt, AC_MSG_ERROR([You must have popt version 1.5 or greater installed.]))
102
AC_CHECK_HEADER(popt.h,,AC_MSG_ERROR([Failed to find popt.h - you may have to adjust your environment]))
105
dnl Start of pkg-config checks
107
BONOBOUI_MODULES="libgnomecanvas-2.0 >= 1.116.0 \
108
libbonobo-2.0 >= 2.13.0 \
109
libgnome-2.0 >= 2.13.7 \
110
bonobo-activation-2.0 >= 2.13.0 \
111
libxml-2.0 >= 2.4.20 \
114
gobject-2.0 >= 2.6.0"
115
PKG_CHECK_MODULES(BONOBOUI, $BONOBOUI_MODULES)
116
AC_SUBST(BONOBOUI_CFLAGS)
117
AC_SUBST(BONOBOUI_LIBS)
119
AC_MSG_CHECKING([for broken, old development packages])
120
if $PKG_CONFIG --exists gdk_pixbuf; then
121
if $PKG_CONFIG --modversion 'gdk_pixbuf >= 0.12'; then
122
AC_MSG_RESULT([parallel install ok]);
124
AC_ERROR([If you have gdk-pixbuf you need at least ver 0.12]);
127
AC_MSG_RESULT([clean])
130
PKG_CHECK_MODULES(BONOBOUI_GLADE, $BONOBOUI_MODULES libglade-2.0 >= 1.99.11)
131
AC_SUBST(BONOBOUI_GLADE_CFLAGS)
132
AC_SUBST(BONOBOUI_GLADE_LIBS)
134
if test "$enable_maintainer_mode" = "yes"; then
135
BONOBOUI_SINGLE_INCLUDES="-DGTK_DISABLE_SINGLE_INCLUDES -DG_DISABLE_SINGLE_INCLUDES"
136
AC_SUBST(BONOBOUI_SINGLE_INCLUDES)
140
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
142
AC_PATH_PROG(GLIB_MKENUMS, glib-mkenums)
151
bonobo/libbonoboui-2.0.pc
152
bonobo/libbonoboui-2.0-uninstalled.pc
155
samples/controls/Makefile
156
samples/bonoboui/Makefile
157
samples/container/Makefile
158
samples/compound-doc/Makefile
159
samples/compound-doc/container/Makefile
160
samples/canvdemo/Makefile
162
tests/control/Makefile
164
tools/browser/Makefile
167
doc/api/figures/Makefile