From 3e954ad5f75eefd720a0d2dc88f3db9f5c8c1695 Mon Sep 17 00:00:00 2001 From: Juergen Keil Date: Mon, 19 May 2003 16:33:04 +0000 Subject: the xine-lib shared library depends on -lsocket and -lnsl on solaris. Make sure that "xine-config --libs" outputs a dependency for both on solaris. CVS patchset: 4875 CVS date: 2003/05/19 16:33:04 --- configure.ac | 11 +++++++++++ misc/xine-config.in | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 996edafc4..1a4a6d4c0 100644 --- a/configure.ac +++ b/configure.ac @@ -290,6 +290,17 @@ fi AM_CONDITIONAL(HAVE_NVTV, [test x"$enable_nvtv" = "xyes" -a x"$no_x" != "xyes"]) + +dnl --------------------------------------------- +dnl socket library +dnl --------------------------------------------- +dnl Test for socket and network support library +NET_LIBS="" +AC_CHECK_LIB(socket, socket, NET_LIBS="-lsocket $NET_LIBS",) +AC_CHECK_LIB(nsl, gethostbyname, NET_LIBS="-lnsl $NET_LIBS",) +AC_SUBST(NET_LIBS) + + dnl --------------------------------------------- dnl zlib dnl --------------------------------------------- diff --git a/misc/xine-config.in b/misc/xine-config.in index c4b7a57fc..a1ddb013c 100644 --- a/misc/xine-config.in +++ b/misc/xine-config.in @@ -100,7 +100,7 @@ if test "$echo_cflags" = "yes"; then fi if test "$echo_libs" = "yes"; then - echo -L@libdir@ -lxine @ZLIB_LIBS@ @THREAD_LIBS@ @EXTRA_X_LIBS@ @LIBICONV@ + echo -L@libdir@ -lxine @ZLIB_LIBS@ @NET_LIBS@ @THREAD_LIBS@ @EXTRA_X_LIBS@ @LIBICONV@ fi if test "$echo_plugindir" = "yes"; then echo "@XINE_PLUGINPATH@" -- cgit v1.2.3