Przeglądaj źródła

* Ported IPV6 fixes to 1.2.9

svn: 2580
Bryan Drewery 20 lat temu
rodzic
commit
f4106ce21a
5 zmienionych plików z 38 dodań i 33 usunięć
  1. 0 1
      autotools/Makefile
  2. 0 18
      autotools/config.h.template
  3. 18 0
      autotools/configure.ac
  4. 1 1
      config.h.in
  5. 19 13
      configure

+ 0 - 1
autotools/Makefile

@@ -11,7 +11,6 @@ autoheader:
 	@echo "Autoheader..."
 	@autoheader
 	@echo "" >> config.h.in
-	@cat config.h.template >> config.h.in
 	@echo "/* Defines for pack features */" >> config.h.in
 	@(for define in `sed -n -e 's/^[\+|\-] \([^ ]*\) .*/\1/ p' ../pack/pack.cfg`; do \
 	echo "#undef S_$$define" >> config.h.in; \

+ 0 - 18
autotools/config.h.template

@@ -1,18 +0,0 @@
-/*
- * Enable IPv6 debugging?
- */
-#define DEBUG_IPV6 1
-#define HAVE_IPV6 1
-
-/* IPv6 sanity checks. */
-#ifdef USE_IPV6
-#  ifndef HAVE_IPV6
-#    undef USE_IPV6
-#  endif
-#  ifndef HAVE_GETHOSTBYNAME2
-#    ifndef HAVE_GETIPNODEBYNAME
-#      undef USE_IPV6
-#    endif
-#  endif
-#endif
-

+ 18 - 0
autotools/configure.ac

@@ -180,5 +180,23 @@ AH_BOTTOM([/*
 #  define mtim_getnsec(_x)      (0)
 # endif /* HAVE_ST_MTIMESPEC */
 #endif /* HAVE_ST_MTIM */
+
+/*
+ * Enable IPv6 debugging?
+ */
+#define DEBUG_IPV6 1
+#define HAVE_IPV6 1
+
+/* IPv6 sanity checks. */
+#ifdef USE_IPV6
+#  ifndef HAVE_IPV6
+#    undef USE_IPV6
+#  endif
+#  ifndef HAVE_GETHOSTBYNAME2
+#    ifndef HAVE_GETIPNODEBYNAME
+#      undef USE_IPV6
+#    endif
+#  endif
+#endif
 ])
 

+ 1 - 1
config.h.in

@@ -369,7 +369,6 @@
 # endif /* HAVE_ST_MTIMESPEC */
 #endif /* HAVE_ST_MTIM */
 
-
 /*
  * Enable IPv6 debugging?
  */
@@ -388,4 +387,5 @@
 #  endif
 #endif
 
+
 /* Defines for pack features */

+ 19 - 13
configure

@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 1.47 .
+# From configure.ac Revision: 2576 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59.
 #
@@ -8210,18 +8210,24 @@ else
   ac_cv_func_fork_works=cross
 else
   cat >conftest.$ac_ext <<_ACEOF
-/* By Ruediger Kuhlmann. */
-      #include <sys/types.h>
-      #if HAVE_UNISTD_H
-      # include <unistd.h>
-      #endif
-      /* Some systems only have a dummy stub for fork() */
-      int main ()
-      {
-	if (fork() < 0)
-	  exit (1);
-	exit (0);
-      }
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+
+	  /* By Ruediger Kuhlmann. */
+	  if (fork() < 0)
+	    exit (1);
+	  exit (0);
+
+  ;
+  return 0;
+}
 _ACEOF
 rm -f conftest$ac_exeext
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5