1
0

patch-configure_ac 814 B

12345678910111213141516171819202122232425
  1. --- miredo-1.2.6.orig/configure.ac 2013-05-23 17:51:41.000000000 +0200
  2. +++ miredo-1.2.6/configure.ac 2013-11-08 16:09:54.000000000 +0100
  3. @@ -149,12 +149,17 @@ LIBS="$LIBS_save"
  4. AS_MESSAGE([checking optional features...])
  5. # POSIX capabilities
  6. +AC_ARG_WITH(libcap,
  7. + [AS_HELP_STRING(--with-libcap,
  8. + [use POSIX capabilities (default auto)])])
  9. LIBCAP=""
  10. -AC_CHECK_HEADERS([sys/capability.h], [
  11. - AC_CHECK_LIB(cap, cap_set_proc, [
  12. - LIBCAP="-lcap"
  13. - AC_DEFINE(HAVE_LIBCAP, 1,
  14. - [Define to 1 if you have the `cap' library (-lcap).])
  15. +AS_IF([test "x${with_libcap}" != "xno"], [
  16. + AC_CHECK_HEADERS([sys/capability.h], [
  17. + AC_CHECK_LIB(cap, cap_set_proc, [
  18. + LIBCAP="-lcap"
  19. + AC_DEFINE(HAVE_LIBCAP, 1,
  20. + [Define to 1 if you have the `cap' library (-lcap).])
  21. + ])
  22. ])
  23. ])
  24. AC_SUBST(LIBCAP)