Source

fdisk / acinclude.m4

Diff from to

File acinclude.m4

 		[AC_CHECK_HEADER(curses.h, 
 		have_ncurses_h=false
 		AC_DEFINE(HAVE_CURSES_H, 1, [We have the curses.h header.]),
-		[AC_MSG_FAILURE([ncurses.h or curses.h not found])]
 		$2)])
 if test x$have_ncurses_h == xtrue; then
-	AC_CHECK_LIB(ncurses, getch, ,
-		[AC_MSG_FAILURE([libncurses not found])]
+	AC_CHECK_LIB(ncurses, getch, LIBS="-lncurses"
+		$1 ,
 		$2)
 else
-	AC_CHECK_LIB(curses, getch, ,
-		[AC_MSG_FAILURE([libcurses not found])]
+	AC_CHECK_LIB(curses, getch, LIBS="-lcurses"
+		$1 ,
 		$2)
 fi
 
 LIBS="$saved_LIBS"
 AC_SUBST(CURSES_LIBS)
 
-dnl Execute ACTION-IF-FOUND
-$1
 
-])
-
-
+])