* Added XMLRPC-C support and hooked it up to FastCGI. Calling a test

function is now possible.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@887 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-04-09 17:28:54 +00:00
parent d6fd8f08dc
commit 6691298fb4
11 changed files with 313 additions and 9 deletions
+40 -4
View File
@@ -291,11 +291,11 @@ AC_DEFUN([TORRENT_WITH_ADDRESS_SPACE], [
AC_DEFUN([TORRENT_WITH_FASTCGI], [
AC_MSG_CHECKING(for FastCGI)
AC_ARG_WITH(fastcgi,
[ --with-fastcgi=PATH Enable FastCGI RPC support.],
[
AC_MSG_CHECKING(for FastCGI)
if test "$withval" = "no"; then
AC_MSG_RESULT(no)
@@ -334,8 +334,44 @@ AC_DEFUN([TORRENT_WITH_FASTCGI], [
AC_DEFINE(HAVE_FASTCGI, 1, Support for FastCGI.)
fi
],[
AC_MSG_CHECKING(for FastCGI)
AC_MSG_RESULT(no)
AC_MSG_RESULT(ignored)
])
])
AC_DEFUN([TORRENT_WITH_XMLRPC_C], [
AC_MSG_CHECKING(for XMLRPC-C)
AC_ARG_WITH(xmlrpc-c,
[ --with-xmlrpc-c=PATH Enable XMLRPC-C support.],
[
if test "$withval" = "no"; then
AC_MSG_RESULT(no)
else
if eval xmlrpc-c-config --version 2>/dev/null >/dev/null; then
CXXFLAGS="$CXXFLAGS `xmlrpc-c-config --cflags server-util`"
LIBS="$LIBS `xmlrpc-c-config --libs server-util` -lxmlrpc_server"
AC_TRY_LINK(
[ #include <xmlrpc_server.h>
],[ xmlrpc_registry_new(NULL); ],
[
AC_MSG_RESULT(ok)
], [
AC_MSG_RESULT(failed)
AC_MSG_ERROR(Could not compile XMLRPC-C test.)
])
AC_DEFINE(HAVE_XMLRPC_C, 1, Support for XMLRPC-C.)
else
AC_MSG_RESULT(failed)
AC_MSG_ERROR(Could not compile XMLRPC-C test.)
fi
fi
],[
AC_MSG_RESULT(ignored)
])
])