diff --git a/configure.in b/configure.in index a9fce574..8a09aa90 100644 --- a/configure.in +++ b/configure.in @@ -53,6 +53,7 @@ AC_ARG_ENABLE(debug,[ --enable-debug Enable debug mode],[ AC_CHECK_LIB(curses, initscr, have_curses_lib=yes, , ) if test x$have_curses_lib = xyes -a x$have_curses_h = xyes ; then + LIBS="$LIBS -lcurses" AC_DEFINE(C_DEBUG,1) else AC_MSG_WARN([Can't enable debug mode without libcurses]) @@ -65,6 +66,7 @@ AC_ARG_ENABLE(shots,[ --enable-shots Enable screenshot support],[ AC_CHECK_LIB(png, png_check_sig, have_png_lib=yes, , -lz) if test x$have_curses_lib = xyes -a x$have_curses_h = xyes ; then + LIBS="$LIBS -lpng" AC_DEFINE(C_SSHOTS,1) else AC_MSG_WARN([Can't enable screenshots without libpng])