unset _libcurl_with
- if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
- fail="$fail libcurl"
+ if test x$libcurl_cv_lib_curl_usable != xyes; then
+ fail="$fail libcurl"
+ else
+ if test x$libcurl_protocol_HTTP != xyes; then
+ fail="$fail libcurl_protocol_http"
+ fi
+
+ if test x$libcurl_protocol_HTTPS != xyes || test x$libcurl_feature_SSL != xyes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently building without HTTPS support. Requires: libcurl_protocol_https." >&5
+$as_echo "$as_me: WARNING: silently building without HTTPS support. Requires: libcurl_protocol_https." >&2;}
+ fi
fi
done
+ if test "$ac_cv_header_json_json_h" != "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently building without JSON support. Requires: json-c." >&5
+$as_echo "$as_me: WARNING: silently building without JSON support. Requires: json-c." >&2;}
+ fi
+
targetname=rlm_rest # keep this! Don't change!
else
targetname= # keep this! Don't change!
fi
fi
+rest_ldflags="${LIBCURL} ${rest_ldflags}"
LIBCURL_CHECK_CONFIG
- if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
- fail="$fail libcurl"
+ if test x$libcurl_cv_lib_curl_usable != xyes; then
+ fail="$fail libcurl"
+ else
+ if test x$libcurl_protocol_HTTP != xyes; then
+ fail="$fail libcurl_protocol_http"
+ fi
+
+ if test x$libcurl_protocol_HTTPS != xyes || test x$libcurl_feature_SSL != xyes; then
+ AC_MSG_WARN([silently building without HTTPS support. Requires: libcurl_protocol_https.])
+ fi
fi
AC_CHECK_HEADERS(json/json.h)
+
+ if test "$ac_cv_header_json_json_h" != "yes"; then
+ AC_MSG_WARN([silently building without JSON support. Requires: json-c.])
+ fi
targetname=modname # keep this! Don't change!
else
fi
fi
+rest_ldflags="${LIBCURL} ${rest_ldflags}"
AC_SUBST(rest_cflags)
AC_SUBST(rest_ldflags)