home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / utils / bug / 2079 < prev    next >
Encoding:
Text File  |  1992-11-19  |  3.1 KB  |  92 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!zoo
  3. From: zoo@cygnus.com (david d `zoo' zuhn)
  4. Subject: an end to -DUSG in grep sources
  5. Message-ID: <9211200151.AA12197@cygnus.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: Cygnus Support -- +1 415 903 1434
  8. Distribution: gnu
  9. Date: Fri, 20 Nov 1992 01:51:49 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 79
  12.  
  13. Since USG is an obsolete #define to test for these days, here are patches
  14. to grep 1.6 which remove all traces of USG from the source code.  You'll
  15. need to re-generate the configure file from configure.in (with autoconf).
  16.  
  17.   david d 'zoo' zuhn |    There is great disorder under the heavens,
  18.     cygnus support   |         and the situation is excellent.
  19.     zoo@cygnus.com   |    
  20.  
  21. --- share and enjoy ---
  22.  
  23. Only in grep-1.6: Makefile
  24. diff -ru2 grep-1.6/Makefile.in grep-zoo/Makefile.in
  25. --- grep-1.6/Makefile.in    Sun May 17 10:35:19 1992
  26. +++ grep-zoo/Makefile.in    Thu Nov 19 17:47:03 1992
  27. @@ -32,5 +32,5 @@
  28.  # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  29.  # -DHAVE_UNISTD_H    If you have unistd.h.
  30. -# -DUSG            If you have System V/ANSI C string
  31. +# -DHAVE_STRING_H    If you have System V/ANSI C string
  32.  #            and memory functions and headers.
  33.  # -D__CHAR_UNSIGNED__    If type `char' is unsigned.
  34. diff -ru2 grep-1.6/configure.in grep-zoo/configure.in
  35. --- grep-1.6/configure.in    Mon May  4 13:30:54 1992
  36. +++ grep-zoo/configure.in    Thu Nov 19 17:47:03 1992
  37. @@ -4,5 +4,5 @@
  38.  AC_PROG_INSTALL
  39.  AC_STDC_HEADERS
  40. -AC_USG
  41. +AC_HAVE_HEADERS(string.h)
  42.  AC_UNISTD_H
  43.  AC_CHAR_UNSIGNED
  44. diff -ru2 grep-1.6/dfa.c grep-zoo/dfa.c
  45. --- grep-1.6/dfa.c    Tue May  5 19:32:11 1992
  46. +++ grep-zoo/dfa.c    Thu Nov 19 17:47:04 1992
  47. @@ -22,5 +22,5 @@
  48.  #include <assert.h>
  49.  
  50. -#if defined(USG) || defined(STDC_HEADERS)
  51. +#if HAVE_STRING_H==1 || defined(STDC_HEADERS)
  52.  #include <string.h>
  53.  #ifndef index
  54. diff -ru2 grep-1.6/getopt.c grep-zoo/getopt.c
  55. --- grep-1.6/getopt.c    Mon May  4 12:17:35 1992
  56. +++ grep-zoo/getopt.c    Thu Nov 19 17:47:52 1992
  57. @@ -24,5 +24,5 @@
  58.  #define alloca __builtin_alloca
  59.  #else /* not __GNUC__ */
  60. -#if defined(sparc) && !defined(USG) && !defined(SVR4) && !defined(__svr4__)
  61. +#if defined(sparc) && !defined(SVR4) && !defined(__svr4__)
  62.  #include <alloca.h>
  63.  #else
  64. diff -ru2 grep-1.6/grep.c grep-zoo/grep.c
  65. --- grep-1.6/grep.c    Tue May  5 19:40:20 1992
  66. +++ grep-zoo/grep.c    Thu Nov 19 17:47:39 1992
  67. @@ -21,5 +21,5 @@
  68.  #include <stdio.h>
  69.  
  70. -#if defined(USG) || defined(STDC_HEADERS)
  71. +#if HAVE_STRING_H==1 || defined(STDC_HEADERS)
  72.  #include <string.h>
  73.  #ifndef bcopy
  74. diff -ru2 grep-1.6/regex.c grep-zoo/regex.c
  75. --- grep-1.6/regex.c    Sun May 17 11:12:29 1992
  76. +++ grep-zoo/regex.c    Thu Nov 19 17:48:10 1992
  77. @@ -32,5 +32,5 @@
  78.  #define alloca __builtin_alloca
  79.  #else /* not __GNUC__ */
  80. -#if defined(sparc) && !defined(USG) && !defined(SVR4) && !defined(__svr4__)
  81. +#if defined(sparc) && !defined(SVR4) && !defined(__svr4__)
  82.  #include <alloca.h>
  83.  #else
  84. @@ -56,5 +56,5 @@
  85.  #else  /* not emacs */
  86.  
  87. -#if defined(USG) || defined(STDC_HEADERS)
  88. +#if HAVE_STRING_H==1 || defined(STDC_HEADERS)
  89.  #include <string.h>
  90.  #ifndef bcopy
  91.  
  92.