#include <freeradius-devel/tls/base.h>
#endif
+#define CURL_NO_OLDIES 1
+
#include <curl/curl.h>
#include <talloc.h>
+/*
+ * We have to use this as curl uses lots of enums
+ */
+#ifndef CURL_AT_LEAST_VERSION
+# define CURL_VERSION_BITS(x, y, z) ((x) << 16 | (y) << 8 | z)
+# define CURL_AT_LEAST_VERSION(x, y, z) (LIBCURL_VERSION_NUM >= CURL_VERSION_BITS(x, y, z))
+#endif
+
static uint32_t instance_count = 0;
static fr_dict_t const *dict_freeradius; /*internal dictionary for server*/
extern "C" {
#endif
+#define CURL_NO_OLDIES 1
+
#include <curl/curl.h>
#include <freeradius-devel/server/request.h>
#include <freeradius-devel/util/event.h>
$as_echo "$libcurl_cv_lib_curl_version" >&6; }
_libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
- _libcurl_wanted=`echo 7.19.1 | $_libcurl_version_parse`
+ _libcurl_wanted=`echo 7.45.0 | $_libcurl_version_parse`
if test $_libcurl_wanted -gt 0 ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.19.1" >&5
-$as_echo_n "checking for libcurl >= version 7.19.1... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.45.0" >&5
+$as_echo_n "checking for libcurl >= version 7.45.0... " >&6; }
if ${libcurl_cv_lib_version_ok+:} false; then :
$as_echo_n "(cached) " >&6
else
-
-unset ac_cv_env_LIBS_set
-unset ac_cv_env_LIBS_value
-
ac_config_files="$ac_config_files all.mk"
cat >confcache <<\_ACEOF
fi
-
dnl # Check for curl
dnl ############################################################
- LIBCURL_CHECK_CONFIG([], [7.19.1])
+ LIBCURL_CHECK_CONFIG([], [7.45.0])
if test "x$libcurl_cv_lib_version_ok" != "xyes"; then
fail="$fail libcurl >= 7.19.2"
#include <freeradius-devel/unlang/base.h>
#include <freeradius-devel/util/syserror.h>
+#define CURL_NO_OLDIES 1
+
#include <curl/curl.h>
#include <talloc.h>
#define CURL_NO_OLDIES 1
-/*
- * We have to use this as curl uses lots of enums
- */
-#ifndef CURL_AT_LEAST_VERSION
-# define CURL_VERSION_BITS(x, y, z) ((x) << 16 | (y) << 8 | z)
-# define CURL_AT_LEAST_VERSION(x, y, z) (LIBCURL_VERSION_NUM >= CURL_VERSION_BITS(x, y, z))
-#endif
-
#include <curl/curl.h>
/*