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.
 
 
 
 
 
 

36 lines
1.4 KiB

  1. dnl Guix --- Nix package management from Guile. -*- coding: utf-8 -*-
  2. dnl Copyright (C) 2012 Ludovic Courtès <ludo@gnu.org>
  3. dnl
  4. dnl This file is part of Guix.
  5. dnl
  6. dnl Guix is free software; you can redistribute it and/or modify it
  7. dnl under the terms of the GNU General Public License as published by
  8. dnl the Free Software Foundation; either version 3 of the License, or (at
  9. dnl your option) any later version.
  10. dnl
  11. dnl Guix is distributed in the hope that it will be useful, but
  12. dnl WITHOUT ANY WARRANTY; without even the implied warranty of
  13. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. dnl GNU General Public License for more details.
  15. dnl
  16. dnl You should have received a copy of the GNU General Public License
  17. dnl along with Guix. If not, see <http://www.gnu.org/licenses/>.
  18. dnl GUIX_ASSERT_LIBGCRYPT_USABLE
  19. dnl
  20. dnl Assert that GNU libgcrypt is usable from Guile.
  21. AC_DEFUN([GUIX_ASSERT_LIBGCRYPT_USABLE],
  22. [AC_CACHE_CHECK([whether $LIBGCRYPT can be dynamically loaded],
  23. [guix_cv_libgcrypt_usable_p],
  24. [GUILE_CHECK([retval],
  25. [(dynamic-func \"gcry_md_hash_buffer\" (dynamic-link \"$LIBGCRYPT\"))])
  26. if test "$retval" = 0; then
  27. guix_cv_libgcrypt_usable_p="yes"
  28. else
  29. guix_cv_libgcrypt_usable_p="no"
  30. fi])
  31. if test "x$guix_cv_libgcrypt_usable_p" != "xyes"; then
  32. AC_MSG_ERROR([GNU libgcrypt does not appear to be usable; see `--with-libgcrypt-prefix' and `README'.])
  33. fi])