From 579fc6a3a35c2e18a79f596485c339d5d721a20d Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 13 Aug 1998 14:47:18 +0000 Subject: Per request from Chris Johns , I added code to detect when the bare bsp was enabled without setting both --enable-cpu-model and --enable-cpu-cflags. --- configure.in | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index f903cd7b94..a4a9125b38 100644 --- a/configure.in +++ b/configure.in @@ -318,8 +318,18 @@ if test -d "$srcdir/c/src/lib/libbsp/$target_cpu"; then # Is there code where there should be for this BSP? # The bare bsp is a special case as it is not under the target_cpu path case $i in - bare) bspcpudir= ;; - *) bspcpudir=$target_cpu/ ;; + bare) + bspcpudir= + if test "X${BARE_CPU_CFLAGS}" = "X" ; then + AC_MSG_ERROR([--enable-bare-cpu-flags not specified for bare bsp]) + fi + if test "X${BARE_CPU_MODEL}" = "X" ; then + AC_MSG_ERROR([--enable-bare-cpu-model not specified for bare bsp]) + fi + ;; + *) + bspcpudir=$target_cpu/ + ;; esac if test -d "$srcdir/c/src/lib/libbsp/$bspcpudir$bspdir"; then -- cgit v1.2.3