[gnome-terminal] build: Check for the search provider interface definition file



commit fc2e35ed344bcc730e67e9410dace5017430f3b9
Author: Christian Persch <chpe gnome org>
Date:   Sat Feb 15 15:42:01 2014 +0100

    build: Check for the search provider interface definition file
    
    Abort configure if the search provider is enabled but the interface
    definition file isn't present, instead of succeeding configure but
    aborting make later on.

 configure.ac |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index cc90d83..02ff37d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -172,6 +172,9 @@ AC_ARG_ENABLE([search-provider],
 AC_MSG_RESULT([$enable_search_provider])
 
 if test "$enable_search_provider" = "yes"; then
+  AC_CHECK_FILE([$(eval echo $(eval echo $(eval echo 
${dbusinterfacedir})))/org.gnome.ShellSearchProvider2.xml],[],
+    [AC_MSG_ERROR([gnome-shell search provider requested but interface definition file not found])])
+
   AC_DEFINE([ENABLE_SEARCH_PROVIDER],[1],[Define to enable gnome-shell search provider])
 fi
 


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