[gnome-color-manager] trivial: actually abort configure if TIFF was not found



commit b1b88e612a1b6c3f9e62863ab2b3fba7743d93d3
Author: Richard Hughes <richard hughsie com>
Date:   Fri Feb 19 18:32:58 2010 +0000

    trivial: actually abort configure if TIFF was not found

 configure.ac |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 56281c9..5a9be0f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -155,7 +155,10 @@ PKG_CHECK_MODULES(X11, x11)
 AC_SUBST(X11_CFLAGS)
 AC_SUBST(X11_LIBS)
 
-AC_CHECK_LIB(tiff, TIFFReadRGBAImageOriented)
+AC_CHECK_LIB(tiff, TIFFReadRGBAImageOriented, HAVE_TIFF="yes")
+if test "x$HAVE_TIFF" != "xyes"; then
+	AC_MSG_ERROR([libtiff-devel is required for gnome-color-manager])
+fi
 AC_SUBST(TIFF_CFLAGS)
 AC_SUBST(TIFF_LIBS)
 
@@ -175,7 +178,7 @@ AC_CHECK_HEADERS(cups/cups.h,
 		  ],,[$ac_cups_libs])])
 CPPFLAGS="$ac_save_CPPFLAGS"
 if test "x$HAVE_CUPS" != "xyes"; then
-	AC_MSG_ERROR([CUPS is required for gnome-color-manager])
+	AC_MSG_ERROR([cups-devel is required for gnome-color-manager])
 fi
 
 AC_PATH_PROG(GCONFTOOL, gconftool-2)



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