mirror of
https://github.com/aria2/aria2.git
synced 2025-01-24 02:31:29 +00:00
11dc664f83
* src/FeatureConfig.cc (FEATURE_ASYNC_DNS): New definition. (FeatureConfig): Added aysnc DNS entry. To replace CommandUuid with Command* in SocketEntry and NameResolverEntry: * src/DownloadEngine.h (CommandUuids): Removed. (SocketEntry::commandUuid): Removed. (SocketEntry::command): New variable. (SocketEntry::SocketEntry): Updated. (SocketEntry::operator==): Updated. (NameResolverEntry::commandUuid): Removed. (NameResolverEntry::command): New variable. (NameResolverEntry::NameResolverEntry): Updated. (NameResolverEntry::operator==): Updated. (waitData): Changed the argument type. (addSocketForReadCheck): Changed the argument type. (deleteSocketForReadCheck): Changed the argument type. (addSocketForWriteCheck): Changed the argument type. (deleteSocketForWriteCheck): Changed the argument type. (addNameResolverCheck): Changed the argument type. (deleteNameResolverCheck): Changed the argument type. * src/DownloadEngine.cc (FindCommand): Removed. (run): Removed activeUuid. Added activeCommands instead. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand. (AccumulateActiveCommand): New function object. (waitData): Use AccumulateActiveCommand. (addSocketForReadCheck): Use Command instead of CommandUuid. (deleteSocketForReadCheck): Use Command instead of CommandUuid. (addSocketForWriteCheck): Use Command instead of CommandUuid. (deleteSocketForWriteCheck): Use Command instead of CommandUuid. (addNameResolverCheck): Use Command instead of CommandUuid. (deleteNameResolverCheck): Use Command instead of CommandUuid. * src/AbstractCommand.cc (disableReadCheckSocket): Updated according to the changes in DownloadEngine. (setReadCheckSocket): Updated according to the changes in DownloadEngine. (disableWriteCheckSocket): Updated according to the changes in DownloadEngine. (setWriteCheckSocket): Updated according to the changes in DownloadEngine. (setNameResolverCheck): Updated according to the changes in DownloadEngine. (disableNameResolverCheck): Updated according to the changes in DownloadEngine. * src/AbstractCommand.cc (disableReadCheckSocket): Updated according to the changes in DownloadEngine. (setReadCheckSocket): Updated according to the changes in DownloadEngine. (disableWriteCheckSocket): Updated according to the changes in DownloadEngine. (setWriteCheckSocket): Updated according to the changes in DownloadEngine. * release 0.7.1
34 lines
868 B
Plaintext
34 lines
868 B
Plaintext
AC_DEFUN([AM_PATH_LIBARES],
|
|
[
|
|
AC_ARG_WITH([libares-prefix],
|
|
[ --with-libares-prefix=PREFIX Prefix where libares installed (optional)],
|
|
[libares_prefix=$withval],
|
|
[libares_prefix=""])
|
|
|
|
if test "x$libares_prefix" = "x"; then
|
|
libares_prefix="/usr"
|
|
fi
|
|
|
|
libares_prefix_lib=$libares_prefix/lib
|
|
libares_prefix_include=$libares_prefix/include
|
|
|
|
LIBS_save=$LIBS
|
|
CPPFLAGS_save=$CPPFLAGS
|
|
|
|
LIBS="-L$libares_prefix_lib $LIBS"
|
|
CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
|
|
|
|
AC_CHECK_LIB([ares], [ares_init], [have_libares=yes])
|
|
if test "x$have_libares" = "xyes"; then
|
|
AC_DEFINE([HAVE_LIBARES], [1], [Define to 1 if you have libares.])
|
|
LIBARES_LIBS="-L$libares_prefix_lib -lares"
|
|
LIBARES_CPPFLAGS="-I$libares_prefix_include"
|
|
AC_SUBST(LIBARES_LIBS)
|
|
AC_SUBST(LIBARES_CPPFLAGS)
|
|
fi
|
|
|
|
LIBS=$LIBS_save
|
|
CPPFLAGS=$CPPFLAGS_save
|
|
|
|
])
|