]> git.0d.be Git - empathy.git/commitdiff
configure: simplify error path in --enable-call
authorWill Thompson <will.thompson@collabora.co.uk>
Thu, 25 Aug 2011 14:20:58 +0000 (15:20 +0100)
committerWill Thompson <will.thompson@collabora.co.uk>
Thu, 25 Aug 2011 14:22:08 +0000 (15:22 +0100)
PKG_CHECK_MODULES raises a fatal error if you don't specify an
ACTION-IF-NOT-FOUND, telling the developer which modules are missing. So
we can simplify the configure script *and* give a more helpful error
message.

configure.ac

index cb60cf5f37f1c8e02f3a9fcfcd7e21697818d388..b7e9b386c78c77811297cecaf1e8bd3a95d052ad 100644 (file)
@@ -218,7 +218,7 @@ if test "x$enable_call" != "xno" ; then
       clutter-1.0
       clutter-gtk-1.0
       clutter-gst-1.0
-   ], have_call="yes", have_call="no" )
+   ], have_call="yes" )
 
    if test "x$have_call" = "xyes"; then
       AC_DEFINE(HAVE_CALL, 1, [Define if you have Call channel support])
@@ -227,9 +227,6 @@ else
   have_call=no
 fi
 
-if test "x$enable_call" = "xyes" -a "x$have_call" != "xyes"; then
-   AC_MSG_ERROR([Could not find Call handler dependencies.])
-fi
 AM_CONDITIONAL(HAVE_CALL, test "x$have_call" = "xyes")