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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [arm/] [aclocal.m4] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
# aclocal.m4 generated automatically by aclocal 1.6.2 -*- Autoconf -*-
2
 
3
# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
4
# Free Software Foundation, Inc.
5
# This file is free software; the Free Software Foundation
6
# gives unlimited permission to copy and/or distribute it,
7
# with or without modifications, as long as this notice is preserved.
8
 
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
# PARTICULAR PURPOSE.
13
 
14
# RTEMS_CHECK_BSPDIR(RTEMS_BSP)
15
AC_DEFUN([RTEMS_CHECK_BSPDIR],
16
[
17
  RTEMS_BSP_ALIAS(ifelse([$1],,[${RTEMS_BSP}],[$1]),bspdir)
18
  case "$bspdir" in
19
  arm_bare_bsp )
20
    AC_CONFIG_SUBDIRS([arm_bare_bsp]);;
21
  armulator )
22
    AC_CONFIG_SUBDIRS([armulator]);;
23
  vegaplus )
24
    AC_CONFIG_SUBDIRS([vegaplus]);;
25
  *)
26
    AC_MSG_ERROR([Invalid BSP]);;
27
  esac
28
])
29
 
30
dnl
31
dnl  bsp-alias.m4,v 1.15 2001/11/21 18:36:51 joel Exp
32
dnl
33
 
34
dnl _RTEMS_BSP_ALIAS(BSP_ALIAS,RTEMS_BSP_FAMILY)
35
dnl Internal subroutine to RTEMS_BSP_ALIAS
36
AC_DEFUN(_RTEMS_BSP_ALIAS,
37
[# account for "aliased" bsps which share source code
38
  case $1 in
39
    simcpu32)     $2=sim68000         ;; # BSVC CPU32 variant
40
    c3xsim)       $2=c4xsim           ;; # TI C3x Simulator in gdb
41
    mcp750)       $2=motorola_powerpc ;; # Motorola PPC board variant
42
    mvme2307)     $2=motorola_powerpc ;; # Motorola PPC board variant
43
    mvme162lx)    $2=mvme162          ;; # m68k - mvme162 board variant
44
    gen68360_040) $2=gen68360         ;; # m68k - 68360 in companion mode
45
    p4600)        $2=p4000            ;; # mips64orion - p4000 board w/IDT 4600
46
    p4650)        $2=p4000            ;; # mips64orion - p4000 board w/IDT 4650
47
    mbx8*)        $2=mbx8xx           ;; # MBX821/MBX860 board
48
    pc386dx)      $2=pc386            ;; # i386 - PC w/o FPU
49
    pc486)        $2=pc386            ;; # i386 - PC with i486DX
50
    pc586)        $2=pc386            ;; # i386 - PC with Pentium
51
    pc686)        $2=pc386            ;; # i386 - PC with PentiumPro
52
    pck6)         $2=pc386            ;; # i386 - PC with K6
53
    bare*)        $2=bare             ;; # EXP: bare-aliases
54
    erc32nfp)     $2=erc32            ;; # erc32 without fpu
55
    leon1)        $2=leon             ;; # leon without fpu
56
    leon2)        $2=leon             ;; # leon with fpu
57
    simsh7032)    $2=shsim            ;; # SH7032 simulator
58
    simsh7045)    $2=shsim            ;; # SH7045 simulator
59
    *)            $2=$1;;
60
  esac]
61
)
62
 
63
dnl RTEMS_BSP_ALIAS(BSP_ALIAS,RTEMS_BSP_FAMILY)
64
dnl convert a bsp alias $1 into its bsp directory RTEMS_BSP_FAMILY
65
AC_DEFUN(RTEMS_BSP_ALIAS,
66
[_RTEMS_BSP_ALIAS(m4_if([$1],,[$RTEMS_BSP],[$1]),
67
  m4_if([$2],,[RTEMS_BSP_FAMILY],[$2]))]
68
)
69
 
70
dnl rtems-top.m4,v 1.14 2002/03/28 13:53:19 joel Exp
71
 
