mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 19:10:17 +01:00
build: set --enable-conckeck as default
connectivity check functionality should be explicitly set as disabled if
not wanted: this prevents building NM without connectivity check support
without any evident warning on systems where libcurl is not installed.
(cherry picked from commit 4e6967e33d)
This commit is contained in:
parent
170e6b7772
commit
faa1b85dab
1 changed files with 3 additions and 3 deletions
|
|
@ -973,13 +973,13 @@ else
|
|||
fi
|
||||
AM_CONDITIONAL(WITH_LIBPSL, test "$with_libpsl" != "no")
|
||||
|
||||
PKG_CHECK_MODULES(LIBCURL, [libcurl >= 7.24.0], [have_libcurl=yes], [have_libcurl=no])
|
||||
AC_ARG_ENABLE(concheck,
|
||||
AS_HELP_STRING([--enable-concheck], [enable connectivity checking support]),
|
||||
[enable_concheck=${enableval}], [enable_concheck=${have_libcurl}])
|
||||
[enable_concheck=${enableval}], [enable_concheck=yes])
|
||||
if test "${enable_concheck}" = "yes"; then
|
||||
PKG_CHECK_MODULES(LIBCURL, [libcurl >= 7.24.0], [have_libcurl=yes], [have_libcurl=no])
|
||||
if test "$have_libcurl" != "yes"; then
|
||||
AC_MSG_ERROR(Cannot find libcurl library required by concheck)
|
||||
AC_MSG_ERROR(--enable-concheck requires libcurl library.)
|
||||
fi
|
||||
AC_DEFINE(WITH_CONCHECK, 1, [Define if you want connectivity checking support])
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue