]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/m32r/configure.in
* configure.in: Call SIM_AC_OPTION_INLINE.
[thirdparty/binutils-gdb.git] / sim / m32r / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 sinclude(../common/aclocal.m4)
3 AC_PREREQ(2.5)dnl
4 AC_INIT(Makefile.in)
5
6 SIM_AC_COMMON
7
8 sim_link_files="${sim_link_files} m32r-sim.h ../../opcodes/m32r-opc.h"
9 sim_link_links="${sim_link_links} cpu-sim.h cpu-opc.h"
10
11 SIM_AC_OPTION_ENDIAN(BIG_ENDIAN)
12 SIM_AC_OPTION_ALIGNMENT(NONSTRICT_ALIGNMENT)
13 SIM_AC_OPTION_HOSTENDIAN
14 SIM_AC_OPTION_SCACHE(16384)
15 SIM_AC_OPTION_DEFAULT_MODEL(m32r/d)
16 SIM_AC_OPTION_ENVIRONMENT
17 SIM_AC_OPTION_INLINE()
18
19 cgen_maint=no
20 # Default is to use one in build tree.
21 cgen=../../cgen/cgen
22 cgendir='$(srcdir)/../../cgen'
23 # Having --enable-maintainer-mode take arguments is another way to go.
24 # ??? One can argue --with is more appropriate if one wants to specify
25 # a directory name, but what we're doing here is an enable/disable kind
26 # of thing and specifying both --enable and --with is klunky.
27 # If you reeely want this to be --with, go ahead and change it.
28 AC_ARG_ENABLE(cgen-maint,
29 [ --enable-cgen-maint[=dir] build cgen generated files],
30 [case "${enableval}" in
31 yes) cgen_maint=yes ;;
32 no) cgen_maint=no ;;
33 *)
34 # argument is cgen install directory (not implemented yet).
35 # Having a `share' directory might be more appropriate for the .scm,
36 # .cpu, etc. files.
37 cgendir=${cgen_maint}/lib/cgen
38 cgen=${cgendir}/bin/cgen
39 ;;
40 esac])dnl
41 dnl AM_CONDITIONAL(CGEN_MAINT, test x${cgen_maint} != xno)
42 if test x${cgen_maint} != xno ; then
43 CGEN_MAINT=''
44 else
45 CGEN_MAINT='#'
46 fi
47 AC_SUBST(CGEN_MAINT)
48 AC_SUBST(cgendir)
49 AC_SUBST(cgen)
50
51 SIM_AC_OUTPUT