72
dnl
73
dnl RTEMS_TOP($1)
74
dnl
75
dnl $1 .. relative path from this configure.in to the toplevel configure.in
76
dnl
77
AC_DEFUN(RTEMS_TOP,
78
[dnl
79
AC_REQUIRE([RTEMS_VERSIONING])
80
AC_CHECK_PROGS(MAKE, gmake make)
81
AC_BEFORE([$0], [AC_CONFIG_AUX_DIR])dnl
82
AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl
83
 
84
AC_PREFIX_DEFAULT([/opt/rtems])
85
 
86
ENDIF=endif
87
AC_SUBST(ENDIF)
88
 
89
RTEMS_TOPdir="$1";
90
AC_SUBST(RTEMS_TOPdir)
91
 
92
test -n "$with_target_subdir" || with_target_subdir="."
93
 
94
if test "$with_target_subdir" = "." ; then
95
# Native
96
PROJECT_TOPdir=${RTEMS_TOPdir}/'$(top_builddir)'
97
else
98
# Cross
99
dots=`echo $with_target_subdir|\
100
sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
101
PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)'
102
fi
103
AC_SUBST(PROJECT_TOPdir)
104
 
105
if test "$with_target_subdir" = "." ; then
106
# Native
107
PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
108
else
109
# Cross
110
PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
111
fi
112
AC_SUBST(PROJECT_ROOT)
113
 
114
AC_MSG_CHECKING([for RTEMS Version])
115
AS_IF([test -r "${srcdir}/${RTEMS_TOPdir}/aclocal/version.m4"],
116
[],
117
[AC_MSG_ERROR([Unable to find ${RTEMS_TOPdir}/aclocal/version.m4])])
118
AC_MSG_RESULT([_RTEMS_VERSION])
119
])dnl
120
 
121
AC_DEFUN([RTEMS_VERSIONING],
122
m4_define([_RTEMS_VERSION],[ss-20020807]))
123
 
124
# Do all the work for Automake.                            -*- Autoconf -*-
125
 
126
# This macro actually does too much some checks are only needed if
127
# your package does certain things.  But this isn't really a big deal.
128
 
129
# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
130
# Free Software Foundation, Inc.
131
 
132
# This program is free software; you can redistribute it and/or modify
133
# it under the terms of the GNU General Public License as published by
134
# the Free Software Foundation; either version 2, or (at your option)
135
# any later version.
136
 
137
# This program is distributed in the hope that it will be useful,
138
# but WITHOUT ANY WARRANTY; without even the implied warranty of
139
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
140
# GNU General Public License for more details.
141
 
142
# You should have received a copy of the GNU General Public License
143
# along with this program; if not, write to the Free Software
144
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
145
# 02111-1307, USA.
146
 
147
# serial 8
148
 
149
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
150
# written in clear, in which case automake, when reading aclocal.m4,
151
# will think it sees a *use*, and therefore will trigger all it's
152
# C support machinery.  Also note that it means that autoscan, seeing
153
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
154
 
155
 
156
AC_PREREQ([2.52])
157
 
158
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
159
# the ones we care about.
160
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
161
 
162
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
163
# AM_INIT_AUTOMAKE([OPTIONS])
164
# -----------------------------------------------
165
# The call with PACKAGE and VERSION arguments is the old style
166
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
167
# and VERSION should now be passed to AC_INIT and removed from
168
# the call to AM_INIT_AUTOMAKE.
169
# We support both call styles for the transition.  After
170
# the next Automake release, Autoconf can make the AC_INIT
171
# arguments mandatory, and then we can depend on a new Autoconf
172
# release and drop the old call support.
173
AC_DEFUN([AM_INIT_AUTOMAKE],
174
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
175
 AC_REQUIRE([AC_PROG_INSTALL])dnl
176
# test to see if srcdir already configured
177
if test "`cd $srcdir && pwd`" != "`pwd`" &&
178
   test -f $srcdir/config.status; then
179
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
180
fi
181
 
182
# Define the identity of the package.
183
dnl Distinguish between old-style and new-style calls.
184
m4_ifval([$2],
185
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
186
 AC_SUBST([PACKAGE], [$1])dnl
187
 AC_SUBST([VERSION], [$2])],
188
[_AM_SET_OPTIONS([$1])dnl
189
 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
190
 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
191
 
192
_AM_IF_OPTION([no-define],,
193
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
194
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
195
 
196
# Some tools Automake needs.
197
AC_REQUIRE([AM_SANITY_CHECK])dnl
198
AC_REQUIRE([AC_ARG_PROGRAM])dnl
199
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
200
AM_MISSING_PROG(AUTOCONF, autoconf)
201
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
202
AM_MISSING_PROG(AUTOHEADER, autoheader)
203
AM_MISSING_PROG(MAKEINFO, makeinfo)
204
AM_MISSING_PROG(AMTAR, tar)
205
AM_PROG_INSTALL_SH
206
AM_PROG_INSTALL_STRIP
207
# We need awk for the "check" target.  The system "awk" is bad on
208
# some platforms.
209
AC_REQUIRE([AC_PROG_AWK])dnl
210
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
211
 
212
_AM_IF_OPTION([no-dependencies],,
213
[AC_PROVIDE_IFELSE([AC_PROG_][CC],
214
                  [_AM_DEPENDENCIES(CC)],
215
                  [define([AC_PROG_][CC],
216
                          defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
217
AC_PROVIDE_IFELSE([AC_PROG_][CXX],
218
                  [_AM_DEPENDENCIES(CXX)],
219
                  [define([AC_PROG_][CXX],
220
                          defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
221
])
222
])
223
 
224
# Copyright 2002  Free Software Foundation, Inc.
225
 
226
# This program is free software; you can redistribute it and/or modify
227
# it under the terms of the GNU General Public License as published by
228
# the Free Software Foundation; either version 2, or (at your option)
229
# any later version.
230
 
231
# This program is distributed in the hope that it will be useful,
232
# but WITHOUT ANY WARRANTY; without even the implied warranty of
233
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
234
# GNU General Public License for more details.
235
 
236
# You should have received a copy of the GNU General Public License
237
# along with this program; if not, write to the Free Software
238
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
239
 
240
# AM_AUTOMAKE_VERSION(VERSION)
241
# ----------------------------
242
# Automake X.Y traces this macro to ensure aclocal.m4 has been
243
# generated from the m4 files accompanying Automake X.Y.
244
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])
245
 
246
# AM_SET_CURRENT_AUTOMAKE_VERSION
247
# -------------------------------
248
# Call AM_AUTOMAKE_VERSION so it can be traced.
249
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
250
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
251
         [AM_AUTOMAKE_VERSION([1.6.2])])
252
 
253
# Helper functions for option handling.                    -*- Autoconf -*-
254
 
255
# Copyright 2001, 2002  Free Software Foundation, Inc.
256
 
257
# This program is free software; you can redistribute it and/or modify
258
# it under the terms of the GNU General Public License as published by
259
# the Free Software Foundation; either version 2, or (at your option)
260
# any later version.
261
 
262
# This program is distributed in the hope that it will be useful,
263
# but WITHOUT ANY WARRANTY; without even the implied warranty of
264
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
265
# GNU General Public License for more details.
266
 
267
# You should have received a copy of the GNU General Public License
268
# along with this program; if not, write to the Free Software
269
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
270
# 02111-1307, USA.
271
 
272
# serial 2
273
 
274
# _AM_MANGLE_OPTION(NAME)
275
# -----------------------
276
AC_DEFUN([_AM_MANGLE_OPTION],
277
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
278
 
279
# _AM_SET_OPTION(NAME)
280
# ------------------------------
281
# Set option NAME.  Presently that only means defining a flag for this option.
282
AC_DEFUN([_AM_SET_OPTION],
283
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
284
 
285
# _AM_SET_OPTIONS(OPTIONS)
286
# ----------------------------------
287
# OPTIONS is a space-separated list of Automake options.
288
AC_DEFUN([_AM_SET_OPTIONS],
289
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
290
 
291
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
292
# -------------------------------------------
293
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
294
AC_DEFUN([_AM_IF_OPTION],
295
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
296
 
297
#
298
# Check to make sure that the build environment is sane.
299
#
300
 
301
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
302
 
303
# This program is free software; you can redistribute it and/or modify
304
# it under the terms of the GNU General Public License as published by
305
# the Free Software Foundation; either version 2, or (at your option)
306
# any later version.
307
 
308
# This program is distributed in the hope that it will be useful,
309
# but WITHOUT ANY WARRANTY; without even the implied warranty of
310
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
311
# GNU General Public License for more details.
312
 
313
# You should have received a copy of the GNU General Public License
314
# along with this program; if not, write to the Free Software
315
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
316
# 02111-1307, USA.
317
 
318
# serial 3
319
 
320
# AM_SANITY_CHECK
321
# ---------------
322
AC_DEFUN([AM_SANITY_CHECK],
323
[AC_MSG_CHECKING([whether build environment is sane])
324
# Just in case
325
sleep 1
326
echo timestamp > conftest.file
327
# Do `set' in a subshell so we don't clobber the current shell's
328
# arguments.  Must try -L first in case configure is actually a
329
# symlink; some systems play weird games with the mod time of symlinks
330
# (eg FreeBSD returns the mod time of the symlink's containing
331
# directory).
332
if (
333
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
334
   if test "$[*]" = "X"; then
335
      # -L didn't work.
336
      set X `ls -t $srcdir/configure conftest.file`
337
   fi
338
   rm -f conftest.file
339
   if test "$[*]" != "X $srcdir/configure conftest.file" \
340
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
341
 
342
      # If neither matched, then we have a broken ls.  This can happen
343
      # if, for instance, CONFIG_SHELL is bash and it inherits a
344
      # broken ls alias from the environment.  This has actually
345
      # happened.  Such a system could not be considered "sane".
346
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
347
alias in your environment])
348
   fi
349
 
350
   test "$[2]" = conftest.file
351
   )
