Fix linking failures on Solaris. Fixes bug #568481.

Link libgstreamer with $(LIBM) as it uses math functions.

Add a configure check for socket and nsl library and add
them to LIBS if they're found. This is needed on Solaris
for socket() and gethostbyname().
This commit is contained in:
Brian Cameron 2009-01-23 09:54:53 +01:00 committed by Sebastian Dröge
parent 1d3c1380bf
commit 0bf1bd0db0
2 changed files with 5 additions and 1 deletions

View file

@ -455,6 +455,10 @@ AC_CHECK_LIB(dl, dladdr,
LIBS="$LIBS -ldl")
CFLAGS="$save_cflags"
dnl *** checks for socket and nsl libraries ***
AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)])
AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
dnl check for inet_aton()
save_libs="$LIBS"
AC_CHECK_FUNC(inet_aton, ,

View file

@ -135,7 +135,7 @@ libgstreamer_@GST_MAJORMINOR@_la_LIBADD = \
$(XML_LIBS)
libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = \
$(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
$(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS) $(LIBM)
libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst