File presage-0.8.9-ncurses_flag.patch of Package presage

Index: presage-0.8.9.beta20130208/configure.ac
===================================================================
--- presage-0.8.9.beta20130208.orig/configure.ac
+++ presage-0.8.9.beta20130208/configure.ac
@@ -106,7 +106,7 @@ AC_CHECK_HEADERS([pwd.h])
 dnl ==================
 dnl Checks for ncurses
 dnl ==================
-AC_CHECK_LIB([curses],
+AC_CHECK_LIB([ncurses],
              [initscr],
              [have_curses_library=true],
 	     [AC_MSG_WARN([curses library not found. curses demo programs will not be built.])])
Index: presage-0.8.9.beta20130208/src/tools/Makefile.am
===================================================================
--- presage-0.8.9.beta20130208.orig/src/tools/Makefile.am
+++ presage-0.8.9.beta20130208/src/tools/Makefile.am
@@ -44,7 +44,7 @@ bin_PROGRAMS +=		presage_demo
 
 presage_demo_SOURCES =	presageDemo.cpp
 presage_demo_LDADD =	../lib/libpresage.la
-presage_demo_LDFLAGS =	-lcurses
+presage_demo_LDFLAGS =	-lncurses
 endif
 
 presage_demo_text_SOURCES = 	presageDemoText.cpp
Index: presage-0.8.9.beta20130208/src/tools/Makefile.in
===================================================================
--- presage-0.8.9.beta20130208.orig/src/tools/Makefile.in
+++ presage-0.8.9.beta20130208/src/tools/Makefile.in
@@ -360,7 +360,7 @@ libtools_la_SOURCES = ngram.cpp ngram.h
 
 @HAVE_CURSES_TRUE@presage_demo_SOURCES = presageDemo.cpp
 @HAVE_CURSES_TRUE@presage_demo_LDADD = ../lib/libpresage.la
-@HAVE_CURSES_TRUE@presage_demo_LDFLAGS = -lcurses
+@HAVE_CURSES_TRUE@presage_demo_LDFLAGS = -lncurses
 presage_demo_text_SOURCES = presageDemoText.cpp
 presage_demo_text_LDADD = ../lib/libpresage.la
 presage_simulator_SOURCES = presageSimulator.cpp