summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac38
1 files changed, 25 insertions, 13 deletions
diff --git a/configure.ac b/configure.ac
index 04ec5bd..c56163c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -385,19 +385,31 @@ if test "$ac_cv_header_wtsapi32_h" = "yes"; then
385 AC_SUBST(WTSAPI32LIBS) 385 AC_SUBST(WTSAPI32LIBS)
386fi 386fi
387 387
388dnl Check for cURL library 388AC_ARG_ENABLE(check-curl,
389LIBCURL_CHECK_CONFIG(yes, 7.15.2, [ 389 AC_HELP_STRING([--enable-check-curl],
390 EXTRAS="$EXTRAS check_curl\$(EXEEXT)" 390 [Enables compilation of check_curl (default: no)]),
391 LIBCURLINCLUDE="$LIBCURL_CPPFLAGS" 391 [enable_check_curl=$enableval],
392 LIBCURLLIBS="$LIBCURL" 392 [enable_check_curl=no])
393 LIBCURLCFLAGS="$LIBCURL_CPPFLAGS" 393if test "$enable_check_curl" = "yes" ; then
394 AC_SUBST(LIBCURLINCLUDE) 394 dnl Check for cURL library
395 AC_SUBST(LIBCURLLIBS) 395 LIBCURL_CHECK_CONFIG(yes, 7.15.2, [
396 AC_SUBST(LIBCURLCFLAGS) 396 EXTRAS="$EXTRAS check_curl\$(EXEEXT)"
397], [ 397 LIBCURLINCLUDE="$LIBCURL_CPPFLAGS"
398 AC_MSG_WARN([Skipping curl plugin]) 398 LIBCURLLIBS="$LIBCURL"
399 AC_MSG_WARN([install libcurl libs to compile this plugin (see REQUIREMENTS).]) 399 LIBCURLCFLAGS="$LIBCURL_CPPFLAGS"
400]) 400 AC_SUBST(LIBCURLINCLUDE)
401 AC_SUBST(LIBCURLLIBS)
402 AC_SUBST(LIBCURLCFLAGS)
403 AC_SUBST(PICOHTTPPARSER_DIR, picohttpparser)
404 AC_SUBST(URIPARSER_DIR, uriparser)
405 ], [
406 AC_MSG_WARN([Skipping curl plugin])
407 AC_MSG_WARN([install libcurl libs to compile this plugin (see REQUIREMENTS).])
408 ])
409fi
410AM_CONDITIONAL([WITH_CHECK_CURL], [test "$enable_check_curl" = "yes"])
411AM_COND_IF([WITH_CHECK_CURL],
412 [AC_CONFIG_FILES([plugins/picohttpparser/Makefile plugins/uriparser/Makefile])])
401 413
402dnl Fallback to who(1) if the system doesn't provide an utmpx(5) interface 414dnl Fallback to who(1) if the system doesn't provide an utmpx(5) interface
403if test "$ac_cv_header_utmpx_h" = "no" -a "$ac_cv_header_wtsapi32_h" = "no" 415if test "$ac_cv_header_utmpx_h" = "no" -a "$ac_cv_header_wtsapi32_h" = "no"