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

Subversion Repositories or1k

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

powered by: WebSVN 2.1.0

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