# Process this file with autoconf to produce a configure script.
# require autoconf 2.54
-AC_PREREQ(2.54)
+AC_PREREQ(2.62)
# Making releases:
# GTK_MICRO_VERSION += 1;
# set GTK_BINARY_AGE and GTK_INTERFACE_AGE to 0.
m4_define([gtk_major_version], [2])
-m4_define([gtk_minor_version], [17])
-m4_define([gtk_micro_version], [5])
+m4_define([gtk_minor_version], [19])
+m4_define([gtk_micro_version], [2])
m4_define([gtk_interface_age], [0])
m4_define([gtk_binary_age],
[m4_eval(100 * gtk_minor_version + gtk_micro_version)])
# required versions of other packages
m4_define([glib_required_version], [2.21.3])
m4_define([pango_required_version], [1.20])
-m4_define([atk_required_version], [1.13.0])
+m4_define([atk_required_version], [1.29.2])
m4_define([cairo_required_version], [1.6])
AC_CONFIG_SRCDIR([gdk/gdktypes.h])
+AC_CONFIG_MACRO_DIR([m4])
+
# Save this value here, since automake will set cflags later
cflags_set=${CFLAGS+set}
-AM_INIT_AUTOMAKE(no-define)
+AM_INIT_AUTOMAKE([no-define -Wno-portability])
AM_CONFIG_HEADER(config.h)
+# Support silent build rules, requires at least automake-1.11. Enable
+# by either passing --enable-silent-rules to configure or passing V=0
+# to make
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([no])])
+
#
# For each of the libraries we build, we define the following
# Checks for programs.
AC_ISC_POSIX
AM_PROG_CC_STDC
+AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_MAKE_SET
;;
esac
+AC_SUBST(MATH_LIB)
#
# see bug 162979
#
[AC_HELP_STRING([--without-libtiff],
[disable TIFF loader for gdk-pixbuf])])
AC_ARG_WITH(libjasper,
- [AC_HELP_STRING([--without-libjasper],
- [disable JPEG2000 loader for gdk-pixbuf])])
+ [AC_HELP_STRING([--with-libjasper],
+ [enable JPEG2000 loader for gdk-pixbuf])])
AC_ARG_ENABLE(gdiplus,
- [AC_HELP_STRING([--disable-gdiplus],
- [disable GDI+ loaders for gdk-pixbuf])])
+ [AC_HELP_STRING([--enable-gdiplus],
+ [enble GDI+ loaders for gdk-pixbuf (currently known to be broken)])],,
+ [enable_gdiplus=no])
AM_CONDITIONAL(BUILD_GDIPLUS_LOADERS, [ test x$os_win32 = xyes && test x$enable_gdiplus != xno ])
fi
dnl Test for libjasper
- if test x$with_libjasper != xno && test -z "$LIBJASPER"; then
+ if test x$with_libjasper = xyes && test -z "$LIBJASPER"; then
AC_CHECK_LIB(jasper, jas_init, LIBJASPER=-ljasper, [], -ljpeg)
fi
- if test x$with_libjasper != xno && test -z "$LIBJASPER"; then
+ if test x$with_libjasper = xyes && test -z "$LIBJASPER"; then
AC_MSG_ERROR([
*** Checks for JPEG2000 loader failed. You can build without it by passing
*** --without-libjasper to configure])
# because some important apps like GIMP need to read and write
# arbitrary tEXt chunks which doesn't seem to be possible through GDI+
-all_loaders="ani,icns,pcx,ras,tga,png,pnm,wbmp,xbm,xpm"
+all_loaders="ani,icns,pcx,ras,tga,png,pnm,wbmp,xbm,xpm,qtif"
if test x$with_libjasper != xno; then
all_loaders="$all_loaders,jasper"
fi
AM_CONDITIONAL(INCLUDE_PCX, [test x"$INCLUDE_pcx" = xyes])
AM_CONDITIONAL(INCLUDE_ICNS, [test x"$INCLUDE_icns" = xyes])
AM_CONDITIONAL(INCLUDE_JASPER, [test x"$INCLUDE_jasper" = xyes])
+AM_CONDITIONAL(INCLUDE_QTIF, [test x"$INCLUDE_qtif" = xyes])
# As all GDI+ loaders are either built-in or not, arbitrarily just
# check one of the variables here
AM_CONDITIONAL(INCLUDE_GDIPLUS, [test x"$INCLUDE_gdip_ico" = xyes])
GDK_PIXBUF_XLIB_EXTRA_CFLAGS=
GDK_PIXBUF_XLIB_EXTRA_LIBS=
-X_PACKAGES=fontconfig
GDK_EXTRA_LIBS="$GDK_WLIBS"
GDK_EXTRA_CFLAGS=
GTK_DEP_LIBS_FOR_X=
if test "x$gdktarget" = "xx11"; then
+ X_PACKAGES=fontconfig
+
#
# We use fontconfig very peripherally when decoding the default
# settings.
AM_CONDITIONAL(USE_X11, true)
else
+ XPACKAGES=
+
AM_CONDITIONAL(XINPUT_XFREE, false)
AM_CONDITIONAL(USE_X11, false)
AM_CONDITIONAL(HAVE_X11R6, false)
[disable cups print backend])],,
[enable_cups=auto])
-if test "x$enable_cups" = "xauto"
-then
+if test "x$enable_cups" = "xno"; then
+ AM_CONDITIONAL(HAVE_CUPS, false)
+else
AC_PATH_PROG(CUPS_CONFIG, cups-config, no)
- if test "x$CUPS_CONFIG" != "xno"; then
+ if test "x$CUPS_CONFIG" = "xno"; then
+ if test "x$enable_cups" = "xauto"; then
+ AM_CONDITIONAL(HAVE_CUPS, false)
+ else
+ AC_MSG_ERROR([
+*** cups not found.
+])
+ fi
+ else
CUPS_CFLAGS=`$CUPS_CONFIG --cflags | sed 's/-O[0-9]*//' | sed 's/-m[^\t]*//g'`
CUPS_LIBS=`$CUPS_CONFIG --libs`
AC_SUBST(CUPS_LIBS)
AC_CHECK_HEADER(cups/cups.h,,AC_MSG_ERROR([[*** Sorry, cups-config present but cups/cups.h missing.]]))
- fi
- AM_CONDITIONAL(HAVE_CUPS, test "x$CUPS_CONFIG" != "xno")
- gtk_save_cflags="$CFLAGS"
- CFLAGS="$CUPS_CFLAGS"
- AC_TRY_COMPILE([#include <cups/http.h>],
- [http_t http; char *s = http.authstring;],
- [AC_DEFINE(HAVE_HTTP_AUTHSTRING, [],
- [Define if cups http_t authstring field is accessible])],)
- CFLAGS="$gtk_save_cflags"
+ AM_CONDITIONAL(HAVE_CUPS, true)
- AC_SUBST(HAVE_HTTP_AUTHSTRING)
+ gtk_save_cflags="$CFLAGS"
+ CFLAGS="$CUPS_CFLAGS"
+ AC_TRY_COMPILE([#include <cups/http.h>],
+ [http_t http; char *s = http.authstring;],
+ [AC_DEFINE(HAVE_HTTP_AUTHSTRING, [],
+ [Define if cups http_t authstring field is accessible])],)
+ CFLAGS="$gtk_save_cflags"
- gtk_save_libs="$LIBS"
- LIBS="$CUPS_LIBS"
- AC_CHECK_FUNCS(httpGetAuthString)
- LIBS="$gtk_save_libs"
+ AC_SUBST(HAVE_HTTP_AUTHSTRING)
-else
- AM_CONDITIONAL(HAVE_CUPS, false)
+ gtk_save_libs="$LIBS"
+ LIBS="$CUPS_LIBS"
+ AC_CHECK_FUNCS(httpGetAuthString)
+ LIBS="$gtk_save_libs"
+ fi
fi
# Checks to see if we should compile with PAPI backend for GTK+
[disable papi print backend])],,
[enable_papi=auto])
-if test "x$enable_papi" = "xauto"
-then
+if test "x$enable_papi" = "xno"; then
+ AM_CONDITIONAL(HAVE_PAPI, false)
+else
AC_MSG_CHECKING(libpapi)
AC_CHECK_LIB(papi, papiServiceCreate, have_papi=yes, have_papi=no)
if test $have_papi = yes; then
AC_DEFINE([HAVE_PAPI], [], [Define to 1 if libpapi available])
fi
AM_CONDITIONAL(HAVE_PAPI, test $have_papi = yes)
-else
- AM_CONDITIONAL(HAVE_PAPI, false)
+ if test "x$enable_papi" = "xyes" -a "x$have_papi" = "xno"; then
+ AC_MSG_ERROR([
+*** papi not found.
+])
+ fi
fi
-AM_CONDITIONAL(HAVE_PAPI_CUPS, test $have_papi = yes && test "x$CUPS_CONFIG" != "xno")
+AM_CONDITIONAL(HAVE_PAPI_CUPS, test "x$have_papi" = "xyes" -a "x$CUPS_CONFIG" != "xno")
gtk_save_cppflags="$CPPFLAGS"
-CPPFLAGS="$CPPFLAGS $GTK_DEP_CFLAGS"
-
+CPPFLAGS="$CPPFLAGS $GTK_DEP_CFLAGS $GDK_DEP_CFLAGS"
+
AC_CHECK_HEADER(cairo-pdf.h,,AC_MSG_ERROR([
*** Can't find cairo-pdf.h. You must build Cairo with the pdf
*** backend enabled.]))
AC_CHECK_HEADER(cairo-ps.h,,AC_MSG_ERROR([
*** Can't find cairo-ps.h. You must build Cairo with the
*** postscript backend enabled.]))
+
+ AC_CHECK_HEADER(cairo-svg.h,,AC_MSG_ERROR([
+*** Can't find cairo-svg.h. You must build Cairo with the
+*** svg backend enabled.]))
fi
CPPFLAGS="$gtk_save_cppflags"
GTK_DEP_LIBS=`echo $GTK_DEP_LIBS | sed -e "s/$export_dynamic//"`
fi
+##################################################
+# GObject introspection
+##################################################
+
+GOBJECT_INTROSPECTION_CHECK([0.6.7])
##################################################
# Checks for gtk-doc and docbook-tools