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

Subversion Repositories or1k

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

powered by: WebSVN 2.1.0

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