352
then
353
   # Ok.
354
   :
355
else
356
   AC_MSG_ERROR([newly created file is older than distributed files!
357
Check your system clock])
358
fi
359
AC_MSG_RESULT(yes)])
360
 
361
#  -*- Autoconf -*-
362
 
363
 
364
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
365
 
366
# This program is free software; you can redistribute it and/or modify
367
# it under the terms of the GNU General Public License as published by
368
# the Free Software Foundation; either version 2, or (at your option)
369
# any later version.
370
 
371
# This program is distributed in the hope that it will be useful,
372
# but WITHOUT ANY WARRANTY; without even the implied warranty of
373
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
374
# GNU General Public License for more details.
375
 
376
# You should have received a copy of the GNU General Public License
377
# along with this program; if not, write to the Free Software
378
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
379
# 02111-1307, USA.
380
 
381
# serial 3
382
 
383
# AM_MISSING_PROG(NAME, PROGRAM)
384
# ------------------------------
385
AC_DEFUN([AM_MISSING_PROG],
386
[AC_REQUIRE([AM_MISSING_HAS_RUN])
387
$1=${$1-"${am_missing_run}$2"}
388
AC_SUBST($1)])
389
 
390
 
391
# AM_MISSING_HAS_RUN
392
# ------------------
393
# Define MISSING if not defined so far and test if it supports --run.
394
# If it does, set am_missing_run to use it, otherwise, to nothing.
395
AC_DEFUN([AM_MISSING_HAS_RUN],
396
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
397
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
398
# Use eval to expand $SHELL
399
if eval "$MISSING --run true"; then
400
  am_missing_run="$MISSING --run "
401
else
402
  am_missing_run=
403
  AC_MSG_WARN([`missing' script is too old or missing])
404
fi
405
])
406
 
407
# AM_AUX_DIR_EXPAND
408
 
409
# Copyright 2001 Free Software Foundation, Inc.
410
 
411
# This program is free software; you can redistribute it and/or modify
412
# it under the terms of the GNU General Public License as published by
413
# the Free Software Foundation; either version 2, or (at your option)
414
# any later version.
415
 
416
# This program is distributed in the hope that it will be useful,
417
# but WITHOUT ANY WARRANTY; without even the implied warranty of
418
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
419
# GNU General Public License for more details.
420
 
421
# You should have received a copy of the GNU General Public License
422
# along with this program; if not, write to the Free Software
423
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
424
# 02111-1307, USA.
425
 
426
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
427
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
428
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
429
#
430
# Of course, Automake must honor this variable whenever it calls a
431
# tool from the auxiliary directory.  The problem is that $srcdir (and
432
# therefore $ac_aux_dir as well) can be either absolute or relative,
433
# depending on how configure is run.  This is pretty annoying, since
434
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
435
# source directory, any form will work fine, but in subdirectories a
436
# relative path needs to be adjusted first.
437
#
438
# $ac_aux_dir/missing
439
#    fails when called from a subdirectory if $ac_aux_dir is relative
440
# $top_srcdir/$ac_aux_dir/missing
441
#    fails if $ac_aux_dir is absolute,
442
#    fails when called from a subdirectory in a VPATH build with
443
#          a relative $ac_aux_dir
444
#
445
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
446
# are both prefixed by $srcdir.  In an in-source build this is usually
447
# harmless because $srcdir is `.', but things will broke when you
448
# start a VPATH build or use an absolute $srcdir.
449
#
450
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
451
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
452
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
453
# and then we would define $MISSING as
454
#   MISSING="\${SHELL} $am_aux_dir/missing"
455
# This will work as long as MISSING is not called from configure, because
456
# unfortunately $(top_srcdir) has no meaning in configure.
457
# However there are other variables, like CC, which are often used in
458
# configure, and could therefore not use this "fixed" $ac_aux_dir.
459
#
460
# Another solution, used here, is to always expand $ac_aux_dir to an
461
# absolute PATH.  The drawback is that using absolute paths prevent a
462
# configured tree to be moved without reconfiguration.
463
 
464
# Rely on autoconf to set up CDPATH properly.
465
AC_PREREQ([2.50])
466
 
467
AC_DEFUN([AM_AUX_DIR_EXPAND], [
468
# expand $ac_aux_dir to an absolute path
469
am_aux_dir=`cd $ac_aux_dir && pwd`
470
])
471
 
472
# AM_PROG_INSTALL_SH
473
# ------------------
474
# Define $install_sh.
475
 
476
# Copyright 2001 Free Software Foundation, Inc.
477
 
478
# This program is free software; you can redistribute it and/or modify
479
# it under the terms of the GNU General Public License as published by
480
# the Free Software Foundation; either version 2, or (at your option)
481
# any later version.
482
 
483
# This program is distributed in the hope that it will be useful,
484
# but WITHOUT ANY WARRANTY; without even the implied warranty of
485
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
486
# GNU General Public License for more details.
487
 
488
# You should have received a copy of the GNU General Public License
489
# along with this program; if not, write to the Free Software
490
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
491
# 02111-1307, USA.
492
 
493
AC_DEFUN([AM_PROG_INSTALL_SH],
494
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
495
install_sh=${install_sh-"$am_aux_dir/install-sh"}
496
AC_SUBST(install_sh)])
497
 
498
# AM_PROG_INSTALL_STRIP
499
 
500
# Copyright 2001 Free Software Foundation, Inc.
501
 
502
# This program is free software; you can redistribute it and/or modify
503
# it under the terms of the GNU General Public License as published by
504
# the Free Software Foundation; either version 2, or (at your option)
505
# any later version.
506
 
507
# This program is distributed in the hope that it will be useful,
508
# but WITHOUT ANY WARRANTY; without even the implied warranty of
509
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
510
# GNU General Public License for more details.
511
 
512
# You should have received a copy of the GNU General Public License
513
# along with this program; if not, write to the Free Software
514
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
515
# 02111-1307, USA.
516
 
517
# One issue with vendor `install' (even GNU) is that you can't
518
# specify the program used to strip binaries.  This is especially
519
# annoying in cross-compiling environments, where the build's strip
520
# is unlikely to handle the host's binaries.
521
# Fortunately install-sh will honor a STRIPPROG variable, so we
522
# always use install-sh in `make install-strip', and initialize
523
# STRIPPROG with the value of the STRIP variable (set by the user).
524
AC_DEFUN([AM_PROG_INSTALL_STRIP],
525
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
526
# Installed binaries are usually stripped using `strip' when the user
527
# run `make install-strip'.  However `strip' might not be the right
528
# tool to use in cross-compilation environments, therefore Automake
529
# will honor the `STRIP' environment variable to overrule this program.
530
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
531
if test "$cross_compiling" != no; then
532
  AC_CHECK_TOOL([STRIP], [strip], :)
533
fi
534
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
535
AC_SUBST([INSTALL_STRIP_PROGRAM])])
536
 
537
# serial 4                                              -*- Autoconf -*-
538
 
539
# Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
540
 
541
# This program is free software; you can redistribute it and/or modify
542
# it under the terms of the GNU General Public License as published by
543
# the Free Software Foundation; either version 2, or (at your option)
544
# any later version.
545
 
546
# This program is distributed in the hope that it will be useful,
547
# but WITHOUT ANY WARRANTY; without even the implied warranty of
548
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
549
# GNU General Public License for more details.
550
 
551
# You should have received a copy of the GNU General Public License
552
# along with this program; if not, write to the Free Software
553
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
554
# 02111-1307, USA.
555
 
556
 
557
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
558
# written in clear, in which case automake, when reading aclocal.m4,
559
# will think it sees a *use*, and therefore will trigger all it's
560
# C support machinery.  Also note that it means that autoscan, seeing
561
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
562
 
563
 
564
 
565
# _AM_DEPENDENCIES(NAME)
566
# ----------------------
567
# See how the compiler implements dependency checking.
568
# NAME is "CC", "CXX", "GCJ", or "OBJC".
569
# We try a few techniques and use that to set a single cache variable.
570
#
571
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
572
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
573
# dependency, and given that the user is not expected to run this macro,
574
# just rely on AC_PROG_CC.
575
AC_DEFUN([_AM_DEPENDENCIES],
576
[AC_REQUIRE([AM_SET_DEPDIR])dnl
577
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
578
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
579
AC_REQUIRE([AM_DEP_TRACK])dnl
580
 
581
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
582
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
583
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
584
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
585
                   [depcc="$$1"   am_compiler_list=])
586
 
587
AC_CACHE_CHECK([dependency style of $depcc],
588
               [am_cv_$1_dependencies_compiler_type],
589
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
590
  # We make a subdir and do the tests there.  Otherwise we can end up
591
  # making bogus files that we don't know about and never remove.  For
592
  # instance it was reported that on HP-UX the gcc test will end up
593
  # making a dummy file named `D' -- because `-MD' means `put the output
594
  # in D'.
595
  mkdir conftest.dir
596
  # Copy depcomp to subdir because otherwise we won't find it if we're
597
  # using a relative directory.
598
  cp "$am_depcomp" conftest.dir
599
  cd conftest.dir
600
 
601
  am_cv_$1_dependencies_compiler_type=none
602
  if test "$am_compiler_list" = ""; then
603
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
604
  fi
605
  for depmode in $am_compiler_list; do
606
    # We need to recreate these files for each test, as the compiler may
607
    # overwrite some of them when testing with obscure command lines.
608
    # This happens at least with the AIX C compiler.
609
    echo '#include "conftest.h"' > conftest.c
610
    echo 'int i;' > conftest.h
611
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
612
 
613
    case $depmode in
614
    nosideeffect)
615
      # after this tag, mechanisms are not by side-effect, so they'll
616
      # only be used when explicitly requested
617
      if test "x$enable_dependency_tracking" = xyes; then
618
        continue
619
      else
620
        break
621
      fi
622
      ;;
623
    none) break ;;
624
    esac
625
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
626
    # mode.  It turns out that the SunPro C++ compiler does not properly
627
    # handle `-M -o', and we need to detect this.
628
    if depmode=$depmode \
629
       source=conftest.c object=conftest.o \
630
       depfile=conftest.Po tmpdepfile=conftest.TPo \
631
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
632
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
633
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
634
      am_cv_$1_dependencies_compiler_type=$depmode
635
      break
636
    fi
637
  done
638
 
639
  cd ..
640
  rm -rf conftest.dir
641
else
642
  am_cv_$1_dependencies_compiler_type=none
643
fi
644
])
645
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
646
])
647
 
