]> git.pld-linux.org Git - packages/lftp.git/blobdiff - lftp-m4.patch
- up to 4.0.5
[packages/lftp.git] / lftp-m4.patch
index 228f2d1e6a5d4e15c982897dec50f71d6c15c0eb..3041ffed398cf25a9278faffbbeda91ce4c6da1e 100644 (file)
-diff -urN lftp-2.5.0a.org/m4/va_copy.m4 lftp-2.5.0a/m4/va_copy.m4
---- lftp-2.5.0a.org/m4/va_copy.m4      Thu Jan  1 01:00:00 1970
-+++ lftp-2.5.0a/m4/va_copy.m4  Mon Mar  4 15:16:21 2002
-@@ -0,0 +1,126 @@
-+# Directly out of glib.  We don't do copy-by-value and other really
-+# pessimistic tests, since just about all systems will have one of these.
-+# Add them if needed.
-+
-+AC_DEFUN(lftp_VA_COPY,
-+[
-+   AC_CACHE_CHECK([for an implementation of va_copy()],lftp_cv_va_copy,[
-+      AC_TRY_RUN([
-+      #include <stdarg.h>
-+      void f (int i, ...) {
-+       va_list args1, args2;
-+       va_start (args1, i);
-+       va_copy (args2, args1);
-+       if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
-+          exit (1);
-+       va_end (args1); va_end (args2);
-+      }
-+      int main() {
-+       f (0, 42);
-+       return 0;
-+      }],
-+      [lftp_cv_va_copy=yes],
-+      [lftp_cv_va_copy=no],
-+      [])
-+   ])
-+   if test x$lftp_cv_va_copy != xyes; then
-+      AC_CACHE_CHECK([for an implementation of __va_copy()],lftp_cv___va_copy,[
-+       AC_TRY_RUN([
-+       #include <stdarg.h>
-+       void f (int i, ...) {
-+          va_list args1, args2;
-+          va_start (args1, i);
-+          __va_copy (args2, args1);
-+          if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
-+             exit (1);
-+          va_end (args1); va_end (args2);
-+       }
-+       int main() {
-+          f (0, 42);
-+          return 0;
-+       }],
-+       [lftp_cv___va_copy=yes],
-+       [lftp_cv___va_copy=no],
-+       [])
-+      ])
-+   fi
-+
-+   if test "x$lftp_cv_va_copy" = "xyes"; then
-+         va_copy_func=va_copy
-+   elif test "x$lftp_cv___va_copy" = "xyes"; then
-+         va_copy_func=__va_copy
-+   fi
-+
-+   if test -n "$va_copy_func"; then
-+       AC_DEFINE_UNQUOTED(VA_COPY,$va_copy_func,[A 'va_copy' style function])
-+
-+   else
-+
-+      AC_CACHE_CHECK([whether va_lists can be copied by value],lftp_cv_va_val_copy,[
-+         AC_TRY_RUN([
-+         #include <stdarg.h>
-+         #include <string.h>
-+         void f (int i, ...) {
-+         va_list args1, args2;
-+         va_start (args1, i);
-+
-+         memmove(&args2, &args1, sizeof(args1));
-+         if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
-+           exit (1);
-+         va_end (args1); va_end (args2);
-+         }
-+         int main() {
-+           f (0, 42);
-+           return 0;
-+         }],
-+         [lftp_cv_va_val_copy=yes],
-+         [lftp_cv_va_val_copy=no],
-+         [lftp_cv_va_val_copy=no])
-+      ])
-+
-+      if test x$lftp_cv_va_val_copy = xyes; then
-+       AC_DEFINE(VA_VAL_COPY,1,[Define to 1 if va_lists can be copied by value])
-+      else
-+       AC_CACHE_CHECK([whether va_lists can be copied by pointer],lftp_cv_va_ptr_copy,[
-+            AC_TRY_RUN([
-+            #include <stdarg.h>
-+            void f (int i, ...) {
-+            va_list args1, args2;
-+            va_start (args1, i);
-+
-+            *args2 = *args1;
-+            if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
-+              exit (1);
-+            va_end (args1); va_end (args2);
-+            }
-+            int main() {
-+              f (0, 42);
-+              return 0;
-+            }],
-+            [lftp_cv_va_ptr_copy=yes],
-+            [lftp_cv_va_ptr_copy=no],
-+            [lftp_cv_va_ptr_copy=no])
-+       ])
-+
-+       if test x$lftp_cv_va_ptr_copy = xyes; then
-+          AC_DEFINE(VA_PTR_COPY,1,[Define to 1 if va_lists can be copied by pointer])
-+       fi
-+      fi
-+   fi
-+
-+   if test x$lftp_cv_va_val_copy != xyes -a x$lftp_cv_va_ptr_copy != xyes -a \
-+           x$lftp_cv_va_copy != xyes -a x$lftp_cv___va_copy != xyes; then
-+         AC_MSG_ERROR(Can't find a way to va_copy.)
-+   fi
-+
-+   dnl ZZZ for autoheader sorting.
-+   AH_VERBATIM([VA_ZZZ_COPY],
-+[#if !defined (VA_COPY)
-+#  if defined (VA_PTR_COPY)
-+#    define VA_COPY(ap1, ap2)   (*(ap1) = *(ap2))
-+#  elif defined (VA_VAL_COPY)
-+#    include <string.h>
-+#    define VA_COPY(to,from) (memcpy(&(to),&(from),sizeof((to))))
-+#  endif
-+#endif /* !VA_COPY */])
-+])
+--- lftp-4.0.0/configure.ac~   2009-09-12 19:39:22.434759846 +0200
++++ lftp-4.0.0/configure.ac    2009-09-12 19:39:56.352256686 +0200
+@@ -254,9 +254,9 @@
+ AC_ARG_WITH(gnutls, AS_HELP_STRING([--without-gnutls], [don't use GNUTLS library]),
+       [with_gnutls=$withval], [with_gnutls=yes])
+-AC_ARG_WITH(openssl,
++AC_ARG_WITH(openssl,[
+ AS_HELP_STRING([--with-openssl[[=/path]]], [use OpenSSL [at /path]])
+-AS_HELP_STRING([--without-openssl], [don't use OpenSSL (default)]),
++AS_HELP_STRING([--without-openssl], [don't use OpenSSL (default)])],
+       [with_openssl=$withval], [with_openssl=no])
+ case "$with_openssl" in
+       yes)            with_gnutls=no;;
+--- lftp-4.0.0/configure.ac~   2009-09-12 19:40:40.005586037 +0200
++++ lftp-4.0.0/configure.ac    2009-09-12 19:43:06.141403565 +0200
+@@ -255,7 +255,7 @@
+ AC_ARG_WITH(gnutls, AS_HELP_STRING([--without-gnutls], [don't use GNUTLS library]),
+       [with_gnutls=$withval], [with_gnutls=yes])
+ AC_ARG_WITH(openssl,[
+-AS_HELP_STRING([--with-openssl[[=/path]]], [use OpenSSL [at /path]])
++AS_HELP_STRING([--with-openssl=/path], [use OpenSSL at /path])
+ AS_HELP_STRING([--without-openssl], [don't use OpenSSL (default)])],
+       [with_openssl=$withval], [with_openssl=no])
+ case "$with_openssl" in
This page took 0.582926 seconds and 4 git commands to generate.