From 4445728f0f5c5f0029b5b95ee280ce5cfc90fd5b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 14 Jun 2007 13:32:32 +0200 Subject: [PATCH] build-sys: fix HAVE_NCURSES The HAVE_NCURSES in config.h is required by the misc-utils/cal.c. Signed-off-by: Karel Zak --- configure.ac | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index e678773f..5655bf0b 100644 --- a/configure.ac +++ b/configure.ac @@ -106,12 +106,16 @@ fi have_ncurses=no AC_CHECK_HEADERS([ncurses.h ncurses/ncurses.h], [have_ncurses=yes]) case $have_ncurses in -yes) AC_MSG_NOTICE([you have ncurses]);; -no) AC_MSG_NOTICE([you do not have ncurses]);; +yes) + AC_MSG_NOTICE([you have ncurses]) + AC_DEFINE(HAVE_NCURSES, 1, [Do we have -lncurses?]) + ;; +no) + AC_MSG_NOTICE([you do not have ncurses]) + ;; esac AM_CONDITIONAL(HAVE_NCURSES, test x$have_ncurses = xyes) - AC_ARG_WITH([slang], AS_HELP_STRING([--with-slang], [compile cfdisk with slang]), [], with_slang=no -- 2.39.5