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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [or1ksim/] [testbench/] [configure.in] - Rev 410

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

dnl or32 test suite - top level
dnl
dnl Copyright (C) 2001 Marko Mlinar
dnl
dnl This file is part of OpenRISC 1000 Architectural Simulator.
dnl
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2 of the License, or
dnl (at your option) any later version.
dnl
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with this program; if not, write to the Free Software
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
dnl
dnl Process this file with autoconf to produce a configure script.

dnl disable cache, since it causes troubles when changing hosts
dnl define([AC_CACHE_LOAD], )dnl
dnl define([AC_CACHE_SAVE], )dnl

AC_REVISION([for or1ksim-1.2, version 2.14, from autoconf version] AC_ACVERSION)
AC_PREREQ(2.10)
AC_INIT(support/support.h)
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE(or1ksimtest, 1.3)

dnl Checks for programs.
AC_PROG_MAKE_SET
AC_PROG_INSTALL
AC_CHECK_TOOL(CC, $target-gcc, cc)
AC_CHECK_TOOL(RANLIB, $target-ranlib, ranlib)
AC_CHECK_TOOL(LD, $target-ld, ld)
AC_CHECK_TOOL(SIM, $target-sim, sim)
AC_ISC_POSIX
AC_HEADER_STDC

MAKE_SHELL=/bin/sh
AC_SUBST(MAKE_SHELL)

dnl Compiler options.
AC_PROG_GCC_TRADITIONAL
AC_SUBST(CFLAGS)
set -- $CFLAGS
COMPILE_OR1K=unknown
AC_SUBST(TESTS_ENV)
TESTS_ENV=
AC_SUBST(OR1K_LDFLAGS)
OR1K_LDFLAGS=
case $target in
        or1k*|or32*)
                CFLAGS="$CFLAGS -nostdlib -mhard-div"
                COMPILE=or1k
                TESTS_ENV="$SIM"
                OR1K_LDFLAGS="-T\${top_srcdir}/except.ld"
                ;;
esac
echo $TESTS_ENV
AM_CONDITIONAL(OR1K_EXCEPT, test x$COMPILE = xor1k)

copysec=
AC_MSG_CHECKING(whether to enable section copying)
AC_ARG_ENABLE(copysec,
    [  --enable-copysec      generate section copy code], [
    case "$enableval" in
        yes) copysec="-DCOPY_SECTIONS" ;;
    esac
])
AC_MSG_RESULT(${enable_copysec-no})


CFLAGS="$CFLAGS -Wall $copysec"

AC_SUBST(INCLUDES)
INCLUDES="-I\${top_srcdir}/support"

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE

dnl Create output files.
AC_OUTPUT([Makefile support/Makefile uos/Makefile])

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

powered by: WebSVN 2.1.0

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