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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [make/] [configure.ac] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
## Process this file with autoconf to produce a configure script.
2
##
3
## configure.ac,v 1.4 2002/05/01 23:11:05 joel Exp
4
 
5
##
6
## This script configures the configuration files below make/
7
##
8
 
9
AC_PREREQ(2.52)
10
AC_INIT([rtems-c-src-make],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com])
11
AC_CONFIG_SRCDIR([bsp.cfg.in])
12
RTEMS_TOP(../../..)
13
AC_CONFIG_AUX_DIR(../../..)
14
 
15
RTEMS_CANONICAL_TARGET_CPU
16
 
17
AM_INIT_AUTOMAKE([no-define foreign 1.6])
18
AM_MAINTAINER_MODE
19
 
20
RTEMS_ENABLE_MULTIPROCESSING
21
RTEMS_ENABLE_POSIX
22
RTEMS_ENABLE_ITRON
23
RTEMS_ENABLE_NETWORKING
24
RTEMS_ENABLE_RDBG
25
RTEMS_ENABLE_INLINES
26
RTEMS_ENABLE_CXX
27
RTEMS_ENABLE_BARE
28
 
29
RTEMS_ENV_RTEMSBSP
30
 
31
## BEGIN configure.host.in
32
 
33
AC_PATH_PROG(CAT,cat)
34
AC_PATH_PROG(CP,cp)
35
AC_PATH_PROG(MV,mv)
36
AC_PATH_PROG(LN,ln)
37
AC_PROG_LN_S
38
AC_PATH_PROG(CHMOD,chmod)
39
AC_PATH_PROG(SORT,sort)
40
RTEMS_PATH_PERL
41
 
42
AC_PATH_PROG(TOUCH,touch)
43
AC_PATH_PROG(CMP,cmp)
44
 
45
AC_PATH_PROG(SED,sed)
46
AC_PATH_PROGS(M4,gm4 m4)
47
 
48
RTEMS_PATH_KSH
49
 
50
## BEGIN configure.target.in
51
 
52
RTEMS_CHECK_CPU
53
RTEMS_CANONICAL_HOST
54
 
55
RTEMS_PROJECT_ROOT
56
 
57
RTEMS_PROG_CC_FOR_TARGET
58
 
59
## check for g++
60
if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
61
  RTEMS_PROG_CXX_FOR_TARGET
62
fi
63
 
64
RTEMS_CANONICALIZE_TOOLS
65
 
66
## if this is an i386, does gas have good code16 support?
67
RTEMS_I386_GAS_CODE16
68
 
69
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
70
RTEMS_BSP_ALIAS(${RTEMS_BSP})
71
RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
72
RTEMS_CHECK_NETWORKING(RTEMS_BSP)
73
RTEMS_CHECK_RDBG(RTEMS_BSP)
74
RTEMS_CHECK_POSIX_API(RTEMS_BSP)
75
RTEMS_CHECK_CXX(RTEMS_BSP)
76
RTEMS_CHECK_ITRON_API(RTEMS_BSP)
77
 
78
AC_SUBST(rtems_cv_prog_cc_cross)
79
AC_SUBST(RTEMS_HAS_CPLUSPLUS)
80
AC_SUBST(BARE_CPU_CFLAGS)
81
AC_SUBST(BARE_CPU_MODEL)
82
AC_SUBST(program_prefix)
83
AC_SUBST(CC_CFLAGS_DEFAULT)
84
AC_SUBST(CC_CFLAGS_DEBUG_V)
85
AC_SUBST(CC_CFLAGS_PROFILE_V)
86
AC_SUBST(CC_LDFLAGS_PROFILE_V)
87
 
88
# Collect the files needed to build a BSP
89
cfg_dir="${RTEMS_TOPdir}/make"
90
CUSTOM_CFG_FILES=""
91
f="${RTEMS_BSP}.cfg"
92
while test -n "$f"; do
93
  if test -r "${srcdir}/${cfg_dir}/custom/$f"; then
94
    AC_CONFIG_LINKS([custom/$f:${cfg_dir}/custom/$f])
95
    CUSTOM_CFG_FILES="$CUSTOM_CFG_FILES custom/$f"
96
    f=`grep "^include.*make/custom" ${srcdir}/${cfg_dir}/custom/$f \
97
    | sed \
98
      -e 's%^.*custom\/%%' \
99
      -e s%\$\(RTEMS_HOST\)%${RTEMS_HOST}% \
100
      -e 's%default\.cfg%%'`;
101
  else break; fi;
102
done
103
AC_SUBST(CUSTOM_CFG_FILES)
104
AC_SUBST(cfg_dir)
105
 
106
# Symlink the *.cfg files from the toplevel make directory into the build
107
# trees c//make subdirectories
108
 
109
AC_CONFIG_LINKS([
110
  Templates/Makefile.lib:${cfg_dir}/Templates/Makefile.lib
111
  Templates/Makefile.leaf:${cfg_dir}/Templates/Makefile.leaf
112
  Templates/Makefile.dir:${cfg_dir}/Templates/Makefile.dir
113
  compilers/gcc-target-default.cfg:${cfg_dir}/compilers/gcc-target-default.cfg
114
  directory.cfg:${cfg_dir}/directory.cfg
115
  lib.cfg:${cfg_dir}/lib.cfg
116
  README:${cfg_dir}/README
117
  leaf.cfg:leaf.cfg
118
],,[
119
  RTEMS_TOPdir=${RTEMS_TOPdir}
120
  cfg_dir=${cfg_dir}
121
])
122
 
123
# Explicitly list all Makefiles here
124
AC_CONFIG_FILES([Makefile
125
Makefile.inc
126
host.cfg
127
bsp.cfg
128
custom/default.cfg
129
])
130
 
131
AC_CONFIG_COMMANDS([default],
132
[[${MAKE} $RTEMS_BSP.cache
133
]],
134
[[MAKE=${MAKE-make}
135
  RTEMS_BSP=${RTEMS_BSP}
136
]])
137
 
138
AC_OUTPUT

powered by: WebSVN 2.1.0

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