1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00

check if function exists, some older versions don't have this

svn path=/icecast/trunk/icecast/; revision=14825
This commit is contained in:
Karl Heyes 2008-05-02 23:18:52 +00:00
parent f7e64956df
commit c59afc60d2
2 changed files with 3 additions and 0 deletions

View File

@ -102,6 +102,7 @@ XIPH_VAR_PREPEND([XIPH_LIBS],[$PTHREAD_LIBS])
XIPH_PATH_CURL([
AC_CHECK_DECL([CURLOPT_NOSIGNAL],
[ AC_DEFINE([HAVE_AUTH_URL], 1, [Define to compile in auth URL support code])
AC_CHECK_FUNCS([curl_global_init])
ICECAST_OPTIONAL="$ICECAST_OPTIONAL auth_url.o"
enable_curl="yes"
XIPH_VAR_APPEND([XIPH_CPPFLAGS],[$CURL_CFLAGS])

View File

@ -110,8 +110,10 @@ static void _initialize_subsystems(void)
#if !defined(WIN32) || defined(WIN32_SERVICE)
/* win32 GUI needs to do the initialise before here */
xslt_initialize();
#ifdef HAVE_CURL_GLOBAL_INIT
curl_global_init (CURL_GLOBAL_ALL);
#endif
#endif
}
static void _shutdown_subsystems(void)