Cyril Brulebois <kibi@debian.org> (23/10/2010): > I'll try and see whether I can come up with a fix. I think the attached patch does what we want: make having ncurses mandatory except if one passes --without-dselect. Mraw, KiBi.
From 36a6506836e11604d723f47518e8a68dcc8e12fc Mon Sep 17 00:00:00 2001
From: Cyril Brulebois <kibi@debian.org>
Date: Sat, 23 Oct 2010 10:00:46 +0200
Subject: [PATCH] Break if ncurses is requested but unavailable.
If building dselect is requested (the default), ncurses is requested
through DPKG_LIB_CURSES, but if it isn't found, only AC_MSG_WARN is
used, leading to a successful configure and a failure to build
dselect/*. Use AC_MSG_ERROR instead to make configure bail out.
Reported-By: Michael Schmidt <michael.schmidt.dangel@gmail.com>
---
m4/dpkg-libs.m4 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/m4/dpkg-libs.m4 b/m4/dpkg-libs.m4
index 50ff5ff..f82eb87 100644
--- a/m4/dpkg-libs.m4
+++ b/m4/dpkg-libs.m4
@@ -96,7 +96,7 @@ AC_CHECK_LIB([ncurses], [initscr],
[CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lncurses"],
[AC_CHECK_LIB([curses], [initscr],
[CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lcurses"],
- [AC_MSG_WARN([no curses library found])])])])
+ [AC_MSG_ERROR([no curses library found])])])])
])# DPKG_CHECK_LIB_CURSES_NARROW
# DPKG_LIB_CURSES
--
1.7.2.3
Attachment:
signature.asc
Description: Digital signature