]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/rx/configure.in
[sim/rx]
[thirdparty/binutils-gdb.git] / sim / rx / configure.in
CommitLineData
4f8d4a38
DD
1dnl Process this file with autoconf to produce a configure script.
2
dc3cf14f 3dnl Copyright (C) 2005, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
4f8d4a38
DD
4dnl Contributed by Red Hat, Inc.
5dnl
6dnl This file is part of the GNU simulators.
7dnl
8dnl This program is free software; you can redistribute it and/or modify
9dnl it under the terms of the GNU General Public License as published by
10dnl the Free Software Foundation; either version 3 of the License, or
11dnl (at your option) any later version.
12dnl
13dnl This program is distributed in the hope that it will be useful,
14dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
15dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16dnl GNU General Public License for more details.
17dnl
18dnl You should have received a copy of the GNU General Public License
19dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
20dnl
21AC_PREREQ(2.5)dnl
22AC_INIT(Makefile.in)
23AC_CONFIG_HEADER(config.h:config.in)
2388a152 24AC_CHECK_HEADERS(getopt.h)
4f8d4a38
DD
25
26sinclude(../common/aclocal.m4)
27
93378652
DD
28AC_ARG_ENABLE(cycle-accurate,
29[ --disable-cycle-accurate ],
30[case "${enableval}" in
31yes | no) ;;
32*) AC_MSG_ERROR(bad value ${enableval} given for --enable-cycle-accurate option) ;;
33esac])
34
35AC_ARG_ENABLE(cycle-stats,
36[ --disable-cycle-stats ],
37[case "${enableval}" in
38yes | no) ;;
39*) AC_MSG_ERROR(bad value ${enableval} given for --enable-cycle-stats option) ;;
40esac])
41
42echo enable_cycle_accurate is $enable_cycle_accurate
43echo enable_cycle_stats is $enable_cycle_stats
44
45if test "x${enable_cycle_accurate}" != xno; then
46AC_DEFINE([CYCLE_ACCURATE])
47
48 if test "x${enable_cycle_stats}" != xno; then
49 AC_DEFINE([CYCLE_STATS])
50 fi
51else
52 if test "x${enable_cycle_stats}" != xno; then
53 AC_ERROR([cycle-stats not available without cycle-accurate])
54 fi
55fi
56
57
4f8d4a38
DD
58# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
59# it by inlining the macro's contents.
60sinclude(../common/common.m4)
61
62SIM_AC_OUTPUT