diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-12-14 05:55:12 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-12-14 05:55:12 +0100 |
commit | 2add609936591c1eeb821a728e1aa951e1de20f5 (patch) | |
tree | 7d35321d2b3dbe06ee60c79e853b83ad8810ec45 /configure.ac | |
parent | 02cc3d8088c307a26f9b52e294fb932d1e40ee4d (diff) |
Imported Upstream version 3.19.2upstream/3.19.2
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 40 |
1 files changed, 33 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index 80dd44a..b299882 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(simple-scan, 3.19.1) +AC_INIT(simple-scan, 3.19.2) AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz foreign]) AM_SILENT_RULES([yes]) AM_MAINTAINER_MODE @@ -31,14 +31,40 @@ PKG_CHECK_MODULES(SIMPLE_SCAN, [ gusb ]) -PKG_CHECK_MODULES(COLORD, [ - colord -], have_colord=yes, have_colord=no) +AC_ARG_ENABLE([colord], + AS_HELP_STRING([--enable-colord], + [Enable colord support[[default=auto]]]), + [enable_colord=$enableval], + [enable_colord=auto]) +have_colord=no +if test x"$enable_colord" != "xno"; then + PKG_CHECK_MODULES(COLORD, [ + colord + ], + [have_colord=yes], + [if test x"$enable_colord" = xauto; then + AC_MSG_FAILURE([--enable-colord was given, but could not be found]) + fi + ]) +fi AM_CONDITIONAL(HAVE_COLORD, test $have_colord = yes) -PKG_CHECK_MODULES(PACKAGEKIT, [ - packagekit-glib2 -], have_packagekit=yes, have_packagekit=no) +AC_ARG_ENABLE([packagekit], + AS_HELP_STRING([--enable-packagekit], + [Enable packagekit support[[default=auto]]]), + [enable_packagekit=$enableval], + [enable_packagekit=auto]) +have_packagekit=no +if test x"$enable_packagekit" != "xno"; then + PKG_CHECK_MODULES(PACKAGEKIT, [ + packagekit-glib2 + ], + [have_packagekit=yes], + [if test x"$enable_packagekit" = xauto; then + AC_MSG_FAILURE([--enable-packagekit was given, but could not be found]) + fi + ]) +fi AM_CONDITIONAL(HAVE_PACKAGEKIT, test $have_packagekit = yes) AC_CHECK_HEADERS([sane/sane.h],[],[AC_MSG_ERROR([SANE not found])]) |