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 / old / 5.4.13 < prev    next >
Encoding:
Internet Message Format  |  1999-08-06  |  6.2 KB

  1. To: vim-dev@vim.org
  2. Subject: patch 5.4.13
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.4.13
  8. Problem:    New SGI C compilers need another option for optimisation.
  9. Solution:   Add a check in configure for "-OPT:Olimit". (Chin A Young)
  10. Files:        src/configure.in, src/configure
  11.  
  12.  
  13. *** ../vim-5.4/src/configure.in    Sun Jul 25 22:02:06 1999
  14. --- src/configure.in    Thu Aug  5 11:19:55 1999
  15. ***************
  16. *** 35,56 ****
  17.     AC_MSG_ERROR([cannot compile a simple program, check CC and CFLAGS])
  18.   fi
  19.   
  20. ! dnl See if the compiler accepts "-Olimit 2000" or "-FOlimit,2000, needed for
  21. ! dnl some systems, because Vim uses very big case statements.
  22.   
  23.   if test "$GCC" != yes; then
  24. -   AC_MSG_CHECKING(if compiler accepts -Olimit)
  25.     save_cflags=$CFLAGS
  26. !   CFLAGS="$CFLAGS -Olimit 2000"
  27.     AC_TRY_LINK(, ,
  28.       AC_MSG_RESULT(yes),
  29. !         [AC_MSG_RESULT(no); CFLAGS="$save_cflags"
  30. !          AC_MSG_CHECKING(if compiler accepts -FOlimit)
  31. !          CFLAGS="$CFLAGS -FOlimit,2000"
  32. !          AC_TRY_LINK(, ,
  33. !                AC_MSG_RESULT(yes),
  34. !                [AC_MSG_RESULT(no); CFLAGS="$save_cflags"])
  35. !         ])
  36.   fi
  37.   
  38.   dnl gcc-cpp has the wonderful -MM option to produce nicer dependencies
  39. --- 35,65 ----
  40.     AC_MSG_ERROR([cannot compile a simple program, check CC and CFLAGS])
  41.   fi
  42.   
  43. ! dnl Check if the compiler accepts "-OPT:Olimit=2600", "-Olimit 2000" or
  44. ! dnl "-FOlimit,2000".  Needed for some systems, because Vim uses very big case
  45. ! dnl statements.  The order is significant, because "-FOlimit,2000 and
  46. ! dnl "-Olimit 2000" may only generate a warning.
  47.   
  48.   if test "$GCC" != yes; then
  49.     save_cflags=$CFLAGS
  50. !   AC_MSG_CHECKING(if compiler accepts -OPT:Olimit)
  51. !   CFLAGS="$CFLAGS -OPT:Olimit=2600"
  52.     AC_TRY_LINK(, ,
  53. +     AC_MSG_RESULT(yes),
  54. +     [AC_MSG_RESULT(no); CFLAGS="$save_cflags"
  55. +       AC_MSG_CHECKING(if compiler accepts -Olimit)
  56. +       CFLAGS="$CFLAGS -Olimit 2000"
  57. +       AC_TRY_LINK(, ,
  58.       AC_MSG_RESULT(yes),
  59. !     [AC_MSG_RESULT(no); CFLAGS="$save_cflags"
  60. !       AC_MSG_CHECKING(if compiler accepts -FOlimit)
  61. !       CFLAGS="$CFLAGS -FOlimit,2000"
  62. !         AC_TRY_LINK(, ,
  63. !         AC_MSG_RESULT(yes),
  64. !             [AC_MSG_RESULT(no); CFLAGS="$save_cflags"
  65. !         ])
  66. !     ])
  67. !     ])
  68.   fi
  69.   
  70.   dnl gcc-cpp has the wonderful -MM option to produce nicer dependencies
  71. *** ../vim-5.4/src/configure    Sun Jul 25 22:02:06 1999
  72. --- src/configure    Thu Aug  5 11:19:58 1999
  73. ***************
  74. *** 999,1008 ****
  75.   
  76.   
  77.   if test "$GCC" != yes; then
  78. -   echo $ac_n "checking if compiler accepts -Olimit""... $ac_c" 1>&6
  79. - echo "configure:1004: checking if compiler accepts -Olimit" >&5
  80.     save_cflags=$CFLAGS
  81. !   CFLAGS="$CFLAGS -Olimit 2000"
  82.     cat > conftest.$ac_ext <<EOF
  83.   #line 1008 "configure"
  84.   #include "confdefs.h"
  85. --- 999,1008 ----
  86.   
  87.   
  88.   if test "$GCC" != yes; then
  89.     save_cflags=$CFLAGS
  90. !   echo $ac_n "checking if compiler accepts -OPT:Olimit""... $ac_c" 1>&6
  91. ! echo "configure:1005: checking if compiler accepts -OPT:Olimit" >&5
  92. !   CFLAGS="$CFLAGS -OPT:Olimit=2600"
  93.     cat > conftest.$ac_ext <<EOF
  94.   #line 1008 "configure"
  95.   #include "confdefs.h"
  96. ***************
  97. *** 1019,1028 ****
  98.     cat conftest.$ac_ext >&5
  99.     rm -rf conftest*
  100.     echo "$ac_t""no" 1>&6; CFLAGS="$save_cflags"
  101. !          echo $ac_n "checking if compiler accepts -FOlimit""... $ac_c" 1>&6
  102. ! echo "configure:1024: checking if compiler accepts -FOlimit" >&5
  103. !          CFLAGS="$CFLAGS -FOlimit,2000"
  104. !          cat > conftest.$ac_ext <<EOF
  105.   #line 1027 "configure"
  106.   #include "confdefs.h"
  107.   
  108. --- 1019,1028 ----
  109.     cat conftest.$ac_ext >&5
  110.     rm -rf conftest*
  111.     echo "$ac_t""no" 1>&6; CFLAGS="$save_cflags"
  112. !       echo $ac_n "checking if compiler accepts -Olimit""... $ac_c" 1>&6
  113. ! echo "configure:1024: checking if compiler accepts -Olimit" >&5
  114. !       CFLAGS="$CFLAGS -Olimit 2000"
  115. !       cat > conftest.$ac_ext <<EOF
  116.   #line 1027 "configure"
  117.   #include "confdefs.h"
  118.   
  119. ***************
  120. *** 1038,1046 ****
  121.     cat conftest.$ac_ext >&5
  122.     rm -rf conftest*
  123.     echo "$ac_t""no" 1>&6; CFLAGS="$save_cflags"
  124.   fi
  125.   rm -f conftest*
  126. !         
  127.   fi
  128.   rm -f conftest*
  129.   fi
  130. --- 1038,1069 ----
  131.     cat conftest.$ac_ext >&5
  132.     rm -rf conftest*
  133.     echo "$ac_t""no" 1>&6; CFLAGS="$save_cflags"
  134. +       echo $ac_n "checking if compiler accepts -FOlimit""... $ac_c" 1>&6
  135. + echo "configure:1043: checking if compiler accepts -FOlimit" >&5
  136. +       CFLAGS="$CFLAGS -FOlimit,2000"
  137. +         cat > conftest.$ac_ext <<EOF
  138. + #line 1046 "configure"
  139. + #include "confdefs.h"
  140. + int main() {
  141. + ; return 0; }
  142. + EOF
  143. + if { (eval echo configure:1053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  144. +   rm -rf conftest*
  145. +   echo "$ac_t""yes" 1>&6
  146. + else
  147. +   echo "configure: failed program was:" >&5
  148. +   cat conftest.$ac_ext >&5
  149. +   rm -rf conftest*
  150. +   echo "$ac_t""no" 1>&6; CFLAGS="$save_cflags"
  151. +         
  152.   fi
  153.   rm -f conftest*
  154. !     
  155. ! fi
  156. ! rm -f conftest*
  157. !     
  158.   fi
  159.   rm -f conftest*
  160.   fi
  161. *** ../vim-5.4/src/version.h    Tue Aug  3 13:19:47 1999
  162. --- src/version.h    Thu Aug  5 11:23:48 1999
  163. ***************
  164. *** 19,26 ****
  165.   #define VIM_VERSION_MINOR_STR        "4"
  166.   #define VIM_VERSION_BUILD         57
  167.   #define VIM_VERSION_BUILD_STR        "57"
  168. ! #define VIM_VERSION_PATCHLEVEL         12
  169. ! #define VIM_VERSION_PATCHLEVEL_STR    "12"
  170.   
  171.   /*
  172.    * VIM_VERSION_NODOT is used for the runtime directory name.
  173. --- 19,26 ----
  174.   #define VIM_VERSION_MINOR_STR        "4"
  175.   #define VIM_VERSION_BUILD         57
  176.   #define VIM_VERSION_BUILD_STR        "57"
  177. ! #define VIM_VERSION_PATCHLEVEL         13
  178. ! #define VIM_VERSION_PATCHLEVEL_STR    "13"
  179.   
  180.   /*
  181.    * VIM_VERSION_NODOT is used for the runtime directory name.
  182. ***************
  183. *** 30,35 ****
  184.    */
  185.   #define VIM_VERSION_NODOT    "vim54"
  186.   #define VIM_VERSION_SHORT    "5.4"
  187. ! #define VIM_VERSION_MEDIUM    "5.4.12"
  188. ! #define VIM_VERSION_LONG    "VIM - Vi IMproved 5.4.12 (1999 Aug 3)"
  189. ! #define VIM_VERSION_LONG_DATE    "VIM - Vi IMproved 5.4.12 (1999 Aug 3, compiled "
  190. --- 30,35 ----
  191.    */
  192.   #define VIM_VERSION_NODOT    "vim54"
  193.   #define VIM_VERSION_SHORT    "5.4"
  194. ! #define VIM_VERSION_MEDIUM    "5.4.13"
  195. ! #define VIM_VERSION_LONG    "VIM - Vi IMproved 5.4.13 (1999 Aug 5)"
  196. ! #define VIM_VERSION_LONG_DATE    "VIM - Vi IMproved 5.4.13 (1999 Aug 5, compiled "
  197.  
  198. --
  199. Living on Earth includes an annual free trip around the Sun.
  200.  
  201. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
  202.   \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /
  203.