Commit 88c1c946 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Requires glib-2.3.0, pango-1.2.0.

Sat Aug  2 12:53:16 2003  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Requires glib-2.3.0, pango-1.2.0.

        * configure.in: Require Xft version 2,
        remove code for handling older versions of pango and Xft.
        Many miscellaneous improvements to X checks

        * acinclude.m4: Add GTK_ADD_LIB() macro for adding
        a library to a variable, avoiding dups.

        * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
        Always load "fixed"

        * gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
        for pangox.
parent c4667522
Sat Aug 2 12:53:16 2003 Owen Taylor <otaylor@redhat.com>
* configure.in: Requires glib-2.3.0, pango-1.2.0.
* configure.in: Require Xft version 2,
remove code for handling older versions of pango and Xft.
Many miscellaneous improvements to X checks
* acinclude.m4: Add GTK_ADD_LIB() macro for adding
a library to a variable, avoiding dups.
* gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
Always load "fixed"
* gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
for pangox.
2003-08-02 Matthias Clasen <maclas@gmx.de> 2003-08-02 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcolorsel.c (color_sample_drop_handle) * gtk/gtkcolorsel.c (color_sample_drop_handle) (palette_drop_handle):
(palette_drop_handle): * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):
* gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received): Accept drops with the Accept drops with the wrong format, since the KDE color chooser
wrong format, since the KDE color chooser incorrectly drops application/x-color with incorrectly drops application/x-color with format 8.
format 8.
2003-08-02 Tor Lillqvist <tml@iki.fi> 2003-08-02 Tor Lillqvist <tml@iki.fi>
...@@ -536,11 +552,13 @@ Thu Jul 17 16:11:21 2003 Kristian Rietveld <kris@gtk.org> ...@@ -536,11 +552,13 @@ Thu Jul 17 16:11:21 2003 Kristian Rietveld <kris@gtk.org>
2003-07-15 Matthias Clasen <maclas@gmx.de> 2003-07-15 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size): Fight against gtk-doc stupidity. * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
Fight against gtk-doc stupidity.
2003-07-13 Matthias Clasen <maclas@gmx.de> 2003-07-13 Matthias Clasen <maclas@gmx.de>
* gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to targets, to pacify gtk-doc. * gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to
targets, to pacify gtk-doc.
Sun Jul 13 15:57:57 2003 Soeren Sandmann <sandmann@daimi.au.dk> Sun Jul 13 15:57:57 2003 Soeren Sandmann <sandmann@daimi.au.dk>
......
Sat Aug 2 12:53:16 2003 Owen Taylor <otaylor@redhat.com>
* configure.in: Requires glib-2.3.0, pango-1.2.0.
* configure.in: Require Xft version 2,
remove code for handling older versions of pango and Xft.
Many miscellaneous improvements to X checks
* acinclude.m4: Add GTK_ADD_LIB() macro for adding
a library to a variable, avoiding dups.
* gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
Always load "fixed"
* gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
for pangox.
2003-08-02 Matthias Clasen <maclas@gmx.de> 2003-08-02 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcolorsel.c (color_sample_drop_handle) * gtk/gtkcolorsel.c (color_sample_drop_handle) (palette_drop_handle):
(palette_drop_handle): * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):
* gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received): Accept drops with the Accept drops with the wrong format, since the KDE color chooser
wrong format, since the KDE color chooser incorrectly drops application/x-color with incorrectly drops application/x-color with format 8.
format 8.
2003-08-02 Tor Lillqvist <tml@iki.fi> 2003-08-02 Tor Lillqvist <tml@iki.fi>
...@@ -536,11 +552,13 @@ Thu Jul 17 16:11:21 2003 Kristian Rietveld <kris@gtk.org> ...@@ -536,11 +552,13 @@ Thu Jul 17 16:11:21 2003 Kristian Rietveld <kris@gtk.org>
2003-07-15 Matthias Clasen <maclas@gmx.de> 2003-07-15 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size): Fight against gtk-doc stupidity. * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
Fight against gtk-doc stupidity.
2003-07-13 Matthias Clasen <maclas@gmx.de> 2003-07-13 Matthias Clasen <maclas@gmx.de>
* gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to targets, to pacify gtk-doc. * gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to
targets, to pacify gtk-doc.
Sun Jul 13 15:57:57 2003 Soeren Sandmann <sandmann@daimi.au.dk> Sun Jul 13 15:57:57 2003 Soeren Sandmann <sandmann@daimi.au.dk>
......
Sat Aug 2 12:53:16 2003 Owen Taylor <otaylor@redhat.com>
* configure.in: Requires glib-2.3.0, pango-1.2.0.
* configure.in: Require Xft version 2,
remove code for handling older versions of pango and Xft.
Many miscellaneous improvements to X checks
* acinclude.m4: Add GTK_ADD_LIB() macro for adding
a library to a variable, avoiding dups.
* gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
Always load "fixed"
* gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
for pangox.
2003-08-02 Matthias Clasen <maclas@gmx.de> 2003-08-02 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcolorsel.c (color_sample_drop_handle) * gtk/gtkcolorsel.c (color_sample_drop_handle) (palette_drop_handle):
(palette_drop_handle): * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):
* gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received): Accept drops with the Accept drops with the wrong format, since the KDE color chooser
wrong format, since the KDE color chooser incorrectly drops application/x-color with incorrectly drops application/x-color with format 8.
format 8.
2003-08-02 Tor Lillqvist <tml@iki.fi> 2003-08-02 Tor Lillqvist <tml@iki.fi>
...@@ -536,11 +552,13 @@ Thu Jul 17 16:11:21 2003 Kristian Rietveld <kris@gtk.org> ...@@ -536,11 +552,13 @@ Thu Jul 17 16:11:21 2003 Kristian Rietveld <kris@gtk.org>
2003-07-15 Matthias Clasen <maclas@gmx.de> 2003-07-15 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size): Fight against gtk-doc stupidity. * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
Fight against gtk-doc stupidity.
2003-07-13 Matthias Clasen <maclas@gmx.de> 2003-07-13 Matthias Clasen <maclas@gmx.de>
* gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to targets, to pacify gtk-doc. * gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to
targets, to pacify gtk-doc.
Sun Jul 13 15:57:57 2003 Soeren Sandmann <sandmann@daimi.au.dk> Sun Jul 13 15:57:57 2003 Soeren Sandmann <sandmann@daimi.au.dk>
......
Sat Aug 2 12:53:16 2003 Owen Taylor <otaylor@redhat.com>
* configure.in: Requires glib-2.3.0, pango-1.2.0.
* configure.in: Require Xft version 2,
remove code for handling older versions of pango and Xft.
Many miscellaneous improvements to X checks
* acinclude.m4: Add GTK_ADD_LIB() macro for adding
a library to a variable, avoiding dups.
* gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
Always load "fixed"
* gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
for pangox.
2003-08-02 Matthias Clasen <maclas@gmx.de> 2003-08-02 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcolorsel.c (color_sample_drop_handle) * gtk/gtkcolorsel.c (color_sample_drop_handle) (palette_drop_handle):
(palette_drop_handle): * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):
* gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received): Accept drops with the Accept drops with the wrong format, since the KDE color chooser
wrong format, since the KDE color chooser incorrectly drops application/x-color with incorrectly drops application/x-color with format 8.
format 8.
2003-08-02 Tor Lillqvist <tml@iki.fi> 2003-08-02 Tor Lillqvist <tml@iki.fi>
...@@ -536,11 +552,13 @@ Thu Jul 17 16:11:21 2003 Kristian Rietveld <kris@gtk.org> ...@@ -536,11 +552,13 @@ Thu Jul 17 16:11:21 2003 Kristian Rietveld <kris@gtk.org>
2003-07-15 Matthias Clasen <maclas@gmx.de> 2003-07-15 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size): Fight against gtk-doc stupidity. * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
Fight against gtk-doc stupidity.
2003-07-13 Matthias Clasen <maclas@gmx.de> 2003-07-13 Matthias Clasen <maclas@gmx.de>
* gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to targets, to pacify gtk-doc. * gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to
targets, to pacify gtk-doc.
Sun Jul 13 15:57:57 2003 Soeren Sandmann <sandmann@daimi.au.dk> Sun Jul 13 15:57:57 2003 Soeren Sandmann <sandmann@daimi.au.dk>
......
Sat Aug 2 12:53:16 2003 Owen Taylor <otaylor@redhat.com>
* configure.in: Requires glib-2.3.0, pango-1.2.0.
* configure.in: Require Xft version 2,
remove code for handling older versions of pango and Xft.
Many miscellaneous improvements to X checks
* acinclude.m4: Add GTK_ADD_LIB() macro for adding
a library to a variable, avoiding dups.
* gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
Always load "fixed"
* gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
for pangox.
2003-08-02 Matthias Clasen <maclas@gmx.de> 2003-08-02 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcolorsel.c (color_sample_drop_handle) * gtk/gtkcolorsel.c (color_sample_drop_handle) (palette_drop_handle):
(palette_drop_handle): * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):
* gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received): Accept drops with the Accept drops with the wrong format, since the KDE color chooser
wrong format, since the KDE color chooser incorrectly drops application/x-color with incorrectly drops application/x-color with format 8.
format 8.
2003-08-02 Tor Lillqvist <tml@iki.fi> 2003-08-02 Tor Lillqvist <tml@iki.fi>
...@@ -536,11 +552,13 @@ Thu Jul 17 16:11:21 2003 Kristian Rietveld <kris@gtk.org> ...@@ -536,11 +552,13 @@ Thu Jul 17 16:11:21 2003 Kristian Rietveld <kris@gtk.org>
2003-07-15 Matthias Clasen <maclas@gmx.de> 2003-07-15 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size): Fight against gtk-doc stupidity. * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
Fight against gtk-doc stupidity.
2003-07-13 Matthias Clasen <maclas@gmx.de> 2003-07-13 Matthias Clasen <maclas@gmx.de>
* gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to targets, to pacify gtk-doc. * gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to
targets, to pacify gtk-doc.
Sun Jul 13 15:57:57 2003 Soeren Sandmann <sandmann@daimi.au.dk> Sun Jul 13 15:57:57 2003 Soeren Sandmann <sandmann@daimi.au.dk>
......
...@@ -11,6 +11,17 @@ AC_DEFUN([GLIB_AC_DIVERT_BEFORE_HELP], ...@@ -11,6 +11,17 @@ AC_DEFUN([GLIB_AC_DIVERT_BEFORE_HELP],
$1 $1
AC_DIVERT_POP()])])]) AC_DIVERT_POP()])])])
# GTK_ADD_LIB(VAR,LIBNAME)
# ---------------------------------
# Helper macro to add a -lBlah to a variable, avoiding repeats
# Note that this needs to be quoted when used in an enclosing macro
AC_DEFUN([GTK_ADD_LIB],
[ case "$$1 " in
*-l$2[[\ \ ]]*) ;;
*) $1="-l$2 $$1" ;;
esac
])
# Checks the location of the XML Catalog # Checks the location of the XML Catalog
# Usage: # Usage:
# JH_PATH_XML_CATALOG # JH_PATH_XML_CATALOG
......
...@@ -28,8 +28,8 @@ m4_define([gtk_api_version], [2.0]) ...@@ -28,8 +28,8 @@ m4_define([gtk_api_version], [2.0])
m4_define([gtk_binary_version], [2.2.0]) m4_define([gtk_binary_version], [2.2.0])
# required versions of other packages # required versions of other packages
m4_define([glib_required_version], [2.1.4]) m4_define([glib_required_version], [2.3.0])
m4_define([pango_required_version], [1.0.1]) m4_define([pango_required_version], [1.2.0])
m4_define([atk_required_version], [1.0.1]) m4_define([atk_required_version], [1.0.1])
...@@ -993,90 +993,44 @@ fi ...@@ -993,90 +993,44 @@ fi
if test "x$gdktarget" = "xx11"; then if test "x$gdktarget" = "xx11"; then
# We start off with the libraries from Pango # We start off with the libraries from Pango
if $PKG_CONFIG --exists pangox ; then : ; else ## be sure we also have Pango built with Xft2 support
AC_MSG_ERROR([pangox Pango backend is required for x11 target]) if $PKG_CONFIG --exists 'pangoxft >= 1.2.0' ; then
fi
## be sure we also have Pango built with xft support
if $PKG_CONFIG --exists pangoxft ; then
PANGO_PACKAGES="pangoxft pangox"
have_xft=true
AC_DEFINE(HAVE_XFT)
if $have_freetype ; then if $have_freetype ; then
: :
else else
AC_MSG_ERROR([pangoxft Pango backend found but did not find freetype libraries]) AC_MSG_ERROR([Xft Pango backend found but did not find freetype libraries])
fi fi
else else
PANGO_PACKAGES="pangox" AC_MSG_ERROR([Pango 1.2.0 and Xft backend is required for x11 target])
have_xft=false
fi fi
AM_CONDITIONAL(HAVE_XFT, $have_xft) if $PKG_CONFIG --exists xft ; then : ; else
AC_MSG_ERROR([Xft version 2 is required for x11 target])
if $have_xft; then
if $PKG_CONFIG --exists xft ; then
AC_DEFINE(HAVE_XFT2, 1, [Define if we have Xft, version 2])
fi
fi fi
# #
# If Pango included the shared library dependencies from X11 in # If Pango included the shared library dependencies from X11 in
# the pkg-config output, then we use that (to avoid duplicates). # the pkg-config output, then we use that (to avoid duplicates).
# but if they were omitted to avoid binary compatibility problems # but if they were omitted to avoid binary compatibility problems,
# then we need to repeat the checks. # then we need to repeat the checks.
# #
x_libs="`$PKG_CONFIG --libs $PANGO_PACKAGES`" x_libs="`$PKG_CONFIG --libs pangoxft`"
case "$x_libs" in case "$x_libs" in
*-lX11*) pango_omitted_x_deps=no ;; *-lX11*) pango_omitted_x_deps=no ;;
*) pango_omitted_x_deps=yes ;; *) pango_omitted_x_deps=yes ;;
esac esac
x_cflags="`$PKG_CONFIG --cflags $PANGO_PACKAGES`" x_cflags="`$PKG_CONFIG --cflags pangoxft`"
x_extra_libs= x_extra_libs=
AC_PATH_XTRA
if test x$no_x = xyes ; then
AC_MSG_ERROR([X development libraries not found])
fi
if test $pango_omitted_x_deps = yes ; then if test $pango_omitted_x_deps = yes ; then
AC_PATH_XTRA # Old versions of Xft didn't necessarily include -lX11 in the output
x_libs="`pkg-config --libs xft` -lX11 $X_EXTRA_LIBS"
if test x$no_x = xyes ; then
AC_MSG_ERROR([X development libraries not found])
fi
x_libs="$X_LIBS -lX11 $X_EXTRA_LIBS"
#
# Checks for Xft/XRender
#
if test $have_xft = true ; then
have_xft=false
if pkg-config --exists pangoxft '>=' 1.1.0 ; then
x_libs="`pkg-config --libs xft` -lX11 $FREETYPE_LIBS $X_EXTRA_LIBS"
have_xft=true
else
gtk_save_cppflags="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $x_cflags"
AC_CHECK_LIB(Xrender, XRenderFindFormat,
[AC_CHECK_LIB(Xft, XftFontOpen,
[AC_CHECK_HEADER(X11/Xft/XftFreetype.h,
have_xft=true,:)],
:,-lXrender -lXext $x_libs $FREETYPE_LIBS)]
,:,-lXext $x_libs)
if $have_xft ; then
x_libs="$X_LIBS -lXft -lXrender -lXext -lX11 $FREETYPE_LIBS $X_EXTRA_LIBS"
fi
CPPFLAGS="$gtk_save_cppflags"
fi
if $have_xft ; then
:
else
AC_MSG_ERROR([pangoxft Pango backend found, but Xft not found])
fi
fi
fi fi
## Strip the .la files ## Strip the .la files
...@@ -1097,22 +1051,18 @@ if test "x$gdktarget" = "xx11"; then ...@@ -1097,22 +1051,18 @@ if test "x$gdktarget" = "xx11"; then
if test "x$enable_shm" = "xyes"; then if test "x$enable_shm" = "xyes"; then
# Check for the Xext library (needed for XShm extention) # Check for the Xext library (needed for XShm extention)
AC_CHECK_LIB(Xext, XShmAttach, AC_CHECK_LIB(Xext, XShmAttach,
if test -z "`echo $x_libs | grep "\-lXext" 2> /dev/null`"; then [GTK_ADD_LIB(x_extra_libs,Xext)],
x_extra_libs="-lXext"
fi,
# On AIX, it is in XextSam instead, but we still need -lXext # On AIX, it is in XextSam instead, but we still need -lXext
AC_CHECK_LIB(XextSam, XShmAttach, [AC_CHECK_LIB(XextSam, XShmAttach,
if test -z "`echo $x_libs | grep "\-lXext" 2> /dev/null`"; then [GTK_ADD_LIB(x_extra_libs,Xext)
x_extra_libs="-lXextSam -lXext" GTK_ADD_LIB(x_extra_libs,XextSam)
else ], , -lXext $x_libs_for_checks)],
x_extra_libs="-lXextSam"
fi, , $x_libs_for_checks),
$x_libs_for_checks) $x_libs_for_checks)
fi fi
GDK_PIXBUF_XLIB_EXTRA_CFLAGS="$x_cflags" GDK_PIXBUF_XLIB_EXTRA_CFLAGS="$x_cflags"
# Don't ever pull in the pangoxft libraries for gdk-pixbuf-x11 # Don't ever pull in the pangoxft libraries for gdk-pixbuf-x11
GDK_PIXBUF_XLIB_EXTRA_LIBS="$x_extra_libs $x_libs" GDK_PIXBUF_XLIB_EXTRA_LIBS="$X_LIBS -lX11 $x_extra_libs $X_EXTRA_LIBS"
# Check for Xinerama extension (Solaris impl or Xfree impl) # Check for Xinerama extension (Solaris impl or Xfree impl)
...@@ -1127,11 +1077,9 @@ if test "x$gdktarget" = "xx11"; then ...@@ -1127,11 +1077,9 @@ if test "x$gdktarget" = "xx11"; then
use_solaris_xinerama=yes, use_solaris_xinerama=no) use_solaris_xinerama=yes, use_solaris_xinerama=no)
if test "x$use_solaris_xinerama" = "xyes"; then if test "x$use_solaris_xinerama" = "xyes"; then
AC_CHECK_HEADER(X11/extensions/xinerama.h, AC_CHECK_HEADER(X11/extensions/xinerama.h,
if test -z "`echo $x_extra_libs $x_libs | grep "\-lXext" 2> /dev/null`"; then [GTK_ADD_LIB(x_extra_libs,Xext)
x_extra_libs="-lXext $x_extra_libs"
fi
AC_DEFINE(HAVE_SOLARIS_XINERAMA) AC_DEFINE(HAVE_SOLARIS_XINERAMA)
AC_DEFINE(HAVE_XINERAMA), use_solaris_xinerama=no, -lXext $x_libs_for_checks) AC_DEFINE(HAVE_XINERAMA)], use_solaris_xinerama=no, -lXext $x_libs_for_checks)
fi fi
AC_MSG_CHECKING(for Xinerama support on Solaris) AC_MSG_CHECKING(for Xinerama support on Solaris)
AC_MSG_RESULT($use_solaris_xinerama); AC_MSG_RESULT($use_solaris_xinerama);
...@@ -1141,12 +1089,10 @@ if test "x$gdktarget" = "xx11"; then ...@@ -1141,12 +1089,10 @@ if test "x$gdktarget" = "xx11"; then
use_xfree_xinerama=yes use_xfree_xinerama=yes
AC_CHECK_LIB(Xinerama, XineramaQueryExtension, AC_CHECK_LIB(Xinerama, XineramaQueryExtension,
[AC_CHECK_HEADER(X11/extensions/Xinerama.h, [AC_CHECK_HEADER(X11/extensions/Xinerama.h,
x_extra_libs="-lXinerama $x_extra_libs" [GTK_ADD_LIB(x_extra_libs,Xext)
if test -z "`echo $x_extra_libs $x_libs | grep "\-lXext" 2> /dev/null`"; then GTK_ADD_LIB(x_extra_libs,Xinerama)
x_extra_libs="-lXext $x_extra_libs"
fi
AC_DEFINE(HAVE_XFREE_XINERAMA) AC_DEFINE(HAVE_XFREE_XINERAMA)
AC_DEFINE(HAVE_XINERAMA), AC_DEFINE(HAVE_XINERAMA)],
use_xfree_xinerama=no, use_xfree_xinerama=no,
[#include <X11/Xlib.h>])], [#include <X11/Xlib.h>])],
use_xfree_xinerama=no, -lXext $x_libs_for_checks) use_xfree_xinerama=no, -lXext $x_libs_for_checks)
...@@ -1160,10 +1106,8 @@ if test "x$gdktarget" = "xx11"; then ...@@ -1160,10 +1106,8 @@ if test "x$gdktarget" = "xx11"; then
# Check for shaped window extension # Check for shaped window extension
AC_CHECK_LIB(Xext, XShapeCombineMask, AC_CHECK_LIB(Xext, XShapeCombineMask,
if test -z "`echo $x_extra_libs $x_libs | grep "\-lXext" 2> /dev/null`"; then [GTK_ADD_LIB(x_extra_libs,Xext),
x_extra_libs="-lXext $x_extra_libs" AC_DEFINE(HAVE_SHAPE_EXT)],
fi
AC_DEFINE(HAVE_SHAPE_EXT),
, ,
$x_libs_for_checks) $x_libs_for_checks)
...@@ -1210,7 +1154,7 @@ if test "x$gdktarget" = "xx11"; then ...@@ -1210,7 +1154,7 @@ if test "x$gdktarget" = "xx11"; then
if test "x$with_xinput" = "xxfree" || test "x$with_xinput" = "xyes"; then if test "x$with_xinput" = "xxfree" || test "x$with_xinput" = "xyes"; then
AC_DEFINE(XINPUT_XFREE) AC_DEFINE(XINPUT_XFREE)
x_extra_libs="-lXi $x_extra_libs" GTK_ADD_LIB(x_extra_libs, Xi)
else else
AC_DEFINE(XINPUT_NONE) AC_DEFINE(XINPUT_NONE)
fi fi
...@@ -1222,21 +1166,22 @@ if test "x$gdktarget" = "xx11"; then ...@@ -1222,21 +1166,22 @@ if test "x$gdktarget" = "xx11"; then
AC_CHECK_LIB(Xrandr, XRRUpdateConfiguration, AC_CHECK_LIB(Xrandr, XRRUpdateConfiguration,
[AC_CHECK_HEADER(X11/extensions/Xrandr.h, [AC_CHECK_HEADER(X11/extensions/Xrandr.h,
# RANDR requires RENDER # RANDR requires RENDER
if test -z "`echo $x_extra_libs $x_libs | grep "\-lXrender" 2> /dev/null`"; then [GTK_ADD_LIB(x_extra_libs, Xrender)
x_extra_libs="-lXrender $x_extra_libs" GTK_ADD_LIB(x_extra_libs, Xrandr)
fi AC_DEFINE(HAVE_RANDR, 1, Have the Xrandr extension library)],
x_extra_libs="-lXrandr $x_extra_libs"
AC_DEFINE(HAVE_RANDR, 1, Have the Xrandr extension library),
:, [#include <X11/Xlib.h>])], : , :, [#include <X11/Xlib.h>])], : ,
$X_LIBS -lXrandr -lXrender -lX11 $X_EXTRA_LIBS) $X_LIBS -lXrandr -lXrender -lX11 $X_EXTRA_LIBS)
# Checks for Xcursor library # Checks for Xcursor library
have_xcursor=false have_xcursor=false
PKG_CHECK_MODULES(XCURSOR, xcursor, have_xcursor=true, :) PKG_CHECK_MODULES(XCURSOR, xcursor, have_xcursor=true, :)
if $have_xcursor ; then if $have_xcursor ; then
AC_DEFINE(HAVE_XCURSOR, 1, Have the Xcursor library) AC_DEFINE(HAVE_XCURSOR, 1, Have the Xcursor library)
GDK_EXTRA_LIBS="$XCURSOR_LIBS $GDK_EXTRA_LIBS"; XCURSOR_PACKAGES="xcursor"
else
XCURSOR_PACKAGES=
fi fi
# Xshm checks # Xshm checks
...@@ -1273,14 +1218,13 @@ if test "x$gdktarget" = "xx11"; then ...@@ -1273,14 +1218,13 @@ if test "x$gdktarget" = "xx11"; then
GDK_EXTRA_CFLAGS= GDK_EXTRA_CFLAGS=
if test $pango_omitted_x_deps = yes ; then if test $pango_omitted_x_deps = yes ; then
GDK_EXTRA_LIBS="$x_extra_libs $x_libs $GDK_EXTRA_LIBS" GDK_EXTRA_LIBS="$X_LIBS $x_extra_libs $x_libs $GDK_EXTRA_LIBS"
else else
GDK_EXTRA_LIBS="$x_extra_libs $GDK_EXTRA_LIBS" GDK_EXTRA_LIBS="$X_LIBS $x_extra_libs $GDK_EXTRA_LIBS"
fi fi
AM_CONDITIONAL(USE_X11, true) AM_CONDITIONAL(USE_X11, true)
else else
AM_CONDITIONAL(HAVE_XFT, false)
AM_CONDITIONAL(XINPUT_XFREE, false) AM_CONDITIONAL(XINPUT_XFREE, false)
AM_CONDITIONAL(USE_X11, false) AM_CONDITIONAL(USE_X11, false)
AM_CONDITIONAL(HAVE_X11R6, false) AM_CONDITIONAL(HAVE_X11R6, false)
...@@ -1289,9 +1233,6 @@ fi ...@@ -1289,9 +1233,6 @@ fi
if test "x$gdktarget" = "xwin32"; then if test "x$gdktarget" = "xwin32"; then
# We start off with the libraries from Pango # We start off with the libraries from Pango
## be sure we also have Pango built with win32 support
PANGO_PACKAGES="pangowin32"
if test x$have_wintab = xyes; then if test x$have_wintab = xyes; then
GDK_WIN32_EXTRA_CFLAGS="-I $with_wintab/include" GDK_WIN32_EXTRA_CFLAGS="-I $with_wintab/include"
AC_SUBST(GDK_WIN32_EXTRA_CFLAGS) AC_SUBST(GDK_WIN32_EXTRA_CFLAGS)
...@@ -1303,8 +1244,6 @@ else ...@@ -1303,8 +1244,6 @@ else
AM_CONDITIONAL(USE_WIN32, false) AM_CONDITIONAL(USE_WIN32, false)
fi fi
AC_SUBST(xinput_progs)
GDK_PIXBUF_XLIB_PACKAGES= GDK_PIXBUF_XLIB_PACKAGES=
GDK_PIXBUF_XLIB_DEP_LIBS="`$PKG_CONFIG --libs $GDK_PIXBUF_PACKAGES $GDK_PIXBUF_XLIB_PACKAGES` $GDK_PIXBUF_XLIB_EXTRA_LIBS $GDK_PIXBUF_EXTRA_LIBS" GDK_PIXBUF_XLIB_DEP_LIBS="`$PKG_CONFIG --libs $GDK_PIXBUF_PACKAGES $GDK_PIXBUF_XLIB_PACKAGES` $GDK_PIXBUF_XLIB_EXTRA_LIBS $GDK_PIXBUF_EXTRA_LIBS"
GDK_PIXBUF_XLIB_DEP_CFLAGS="`$PKG_CONFIG --cflags gthread-2.0 $GDK_PIXBUF_PACKAGES $GDK_PIXBUF_XLIB_PACKAGES` $GDK_PIXBUF_EXTRA_CFLAGS $GDK_PIXBUF_XLIB_EXTRA_CFLAGS" GDK_PIXBUF_XLIB_DEP_CFLAGS="`$PKG_CONFIG --cflags gthread-2.0 $GDK_PIXBUF_PACKAGES $GDK_PIXBUF_XLIB_PACKAGES` $GDK_PIXBUF_EXTRA_CFLAGS $GDK_PIXBUF_XLIB_EXTRA_CFLAGS"
...@@ -1357,11 +1296,13 @@ fi ...@@ -1357,11 +1296,13 @@ fi
# #
if test "x$gdktarget" = "xx11"; then if test "x$gdktarget" = "xx11"; then
if $have_xft = true ; then PANGO_PACKAGES=pangoxft
PANGO_PACKAGES="pangoxft pangox"
else # We no longer use pangox, but if we find it, we link to it
PANGO_PACKAGES=pangox # for binary compatibility.
fi if $PKG_CONFIG --exists pangox ; then
PANGO_PACKAGES="$PANGO_PACKAGES pangox"
fi
elif test "x$gdktarget" = "xwin32"; then elif test "x$gdktarget" = "xwin32"; then
PANGO_PACKAGES=pangowin32 PANGO_PACKAGES=pangowin32
elif test "x$gdktarget" = "xlinux-fb"; then elif test "x$gdktarget" = "xlinux-fb"; then
...@@ -1403,7 +1344,7 @@ fi ...@@ -1403,7 +1344,7 @@ fi
CFLAGS="$saved_cflags" CFLAGS="$saved_cflags"
LDFLAGS="$saved_ldflags" LDFLAGS="$saved_ldflags"
GDK_PACKAGES=$PANGO_PACKAGES GDK_PACKAGES="$XCURSOR_PACKAGES $PANGO_PACKAGES"
GDK_DEP_LIBS="$GDK_EXTRA_LIBS `$PKG_CONFIG --libs $GDK_PIXBUF_PACKAGES $GDK_PACKAGES` $GDK_PIXBUF_EXTRA_LIBS" GDK_DEP_LIBS="$GDK_EXTRA_LIBS `$PKG_CONFIG --libs $GDK_PIXBUF_PACKAGES $GDK_PACKAGES` $GDK_PIXBUF_EXTRA_LIBS"
GDK_DEP_CFLAGS="`$PKG_CONFIG --cflags gthread-2.0 $GDK_PIXBUF_PACKAGES $GDK_PACKAGES` $GDK_PIXBUF_EXTRA_CFLAGS $GDK_EXTRA_CFLAGS" GDK_DEP_CFLAGS="`$PKG_CONFIG --cflags gthread-2.0 $GDK_PIXBUF_PACKAGES $GDK_PACKAGES` $GDK_PIXBUF_EXTRA_CFLAGS $GDK_EXTRA_CFLAGS"
......
...@@ -153,7 +153,6 @@ gdk_display_open (const gchar *display_name) ...@@ -153,7 +153,6 @@ gdk_display_open (const gchar *display_name)
display = g_object_new (GDK_TYPE_DISPLAY_X11, NULL); display = g_object_new (GDK_TYPE_DISPLAY_X11, NULL);
display_x11 = GDK_DISPLAY_X11 (display); display_x11 = GDK_DISPLAY_X11 (display);
display_x11->use_xft = -1;
display_x11->use_xshm = TRUE; display_x11->use_xshm = TRUE;
display_x11->xdisplay = xdisplay; display_x11->xdisplay = xdisplay;
......
...@@ -135,8 +135,6 @@ struct _GdkDisplayX11 ...@@ -135,8 +135,6 @@ struct _GdkDisplayX11
gchar *input_gxid_host; gchar *input_gxid_host;
gint input_gxid_port; gint input_gxid_port;
gint use_xft;
/* Startup notification */ /* Startup notification */
gchar *startup_notification_id; gchar *startup_notification_id;
......
...@@ -27,12 +27,9 @@ ...@@ -27,12 +27,9 @@
#include "gdkx.h" #include "gdkx.h"
#include "gdkregion-generic.h" #include "gdkregion-generic.h"
#include <pango/pangox.h>
#include <config.h> #include <config.h>
#if HAVE_XFT
#include <pango/pangoxft.h> #include <pango/pangoxft.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> /* for memcpy() */ #include <string.h> /* for memcpy() */
...@@ -122,7 +119,6 @@ static void gdk_x11_draw_image (GdkDrawable *drawable, ...@@ -122,7 +119,6 @@ static void gdk_x11_draw_image (GdkDrawable *drawable,