[PATCH] build-sys: cal requires both ncurses and tinfo

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

 



From: Joel Holdsworth <joel@xxxxxxxxxxxxxxxxxxx>

This fixes a bug in the build system when building without ncurses
and tinfo. When cal is linked, it depends on both these libraries
and will fail to link if either of them is not available.

This patch resolves the issue by explicitly declaring these
dependencies in the confgure.ac.
---
 configure.ac | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 6bc9efd..76ba349 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1232,7 +1232,9 @@ AS_IF([test "x$build_mkswap" = xyes -a "x$build_libuuid" != xyes], [
   AC_MSG_WARN([uuid library is not found; mkswap(8) will not generate UUIDs])
 ])
 
-UL_BUILD_INIT([cal], [yes])
+UL_BUILD_INIT([cal], [check])
+UL_REQUIRES_HAVE([cal], [ncurses], [ncurses library])
+UL_REQUIRES_HAVE([cal], [tinfo], [tinfo library])
 AM_CONDITIONAL([BUILD_CAL], [test "x$build_cal" = xyes])
 
 UL_BUILD_INIT([logger], [yes])
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux