patch-meson_build 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --- libESMTP-1.1.0.orig/meson.build 2021-06-04 18:18:50.000000000 +0200
  2. +++ libESMTP-1.1.0/meson.build 2024-02-24 14:07:23.535476167 +0100
  3. @@ -63,6 +63,7 @@ add_project_arguments(cc.get_supported_a
  4. ################################################################################
  5. dldep = cc.find_library('dl')
  6. ssldep = dependency('openssl', version : '>=1.1.0', required : get_option('tls'))
  7. +ntlmdep = dependency('openssl', version : '>=1.1.0', required : get_option('ntlm'))
  8. threaddep = dependency('threads', required : get_option('pthreads'))
  9. #XXX add test for libbind9.so
  10. @@ -71,6 +72,7 @@ lwresdep = cc.find_library('lwres', requ
  11. deps = [
  12. dldep,
  13. ssldep,
  14. + ntlmdep,
  15. threaddep,
  16. lwresdep,
  17. ]
  18. @@ -220,8 +222,13 @@ include_dir = include_directories('.')
  19. subdir('login')
  20. subdir('plain')
  21. subdir('crammd5')
  22. -if ssldep.found()
  23. - subdir('ntlm')
  24. +
  25. +if ntlmdep.found()
  26. + if cc.has_header('openssl/md4.h') and cc.has_function('MD4_Init', dependencies : ntlmdep)
  27. + subdir('ntlm')
  28. + else
  29. + error('MD4 is not supported in current openssl, unable to build NTLM plugin')
  30. + endif
  31. endif
  32. ################################################################################
  33. @@ -247,4 +254,6 @@ summary({'current:revision:age': libesmt
  34. 'STARTTLS': ssldep.found(),
  35. 'CHUNKING': get_option('bdat'),
  36. 'ETRN': get_option('etrn'),
  37. - 'XUSR': get_option('xusr')})
  38. + 'XUSR': get_option('xusr'),
  39. + 'NTLM': ntlmdep.found()})
  40. +