From: Jan Kiszka <jan.kiszka@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-core] [PATCH v2 3/4] Add --enable-dlopen-skins configure switch
Date: Tue, 17 Feb 2009 18:04:19 +0100 [thread overview]
Message-ID: <20090217170419.1425.28041.stgit@domain.hid> (raw)
In-Reply-To: <20090217170418.1425.56126.stgit@domain.hid>
To clarify the relation between disabling TLS support and allowing to
dlopen Xenomai skin library, introduce an explicit configure switch.
This way we will also have a control to disable auto-shadowing in the
POSIX skin for dlopen scenarios.
Signed-off-by: Jan Kiszka <jan.kiszka@domain.hid>
---
configure.in | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/configure.in b/configure.in
index 1d7f5fa..679af96 100644
--- a/configure.in
+++ b/configure.in
@@ -758,15 +758,30 @@ LIBS="$LIBS -lrt"
AC_CHECK_FUNCS([shm_open shm_unlink])
LIBS="$save_LIBS"
+AC_MSG_CHECKING(whether to enable dlopen support for skin libraries)
+AC_ARG_ENABLE(dlopen-skins,
+ AC_HELP_STRING([--enable-dlopen-skins], [Disable TLS features and
+automatic main thread mapping by the POSIX skin to allows dlopen'ing Xenomai
+libs.]),
+ [case "$enableval" in
+ y | yes) CONFIG_XENO_LIBS_DLOPEN=y ;;
+ *) unset CONFIG_XENO_LIBS_DLOPEN ;;
+ esac])
+AC_MSG_RESULT(${CONFIG_XENO_LIBS_DLOPEN:-no})
+if test x$CONFIG_XENO_LIBS_DLOPEN = xy; then
+ AC_DEFINE(CONFIG_XENO_LIBS_DLOPEN,1,[config])
+fi
+
XENO_DLOPEN_CONSTRAINT=
+
AC_ARG_WITH([__thread],
AC_HELP_STRING([--without-__thread],
- [do not use TLS features (allows for dlopen'ing Xenomai libs)]),
+ [do not use TLS features]),
[use__thread=$withval],
[use__thread=yes])
dnl Check whether the compiler supports the __thread keyword.
-if test "x$use__thread" != xno; then
+if test "x$use__thread" != xno -a "x$CONFIG_XENO_LIBS_DLOPEN" != xy; then
AC_CACHE_CHECK([for __thread], libc_cv_gcc___thread,
[cat > conftest.c <<\EOF
__thread int a __attribute__ ((tls_model ("initial-exec"))) = 42;
next prev parent reply other threads:[~2009-02-17 17:04 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-17 17:04 [Xenomai-core] [PATCH v2 0/4] Various fixes and cleanups Jan Kiszka
2009-02-17 17:04 ` Jan Kiszka [this message]
2009-02-17 17:04 ` [Xenomai-core] [PATCH v2 4/4] POSIX: Do not auto-shadow main with dlopen enabled Jan Kiszka
2009-02-17 17:04 ` [Xenomai-core] [PATCH v2 1/4] POSIX: Fix SCHED_RR thread creation Jan Kiszka
2009-02-17 17:15 ` Gilles Chanteperdrix
2009-02-17 17:28 ` Jan Kiszka
2009-02-17 17:37 ` Gilles Chanteperdrix
2009-02-17 17:47 ` Jan Kiszka
2009-02-17 17:50 ` Gilles Chanteperdrix
2009-02-17 17:57 ` Jan Kiszka
2009-02-17 18:17 ` Gilles Chanteperdrix
2009-02-17 18:19 ` Jan Kiszka
2009-02-17 18:21 ` Gilles Chanteperdrix
2009-02-17 18:41 ` Jan Kiszka
2009-02-17 23:48 ` Jan Kiszka
2009-02-18 7:51 ` Jan Kiszka
2009-02-17 17:04 ` [Xenomai-core] [PATCH v2 2/4] Mark libs nodlopen on initial-exec TLS Jan Kiszka
2009-02-25 10:04 ` [Xenomai-core] [PATCH v2 0/4] Various fixes and cleanups Jan Kiszka
2009-02-25 11:19 ` Philippe Gerum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090217170419.1425.28041.stgit@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.