bug-gnulib
[Top][All Lists]
Advanced

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

Re: The havelib module


From: Sylvain Beucler
Subject: Re: The havelib module
Date: Sat, 7 Feb 2009 19:04:44 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Sat, Feb 07, 2009 at 02:44:24PM +0100, Simon Josefsson wrote:
> Sylvain Beucler <address@hidden> writes:
> > On Fri, Feb 06, 2009 at 11:49:51PM +0100, Simon Josefsson wrote:
> >> Sylvain Beucler <address@hidden> writes:
> >> 
> >> > The AC_LIB_HAVE_LINKFLAGS macro generates options like
> >> > "--with-libmylib-prefix".
> >> 
> >> Note that it also generate options like --with-libmylib.
> >> 
> >> The --with-libmylib-prefix is there to allow users to set the path to
> >> where mylib will be found.
> >> 
> >> The --without-libmylib-prefix is there to allow users to disable
> >> automatic searching for mylib in $prefix.
> >> 
> >> This is somewhat surprising, but it is useful once you know it.  Read
> >> the docstrings for the parameters carefully.
> >> 
> >> > It sounds a bit unclear to specify options such as
> >> > --without-libmylib-prefix to disable "mylib" (i.e. it sounds like
> >> > we're disabling mylib's *additional prefix* only, "--without-mylib"
> >> > would be more straightforward).
> >> 
> >> It actually works as you think it should work, I believe.  Use
> >> --without-mylib to disable mylib.
> >
> > Hmmm, true.
> >
> > I got confused because `./configure --help` documents
> > '--with-libmylib-prefix', but doesn't mention '--with-mylib'.
> >
> > Is this a bug?
> 
> It seems to work here:
> 
>   --with-libgcrypt        Use Libgcrypt for crypto
>   --with-openssl          Use OpenSSL for crypto
>   --with-libz             Use Libz for compression
>   --with-gnu-ld           assume the C compiler uses GNU ld default=no
>   --with-libssl-prefix[=DIR]  search for libssl in DIR/include and DIR/lib
>   --without-libssl-prefix     don't search for libssl in includedir and libdir
>   --with-libgcrypt-prefix[=DIR]  search for libgcrypt in DIR/include and 
> DIR/lib
>   --without-libgcrypt-prefix     don't search for libgcrypt in includedir and 
> libdir
>   --with-libz-prefix[=DIR]  search for libz in DIR/include and DIR/lib
>   --without-libz-prefix     don't search for libz in includedir and libdir
> 
> The ordering isn't perfect though, but it is still there.

I'm working upon GNUpdf's configure.ac:

  AC_LIB_HAVE_LINKFLAGS(
        [jbig2dec],  dnl lib name
        [],          dnl no dependencies
        [],          dnl not checking <jbig.h> because it requires <stdint.h>
                     dnl (for uint8_t) from Gnulib which isn't built yet
        dnl code to test linking:
        [extern void* jbig2_ctx_new(); void* t = jbig2_ctx_new;]
  )

(initial configure.ac is:)
http://bzr.savannah.gnu.org/lh/pdf/libgnupdf/branches/trunk/annotate/head:/configure.ac


It doesn't seem to work the same, --with-jbig2dec is missing:

$ ./configure --help | grep with
  --enable-coverage       Compile the library with code coverage support
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-pic              try to use only PIC/non-PIC objects [default=use
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-zlib=DIR root directory path of zlib installation defaults to
  --without-zlib to disable zlib usage completely
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
  --with-libjbig2dec-prefix[=DIR]  search for libjbig2dec in DIR/include and 
DIR/lib
  --without-libjbig2dec-prefix     don't search for libjbig2dec in includedir 
and libdir
  --with-libgcrypt-prefix=PFX


I refreshed gnulib yesterday and today - i.e. not using an old version
:)

-- 
Sylvain




reply via email to

[Prev in Thread] Current Thread [Next in Thread]