[rtems commit] libtests: Omit libdl tests if no RTEMS tools

Sebastian Huber sebh at rtems.org
Wed Dec 3 07:28:21 UTC 2014


Module:    rtems
Branch:    master
Commit:    f54e50339ca2c38aed88ce89515a604c67c0e126
Changeset: http://git.rtems.org/rtems/commit/?id=f54e50339ca2c38aed88ce89515a604c67c0e126

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Dec  2 10:35:13 2014 +0100

libtests: Omit libdl tests if no RTEMS tools

---

 testsuites/libtests/configure.ac | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/testsuites/libtests/configure.ac b/testsuites/libtests/configure.ac
index f8eb272..53a017b 100644
--- a/testsuites/libtests/configure.ac
+++ b/testsuites/libtests/configure.ac
@@ -46,24 +46,25 @@ AC_MSG_CHECKING([whether CPU supports libdl])
 case $RTEMS_CPU in
   arm | bfin | h8300 | i386 | lm32 | m32r | m68k | mips | \
   moxie | powerpc | sparc | v850)
-   HAVE_LIBDL=yes ;;
+   TEST_LIBDL=yes ;;
   *)
-   HAVE_LIBDL=no ;;
+   TEST_LIBDL=no ;;
 esac
-AM_CONDITIONAL(DLTESTS,[test x"$HAVE_LIBDL" = x"yes"])
-AC_MSG_RESULT([$HAVE_LIBDL])
+AC_MSG_RESULT([$TEST_LIBDL])
 
-AS_IF([test x"$HAVE_LIBDL" = x"yes"],[
+AS_IF([test x"$TEST_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.])
+    TEST_LIBDL=no
   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.])
+    TEST_LIBDL=no
   fi
 ])
 
+AM_CONDITIONAL(DLTESTS,[test x"$TEST_LIBDL" = x"yes"])
+
 # Explicitly list all Makefiles here
 AC_CONFIG_FILES([Makefile
 pwdgrp02/Makefile




More information about the vc mailing list