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.

61 lines
2.3KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_prog_nasm.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_PROG_NASM([ACTION-IF-NOT-FOUND])
  8. #
  9. # DESCRIPTION
  10. #
  11. # This macro searches for the NASM assembler and sets the variable "nasm"
  12. # to the name of the application or to "no" if not found. If
  13. # ACTION-IF-NOT-FOUND is not specified, configure will fail when the
  14. # program is not found.
  15. #
  16. # Example:
  17. #
  18. # AX_PROG_NASM()
  19. # AX_PROG_NASM([nasm_avail="no"])
  20. #
  21. # LICENSE
  22. #
  23. # Copyright (c) 2007,2009 Bogdan Drozdowski <bogdandr@op.pl>
  24. #
  25. # This program is free software: you can redistribute it and/or modify it
  26. # under the terms of the GNU Lesser General Public License as published by
  27. # the Free Software Foundation, either version 3 of the License, or (at
  28. # your option) any later version.
  29. #
  30. # This program is distributed in the hope that it will be useful, but
  31. # WITHOUT ANY WARRANTY; without even the implied warranty of
  32. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
  33. # General Public License for more details.
  34. #
  35. # You should have received a copy of the GNU Lesser General Public License
  36. # along with this program. If not, see <https://www.gnu.org/licenses/>.
  37. #
  38. # As a special exception, the respective Autoconf Macro's copyright owner
  39. # gives unlimited permission to copy, distribute and modify the configure
  40. # scripts that are the output of Autoconf when processing the Macro. You
  41. # need not follow the terms of the GNU General Public License when using
  42. # or distributing such scripts, even though portions of the text of the
  43. # Macro appear in them. The GNU General Public License (GPL) does govern
  44. # all other use of the material that constitutes the Autoconf Macro.
  45. #
  46. # This special exception to the GPL applies to versions of the Autoconf
  47. # Macro released by the Autoconf Archive. When you make and distribute a
  48. # modified version of the Autoconf Macro, you may extend this special
  49. # exception to the GPL to apply to your modified version as well.
  50. #serial 10
  51. AC_DEFUN([AX_PROG_NASM],[
  52. AC_CHECK_PROGS(nasm,[nasm nasmw],no)
  53. if test "x$nasm" = "xno" ;
  54. then
  55. ifelse($#,0,[AC_MSG_ERROR([NASM assembler not found])],
  56. $1)
  57. fi
  58. ])