home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.1.077 < prev    next >
Encoding:
Internet Message Format  |  2002-05-18  |  4.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.077
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.1.077
  11. Problem:    On a Debian system wht ACL linking fails. (Lubomir Host)
  12. Solution:   When the "acl" library is used, check if the "attr" library is
  13.         present and use it.
  14. Files:        src/auto/configure, src/configure.in, src/link.sh
  15.  
  16.  
  17. *** ../vim61.076/src/auto/configure    Sat Mar  9 19:14:07 2002
  18. --- src/auto/configure    Sat May 18 21:41:11 2002
  19. ***************
  20. *** 6066,6071 ****
  21. --- 6066,6111 ----
  22.   if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  23.     echo "$ac_t""yes" 1>&6
  24.     LIBS="$LIBS -lacl"
  25. +           echo $ac_n "checking for fgetxattr in -lattr""... $ac_c" 1>&6
  26. + echo "configure:6071: checking for fgetxattr in -lattr" >&5
  27. + ac_lib_var=`echo attr'_'fgetxattr | sed 'y%./+-%__p_%'`
  28. + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  29. +   echo $ac_n "(cached) $ac_c" 1>&6
  30. + else
  31. +   ac_save_LIBS="$LIBS"
  32. + LIBS="-lattr  $LIBS"
  33. + cat > conftest.$ac_ext <<EOF
  34. + #line 6079 "configure"
  35. + #include "confdefs.h"
  36. + /* Override any gcc2 internal prototype to avoid an error.  */
  37. + /* We use char because int might match the return type of a gcc2
  38. +     builtin and then its argument prototype would still apply.  */
  39. + char fgetxattr();
  40. + int main() {
  41. + fgetxattr()
  42. + ; return 0; }
  43. + EOF
  44. + if { (eval echo configure:6090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  45. +   rm -rf conftest*
  46. +   eval "ac_cv_lib_$ac_lib_var=yes"
  47. + else
  48. +   echo "configure: failed program was:" >&5
  49. +   cat conftest.$ac_ext >&5
  50. +   rm -rf conftest*
  51. +   eval "ac_cv_lib_$ac_lib_var=no"
  52. + fi
  53. + rm -f conftest*
  54. + LIBS="$ac_save_LIBS"
  55. + fi
  56. + if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  57. +   echo "$ac_t""yes" 1>&6
  58. +   LIBS="$LIBS -lattr"
  59. + else
  60. +   echo "$ac_t""no" 1>&6
  61. + fi
  62.   else
  63.     echo "$ac_t""no" 1>&6
  64.   fi
  65. *** ../vim61.076/src/configure.in    Sat Mar  9 18:29:18 2002
  66. --- src/configure.in    Sat May 18 21:41:06 2002
  67. ***************
  68. *** 1765,1772 ****
  69.       AC_MSG_RESULT(no))
  70.   
  71.   dnl Link with -lposix1e for ACL stuff; if not found, try -lacl for SGI
  72.   AC_CHECK_LIB(posix1e, acl_get_file, [LIBS="$LIBS -lposix1e"],
  73. !     AC_CHECK_LIB(acl, acl_get_file, [LIBS="$LIBS -lacl"],,),)
  74.   
  75.   AC_MSG_CHECKING(for POSIX ACL support)
  76.   AC_TRY_LINK([
  77. --- 1765,1774 ----
  78.       AC_MSG_RESULT(no))
  79.   
  80.   dnl Link with -lposix1e for ACL stuff; if not found, try -lacl for SGI
  81. + dnl when -lacl works, also try to use -lattr (required for Debian).
  82.   AC_CHECK_LIB(posix1e, acl_get_file, [LIBS="$LIBS -lposix1e"],
  83. !     AC_CHECK_LIB(acl, acl_get_file, [LIBS="$LIBS -lacl"
  84. !           AC_CHECK_LIB(attr, fgetxattr, LIBS="$LIBS -lattr",,)],,),)
  85.   
  86.   AC_MSG_CHECKING(for POSIX ACL support)
  87.   AC_TRY_LINK([
  88. *** ../vim61.076/src/link.sh    Thu Feb 21 19:37:52 2002
  89. --- src/link.sh    Sun May 19 11:51:43 2002
  90. ***************
  91. *** 40,46 ****
  92.     if sh link.cmd; then
  93.       touch auto/link.sed
  94.       cp link.cmd linkit.sh
  95. !     for libname in SM ICE nsl dnet dnet_stub inet socket dir elf iconv Xt Xmu Xp Xpm X11 Xdmcp x pthread thread readline m perl crypt; do
  96.         cont=yes
  97.         while test -n "$cont"; do
  98.           if grep "l$libname " linkit.sh >/dev/null; then
  99. --- 40,46 ----
  100.     if sh link.cmd; then
  101.       touch auto/link.sed
  102.       cp link.cmd linkit.sh
  103. !     for libname in SM ICE nsl dnet dnet_stub inet socket dir elf iconv Xt Xmu Xp Xpm X11 Xdmcp x pthread thread readline m perl crypt attr; do
  104.         cont=yes
  105.         while test -n "$cont"; do
  106.           if grep "l$libname " linkit.sh >/dev/null; then
  107. *** ../vim61.076/src/version.c    Fri May 17 19:29:08 2002
  108. --- src/version.c    Sun May 19 11:54:01 2002
  109. ***************
  110. *** 608,609 ****
  111. --- 608,611 ----
  112.   {   /* Add new patch number below this line */
  113. + /**/
  114. +     77,
  115.   /**/
  116.  
  117. -- 
  118. Time is an illusion.  Lunchtime doubly so.
  119.         -- Ford Prefect, in Douglas Adams'
  120.            "The Hitchhiker's Guide to the Galaxy"
  121.  
  122.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  123. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  124. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  125.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  126.