--- projects/libstatgrab/acinclude.m4 2006/12/01 14:21:16 1.2 +++ projects/libstatgrab/acinclude.m4 2007/01/06 01:01:36 1.3 @@ -1,7 +1,7 @@ dnl Available from the GNU Autoconf Macro Archive at: dnl http://www.gnu.org/software/ac-archive/htmldoc/mp_with_curses.html dnl (Hacked by tdb for libstatgrab) -dnl $Id: acinclude.m4,v 1.2 2006/12/01 14:21:16 tdb Exp $ +dnl $Id: acinclude.m4,v 1.3 2007/01/06 01:01:36 tdb Exp $ AC_DEFINE([HAVE_CURSES_H], [], [Define to 1 if you have the header file.]) AC_DEFINE([HAVE_NCURSES_H], [], [Define to 1 if you have the header file.]) AC_DEFINE([CURSES_HEADER_FILE], [], [Set to the location of the curses header file.]) @@ -10,8 +10,6 @@ AC_DEFUN([MP_WITH_CURSES], mp_save_LIBS="$LIBS" mp_save_CPPFLAGS="$CPPFLAGS" - LIBS="$LIBS $SAIDARLIBS" - CPPFLAGS="$CPPFLAGS $SAIDARCPPFLAGS" CURSES_LIB="" if test "$with_ncurses" != no @@ -48,7 +46,7 @@ AC_DEFUN([MP_WITH_CURSES], if test ! "$CURSES_LIB" then AC_CACHE_CHECK([for working curses], mp_cv_curses, - [LIBS="$LIBS $SAIDARLIBS -lcurses" + [LIBS="$mp_save_LIBS $SAIDARLIBS -lcurses" CPPFLAGS="$mp_save_CPPFLAGS $SAIDARCPPFLAGS" AC_TRY_LINK( [#include ],