OpenSDE Packages Database (without history before r20070)
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.

18 lines
572 B

  1. # we patch in libgcrypt.m4 and need to call autoreconf to be able to
  2. # select an alternative crypto backend
  3. hook_add preconf 9 'autoreconf -vfi'
  4. if ! pkginstalled -f libgcrypt; then
  5. echo_warning "Cannot use default crypto backend (libgcrypt missing)"
  6. backend=
  7. # select alternative crypto backend in that particular order
  8. for x in openssl nettle nss; do
  9. [ -z "$backend" ] || break;
  10. if pkginstalled -f $x; then
  11. backend=$x
  12. fi
  13. done
  14. echo_status "Selecting alternative crypto backend ($backend)"
  15. var_append extraconfopt ' ' "--with-crypto_backend=$backend"
  16. fi