source: rtems/c/src/lib/libbsp/configure.in @ 362ec23e

4.104.114.84.95
Last change on this file since 362ec23e was 94608578, checked in by Joel Sherrill <joel.sherrill@…>, on 01/10/00 at 13:56:35

Patch rtems-rc-20000104-2.diff from Ralf Corsepius <corsepiu@…>
that converts nearly all of libbsp/sh to automake. Comments follow:

  1. Almost full automake support for the libbsp/sh/ subdirectories (exception libbsp/sh/gensh*/wrapup/*)
  2. Fixes for libbsp/bare/*
  3. Updates to libbsp/* configuration which supports old (autoconf/deep configuration) and new (automake/flat/cascaded configuration) style configuration of libbsp/<cpu>/*
  • Property mode set to 100644
File size: 2.4 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2dnl
3dnl $Id$
4
5AC_PREREQ(2.13)
6AC_INIT(README)
7RTEMS_TOP(../../../..)
8AC_CONFIG_AUX_DIR(../../../..)
9
10RTEMS_CANONICAL_TARGET_CPU
11AC_PROG_MAKE_SET
12AC_PROG_INSTALL
13AM_MAINTAINER_MODE
14
15RTEMS_ENABLE_MULTIPROCESSING
16RTEMS_ENABLE_NETWORKING
17RTEMS_ENABLE_LIBCDIR
18RTEMS_ENABLE_BARE
19
20RTEMS_ENV_RTEMSBSP
21
22RTEMS_CHECK_CPU
23RTEMS_CANONICAL_HOST
24
25RTEMS_PROJECT_ROOT
26
27dnl check target cc
28RTEMS_PROG_CC_FOR_TARGET
29RTEMS_CANONICALIZE_TOOLS
30
31dnl if this is an i386, does gas have good code16 support?
32RTEMS_I386_GAS_CODE16
33AM_CONDITIONAL(RTEMS_GAS_CODE16,test "$RTEMS_GAS_CODE16" = "yes");
34
35RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
36RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
37RTEMS_CHECK_NETWORKING(RTEMS_BSP)
38
39RTEMS_BSP_ALIAS(${RTEMS_BSP},bspdir)
40
41# Is there code where there should be for this BSP?
42# The bare bsp is a special case as it is not under the RTEMS_CPU path
43case $bspdir in
44  bare)
45    bspcpudir=
46    if test "X${BARE_CPU_CFLAGS}" = "X" ; then
47      AC_MSG_ERROR([--enable-bare-cpu-cflags not specified for bare bsp])
48    fi
49    if test "X${BARE_CPU_MODEL}" = "X" ; then
50      AC_MSG_ERROR([--enable-bare-cpu-model not specified for bare bsp])
51    fi
52    ;;
53  *)
54    bspcpudir=$RTEMS_CPU/
55    ;;
56esac
57
58if test "$RTEMS_BSP" = "bare" ; then
59  RTEMS_LIBBSP_CPU_SUBDIR="bare"
60else
61  RTEMS_LIBBSP_CPU_SUBDIR=$RTEMS_CPU
62fi
63AC_SUBST(RTEMS_LIBBSP_CPU_SUBDIR)
64
65if test ! -f ${srcdir}/${RTEMS_LIBBSP_CPU_SUBDIR}/configure.in
66then
67
68# find all the Makefiles for the BSPs
69  makefiles="$makefiles $RTEMS_CPU/Makefile"
70     
71  if test -d "$srcdir/$bspcpudir$bspdir"; then
72    RTEMS_CHECK_MAKEFILE(${bspcpudir}$bspdir)
73    RTEMS_CHECK_MAKEFILE(${bspcpudir}shared)
74
75    # HACK: sed out bsp-tools from makefiles
76    t="$bspcpudir$bspdir/tools"
77    if test -d "$srcdir/$t"; then
78      bsptools_cfgdirs="$bsptools_cfgdirs $t"
79      makefiles=`echo "$makefiles" | sed -e "s%$t/.*Makefile%%g"`
80    fi
81  else
82    AC_MSG_ERROR([unable to find libbsp subdirectory ($bspdir) for  ${RTEMS_BSP}])
83  fi
84else
85  cfg_subdirs="$RTEMS_LIBBSP_CPU_SUBDIR"
86fi
87
88if test "$HAS_MP" = "yes"; then
89  makefiles="$makefiles shmdr/Makefile"
90else
91  # HACK: sed out shmsupp/Makefile from makefiles
92  t="$bspcpudir$bspdir/shmsupp"
93  makefiles=`echo "$makefiles" | sed -e "s%$t/.*Makefile%%g"`
94fi
95
96AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes")
97
98AC_CONFIG_SUBDIRS($bsptools_cfgdirs)
99
100AC_CONFIG_SUBDIRS($cfg_subdirs)
101
102# try to explicitly list a Makefile here
103AC_OUTPUT(
104Makefile
105$makefiles)
Note: See TracBrowser for help on using the repository browser.