]> sjero.net Git - linphone/commitdiff
Disable wizard if gtk < 2.22.0
authorYann Diorcet <yann.diorcet@belledonne-communications.com>
Thu, 6 Dec 2012 09:39:15 +0000 (10:39 +0100)
committerYann Diorcet <yann.diorcet@belledonne-communications.com>
Thu, 6 Dec 2012 09:39:15 +0000 (10:39 +0100)
configure.ac

index 84081f46c76fa15c80028fd6b7e62e4b6fb80e38..19480a88e9e3e21434ad9d06255b5db90273d452 100644 (file)
@@ -457,12 +457,20 @@ if test "$build_wizard" != "false" ; then
                        build_wizard=false
                fi
        ])
+       PKG_CHECK_MODULES(LIBGTK, [gtk+-2.0 >= 2.22.0],[build_wizard=true],
+       [
+               if test "$build_wizard" = "true" ; then
+                       AC_MSG_ERROR([gtk+-2.0 < 2.22.0, assistant cannot be compiled.])
+               else
+                       build_wizard=false
+               fi
+       ])
 fi
 AC_SUBST(LIBSOUP_CFLAGS)
 AC_SUBST(LIBSOUP_LIBS)
 AM_CONDITIONAL(BUILD_WIZARD, test x$build_wizard = xtrue)
 if test "$build_wizard" = "true" ; then
-   AC_DEFINE( BUILD_WIZARD, 1, [Define if wizard enabled] ) 
+   AC_DEFINE(BUILD_WIZARD, 1, [Define if wizard enabled] ) 
 fi
 
 AC_CHECK_HEADERS(libudev.h)