On Wed, May 10, 2006 at 04:33:30PM +0200, Jean-Marc Lasgouttes wrote:
> >>>>> "Joost" == Joost Verburg <[EMAIL PROTECTED]> writes:
> 
> Joost> Jean-Marc Lasgouttes wrote:
> >> Thanks. So the following (plus removal of cygwin.m4) would be just
> >> as good, right?
> 
> Joost> Yes, but add a new file called windows.m4. My font patch for
> Joost> example needs to link against gdi32 on Windows.
> 
> I'd rather add to the main configure.ac something like
>   AC_CHECK_LIB(gdi32, AddFontResource)
> to the main configure.ac.
> 
> Would that be OK, or is the windows dll structure too complicated to
> make this work?

I didn't succeed in using AC_CHECK_LIB with a win32 library, so in
the autoview patch I directly used AC_SUBST to add -lshlwapi.
I think that Joost modeled his patch on that above, so the answer
is that AC_CHECK_LIB is a nightmare to be avoided. On the other hand,
those win32 libraries are present in any cygwin or mingw distribution,
so there is no point for AC_CHECK_LIB, IMHO.

-- 
Enrico

Reply via email to