autoconf help needed [was wineps include fix.]
Marcus Meissner
marcus at jet.franken.de
Thu May 31 01:16:07 CDT 2001
> Alexandre Julliard wrote:
> >
> > Basically do a
> >
> > AC_CHECK_HEADERS(freetype/freetype.h freetype/foo.h freetype/bar.h)
> >
>
> Unfortunately it's not that simple, because the FreeType include files
> won't always be in /usr/include/freetype. On Red Hat 7.1, for example,
> they're in /usr/include/freetype2/freetype, to distinguish them from
> the FreeType 1.x headers.
>
> The required compiler flag to include the proper directories is in the
> FREETYPEINCL variable. For example, on my Red Hat system it is set to
> '-I/usr/include/freetype2'. I tried the following:
>
> ft_incl_dir=${FREETYPEINCL#-I}
Add here:
CFLAGS="$CFLAGS -I$ft_incl_dir"
> AC_CHECK_HEADER("$ft_incl_dir/freetype/freetype.h",AC_DEFINE(HAVE_FREETYPE_H))
Use here:
AC_CHECK_HEADER(freetype/freetype.h)
and HAVE_FREETYPE_FREETYPE_H for presence later.
> When I run autoconf, autoheader, and configure, I get the following:
>
> checking for FT_Init_FreeType in -lfreetype... yes
> checking for freetype-config... freetype-config
> checking for /usr/include/freetype2/freetype/freetype.h... no
>
> So the AC_CHECK_HEADER macro isn't finding the file, even though it is
> right there.
>
> Anyone have any idea why?
Always check config.log for errors.
Ciao, Marcus
More information about the wine-devel
mailing list