mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
build-sys: add check for libcurl
This commit is contained in:
parent
1e4e7b71e1
commit
36ef43edcf
13
configure.ac
13
configure.ac
@ -787,6 +787,18 @@ if test "x$enable_gnutls" != "xno"; then
|
|||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(HAVE_GNUTLS, [test "$have_gnutls" = "yes"])
|
AM_CONDITIONAL(HAVE_GNUTLS, [test "$have_gnutls" = "yes"])
|
||||||
|
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
have_libcurl=no
|
||||||
|
AC_ARG_ENABLE(libcurl, AS_HELP_STRING([--disable-libcurl], [disable libcurl support]))
|
||||||
|
if test "x$enable_libcurl" != "xno"; then
|
||||||
|
PKG_CHECK_MODULES(LIBCURL, [libcurl],
|
||||||
|
[AC_DEFINE(HAVE_LIBCURL, 1, [Define if libcurl is available]) have_libcurl=yes], have_libcurl=no)
|
||||||
|
if test "x$have_libcurl" = xno -a "x$enable_libcurl" = xyes; then
|
||||||
|
AC_MSG_ERROR([*** libcurl support requested but libraries not found])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL(HAVE_LIBCURL, [test "$have_libcurl" = "yes"])
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
have_binfmt=no
|
have_binfmt=no
|
||||||
AC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
|
AC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
|
||||||
@ -1293,6 +1305,7 @@ AC_MSG_RESULT([
|
|||||||
MICROHTTPD: ${have_microhttpd}
|
MICROHTTPD: ${have_microhttpd}
|
||||||
CHKCONFIG: ${have_chkconfig}
|
CHKCONFIG: ${have_chkconfig}
|
||||||
GNUTLS: ${have_gnutls}
|
GNUTLS: ${have_gnutls}
|
||||||
|
libcurl: ${have_libcurl}
|
||||||
ELFUTILS: ${have_elfutils}
|
ELFUTILS: ${have_elfutils}
|
||||||
binfmt: ${have_binfmt}
|
binfmt: ${have_binfmt}
|
||||||
vconsole: ${have_vconsole}
|
vconsole: ${have_vconsole}
|
||||||
|
Loading…
Reference in New Issue
Block a user