changeset 21705:d7845234c752

Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 01 Dec 2007 04:40:50 +0000
parents a4b36b22ea94
children bc4afc8ea960
files configure.ac
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Sat Dec 01 03:41:16 2007 +0000
+++ b/configure.ac	Sat Dec 01 04:40:50 2007 +0000
@@ -328,7 +328,7 @@
 	enable_gtkui="$enableval", enable_gtkui="yes")
 AC_ARG_ENABLE(consoleui, [AC_HELP_STRING([--disable-consoleui],
 		[compile without console user interface])],
-	enable_consoleui=$enableval, enable_consoleui=yes)
+	[enable_consoleui=$enableval force_finch=$enableval], [enable_consoleui=yes force_finch=no])
 
 dnl #######################################################################
 dnl # Check for GTK+ 2.0 and other things used by the GTK UI
@@ -622,6 +622,14 @@
 	fi
 fi
 
+if test "x$force_finch" = "xyes" -a "x$enable_consoleui" != "xyes"; then
+	AC_MSG_ERROR([
+
+Finch will not be built. You need to install ncursesw (or ncurses) and its development headers.
+
+])
+fi
+
 AC_SUBST(GNT_LIBS)
 AC_SUBST(GNT_CFLAGS)
 AM_CONDITIONAL(ENABLE_GNT, test "x$enable_consoleui" = "xyes")