You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.8 KiB

  1. From 2163a630eb737b9afe3277dccf44070ef55dea12 Mon Sep 17 00:00:00 2001
  2. From: Lucian Cristian <lucian.cristian@gmail.com>
  3. Date: Fri, 13 Sep 2019 07:12:34 +0300
  4. Subject: [PATCH] clippy: CARES fail only if !enable_clippy_only test for CARES
  5. otherwise config will fail with conditional "CARES" not defined
  6. Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
  7. ---
  8. configure.ac | 14 ++++++++------
  9. 1 file changed, 8 insertions(+), 6 deletions(-)
  10. diff --git a/configure.ac b/configure.ac
  11. index 6c1b35b5f2..9f37b3e9a9 100755
  12. --- a/configure.ac
  13. +++ b/configure.ac
  14. @@ -1452,6 +1452,12 @@ if test "x$enable_pcreposix" = "xyes"; then
  15. fi
  16. AC_SUBST([HAVE_LIBPCREPOSIX])
  17. +dnl ##########################################################################
  18. +dnl test "${enable_clippy_only}" != "yes"
  19. +fi
  20. +dnl END OF LARGE if block
  21. +dnl ##########################################################################
  22. +
  23. dnl ------------------
  24. dnl check C-Ares library
  25. dnl ------------------
  26. @@ -1462,12 +1468,6 @@ PKG_CHECK_MODULES([CARES], [libcares], [
  27. ])
  28. AM_CONDITIONAL([CARES], [$c_ares_found])
  29. -dnl ##########################################################################
  30. -dnl test "${enable_clippy_only}" != "yes"
  31. -fi
  32. -dnl END OF LARGE if block
  33. -dnl ##########################################################################
  34. -
  35. dnl ----------------------------------------------------------------------------
  36. dnl figure out if domainname is available in the utsname struct (GNU extension).
  37. @@ -1535,9 +1535,11 @@ case "$host_os" in
  38. no)
  39. ;;
  40. yes)
  41. + if test "${enable_clippy_only}" != "yes"; then
  42. if test "$c_ares_found" != "true" ; then
  43. AC_MSG_ERROR([nhrpd requires libcares. Please install c-ares and its -dev headers.])
  44. fi
  45. + fi
  46. NHRPD="nhrpd"
  47. ;;
  48. *)