diff options
Diffstat (limited to 'testsuites/libtests/configure.ac')
-rw-r--r-- | testsuites/libtests/configure.ac | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuites/libtests/configure.ac b/testsuites/libtests/configure.ac index 410fb75691..9914a06dd2 100644 --- a/testsuites/libtests/configure.ac +++ b/testsuites/libtests/configure.ac @@ -41,6 +41,29 @@ AM_CONDITIONAL([HAS_COMPLEX],[test "$ac_cv_header_complex_h" = yes]) AM_CONDITIONAL(NETTESTS,test "$rtems_cv_RTEMS_NETWORKING" = "yes") AM_CONDITIONAL(HAS_POSIX,test x"${rtems_cv_RTEMS_POSIX_API}" = x"yes") +# Must match the list in cpukit. +AC_MSG_CHECKING([whether CPU supports libdl]) +case $RTEMS_CPU in + arm | bfin | h8300 | i386 | lm32 | m32r | m68k | mips | \ + moxie | nios2 | powerpc | sparc | v850) + HAVE_LIBDL=yes ;; + *) + HAVE_LIBDL=no ;; +esac +AM_CONDITIONAL(DLTESTS,[test x"$HAVE_LIBDL" = x"yes"]) +AC_MSG_RESULT([$HAVE_LIBDL]) + +AS_IF([test x"$HAVE_LIBDL" = x"yes"],[ + AC_CHECK_PROG(RTEMS_LD_CHECK,rtems-ld,yes) + if test x"$RTEMS_LD_CHECK" != x"yes" ; then + AC_MSG_ERROR([Please install rtems-tools.]) + fi + AC_CHECK_PROG(RTEMS_SYMS_CHECK,rtems-syms,yes) + if test x"$RTEMS_SYMS_CHECK" != x"yes" ; then + AC_MSG_ERROR([Please install rtems-tools.]) + fi +]) + # Explicitly list all Makefiles here AC_CONFIG_FILES([Makefile newlib01/Makefile @@ -78,6 +101,7 @@ devfs03/Makefile devfs04/Makefile deviceio01/Makefile devnullfatal01/Makefile +dl01/Makefile dumpbuf01/Makefile ftp01/Makefile gxx01/Makefile |