Daniel Veillard wrote:
On Mon, Apr 24, 2006 at 09:25:45PM -0400, Subrahmanian, Raj wrote:
ncurses vs. curses ?
Ohh, and I was looking right at it!
Sorry folks.
I hacked the configure file to look for ncurses and sure enough it
worked.
Can you send the diff you made to configure.in so we can fix configure
to work with both libraries ?
Daniel
Here is a patch based on nested CHECK_LIB, but not sure if that is
standard practice. Tested and works on 1 platform :-).
Jim
Index: configure.in
===================================================================
RCS file: /data/cvs/libvir/configure.in,v
retrieving revision 1.30
diff -u -r1.30 configure.in
--- configure.in 25 Apr 2006 16:08:48 -0000 1.30
+++ configure.in 25 Apr 2006 16:34:29 -0000
@@ -148,8 +148,11 @@
dnl virsh libraries
AC_CHECK_LIB(curses, initscr,
- [VIRSH_LIBS="$VIRSH_LIBS -lcurses"],
- [AC_MSG_ERROR([curses library not found])],
+ [VIRSH_LIBS="$VIRSH_LIBS -lcurses"],
+ [AC_CHECK_LIB(ncurses, initscr,
+ [VIRSH_LIBS="$VIRSH_LIBS -lncurses"],
+ [AC_MSG_ERROR([curses/ncurses library not found])],
+ [$VIRSH_LIBS])],
[$VIRSH_LIBS])
AC_CHECK_LIB(readline, main,
[VIRSH_LIBS="$VIRSH_LIBS -lreadline"],