648
 
649
# AM_SET_DEPDIR
650
# -------------
651
# Choose a directory name for dependency files.
652
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
653
AC_DEFUN([AM_SET_DEPDIR],
654
[rm -f .deps 2>/dev/null
655
mkdir .deps 2>/dev/null
656
if test -d .deps; then
657
  DEPDIR=.deps
658
else
659
  # MS-DOS does not allow filenames that begin with a dot.
660
  DEPDIR=_deps
661
fi
662
rmdir .deps 2>/dev/null
663
AC_SUBST([DEPDIR])
664
])
665
 
666
 
667
# AM_DEP_TRACK
668
# ------------
669
AC_DEFUN([AM_DEP_TRACK],
670
[AC_ARG_ENABLE(dependency-tracking,
671
[  --disable-dependency-tracking Speeds up one-time builds
672
  --enable-dependency-tracking  Do not reject slow dependency extractors])
673
if test "x$enable_dependency_tracking" != xno; then
674
  am_depcomp="$ac_aux_dir/depcomp"
675
  AMDEPBACKSLASH='\'
676
fi
677
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
678
AC_SUBST([AMDEPBACKSLASH])
679
])
680
 
681
# Generate code to set up dependency tracking.   -*- Autoconf -*-
682
 
683
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
684
 
