[PATCH v2 2/3] Replaced obsolete AC_TRY_LINK to AC_LINK_IFELSE
Mike Frysinger
vapier@gentoo.org
Sun Feb 21 23:40:42 GMT 2021
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
More information about the Libc-alpha
mailing list