All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Make AC_CHECK_LIB failure for libevent explicit
@ 2009-07-29 18:43 Matthew Farrellee
  0 siblings, 0 replies; only message in thread
From: Matthew Farrellee @ 2009-07-29 18:43 UTC (permalink / raw)
  To: hail-devel

When libevent headers were missing, configure would complete with an
exit code of 1, but no clear message as to what failed. This patch
makes things more clear as to why configure is exiting. It could be
extended to include information about needing libevent headers or
development libraries.

Signed-off-by: Matthew Farrellee <matt@redhat.com>
---
 configure.ac |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index acea808..eb6a968 100644
--- a/configure.ac
+++ b/configure.ac
@@ -74,7 +74,8 @@ dnl Checks for required libraries
 dnl -----------------------------
 AC_CHECK_LIB(crypto, MD5_Init, CRYPTO_LIBS=-lcrypto)
 AC_CHECK_LIB(ssl, SSL_new, SSL_LIBS=-lssl)
-AC_CHECK_LIB(event, event_base_new, EVENT_LIBS=-levent, exit 1)
+AC_CHECK_LIB(event, event_base_new, EVENT_LIBS=-levent_core,
+   [AC_MSG_ERROR([Missing required libevent])])
 AC_CHECK_LIB(argp, argp_parse, ARGP_LIBS=-largp)
 AC_CHECK_LIB(socket, bind, SOCKET_LIBS=-lsocket)
 PKG_CHECK_MODULES(CLDC, libcldc)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-29 18:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-29 18:43 [PATCH] Make AC_CHECK_LIB failure for libevent explicit Matthew Farrellee

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.