685
# This program is free software; you can redistribute it and/or modify
686
# it under the terms of the GNU General Public License as published by
687
# the Free Software Foundation; either version 2, or (at your option)
688
# any later version.
689
 
690
# This program is distributed in the hope that it will be useful,
691
# but WITHOUT ANY WARRANTY; without even the implied warranty of
692
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
693
# GNU General Public License for more details.
694
 
695
# You should have received a copy of the GNU General Public License
696
# along with this program; if not, write to the Free Software
697
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
698
# 02111-1307, USA.
699
 
700
#serial 2
701
 
702
# _AM_OUTPUT_DEPENDENCY_COMMANDS
703
# ------------------------------
704
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
705
[for mf in $CONFIG_FILES; do
706
  # Strip MF so we end up with the name of the file.
707
  mf=`echo "$mf" | sed -e 's/:.*$//'`
708
  # Check whether this is an Automake generated Makefile or not.
709
  # We used to match only the files named `Makefile.in', but
710
  # some people rename them; so instead we look at the file content.
711
  # Grep'ing the first line is not enough: some people post-process
712
  # each Makefile.in and add a new line on top of each file to say so.
713
  # So let's grep whole file.
714
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
715
    dirpart=`AS_DIRNAME("$mf")`
716
  else
717
    continue
718
  fi
719
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
720
  # Extract the definition of DEP_FILES from the Makefile without
721
  # running `make'.
722
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
723
  test -z "$DEPDIR" && continue
724
  # When using ansi2knr, U may be empty or an underscore; expand it
725
  U=`sed -n -e '/^U = / s///p' < "$mf"`
726
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
727
  # We invoke sed twice because it is the simplest approach to
728
  # changing $(DEPDIR) to its actual value in the expansion.
729
  for file in `sed -n -e '
730
    /^DEP_FILES = .*\\\\$/ {
731
      s/^DEP_FILES = //
732
      :loop
733
        s/\\\\$//
734
        p
735
        n
736
        /\\\\$/ b loop
737
      p
738
    }
739
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
740
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
741
    # Make sure the directory exists.
742
    test -f "$dirpart/$file" && continue
743
    fdir=`AS_DIRNAME(["$file"])`
744
    AS_MKDIR_P([$dirpart/$fdir])
745
    # echo "creating $dirpart/$file"
746
    echo '# dummy' > "$dirpart/$file"
747
  done
748
done
749
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
750
 
751
 
752
# AM_OUTPUT_DEPENDENCY_COMMANDS
753
# -----------------------------
754
# This macro should only be invoked once -- use via AC_REQUIRE.
755
#
756
# This code is only required when automatic dependency tracking
757
# is enabled.  FIXME.  This creates each `.P' file that we will
758
# need in order to bootstrap the dependency handling code.
759
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
760
[AC_CONFIG_COMMANDS([depfiles],
761
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
762
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
763
])
764
 
765
# Copyright 2001 Free Software Foundation, Inc.             -*- Autoconf -*-
766
 
767
# This program is free software; you can redistribute it and/or modify
768
# it under the terms of the GNU General Public License as published by
769
# the Free Software Foundation; either version 2, or (at your option)
770
# any later version.
771
 
772
# This program is distributed in the hope that it will be useful,
773
# but WITHOUT ANY WARRANTY; without even the implied warranty of
774
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
775
# GNU General Public License for more details.
776
 
777
# You should have received a copy of the GNU General Public License
778
# along with this program; if not, write to the Free Software
779
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
780
# 02111-1307, USA.
781
 
782
# serial 2
783
 
784
# AM_MAKE_INCLUDE()
785
# -----------------
786
# Check to see how make treats includes.
787
AC_DEFUN([AM_MAKE_INCLUDE],
788
[am_make=${MAKE-make}
789
cat > confinc << 'END'
790
doit:
791
        @echo done
792
END
793
# If we don't find an include directive, just comment out the code.
794
AC_MSG_CHECKING([for style of include used by $am_make])
795
am__include="#"
796
am__quote=
797
_am_result=none
798
# First try GNU make style include.
799
echo "include confinc" > confmf
800
# We grep out `Entering directory' and `Leaving directory'
801
# messages which can occur if `w' ends up in MAKEFLAGS.
802
# In particular we don't look at `^make:' because GNU make might
803
# be invoked under some other name (usually "gmake"), in which
804
# case it prints its new name instead of `make'.
805
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
806
   am__include=include
807
   am__quote=
808
   _am_result=GNU
809
fi
810
# Now try BSD make style include.
811
if test "$am__include" = "#"; then
812
   echo '.include "confinc"' > confmf
813
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
814
      am__include=.include
815
      am__quote="\""
816
      _am_result=BSD
817
   fi
818
fi
819
AC_SUBST(am__include)
820
AC_SUBST(am__quote)
821
AC_MSG_RESULT($_am_result)
822
rm -f confinc confmf
823
])
824
 
825
# AM_CONDITIONAL                                              -*- Autoconf -*-
826
 
827
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
828
 
829
# This program is free software; you can redistribute it and/or modify
830
# it under the terms of the GNU General Public License as published by
831
# the Free Software Foundation; either version 2, or (at your option)
832
# any later version.
833
 
834
# This program is distributed in the hope that it will be useful,
835
# but WITHOUT ANY WARRANTY; without even the implied warranty of
836
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
837
# GNU General Public License for more details.
838
 
839
# You should have received a copy of the GNU General Public License
840
# along with this program; if not, write to the Free Software
841
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
842
# 02111-1307, USA.
843
 
844
# serial 5
845
 
846
AC_PREREQ(2.52)
847
 
848
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
849
# -------------------------------------
850
# Define a conditional.
851
AC_DEFUN([AM_CONDITIONAL],
852
[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
853
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
854
AC_SUBST([$1_TRUE])
855
AC_SUBST([$1_FALSE])
856
if $2; then
857
  $1_TRUE=
858
  $1_FALSE='#'
859
else
860
  $1_TRUE='#'
861
  $1_FALSE=
862
fi
863
AC_CONFIG_COMMANDS_PRE(
864
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
865
  AC_MSG_ERROR([conditional \"$1\" was never defined.
866
Usually this means the macro was only invoked conditionally.])
867
fi])])
868
 
