summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/configure.ac
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-04-29 14:34:22 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-04-29 14:34:22 +0000
commit6be9f4dc7c015da2a94183970394935fd6ae72a2 (patch)
treee0e54cc331861f34533d6a240400f9cef789a287 /Build/source/texk/web2c/configure.ac
parent5d10ffc76a7d39e7523819add5a8cd46542b672f (diff)
fix Cygwin and Solaris build problems
git-svn-id: svn://tug.org/texlive/trunk@12856 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/configure.ac')
-rw-r--r--Build/source/texk/web2c/configure.ac18
1 files changed, 14 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/configure.ac b/Build/source/texk/web2c/configure.ac
index 56e0fa4c8b2..94a56c66719 100644
--- a/Build/source/texk/web2c/configure.ac
+++ b/Build/source/texk/web2c/configure.ac
@@ -80,19 +80,29 @@ if test "x$enable_ipc" = xyes; then
ipc_socketlibs=$socketlibs
AC_DEFINE([IPC], 1, [tex: Define to enable --ipc.])
fi
-# On Solaris we may need -lrt for nanosleep in luaTeX.
+# We may need additional libraries for luaTeX.
+# On Solaris -lnsl for gethostbyname() and -lrt for nanosleep().
+lua_socketlibs=$socketlibs
if test "x$kpse_cv_have_win32" = xno; then
kpse_save_LIBS=$LIBS
+ AC_SEARCH_LIBS([gethostbyname], [nsl])
+ LIBS=$kpse_save_LIBS
AC_SEARCH_LIBS([nanosleep], [rt])
LIBS=$kpse_save_LIBS
+ AS_CASE([$ac_cv_search_gethostbyname],
+ ["none required"], [],
+ [no], [AS_IF([test "x$enable_luatex" = xyes],
+ [AC_MSG_WARN([Sorry, no gethostbyname(): can not build luaTeX])
+ enable_luatex=no])],
+ [lua_socketlibs="$lua_socketlibs ac_cv_search_gethostbyname"])
AS_CASE([$ac_cv_search_nanosleep],
["none required"], [],
[no], [AS_IF([test "x$enable_luatex" = xyes],
- [AC_MSG_WARN([Sorry, no nanosleep: can not build luaTeX])
+ [AC_MSG_WARN([Sorry, no nanosleep(): can not build luaTeX])
enable_luatex=no])],
- [socketlibs="$socketlibs ac_cv_search_nanosleep"])
+ [lua_socketlibs="$lua_socketlibs ac_cv_search_nanosleep"])
fi
-AC_SUBST([socketlibs])
+AC_SUBST([lua_socketlibs])
AC_SUBST([ipc_socketlibs])
KPSE_CHECK_FRAMEWORK([Carbon], [ATSUStyle style])