quota-4.03-explicitely_print_disabled_options.patch 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. commit 6ccb66159a9eee6ca114b11b70eb06f4ac6900d7
  2. Author: Jan Kara <jack@suse.cz>
  3. Date: Mon Jan 4 15:36:27 2016 +0100
  4. Print explicitely disabled options properly
  5. Currently we printed only an empty string when some build option was
  6. disabled explicitely via --disable-foo. Print 'no' in that case as well.
  7. Signed-off-by: Jan Kara <jack@suse.cz>
  8. diff --git a/configure.ac b/configure.ac
  9. index 39631c4..3ba1386 100644
  10. --- a/configure.ac
  11. +++ b/configure.ac
  12. @@ -74,7 +74,7 @@ AC_ARG_ENABLE([ldapmail],
  13. AS_IF([test "x$enable_ldapmail" != "xno"], [
  14. build_ldap="yes"
  15. AC_CHECK_LIB([ldap], [ldap_initialize], [], [
  16. - build_ldap=no
  17. + build_ldap="no"
  18. AS_IF([test "x$enable_ldapmail" = "xyes"], [
  19. AC_MSG_ERROR([LDAP support required but library not found.]);
  20. ])
  21. @@ -84,6 +84,8 @@ AS_IF([test "x$enable_ldapmail" != "xno"], [
  22. AC_DEFINE([USE_LDAP_MAIL_LOOKUP], 1, [Lookup email address using LDAP])
  23. COMPILE_OPTS="$COMPILE_OPTS USE_LDAP_MAIL_LOOKUP"
  24. ])
  25. +], [
  26. + build_ldap="no"
  27. ])
  28. AC_SUBST(LDAP_LIBS)
  29. @@ -113,6 +115,8 @@ AS_IF([test "x$enable_ext2direct" != "xno"], [
  30. AC_DEFINE([EXT2_DIRECT], 1, [Scanning of ext? filesystems using e2fslib])
  31. COMPILE_OPTS="$COMPILE_OPTS EXT2_DIRECT"
  32. ])
  33. +], [
  34. + build_ext2direct="no"
  35. ])
  36. AC_SUBST(EXT2FS_CFLAGS)
  37. AC_SUBST(EXT2FS_LIBS)
  38. @@ -141,6 +145,8 @@ AS_IF([test "x$enable_netlink" != "xno"], [
  39. AC_MSG_ERROR([Required libnl3 libraries for quota netlink daemon not found.])
  40. ])
  41. ])
  42. +], [
  43. + build_netlink="no"
  44. ])
  45. AM_CONDITIONAL([WITH_NETLINK], [test "x$build_netlink" != "xno"])
  46. AC_SUBST(DBUS_CFLAGS)
  47. @@ -171,6 +177,8 @@ AS_IF([test "x$enable_libwrap" != "xno"], [
  48. AC_DEFINE([HOSTS_ACCESS], 1, [Use hosts.allow and hosts.deny for access checking of rpc.rquotad])
  49. COMPILE_OPTS="$COMPILE_OPTS HOSTS_ACCESS"
  50. ])
  51. +], [
  52. + build_libwrap="no"
  53. ])
  54. AC_SUBST(WRAP_LIBS)
  55. @@ -199,6 +207,8 @@ AS_IF([test x"$enable_rpc" != "xno"], [
  56. AC_DEFINE([RPC], 1, [Support for RPC])
  57. COMPILE_OPTS="$COMPILE_OPTS RPC"
  58. ])
  59. +], [
  60. + build_rpc="no"
  61. ])
  62. AM_CONDITIONAL([WITH_RPC], [test x"$build_rpc" != "xno"])