869
dnl
870
dnl canonical-target-name.m4,v 1.12 2001/09/14 17:30:22 joel Exp
871
dnl
872
 
873
dnl canonicalize target cpu
874
dnl NOTE: Most rtems targets do not fullfil autoconf's
875
dnl target naming conventions "processor-vendor-os"
876
dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
877
dnl and we have to fix it for rtems ourselves
878
 
879
AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
880
[
881
AC_CANONICAL_TARGET
882
AC_MSG_CHECKING(rtems target cpu)
883
case "${target}" in
884
  # hpux unix port should go here
885
  i[[34567]]86-*linux*)         # unix "simulator" port
886
        RTEMS_CPU=unix
887
        ;;
888
  i[[34567]]86-*freebsd*)       # unix "simulator" port
889
        RTEMS_CPU=unix
890
        ;;
891
  i[[34567]]86-pc-cygwin*)      # Cygwin is just enough unix like :)
892
        RTEMS_CPU=unix
893
        ;;
894
  no_cpu-*rtems*)
895
        RTEMS_CPU=no_cpu
896
        ;;
897
  sparc-sun-solaris*)           # unix "simulator" port
898
        RTEMS_CPU=unix
899
        ;;
900
  *)
901
        RTEMS_CPU=`echo $target | sed 's%^\([[^-]]*\)-\(.*\)$%\1%'`
902
        ;;
903
esac
904
AC_SUBST(RTEMS_CPU)
905
AC_MSG_RESULT($RTEMS_CPU)
906
])
907
 
