Le 12/07/2024 à 15:56, Jean-Marc Lasgouttes a écrit :
Le 12/07/2024 à 15:47, Jürgen Spitzmüller a écrit :
Am Freitag, dem 12.07.2024 um 15:28 +0200 schrieb Jean-Marc Lasgouttes:
Do you see a mention of grep and egrep in the configure output?

yes:

checking for grep that handles long lines and -e... /usr/bin/grep

I get nothing like the above, but

checking for egrep... /usr/bin/grep -E

checking for egrep -e... /usr/bin/grep -E

I guess that the support macros for iconv configuration have changed and thus the EGREP variable is not defined any more. We have to think of a stable replacement.

It is the fault of autoconf 2.72, actually. Try the patch below.

JMarc


*** All internal uses of AC_EGREP_CPP and AC_EGREP_HEADER have been removed.
  These macros look for text matching a regular expression in the
  output of the C preprocessor.  Their use has been discouraged for
  many years, as they tend to be unreliable; it is better to find a
  way to use AC_COMPILE_IFELSE or AC_PREPROC_IFELSE instead.  We have
  finally taken our own advice.

  This change might break configure scripts that expected probes for
  ‘grep’ and/or the C preprocessor to happen as a side effect of an
  unrelated operation.  Such scripts can be fixed by adding
  AC_PROG_EGREP and/or AC_PROG_CPP in an appropriate place.

  The macros affected by this change are AC_C_STRINGIZE,
  AC_C_VARARRAYS, AC_FUNC_GETGROUPS, AC_FUNC_GETLOADAVG,
  AC_HEADER_TIOCGWINSZ, AC_PROG_GCC_TRADITIONAL, AC_TYPE_GETGROUPS,
  AC_TYPE_UID_T, and AC_XENIX_DIR. Many of these macros are themselves
  obsolete; if your configure script uses any of them, check whether
  it is actually needed.

From 31cde7247638a50c2302744984732064505b7d85 Mon Sep 17 00:00:00 2001
From: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date: Fri, 12 Jul 2024 16:02:53 +0200
Subject: [PATCH] Add explicit check for EGREP in configure.ac

It is used in lib/Makefile.am and we were relying some autoconf macros
to define it as a side-effect. This is not the case anymore as of
autoconf 2.72.
---
 configure.ac | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index 4be32fa9c0..c796b60f9d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -122,6 +122,9 @@ AC_SUBST([HAVE_WCHAR_T])
 # Needed for Mingw-w64
 AC_TYPE_LONG_LONG_INT
 
+# egrep is used in lib/Makefile.am
+AC_PROG_EGREP
+
 ### We need iconv for unicode support (Qt frontend requires it too)
 LYX_USE_INCLUDED_ICONV
 
-- 
2.34.1

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to