Collection of DPF-based plugins for packaging
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.

35 lines
1.1KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_prog_md5sum.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_PROG_MD5SUM([ACTION-IF-NOT-FOUND])
  8. #
  9. # DESCRIPTION
  10. #
  11. # This macro find a md5sum application and set the variable md5sum to the
  12. # name of the application or to no if not found if ACTION-IF-NOT-FOUND is
  13. # not specified, configure fail when then application is not found.
  14. #
  15. # LICENSE
  16. #
  17. # Copyright (c) 2009 Gabriele Bartolini <gabriele.bartolini@devise.it>
  18. #
  19. # Copying and distribution of this file, with or without modification, are
  20. # permitted in any medium without royalty provided the copyright notice
  21. # and this notice are preserved. This file is offered as-is, without any
  22. # warranty.
  23. #serial 8
  24. AC_DEFUN([AX_PROG_MD5SUM],[
  25. # Mac users have md5 instead of md5sum
  26. AC_CHECK_PROGS(md5sum,[md5sum md5],no)
  27. if test $md5sum = "no" ;
  28. then
  29. ifelse($#,0,[AC_MSG_ERROR([Unable to find the md5sum application (or equivalent)])],
  30. $1)
  31. fi
  32. ])