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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [make/] [configure.in] - Blame information for rev 757

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

Line No. Rev Author Line
1 30 unneback
dnl Process this file with autoconf to produce a configure script.
2
dnl
3
dnl  $Id: configure.in,v 1.2 2001-09-27 12:02:06 chris Exp $
4
 
5
dnl
6
dnl This script configures the configuration files below make/
7
dnl
8
 
9
AC_PREREQ(2.13)
10
AC_INIT(main.cfg.in)
11
RTEMS_TOP(../../..)
12
AC_CONFIG_AUX_DIR(../../..)
13
 
14
RTEMS_CANONICAL_TARGET_CPU
15
 
16
AM_INIT_AUTOMAKE(rtems-c-src-make,$RTEMS_VERSION,no)
17
AM_MAINTAINER_MODE
18
 
19
RTEMS_ENABLE_MULTIPROCESSING
20
RTEMS_ENABLE_POSIX
21
RTEMS_ENABLE_ITRON
22
RTEMS_ENABLE_NETWORKING
23
RTEMS_ENABLE_RDBG
24
RTEMS_ENABLE_INLINES
25
RTEMS_ENABLE_CXX
26
RTEMS_ENABLE_GCC28
27
RTEMS_ENABLE_BARE
28
 
29
RTEMS_ENV_RTEMSBSP
30
 
31
dnl 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
dnl 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
dnl 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
dnl 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_CHECK_MULTIPROCESSING(RTEMS_BSP)
71
RTEMS_CHECK_NETWORKING(RTEMS_BSP)
72
RTEMS_CHECK_RDBG(RTEMS_BSP)
73
RTEMS_CHECK_POSIX_API(RTEMS_BSP)
74
RTEMS_CHECK_CXX(RTEMS_BSP)
75
RTEMS_CHECK_ITRON_API(RTEMS_BSP)
76
 
77
AC_SUBST(rtems_cv_prog_cc_cross)
78
AC_SUBST(RTEMS_HAS_CPLUSPLUS)
79
AC_SUBST(RTEMS_USE_GCC272)
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
cfg_srcs=""
91
cfg_dsts=""
92
CUSTOM_CFG_FILES=""
93
f="${RTEMS_BSP}.cfg"
94
while test -n "$f"; do
95
  if test -r "${srcdir}/${cfg_dir}/custom/$f"; then
96
    cfg_srcs="$cfg_srcs ${cfg_dir}/custom/$f"
97
    cfg_dsts="$cfg_dsts custom/$f"
98
    CUSTOM_CFG_FILES="$CUSTOM_CFG_FILES $f"
99
    f=`grep "^include.*make/custom" ${srcdir}/${cfg_dir}/custom/$f \
100
    | sed \
101
      -e 's%^.*custom\/%%' \
102
      -e s%\$\(RTEMS_HOST\)%${RTEMS_HOST}% \
103
      -e 's%default\.cfg%%'`;
104
  else break; fi;
105
done
106
AC_SUBST(CUSTOM_CFG_FILES)
107
 
108
# Symlink the *.cfg files from the toplevel make directory into the build
109
# trees c//make subdirectories
110
AC_LINK_FILES($cfg_srcs,$cfg_dsts)
111
AC_LINK_FILES($cfg_dir/Templates/Makefile.lib,Templates/Makefile.lib)
112
AC_LINK_FILES($cfg_dir/Templates/Makefile.leaf,Templates/Makefile.leaf)
113
AC_LINK_FILES($cfg_dir/Templates/Makefile.dir,Templates/Makefile.dir)
114
AC_LINK_FILES($cfg_dir/compilers/gcc-target-default.cfg,compilers/gcc-target-default.cfg)
115
AC_LINK_FILES($cfg_dir/directory.cfg,directory.cfg)
116
AC_LINK_FILES(leaf.cfg,leaf.cfg)
117
AC_LINK_FILES($cfg_dir/lib.cfg,lib.cfg)
118
AC_LINK_FILES($cfg_dir/README,README)
119
 
120
# Explicitly list all Makefiles here
121
AC_OUTPUT(
122
Makefile
123
Makefile.inc
124
main.cfg
125
host.cfg
126
bsp.cfg
127
custom/Makefile
128
custom/default.cfg
129
compilers/Makefile,
130
${MAKE} $RTEMS_BSP.cache,
131
MAKE=${MAKE-make}
132
RTEMS_BSP=${RTEMS_BSP}
133
)

powered by: WebSVN 2.1.0

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