[gnome-settings-daemon] printers: Check whether cups-config exists



commit 77acd7250740bd84f4b80c022271eb8dc270ab47
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Aug 17 17:47:21 2012 +0100

    printers: Check whether cups-config exists
    
    Before using it.

 configure.ac |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 3dd701b..10b0bfe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -370,8 +370,11 @@ AC_ARG_ENABLE(cups,
 if test x"$enable_cups" != x"no" ; then
    AC_PROG_SED
 
-   AC_PATH_PROG(CUPS_CONFIG, cups-config,
-                AC_MSG_ERROR([cups-config not found but CUPS support requested]))
+   AC_PATH_PROG(CUPS_CONFIG, cups-config)
+
+   if test x$CUPS_CONFIG = x; then
+     AC_MSG_ERROR([cups-config not found but CUPS support requested])
+   fi
 
   CUPS_API_VERSION=`$CUPS_CONFIG --api-version`
   CUPS_API_MAJOR=`echo $ECHO_N $CUPS_API_VERSION | cut -d . -f 1`



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