Index: configure.ac
===================================================================
RCS file: /cvs/gstreamer/gstreamer/configure.ac,v
retrieving revision 1.485
diff -u -p -r1.485 configure.ac
--- configure.ac	28 Sep 2006 11:11:27 -0000	1.485
+++ configure.ac	5 Oct 2006 14:31:15 -0000
@@ -340,6 +340,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
Index: common/m4/gst-error.m4
===================================================================
RCS file: /cvs/gstreamer/common/m4/gst-error.m4,v
retrieving revision 1.3
diff -u -p -r1.3 gst-error.m4
--- common/m4/gst-error.m4	16 Oct 2005 12:26:58 -0000	1.3
+++ common/m4/gst-error.m4	5 Oct 2006 14:31:15 -0000
@@ -30,6 +30,11 @@ AC_DEFUN([GST_SET_ERROR_CFLAGS],
   if test "x$1" != "xno"
   then
     AS_COMPILER_FLAG(-Werror, ERROR_CFLAGS="$ERROR_CFLAGS -Werror")
+    dnl if -Werror isn't suported, try -errwarn=%all
+    if test "x$ERROR_CFLAGS" == "x"
+    then
+      AS_COMPILER_FLAG(-errwarn=%all, ERROR_CFLAGS="$ERROR_CFLAGS -errwarn=%all")
+    fi
   fi
   
   AC_SUBST(ERROR_CFLAGS)
Index: libs/gst/net/Makefile.am
===================================================================
RCS file: /cvs/gstreamer/gstreamer/libs/gst/net/Makefile.am,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile.am
--- libs/gst/net/Makefile.am	1 Jul 2006 23:26:06 -0000	1.7
+++ libs/gst/net/Makefile.am	5 Oct 2006 14:31:15 -0000
@@ -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
