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

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_1_0/] [or1ksim/] [configure.in] - Blame information for rev 16

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

Line No. Rev Author Line
1 7 jrydberg
dnl
2
dnl Configure script for the OpenRISC 1000 simulator
3
dnl
4
dnl report bugs to jrydberg@phx.pp.se
5
dnl
6
dnl Process this file with autoconf to produce a configure script.
7
 
8
AC_INIT(cpu/or1k/execute.c)
9 10 jrydberg
AC_CANONICAL_SYSTEM
10 7 jrydberg
AM_INIT_AUTOMAKE(or1ksim, 1.1)
11
AM_CONFIG_HEADER(config.h)
12
 
13
AC_REVISION([for or1ksim-1.1, version 2.14, from autoconf version] AC_ACVERSION)
14
SIMVERSION=1.1
15
 
16
dnl make sure we are using a recent autoconf version
17
AC_PREREQ(2.10)
18
AC_CANONICAL_HOST
19
 
20
# We want these before the checks, so the checks can modify their values.
21
test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
22
 
23
AC_PROG_CC
24
AC_MINIX
25
 
26
AC_SET_MAKE
27
 
28
# If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS.
29
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
30
 
31
AC_PROG_GCC_TRADITIONAL
32
AC_PROG_INSTALL
33
AC_CHECK_PROG(AR, ar, ar)
34
dnl Set default for ARFLAGS, since autoconf does not have a macro for it.
35
dnl This allows people to set it when running configure or make
36
test -n "$ARFLAGS" || ARFLAGS="cr"
37
AC_PROG_RANLIB
38
 
39
MAKE_SHELL=/bin/sh
40
 
41
AC_SUBST(MAKE_SHELL)
42
 
43
AC_RETSIGTYPE
44
AC_HEADER_STAT
45
AC_HEADER_DIRENT
46
AC_CHECK_FUNCS(strcasecmp select setenv putenv tcgetattr setlocale lstat)
47
AC_FUNC_STRCOLL
48
AC_CHECK_HEADERS(unistd.h stdlib.h varargs.h stdarg.h string.h \
49
                sys/ptem.h sys/pte.h sys/stream.h sys/select.h \
50
                termcap.h termios.h termio.h sys/file.h locale.h)
51
 
52 16 jrydberg
dnl check for GNU readline
53
AC_ARG_ENABLE(readline,
54
  [  --enable-readline       Use GNU readline], AC_CHECK_LIB(readline, add_history))
55
 
56 7 jrydberg
dnl yuck
57
case "$host_os" in
58
aix*)   prefer_curses=yes ;;
59
esac
60
 
61
case "$host_cpu" in
62
*cray*) LOCAL_CFLAGS=-DCRAY ;;
63
esac
64
 
65
case "$host_os" in
66
isc*)   LOCAL_CFLAGS=-Disc386 ;;
67
esac
68
 
69
BUILD_DIR=`pwd`
70
AC_SUBST(BUILD_DIR)
71
 
72
AC_SUBST(CFLAGS)
73
AC_SUBST(LOCAL_CFLAGS)
74
AC_SUBST(LOCAL_LDFLAGS)
75
AC_SUBST(LOCAL_DEFS)
76
 
77
AC_SUBST(AR)
78
AC_SUBST(ARFLAGS)
79
 
80
AC_SUBST(host_cpu)
81
AC_SUBST(host_os)
82
AC_SUBST(host)
83
 
84
AC_SUBST(SUMVERSION)
85
AC_SUBST(TERMCAP_LIB)
86
 
87
dnl yuck
88 10 jrydberg
case "$target_cpu" in
89
or1k*)  CPU_ARCH=or1k;;
90
dlx*)   CPU_ARCH=dlx;;
91
esac
92 7 jrydberg
AC_SUBST(CPU_ARCH)
93
 
94
dnl yuck
95
INCLUDES="-I\${top_srcdir}/cpu/common -I\${top_srcdir}/cpu/$CPU_ARCH -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
96
-I\${top_srcdir}/bpb"
97
AC_SUBST(INCLUDES)
98
 
99
 
100
AC_OUTPUT([Makefile bpb/Makefile cache/Makefile cpu/Makefile
101 10 jrydberg
        cpu/common/Makefile cpu/or1k/Makefile cpu/dlx/Makefile
102 7 jrydberg
        support/Makefile mmu/Makefile],
103
[
104
# Makefile uses this timestamp file to record whether config.h is up to date.
105
echo > stamp-h
106
])

powered by: WebSVN 2.1.0

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