908
# Add --enable-maintainer-mode option to configure.
909
# From Jim Meyering
910
 
911
# Copyright 1996, 1998, 2000, 2001 Free Software Foundation, Inc.
912
 
913
# This program is free software; you can redistribute it and/or modify
914
# it under the terms of the GNU General Public License as published by
915
# the Free Software Foundation; either version 2, or (at your option)
916
# any later version.
917
 
918
# This program is distributed in the hope that it will be useful,
919
# but WITHOUT ANY WARRANTY; without even the implied warranty of
920
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
921
# GNU General Public License for more details.
922
 
923
# You should have received a copy of the GNU General Public License
924
# along with this program; if not, write to the Free Software
925
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
926
# 02111-1307, USA.
927
 
928
# serial 1
929
 
930
AC_DEFUN([AM_MAINTAINER_MODE],
931
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
932
  dnl maintainer-mode is disabled by default
933
  AC_ARG_ENABLE(maintainer-mode,
934
[  --enable-maintainer-mode enable make rules and dependencies not useful
935
                          (and sometimes confusing) to the casual installer],
936
      USE_MAINTAINER_MODE=$enableval,
937
      USE_MAINTAINER_MODE=no)
938
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
939
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
940
  MAINT=$MAINTAINER_MODE_TRUE
941
  AC_SUBST(MAINT)dnl
942
]
943
)
944
 
945
dnl env-rtemsbsp.m4,v 1.7 2002/08/06 07:31:47 ralf Exp
946
 
947
dnl Pass a single BSP via an environment variable
948
dnl used by per BSP configure scripts
949
AC_DEFUN(RTEMS_ENV_RTEMSBSP,
950
[dnl
951
AC_BEFORE([$0], [RTEMS_ENABLE_RTEMSBSP])dnl
952
AC_BEFORE([$0], [RTEMS_PROJECT_ROOT])dnl
953
AC_BEFORE([$0], [RTEMS_CHECK_CUSTOM_BSP])dnl
954
 
955
AC_ARG_VAR([RTEMS_BSP],[RTEMS_BSP to build])
956
AC_MSG_CHECKING([for RTEMS_BSP])
957
AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
958
[dnl
959
  test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
960
])dnl
961
if test -z "$rtems_cv_RTEMS_BSP"; then
962
  AC_MSG_ERROR([Missing RTEMS_BSP])
963
fi
964
RTEMS_BSP="$rtems_cv_RTEMS_BSP"
965
AC_MSG_RESULT(${RTEMS_BSP})
966
AC_SUBST(RTEMS_BSP)
967
 
968
RTEMS_BSP_SPECS="-specs bsp_specs -qrtems"
969
AC_SUBST(RTEMS_BSP_SPECS)
970
 
971
GCC_SPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/"
972
AC_SUBST(GCC_SPECS)
973
 
974
PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
975
AC_SUBST(PROJECT_INCLUDE)
976
 
977
PROJECT_RELEASE="\$(PROJECT_ROOT)/$RTEMS_BSP"
978
AC_SUBST(PROJECT_RELEASE)
979
 
980
RTEMS_ROOT=$PROJECT_ROOT/c/$RTEMS_BSP
981
AC_SUBST(RTEMS_ROOT)
982
 
983
RTEMS_ENABLE_BARE
984
AC_SUBST(BARE_CPU_MODEL)
985
AC_SUBST(BARE_CPU_CFLAGS)
986
 
987
AM_CONDITIONAL([MULTILIB],[false])
988
 
989
includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
990
libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
991
 
992
bsplibdir="\${exec_prefix}/${RTEMS_BSP}/lib"
993
AC_SUBST(bsplibdir)
994
])
995
 
996
dnl enable-rtemsbsp.m4,v 1.10 2001/09/13 13:14:30 joel Exp
997
 
998
dnl Override the set of BSPs to be built.
999
dnl used by the toplevel configure script
1000
dnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp_list)
1001
AC_DEFUN(RTEMS_ENABLE_RTEMSBSP,
1002
[
1003
AC_BEFORE([$0], [RTEMS_ENV_RTEMSBSP])dnl
1004
AC_ARG_ENABLE(rtemsbsp,
1005
AC_HELP_STRING([--enable-rtemsbsp="bsp1 bsp2 .."],
1006
[BSPs to include in build]),
1007
[case "${enableval}" in
1008
  yes|no) AC_MSG_ERROR([missing argument to --enable-rtemsbsp=\"bsp1 bsp2\"]);;
1009
  *) $1=$enableval;;
1010
esac],[$1=""])
1011
])
1012
 
1013
dnl
1014
dnl project-root.m4,v 1.6 2001/12/20 17:33:23 joel Exp
1015
dnl
1016
 
