summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2021-11-24 12:03:57 -0600
committerJoel Sherrill <joel@rtems.org>2021-11-29 09:05:10 -0600
commite945e3fc4d6a6a74789c9a348120ec7d06e19231 (patch)
treeada9d52d13385f9b1adc561eadf0adf47f3a112b /testsuites
parentdd70c81699a90ca48ae74980e8053b3c708ae6bc (diff)
downloadrtems-e945e3fc4d6a6a74789c9a348120ec7d06e19231.tar.bz2
*/aclocal/*: Remove remnants of autoconf/automae build system
Updates #4081.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/aclocal/canonical-target-name.m425
-rw-r--r--testsuites/aclocal/canonicalize-tools.m420
-rw-r--r--testsuites/aclocal/check-cpuopts.m421
-rw-r--r--testsuites/aclocal/check-custom-bsp.m422
-rw-r--r--testsuites/aclocal/check-cxx.m420
-rw-r--r--testsuites/aclocal/check-tool.m49
-rw-r--r--testsuites/aclocal/enable-cxx.m411
-rw-r--r--testsuites/aclocal/enable-tests.m411
-rw-r--r--testsuites/aclocal/env-rtemsbsp.m427
-rw-r--r--testsuites/aclocal/gcc-specs.m416
-rw-r--r--testsuites/aclocal/prog-cc.m440
-rw-r--r--testsuites/aclocal/prog-cxx.m449
-rw-r--r--testsuites/aclocal/project-root.m47
-rw-r--r--testsuites/aclocal/rtems-bsp-includes.m413
-rw-r--r--testsuites/aclocal/rtems-bsp-linkcmds.m425
-rw-r--r--testsuites/aclocal/rtems-build-top.m412
-rw-r--r--testsuites/aclocal/rtems-includes.m423
-rw-r--r--testsuites/aclocal/rtems-source-top.m48
-rw-r--r--testsuites/aclocal/rtems-test-check.m431
-rw-r--r--testsuites/aclocal/rtems-top.m483
-rw-r--r--testsuites/aclocal/version.m44
-rw-r--r--testsuites/ada/aclocal/prog-gnat.m444
22 files changed, 0 insertions, 521 deletions
diff --git a/testsuites/aclocal/canonical-target-name.m4 b/testsuites/aclocal/canonical-target-name.m4
deleted file mode 100644
index d3c2531cda..0000000000
--- a/testsuites/aclocal/canonical-target-name.m4
+++ /dev/null
@@ -1,25 +0,0 @@
-dnl canonicalize target cpu
-dnl NOTE: Most rtems targets do not fullfil autoconf's
-dnl target naming conventions "processor-vendor-os"
-dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
-dnl and we have to fix it for rtems ourselves
-
-AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU],
-[AC_REQUIRE([AC_CANONICAL_HOST])
-AC_MSG_CHECKING(rtems target cpu)
-case "${host}" in
-riscv*-*-rtems*)
- RTEMS_CPU=riscv;;
-*-*-rtems*)
- RTEMS_CPU="$host_cpu";;
-*)
- ;;
-esac
-AS_IF([test -n "$RTEMS_CPU"],
-[dnl
-AC_MSG_RESULT($RTEMS_CPU)],
-[dnl
-AC_MSG_RESULT([<none>])
-AC_MSG_ERROR([unsupported host $host])])
-AC_SUBST(RTEMS_CPU)
-])
diff --git a/testsuites/aclocal/canonicalize-tools.m4 b/testsuites/aclocal/canonicalize-tools.m4
deleted file mode 100644
index d4f9241a2b..0000000000
--- a/testsuites/aclocal/canonicalize-tools.m4
+++ /dev/null
@@ -1,20 +0,0 @@
-dnl Set target tools
-dnl
-
-AC_DEFUN([RTEMS_CANONICALIZE_TOOLS],
-[AC_REQUIRE([RTEMS_PROG_CC])dnl
-
-dnl FIXME: What shall be done if these tools are not available?
- RTEMS_CHECK_TOOL(AR,ar,no)
- RTEMS_CHECK_TOOL(AS,as,no)
- RTEMS_CHECK_TOOL(LD,ld,no)
- RTEMS_CHECK_TOOL(NM,nm,no)
-
-dnl special treatment of ranlib
- RTEMS_CHECK_TOOL(RANLIB,ranlib,:)
-
-dnl NOTE: These may not be available if not using gnutools
- RTEMS_CHECK_TOOL(OBJCOPY,objcopy,no)
- RTEMS_CHECK_TOOL(SIZE,size,no)
- RTEMS_CHECK_TOOL(STRIP,strip,:)
-])
diff --git a/testsuites/aclocal/check-cpuopts.m4 b/testsuites/aclocal/check-cpuopts.m4
deleted file mode 100644
index e399f13cb2..0000000000
--- a/testsuites/aclocal/check-cpuopts.m4
+++ /dev/null
@@ -1,21 +0,0 @@
-
-# RTEMS_CHECK_CPUOPTS(define)
-AC_DEFUN([RTEMS_CHECK_CPUOPTS],
-[
-AC_REQUIRE([RTEMS_BUILD_TOP])
-sav_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="$CPPFLAGS -I${RTEMS_BUILD_ROOT}/include"
-AC_CACHE_CHECK(
- [for $1],
- [rtems_cv_$1],
- [AC_COMPILE_IFELSE([AC_LANG_SOURCE([
-#include <rtems/score/cpuopts.h>
-#ifndef $1
-choke me
-#endif
- ])],
- [rtems_cv_$1=yes],
- [rtems_cv_$1=no])
- ])
-CPPFLAGS="$sav_CPPFLAGS"
-])
diff --git a/testsuites/aclocal/check-custom-bsp.m4 b/testsuites/aclocal/check-custom-bsp.m4
deleted file mode 100644
index 8857adcc3f..0000000000
--- a/testsuites/aclocal/check-custom-bsp.m4
+++ /dev/null
@@ -1,22 +0,0 @@
-AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[
-AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
-AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
- for i in ${rtems_rootdir}make/custom/$1;
- do
- AC_MSG_CHECKING([for $i])
- AS_IF([test -r $i],[
- $2="$i"
- AC_MSG_RESULT([yes])
- break;
- ],[
- AC_MSG_RESULT([no])
- ])
- done
-])
-
-AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
- _RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND])
- AS_IF([test -z "$BSP_FOUND"],[
- AC_MSG_ERROR([missing [$]$1.cfg])
- ])
-])
diff --git a/testsuites/aclocal/check-cxx.m4 b/testsuites/aclocal/check-cxx.m4
deleted file mode 100644
index 9fbea4e423..0000000000
--- a/testsuites/aclocal/check-cxx.m4
+++ /dev/null
@@ -1,20 +0,0 @@
-dnl
-AC_DEFUN([RTEMS_CHECK_CXX],
-[dnl
-AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl
-AC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET])dnl
-AC_REQUIRE([RTEMS_PROG_CXX_FOR_TARGET])dnl
-AC_CACHE_CHECK([whether to build rtems++],
- rtems_cv_HAS_CPLUSPLUS,
- [ if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
- if test -n "$CXX"; then
- rtems_cv_HAS_CPLUSPLUS="yes"
- else
- rtems_cv_HAS_CPLUSPLUS="no"
- fi
- else
- rtems_cv_HAS_CPLUSPLUS="no"
- fi])
-HAS_CPLUSPLUS="$rtems_cv_HAS_CPLUSPLUS";
-AC_SUBST(HAS_CPLUSPLUS)dnl
-])
diff --git a/testsuites/aclocal/check-tool.m4 b/testsuites/aclocal/check-tool.m4
deleted file mode 100644
index 2bc137cd96..0000000000
--- a/testsuites/aclocal/check-tool.m4
+++ /dev/null
@@ -1,9 +0,0 @@
-## Check for a cross tool, similar to AC_CHECK_TOOL, but do not fall back to
-## the un-prefixed version of PROG-TO-CHECK-FOR.
-dnl RTEMS_CHECK_TOOL(VARIABLE, PROG-TO-CHECK-FOR[, VALUE-IF-NOT-FOUND [, PATH]])
-AC_DEFUN([RTEMS_CHECK_TOOL],
-[
- AS_IF([test "x$build_alias" != "x$host_alias"],
- [rtems_tool_prefix=${ac_tool_prefix}])
- AC_CHECK_PROG($1, ${rtems_tool_prefix}$2, ${rtems_tool_prefix}$2, $3, $4)
-])
diff --git a/testsuites/aclocal/enable-cxx.m4 b/testsuites/aclocal/enable-cxx.m4
deleted file mode 100644
index 952f0151a8..0000000000
--- a/testsuites/aclocal/enable-cxx.m4
+++ /dev/null
@@ -1,11 +0,0 @@
-AC_DEFUN([RTEMS_ENABLE_CXX],
-[
-AC_ARG_ENABLE(cxx,
-[AS_HELP_STRING([--enable-cxx],
-[enable C++ support])],
-[case "${enable_cxx}" in
- yes) RTEMS_HAS_CPLUSPLUS=yes ;;
- no) RTEMS_HAS_CPLUSPLUS=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for enable-cxx option) ;;
-esac], [RTEMS_HAS_CPLUSPLUS=yes])
-])
diff --git a/testsuites/aclocal/enable-tests.m4 b/testsuites/aclocal/enable-tests.m4
deleted file mode 100644
index 9373924013..0000000000
--- a/testsuites/aclocal/enable-tests.m4
+++ /dev/null
@@ -1,11 +0,0 @@
-AC_DEFUN([RTEMS_ENABLE_TESTS],
-[
-AC_ARG_ENABLE(tests,
-[AS_HELP_STRING(--enable-tests,enable tests (default:samples))],
- [case "${enableval}" in
- samples) enable_tests=samples;;
- yes) enable_tests=yes ;;
- no) enable_tests=no ;;
- *) AC_MSG_ERROR([bad value ${enableval} for --enable-tests]) ;;
- esac], [enable_tests=samples])
-])
diff --git a/testsuites/aclocal/env-rtemsbsp.m4 b/testsuites/aclocal/env-rtemsbsp.m4
deleted file mode 100644
index 1cca7d9f83..0000000000
--- a/testsuites/aclocal/env-rtemsbsp.m4
+++ /dev/null
@@ -1,27 +0,0 @@
-dnl Pass a single BSP via an environment variable
-dnl used by per BSP configure scripts
-AC_DEFUN([RTEMS_ENV_RTEMSBSP],
-[dnl
-AC_BEFORE([$0], [RTEMS_ENABLE_RTEMSBSP])dnl
-AC_BEFORE([$0], [RTEMS_PROJECT_ROOT])dnl
-AC_BEFORE([$0], [RTEMS_CHECK_CUSTOM_BSP])dnl
-
-AC_ARG_VAR([RTEMS_BSP_FAMILY],[RTEMS's BSP directory])
-
-AC_ARG_VAR([RTEMS_BSP],[RTEMS_BSP to build])
-AC_MSG_CHECKING([for RTEMS_BSP])
-AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
-[dnl
- test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
-])dnl
-if test -z "$rtems_cv_RTEMS_BSP"; then
- AC_MSG_ERROR([Missing RTEMS_BSP])
-fi
-RTEMS_BSP="$rtems_cv_RTEMS_BSP"
-AC_MSG_RESULT(${RTEMS_BSP})
-AC_SUBST(RTEMS_BSP)
-
-AC_SUBST([PROJECT_INCLUDE],["\$(PROJECT_ROOT)/lib/include"])
-AC_SUBST([PROJECT_LIB],["\$(PROJECT_ROOT)/lib"])
-AC_SUBST([PROJECT_RELEASE],["\$(PROJECT_ROOT)"])
-])
diff --git a/testsuites/aclocal/gcc-specs.m4 b/testsuites/aclocal/gcc-specs.m4
deleted file mode 100644
index ddcc2bfb0c..0000000000
--- a/testsuites/aclocal/gcc-specs.m4
+++ /dev/null
@@ -1,16 +0,0 @@
-dnl Check whether the target compiler accepts -specs
-
-AC_DEFUN([RTEMS_GCC_SPECS],
-[AC_REQUIRE([RTEMS_PROG_CC])
-AC_CACHE_CHECK(whether $CC accepts -specs,rtems_cv_gcc_specs,
-[
-rtems_cv_gcc_specs=no
-if test x"$GCC" = x"yes"; then
- touch confspec
- echo 'void f(){}' >conftest.c
- if test -z "`${CC} -specs confspec -c conftest.c 2>&1`";then
- rtems_cv_gcc_specs=yes
- fi
-fi
-rm -f confspec conftest*
-])])
diff --git a/testsuites/aclocal/prog-cc.m4 b/testsuites/aclocal/prog-cc.m4
deleted file mode 100644
index cf6be7d9d0..0000000000
--- a/testsuites/aclocal/prog-cc.m4
+++ /dev/null
@@ -1,40 +0,0 @@
-dnl
-dnl Check for target gcc
-dnl
-
-AC_DEFUN([RTEMS_PROG_CC],
-[
-AC_BEFORE([$0], [AC_PROG_CPP])dnl
-AC_BEFORE([$0], [AC_PROG_CC])dnl
-AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
-
-case "$host" in
-*-*-rtems*) ac_cv_exeext=.exe;;
-esac
-
-RTEMS_CHECK_TOOL(CC,gcc)
-test -z "$CC" && \
- AC_MSG_ERROR([no acceptable cc found in \$PATH])
-AC_PROG_CC
-AC_PROG_CPP
-])
-
-AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET],
-[
-dnl check target cc
-RTEMS_PROG_CC
-
-dnl check if the compiler supports -specs
-RTEMS_GCC_SPECS
-
-AS_IF([test x"$GCC" = xyes],[
-GCCSPECS="-B\$(RTEMS_SOURCE_ROOT)/bsps/\$(RTEMS_CPU)/\$(RTEMS_BSP_FAMILY)/start"
-AS_IF([test x"$rtems_cv_gcc_specs" = xyes],[
-GCCSPECS="${GCCSPECS} -specs bsp_specs"])
-GCCSPECS="${GCCSPECS} -qrtems"])
-AC_SUBST(GCCSPECS)
-
-RTEMS_INCLUDES
-RTEMS_BSP_INCLUDES
-RTEMS_BSP_LINKCMDS
-])
diff --git a/testsuites/aclocal/prog-cxx.m4 b/testsuites/aclocal/prog-cxx.m4
deleted file mode 100644
index aac9c37f6c..0000000000
--- a/testsuites/aclocal/prog-cxx.m4
+++ /dev/null
@@ -1,49 +0,0 @@
-dnl
-dnl Check for target g++
-dnl
-
-AC_DEFUN([RTEMS_PROG_CXX_FOR_TARGET],
-[
-AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
-AC_REQUIRE([RTEMS_ENABLE_CXX])
-RTEMS_CHECK_CPUOPTS([RTEMS_SMP])
-
-# If CXXFLAGS is not set, default to CFLAGS
-if test x"$rtems_cv_HAS_SMP" = x"yes" ; then
- CXXFLAGS=${CXXFLAGS-${CFLAGS} -std=gnu++11}
-else
- CXXFLAGS=${CXXFLAGS-${CFLAGS}}
-fi
-
-CXXFLAGS=`echo ${CXXFLAGS} | sed \
- -e s/-Wmissing-prototypes// \
- -e s/-Wimplicit-function-declaration// \
- -e s/-Wstrict-prototypes// \
- -e s/-Wnested-externs//`
-
-RTEMS_CHECK_TOOL(CXX,g++)
-if test "$RTEMS_HAS_CPLUSPLUS" = "yes";
-then
- dnl Only accept g++
- dnl NOTE: This might be too restrictive
- if test -z "$CXX";
- then
- RTEMS_HAS_CPLUSPLUS=no
- HAS_CPLUSPLUS=no
- ## Work-around to a bug in automake
- AM_CONDITIONAL([am__fastdepCXX],[false])
- else
- AC_PROG_CXX
- AC_PROG_CXXCPP
- if test "$ac_cv_prog_cc_cross" != "$ac_cv_prog_cxx_cross"; then
- AC_MSG_ERROR([***]
- [Inconsistency in compiler configuration:]
- [Target C compiler and target C++ compiler]
- [must both either be cross compilers or native compilers])
- fi
- fi
-else
- ## Work-around to a bug in automake
- AM_CONDITIONAL([am__fastdepCXX],[false])
-fi
-])
diff --git a/testsuites/aclocal/project-root.m4 b/testsuites/aclocal/project-root.m4
deleted file mode 100644
index 641baee021..0000000000
--- a/testsuites/aclocal/project-root.m4
+++ /dev/null
@@ -1,7 +0,0 @@
-AC_DEFUN([RTEMS_PROJECT_ROOT],
-[dnl
-AC_REQUIRE([RTEMS_TOP])
-BIN2C=rtems-bin2c
-AC_SUBST(BIN2C)
-])
-
diff --git a/testsuites/aclocal/rtems-bsp-includes.m4 b/testsuites/aclocal/rtems-bsp-includes.m4
deleted file mode 100644
index 2248211192..0000000000
--- a/testsuites/aclocal/rtems-bsp-includes.m4
+++ /dev/null
@@ -1,13 +0,0 @@
-dnl
-dnl RTEMS Include paths.
-dnl
-AC_DEFUN([RTEMS_BSP_INCLUDES],
-[
-AC_REQUIRE([RTEMS_SOURCE_TOP])
-AC_REQUIRE([RTEMS_BUILD_TOP])
-RTEMS_BSP_CPPFLAGS="-I${RTEMS_BUILD_ROOT}/lib/libbsp/\$(RTEMS_CPU)/\$(RTEMS_BSP_FAMILY)/include \
--I${RTEMS_SOURCE_ROOT}/bsps/include \
--I${RTEMS_SOURCE_ROOT}/bsps/\$(RTEMS_CPU)/include \
--I${RTEMS_SOURCE_ROOT}/bsps/\$(RTEMS_CPU)/\$(RTEMS_BSP_FAMILY)/include"
-AC_SUBST([RTEMS_BSP_CPPFLAGS])
-])
diff --git a/testsuites/aclocal/rtems-bsp-linkcmds.m4 b/testsuites/aclocal/rtems-bsp-linkcmds.m4
deleted file mode 100644
index 0ad8867f9d..0000000000
--- a/testsuites/aclocal/rtems-bsp-linkcmds.m4
+++ /dev/null
@@ -1,25 +0,0 @@
-dnl
-dnl RTEMS Include paths.
-dnl
-dnl This is messy because the linkcmds have no clear and defined structure.
-dnl There are BSP named linkcmds files, plain linkcmds file, configure template
-dnl .in files configure changes and shared versions of these. The approach to have
-dnl a single file for a number of BSPs in a family is sound, the lack of rules
-dnl means we have a range of variants and this results in following code.
-dnl
-dnl The preinstall hid a number of questionable things and preinstall has gone.
-dnl
-AC_DEFUN([RTEMS_BSP_LINKCMDS],
-[
-AC_REQUIRE([RTEMS_SOURCE_TOP])
-AC_REQUIRE([RTEMS_BUILD_TOP])
-
-AC_MSG_CHECKING([BSP linkcmds])
-
-RTEMS_BSP_ARCH_PATH="${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}"
-RTEMS_BSP_ARCH_LINKCMDS_PATH="${RTEMS_BSP_ARCH_PATH}/shared/start"
-RTEMS_BSP_LIBBSP_PATH="${RTEMS_BUILD_ROOT}/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}"
-
-AC_SUBST(RTEMS_BSP_ARCH_LINKCMDS_PATH)
-AC_SUBST(RTEMS_BSP_LIBBSP_PATH)
-])
diff --git a/testsuites/aclocal/rtems-build-top.m4 b/testsuites/aclocal/rtems-build-top.m4
deleted file mode 100644
index 5708119c14..0000000000
--- a/testsuites/aclocal/rtems-build-top.m4
+++ /dev/null
@@ -1,12 +0,0 @@
-dnl
-dnl RTEMS_BUILD_TOP($1)
-dnl
-AC_DEFUN([RTEMS_BUILD_TOP],
-[dnl
-#
-# This is a copy of the horrible hack in rtems-top.m4 and it is simpler to
-# copy it that attempt to clean this crap up.
-#
-RTEMS_BUILD_ROOT="${with_rtems_build_top}"
-AC_SUBST([RTEMS_BUILD_ROOT])
-])dnl
diff --git a/testsuites/aclocal/rtems-includes.m4 b/testsuites/aclocal/rtems-includes.m4
deleted file mode 100644
index ca4ebed581..0000000000
--- a/testsuites/aclocal/rtems-includes.m4
+++ /dev/null
@@ -1,23 +0,0 @@
-dnl
-dnl RTEMS Include paths.
-dnl
-AC_DEFUN([RTEMS_INCLUDES],
-[
-AC_REQUIRE([RTEMS_SOURCE_TOP])
-AC_REQUIRE([RTEMS_BUILD_TOP])
-
-# Was CFLAGS set?
-rtems_cv_CFLAGS_set="${CFLAGS+set}"
-
-RTEMS_INCLUDE_CPUKIT="-I${RTEMS_SOURCE_ROOT}/cpukit/include"
-RTEMS_INCLUDE_CPUKIT_ARCH="-I${RTEMS_SOURCE_ROOT}/cpukit/score/cpu/\$(RTEMS_CPU)/include"
-
-RTEMS_CPUKIT_INCLUDE="${RTEMS_INCLUDE_CPUKIT} ${RTEMS_INCLUDE_CPUKIT_ARCH}"
-RTEMS_BUILD_INCLUDE="-I\$(top_builddir) -I${RTEMS_BUILD_ROOT}/include"
-
-RTEMS_INCLUDE="${RTEMS_BUILD_INCLUDE} ${RTEMS_CPUKIT_INCLUDE}"
-
-RTEMS_CPPFLAGS="${RTEMS_INCLUDE}"
-
-AC_SUBST([RTEMS_CPPFLAGS])
-])
diff --git a/testsuites/aclocal/rtems-source-top.m4 b/testsuites/aclocal/rtems-source-top.m4
deleted file mode 100644
index d1460ae82d..0000000000
--- a/testsuites/aclocal/rtems-source-top.m4
+++ /dev/null
@@ -1,8 +0,0 @@
-dnl
-dnl RTEMS_SOURCE_TOP
-dnl
-AC_DEFUN([RTEMS_SOURCE_TOP],
-[dnl
-RTEMS_SOURCE_ROOT="${with_rtems_source_top}"
-AC_SUBST([RTEMS_SOURCE_ROOT])
-])dnl
diff --git a/testsuites/aclocal/rtems-test-check.m4 b/testsuites/aclocal/rtems-test-check.m4
deleted file mode 100644
index 99b3e31244..0000000000
--- a/testsuites/aclocal/rtems-test-check.m4
+++ /dev/null
@@ -1,31 +0,0 @@
-dnl
-dnl Check a test getting it's status.
-dnl
-AC_DEFUN([RTEMS_TEST_CHECK],
-[AC_REQUIRE([RTEMS_ENV_RTEMSBSP])
- AC_REQUIRE([RTEMS_SOURCE_TOP])
- AC_MSG_CHECKING([${RTEMS_CPU}/${RTEMS_BSP} $1 test])
- tcheck="${RTEMS_SOURCE_ROOT}/testsuites/rtems-test-check"
- tdata="${RTEMS_BSP}-testsuite.tcfg"
- tincludes="${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}:${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}:${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/config:${RTEMS_SOURCE_ROOT}/testsuites"
- if test -f $tcheck; then
- check_result=`$tcheck exclude ${RTEMS_BSP} $tdata $tincludes $1`
- else
- check_result=$1
- fi
- if test "$1" = "$check_result"; then
- if test -f $tcheck; then
- test_CFLAGS=`$tcheck cflags ${RTEMS_BSP} $tdata $tincludes $1`
- fi
- if test -z "$test_CFLAGS"; then
- result_msg="PASS"
- else
- result_msg="$test_CFLAGS"
- fi
- else
- result_msg="EXCLUDED"
- fi
- AC_MSG_RESULT([$result_msg])
- AM_CONDITIONAL([TEST_$1], [test "$result_msg" != "EXCLUDED"])
- AC_SUBST([TEST_FLAGS_$1], [$test_CFLAGS])
-])
diff --git a/testsuites/aclocal/rtems-top.m4 b/testsuites/aclocal/rtems-top.m4
deleted file mode 100644
index acb5732a1e..0000000000
--- a/testsuites/aclocal/rtems-top.m4
+++ /dev/null
@@ -1,83 +0,0 @@
-# AC_DISABLE_OPTION_CHECKING is not available before 2.62
-AC_PREREQ(2.62)
-
-dnl
-dnl RTEMS_TOP($1)
-dnl
-dnl $1 .. relative path from this configure.ac to the toplevel configure.ac
-dnl
-AC_DEFUN([RTEMS_TOP],
-[dnl
-AC_REQUIRE([RTEMS_VERSIONING])
-AC_REQUIRE([AM_SET_LEADING_DOT])
-AC_REQUIRE([AC_DISABLE_OPTION_CHECKING])
-AC_CONFIG_AUX_DIR([$1])
-AC_CHECK_PROGS(MAKE, gmake make)
-AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl
-
-AC_PREFIX_DEFAULT([/opt/rtems-][_RTEMS_API])
-
-## HACK to allow gnu-make conditionals in automake-Makefiles.
-ENDIF=endif
-AC_SUBST(ENDIF)
-
-AC_SUBST([RTEMS_TOPdir],["$1"])
-
-rtems_updir=m4_if([$2],[],[],[$2/])
-
-AC_ARG_ENABLE([rtems-root],[
-AS_HELP_STRING(--enable-rtems-root,directory containing make/custom)],
-[case ${enable_rtems_root} in
- [[\\/$]]* | ?:[[\\/]]* ) # absolute directory
- rtems_rootdir=${enable_rtems_root}
- RTEMS_ROOT=${enable_rtems_root}
- ;;
- *) # relative directory
- rtems_rootdir=${rtems_updir}${enable_rtems_root}
- RTEMS_ROOT='$(top_builddir)'/${rtems_updir}${enable_rtems_root}
- ;;
-esac],[
-rtems_rootdir=${rtems_updir}
-RTEMS_ROOT='$(top_builddir)'/${rtems_updir}
-])
-AC_SUBST([RTEMS_ROOT])
-
-AS_IF([test -n "${with_target_subdir}"],
- [project_top="../${with_project_top}"],
- [project_top="${with_project_top}"])
-AC_SUBST([PROJECT_TOPdir],[${project_top}${rtems_updir}'$(top_builddir)'])
-
-AC_ARG_ENABLE([cpukit-root],[
-AS_HELP_STRING(--enable-cpukit-root,directory containing lib/librtemscpu.a)],
-[case ${enable_cpukit_root} in
- [[\\/$]]* | ?:[[\\/]]* ) # absolute directory
- cpukit_rootdir=${enable_cpukit_root}
- CPUKIT_ROOT=${enable_cpukit_root}
- ;;
- *) # relative directory
- cpukit_rootdir=${rtems_updir}${enable_cpukit_root}
- CPUKIT_ROOT='$(top_builddir)'/${rtems_updir}${enable_cpukit_root}
- ;;
-esac],[
-cpukit_rootdir=
-CPUKIT_ROOT=
-])
-AC_SUBST([CPUKIT_ROOT])
-
-AC_ARG_ENABLE([project-root],[
-AS_HELP_STRING(--enable-project-root,directory containing lib/librtemsbsp.a)],
-[case ${enable_project_root} in
- [[\\/$]]* | ?:[[\\/]]* ) # absolute directory
- project_rootdir=${enable_project_root}
- PROJECT_ROOT=${enable_project_root}
- ;;
- *) # relative directory
- project_rootdir=${rtems_updir}${enable_project_root}
- PROJECT_ROOT='$(top_builddir)'/${rtems_updir}${enable_project_root}
- ;;
-esac],[
-project_rootdir=
-PROJECT_ROOT=
-])
-AC_SUBST([PROJECT_ROOT])
-])dnl
diff --git a/testsuites/aclocal/version.m4 b/testsuites/aclocal/version.m4
deleted file mode 100644
index 69e3eea10a..0000000000
--- a/testsuites/aclocal/version.m4
+++ /dev/null
@@ -1,4 +0,0 @@
-AC_DEFUN([RTEMS_VERSIONING],
-m4_define([_RTEMS_VERSION],[6.0.0]))
-
-m4_define([_RTEMS_API],[6])
diff --git a/testsuites/ada/aclocal/prog-gnat.m4 b/testsuites/ada/aclocal/prog-gnat.m4
deleted file mode 100644
index a2b2879c7d..0000000000
--- a/testsuites/ada/aclocal/prog-gnat.m4
+++ /dev/null
@@ -1,44 +0,0 @@
-##
-## Partially borrowed from gcc-3.2
-##
-## WARNING: All the stuff below is pretty immature.
-
-AC_DEFUN([RTEMS_PROG_GNAT],
-[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])
-AC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET])
-
-AC_CHECK_TOOL([GNATMAKE],[gnatmake],[])
-AC_CACHE_CHECK([for compiler driver that understands Ada],
- [rtems_cv_prog_CCADA],
-[cat >conftest.adb <<EOF
-procedure conftest is begin null; end conftest;
-EOF
-rtems_cv_prog_CCADA=
-# Have to do ac_tool_prefix and user overrides by hand.
-user_ccada=$CCADA
-user_cc=$CC
-for cand in ${ac_tool_prefix}$user_ccada $user_ccada \
- ${ac_tool_prefix}$user_cc $user_cc \
- ${ac_tool_prefix}gcc gcc \
- ${ac_tool_prefix}cc cc \
- ${ac_tool_prefix}gnatgcc gnatgcc \
- ${ac_tool_prefix}gnatcc gnatcc \
- ${ac_tool_prefix}adagcc adagcc \
- ${ac_tool_prefix}adac adac ; do
- # There is a bug in all released versions of GCC which causes the
- # driver to exit successfully when the appropriate language module
- # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
- # Therefore we must check for the error message as well as an
- # unsuccessful exit.
- errors=`($cand -c conftest.adb) 2>&1 || echo failure`
- AS_IF([test -z "$errors"],
- [rtems_cv_prog_CCADA=$cand
- break])
-done
-rm -f conftest.*])
-AC_SUBST([CCADA],[$rtems_cv_prog_CCADA])
-
-AS_IF([test -n "$GNATMAKE" && test -n "$CCADA"],
- [HAVE_GNAT=yes],
- [HAVE_GNAT=no])
-])