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 1782

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 1266 jurem
AM_PROG_AS
44
 
45 224 markom
MAKE_SHELL=/bin/sh
46
AC_SUBST(MAKE_SHELL)
47
 
48
dnl Compiler options.
49
AC_PROG_GCC_TRADITIONAL
50 493 markom
dnl set -- $CFLAGS
51 568 markom
CFLAGS="-Wall -g"
52 493 markom
 
53 224 markom
COMPILE_OR1K=unknown
54 493 markom
 
55 308 markom
AC_SUBST(TESTS_ENV)
56
TESTS_ENV=
57 451 markom
AC_SUBST(OR1K_SRCDIR)
58
OR1K_SRCDIR="./${top_srcdir}"
59 228 erez
case $target in
60 224 markom
        or1k*|or32*)
61 381 markom
                CFLAGS="$CFLAGS -nostdlib -mhard-div"
62 224 markom
                COMPILE=or1k
63 308 markom
                TESTS_ENV="$SIM"
64 224 markom
                ;;
65
esac
66 493 markom
dnl echo $TESTS_ENV
67 224 markom
AM_CONDITIONAL(OR1K_EXCEPT, test x$COMPILE = xor1k)
68
 
69 410 simons
 
70 493 markom
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 224 markom
AC_SUBST(INCLUDES)
91
INCLUDES="-I\${top_srcdir}/support"
92 1266 jurem
CCASFLAGS="${CFLAGS} ${INCLUDES}"
93 224 markom
 
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.