[Top][All Lists]

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

[PATCH] Give an error if curses isn't found

From: Jeroen Dekkers
Subject: [PATCH] Give an error if curses isn't found
Date: Sun, 14 May 2006 16:34:02 +0200
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.0.50 (x86_64-pc-linux-gnu) MULE/5.0 (SAKAKI)

At Sun, 7 May 2006 16:06:10 +0200,
Étienne Bersac wrote:
> Okey,
> It seems that i needed to re run ../configure an recompile the  
> project after installing libncurses5-dev . That would be great if ./ 
> configure check for ncurses headers.

We already check for it, but we just continue when we don't find
it. Configure should abort when it doesn't find curses however. This
patch gives you an error message when the curses library isn't

Jeroen Dekkers

2006-05-14  Jeroen Dekkers  <address@hidden>

        * Display an error when the curses library isn't

RCS file: /cvsroot/grub/grub2/,v
retrieving revision 1.27
diff -u -p -r1.27
---        9 May 2006 00:05:49 -0000       1.27
+++        14 May 2006 14:24:34 -0000
@@ -187,7 +187,8 @@ fi
 # Check for curses.
 AC_CHECK_LIB(ncurses, wgetch, [LIBCURSES="-lncurses"],
-  [AC_CHECK_LIB(curses, wgetch, [LIBCURSES="-lcurses"])])
+  AC_CHECK_LIB(curses, wgetch, [LIBCURSES="-lcurses"],
+    AC_MSG_ERROR([curses library not found])))
 # Check for headers.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]