-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This feature is currently not stable. Add --enable-udns option to libtorrent configure to allow further development testing.
- Loading branch information
Showing
2 changed files
with
15 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,18 @@ | ||
# dnl function for enabling/disabling udns support | ||
AC_DEFUN([TORRENT_WITH_UDNS], [ | ||
AC_ARG_WITH( | ||
[udns], | ||
AS_HELP_STRING([--without-udns], [Don't use udns, falling back to synchronous DNS resolution.]) | ||
) | ||
# dnl neither ubuntu nor fedora ships a pkgconfig file for udns | ||
AS_IF( | ||
[test "x$with_udns" != "xno"], | ||
[AC_CHECK_HEADERS([udns.h], [have_udns=yes], [have_udns=no])], | ||
[have_udns=no] | ||
) | ||
AS_IF( | ||
[test "x$have_udns" = "xyes"], | ||
AC_ARG_ENABLE(udns, | ||
AC_HELP_STRING([--enable-udns], [use udns instead of synchronous DNS resolution [[default=check]]]), | ||
[ | ||
AC_DEFINE(USE_UDNS, 1, Define to build with udns support.) | ||
LIBS="$LIBS -ludns" | ||
], | ||
[ | ||
AS_IF( | ||
[test "x$with_udns" = "xyes"], | ||
[AC_MSG_ERROR([udns requested but not found])] | ||
) | ||
] | ||
) | ||
if test "$enableval" = "yes"; then | ||
AC_CHECK_HEADERS([udns.h], [have_udns=yes], [have_udns=no]) | ||
if test "$have_udns" = "yes"; then | ||
AC_DEFINE(USE_UDNS, 1, Define to build with udns support.) | ||
LIBS="$LIBS -ludns" | ||
else | ||
AC_MSG_ERROR([udns requested but not found]) | ||
fi | ||
fi | ||
]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters