]> git.saurik.com Git - wxWidgets.git/commitdiff
compile GTK+ test program using C compiler, not C++ one, otherwise it always fails...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 Apr 2006 21:03:57 +0000 (21:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 Apr 2006 21:03:57 +0000 (21:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure.in

index 00ae05edae81b762d53e10658d6777bd56ef233a..31adabaa1020c298f892a3ebea77084628ea391f 100644 (file)
@@ -2820,6 +2820,9 @@ if test "$wxUSE_GUI" = "yes"; then
     fi
 
     if test "$wxUSE_GTK" = 1; then
+        dnl GTK+ test program must be compiled with C compiler
+        AC_LANG_PUSH(C)
+
         AC_MSG_CHECKING([for GTK+ version])
 
         gtk_version_cached=1
@@ -2916,6 +2919,8 @@ libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
                     ;;
         esac
 
+        AC_LANG_POP
+
         if test "$WXGTK20" = 1; then
             save_CFLAGS="$CFLAGS"
             save_LIBS="$LIBS"