texlive[70985] Build/source/texk/web2c: AC_USE_SYSTEM_EXTENSIONS if

commits+karl at tug.org commits+karl at tug.org
Fri Apr 19 00:38:18 CEST 2024


Revision: 70985
          https://tug.org/svn/texlive?view=revision&revision=70985
Author:   karl
Date:     2024-04-19 00:38:18 +0200 (Fri, 19 Apr 2024)
Log Message:
-----------
AC_USE_SYSTEM_EXTENSIONS if compiling luatex, required for socket support

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/ChangeLog
    trunk/Build/source/texk/web2c/configure.ac

Modified: trunk/Build/source/texk/web2c/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/ChangeLog	2024-04-18 22:14:36 UTC (rev 70984)
+++ trunk/Build/source/texk/web2c/ChangeLog	2024-04-18 22:38:18 UTC (rev 70985)
@@ -1,3 +1,10 @@
+2024-04-18  Karl Berry  <karl at freefriends.org>
+
+	* configure.ac (AC_USE_SYSTEM_EXTENSIONS) [enable_luatex]: call this.
+	From the Makefile of busytex, via Luigi mail to karl
+	of 12 Apr 2024 06:26:23:
+	"For example `gethostbyaddr()` requires `_GNU_SOURCE` or similar".
+
 2024-04-14  TANAKA Takuji  <ttk at t-lab.opal.ne.jp>
 
 	* ac/web2c.ac (eptex), Makefile.am,

Modified: trunk/Build/source/texk/web2c/configure.ac
===================================================================
--- trunk/Build/source/texk/web2c/configure.ac	2024-04-18 22:14:36 UTC (rev 70984)
+++ trunk/Build/source/texk/web2c/configure.ac	2024-04-18 22:38:18 UTC (rev 70985)
@@ -33,6 +33,16 @@
 WEB2CVERSION=tex_live_version()
 AC_SUBST([WEB2CVERSION])
 
+# LuaTeX requires system extensions for socket support.
+# Must be at the very beginning.
+# SyncTeX and plenty of others unconditionally define GNU_SOURCE,
+# so it probably wouldn't hurt to always use system extensions,
+# but maybe it is cleaner not to, in the case of cut-down sources.
+if test "x$enable_luatex" = xyes; then
+  AC_MSG_NOTICE([using system extensions, since LuaTeX is enabled])
+  AC_USE_SYSTEM_EXTENSIONS
+fi
+
 KPSE_COMMON([web2c programs])
 
 AM_CONDITIONAL([cross], [test "x$cross_compiling" = xyes])
@@ -46,7 +56,7 @@
 KPSE_WEB2C_PREPARE
 m4_include([ac/web2c.ac])
 
-# XeTeX now requires C++11 because ICU does :(.
+# XeTeX requires C++11 because ICU does :(.
 if test "x$enable_xetex" = xyes; then
   AC_MSG_NOTICE([checking for C++11, since XeTeX is enabled])
   AX_CXX_COMPILE_STDCXX([11])
@@ -283,7 +293,7 @@
 [#include <kpathsea/config.h>])
 
 if test "x$with_system_kpathsea" = xyes; then
-dnl Although quite unusual, it is possible to build Web2C (TeX & Co)
+dnl It is possible to build Web2C (TeX & Co)
 dnl using installed (system) kpathsea headers and library.
 dnl In that case we need the location of <kpathsea/paths.h>.
   list="/usr/include /usr/local/include `echo $KPATHSEA_INCLUDES | sed 's/-I//g'`"



More information about the tex-live-commits mailing list.