commit:     dd6ceb9441e26e4c013d8994c0e5f60649abb379
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 26 15:49:06 2026 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Jan 26 15:51:27 2026 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=dd6ceb94

configure: run autoupdate

AC_TRY_LINK is apparently obsolete

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 configure.ac | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/configure.ac b/configure.ac
index e3605529..630d0958 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,10 +1,10 @@
-# Copyright 2011-2025 Gentoo Authors
+# Copyright 2011-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 #
 # Copyright 2011-2014 Mike Frysinger  - <[email protected]>
 # Copyright 2011-     Fabian Groffen  - <[email protected]>
 
-AC_PREREQ([2.71])
+AC_PREREQ([2.72])
 AC_INIT([portage-utils],[git])
 AM_INIT_AUTOMAKE([1.11 dist-xz foreign no-dist-gzip silent-rules -Wall])
 AM_SILENT_RULES([yes]) # AM_INIT_AUTOMAKE([silent-rules]) is broken atm
@@ -107,13 +107,10 @@ PKG_CHECK_MODULES([LIBARCHIVE], [libarchive],
                     save_LIBS="$LIBS"
                     LIBS="$LIBS $LIBARCHIVE_LIBS"
                     AC_MSG_CHECKING([whether for 
archive_entry_hardlink_is_set])
-                    AC_TRY_LINK([#include <archive.h>
-                                 #include <archive_entry.h>],
-                                [archive_entry_hardlink_is_set(NULL);],
-                                
[AC_DEFINE([HAVE_ARCHIVE_ENTRY_HARDLINK_IS_SET],
+                    AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <archive.h>
+                                 #include <archive_entry.h>]], 
[[archive_entry_hardlink_is_set(NULL);]])],[AC_DEFINE([HAVE_ARCHIVE_ENTRY_HARDLINK_IS_SET],
                                           [1], [Define if you have 
archive_entry_hardlink_is_set])
-                                 AC_MSG_RESULT([yes])],
-                                [AC_MSG_RESULT([no])])
+                                 AC_MSG_RESULT([yes])],[AC_MSG_RESULT([no])])
                     LIBS="$save_LIBS"
                   ],
                   [

Reply via email to