diff options
author | Juergen Keil <jkeil@users.sourceforge.net> | 2003-05-19 16:33:04 +0000 |
---|---|---|
committer | Juergen Keil <jkeil@users.sourceforge.net> | 2003-05-19 16:33:04 +0000 |
commit | 3e954ad5f75eefd720a0d2dc88f3db9f5c8c1695 (patch) | |
tree | ead8f2484bb7abdb9f83377f8571f0535705711f | |
parent | 1147f794a6a7bc0b566faf39644b8cda5ed3c9c1 (diff) | |
download | xine-lib-3e954ad5f75eefd720a0d2dc88f3db9f5c8c1695.tar.gz xine-lib-3e954ad5f75eefd720a0d2dc88f3db9f5c8c1695.tar.bz2 |
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
-rw-r--r-- | configure.ac | 11 | ||||
-rw-r--r-- | misc/xine-config.in | 2 |
2 files changed, 12 insertions, 1 deletions
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@" |