* [ltt-dev] [PATCH] configure.ac: add check for popt library
@ 2011-11-03 11:49 Thomas Petazzoni
2011-11-03 12:02 ` Mathieu Desnoyers
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Petazzoni @ 2011-11-03 11:49 UTC (permalink / raw)
The popt library is used by babeltrace but isn't checked in
configure.ac, so the compilation fails due to popt.h being missing if
popt is not already installed on the system.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
configure.ac | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index f8a80e5..4446f29 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,6 +40,10 @@ AC_CHECK_LIB([uuid], [uuid_generate], [],
[AC_MSG_ERROR([Cannot find libuuid. Use [LDFLAGS]=-Ldir to specify its location.])]
)
+AC_CHECK_LIB([popt], [poptGetContext], [],
+ [AC_MSG_ERROR([Cannot find popt.])]
+)
+
pkg_modules="gmodule-2.0 >= 2.0.0"
PKG_CHECK_MODULES(GMODULE, [$pkg_modules])
AC_SUBST(PACKAGE_LIBS)
--
1.7.4.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ltt-dev] [PATCH] configure.ac: add check for popt library
2011-11-03 11:49 [ltt-dev] [PATCH] configure.ac: add check for popt library Thomas Petazzoni
@ 2011-11-03 12:02 ` Mathieu Desnoyers
0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2011-11-03 12:02 UTC (permalink / raw)
* Thomas Petazzoni (thomas.petazzoni at free-electrons.com) wrote:
> The popt library is used by babeltrace but isn't checked in
> configure.ac, so the compilation fails due to popt.h being missing if
> popt is not already installed on the system.
merged, thanks!
Mathieu
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
> ---
> configure.ac | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index f8a80e5..4446f29 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -40,6 +40,10 @@ AC_CHECK_LIB([uuid], [uuid_generate], [],
> [AC_MSG_ERROR([Cannot find libuuid. Use [LDFLAGS]=-Ldir to specify its location.])]
> )
>
> +AC_CHECK_LIB([popt], [poptGetContext], [],
> + [AC_MSG_ERROR([Cannot find popt.])]
> +)
> +
> pkg_modules="gmodule-2.0 >= 2.0.0"
> PKG_CHECK_MODULES(GMODULE, [$pkg_modules])
> AC_SUBST(PACKAGE_LIBS)
> --
> 1.7.4.1
>
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-03 12:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-03 11:49 [ltt-dev] [PATCH] configure.ac: add check for popt library Thomas Petazzoni
2011-11-03 12:02 ` Mathieu Desnoyers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox