Skip to content

Commit

Permalink
configure: Replace obsolete AC_TRY_LINK with AC_LINK_IFELSE
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
NaohiroTamura authored and vapier committed Feb 21, 2021
1 parent 3907c7b commit e9e7f24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e9e7f24

Please sign in to comment.