diff options
author | Karl Berry <karl@freefriends.org> | 2024-04-28 16:42:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-04-28 16:42:22 +0000 |
commit | 1ef28d2e2d26bb5cf0fcd7903861fe2b8d620d5c (patch) | |
tree | 3c1c4bfac8ccf284e3b5ec6ced2c6640950aeb6e /Build/source/m4/kpse-setup.m4 | |
parent | 7a84551791577c4b9913e2d6119e7745b3a97388 (diff) |
AC_USE_SYSTEM_EXTENSIONS globally
git-svn-id: svn://tug.org/texlive/trunk@71106 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/m4/kpse-setup.m4')
-rw-r--r-- | Build/source/m4/kpse-setup.m4 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Build/source/m4/kpse-setup.m4 b/Build/source/m4/kpse-setup.m4 index 8da68c573a0..7a1844d80f6 100644 --- a/Build/source/m4/kpse-setup.m4 +++ b/Build/source/m4/kpse-setup.m4 @@ -18,6 +18,7 @@ # additional program specific configure options (if any) # library dependencies for programs and libraries AC_DEFUN([KPSE_SETUP], [dnl +echo 'tldbg:[$0] called (toplevel=[$1])' >&AS_MESSAGE_LOG_FD AC_REQUIRE([AC_CANONICAL_HOST])[]dnl AC_REQUIRE([_KPSE_MSG_WARN_PREPARE])[]dnl m4_define([kpse_TL], [$1])[]dnl @@ -74,7 +75,27 @@ KPSE_ENABLE_LT_HACK KPSE_LIBS_PREPARE KPSE_MKTEX_PREPARE KPSE_WEB2C_PREPARE + +# We must enable system extensions before any compiler call to avoid +# (valid) autoconf warnings. Because different configure.ac's use +# different kpse setup routines, we call the ac_use_system_extensions +# macro both here and in kpse_basic (in kpse-common.m4). +# +# Fortunately, Autoconf defines the system_extensions macro to only have +# any effect once (with ac_defun_once), so it's harmless to call it +# multiple time. +# +# LuaTeX requires system extensions for socket support. Also, since +# SyncTeX, some libraries, and others unconditionally #define +# GNU_SOURCE, it seems more consistent to always use it. +# +AC_USE_SYSTEM_EXTENSIONS + +# this macro, kpse_check_win32, is the first compiler call for +# configure.ac files that use this function (kpse setup). KPSE_CHECK_WIN32 +# end call to kpse_check_win32. + AS_CASE([$with_x:$kpse_cv_have_win32], [yes:no | no:*], [:], [yes:*], [AC_MSG_ERROR([you can not use `--with-x' for Windows])], @@ -96,6 +117,9 @@ KPSE_FOR_PKGS([utils], [m4_sinclude(kpse_TL[utils/]Kpse_Pkg[/ac/withenable.ac])] KPSE_FOR_PKGS([texk], [m4_sinclude(kpse_TL[texk/]Kpse_Pkg[/ac/withenable.ac])]) KPSE_FOR_PKGS([libs], [m4_sinclude(kpse_TL[libs/]Kpse_Pkg[/ac/withenable.ac])]) KPSE_FOR_PKGS([texlibs], [m4_sinclude(kpse_TL[texk/]Kpse_Pkg[/ac/withenable.ac])]) + +# end of kpse_setup macro. +echo 'tldbg:[$0] done (toplevel=[$1])' >&AS_MESSAGE_LOG_FD ]) # KPSE_SETUP # KPSE_ENABLE_PROG(PROG, REQUIRED-LIBS, OPTIONS, [COMMENT]) |