From: Naohiro Tamura Date: Wed, 17 Feb 2021 01:20:17 +0000 (+0000) Subject: configure: Replace obsolete AC_TRY_LINK with AC_LINK_IFELSE X-Git-Tag: glibc-2.34~928 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e9e7f24543e6d1b0a31641f144697e261df6ccd7;p=thirdparty%2Fglibc.git 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. --- diff --git a/configure.ac b/configure.ac index 1c82e3cd18f..16b15b6f90e 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 ], [gdImagePng (0, 0)], LIBGD=yes, LIBGD=no) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[gdImagePng (0, 0)]])], + [LIBGD=yes], [LIBGD=no]) CFLAGS="$old_CFLAGS" LDFLAGS="$old_LDFLAGS" LIBS="$old_LIBS"