]> git.0d.be Git - empathy.git/commitdiff
Fail to build if --enable-gtk3 is passed but only gtk2 is available
authorXavier Claessens <xclaesse@gmail.com>
Thu, 8 Jul 2010 13:24:10 +0000 (15:24 +0200)
committerXavier Claessens <xclaesse@gmail.com>
Thu, 8 Jul 2010 13:24:10 +0000 (15:24 +0200)
configure.ac

index 0de76f4b0a5191133997b38367bf38aa8e82db43..e004410243bc522b71740da40d19a0cf484832ff 100644 (file)
@@ -177,6 +177,10 @@ else
   have_gtk3="no"
 fi
 
   have_gtk3="no"
 fi
 
+if test "x$enable_gtk3" = "xyes" -a "x$have_gtk3" != "xyes"; then
+   AC_MSG_ERROR([Couldn't find gtk3 dependencies.])
+fi
+
 if test "x$have_gtk3" == "xyes"; then
   # GTK3 specific deps
   PKG_CHECK_MODULES(CANBERRA, libcanberra-gtk3 >= $LIBCANBERRA_GTK_REQUIRED)
 if test "x$have_gtk3" == "xyes"; then
   # GTK3 specific deps
   PKG_CHECK_MODULES(CANBERRA, libcanberra-gtk3 >= $LIBCANBERRA_GTK_REQUIRED)