From 71adb516deee94274669f968636194bf261b1207 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Mon, 19 Oct 2009 11:12:40 +0100 Subject: maint: issue warnings for more missing optional libraries * README-hacking: Suggest to use ./configure --quiet so that any warnings are easily noticed. * m4/gmp.m4 (cu_GMP): Warn if libgmp is not available. * m4/jm-macros.m4 (coreutils_MACROS): Normalize the libcap warning. * m4/xattr.m4 (gl_FUNC_XATTR): Warn if libattr is not available. --- README-hacking | 2 +- m4/gmp.m4 | 4 +++- m4/jm-macros.m4 | 3 ++- m4/xattr.m4 | 2 ++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README-hacking b/README-hacking index daaa4b144..c5d31284e 100644 --- a/README-hacking +++ b/README-hacking @@ -35,7 +35,7 @@ which are extracted from other source packages: And there you are! Just - $ ./configure #[--enable-gcc-warnings] + $ ./configure --quiet #[--enable-gcc-warnings] $ make $ make check diff --git a/m4/gmp.m4 b/m4/gmp.m4 index 8e7112052..170c2a14f 100644 --- a/m4/gmp.m4 +++ b/m4/gmp.m4 @@ -30,7 +30,9 @@ AC_DEFUN([cu_GMP], LIB_GMP=$ac_cv_search___gmpz_init AC_DEFINE([HAVE_GMP], [1], [Define if you have GNU libgmp (or replacement)]) - }]) + }], + [AC_MSG_WARN([libgmp development library was not found or not usable.]) + AC_MSG_WARN([AC_PACKAGE_NAME will be built without GMP support.])]) LIBS=$cu_saved_libs fi ]) diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4 index f42f67c21..5210499a6 100644 --- a/m4/jm-macros.m4 +++ b/m4/jm-macros.m4 @@ -116,7 +116,8 @@ AC_DEFUN([coreutils_MACROS], if test "X$enable_libcap" = "Xyes"; then AC_MSG_ERROR([libcap library was not found or not usable]) else - AC_MSG_WARN([libcap library was not found or not usable, support for libcap will not be built]) + AC_MSG_WARN([libcap library was not found or not usable.]) + AC_MSG_WARN([AC_PACKAGE_NAME will be built without capability support.]) fi fi else diff --git a/m4/xattr.m4 b/m4/xattr.m4 index d340417c9..bc076b082 100644 --- a/m4/xattr.m4 +++ b/m4/xattr.m4 @@ -22,6 +22,8 @@ AC_DEFUN([gl_FUNC_XATTR], use_xattr=1 else use_xattr=0 + AC_MSG_WARN([libattr development library was not found or not usable.]) + AC_MSG_WARN([AC_PACKAGE_NAME will be built without xattr support.]) fi AC_DEFINE_UNQUOTED([USE_XATTR], [$use_xattr], [Define if you want extended attribute support.]) -- cgit v1.2.3-54-g00ecf