mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-10 06:57:08 -08:00
app-editors/xemacs: Use command -v
Update patch to not use type -P, due to not posix required, and skip looking around the file system if there is a makeinfo that meets the requirement. Signed-off-by: Mats Lidell <matsl@gentoo.org>
This commit is contained in:
@@ -1,12 +1,23 @@
|
||||
diff -r 22f2684b1b82 configure.ac
|
||||
--- a/configure.ac Mon Sep 23 16:24:03 2024 +0100
|
||||
+++ b/configure.ac Thu Sep 26 07:57:11 2024 +0200
|
||||
@@ -2518,7 +2518,7 @@
|
||||
+++ b/configure.ac Sat Sep 28 14:09:56 2024 +0200
|
||||
@@ -2518,16 +2518,16 @@
|
||||
dnl We need a recent version of makeinfo
|
||||
AC_MSG_CHECKING([for makeinfo >= 4.12])
|
||||
MAKEINFO=
|
||||
-for prog in `which -a makeinfo`; do
|
||||
+for prog in `type -P makeinfo`; do
|
||||
+if prog=`command -v makeinfo`
|
||||
+then
|
||||
mi_verstr=[`$prog --version | sed -n '1s/^.* \([0-9][0-9.]*\)$/\1/p'`]
|
||||
mi_major=`echo $mi_verstr | cut -d. -f1`
|
||||
mi_minor=`echo $mi_verstr | cut -d. -f2`
|
||||
if test "$mi_major" -gt 4 || ( test "$mi_major" -eq 4 && test "$mi_minor" -gt 11 );
|
||||
then
|
||||
MAKEINFO=$prog
|
||||
- break
|
||||
fi
|
||||
-done
|
||||
+fi
|
||||
if test -z $MAKEINFO; then
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_WARN([Found Makeinfo $mi_verstr. 4.12 or later required.])
|
||||
|
||||
Reference in New Issue
Block a user