]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: Use AC_CHECK_PROG instead of AC_CHECK_TOOL to find "file"
authorUwe Kleine-König <uwe@kleine-koenig.org>
Mon, 4 Dec 2023 20:47:57 +0000 (21:47 +0100)
committerMike Frysinger <vapier@gentoo.org>
Fri, 12 Jan 2024 06:37:17 +0000 (01:37 -0500)
This fixes a warning when cross-building:

checking for arm-v7a-linux-gnueabihf-file... no
checking for file... file
configure: WARNING: using cross tools not prefixed with host triplet

file isn't platform specific and not usually installed with a host
triplet. So use AC_CHECK_PROG which differs from AC_CHECK_TOOL by not
expecting such a host triplet prefix.

* m4/libtool.m4 (_LT_DECL_FILECMD): Change AC_CHECK_TOOL to AC_CHECK_PROG.

m4/libtool.m4

index 02ab14505e38a5d117bf4ffcf6ad331592657832..b9d3b1a5e3a6dfa5e33c562205e18c106973ad4f 100644 (file)
@@ -8216,7 +8216,7 @@ AC_SUBST([DLLTOOL])
 # ----------------
 # Check for a file(cmd) program that can be used to detect file type and magic
 m4_defun([_LT_DECL_FILECMD],
-[AC_CHECK_TOOL([FILECMD], [file], [:])
+[AC_CHECK_PROG([FILECMD], [file], [:])
 _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types])
 ])# _LD_DECL_FILECMD