From be88be2eaf8c1d4908e8ee3910b25457042703f2 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Tue, 11 Mar 2003 08:56:57 +0000 Subject: [PATCH] add curses and png to $LIBS when selected. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@745 --- configure.in | 2 ++ 1 file changed, 2 insertions(+) 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])