Fix a compilation issue with Forte on Solaris. inet_aton is in libresolv.

Original commit message from CVS:
2006-10-05  Zaheer Abbas Merali  <zaheerabbas at merali dot org>

Patch by: Josep Torre Valles <josep@fluendo.com>

* common/m4/gst-error.m4:
* configure.ac:
* libs/gst/net/Makefile.am:
Fix a compilation issue with Forte on Solaris.  inet_aton is in
libresolv.
This commit is contained in:
Josep Torre Valles 2006-10-05 15:31:16 +00:00 committed by Zaheer Abbas Merali
parent f468db236d
commit 7869189d6a
4 changed files with 22 additions and 2 deletions

View file

@ -1,3 +1,13 @@
2006-10-05 Zaheer Abbas Merali <zaheerabbas at merali dot org>
Patch by: Josep Torre Valles <josep@fluendo.com>
* common/m4/gst-error.m4:
* configure.ac:
* libs/gst/net/Makefile.am:
Fix a compilation issue with Forte on Solaris. inet_aton is in
libresolv.
2006-10-05 Tim-Philipp Müller <tim at centricular dot net>
* gst/gstpad.c: (pre_activate):

2
common

@ -1 +1 @@
Subproject commit 9991f6fa61ee11475c390dd6675ef7952f079e43
Subproject commit a4af1b8542911352e29d53fba47e2c3d7231ebdb

View file

@ -344,6 +344,16 @@ AC_CHECK_LIB(dl, dladdr,
[Defined if we have dladdr ()]))
CFLAGS="$save_cflags"
dnl check for inet_aton()
save_libs="$LIBS"
AC_CHECK_FUNC(inet_aton, ,
AC_CHECK_LIB(nsl, inet_aton, ,
AC_CHECK_LIB(socket, inet_aton, ,
AC_CHECK_LIB(resolv, inet_aton, ,[AC_DEFINE(NO_INET_ATON, 1, [Define if you have no native inet_aton() function.])]))))
INET_ATON_LIBS=$LIBS
AC_SUBST(INET_ATON_LIBS)
LIBS="$save_libs"
dnl *** checks for dependancy libraries ***
dnl GLib

View file

@ -13,7 +13,7 @@ libgstnet_@GST_MAJORMINOR@_la_SOURCES = \
gstnettimeprovider.c
libgstnet_@GST_MAJORMINOR@_la_CFLAGS = $(GST_OBJ_CFLAGS)
libgstnet_@GST_MAJORMINOR@_la_LIBADD = $(GST_OBJ_LIBS)
libgstnet_@GST_MAJORMINOR@_la_LIBADD = $(GST_OBJ_LIBS) $(INET_ATON_LIBS)
libgstnet_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
CLEANFILES = *.gcno *.gcda *.gcov