AC_INIT(rtorrent, 0.5.0, jaris@ifi.uio.no) AM_INIT_AUTOMAKE AM_CONFIG_HEADER(config.h) TORRENT_CHECK_CXXFLAGS() TORRENT_ENABLE_DEBUG() TORRENT_ENABLE_EXTRA_DEBUG() TORRENT_ENABLE_WERROR() AC_PROG_CXX AC_PROG_LIBTOOL AC_SYS_LARGEFILE AC_SEARCH_LIBS(add_wch, ncursesw, AC_DEFINE(HAVE_NCURSESW, 1, defined if ncurses wide character support is available), AC_SEARCH_LIBS(wbkgdset, ncurses curses,,echo "*** The ncurses library is required!";exit 1) ) TORRENT_CHECK_EXECINFO() TORRENT_CHECK_CURL() TORRENT_OTFD() TORRENT_WITHOUT_VARIABLE_FDSET() PKG_CHECK_MODULES(STUFF, sigc++-2.0 libtorrent >= 0.9.0, CXXFLAGS="$CXXFLAGS $STUFF_CFLAGS $CURL_CFLAGS"; LIBS="$LIBS $STUFF_LIBS $CURL_LIBS") AC_DEFINE(HAVE_CONFIG_H, 1, true if config.h was included) CC_ATTRIBUTE_UNUSED( AC_DEFINE([__UNUSED], [__attribute__((unused))], [Wrapper around unused attribute]), AC_DEFINE([__UNUSED], [], [Null-wrapper if unused attribute is unsupported]) ) AC_OUTPUT([ Makefile doc/Makefile src/Makefile src/core/Makefile src/display/Makefile src/input/Makefile src/ui/Makefile src/utils/Makefile ])