[lxc-devel] [PATCH 01/24] configure.ac: Add code to detect bionic C library
Serge Hallyn
serge.hallyn at canonical.com
Tue Jan 8 17:53:08 UTC 2013
Quoting Stéphane Graber (stgraber at ubuntu.com):
> This adds a new IS_BIONIC define that can be used to detect whether we are
> building with eglibc or with bionic.
>
> Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>
> ---
> configure.ac | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index 2add6a3..9694d30 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -192,6 +192,22 @@ else
> fi
> AC_SUBST([CAP_LIBS])
>
> +# Check for alternate C libraries
> +AC_MSG_CHECKING(for bionic libc)
> +AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
> + [[#ifndef __ANDROID__
> +error: Not bionic!
> +#endif]])],
> + [is_bionic=yes],
> + [is_bionic=no])
> +if test "x$is_bionic" = "xyes"; then
> + AC_DEFINE([IS_BIONIC], 1, ["bionic libc"])
> + AC_MSG_RESULT([yes])
> +else
> + AC_MSG_RESULT([no])
> +fi
> +AM_CONDITIONAL([IS_BIONIC], [test "x$is_bionic" = "xyes"])
> +
> # Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP
> AC_CHECK_DECLS([PR_CAPBSET_DROP], [], [], [#include <sys/prctl.h>])
>
> --
> 1.8.0
>
>
> ------------------------------------------------------------------------------
> Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
> and more. Get SQL Server skills now (including 2012) with LearnDevNow -
> 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
> SALE $99.99 this month only - learn more at:
> http://p.sf.net/sfu/learnmore_122512
> _______________________________________________
> Lxc-devel mailing list
> Lxc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-devel
More information about the lxc-devel
mailing list