source: rtems/c/configure.in @ 1a505aae

4.104.114.84.95
Last change on this file since 1a505aae was ecd5441, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 10, 2000 at 2:25:44 PM

2000-11-10 Ralf Corsepius <corsepiu@…>

  • configure.in: catch -enable-rtemsbsp (Allowed by autoconf). Autoconf allows one to pass -enable-*, but this file expected --enable*.
  • Property mode set to 100644
File size: 2.6 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2dnl
3dnl  $Id$
4
5AC_PREREQ(2.13)
6AC_INIT(src)
7RTEMS_TOP(..)
8AC_CONFIG_AUX_DIR(..)
9
10RTEMS_CANONICAL_TARGET_CPU
11
12AM_INIT_AUTOMAKE(rtems-c,$RTEMS_VERSION,no)
13AM_MAINTAINER_MODE
14
15dnl These options are used within this file.
16RTEMS_ENABLE_BARE
17RTEMS_ENABLE_RTEMSBSP(rtems_bsp)
18
19RTEMS_CHECK_CPU
20RTEMS_CANONICAL_HOST
21
22if test -z "$rtems_bsp"; then
23  RTEMS_CHECK_BSPS(rtems_bsp)
24fi
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
59case $srcdir in
60/*) rtems_bsp_configure="$srcdir/src/configure";;
61*)  rtems_bsp_configure="../$srcdir/src/configure";;
62esac
63
64## Remove --cache-file, --srcdir and --enable-rtemsbsp arguments
65## so they do not pile up
66  rtems_bsp_configure_args=
67  for ac_arg in $ac_configure_args; do
68    if test -n "$ac_prev"; then
69      ac_prev=
70      continue
71    fi
72    case "$ac_arg" in
73    -cache-file | --cache-file | --cache-fil | --cache-fi \
74    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
75      ac_prev=cache_file ;;
76    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
77    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
78      ;;
79    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
80      ac_prev=srcdir ;;
81    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
82      ;;
83    -enable-rtemsbsp=* | --enable-rtemsbsp=*) ;;
84    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
85      ;;
86    *) rtems_bsp_configure_args="$rtems_bsp_configure_args $ac_arg" ;;
87    esac
88  done
89
90rtems_bsp_configure="$rtems_bsp_configure $rtems_bsp_configure_args"
91AC_SUBST(rtems_bsp_configure)
92
93AC_SUBST(RTEMS_BSP_LIST)
94
95AC_CONFIG_SUBDIRS(make)
96
97# Explicitly list all Makefiles here
98AC_OUTPUT(
99Makefile
100)
101
102echo
103echo target architecture: $target_cpu.
104echo available BSPs: $rtems_bsp.
105echo \'make all\' will build the following BSPs: $RTEMS_BSP_LIST.
106echo other BSPs can be built with \'make RTEMS_BSP=\"bsp1 bsp2 ...\"\'
107echo
Note: See TracBrowser for help on using the repository browser.