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.
This commit is contained in:
Brandon Black
2012-04-16 14:29:18 -04:00
parent bfa0999089
commit 6c04291419
+1 -1
View File
@@ -235,7 +235,7 @@ PKG_CHECK_MODULES([TINFO], [tinfo], ,
[AX_CHECK_LIBRARY([TINFO], [curses.h], [tinfo], [AX_CHECK_LIBRARY([TINFO], [curses.h], [tinfo],
[AC_SUBST([TINFO_CFLAGS], ["$TINFO_CPPFLAGS"]) [AC_SUBST([TINFO_CFLAGS], ["$TINFO_CPPFLAGS"])
AC_SUBST([TINFO_LIBS], ["$TINFO_LDFLAGS -ltinfo"])], 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_CFLAGS], ["$TINFO_CPPFLAGS"])
AC_SUBST([TINFO_LIBS], ["$TINFO_LDFLAGS -lncurses"])], AC_SUBST([TINFO_LIBS], ["$TINFO_LDFLAGS -lncurses"])],
[AC_MSG_ERROR([Unable to find libtinfo or libncurses])])])])]) [AC_MSG_ERROR([Unable to find libtinfo or libncurses])])])])])