diff options
author | Karl Berry <karl@freefriends.org> | 2024-04-18 22:38:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-04-18 22:38:18 +0000 |
commit | 44a329792efd28a3e800cc47341d26b1eb4425d8 (patch) | |
tree | bef42695aaef48662caa9debad6ff2ae61b92717 /Build/source/texk | |
parent | 043f2bfe108bd85f91f45767b3796df6891807fb (diff) |
AC_USE_SYSTEM_EXTENSIONS if compiling luatex, required for socket support
git-svn-id: svn://tug.org/texlive/trunk@70985 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r-- | Build/source/texk/web2c/ChangeLog | 7 | ||||
-rw-r--r-- | Build/source/texk/web2c/configure.ac | 14 |
2 files changed, 19 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/ChangeLog b/Build/source/texk/web2c/ChangeLog index e4cff42c93f..35f9de31157 100644 --- a/Build/source/texk/web2c/ChangeLog +++ b/Build/source/texk/web2c/ChangeLog @@ -1,3 +1,10 @@ +2024-04-18 Karl Berry <karl@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@t-lab.opal.ne.jp> * ac/web2c.ac (eptex), Makefile.am, diff --git a/Build/source/texk/web2c/configure.ac b/Build/source/texk/web2c/configure.ac index 014da32b7d1..19f05bdd6cd 100644 --- a/Build/source/texk/web2c/configure.ac +++ b/Build/source/texk/web2c/configure.ac @@ -33,6 +33,16 @@ AC_CONFIG_MACRO_DIRS([../../m4 m4]) 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_LT_HACK 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 @@ AC_CHECK_SIZEOF([off_t], , AC_INCLUDES_DEFAULT [#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'`" |