1 # ===========================================================================
2 # http://www.gnu.org/software/autoconf-archive/ax_prog_nasm.html
3 # ===========================================================================
7 # AX_PROG_NASM([ACTION-IF-NOT-FOUND])
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.
19 # AX_PROG_NASM([nasm_avail="no"])
23 # Copyright (c) 2007,2009 Bogdan Drozdowski <bogdandr@op.pl>
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.
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.
35 # You should have received a copy of the GNU Lesser General Public License
36 # along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
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.
53 AC_DEFUN([AX_PROG_NASM],[
54 AC_CHECK_PROGS(nasm,[nasm nasmw],no)
55 if test "x$nasm" = "xno" ;
57 ifelse($#,0,[AC_MSG_ERROR([NASM assembler not found])],