diff options
author | Karl Berry <karl@freefriends.org> | 2021-02-25 19:22:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-02-25 19:22:25 +0000 |
commit | ad547a6b5986815fda458221149728d9d9ab1d87 (patch) | |
tree | 16296910eb3eca724371474ea9aea3994dc69614 /Build/source/m4/kpse-socket-libs.m4 | |
parent | 947b43de3dd21d58ccc2ffadefc4441ea1c2a813 (diff) |
restore Build,TODO from r57911
git-svn-id: svn://tug.org/texlive/trunk@57915 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/m4/kpse-socket-libs.m4')
-rw-r--r-- | Build/source/m4/kpse-socket-libs.m4 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Build/source/m4/kpse-socket-libs.m4 b/Build/source/m4/kpse-socket-libs.m4 new file mode 100644 index 00000000000..c768b95fad6 --- /dev/null +++ b/Build/source/m4/kpse-socket-libs.m4 @@ -0,0 +1,28 @@ +# Public macros for the TeX Live (TL) tree. +# Copyright (C) 1997 Karl Berry <karl@cs.umb.edu> +# Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org> +# with help from Taco Hoekwater <taco@luatex.org> +# +# This file is free software; the copyright holders +# give unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 0 + +# KPSE_CHECK_SOCKET_LIBS +# ---------------------- +# Set ac_cv_search_connect as AC_SEARCH_LIBS([connect], [LIB...]) +# would do. +# -lsocket is needed on Solaris, at least. Maybe -lnsl on SCO, too? +# See AC_PATH_XTRA. +# For WIN32 systems we need -lwsock32 but AC_SEARCH_LIBS would fail. +AC_DEFUN([KPSE_CHECK_SOCKET_LIBS], +[AC_REQUIRE([KPSE_CHECK_WIN32]) +AS_IF([test "x$kpse_cv_have_win32" = xno], + [kpse_save_LIBS=$LIBS + AC_SEARCH_LIBS([connect], [socket nsl]) + LIBS=$kpse_save_LIBS], + [AC_CHECK_LIB([wsock32], [main], + [ac_cv_search_connect=-lwsock32], + [ac_cv_search_connect=no])]) +]) # KPSE_CHECK_SOCKET_LIBS |