Test whether GTK+ is 2.18 or newer in configure.

We need to define __WXGTK218__ symbol in configure instead of simply checking
if we are compiled with 2.18 in wx/infobar.h because GTK_CHECK_VERSION() can't
be used when compiling user code which can't even include gtk/gtkversion.h
defining it because it doesn't necessarily use `pkg-config --cflags gtk+-2.0`
at all in its CFLAGS.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-10-14 22:49:38 +00:00
parent b43914a8be
commit d85aece199
5 changed files with 138 additions and 39 deletions

View File

@@ -68,6 +68,9 @@
/* Define this if your version of GTK+ is greater than 2.10 */
#undef __WXGTK210__
/* Define this if your version of GTK+ is greater than 2.18 */
#undef __WXGTK218__
/* Define this if you want to use GPE features */
#undef __WXGPE__