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.080 < prev    next >
Encoding:
Internet Message Format  |  2002-05-19  |  4.1 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.080
  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.080
  11. Problem:    When using gcc with /usr/local already in the search path, adding
  12.         it again causes problems.
  13. Solution:   Adjust configure.in to avoid adding /usr/local/include and
  14.         /usr/local/lib when using GCC and they are already used. (Johannes
  15.         Zellner)
  16. Files:        src/auto/configure, src/configure.in
  17.  
  18.  
  19. *** ../vim61.079/src/auto/configure    Sun May 19 11:56:55 2002
  20. --- src/auto/configure    Mon May 20 21:16:03 2002
  21. ***************
  22. *** 1155,1167 ****
  23.   
  24.   
  25.   
  26. ! if test -d /usr/local/lib; then
  27.     tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
  28.     if test "$tt" = "$LDFLAGS"; then
  29.       LDFLAGS="$LDFLAGS -L/usr/local/lib"
  30.     fi
  31.   fi
  32. ! if test -d /usr/local/include; then
  33.     tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
  34.     if test "$tt" = "$CPPFLAGS"; then
  35.       CPPFLAGS="$CPPFLAGS -I/usr/local/include"
  36. --- 1155,1175 ----
  37.   
  38.   
  39.   
  40. ! have_local_include=''
  41. ! have_local_lib=''
  42. ! if test "$GCC" = yes; then
  43. !   echo 'void f(){}' > conftest.c
  44. !   have_local_include=`$CC -c -v conftest.c 2>&1 | grep '/usr/local/include'`
  45. !   have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
  46. !   rm -f conftest.c conftest.o
  47. ! fi
  48. ! if test -z "$have_local_include" -a -d /usr/local/lib; then
  49.     tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
  50.     if test "$tt" = "$LDFLAGS"; then
  51.       LDFLAGS="$LDFLAGS -L/usr/local/lib"
  52.     fi
  53.   fi
  54. ! if test -z "$have_local_lib" -a -d /usr/local/include; then
  55.     tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
  56.     if test "$tt" = "$CPPFLAGS"; then
  57.       CPPFLAGS="$CPPFLAGS -I/usr/local/include"
  58. *** ../vim61.079/src/configure.in    Sun May 19 11:56:55 2002
  59. --- src/configure.in    Mon May 20 21:15:59 2002
  60. ***************
  61. *** 74,86 ****
  62.   
  63.   dnl Add /usr/local/lib to $LDFLAGS and /usr/local/include to CFLAGS.
  64.   dnl Only when the directory exists and it wasn't there yet.
  65. ! if test -d /usr/local/lib; then
  66.     tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
  67.     if test "$tt" = "$LDFLAGS"; then
  68.       LDFLAGS="$LDFLAGS -L/usr/local/lib"
  69.     fi
  70.   fi
  71. ! if test -d /usr/local/include; then
  72.     tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
  73.     if test "$tt" = "$CPPFLAGS"; then
  74.       CPPFLAGS="$CPPFLAGS -I/usr/local/include"
  75. --- 74,95 ----
  76.   
  77.   dnl Add /usr/local/lib to $LDFLAGS and /usr/local/include to CFLAGS.
  78.   dnl Only when the directory exists and it wasn't there yet.
  79. ! dnl For gcc don't do this when it is already in the default search path.
  80. ! have_local_include=''
  81. ! have_local_lib=''
  82. ! if test "$GCC" = yes; then
  83. !   echo 'void f(){}' > conftest.c
  84. !   have_local_include=`$CC -c -v conftest.c 2>&1 | grep '/usr/local/include'`
  85. !   have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
  86. !   rm -f conftest.c conftest.o
  87. ! fi
  88. ! if test -z "$have_local_include" -a -d /usr/local/lib; then
  89.     tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
  90.     if test "$tt" = "$LDFLAGS"; then
  91.       LDFLAGS="$LDFLAGS -L/usr/local/lib"
  92.     fi
  93.   fi
  94. ! if test -z "$have_local_lib" -a -d /usr/local/include; then
  95.     tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
  96.     if test "$tt" = "$CPPFLAGS"; then
  97.       CPPFLAGS="$CPPFLAGS -I/usr/local/include"
  98. *** ../vim61.079/src/version.c    Sun May 19 21:31:03 2002
  99. --- src/version.c    Mon May 20 21:18:57 2002
  100. ***************
  101. *** 608,609 ****
  102. --- 608,611 ----
  103.   {   /* Add new patch number below this line */
  104. + /**/
  105. +     80,
  106.   /**/
  107.  
  108. --  
  109. A day without sunshine is like, well, night.
  110.  
  111.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  112. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  113. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  114.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  115.