diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 40 |
1 files changed, 15 insertions, 25 deletions
diff --git a/configure.ac b/configure.ac index 9ac0995..1fccf53 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -385,16 +385,9 @@ if test "$ac_cv_header_wtsapi32_h" = "yes"; then | |||
385 | AC_SUBST(WTSAPI32LIBS) | 385 | AC_SUBST(WTSAPI32LIBS) |
386 | fi | 386 | fi |
387 | 387 | ||
388 | AC_ARG_ENABLE(check-curl, | 388 | _can_enable_check_curl=no |
389 | AC_HELP_STRING([--enable-check-curl], | 389 | dnl Check for cURL library |
390 | [Enables compilation of check_curl (default: no)]), | 390 | LIBCURL_CHECK_CONFIG(yes, 7.15.2, [ |
391 | [enable_check_curl=$enableval], | ||
392 | [enable_check_curl=no]) | ||
393 | if test "$enable_check_curl" = "yes" ; then | ||
394 | _can_enable_check_curl=no | ||
395 | |||
396 | dnl Check for cURL library | ||
397 | LIBCURL_CHECK_CONFIG(yes, 7.15.2, [ | ||
398 | _can_enable_check_curl=yes | 391 | _can_enable_check_curl=yes |
399 | LIBCURLINCLUDE="$LIBCURL_CPPFLAGS" | 392 | LIBCURLINCLUDE="$LIBCURL_CPPFLAGS" |
400 | LIBCURLLIBS="$LIBCURL" | 393 | LIBCURLLIBS="$LIBCURL" |
@@ -406,10 +399,10 @@ if test "$enable_check_curl" = "yes" ; then | |||
406 | _can_enable_check_curl=no | 399 | _can_enable_check_curl=no |
407 | AC_MSG_WARN([Skipping curl plugin]) | 400 | AC_MSG_WARN([Skipping curl plugin]) |
408 | AC_MSG_WARN([install libcurl libs to compile this plugin (see REQUIREMENTS).]) | 401 | AC_MSG_WARN([install libcurl libs to compile this plugin (see REQUIREMENTS).]) |
409 | ]) | 402 | ]) |
410 | 403 | ||
411 | dnl Check for uriparser library | 404 | dnl Check for uriparser library |
412 | URIPARSER_CHECK(yes, 0.7.5, [ | 405 | URIPARSER_CHECK(yes, 0.7.5, [ |
413 | _can_enable_check_curl=yes | 406 | _can_enable_check_curl=yes |
414 | URIPARSERINCLUDE="$URIPARSER_CPPFLAGS" | 407 | URIPARSERINCLUDE="$URIPARSER_CPPFLAGS" |
415 | URIPARSERLIBS="$URIPARSER" | 408 | URIPARSERLIBS="$URIPARSER" |
@@ -421,18 +414,17 @@ if test "$enable_check_curl" = "yes" ; then | |||
421 | _can_enable_check_curl=no | 414 | _can_enable_check_curl=no |
422 | AC_MSG_WARN([Skipping curl plugin]) | 415 | AC_MSG_WARN([Skipping curl plugin]) |
423 | AC_MSG_WARN([install the uriparser library to compile this plugin (see REQUIREMENTS).]) | 416 | AC_MSG_WARN([install the uriparser library to compile this plugin (see REQUIREMENTS).]) |
424 | ]) | 417 | ]) |
425 | 418 | ||
426 | dnl prerequisites met, enable the plugin | 419 | dnl prerequisites met, enable the plugin |
427 | if test x$_can_enable_check_curl = xyes; then | 420 | if test x$_can_enable_check_curl = xyes; then |
428 | EXTRAS="$EXTRAS check_curl\$(EXEEXT)" | 421 | EXTRAS="$EXTRAS check_curl\$(EXEEXT)" |
429 | 422 | ||
430 | dnl Enable bundled picohttpparser library (for now) | 423 | dnl Enable bundled picohttpparser library (for now) |
431 | AC_SUBST(PICOHTTPPARSER_DIR, picohttpparser) | 424 | AC_SUBST(PICOHTTPPARSER_DIR, picohttpparser) |
432 | fi | ||
433 | fi | 425 | fi |
434 | AM_CONDITIONAL([WITH_CHECK_CURL], [test "$enable_check_curl" = "yes"]) | 426 | AM_CONDITIONAL([WITH_CHECK_CURL], [test "$_can_enable_check_curl" = "yes"]) |
435 | AM_COND_IF([WITH_CHECK_CURL], | 427 | AM_COND_IF([WITH_CHECK_CURL], |
436 | [AC_CONFIG_FILES([plugins/picohttpparser/Makefile])]) | 428 | [AC_CONFIG_FILES([plugins/picohttpparser/Makefile])]) |
437 | 429 | ||
438 | dnl Fallback to who(1) if the system doesn't provide an utmpx(5) interface | 430 | dnl Fallback to who(1) if the system doesn't provide an utmpx(5) interface |
@@ -1932,7 +1924,5 @@ ACX_FEATURE([enable],[perl-modules]) | |||
1932 | ACX_FEATURE([with],[cgiurl]) | 1924 | ACX_FEATURE([with],[cgiurl]) |
1933 | ACX_FEATURE([with],[trusted-path]) | 1925 | ACX_FEATURE([with],[trusted-path]) |
1934 | ACX_FEATURE([enable],[libtap]) | 1926 | ACX_FEATURE([enable],[libtap]) |
1935 | ACX_FEATURE([enable],[check-curl]) | ||
1936 | ACX_FEATURE([with],[libcurl]) | 1927 | ACX_FEATURE([with],[libcurl]) |
1937 | ACX_FEATURE([with],[uriparser]) | 1928 | ACX_FEATURE([with],[uriparser]) |
1938 | |||