OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [or1ksim/] [or1ksim-0.3.0/] [testbench/] [configure.in] - Blame information for rev 21

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 jeremybenn
dnl or32 test suite - top level
2
dnl
3
dnl Copyright (C) 2001 Marko Mlinar
4
dnl
5
dnl This file is part of OpenRISC 1000 Architectural Simulator.
6
dnl
7
dnl This program is free software; you can redistribute it and/or modify
8
dnl it under the terms of the GNU General Public License as published by
9
dnl the Free Software Foundation; either version 2 of the License, or
10
dnl (at your option) any later version.
11
dnl
12
dnl This program is distributed in the hope that it will be useful,
13
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
14
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
dnl GNU General Public License for more details.
16
dnl
17
dnl You should have received a copy of the GNU General Public License
18
dnl along with this program; if not, write to the Free Software
19
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20
dnl
21
dnl Process this file with autoconf to produce a configure script.
22
 
23
dnl disable cache, since it causes troubles when changing hosts
24
dnl define([AC_CACHE_LOAD], )dnl
25
dnl define([AC_CACHE_SAVE], )dnl
26
 
27
AC_REVISION([for or1ksim-1.2, version 2.14, from autoconf version] AC_ACVERSION)
28
AC_PREREQ(2.10)
29
AC_INIT(support/support.h)
30
AC_CANONICAL_HOST
31
AM_INIT_AUTOMAKE(or1ksimtest, 1.3)
32
 
33
dnl Checks for programs.
34
AC_PROG_MAKE_SET
35
AC_PROG_INSTALL
36
AC_CHECK_TOOL(CC, $target-gcc, cc)
37
AC_CHECK_TOOL(RANLIB, $target-ranlib, ranlib)
38
AC_CHECK_TOOL(LD, $target-ld, ld)
39
AC_CHECK_TOOL(SIM, $target-sim, sim)
40
AC_ISC_POSIX
41
AC_HEADER_STDC
42
 
43
AM_PROG_AS
44
 
45
MAKE_SHELL=/bin/sh
46
AC_SUBST(MAKE_SHELL)
47
 
48
dnl Compiler options.
49
AC_PROG_GCC_TRADITIONAL
50
dnl set -- $CFLAGS
51
CFLAGS="-Wall -g"
52
 
53
COMPILE_OR1K=unknown
54
 
55
AC_SUBST(TESTS_ENV)
56
TESTS_ENV=
57
AC_SUBST(OR1K_SRCDIR)
58
OR1K_SRCDIR="./${top_srcdir}"
59
case $target in
60
        or1k*|or32*)
61
                CFLAGS="$CFLAGS -nostdlib -mhard-div"
62
                COMPILE=or1k
63
                TESTS_ENV="$SIM"
64
                ;;
65
esac
66
dnl echo $TESTS_ENV
67
AM_CONDITIONAL(OR1K_EXCEPT, test x$COMPILE = xor1k)
68
 
69
 
70
dnl optimizations level
71
AC_MSG_CHECKING(whether to enable optimizations)
72
AC_ARG_ENABLE(opt,
73
    [  --enable-opt      enable optimizations
74
  --enable-opt=level     same as gcc -O switch  ], [
75
    case "$enableval" in
76
        yes)
77
            CFLAGS="$CFLAGS -O"
78
            ;;
79
        *)
80
            CFLAGS="$CFLAGS -O$enableval"
81
            ;;
82
    esac
83
])
84
AC_MSG_RESULT(${enable_opt-default})
85
 
86
case "$enable_debugging" in
87
    yes) AC_CHECK_LIB(efence, malloc) ;;
88
esac
89
 
90
AC_SUBST(INCLUDES)
91
INCLUDES="-I\${top_srcdir}/support"
92
CCASFLAGS="${CFLAGS} ${INCLUDES}"
93
 
94
dnl Checks for typedefs, structures, and compiler characteristics.
95
AC_C_CONST
96
AC_C_INLINE
97
 
98
dnl Create output files.
99
AC_OUTPUT([Makefile support/Makefile uos/Makefile])

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.