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 21:21:08 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Sat, Feb 07, 2009 at 12:55:50PM -0700, Eric Blake wrote:
> According to Sylvain Beucler on 2/7/2009 11:04 AM:
> >   AC_LIB_HAVE_LINKFLAGS(
> >     [jbig2dec],  dnl lib name
> >     [],
> 
> Careful with your m4 quoting here - by adding a dnl after the comma, the
> leading whitespace on the next line is no longer stripped.  In turn, if
> AC_LIB_HAVE_LINKFLAGS uses "m4_default([$2], [some default])", since $2 is
> non-empty (although it is all whitespace), you no longer get the [some
> default] action.  Perhaps that could be related to the issue you are hitting?

I tried:

# AC_LIB_HAVE_LINKFLAGS(lib name, dependencies, includes, optional test code)
AC_LIB_HAVE_LINKFLAGS([jbig2dec],[],[],[extern void* jbig2_ctx_new(); void* t = 
jbig2_ctx_new;])

=> same

I also tried adding a dummy '#include' just in case:

AC_LIB_HAVE_LINKFLAGS([jbig2dec],[],[#include <stdlib.h>],[extern void* 
jbig2_ctx_new(); void* t = jbig2_ctx_new;])

=> same too :/


Just in case: to try a new M4 wording I:
- edit configure.ac
- run 'autoreconf' or 'autoconf'
- run ./configure --help | grep -i with

-- 
Sylvain




reply via email to

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