grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrey Borzenkov <arvidjaar@gmail.com>
To: David Michael <fedora.dm0@gmail.com>
Cc: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: [BUG][PATCH] configure.ac: Respect the configured freetype-config
Date: Tue, 11 Jun 2013 18:48:02 +0400	[thread overview]
Message-ID: <20130611184802.7336d060@opensuse.site> (raw)
In-Reply-To: <CAEvUa7nRmfMv4QF4+BZJh0=Zu4SJ0tQG86SDdifHazrAwrdMSw@mail.gmail.com>

В Tue, 11 Jun 2013 10:31:31 -0400
David Michael <fedora.dm0@gmail.com> пишет:

> Hi,
> 
> Upon further consideration, I modified my cross-freetype package to
> also install a host-prefixed freetype-config in the system path.  I
> probably should have been doing this all along to mimic the equivalent
> pkg-config commands...
> 
> I would therefore suggest changing AC_CHECK_PROGS to AC_CHECK_TOOLS to

I was about to suggest the same :)

> search for a host-specific config script when cross-compiling.  (The
> previous patch is still required since now the program name can be
> prefixed.)  This should preserve existing behavior on native builds,
> and allow cross-compiling grub-mkfont without modifying PATH or
> manually setting FREETYPE.  It will also print a warning if using the
> build system's freetype while cross-compiling.
> 
> The new change follows.  Thoughts?
> 

Does it also work for non-cross build? AFAIK it should, but just to
confirm?

> Thanks.
> 
> David
> 
> 
> === modified file 'configure.ac'
> --- configure.ac    2013-06-07 14:02:16 +0000
> +++ configure.ac    2013-06-11 13:54:44 +0000
> @@ -944,7 +944,7 @@
> 
>  if test x"$grub_mkfont_excuse" = x ; then
>    # Check for freetype libraries.
> -  AC_CHECK_PROGS([FREETYPE], [freetype-config])
> +  AC_CHECK_TOOLS([FREETYPE], [freetype-config])
>    if test "x$FREETYPE" = x ; then
>      grub_mkfont_excuse=["need freetype2 library"]
>    fi
> @@ -952,8 +952,8 @@
> 
>  if test x"$grub_mkfont_excuse" = x ; then
>    # Check for freetype libraries.
> -  freetype_cflags=`freetype-config --cflags`
> -  freetype_libs=`freetype-config --libs`
> +  freetype_cflags=`$FREETYPE --cflags`
> +  freetype_libs=`$FREETYPE --libs`
>    SAVED_CPPFLAGS="$CPPFLAGS"
>    CPPFLAGS="$CPPFLAGS $freetype_cflags"
>    AC_CHECK_HEADERS([ft2build.h], [],



  reply	other threads:[~2013-06-11 14:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-07 18:04 [BUG][PATCH] configure.ac: Respect the configured freetype-config David Michael
2013-06-07 18:20 ` Andrey Borzenkov
2013-06-07 18:35   ` David Michael
2013-06-08  4:00     ` Andrey Borzenkov
2013-06-09 21:10       ` Paul Menzel
2013-06-10 21:05       ` David Michael
2013-06-11 14:31         ` David Michael
2013-06-11 14:48           ` Andrey Borzenkov [this message]
2013-06-11 15:23             ` David Michael
2013-06-11 15:41               ` Andrey Borzenkov
2013-06-11 17:31                 ` David Michael
2013-06-15 19:08                   ` Vladimir 'φ-coder/phcoder' Serbinenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130611184802.7336d060@opensuse.site \
    --to=arvidjaar@gmail.com \
    --cc=fedora.dm0@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).