1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-11-03 04:17:17 -05: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([ 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])

View File

@ -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)