[csw-devel] SF.net SVN: gar:[9399] csw/mgar/pkg/lftp/trunk/files/dont_use_csw_getopt_h. patch

chninkel at users.sourceforge.net chninkel at users.sourceforge.net
Sat Mar 27 16:37:14 CET 2010


Revision: 9399
          http://gar.svn.sourceforge.net/gar/?rev=9399&view=rev
Author:   chninkel
Date:     2010-03-27 15:37:14 +0000 (Sat, 27 Mar 2010)

Log Message:
-----------
lftp: oups, I forgot the patch

Added Paths:
-----------
    csw/mgar/pkg/lftp/trunk/files/dont_use_csw_getopt_h.patch

Added: csw/mgar/pkg/lftp/trunk/files/dont_use_csw_getopt_h.patch
===================================================================
--- csw/mgar/pkg/lftp/trunk/files/dont_use_csw_getopt_h.patch	                        (rev 0)
+++ csw/mgar/pkg/lftp/trunk/files/dont_use_csw_getopt_h.patch	2010-03-27 15:37:14 UTC (rev 9399)
@@ -0,0 +1,26 @@
+--- lftp-4.0.6/m4/getopt.m4.orig	Sat Mar 27 14:36:10 2010
++++ lftp-4.0.6/m4/getopt.m4	Sat Mar 27 14:39:57 2010
+@@ -57,7 +57,7 @@
+   gl_CHECK_NEXT_HEADERS([getopt.h])
+   AC_CHECK_HEADERS_ONCE([getopt.h])
+   if test $ac_cv_header_getopt_h = yes; then
+-    HAVE_GETOPT_H=1
++    HAVE_GETOPT_H=0
+   else
+     HAVE_GETOPT_H=0
+   fi
+@@ -67,12 +67,12 @@
+ 
+   dnl Test whether <getopt.h> is available.
+   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
+-    AC_CHECK_HEADERS([getopt.h], [], [gl_replace_getopt=yes])
++    AC_CHECK_HEADERS([getopt.h], [gl_replace_getopt=yes], [gl_replace_getopt=yes])
+   fi
+ 
+   dnl Test whether the function getopt_long is available.
+   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
+-    AC_CHECK_FUNCS([getopt_long_only], [], [gl_replace_getopt=yes])
++    AC_CHECK_FUNCS([getopt_long_only], [gl_replace_getopt=yes], [gl_replace_getopt=yes])
+   fi
+ 
+   dnl BSD getopt_long uses an incompatible method to reset option processing.


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list