1017
dnl
1018
dnl PROJECT_TOPdir     .. relative path to the top of the build-tree
1019
dnl PROJECT_ROOT       .. relative path to the top of the temporary
1020
dnl                       installation directory inside the build-tree
1021
dnl RTEMS_TOPdir       .. relative path of a subpackage's configure.in to the
1022
dnl                       toplevel configure.in of the source-tree
1023
dnl RTEMS_ROOT         .. path to the top of a bsp's build directory
1024
dnl                       [Applied by custom/*.cfg, depredicated otherwise]
1025
dnl
1026
 
1027
AC_DEFUN(RTEMS_PROJECT_ROOT,
1028
[dnl
1029
AC_REQUIRE([RTEMS_TOP])
1030
 
1031
PACKHEX="\$(PROJECT_TOPdir)/tools/build/packhex"
1032
AC_SUBST(PACKHEX)
1033
])
1034
 
1035
 
1036
dnl check-bsps.m4,v 1.18 2001/11/21 18:36:51 joel Exp
1037
 
1038
dnl Report all available bsps for a target,
1039
dnl check if a bsp-subdirectory is present for all bsps found
1040
dnl
1041
dnl RTEMS_CHECK_BSPS(bsp_list)
1042
AC_DEFUN(RTEMS_CHECK_BSPS,
1043
[
1044
AC_REQUIRE([RTEMS_CHECK_CPU])dnl sets RTEMS_CPU, target
1045
AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
1046
AC_MSG_CHECKING([for bsps])
1047
    files=`ls $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU`
1048
    for file in $files; do
1049
      if test -r $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/$file/bsp_specs; then
1050
        case $file in
1051
        # Now account for BSPs with build variants
1052
          c4xsim)            $1="[$]$1 c4xsim c3xsim";;
1053
          gen68360)          $1="[$]$1 gen68360 gen68360_040";;
1054
          p4000)             $1="[$]$1 p4600 p4650";;
1055
          mvme162)           $1="[$]$1 mvme162 mvme162lx";;
1056
          mbx8xx)            $1="[$]$1 mbx821_001 mbx860_002 mbx860_005b";;
1057
          motorola_powerpc)  $1="[$]$1 mvme2307 mcp750";;
1058
          pc386)             $1="[$]$1 pc386 pc386dx pc486 pc586 pc686 pck6";;
1059
          erc32)             $1="[$]$1 erc32 erc32nfp";;
1060
          leon)              $1="[$]$1 leon1 leon2";;
1061
          sim68000)          $1="[$]$1 sim68000 simcpu32";;
1062
          shsim)             $1="[$]$1 simsh7032 simsh7045";;
1063
          *)                 $1="[$]$1 $file";;
1064
        esac;
1065
      fi
1066
    done
1067
AC_MSG_RESULT([[$]$1 .. done])
1068
])dnl
1069
 
1070
AC_DEFUN(RTEMS_CHECK_CUSTOM_BSP,
1071
[dnl
1072
AC_REQUIRE([RTEMS_TOP])
1073
 
1074
AC_MSG_CHECKING([for make/custom/[$]$1.cfg])
1075
if test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"; then
1076
  AC_MSG_RESULT([yes])
1077
else
1078
  AC_MSG_ERROR([no])
1079
fi
1080
])dnl
1081
 
1082
dnl check-cpu.m4,v 1.6 2002/07/22 10:13:20 ralf Exp
1083
 
1084
dnl check if RTEMS support a cpu
1085
AC_DEFUN(RTEMS_CHECK_CPU,
1086
[dnl
1087
AC_REQUIRE([RTEMS_TOP])
1088
AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])
1089
 
1090
# Is this a supported CPU?
1091
AC_MSG_CHECKING([if cpu $RTEMS_CPU is supported])
1092
# FIXME: Temporary hack
1093
if test -d "$srcdir/$RTEMS_TOPdir/cpukit/score/cpu/$RTEMS_CPU"; then
1094
  AC_MSG_RESULT(yes)
1095
else
1096
  AC_MSG_ERROR(no)
1097
fi
1098
])dnl
1099
 
1100
 
1101
AC_DEFUN(RTEMS_ENABLE_BARE,
1102
[
1103
AC_ARG_ENABLE(bare-cpu-cflags,
1104
AC_HELP_STRING([--enable-bare-cpu-cflags],[specify a particular cpu cflag (bare bsp specific)]),
1105
[case "${enableval}" in
1106
  no) BARE_CPU_CFLAGS="" ;;
1107
  *)    BARE_CPU_CFLAGS="${enableval}" ;;
1108
esac],
1109
[BARE_CPU_CFLAGS=""])
1110
 
1111
AC_ARG_ENABLE(bare-cpu-model,
1112
AC_HELP_STRING([--enable-bare-cpu-model],[specify a particular cpu model (bare bsp specific)]),
1113
[case "${enableval}" in
1114
  no)   BARE_CPU_MODEL="" ;;
1115
  *)    BARE_CPU_MODEL="${enableval}" ;;
1116
esac],
1117
[BARE_CPU_MODEL=""])
1118
])
1119
 
1120
 
1121
dnl check-bsp-cache.m4,v 1.3 2000/11/09 17:04:53 joel Exp
1122
 
1123
dnl RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
1124
AC_DEFUN(RTEMS_CHECK_BSP_CACHE,
1125
[
1126
AC_REQUIRE([RTEMS_CHECK_CPU])dnl sets RTEMS_CPU, target
1127
AC_REQUIRE([RTEMS_ENV_RTEMSBSP])dnl set RTEMS_BSP
1128
AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
1129
AC_CACHE_CHECK([for RTEMS_CPU_MODEL], rtems_cv_RTEMS_CPU_MODEL,
1130
. $RTEMS_TOPdir/c/[$]$1/make/[$]$1.cache)
1131
RTEMS_CPU_MODEL=$rtems_cv_RTEMS_CPU_MODEL
1132
AC_SUBST(RTEMS_CPU_MODEL)
1133
AC_CACHE_CHECK([for RTEMS_BSP_FAMILY], rtems_cv_RTEMS_BSP_FAMILY,
1134
. $RTEMS_TOPdir/c/[$]$1/make/[$]$1.cache)
1135
RTEMS_BSP_FAMILY=$rtems_cv_RTEMS_BSP_FAMILY
1136
AC_SUBST(RTEMS_BSP_FAMILY)
1137
])dnl
1138
 

powered by: WebSVN 2.1.0

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