diff options
author | Naohiro Tamura <naohirot@fujitsu.com> | 2021-02-17 01:20:17 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-02-21 18:39:01 -0500 |
commit | e9e7f24543e6d1b0a31641f144697e261df6ccd7 (patch) | |
tree | f25948b5dc40178b387e4728b2c752870db7af17 | |
parent | 3907c7bf0f82878363a8cccb83f7258b744c3f27 (diff) | |
download | glibc-e9e7f24543e6d1b0a31641f144697e261df6ccd7.tar.gz |
configure: Replace obsolete AC_TRY_LINK with AC_LINK_IFELSE
This patch replaces obsolete AC_TRY_LINK with AC_LINK_IFELSE.
It has been confirmed that GNU 'autoconf' 2.69 doesn't change the
'configure' file and suppressed obsolete warning.
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 1c82e3cd18..16b15b6f90 100644 --- a/configure.ac +++ b/configure.ac @@ -1578,7 +1578,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]) CFLAGS="$old_CFLAGS" LDFLAGS="$old_LDFLAGS" LIBS="$old_LIBS" |