fixed problem with referenced attribute groups (bug #417621) re-ordered

* xmlschemas.c: fixed problem with referenced attribute groups
  (bug #417621)
* configure.in: re-ordered some includes for types.h / socket.h
  (bug 416001)

svn path=/trunk/; revision=3590
diff --git a/configure.in b/configure.in
index debf196..6075468 100644
--- a/configure.in
+++ b/configure.in
@@ -506,8 +506,8 @@
 if test $enable_ipv6 = yes; then
   have_ipv6=no
   AC_TRY_COMPILE([
-    #include <sys/socket.h>
     #include <sys/types.h>], [
+    #include <sys/socket.h>
     struct sockaddr_storage ss;
     socket(AF_INET6, SOCK_STREAM, 0)
     ],
@@ -529,8 +529,8 @@
     dnl ********************************************************************
     AC_MSG_CHECKING([struct sockaddr::ss_family])
     AC_TRY_COMPILE([
-      #include <sys/socket.h>
       #include <sys/types.h>], [
+      #include <sys/socket.h>
       struct sockaddr_storage ss ;
       ss.ss_family = 0 ;
       ],
@@ -541,8 +541,8 @@
     if test x$have_ss_family = xno ; then
       AC_MSG_CHECKING([broken struct sockaddr::ss_family])
       AC_TRY_COMPILE([
-        #include <sys/socket.h>
         #include <sys/types.h>], [
+        #include <sys/socket.h>
         struct sockaddr_storage ss ;
         ss.__ss_family = 0 ;
         ],