From e5a95a069546915b1cf9b53967fe6ff54918d029 Mon Sep 17 00:00:00 2001 From: Ladislav Michl Date: Fri, 7 Dec 2007 10:07:37 +0000 Subject: Use linux-2.6.23 kconfig. git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7642 33e552b5-05e3-0310-8538-816dae2090ed --- configure.ac | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 4d57881aa..24389dda8 100644 --- a/configure.ac +++ b/configure.ac @@ -32,11 +32,30 @@ dnl Check header files, mostly for lxdialog & kconfig dnl AC_HEADER_STDC -AC_CHECK_HEADER( - [ncurses.h], - [], - AC_MSG_ERROR([Cannot find ncurses.h. Please install the ncurses development packet.]) -) + +AC_CHECK_LIB([curses], [mvaddch], [CURSES_LIB='curses']) +AC_CHECK_LIB([ncurses], [mvaddch], [CURSES_LIB='ncurses']) +AC_CHECK_LIB([pdcurses], [mvaddch], [CURSES_LIB='pdcurses']) +if test "$CURSES_LIB" = "" +then + AC_MSG_ERROR([No curses library found.]) +fi +if test "$CURSES_LIB" = "ncurses" +then + AC_CHECK_HEADER( + [ncurses.h], + [CURSES_LOC=''], + AC_MSG_ERROR([Cannot find ncurses.h.]) + ) +else + AC_CHECK_HEADER( + [curses.h], + [CURSES_LOC=''], + AC_MSG_ERROR([Cannot find curses.h.]) + ) +fi +AC_SUBST(CURSES_LOC) +AC_SUBST(CURSES_LIB) AC_SYS_INTERPRETER if test "$interpval" != yes ; then -- cgit v1.2.3