[2842] in BarnOwl Developers
Ticket #158 ./configure --without-zephyr && make fails with
daemon@ATHENA.MIT.EDU (Daniel Bergey)
Wed Dec 29 20:21:15 2010
Date: Wed, 29 Dec 2010 20:21:10 -0500
From: Daniel Bergey <bergey@MIT.EDU>
To: barnowl-dev@mit.edu
Reply-To: bergey@alum.mit.edu
Specifically, the test for com_err only happens if with_zephyr is set.
config.h ends up indicating that com_err isn't available.
After moving those two lines out of the conditional, barnowl compiles and runs on my
machine (Ubuntu Maverick). Patch below.
bergey
---
configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 6a8e89f..47a6cd3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,6 +24,8 @@ AS_IF([test "x$with_stack_protector" != xno],
AC_CHECK_LIB(ncursesw, initscr,, AC_MSG_ERROR(No libncursesw found.))
AC_CHECK_LIB(panelw, update_panels,, AC_MSG_ERROR(No libpanelw found.))
+AC_CHECK_LIB([com_err], [com_err])
+AC_CHECK_HEADERS([com_err.h])
AC_SEARCH_LIBS([gethostbyname], [nsl])
AC_SEARCH_LIBS([socket], [socket])
AC_SEARCH_LIBS([res_search], [resolv])
@@ -61,8 +63,6 @@ AS_IF([test "x$with_zephyr" != xno],
AC_CHECK_LIB([zephyr], [ZInitLocationInfo],
AC_DEFINE([HAVE_LIBZEPHYR_ZINITLOCATIONINFO], [1],
[Have ZInitLocationInfo]),)
- AC_CHECK_LIB([com_err], [com_err])
- AC_CHECK_HEADERS([com_err.h])
],
[if test "x$with_zephyr" != xcheck; then
AC_MSG_FAILURE(
--
1.7.1