Commit c59afc60 authored by Karl Heyes's avatar Karl Heyes

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

svn path=/icecast/trunk/icecast/; revision=14825
parent f7e64956
...@@ -102,6 +102,7 @@ XIPH_VAR_PREPEND([XIPH_LIBS],[$PTHREAD_LIBS]) ...@@ -102,6 +102,7 @@ XIPH_VAR_PREPEND([XIPH_LIBS],[$PTHREAD_LIBS])
XIPH_PATH_CURL([ XIPH_PATH_CURL([
AC_CHECK_DECL([CURLOPT_NOSIGNAL], AC_CHECK_DECL([CURLOPT_NOSIGNAL],
[ AC_DEFINE([HAVE_AUTH_URL], 1, [Define to compile in auth URL support code]) [ 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" ICECAST_OPTIONAL="$ICECAST_OPTIONAL auth_url.o"
enable_curl="yes" enable_curl="yes"
XIPH_VAR_APPEND([XIPH_CPPFLAGS],[$CURL_CFLAGS]) XIPH_VAR_APPEND([XIPH_CPPFLAGS],[$CURL_CFLAGS])
......
...@@ -110,8 +110,10 @@ static void _initialize_subsystems(void) ...@@ -110,8 +110,10 @@ static void _initialize_subsystems(void)
#if !defined(WIN32) || defined(WIN32_SERVICE) #if !defined(WIN32) || defined(WIN32_SERVICE)
/* win32 GUI needs to do the initialise before here */ /* win32 GUI needs to do the initialise before here */
xslt_initialize(); xslt_initialize();
#ifdef HAVE_CURL_GLOBAL_INIT
curl_global_init (CURL_GLOBAL_ALL); curl_global_init (CURL_GLOBAL_ALL);
#endif #endif
#endif
} }
static void _shutdown_subsystems(void) static void _shutdown_subsystems(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment