printers: Check that cups-config exists
Before using it.
This commit is contained in:
parent
7483b80b14
commit
c2987d8cde
1 changed files with 5 additions and 2 deletions
|
@ -186,8 +186,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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue