Declare gtk_icon_size_lookup if it is missing from the GTK+ headers (Bug 1177079)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell
2005-06-10 12:04:15 +00:00
parent fb4c95cbdb
commit abc736fd0e
8 changed files with 210 additions and 41 deletions

View File

@@ -2724,6 +2724,25 @@ libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
LIBS="$LIBS $wx_cv_libs_gtk"
AC_CHECK_FUNCS([pango_font_family_is_monospace])
dnl gtk_icon_size_lookup is not available in the GTK+ headers
dnl that have shipped with some versions of Sun's JDS. Not using
dnl AC_CHECK_FUNCS here since it only checks the function exists
dnl in the lib (not the header).
AC_MSG_CHECKING([if gtk_icon_size_lookup is missing])
AC_TRY_COMPILE([
#include <gtk/gtk.h>
],
[
void *f = gtk_icon_size_lookup;
],
[
AC_MSG_RESULT([no])
],
[
AC_DEFINE(NEED_GTK_ICON_SIZE_LOOKUP)
AC_MSG_RESULT([yes])
])
dnl test if we have at least GTK+ 2.4:
AC_MSG_CHECKING([if GTK+ is version >= 2.4])