From ae5fe7e6bca2874c5f1ef077204bb63124fb3db3 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Sun, 26 Oct 2014 18:09:41 -0700 Subject: cpukit: Add libdl with the Runtime Loader (RTL) code. This is a merge of the RTL project. --- cpukit/configure.ac | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'cpukit/configure.ac') diff --git a/cpukit/configure.ac b/cpukit/configure.ac index fcf3437a1b..b3c818c861 100644 --- a/cpukit/configure.ac +++ b/cpukit/configure.ac @@ -298,7 +298,7 @@ AC_ENABLE_MULTILIB([Makefile],[..]) AC_MSG_CHECKING([for assignable stdio]) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( - [#include ], + [#include ], [stdin = fopen("/tmp", "r")])], [HAVE_ASSIGNABLE_STDIO=yes], [HAVE_ASSIGNABLE_STDIO=no]) @@ -322,7 +322,7 @@ AC_CHECK_SIZEOF([time_t]) AC_CHECK_SIZEOF([size_t]) -# FIXME: Mandatory in SUSv4, optional in SUSv3. +# FIXME: Mandatory in SUSv4, optional in SUSv3. # Not implemented in GCC/newlib, so far. AC_CHECK_DECLS([WORD_BIT],,,[#include ]) AC_CHECK_DECLS([LONG_BIT],,,[#include ]) @@ -372,6 +372,19 @@ AM_CONDITIONAL([RPCTOOLS],[test "$RPCGEN" = rpcgen \ && test -n "$AWK" \ && test "$enable_rpcgen" = yes]) +# Filter dynamic loading to only build for architectures that have +# reloc backends +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(LIBDL,[test x"$HAVE_LIBDL" = x"yes"]) +AC_MSG_RESULT([$HAVE_LIBDL]) + RTEMS_AMPOLISH3 # Explicitly list all Makefiles here @@ -412,6 +425,7 @@ librpc/Makefile libmisc/Makefile libi2c/Makefile libmd/Makefile +libdl/Makefile zlib/Makefile ftpd/Makefile telnetd/Makefile -- cgit v1.2.3