[Fontconfig] [ft] Installation Problems

Akira TAGOH akira at tagoh.org
Tue Jan 20 03:35:46 PST 2015


Done.

Thanks,

On Sun, Jan 18, 2015 at 4:32 AM, Behdad Esfahbod <behdad at behdad.org> wrote:

> On 15-01-16 11:01 PM, Werner LEMBERG wrote:
> >
> >>> ./configure: line 14023: syntax error near unexpected toke 'FREETYPE,'
> >>> ./configure: line 14023: 'PKG_CHECK_MODULES (FREETYPE, freetype2)'
> >>
> >> The error looks like as if configure script is incorrect;
> >> PKG_CHECK_MODULES() is a macro for pkg-config, it should be expanded
> >> to appropriate sh-script. I'm afraid that autogen (or something else
> >> to generate configure script from its skelton) did not finish
> >> correctly. FreeType is not responsible with the trouble, I guess.
> >
> > Your analysis is correct, however, it's not that simple in general.
> > For example, let's assume a GNU/Linux distribution.  The default
> > versions of the autotools are in /usr, and add-on M4 files like
> > `pkg.m4' (which contains the PKG_CHECK_MODULES macro) are put into
> > /usr/share/aclocal.
> >
> > Now imagine that you are going to manually install a new version of
> > the autotools, which are then stored in the /usr/local hierarchy.  If
> > you now repeat the configuring process, you get exactly the above
> > error.  The reason of the problem is that by default the autotools in
> > the /usr/local/ hierarchy don't look into /usr/share/aclocal.
> >
> > There are different solutions.
> >
> >   1. Modify or set the `M4PATH' variable to make M4 find the directory
> >      holding your system's `pkg.m4' file.
> >
> >   2. Always add a proper `--include' command line option to the
> >      autotools.
> >
> >   3. Copy the contents of `/usr/share/aclocal' to
> >      `/usr/local/share/aclocal'.
> >
> > I don't really like any of the solutions, since they require manual
> > intervention and are thus error-prone.  For this reason, I've already
> > added `pkg.m4' directly to FreeType to avoid any problems while
> > configuring FreeType itself.
> >
> > Behdad, you've added `pkg.m4' to harfbuzz, probably for identical
> > reasons.  What do you think of doing the same for fontconfig?
>
> +fontconfig list.  I think Akira can do that.
>
> --
> behdad
> http://behdad.org/
> _______________________________________________
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/fontconfig
>



-- 
Akira TAGOH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20150120/3dece21c/attachment.html>


More information about the Fontconfig mailing list