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.

75 lines
2.4 KiB

  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -333,30 +333,46 @@ AS_IF([test "x$enable_android" = "xyes"], [
  4. dnl optional parameter: Wifi-P2P support
  5. dnl -----------------------------------------------
  6. - PKG_CHECK_MODULES([WIFIP2P], wifip2p >= 0.1 , [
  7. - with_wifi_p2p="yes"
  8. - AC_SUBST(WIFIP2P_CFLAGS)
  9. - AC_SUBST(WIFIP2P_LIBS)
  10. - AC_DEFINE(WITH_WIFIP2P, [1], ["wifi-p2p support enabled"])
  11. - ], [
  12. - with_wifi_p2p="no"
  13. - AC_MSG_WARN([wifi-p2p library not found. wifi-p2p support is disabled.])
  14. - ])
  15. + AC_ARG_WITH([wifip2p],
  16. + AS_HELP_STRING([--without-wifip2p], [Build without wifip2p support]),
  17. + [
  18. + with_wifi_p2p="no"
  19. + AC_MSG_NOTICE([WIFIP2P support disabled])
  20. + ], [
  21. + PKG_CHECK_MODULES([WIFIP2P], wifip2p >= 0.1 , [
  22. + with_wifi_p2p="yes"
  23. + AC_SUBST(WIFIP2P_CFLAGS)
  24. + AC_SUBST(WIFIP2P_LIBS)
  25. + AC_DEFINE(WITH_WIFIP2P, [1], ["wifi-p2p support enabled"])
  26. + ], [
  27. + with_wifi_p2p="no"
  28. + AC_MSG_WARN([wifi-p2p library not found. wifi-p2p support is disabled.])
  29. + ])
  30. + ]
  31. + )
  32. - dnl -----------------------------------------------
  33. - dnl optional parameter: VMime support
  34. - dnl -----------------------------------------------
  35. -
  36. - PKG_CHECK_MODULES([VMIME], vmime >= 0.9.1 , [
  37. - with_vmime="yes"
  38. - AC_SUBST(VMIME_CFLAGS)
  39. - AC_SUBST(VMIME_LIBS)
  40. - AC_DEFINE(HAVE_VMIME, [1], ["Email Convergence Layer is available"])
  41. - AC_CHECK_HEADERS([vmime/utility/smartPtrInt.hpp])
  42. - ], [
  43. - with_vmime="no"
  44. - AC_MSG_WARN([VMime library not found. Email Convergence Layer is disabled.])
  45. - ])
  46. + dnl -----------------------------------------------
  47. + dnl optional parameter: VMime support
  48. + dnl -----------------------------------------------
  49. +
  50. + AC_ARG_WITH([vmime],
  51. + AS_HELP_STRING([--without-vmime], [Build without vmime support]),
  52. + [
  53. + with_vmime="no"
  54. + AC_MSG_NOTICE([VMIME support disabled])
  55. + ], [
  56. + PKG_CHECK_MODULES([VMIME], vmime >= 0.9.1 , [
  57. + with_vmime="yes"
  58. + AC_SUBST(VMIME_CFLAGS)
  59. + AC_SUBST(VMIME_LIBS)
  60. + AC_DEFINE(HAVE_VMIME, [1], ["Email Convergence Layer is available"])
  61. + AC_CHECK_HEADERS([vmime/utility/smartPtrInt.hpp])
  62. + ], [
  63. + with_vmime="no"
  64. + AC_MSG_WARN([VMime library not found. Email Convergence Layer is disabled.])
  65. + ])
  66. + ]
  67. + )
  68. dnl -----------------------------------------------
  69. dnl check for regex capabilities
  70. --
  71. 1.9.1