]> git.eshelyaron.com Git - emacs.git/commitdiff
* configure.ac: Replace obsolete AC_TRY_LINK with AC_LINK_IFELSE.
authorGlenn Morris <rgm@gnu.org>
Wed, 17 Feb 2021 04:54:46 +0000 (20:54 -0800)
committerGlenn Morris <rgm@gnu.org>
Wed, 17 Feb 2021 04:55:13 +0000 (20:55 -0800)
configure.ac

index 5fd0e76b8239a7b73b4c34c1fc80291a55ab4d1d..9a294bc796ff78f06d433a09be8e6d20d1e8e51e 100644 (file)
@@ -4715,10 +4715,10 @@ if test "$USE_X_TOOLKIT" != "none"; then
     else
       OTHERLIBS="-lXt -$LIBXMU"
     fi
-    AC_TRY_LINK(
-      [#include <X11/Intrinsic.h>
-       #include <X11/Xmu/Editres.h>],
-      [_XEditResCheckMessages (0, 0, 0, 0);],
+    AC_LINK_IFELSE([AC_LANG_PROGRAM(
+      [[#include <X11/Intrinsic.h>
+       #include <X11/Xmu/Editres.h>]],
+      [[_XEditResCheckMessages (0, 0, 0, 0);]])],
       [AC_DEFINE([X_TOOLKIT_EDITRES], 1,
         [Define to 1 if we should use XEditRes.])])
     LIBS=$OLDLIBS