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.

62 lines
2.3KB

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