* Re: [PATCH lttng-tools] Remove duplicate check for dlopen
[not found] <20181220211647.19327-1-mjeanson@efficios.com>
@ 2019-02-12 16:23 ` Jérémie Galarneau
0 siblings, 0 replies; 2+ messages in thread
From: Jérémie Galarneau @ 2019-02-12 16:23 UTC (permalink / raw)
To: Michael Jeanson; +Cc: lttng-dev, Jeremie Galarneau
Merged in master, stable-2.11, and stable-2.10.
Thanks!
Jérémie
On Thu, 20 Dec 2018 at 16:16, Michael Jeanson <mjeanson@efficios.com> wrote:
>
> Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
> ---
> configure.ac | 17 +++--------------
> 1 file changed, 3 insertions(+), 14 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index bf1ef6f2..fa0edc44 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -217,15 +217,18 @@ AC_CHECK_LIB([rt], [clock_gettime, timer_create, timer_settime, timer_delete])
> AC_CHECK_LIB([dl], [dlopen], [
> have_libdl=yes
> libdl_name=dl
> + DL_LIBS="-ldl"
> ], [
> # libdl not found, check for dlopen in libc.
> AC_CHECK_LIB([c], [dlopen], [
> have_libc_dl=yes
> libdl_name=c
> + DL_LIBS="-lc"
> ], [
> AC_MSG_ERROR([Cannot find dlopen in libdl nor libc. Use [LDFLAGS]=-Ldir to specify their location.])
> ])
> ])
> +AC_SUBST(DL_LIBS)
>
> # Check if libdl has dlmopen support.
> AH_TEMPLATE([HAVE_DLMOPEN], ["Define to 1 if dlmopen is available."])
> @@ -570,20 +573,6 @@ AS_IF([test "x$with_lttng_ust" = "xyes"],
> AM_CONDITIONAL([HAVE_LIBLTTNG_UST_CTL], [test "x$with_lttng_ust" = "xyes"])
>
>
> -
> -# check for dlopen
> -AC_CHECK_LIB([dl], [dlopen],
> - [DL_LIBS="-ldl"],
> - [
> - #libdl not found, check for dlopen in libc.
> - AC_CHECK_LIB([c], [dlopen],
> - [DL_LIBS="-lc"],
> - [AC_MSG_FAILURE([Cannot find dlopen in libdl nor libc. Use [LDFLAGS]=-Ldir to specify their location.])]
> - )
> - ]
> -)
> -AC_SUBST(DL_LIBS)
> -
> # Check for fmemopen
> AC_CHECK_LIB([c], [fmemopen],
> [
> --
> 2.17.1
>
--
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH lttng-tools] Remove duplicate check for dlopen
@ 2018-12-20 21:16 Michael Jeanson
0 siblings, 0 replies; 2+ messages in thread
From: Michael Jeanson @ 2018-12-20 21:16 UTC (permalink / raw)
To: lttng-dev; +Cc: jgalar
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
---
configure.ac | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/configure.ac b/configure.ac
index bf1ef6f2..fa0edc44 100644
--- a/configure.ac
+++ b/configure.ac
@@ -217,15 +217,18 @@ AC_CHECK_LIB([rt], [clock_gettime, timer_create, timer_settime, timer_delete])
AC_CHECK_LIB([dl], [dlopen], [
have_libdl=yes
libdl_name=dl
+ DL_LIBS="-ldl"
], [
# libdl not found, check for dlopen in libc.
AC_CHECK_LIB([c], [dlopen], [
have_libc_dl=yes
libdl_name=c
+ DL_LIBS="-lc"
], [
AC_MSG_ERROR([Cannot find dlopen in libdl nor libc. Use [LDFLAGS]=-Ldir to specify their location.])
])
])
+AC_SUBST(DL_LIBS)
# Check if libdl has dlmopen support.
AH_TEMPLATE([HAVE_DLMOPEN], ["Define to 1 if dlmopen is available."])
@@ -570,20 +573,6 @@ AS_IF([test "x$with_lttng_ust" = "xyes"],
AM_CONDITIONAL([HAVE_LIBLTTNG_UST_CTL], [test "x$with_lttng_ust" = "xyes"])
-
-# check for dlopen
-AC_CHECK_LIB([dl], [dlopen],
- [DL_LIBS="-ldl"],
- [
- #libdl not found, check for dlopen in libc.
- AC_CHECK_LIB([c], [dlopen],
- [DL_LIBS="-lc"],
- [AC_MSG_FAILURE([Cannot find dlopen in libdl nor libc. Use [LDFLAGS]=-Ldir to specify their location.])]
- )
- ]
-)
-AC_SUBST(DL_LIBS)
-
# Check for fmemopen
AC_CHECK_LIB([c], [fmemopen],
[
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-12 16:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20181220211647.19327-1-mjeanson@efficios.com>
2019-02-12 16:23 ` [PATCH lttng-tools] Remove duplicate check for dlopen Jérémie Galarneau
2018-12-20 21:16 Michael Jeanson
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.