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.

42 lines
1.5 KiB

  1. --- a/wscript_configure_embedded_heimdal
  2. +++ b/wscript_configure_embedded_heimdal
  3. @@ -2,3 +2,14 @@ if not conf.env['FLEX']:
  4. conf.fatal("Embedded Heimdal build requires flex but it was not found. Install flex or use --with-system-mitkrb5 or --with-system-heimdalkrb5")
  5. conf.RECURSE('source4/heimdal_build')
  6. +
  7. +def check_system_heimdal_binary(name):
  8. + if conf.LIB_MAY_BE_BUNDLED(name):
  9. + return False
  10. + if not conf.find_program(name, var=name.upper()):
  11. + return False
  12. + conf.define('USING_SYSTEM_%s' % name.upper(), 1)
  13. + return True
  14. +
  15. +check_system_heimdal_binary("compile_et")
  16. +check_system_heimdal_binary("asn1_compile")
  17. --- a/wscript_configure_system_heimdal
  18. +++ b/wscript_configure_system_heimdal
  19. @@ -37,14 +37,6 @@ def check_system_heimdal_lib(name, funct
  20. conf.define('USING_SYSTEM_%s' % name.upper(), 1)
  21. return True
  22. -def check_system_heimdal_binary(name):
  23. - if conf.LIB_MAY_BE_BUNDLED(name):
  24. - return False
  25. - if not conf.find_program(name, var=name.upper()):
  26. - return False
  27. - conf.define('USING_SYSTEM_%s' % name.upper(), 1)
  28. - return True
  29. -
  30. check_system_heimdal_lib("com_err", "com_right_r com_err", "com_err.h")
  31. if check_system_heimdal_lib("roken", "rk_socket_set_reuseaddr", "roken.h"):
  32. @@ -96,7 +88,4 @@ finally:
  33. #if conf.CHECK_BUNDLED_SYSTEM('tommath', checkfunctions='mp_init', headers='tommath.h'):
  34. # conf.define('USING_SYSTEM_TOMMATH', 1)
  35. -check_system_heimdal_binary("compile_et")
  36. -check_system_heimdal_binary("asn1_compile")
  37. -
  38. conf.define('USING_SYSTEM_KRB5', 1)