]> git.saurik.com Git - wxWidgets.git/blobdiff - configure.in
fix for GTK+ version check caching (now it actually works)
[wxWidgets.git] / configure.in
index c054d21ba7dfae88b808cd66a1ec757c5f4f1b06..a35557aafc5ea5453137be2cb1dca90367f6786a 100644 (file)
@@ -1631,6 +1631,11 @@ if test "$wxUSE_GUI" = "yes"; then
                 if test -z "$wx_cv_lib_gtk"; then
                     dnl looks better in AC_MSG_RESULT
                     wx_cv_lib_gtk=none
+                else
+                    dnl we need to cache GTK_CFLAGS and GTK_LIBS for the
+                    dnl subsequent runs
+                    wx_cv_cflags_gtk=$GTK_CFLAGS
+                    wx_cv_libs_gtk=$GTK_LIBS
                 fi
             ]
         )
@@ -1657,8 +1662,8 @@ equivalent variable and GTK+ is version 1.2.3 or above.
                     ;;
         esac
 
-        TOOLKIT_INCLUDE="$GTK_CFLAGS"
-        GUI_TK_LIBRARY="$GTK_LIBS"
+        TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
+        GUI_TK_LIBRARY="$wx_cv_lib_gtk"
 
         AFMINSTALL=afminstall
         TOOLKIT=GTK