diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-03-31 07:37:05 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-03-31 07:37:05 +0000 |
commit | 8357a9ca3414c62c3d1a0e6d48c90d6fe2152e61 (patch) | |
tree | 6b3692bd3e1a7bb6331541e3212e1a5abeedae86 /Build/source/m4 | |
parent | f5dc0cfcd8ce5671cc439c6b5786ad8f394a6834 (diff) |
new build system: handling of socketlibs, prepare for texk/texlive/
git-svn-id: svn://tug.org/texlive/trunk@12583 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/m4')
-rw-r--r-- | Build/source/m4/kpse-pkgs.m4 | 1 | ||||
-rw-r--r-- | Build/source/m4/kpse-socket-libs.m4 | 28 | ||||
-rw-r--r-- | Build/source/m4/kpse-win32.m4 | 4 |
3 files changed, 31 insertions, 2 deletions
diff --git a/Build/source/m4/kpse-pkgs.m4 b/Build/source/m4/kpse-pkgs.m4 index e3050dc219a..328ece77abd 100644 --- a/Build/source/m4/kpse-pkgs.m4 +++ b/Build/source/m4/kpse-pkgs.m4 @@ -99,6 +99,7 @@ xdv2pdf xdvik xdvipdfmx tetex +texlive ])]) # KPSE_TEXK_PKGS diff --git a/Build/source/m4/kpse-socket-libs.m4 b/Build/source/m4/kpse-socket-libs.m4 new file mode 100644 index 00000000000..1ff41d79914 --- /dev/null +++ b/Build/source/m4/kpse-socket-libs.m4 @@ -0,0 +1,28 @@ +# Public macros for the teTeX / 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=wsock32], + [ac_cv_search_connect=no])]) +]) # KPSE_CHECK_SOCKET_LIBS diff --git a/Build/source/m4/kpse-win32.m4 b/Build/source/m4/kpse-win32.m4 index 372be5d2433..b953b76ee62 100644 --- a/Build/source/m4/kpse-win32.m4 +++ b/Build/source/m4/kpse-win32.m4 @@ -1,8 +1,8 @@ # Public macros for the teTeX / TeX Live (TL) tree. # Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org> # -# This file is free software; the copyright holders -# give unlimited permission to copy and/or distribute it, +# This file is free software; the copyright holder +# gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 0 |