Message ID | 20210217012017.215961-1-naohirot@fujitsu.com |
---|---|
State | New |
Headers | show |
Series | [v2,1/3] Replaced obsolete AC_TRY_COMPILE to AC_COMPILE_IFELSE | expand |
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
Mike-san,
>i fixed the indentation & pushed the result.
Thanks for fixing the indentation kindly and merging it!
Naohiro
diff --git a/configure.ac b/configure.ac index d8ccb6c119..14e85a221f 100644 --- 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]) CFLAGS="$old_CFLAGS" LDFLAGS="$old_LDFLAGS" LIBS="$old_LIBS"