Commit | Line | Data |
---|---|---|
646c6f2b | 1 | dnl Process this file with autoconf to produce a configure script. |
5da9ce07 | 2 | sinclude(../common/aclocal.m4) |
646c6f2b DE |
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) | |
76a6247f | 12 | SIM_AC_OPTION_ALIGNMENT(NONSTRICT_ALIGNMENT) |
646c6f2b DE |
13 | SIM_AC_OPTION_HOSTENDIAN |
14 | SIM_AC_OPTION_SCACHE(1024) | |
15 | SIM_AC_OPTION_DEFAULT_MODEL(m32r/d) | |
bbb9b83c | 16 | SIM_AC_OPTION_ENVIRONMENT |
646c6f2b | 17 | |
77e0fb08 DE |
18 | cgen_maint="#" |
19 | # Having --enable-maintainer-mode take arguments is another way to go. | |
20 | AC_ARG_ENABLE(cgen-maint, | |
21 | [ --enable-cgen-maint build cgen generated files], | |
22 | [case "${enableval}" in | |
23 | yes) cgen_maint="" ;; | |
24 | no) ;; | |
25 | *) AC_MSG_ERROR([bad value ${enableval} for simulator cgen-maint option]) ;; | |
26 | esac])dnl | |
27 | AC_SUBST(cgen_maint) | |
28 | if test "x${cgen_maint}" = x ; then | |
b8641a4d DE |
29 | AC_CHECK_PROG(SCHEME, guile, guile, guile) |
30 | fi | |
31 | ||
646c6f2b | 32 | SIM_AC_OUTPUT |