Quoting Stéphane Graber (stgra...@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 <stgra...@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hal...@ubuntu.com> > --- > configure.ac | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/configure.ac b/configure.ac > index 2add6a3..1a3f271 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -192,6 +192,20 @@ else > fi > AC_SUBST([CAP_LIBS]) > > +# Detect alternative C libraries > +AC_MSG_CHECKING(for bionic libc) > +AC_EGREP_CPP([BIONIC_LIBC], [#if defined(__ANDROID__) You're basically just defineing IS_BIONIC if __ANDROID__ is defined in the preprocessor? Seems like there ought to be a better way... But I suppose this will *work*. Hmm, http://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/AC_005fACT_005fIFELSE-vs-AC_005fTRY_005fACT.html suggests a "better" way, though I'm unconvinced that it really is better :) > +BIONIC_LIBC > +#endif > + ], libc_type="bionic") > +if test "x$libc_type" = "xbionic"; then > + AC_MSG_RESULT([yes]) > + AC_DEFINE([IS_BIONIC], 1, [bionic libc]) > +else > + AC_MSG_RESULT([no]) > +fi > +AM_CONDITIONAL([IS_BIONIC], [test "x$libc_type" = "xbionic"]) > + > # 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 Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122712 > _______________________________________________ > Lxc-devel mailing list > Lxc-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/lxc-devel ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712 _______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel