source: rtems/c/configure.ac @ 7a78028

4.104.114.84.95
Last change on this file since 7a78028 was 45789f2, checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/21/02 at 13:10:06

2002-10-21 Ralf Corsepius <corsepiu@…>

  • configure.ac: Fix --enable-rtemsbsp= handling.
  • Property mode set to 100644
File size: 1.9 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id$
4
5AC_PREREQ(2.52)
6AC_INIT([rtems-c],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com])
7AC_CONFIG_SRCDIR([src])
8RTEMS_TOP(..)
9AC_CONFIG_AUX_DIR(..)
10
11RTEMS_CANONICAL_TARGET_CPU
12
13AM_INIT_AUTOMAKE([no-define foreign 1.6])
14AM_MAINTAINER_MODE
15
16## These options are used within this file.
17RTEMS_ENABLE_BARE
18RTEMS_ENABLE_RTEMSBSP(rtems_bsp)
19
20RTEMS_CHECK_CPU
21RTEMS_CANONICAL_HOST
22
23AS_IF([test -z "$rtems_bsp"],
24  [RTEMS_CHECK_BSPS(rtems_bsp)])
25
26for i in $rtems_bsp; do
27
28    # make sure there is a make/custom file for the bsp
29    RTEMS_CHECK_CUSTOM_BSP(i)
30 
31    RTEMS_BSP_ALIAS($i,bspdir)
32
33    # Is there code where there should be for this BSP?
34    # The bare bsp is a special case as it is not under the RTEMS_CPU path
35    case $bspdir in
36      bare)
37        bspcpudir=
38        ;;
39      *)
40        bspcpudir=$RTEMS_CPU/
41        ;;
42    esac
43     
44    if test -d "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$bspcpudir$bspdir"; then
45      RTEMS_BSP_LIST="$RTEMS_BSP_LIST $i"
46    else
47      AC_MSG_ERROR([unable to find libbsp directory ($bspdir) for  $i])
48    fi
49done
50
51#
52# Compose the configuration arguments to be passed to c/src/configure
53#
54##
55## Partially borrowed from autoconf-2.13
56##
57
58## Adjust paths
59_RTEMS_ADJUST_SRCDIR([rtems_bsp_configure],[src])
60rtems_bsp_configure="$rtems_bsp_configure/configure"
61  RTEMS_CONFIGURE_ARGS_QUOTE([rtems_bsp_configure_args],
62    [-enable-rtemsbsp=* | --enable-rtemsbsp=* ) ;;])
63
64rtems_bsp_configure="$rtems_bsp_configure $rtems_bsp_configure_args"
65AC_SUBST(rtems_bsp_configure)
66
67AC_SUBST(RTEMS_BSP_LIST)
68
69# Explicitly list all Makefiles here
70AC_CONFIG_FILES([Makefile])
71AC_OUTPUT
72
73echo
74echo target architecture: $target_cpu.
75echo available BSPs: $rtems_bsp.
76echo \'${MAKE} all\' will build the following BSPs: $RTEMS_BSP_LIST.
77echo other BSPs can be built with \'${MAKE} RTEMS_BSP=\"bsp1 bsp2 ...\"\'
78echo
Note: See TracBrowser for help on using the repository browser.