Cleaned up configure.ac and fixed it to properly handles CXXFLAGS.

Ignore SIGPIPE.

Fixed(?) bug in hash queue code when a queued torrent got
deleted. Also reorganized core::Manager to catch all
torrent::local_error's.

Fixed display bug in display::FileList which hid the last element.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@441 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-05-26 03:25:55 +00:00
parent 528646cc02
commit a2248f584f
12 changed files with 214 additions and 179 deletions
+4 -23
View File
@@ -4,35 +4,16 @@ AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
sinclude(scripts/checks.m4)
sinclude(scripts/common.m4)
CXXFLAGS="-O3"
AC_ARG_ENABLE(debug,
[ --enable-debug enable debug information [default=yes]],
[
if test "$enableval" = "yes"; then
CXXFLAGS="$CXXFLAGS -Wall -g -DDEBUG"
else
CXXFLAGS="$CXXFLAGS -Wall -DNDEBUG"
fi
],[
CXXFLAGS="$CXXFLAGS -Wall -g -DDEBUG"
]
)
TORRENT_CHECK_CXXFLAGS()
TORRENT_ENABLE_DEBUG()
TORRENT_ENABLE_WERROR()
AC_PROG_CXX
AC_PROG_RANLIB
AC_SYS_LARGEFILE
AC_ARG_ENABLE(werror,
[ --enable-werror enable the -Werror flag [default=no]],
[
if test "$enableval" = "yes"; then
CXXFLAGS="$CXXFLAGS -Werror"
fi
]
)
AC_SEARCH_LIBS(wbkgdset, ncurses curses,,echo "*** The ncurses library is required!";exit 1)
TORRENT_CHECK_EXECINFO()