public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: Naohiro Tamura <naohirot@fujitsu.com>
Cc: libc-alpha@sourceware.org
Subject: Re: [PATCH v2 2/3] Replaced obsolete AC_TRY_LINK to AC_LINK_IFELSE
Date: Sun, 21 Feb 2021 18:40:42 -0500	[thread overview]
Message-ID: <YDLverzCc0KYX6K9@vapier> (raw)
In-Reply-To: <20210217012017.215961-1-naohirot@fujitsu.com>

On 17 Feb 2021 01:20, Naohiro Tamura wrote:
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1579,7 +1579,8 @@ if test "$with_gd" != "no"; then
>    LDFLAGS="$LDFLAGS $libgd_ldflags"
>    old_LIBS="$LIBS"
>    LIBS="$LIBS -lgd -lpng -lz -lm"
> -  AC_TRY_LINK([#include <gd.h>], [gdImagePng (0, 0)], LIBGD=yes, LIBGD=no)
> +  AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <gd.h>]], [[gdImagePng (0, 0)]])],
> +	                          [LIBGD=yes],[LIBGD=no])

i fixed the indentation & pushed the result.
-  AC_TRY_LINK([#include <gd.h>], [gdImagePng (0, 0)], LIBGD=yes, LIBGD=no)
+  AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <gd.h>]], [[gdImagePng (0, 0)]])],
+		 [LIBGD=yes], [LIBGD=no])
-mike

  reply	other threads:[~2021-02-21 23:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-16 12:00 [PATCH " Naohiro Tamura
2021-02-16 13:04 ` Andreas Schwab
2021-02-17  1:08   ` naohirot
2021-02-17  1:20 ` [PATCH v2 " Naohiro Tamura
2021-02-21 23:40   ` Mike Frysinger [this message]
2021-02-22  1:50     ` naohirot

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=YDLverzCc0KYX6K9@vapier \
    --to=vapier@gentoo.org \
    --cc=libc-alpha@sourceware.org \
    --cc=naohirot@fujitsu.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).