[empathy] configure: simplify error path in --enable-call



commit a7c8e72c9c4daa5a4830bad4ab6baa500106b3b4
Author: Will Thompson <will thompson collabora co uk>
Date:   Thu Aug 25 15:20:58 2011 +0100

    configure: simplify error path in --enable-call
    
    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 |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index cb60cf5..b7e9b38 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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")
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]