source: rtems/c/src/make/configure.in @ 3e4969d

4.104.114.84.95
Last change on this file since 3e4969d was 3e4969d, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 11, 2001 at 4:43:45 PM

2001-10-10 Ralf Corsepius <corsepiu@…>

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