[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libvir] libvirt on OS X Leopard 10.5.1



On Tue, Jan 22, 2008 at 09:10:07AM -0500, Daniel Veillard wrote:
> On Tue, Jan 22, 2008 at 02:38:27PM +0100, Jim Meyering wrote:
> > Daniel Veillard <veillard redhat com> wrote:
> > 
> > >   Upgrading pkg-config on the box this goes further but then gets stuck
> > > at:
> > >
> > > configure: error: conditional "HAVE_SASL" was never defined.
> > > Usually this means the macro was only invoked conditionally.
> > >
> > > trying to autogen with
> > >   ./autogen.sh --prefix=/usr --without-depends --without-sasl
> > >
> > > I don't understand the problem, it seems
> > >   AM_CONDITIONAL(HAVE_SASL, [test "$with_sasl" != "no"])
> > > is set outside of any conditional block in configure.in
> > 
> > Right.
> > Here's an untested patch:
> [...]
> >  dnl Cyrus SASL
> > +have_sasl=0
> >  AC_ARG_WITH(sasl,
> >    [  --with-sasl         use cyrus SASL for authentication],
> >    [],
> > @@ -402,8 +403,10 @@ if test "$with_sasl" != "no"; then
> >    CFLAGS="$old_cflags"
> >    LIBS="$old_libs"
> >    SASL_LIBS="$SASL_LIBS -lsasl2"
> > -  AC_DEFINE_UNQUOTED(HAVE_SASL, 1, [whether Cyrus SASL is available for authentication])
> > +  have_sasl=1
> >  fi
> > +AC_DEFINE_UNQUOTED(HAVE_SASL, $have_sasl,
> > +		   [whether Cyrus SASL is available for authentication])
> >  AM_CONDITIONAL(HAVE_SASL, [test "$with_sasl" != "no"])
> >  AC_SUBST(SASL_CFLAGS)
> >  AC_SUBST(SASL_LIBS)
> 
>   Thanks Jim, looking at the patch I think I understand the error message
> now, but I applied the patch (or rather made the change manually), and
> I still get the same:

This is all because of the 'with_depends' stuff. If you have --without-depends
then practically all of the configure.in script checks are within a giant
conditional.

This is redundant now we have the per-driver --with/with-{xen,qemu,test,...}
flags, so I'm doing a patch to remove the with_depends flag.

Dan
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]