]> spindle.queued.net Git - midori/commitdiff
Show libSoup version from pkg-config in about:version
authorChristian Dywan <christian@twotoasts.de>
Sat, 30 Apr 2011 10:00:12 +0000 (12:00 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 30 Apr 2011 10:00:12 +0000 (12:00 +0200)
midori/midori-view.c
wscript

index 3ccfce096a046810864af0ce8446eef7b3bd3163..31d6612c596bb0039f7981c2650880bd669e6b49 100644 (file)
@@ -4221,13 +4221,6 @@ midori_view_set_uri (MidoriView*  view,
                     #define WEBKIT_USER_AGENT_MAJOR_VERSION 532
                     #define WEBKIT_USER_AGENT_MINOR_VERSION 1
                 #endif
-                #if defined (HAVE_LIBSOUP_2_29_3)
-                    #define LIBSOUP_VERSION "2.29.3"
-                #elif defined (HAVE_LIBSOUP_2_27_90)
-                    #define LIBSOUP_VERSION "2.27.90"
-                #else
-                    #define LIBSOUP_VERSION "2.25.2"
-                #endif
                 #ifdef G_ENABLE_DEBUG
                     #define DEBUGGING " (Debug)"
                 #else
diff --git a/wscript b/wscript
index beee2432bc00acc21719cbbf8e26889505392fc8..80cc19090adc60b756616a05fb3d921b76dc632f 100644 (file)
--- a/wscript
+++ b/wscript
@@ -209,6 +209,7 @@ def configure (conf):
     check_pkg ('libsoup-2.4', '2.27.90', False, var='LIBSOUP_2_27_90')
     check_pkg ('libsoup-2.4', '2.29.3', False, var='LIBSOUP_2_29_3')
     check_pkg ('libsoup-2.4', '2.29.91', False, var='LIBSOUP_2_29_91')
+    conf.define ('LIBSOUP_VERSION', conf.check_cfg (modversion='libsoup-2.4'))
     check_pkg ('libxml-2.0', '2.6')
     check_pkg ('sqlite3', '3.0', True, var='SQLITE')