From: Gabriel Krisman Bertazi <gabr...@krisman.be>

if package ncurses-devel is missing, iprutils build should fail.
Although, current configure script will search first for libform, a
library that is part of the ncurses package, and fail with error
"libform not found".  This patch changes the search order to look for
ncurses first, making this error display as "libncurses not found"
which is easier to understand and fix.

Signed-off-by: Gabriel Krisman Bertazi <kris...@linux.vnet.ibm.com>
Reported-by: Breno Henrique leitao <lei...@linux.vnet.ibm.com>
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 47da8fa..6fd7b93 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,12 +25,12 @@ if test -n ${ncurses_include}; then
 fi
 
 # Check for Libraries.
+AC_CHECK_LIB([ncurses], [curses_version], [],
+            [AC_ERROR("libncurses not found.")])
 AC_CHECK_LIB([form], [free_form], [], [AC_ERROR("libform not found.")])
 AC_CHECK_LIB([m], [matherr], [], [AC_ERROR("libm not found.")])
 AC_CHECK_LIB([menu], [new_menu], [], [AC_ERROR("libmenu not found.")])
 AC_CHECK_LIB([panel], [show_panel], [], [AC_ERROR("libpanel not found.")])
-AC_CHECK_LIB([ncurses], [curses_version], [],
-            [AC_ERROR("libncurses not found.")])
 
 # Checks for header files.
 AC_CHECK_HEADERS([fcntl.h libintl.h locale.h netinet/in.h nl_types.h \
-- 
2.1.0


------------------------------------------------------------------------------
_______________________________________________
Iprdd-devel mailing list
Iprdd-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iprdd-devel

Reply via email to