From 6c04291419ef5b10bce5aa50a2d7d4c482a7c880 Mon Sep 17 00:00:00 2001 From: Brandon Black Date: Mon, 16 Apr 2012 14:29:18 -0400 Subject: [PATCH] Fix ncurses detection at configure time There appears to be a typo/thinko in the ncurses detection stuff in configure.ac. The fallout was that on a Linux host without ncurses-devel installed, "./configure" failed to find curses.h but claimed overall success, then the build failed later during make. This patch removes an extraneous comma, which seems to make it both fail and succeed correctly when it should. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f796de9..c44d28d 100644 --- a/configure.ac +++ b/configure.ac @@ -235,7 +235,7 @@ PKG_CHECK_MODULES([TINFO], [tinfo], , [AX_CHECK_LIBRARY([TINFO], [curses.h], [tinfo], [AC_SUBST([TINFO_CFLAGS], ["$TINFO_CPPFLAGS"]) AC_SUBST([TINFO_LIBS], ["$TINFO_LDFLAGS -ltinfo"])], - [AX_CHECK_LIBRARY([TINFO], [curses.h], [ncurses], , + [AX_CHECK_LIBRARY([TINFO], [curses.h], [ncurses], [AC_SUBST([TINFO_CFLAGS], ["$TINFO_CPPFLAGS"]) AC_SUBST([TINFO_LIBS], ["$TINFO_LDFLAGS -lncurses"])], [AC_MSG_ERROR([Unable to find libtinfo or libncurses])])])])])