miredo-1.2.5-configure-libcap.diff 918 B

12345678910111213141516171819202122232425262728293031323334
  1. --- configure.ac.ori 2012-06-14 21:55:13.756603416 +0200
  2. +++ configure.ac 2012-06-14 23:12:01.425399836 +0200
  3. @@ -150,16 +150,23 @@
  4. # POSIX capabilities
  5. LIBCAP=""
  6. -AC_CHECK_HEADERS([sys/capability.h], [
  7. - AC_CHECK_LIB(cap, cap_set_proc, [
  8. - LIBCAP="-lcap"
  9. - AC_DEFINE(HAVE_LIBCAP, 1,
  10. - [Define to 1 if you have the `cap' library (-lcap).])
  11. - ])
  12. +AC_ARG_WITH(libcap,
  13. + AS_HELP_STRING([--with-libcap], [enable POSIX 1003.1e capabilities]),
  14. + with_libcap=$withval,
  15. + with_libcap=auto)
  16. +AC_MSG_CHECKING([whether to enable POSIX 1003.1e capabilities])
  17. +AC_MSG_RESULT($with_libcap)
  18. +
  19. +AS_IF([test "x$with_libcap" != "xno"], [
  20. + AC_CHECK_HEADERS([sys/capability.h])
  21. + AC_CHECK_LIB(cap, cap_set_proc, [
  22. + LIBCAP="-lcap"
  23. + AC_DEFINE(HAVE_LIBCAP, 1,
  24. + [Define to 1 if you have the cap library (-lcap).])
  25. + ])
  26. ])
  27. AC_SUBST(LIBCAP)
  28. -
  29. # Judy
  30. AC_ARG_WITH(Judy,
  31. [AS_HELP_STRING(--with-Judy,