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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [testbench/] [configure.in] - Blame information for rev 410

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 224 markom
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 228 erez
AC_CHECK_TOOL(CC, $target-gcc, cc)
37
AC_CHECK_TOOL(RANLIB, $target-ranlib, ranlib)
38
AC_CHECK_TOOL(LD, $target-ld, ld)
39 308 markom
AC_CHECK_TOOL(SIM, $target-sim, sim)
40 224 markom
AC_ISC_POSIX
41
AC_HEADER_STDC
42
 
43
MAKE_SHELL=/bin/sh
44
AC_SUBST(MAKE_SHELL)
45
 
46
dnl Compiler options.
47
AC_PROG_GCC_TRADITIONAL
48
AC_SUBST(CFLAGS)
49
set -- $CFLAGS
50
COMPILE_OR1K=unknown
51 308 markom
AC_SUBST(TESTS_ENV)
52
TESTS_ENV=
53 385 markom
AC_SUBST(OR1K_LDFLAGS)
54
OR1K_LDFLAGS=
55 228 erez
case $target in
56 224 markom
        or1k*|or32*)
57 381 markom
                CFLAGS="$CFLAGS -nostdlib -mhard-div"
58 224 markom
                COMPILE=or1k
59 308 markom
                TESTS_ENV="$SIM"
60 385 markom
                OR1K_LDFLAGS="-T\${top_srcdir}/except.ld"
61 224 markom
                ;;
62
esac
63 308 markom
echo $TESTS_ENV
64 224 markom
AM_CONDITIONAL(OR1K_EXCEPT, test x$COMPILE = xor1k)
65
 
66 410 simons
copysec=
67
AC_MSG_CHECKING(whether to enable section copying)
68
AC_ARG_ENABLE(copysec,
69
    [  --enable-copysec      generate section copy code], [
70
    case "$enableval" in
71
        yes) copysec="-DCOPY_SECTIONS" ;;
72
    esac
73
])
74
AC_MSG_RESULT(${enable_copysec-no})
75
 
76
 
77
CFLAGS="$CFLAGS -Wall $copysec"
78
 
79 224 markom
AC_SUBST(INCLUDES)
80
INCLUDES="-I\${top_srcdir}/support"
81
 
82
dnl Checks for typedefs, structures, and compiler characteristics.
83
AC_C_CONST
84
AC_C_INLINE
85
 
86
dnl Create output files.
87
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.