From: Matthew Farrellee <matt@redhat.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: hail-devel@vger.kernel.org
Subject: [PATCH] configure.ac reports errors instead of exiting quietly
Date: Thu, 30 Jul 2009 09:30:59 -0500 [thread overview]
Message-ID: <4A71AEA3.80806@redhat.com> (raw)
In-Reply-To: <4A70F90F.90601@garzik.org>
For each place that configure could "exit 1" it now AC_MSG_ERROR's
with a useful message.
Signed-off-by: Matthew Farrellee <matt@redhat.com>
---
configure.ac | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index d3cf560..d2efdd2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -80,8 +80,10 @@ AC_CHECK_LIB(db-4.7, db_create, DB4_LIBS=-ldb-4.7,
AC_CHECK_LIB(db-4.6, db_create, DB4_LIBS=-ldb-4.6,
AC_CHECK_LIB(db-4.5, db_create, DB4_LIBS=-ldb-4.5,
AC_CHECK_LIB(db-4.4, db_create, DB4_LIBS=-ldb-4.4,
- AC_CHECK_LIB(db-4.3, db_create, DB4_LIBS=-ldb-4.3, exit 1)))))
-AC_CHECK_LIB(event, event_base_new, EVENT_LIBS=-levent, exit 1)
+ AC_CHECK_LIB(db-4.3, db_create, DB4_LIBS=-ldb-4.3,
+ [AC_MSG_ERROR([Missing required libdb 4.x])])))))
+AC_CHECK_LIB(event, event_base_new, EVENT_LIBS=-levent,
+ [AC_MSG_ERROR([Missing required libevent])])
AC_CHECK_LIB(argp, argp_parse, ARGP_LIBS=-largp)
PKG_CHECK_MODULES(CHUNKDC, libchunkdc)
PKG_CHECK_MODULES(CLDC, libcldc)
@@ -99,8 +101,10 @@ dnl autoconf output generation
dnl --------------------------
AM_PATH_GLIB_2_0(2.0.0)
-AM_PATH_XML2(2.6.0, , exit 1)
-LIBCURL_CHECK_CONFIG(, 7.10.1, , exit 1)
+AM_PATH_XML2(2.6.0, ,
+ [AC_MSG_ERROR([Missing required XML2 >= 2.6.0])]])
+LIBCURL_CHECK_CONFIG(, 7.10.1, ,
+ [AC_MSG_ERROR([Missing required libcurl >= 7.10.1])])
AC_SUBST(PCRE_LIBS)
AC_SUBST(CRYPTO_LIBS)
--
1.6.0.6
next prev parent reply other threads:[~2009-07-30 14:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-29 18:58 [PATCH] chunkd: Make AC_CHECK_LIB failure for libevent explicit Matthew Farrellee
2009-07-29 19:05 ` Jeff Garzik
2009-07-30 1:36 ` Jeff Garzik
2009-07-30 14:30 ` Matthew Farrellee [this message]
2009-07-30 20:42 ` [PATCH] configure.ac reports errors instead of exiting quietly Jeff Garzik
2009-07-30 21:32 ` Matthew Farrellee
2009-08-01 4:37 ` Jeff Garzik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A71AEA3.80806@redhat.com \
--to=matt@redhat.com \
--cc=hail-devel@vger.kernel.org \
--cc=jeff@garzik.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.