home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / useful / dist / gnu / libg++ / libg++-2.5.2.diffs next >
Encoding:
Text File  |  1993-12-19  |  52.9 KB  |  1,660 lines

  1. #  **** NOTE ****
  2. #
  3. #  Before applying these diffs and building libg++, you need to have moved
  4. #  the files in the FSF distribution that have name collisions because
  5. #  the AmigaDOS filesystem is case independent.  These are:
  6. #
  7. #    FSF file            Move to
  8. #    ------------------        ---------------------
  9. #
  10. #    libg++/old-stream/filebuf.cc    libg++/old-stream/_filebuf.cc
  11. #    libg++/old-stream/filebuf.h    libg++/old-stream/_filebuf.h
  12. #    libg++/src/regex.cc        libg++/src/_regex.cc
  13. #    libg++/src/regex.h        libg++/src/_regex.h
  14. #    libg++/src/complex.h        libg++/src/_complex.h
  15. #
  16.  
  17.  
  18. diff -rc libg++-2.5.2-fsf/Makefile.in libg++-2.5.2-amiga/Makefile.in
  19. *** libg++-2.5.2-fsf/Makefile.in    Fri Dec  3 07:42:07 1993
  20. --- libg++-2.5.2-amiga/Makefile.in    Sat Dec 18 14:17:39 1993
  21. ***************
  22. *** 19,25 ****
  23.   
  24.   srcdir = .
  25.   
  26. ! prefix = /usr/local
  27.   
  28.   exec_prefix = $(prefix)
  29.   bindir = $(exec_prefix)/bin
  30. --- 19,25 ----
  31.   
  32.   srcdir = .
  33.   
  34. ! prefix = /usr
  35.   
  36.   exec_prefix = $(prefix)
  37.   bindir = $(exec_prefix)/bin
  38. ***************
  39. *** 53,68 ****
  40.   AS = as
  41.   AR = ar
  42.   AR_FLAGS = rc
  43. ! CC = cc
  44.   
  45.   # We don't specify -g -O because many compilers don't support -g -O,
  46.   # and/or -O is broken in and of itself.
  47. ! CFLAGS = -g
  48.   
  49.   CXX = gcc
  50.   
  51.   # Use -O to stress test the compiler.
  52. ! CXXFLAGS = -g -O
  53.   
  54.   RANLIB = ranlib
  55.   NM = nm
  56. --- 53,68 ----
  57.   AS = as
  58.   AR = ar
  59.   AR_FLAGS = rc
  60. ! CC = gcc
  61.   
  62.   # We don't specify -g -O because many compilers don't support -g -O,
  63.   # and/or -O is broken in and of itself.
  64. ! CFLAGS = -O
  65.   
  66.   CXX = gcc
  67.   
  68.   # Use -O to stress test the compiler.
  69. ! CXXFLAGS = -O
  70.   
  71.   RANLIB = ranlib
  72.   NM = nm
  73. ***************
  74. *** 71,100 ****
  75.   GZIPPROG = gzip
  76.   
  77.   BISON = bison -y
  78. ! LEX = `if [ -f $${rootme}/flex/flex ] ; \
  79. !     then echo $${rootme}/flex/flex ; \
  80. !     else echo flex ; fi`
  81. ! M4 = `if [ -f $${rootme}/m4/m4 ] ; \
  82. !     then echo $${rootme}/m4/m4 ; \
  83. !     else echo m4 ; fi`
  84. ! MAKEINFO = `if [ -f $${rootme}/texinfo/makeinfo/makeinfo ] ; \
  85. !     then echo $${rootme}/texinfo/makeinfo/makeinfo ; \
  86. !     else echo makeinfo ; fi`
  87.   
  88.   # This just becomes part of the MAKEINFO definition passed down to
  89.   # sub-makes.  It lets flags be given on the command line while still
  90.   # using the makeinfo from the object tree.
  91.   MAKEINFOFLAGS =
  92.   
  93. ! EXPECT = `if [ -f $${rootme}/expect/expect ] ; \
  94. !     then echo $${rootme}/expect/expect ; \
  95. !     else echo expect ; fi`
  96. ! RUNTEST = `if [ -f $${srcroot}/dejagnu/runtest ] ; \
  97. !     then echo $${srcroot}/dejagnu/runtest ; \
  98. !     else echo runtest ; fi`
  99.   
  100.   
  101.   # libraries that may need to be augmented on a system-by-system basis
  102. --- 71,90 ----
  103.   GZIPPROG = gzip
  104.   
  105.   BISON = bison -y
  106. ! LEX = flex
  107. ! M4 = m4
  108. ! MAKEINFO = makeinfo
  109.   
  110.   # This just becomes part of the MAKEINFO definition passed down to
  111.   # sub-makes.  It lets flags be given on the command line while still
  112.   # using the makeinfo from the object tree.
  113.   MAKEINFOFLAGS =
  114.   
  115. ! EXPECT = expect
  116. ! RUNTEST = runtest
  117.   
  118.   
  119.   # libraries that may need to be augmented on a system-by-system basis
  120. ***************
  121. *** 115,198 ****
  122.       $(INSTALL_X11_MODULES) \
  123.       install-gcc
  124.   
  125. ! CC_FOR_TARGET = ` \
  126. !   if [ -f $${rootme}/gcc/Makefile ] ; then \
  127. !     echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/; \
  128. !   else \
  129. !     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  130. !       echo $(CC); \
  131. !     else \
  132. !       t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
  133. !     fi; \
  134. !   fi`
  135. ! CXX_FOR_TARGET = ` \
  136. !   if [ -f $${rootme}/gcc/Makefile ] ; then \
  137. !     echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/; \
  138. !   else \
  139. !     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  140. !       echo $(CXX); \
  141. !     else \
  142. !       t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
  143. !     fi; \
  144. !   fi`
  145. ! AS_FOR_TARGET = ` \
  146. !   if [ -f $${rootme}/gas/Makefile ] ; then \
  147. !     echo $${rootme}/gas/as.new ; \
  148. !   else \
  149. !     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  150. !       echo $(AS); \
  151. !     else \
  152. !        t='$(program_transform_name)'; echo as | sed -e '' $$t ; \
  153. !     fi; \
  154. !   fi`
  155. ! AR_FOR_TARGET = ` \
  156. !   if [ -f $${rootme}/binutils/ar ] ; then \
  157. !     echo $${rootme}/binutils/ar ; \
  158. !   else \
  159. !     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  160. !       echo $(AR); \
  161. !     else \
  162. !        t='$(program_transform_name)'; echo ar | sed -e '' $$t ; \
  163. !     fi; \
  164. !   fi`
  165. ! RANLIB_FOR_TARGET = ` \
  166. !   if [ -f $${rootme}/binutils/ranlib ] ; then \
  167. !     echo $${rootme}/binutils/ranlib ; \
  168. !   else \
  169. !     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  170. !       echo $(RANLIB); \
  171. !     else \
  172. !        t='$(program_transform_name)'; echo ranlib | sed -e '' $$t ; \
  173. !     fi; \
  174. !   fi`
  175. ! NM_FOR_TARGET = ` \
  176. !   if [ -f $${rootme}/binutils/Makefile ] ; then \
  177. !     echo $${rootme}/binutils/nm ; \
  178. !   else \
  179. !     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  180. !       echo $(NM); \
  181. !     else \
  182. !        t='$(program_transform_name)'; echo nm | sed -e '' $$t ; \
  183. !     fi; \
  184. !   fi`
  185.   
  186.   # FIXME: This is badly named.
  187. ! XTRAFLAGS = ` \
  188. !   if [ -f $${rootme}/gcc/Makefile ] ; then \
  189. !     if [ -f $${rootme}/newlib/Makefile ] ; then \
  190. !       echo -I$${rootme}/newlib/targ-include -I$${srcroot}/newlib/libc/include -I$${rootme}/gcc/include -nostdinc ; \
  191. !     else \
  192. !       echo -I$${rootme}/gcc/include ; \
  193. !     fi ; \
  194. !   else \
  195. !      echo ; \
  196. !   fi`
  197.   
  198.   #### host and target specific makefile fragments come in here.
  199.   ###
  200. --- 105,119 ----
  201.       $(INSTALL_X11_MODULES) \
  202.       install-gcc
  203.   
  204. ! CC_FOR_TARGET = gcc
  205. ! CXX_FOR_TARGET = gcc
  206. ! AS_FOR_TARGET = as
  207. ! AR_FOR_TARGET = ar
  208. ! RANLIB_FOR_TARGET = ranlib
  209. ! NM_FOR_TARGET = nm
  210.   
  211.   # FIXME: This is badly named.
  212. ! XTRAFLAGS = 
  213.   
  214.   #### host and target specific makefile fragments come in here.
  215.   ###
  216. diff -rc libg++-2.5.2-fsf/config.guess libg++-2.5.2-amiga/config.guess
  217. *** libg++-2.5.2-fsf/config.guess    Tue Nov 16 20:43:37 1993
  218. --- libg++-2.5.2-amiga/config.guess    Thu Dec 16 22:07:07 1993
  219. ***************
  220. *** 1,4 ****
  221. --- 1,5 ----
  222.   #!/bin/sh
  223. + echo "m68k-cbm-amigados" ; exit 0    #HACK (fnf)
  224.   # This script attempts to guess a canonical system name.
  225.   #   Copyright (C) 1992, 1993 Free Software Foundation, Inc.
  226.   #
  227. ***************
  228. *** 270,280 ****
  229.     printf("i386-sequent-ptx\n"); exit(0);
  230.   #endif
  231.   
  232.     exit (1);
  233.   }
  234.   EOF
  235.   
  236. ! ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
  237.   rm -f dummy.c dummy
  238.   
  239.   # Apollos put the system type in the environment.
  240. --- 271,285 ----
  241.     printf("i386-sequent-ptx\n"); exit(0);
  242.   #endif
  243.   
  244. + #if defined(__amigados__)
  245. +   printf("m68k-cbm-amigados\n"); exit(0);
  246. + #endif
  247.     exit (1);
  248.   }
  249.   EOF
  250.   
  251. ! ${CC-gcc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
  252.   rm -f dummy.c dummy
  253.   
  254.   # Apollos put the system type in the environment.
  255. diff -rc libg++-2.5.2-fsf/configure libg++-2.5.2-amiga/configure
  256. *** libg++-2.5.2-fsf/configure    Mon Oct  4 23:19:19 1993
  257. --- libg++-2.5.2-amiga/configure    Fri Dec 17 12:37:37 1993
  258. ***************
  259. *** 33,43 ****
  260.   #       config.status is removed.
  261.   #
  262.   
  263.   export PATH || (echo "OOPS, this isn't sh.  Desperation time.  I will feed myself to sh."; sh $0 $argv; kill $$)
  264.   
  265.   remove=rm
  266. ! hard_link=ln
  267. ! symbolic_link='ln -s'
  268.   
  269.   #for Test
  270.   #remove="echo rm"
  271. --- 33,46 ----
  272.   #       config.status is removed.
  273.   #
  274.   
  275. + # In places where the argument to echo may start with a '-', use /bin/echo since
  276. + # the AmigaDOS pdksh builtin echo botches this case.
  277.   export PATH || (echo "OOPS, this isn't sh.  Desperation time.  I will feed myself to sh."; sh $0 $argv; kill $$)
  278.   
  279.   remove=rm
  280. ! hard_link=cp
  281. ! symbolic_link=cp
  282.   
  283.   #for Test
  284.   #remove="echo rm"
  285. ***************
  286. *** 66,72 ****
  287.   next_tmpdir=
  288.   norecursion=
  289.   package_makefile_frag=
  290. ! prefix=/usr/local
  291.   progname=
  292.   program_prefix=
  293.   program_prefixoption=
  294. --- 69,75 ----
  295.   next_tmpdir=
  296.   norecursion=
  297.   package_makefile_frag=
  298. ! prefix=/usr
  299.   progname=
  300.   program_prefix=
  301.   program_prefixoption=
  302. ***************
  303. *** 103,111 ****
  304.   ## path.  Since PATH might include "." we also add `pwd` to the end of PATH.
  305.   ##
  306.   
  307. ! progname=$0
  308.   # if PWD already has a value, it is probably wrong.
  309. ! if [ -n "$PWD" ]; then PWD=`pwd`; fi
  310.   
  311.   case "${progname}" in
  312.   /*) ;;
  313. --- 106,114 ----
  314.   ## path.  Since PATH might include "." we also add `pwd` to the end of PATH.
  315.   ##
  316.   
  317. ! progname=`echo $0 | sed 's:/$::'`
  318.   # if PWD already has a value, it is probably wrong.
  319. ! #if [ -n "$PWD" ]; then PWD=`pwd`; fi
  320.   
  321.   case "${progname}" in
  322.   /*) ;;
  323. ***************
  324. *** 125,131 ****
  325.                   next_exec_prefix=
  326.           elif [ -n "${next_site}" ] ; then site=${arg} ; site_option=-site=${site} ; next_site=
  327.           # remove any possible trailing slash from srcdir.  See note below.
  328. !         elif [ -n "${next_srcdir}" ] ; then srcdir=`echo ${arg} | sed -e 's:/$::'` ; next_srcdir=
  329.           elif [ -n "${next_program_prefix}" ] ; then
  330.                   program_prefix=${arg}
  331.                   program_prefixoption="-program_prefix=${program_prefix}"
  332. --- 128,134 ----
  333.                   next_exec_prefix=
  334.           elif [ -n "${next_site}" ] ; then site=${arg} ; site_option=-site=${site} ; next_site=
  335.           # remove any possible trailing slash from srcdir.  See note below.
  336. !         elif [ -n "${next_srcdir}" ] ; then srcdir=`/bin/echo ${arg} | sed -e 's:/$::'` ; next_srcdir=
  337.           elif [ -n "${next_program_prefix}" ] ; then
  338.                   program_prefix=${arg}
  339.                   program_prefixoption="-program_prefix=${program_prefix}"
  340. ***************
  341. *** 137,143 ****
  342.           elif [ -n "${next_program_transform_name}" ] ; then
  343.                   # Double any backslashes or dollar signs in the argument
  344.           if [ -n "${arg}" ] ; then
  345. !             program_transform_name="${program_transform_name} -e `echo ${arg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`"
  346.           fi
  347.                   program_transform_nameoption="${program_transform_nameoption} --program-transform-name='${arg}'"
  348.                   next_program_transform_name=
  349. --- 140,146 ----
  350.           elif [ -n "${next_program_transform_name}" ] ; then
  351.                   # Double any backslashes or dollar signs in the argument
  352.           if [ -n "${arg}" ] ; then
  353. !             program_transform_name="${program_transform_name} -e `/bin/echo ${arg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`"
  354.           fi
  355.                   program_transform_nameoption="${program_transform_nameoption} --program-transform-name='${arg}'"
  356.                   next_program_transform_name=
  357. ***************
  358. *** 171,177 ****
  359.           else
  360.                   case ${arg} in
  361.                   -exec_prefix=* | --exec_prefix=* | --exec_prefi=* | --exec_pref=* | --exec_pre=* | --exec_pr=* | --exec_p=* | --exec_=* | --exec=* | --exe=* | --ex=* | --e=* | -exec-prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* )
  362. !                         exec_prefix=`echo ${arg} | sed 's/^[-a-z_]*=//'`
  363.                           exec_prefixoption=${arg}
  364.                           ;;
  365.                   -exec_prefix | --exec_prefix | --exec_prefi | --exec_pref | --exec_pre | --exec_pr | --exec_p | --exec_ | --exec | --exe | --ex | --e | -exec-prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec-)
  366. --- 174,180 ----
  367.           else
  368.                   case ${arg} in
  369.                   -exec_prefix=* | --exec_prefix=* | --exec_prefi=* | --exec_pref=* | --exec_pre=* | --exec_pr=* | --exec_p=* | --exec_=* | --exec=* | --exe=* | --ex=* | --e=* | -exec-prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* )
  370. !                         exec_prefix=`/bin/echo ${arg} | sed 's/^[-a-z_]*=//'`
  371.                           exec_prefixoption=${arg}
  372.                           ;;
  373.                   -exec_prefix | --exec_prefix | --exec_prefi | --exec_pref | --exec_pre | --exec_pr | --exec_p | --exec_ | --exec | --exe | --ex | --e | -exec-prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec-)
  374. ***************
  375. *** 186,192 ****
  376.                   -host=* | --host=* | --hos=* | --ho=*)
  377.                           case "${host_alias}" in
  378.                           "")
  379. !                                 host_alias="`echo ${arg} | sed 's/^[-a-z]*=//'`"
  380.                                   ;;
  381.                           *)
  382.                                   echo '***' Can only configure for one host at a time.  1>&2
  383. --- 189,195 ----
  384.                   -host=* | --host=* | --hos=* | --ho=*)
  385.                           case "${host_alias}" in
  386.                           "")
  387. !                                 host_alias="`/bin/echo ${arg} | sed 's/^[-a-z]*=//'`"
  388.                                   ;;
  389.                           *)
  390.                                   echo '***' Can only configure for one host at a time.  1>&2
  391. ***************
  392. *** 212,218 ****
  393.                           norecursion=true
  394.                           ;;
  395.                   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=*)
  396. !                         prefix=`echo ${arg} | sed 's/^[-a-z]*=//'`
  397.                           prefixoption=${arg}
  398.                           ;;
  399.                   -prefix | --prefix | --prefi | --pref | --pre)
  400. --- 215,221 ----
  401.                           norecursion=true
  402.                           ;;
  403.                   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=*)
  404. !                         prefix=`/bin/echo ${arg} | sed 's/^[-a-z]*=//'`
  405.                           prefixoption=${arg}
  406.                           ;;
  407.                   -prefix | --prefix | --prefi | --pref | --pre)
  408. ***************
  409. *** 220,243 ****
  410.                           ;;
  411.                   -rm | --rm) removing=${arg} ;;
  412.                   -program_prefix=* | --program_prefix=* | --program_prefi=* | --program_pref=* | --program_pre=* | --program_pr=* | --program_p=* | -program-prefix=* | --program-prefix=* | --program-prefi=* | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  413. !                         program_prefix=`echo ${arg} | sed 's/^[-a-z_]*=//'`
  414.                           program_prefixoption=${arg}
  415.                           ;;
  416.                   -program_prefix | --program_prefix | --program_prefi | --program_pref | --program_pre | --program_pr | --program_p | -program-prefix | --program-prefix | --program-prefi | --program-pref | --program-pre | --program-pr | --program-p)
  417.                           next_program_prefix=yes
  418.                           ;;
  419.                   -program_suffix=* | --program_suffix=* | --program_suffi=* | --program_suff=* | --program_suf=* | --program_su=* | --program_s=* | -program-suffix=* | --program-suffix=* | --program-suffi=* | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  420. !                         program_suffix=`echo ${arg} | sed 's/^[-a-z_]*=//'`
  421.                           program_suffixoption=${arg}
  422.                           ;;
  423.                   -program_suffix | --program_suffix | --program_suffi | --program_suff | --program_suf | --program_su | --program_s |-program-suffix | --program-suffix | --program-suffi | --program-suff | --program-suf | --program-su | --program-s)
  424.                           next_program_suffix=yes
  425.                           ;;
  426.                   -program_transform_name=* | --program_transform_name=* | --program_transform_nam=* | --program_transform_na=* | --program_transform_n=* | --program_transform_=* | --program_transform=* | --program_transfor=* | --program_transfo=* | --program_transf=* | --program_trans=* | --program_tran=* | --program_tra=* | --program_tr=* | --program_t=* | -program-transform-name=* | --program-transform-name=* | --program-transform-nam=* | --program-transform-na=* | --program-transform-n=* | --program-transform-=* | --program-transform=* | --program-transfor=* | --program-transfo=* | --program-transf=* | --program-trans=* | --program-tran=* | --program-tra=* | --program-tr=* | --program-t=*)
  427. !             arg=`echo ${arg} | sed -e 's/^[-a-z_]*=//'`
  428.                           # Double any \ or $ in the argument
  429.               if [ -n "${arg}" ] ; then
  430. !                             program_transform_name="${program_transform_name} -e `echo ${arg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`"
  431.               fi
  432.                           program_transform_nameoption="${program_transform_nameoption} --program-transform-name='${arg}'"
  433.                           ;;
  434. --- 223,246 ----
  435.                           ;;
  436.                   -rm | --rm) removing=${arg} ;;
  437.                   -program_prefix=* | --program_prefix=* | --program_prefi=* | --program_pref=* | --program_pre=* | --program_pr=* | --program_p=* | -program-prefix=* | --program-prefix=* | --program-prefi=* | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  438. !                         program_prefix=`/bin/echo ${arg} | sed 's/^[-a-z_]*=//'`
  439.                           program_prefixoption=${arg}
  440.                           ;;
  441.                   -program_prefix | --program_prefix | --program_prefi | --program_pref | --program_pre | --program_pr | --program_p | -program-prefix | --program-prefix | --program-prefi | --program-pref | --program-pre | --program-pr | --program-p)
  442.                           next_program_prefix=yes
  443.                           ;;
  444.                   -program_suffix=* | --program_suffix=* | --program_suffi=* | --program_suff=* | --program_suf=* | --program_su=* | --program_s=* | -program-suffix=* | --program-suffix=* | --program-suffi=* | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  445. !                         program_suffix=`/bin/echo ${arg} | sed 's/^[-a-z_]*=//'`
  446.                           program_suffixoption=${arg}
  447.                           ;;
  448.                   -program_suffix | --program_suffix | --program_suffi | --program_suff | --program_suf | --program_su | --program_s |-program-suffix | --program-suffix | --program-suffi | --program-suff | --program-suf | --program-su | --program-s)
  449.                           next_program_suffix=yes
  450.                           ;;
  451.                   -program_transform_name=* | --program_transform_name=* | --program_transform_nam=* | --program_transform_na=* | --program_transform_n=* | --program_transform_=* | --program_transform=* | --program_transfor=* | --program_transfo=* | --program_transf=* | --program_trans=* | --program_tran=* | --program_tra=* | --program_tr=* | --program_t=* | -program-transform-name=* | --program-transform-name=* | --program-transform-nam=* | --program-transform-na=* | --program-transform-n=* | --program-transform-=* | --program-transform=* | --program-transfor=* | --program-transfo=* | --program-transf=* | --program-trans=* | --program-tran=* | --program-tra=* | --program-tr=* | --program-t=*)
  452. !             arg=`/bin/echo ${arg} | sed -e 's/^[-a-z_]*=//'`
  453.                           # Double any \ or $ in the argument
  454.               if [ -n "${arg}" ] ; then
  455. !                             program_transform_name="${program_transform_name} -e `/bin/echo ${arg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`"
  456.               fi
  457.                           program_transform_nameoption="${program_transform_nameoption} --program-transform-name='${arg}'"
  458.                           ;;
  459. ***************
  460. *** 246,252 ****
  461.                           ;;
  462.                   -site=* | --site=* | --sit=* | --si=*)
  463.                           site_option=${arg}
  464. !                         site=`echo ${arg} | sed 's/^[-a-z]*=//'`
  465.                           ;;
  466.                   -site | --site | --sit)
  467.                           next_site=yes
  468. --- 249,255 ----
  469.                           ;;
  470.                   -site=* | --site=* | --sit=* | --si=*)
  471.                           site_option=${arg}
  472. !                         site=`/bin/echo ${arg} | sed 's/^[-a-z]*=//'`
  473.                           ;;
  474.                   -site | --site | --sit)
  475.                           next_site=yes
  476. ***************
  477. *** 256,269 ****
  478.                   # it.  Ordinarily this is ok, but emacs takes double slash to
  479.                   # mean "forget the first part".
  480.                   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  481. !                         srcdir=`echo ${arg} | sed 's/^[-a-z]*=//' | sed -e 's:/$::'`
  482.                           ;;
  483.                   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  484.                           next_srcdir=yes
  485.                           ;;
  486.                   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=*)
  487.                           case "${target_alias}" in
  488. !                         "") target_alias="`echo ${arg} | sed 's/^[-a-z]*=//'`" ;;
  489.                           *)
  490.                                   echo '***' Can only configure for one target at a time.  1>&2
  491.                                   fatal=yes
  492. --- 259,272 ----
  493.                   # it.  Ordinarily this is ok, but emacs takes double slash to
  494.                   # mean "forget the first part".
  495.                   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  496. !                         srcdir=`/bin/echo ${arg} | sed 's/^[-a-z]*=//' | sed -e 's:/$::'`
  497.                           ;;
  498.                   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  499.                           next_srcdir=yes
  500.                           ;;
  501.                   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=*)
  502.                           case "${target_alias}" in
  503. !                         "") target_alias="`/bin/echo ${arg} | sed 's/^[-a-z]*=//'`" ;;
  504.                           *)
  505.                                   echo '***' Can only configure for one target at a time.  1>&2
  506.                                   fatal=yes
  507. ***************
  508. *** 275,281 ****
  509.                           ;;
  510.                   -tmpdir=* | --tmpdir=* | --tmpdi=* | --tmpd=* | --tmp=* | --tm=*)
  511.                           tmpdiroption=${arg}
  512. !                         TMPDIR=`echo ${arg} | sed 's/^[-a-z]*=//'`
  513.                           ;;
  514.                   -tmpdir | --tmpdir | --tmpdi | --tmpd | --tmp | --tm)
  515.                           next_tmpdir=yes
  516. --- 278,284 ----
  517.                           ;;
  518.                   -tmpdir=* | --tmpdir=* | --tmpdi=* | --tmpd=* | --tmp=* | --tm=*)
  519.                           tmpdiroption=${arg}
  520. !                         TMPDIR=`/bin/echo ${arg} | sed 's/^[-a-z]*=//'`
  521.                           ;;
  522.                   -tmpdir | --tmpdir | --tmpdi | --tmpd | --tmp | --tm)
  523.                           next_tmpdir=yes
  524. ***************
  525. *** 289,306 ****
  526.                           exit 0
  527.                           ;;
  528.                   -with*=* | --with*=*)
  529. !                         withopt=`echo ${arg} | sed 's:^-*\(with[^=]*\)=.*$:\1:;s/-/_/g'`
  530. !                         withval=`echo ${arg} | sed 's:^-*with[^=]*=\(.*\)$:\1:'`
  531.                           eval $withopt="$withval"
  532.                           withoptions="$withoptions $arg"
  533.                           ;;
  534.                   -without* | --without*)
  535. !                         withopt=`echo ${arg} | sed 's:^-*without:with:;s/-/_/g'`        
  536.                           eval $withopt=no
  537.                           withoutoptions="$withoutoptions $arg"
  538.                           ;;
  539.                   -with* | --with*)
  540. !                         withopt=`echo ${arg} | sed 's:^-*with:with:;s/-/_/g'`
  541.                           eval $withopt=yes
  542.                           withoptions="$withoptions $arg"
  543.                           ;;
  544. --- 292,309 ----
  545.                           exit 0
  546.                           ;;
  547.                   -with*=* | --with*=*)
  548. !                         withopt=`/bin/echo ${arg} | sed 's:^-*\(with[^=]*\)=.*$:\1:;s/-/_/g'`
  549. !                         withval=`/bin/echo ${arg} | sed 's:^-*with[^=]*=\(.*\)$:\1:'`
  550.                           eval $withopt="$withval"
  551.                           withoptions="$withoptions $arg"
  552.                           ;;
  553.                   -without* | --without*)
  554. !                         withopt=`/bin/echo ${arg} | sed 's:^-*without:with:;s/-/_/g'`        
  555.                           eval $withopt=no
  556.                           withoutoptions="$withoutoptions $arg"
  557.                           ;;
  558.                   -with* | --with*)
  559. !                         withopt=`/bin/echo ${arg} | sed 's:^-*with:with:;s/-/_/g'`
  560.                           eval $withopt=yes
  561.                           withoptions="$withoptions $arg"
  562.                           ;;
  563. ***************
  564. *** 799,805 ****
  565.           # make sure that some sort of reasonable default exists for these 
  566.           # two variables
  567.           CXX=${CXX-"g++ -O"}
  568. !         CC=${CC-cc}
  569.   
  570.               # reset prefix, exec_prefix, srcdir, SUBDIRS, NONSUBDIRS,
  571.               # remove any form feeds.
  572. --- 802,808 ----
  573.           # make sure that some sort of reasonable default exists for these 
  574.           # two variables
  575.           CXX=${CXX-"g++ -O"}
  576. !         CC=${CC-gcc}
  577.   
  578.               # reset prefix, exec_prefix, srcdir, SUBDIRS, NONSUBDIRS,
  579.               # remove any form feeds.
  580. diff -rc libg++-2.5.2-fsf/libg++/configure.in libg++-2.5.2-amiga/libg++/configure.in
  581. *** libg++-2.5.2-fsf/libg++/configure.in    Fri Nov  5 01:08:19 1993
  582. --- libg++-2.5.2-amiga/libg++/configure.in    Fri Dec 17 00:55:16 1993
  583. ***************
  584. *** 16,24 ****
  585.       echo "# Warning this fragment is automatically generated" >temp.mt
  586.       rootme=`pwd`
  587.       export rootme
  588. !     CC=${CC-`if [ -f ${rootme}/../gcc/xgcc ] ; \
  589. !             then echo ${rootme}/../gcc/xgcc -B${rootme}/../gcc/ ; \
  590. !             else echo gcc ; fi`}
  591.       CONFIG_NM=${CONFIG_NM-nm}
  592.   
  593.       # The Bourne shell writes "command not found" to /dev/tty, so if we get
  594. --- 16,25 ----
  595.       echo "# Warning this fragment is automatically generated" >temp.mt
  596.       rootme=`pwd`
  597.       export rootme
  598. !     #CC=${CC-`if [ -f ${rootme}/../gcc/xgcc ] ; \
  599. !         #    then echo ${rootme}/../gcc/xgcc -B${rootme}/../gcc/ ; \
  600. !         #    else echo gcc ; fi`}
  601. !     CC=gcc    #HACK (fnf)
  602.       CONFIG_NM=${CONFIG_NM-nm}
  603.   
  604.       # The Bourne shell writes "command not found" to /dev/tty, so if we get
  605. ***************
  606. *** 48,54 ****
  607.       echo "int foo;" >temp.c
  608.       echo "# Use -nostdinc++ flag if your version of gcc understands it."\
  609.           >>temp.mt
  610. !     if [ "`${CC} -c -nostdinc++ temp.c 2>&1`" = "" ]; then
  611.           echo 'NOSTDINC = -nostdinc++' >>temp.mt
  612.       else
  613.           echo 'NOSTDINC = # -nostdinc++' >>temp.mt
  614. --- 49,55 ----
  615.       echo "int foo;" >temp.c
  616.       echo "# Use -nostdinc++ flag if your version of gcc understands it."\
  617.           >>temp.mt
  618. !     if true ; then    #HACK (fnf)
  619.           echo 'NOSTDINC = -nostdinc++' >>temp.mt
  620.       else
  621.           echo 'NOSTDINC = # -nostdinc++' >>temp.mt
  622. diff -rc libg++-2.5.2-fsf/libg++/etc/ADT-examples/Patmain.cc libg++-2.5.2-amiga/libg++/etc/ADT-examples/Patmain.cc
  623. *** libg++-2.5.2-fsf/libg++/etc/ADT-examples/Patmain.cc    Tue Nov  2 02:00:30 1993
  624. --- libg++-2.5.2-amiga/libg++/etc/ADT-examples/Patmain.cc    Fri Dec 17 09:16:29 1993
  625. ***************
  626. *** 2,8 ****
  627.   
  628.   #include <stream.h>
  629.   #include <stdio.h>
  630. ! #include <string.h>
  631.   #include "Patricia.h"
  632.   #include <builtin.h>
  633.   
  634. --- 2,8 ----
  635.   
  636.   #include <stream.h>
  637.   #include <stdio.h>
  638. ! #include </usr/include/string.h>    /* Avoid getting String.h */
  639.   #include "Patricia.h"
  640.   #include <builtin.h>
  641.   
  642. diff -rc libg++-2.5.2-fsf/libg++/etc/benchmarks/dhrystone.cc libg++-2.5.2-amiga/libg++/etc/benchmarks/dhrystone.cc
  643. *** libg++-2.5.2-fsf/libg++/etc/benchmarks/dhrystone.cc    Sun Nov 21 09:33:12 1993
  644. --- libg++-2.5.2-amiga/libg++/etc/benchmarks/dhrystone.cc    Fri Dec 17 09:18:20 1993
  645. ***************
  646. *** 331,337 ****
  647.   
  648.   
  649.   #ifdef    NOSTRUCTASSIGN
  650. ! #include <string.h>
  651.   #define    structassign(d, s)    memcpy(&(d), &(s), sizeof(d))
  652.   #else
  653.   #define    structassign(d, s)    d = s
  654. --- 331,337 ----
  655.   
  656.   
  657.   #ifdef    NOSTRUCTASSIGN
  658. ! #include </usr/include/string.h>    /* Avoid getting String.h */
  659.   #define    structassign(d, s)    memcpy(&(d), &(s), sizeof(d))
  660.   #else
  661.   #define    structassign(d, s)    d = s
  662. diff -rc libg++-2.5.2-fsf/libg++/etc/trie-gen/test.cc libg++-2.5.2-amiga/libg++/etc/trie-gen/test.cc
  663. *** libg++-2.5.2-fsf/libg++/etc/trie-gen/test.cc    Mon Apr 26 03:25:36 1993
  664. --- libg++-2.5.2-amiga/libg++/etc/trie-gen/test.cc    Fri Dec 17 09:19:03 1993
  665. ***************
  666. *** 5,11 ****
  667.   */ 
  668.     
  669.   #include <stdio.h>
  670. ! #include <string.h>
  671.   
  672.   #define MAX_LEN 200
  673.   
  674. --- 5,11 ----
  675.   */ 
  676.     
  677.   #include <stdio.h>
  678. ! #include </usr/include/string.h>    /* Avoid getting String.h */
  679.   
  680.   #define MAX_LEN 200
  681.   
  682. diff -rc libg++-2.5.2-fsf/libg++/etc/trie-gen/trie.cc libg++-2.5.2-amiga/libg++/etc/trie-gen/trie.cc
  683. *** libg++-2.5.2-fsf/libg++/etc/trie-gen/trie.cc    Sat Jun  5 01:44:36 1993
  684. --- libg++-2.5.2-amiga/libg++/etc/trie-gen/trie.cc    Fri Dec 17 09:19:30 1993
  685. ***************
  686. *** 67,73 ****
  687.       {
  688.         sort ();
  689.   
  690. !       fputs ("#include <string.h>\n#define MAX_ASCII 128\n\nstatic", stdout);
  691.         if (option[CONST])
  692.           fputs (" const", stdout);
  693.         fputs (" char *const word_list[] = \n{\n  \"\",\n", stdout);
  694. --- 67,73 ----
  695.       {
  696.         sort ();
  697.   
  698. !       fputs ("#include </usr/include/string.h>\n#define MAX_ASCII 128\n\nstatic", stdout);
  699.         if (option[CONST])
  700.           fputs (" const", stdout);
  701.         fputs (" char *const word_list[] = \n{\n  \"\",\n", stdout);
  702. diff -rc libg++-2.5.2-fsf/libg++/old-stream/Filebuf.cc libg++-2.5.2-amiga/libg++/old-stream/Filebuf.cc
  703. *** libg++-2.5.2-fsf/libg++/old-stream/Filebuf.cc    Sun Dec 19 10:42:41 1993
  704. --- libg++-2.5.2-amiga/libg++/old-stream/Filebuf.cc    Sun Jan  5 03:00:33 1992
  705. ***************
  706. *** 2,326 ****
  707.   Copyright (C) 1990 Free Software Foundation
  708.       written by Doug Lea (dl@rocky.oswego.edu)
  709.   
  710. ! This file is part of the GNU C++ Library.  This library is free
  711. ! software; you can redistribute it and/or modify it under the terms of
  712. ! the GNU Library General Public License as published by the Free
  713. ! Software Foundation; either version 2 of the License, or (at your
  714. ! option) any later version.  This library is distributed in the hope
  715. ! that it will be useful, but WITHOUT ANY WARRANTY; without even the
  716. ! implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  717. ! PURPOSE.  See the GNU Library General Public License for more details.
  718. ! You should have received a copy of the GNU Library General Public
  719. ! License along with this library; if not, write to the Free Software
  720. ! Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  721.   */
  722.   
  723.   #ifdef __GNUG__
  724.   #pragma implementation
  725.   #endif
  726. ! #include <Filebuf.h>
  727.   
  728.   #include <std.h>
  729.   #include <sys/file.h>           // needed to determine values of O_RDONLY...
  730.   
  731. ! #ifndef _bufsiz
  732. ! #ifdef masscomp
  733. ! #ifdef _UCB
  734. ! #define _bufsiz(p) 4096
  735. ! #endif
  736. ! #else
  737. ! #define _bufsiz(p) ((p)->_bufsiz)
  738. ! #endif
  739. ! #endif
  740.   
  741. ! #ifdef VMS
  742. ! #include <assert.h>
  743. ! #define FPOINT (*(Fp->fp))
  744. ! #undef _bufsiz
  745. ! #define _bufsiz(p) BUFSIZ    // we do not have this available
  746. ! #else
  747. ! #define FPOINT Fp->fp 
  748. ! #endif
  749.   
  750. ! void Filebuf::init_streambuf_ptrs()
  751. ! {
  752. !   if (Fp->fp == 0 || FPOINT->_cnt == 0)
  753. !   {
  754. !     base = gptr = pptr = eptr = 0; // let first over/under flow deal with it
  755. !   }
  756. !   else
  757. !   {
  758. ! #ifdef VMS
  759. !     base = new char[BUFSIZ];
  760. !     alloc = 1;
  761. ! #else
  762. !     base = FPOINT->_base;
  763. ! #endif
  764. !     eptr = base - 1 + _bufsiz(Fp->fp);
  765. !     pptr = gptr = base;
  766. !   }
  767. ! }
  768.   
  769. ! int Filebuf::is_open()
  770.   {
  771. !   return (Fp != 0 && Fp->is_open());
  772.   }
  773.   
  774. ! streambuf* Filebuf::open(const char* name, io_mode m, access_mode a)
  775.   {
  776. !   if (Fp == 0)
  777. !     Fp = new File(name, m, a);
  778. !   else
  779. !     Fp->open(name, m, a);
  780. ! #ifndef VMS
  781. !   if (base != 0) Fp->setbuf(eptr-base+1, base);
  782. ! #endif
  783. !   init_streambuf_ptrs();
  784. !   return this;
  785. ! }
  786. ! streambuf* Filebuf::open(const char* name, const char* m)
  787. ! {
  788. !   if (Fp == 0)
  789. !     Fp = new File(name, m);
  790. !   else
  791. !     Fp->open(name, m);
  792. ! #ifndef VMS
  793. !   if (base != 0) Fp->setbuf(eptr-base+1, base);
  794. ! #endif
  795. !   init_streambuf_ptrs();
  796. !   return this;
  797.   }
  798.   
  799. ! streambuf*  Filebuf::open(const char* name, open_mode m)
  800.   {
  801. !   switch(m)
  802.     {
  803. !   case input: return open(name, "r"); 
  804. !   case output: return open(name, "w");
  805. !   case append: return open(name, "a");
  806.     }
  807. - }
  808. - streambuf* Filebuf::open(int filedesc, io_mode m)
  809. - {
  810. -   if (Fp == 0)
  811. -     Fp = new File(filedesc, m);
  812.     else
  813. !     Fp->open(filedesc, m);
  814. ! #ifndef VMS
  815. !   if (base != 0) Fp->setbuf(eptr-base+1, base);
  816. ! #endif
  817. !   init_streambuf_ptrs();
  818. !   return this;
  819. ! }
  820. ! streambuf* Filebuf::open(FILE* fileptr)
  821. ! {
  822. !   if (Fp == 0)
  823. !     Fp = new File(fileptr);
  824. !   else
  825. !     Fp->open(fileptr);
  826. ! #ifndef VMS
  827. !   if (base != 0) Fp->setbuf(eptr-base+1, base);
  828. ! #endif
  829. !   init_streambuf_ptrs();
  830. !   return this;
  831.   }
  832.   
  833. - Filebuf::Filebuf() : streambuf(), Fp(0) {}
  834. - Filebuf::Filebuf(const char* filename, io_mode m, access_mode a)
  835. -      : streambuf()
  836. - {
  837. -   Fp = new File(filename, m, a);
  838. -   init_streambuf_ptrs();
  839. - }
  840.   
  841. ! Filebuf::Filebuf(const char* filename, const char* m)
  842. !      : streambuf()
  843.   {
  844. !   Fp = new File(filename, m);
  845. !   init_streambuf_ptrs();
  846.   }
  847.   
  848. ! Filebuf::Filebuf(int filedesc, io_mode m)
  849. !      : streambuf()
  850.   {
  851. !   Fp = new File(filedesc, m);
  852. !   init_streambuf_ptrs();
  853.   }
  854.   
  855. ! Filebuf::Filebuf(FILE* fileptr)
  856. !      : streambuf()
  857.   {
  858. !   Fp = new File(fileptr);
  859. !   init_streambuf_ptrs();
  860.   }
  861.   
  862. ! int Filebuf::close()
  863.   {
  864. !   int was = Fp->is_open();
  865. !   if (was) { overflow(); Fp->close(); }
  866. ! #ifdef VMS
  867. !   if (was) {
  868. !     if(alloc && (base != 0)) {delete base; base=0; alloc = 0;};
  869. !     gptr=0;};
  870. ! #endif
  871. !   return was;
  872.   }
  873.   
  874. ! Filebuf::~Filebuf()
  875.   {
  876. !   if (Fp != 0)
  877.     {
  878. !     close();
  879. !     delete Fp;
  880.     }
  881.   }
  882.   
  883. ! #ifdef VMS
  884. ! /*
  885. !     VMS implementation notes:
  886. !  The underflow routine works fine as long as there is no mixing of input and
  887. !  output for the same stream.  If this were to happen, then great confusion
  888. !  would occur, since we maintain a seperate buffer for the case of output.
  889. !  the stream classes do not allow this as they are currently written, so for
  890. !  now we are OK.  VMS does not handle buffered output in quite the same way
  891. !  that UNIX does, so a seperate buffer is allocated, and used by the program.
  892. !  when it comes time to flush it we call write(...) to empty it.  The flush
  893. !  function under VMS does not flush the buffer unless it is full, and whatsmore
  894. !  the _iobuf is not 14 bytes long as one might suspect from the structure def,
  895. !  but at *least* 66 bytes long.  Some of these hidden structure elements need
  896. !  to be set for the output to work properly, and it seemed to be poor
  897. !  programming practice to fool with them
  898. ! */
  899. ! #endif
  900. ! /*
  901. !   The underflow and overflow methods sync the streambuf with the _iobuf
  902. !   ptrs on the way in and out of the read. I believe that this is
  903. !   done in a portable way.
  904. ! */
  905. ! int Filebuf::underflow()
  906.   {
  907. !   int ch;
  908. !   if (Fp == 0) return EOF;
  909. !   if (gptr == 0) // stdio _iobuf ptrs not initialized until after 1st read
  910. !   {
  911. ! #ifdef VMS
  912. !     assert(alloc==0);
  913. ! #endif
  914. !     ch = Fp->fill();
  915. !     base = FPOINT->_base;
  916. !     eptr = base - 1 + _bufsiz(Fp->fp);
  917. !   }
  918. !   else
  919. !   {
  920. !     FPOINT->_ptr = gptr;
  921. !     FPOINT->_cnt = eptr - gptr + 1;
  922. !     ch = Fp->fill();
  923. !   }
  924. !   gptr = base;
  925. !   *gptr = ch;
  926. !   if (ch == EOF)
  927. !     pptr = base;
  928. !   else
  929. !     pptr = base + FPOINT->_cnt + 1;
  930. !   if (Fp->good())
  931. !     return ch;
  932. !   else
  933. !   {
  934. !     Fp->clear();
  935. !     return EOF;
  936. !   }
  937. ! }
  938.   
  939. ! int Filebuf::overflow(int ch)
  940. ! {
  941. !   if (Fp == 0) return EOF;
  942. !   if (FPOINT->_flag & _IONBF)  // handle unbuffered IO specially
  943. !   {
  944. !     if (pptr == 0) // 1st write
  945. !     {
  946. !       if (ch == EOF)
  947. !         return 0;
  948. !       else
  949. !       {
  950. !         Fp->flush(ch);
  951. !       }
  952. !     }
  953. !     else
  954. !     {
  955. !       if (ch == EOF)
  956. !         Fp->flush();        // Probably not necessary
  957. !       else
  958. !         Fp->flush(ch);
  959. !     }
  960. !   }
  961. !   else
  962. !   {
  963. !     if (pptr == 0) // 1st write
  964. !     {
  965. !       if (ch == EOF)
  966. !         return 0;
  967. !       else
  968. !       {
  969. !         Fp->flush(ch);
  970. ! #ifdef VMS
  971. !         base = new char[BUFSIZ];
  972. !         alloc = 1;
  973. ! #else
  974. !         base = FPOINT->_base;
  975. ! #endif
  976. !         eptr = base - 1 + _bufsiz(Fp->fp);
  977. !         gptr = base;
  978. !       }
  979. !     }
  980. !     else
  981. !     {
  982. !       if (ch != EOF) *pptr++ = ch;
  983. ! #ifdef VMS
  984. !       if(gptr==base) write(FPOINT->_file,base,pptr-base);
  985. ! #else
  986. !       FPOINT->_ptr = pptr;
  987. !       FPOINT->_cnt = eptr - pptr + 1;
  988. ! #endif
  989. !       Fp->flush();
  990. !     }
  991. ! #ifdef VMS
  992. !     pptr = base;
  993. ! #else
  994. !     pptr = FPOINT->_ptr;
  995. ! #endif
  996. !   }
  997. !   if (Fp->fail() || Fp->bad())
  998.     {
  999. !     Fp->clear(); // this allows recovery from ostream level
  1000. !     return EOF;
  1001.     }
  1002. !   else
  1003. !     return 0;
  1004. ! }
  1005. ! const char* Filebuf::name()
  1006. ! {
  1007. !   return Fp->name();
  1008. ! }
  1009. ! streambuf* Filebuf::setbuf(char* buf, int buflen, int preload)
  1010. ! {
  1011. !   if (preload != 0) return 0; // cannot preload, sorry
  1012. !   if (Fp != 0) Fp = new File;
  1013. !   Fp->setbuf(buflen, buf);
  1014. !   init_streambuf_ptrs();
  1015. !   return (Fp->good())? this : 0;
  1016.   }
  1017.   
  1018. ! void Filebuf::error()
  1019.   {
  1020. !   Fp->error();
  1021.   }
  1022. --- 2,137 ----
  1023.   Copyright (C) 1990 Free Software Foundation
  1024.       written by Doug Lea (dl@rocky.oswego.edu)
  1025.   
  1026. ! This file is part of GNU CC.
  1027. ! GNU CC is distributed in the hope that it will be useful,
  1028. ! but WITHOUT ANY WARRANTY.  No author or distributor
  1029. ! accepts responsibility to anyone for the consequences of using it
  1030. ! or for whether it serves any particular purpose or works at all,
  1031. ! unless he says so in writing.  Refer to the GNU CC General Public
  1032. ! License for full details.
  1033. ! Everyone is granted permission to copy, modify and redistribute
  1034. ! GNU CC, but only under the conditions described in the
  1035. ! GNU CC General Public License.   A copy of this license is
  1036. ! supposed to have been given to you along with GNU CC so you
  1037. ! can know your rights and responsibilities.  It should be in a
  1038. ! file named COPYING.  Among other things, the copyright notice
  1039. ! and this notice must be preserved on all copies.  
  1040.   */
  1041.   
  1042. + #if 1
  1043.   #ifdef __GNUG__
  1044.   #pragma implementation
  1045.   #endif
  1046. ! #endif
  1047.   
  1048.   #include <std.h>
  1049.   #include <sys/file.h>           // needed to determine values of O_RDONLY...
  1050. + #include <filebuf.h>
  1051.   
  1052. ! filebuf::filebuf() 
  1053. !      :streambuf(), fd(-1), opened(0) {}
  1054.   
  1055. ! filebuf::filebuf(int newfd) 
  1056. !      : streambuf(), fd(newfd), opened(1) {}
  1057.   
  1058. ! filebuf::filebuf(int newfd, char* buf, int buflen)
  1059. !      : streambuf(buf, buflen), fd(newfd), opened(1) {}
  1060.   
  1061. ! int filebuf::is_open()
  1062.   {
  1063. !   return opened;
  1064.   }
  1065.   
  1066. ! int filebuf::close()
  1067.   {
  1068. !   int was = opened;
  1069. !   if (was) ::close(fd);
  1070. !   opened = 0;
  1071. !   return was;
  1072.   }
  1073.   
  1074. ! streambuf* filebuf::open(const char* name, open_mode m)
  1075.   {
  1076. !   if (opened) return 0;
  1077. !   int mode = -1; // any illegal value
  1078. !   switch (m)
  1079. !   {
  1080. !   case input: mode = O_RDONLY; 
  1081. !               break;
  1082. !   case output: mode = O_WRONLY | O_CREAT | O_TRUNC;
  1083. !               break;
  1084. !   case append: mode = O_APPEND | O_CREAT | O_WRONLY;
  1085. !               break;
  1086. !   }
  1087. !   fd = ::open(name, mode, 0666);
  1088. !   if (opened = (fd >= 0))
  1089.     {
  1090. !     allocate();
  1091. !     return this;
  1092.     }
  1093.     else
  1094. !     return 0;
  1095.   }
  1096.   
  1097.   
  1098. ! streambuf*  filebuf::open(const char* filename, io_mode m, access_mode a)
  1099.   {
  1100. !   return 0;
  1101.   }
  1102.   
  1103. ! streambuf* filebuf::open(const char* filename, const char* m)
  1104.   {
  1105. !   return 0;
  1106.   }
  1107.   
  1108. ! streambuf*  filebuf::open(int  filedesc, io_mode m)
  1109.   {
  1110. !   return 0;
  1111.   }
  1112.   
  1113. ! streambuf*  filebuf::open(FILE* fileptr)
  1114.   {
  1115. !   return 0;
  1116.   }
  1117.   
  1118. ! int filebuf::underflow()
  1119.   {
  1120. !   if (!opened) return EOF;
  1121. !   if (base == 0) allocate();
  1122. !   int nwanted = eptr - base + 1;
  1123. !   int nread = ::read(fd, base, nwanted);
  1124. !   if (nread >= 0)
  1125.     {
  1126. !     gptr = base;
  1127. !     pptr = base + nread;
  1128.     }
  1129. +   return (nread <= 0)? EOF : int(*gptr);
  1130.   }
  1131.   
  1132. ! int filebuf::overflow(int ch)
  1133.   {
  1134. !   if (!opened) return EOF;
  1135. !   if (base == 0) allocate();
  1136. !   if (ch != EOF)             // overflow *must* be called before really full
  1137. !     *pptr++ = (char)(ch);
  1138.   
  1139. !   // loop, in case write can't handle full request
  1140. !   // From: Rene' Seindal <seindal@diku.dk>
  1141. !   int w, n, t;
  1142. !   for (w = t = 0, n = pptr - base; n > 0; n -= w, t += w) 
  1143.     {
  1144. !     if ((w = ::write(fd, base + t, n)) < 0)
  1145. !       break;
  1146.     }
  1147. !  
  1148. !   pptr = base;
  1149. !   return (n == 0 && w >= 0)? 0 : EOF;
  1150.   }
  1151.   
  1152. ! filebuf::~filebuf()
  1153.   {
  1154. !   close();
  1155.   }
  1156. diff -rc libg++-2.5.2-fsf/libg++/src/BitSet.cc libg++-2.5.2-amiga/libg++/src/BitSet.cc
  1157. *** libg++-2.5.2-fsf/libg++/src/BitSet.cc    Fri Apr 30 22:11:44 1993
  1158. --- libg++-2.5.2-amiga/libg++/src/BitSet.cc    Fri Dec 17 09:20:02 1993
  1159. ***************
  1160. *** 29,35 ****
  1161.   #include <AllocRing.h>
  1162.   #include <new.h>
  1163.   #include <builtin.h>
  1164. ! #include <string.h>
  1165.   #include <strstream.h>
  1166.   
  1167.   void BitSet::error(const char* msg) const
  1168. --- 29,35 ----
  1169.   #include <AllocRing.h>
  1170.   #include <new.h>
  1171.   #include <builtin.h>
  1172. ! #include </usr/include/string.h>    /* Avoid getting String.h */
  1173.   #include <strstream.h>
  1174.   
  1175.   void BitSet::error(const char* msg) const
  1176. diff -rc libg++-2.5.2-fsf/libg++/src/Makefile.in libg++-2.5.2-amiga/libg++/src/Makefile.in
  1177. *** libg++-2.5.2-fsf/libg++/src/Makefile.in    Wed Nov  3 21:04:30 1993
  1178. --- libg++-2.5.2-amiga/libg++/src/Makefile.in    Fri Dec 17 10:42:19 1993
  1179. ***************
  1180. *** 35,41 ****
  1181.    PlotFile.o  SFile.o
  1182.   
  1183.   # Comment out if you're getting regex from somewhere else.
  1184. ! REGEX_OBJ=regex.o
  1185.   OBJS =  AllocRing.o Obstack.o builtin.o \
  1186.    $(REGEX_OBJ) Regex.o String.o Intdouble.o Integer.o Rational.o \
  1187.    Complex.o  Random.o BitSet.o BitString.o LogNorm.o SmplHist.o SmplStat.o \
  1188. --- 35,41 ----
  1189.    PlotFile.o  SFile.o
  1190.   
  1191.   # Comment out if you're getting regex from somewhere else.
  1192. ! REGEX_OBJ=_regex.o
  1193.   OBJS =  AllocRing.o Obstack.o builtin.o \
  1194.    $(REGEX_OBJ) Regex.o String.o Intdouble.o Integer.o Rational.o \
  1195.    Complex.o  Random.o BitSet.o BitString.o LogNorm.o SmplHist.o SmplStat.o \
  1196. diff -rc libg++-2.5.2-fsf/libg++/src/Regex.cc libg++-2.5.2-amiga/libg++/src/Regex.cc
  1197. *** libg++-2.5.2-fsf/libg++/src/Regex.cc    Sun Dec 19 10:41:45 1993
  1198. --- libg++-2.5.2-amiga/libg++/src/Regex.cc    Fri Dec 17 10:25:43 1993
  1199. ***************
  1200. *** 28,34 ****
  1201.   #include <builtin.h>
  1202.   
  1203.   extern "C" {
  1204. ! #include <regex.h>
  1205.   }
  1206.   
  1207.   #include <Regex.h>
  1208. --- 28,34 ----
  1209.   #include <builtin.h>
  1210.   
  1211.   extern "C" {
  1212. ! #include <_regex.h>    /* Avoid name clash; Regex.h <==> regex.h */
  1213.   }
  1214.   
  1215.   #include <Regex.h>
  1216. diff -rc libg++-2.5.2-fsf/libg++/src/String.cc libg++-2.5.2-amiga/libg++/src/String.cc
  1217. *** libg++-2.5.2-fsf/libg++/src/String.cc    Sun Dec 19 10:41:56 1993
  1218. --- libg++-2.5.2-amiga/libg++/src/String.cc    Fri Dec 17 10:26:26 1993
  1219. ***************
  1220. *** 30,36 ****
  1221.   #include <builtin.h>
  1222.   
  1223.   // extern "C" {
  1224. ! #include <regex.h>
  1225.   // }
  1226.   
  1227.   void String::error(const char* msg) const
  1228. --- 30,36 ----
  1229.   #include <builtin.h>
  1230.   
  1231.   // extern "C" {
  1232. ! #include <_regex.h>    /* Avoid name clash; Regex.h <==> regex.h */
  1233.   // }
  1234.   
  1235.   void String::error(const char* msg) const
  1236. diff -rc libg++-2.5.2-fsf/libg++/src/_regex.cc libg++-2.5.2-amiga/libg++/src/_regex.cc
  1237. *** libg++-2.5.2-fsf/libg++/src/_regex.cc    Sun Dec 19 10:41:47 1993
  1238. --- libg++-2.5.2-amiga/libg++/src/_regex.cc    Fri Dec 17 10:26:58 1993
  1239. ***************
  1240. *** 54,60 ****
  1241.   #else  /* not emacs */
  1242.   
  1243.   #include <_G_config.h>
  1244. ! #include <string.h>
  1245.   #include <stdlib.h>
  1246.   
  1247.   /* Define the syntax stuff, so we can do the \<, \>, etc.  */
  1248. --- 54,60 ----
  1249.   #else  /* not emacs */
  1250.   
  1251.   #include <_G_config.h>
  1252. ! #include </usr/include/string.h>    /* Avoid getting String.h */
  1253.   #include <stdlib.h>
  1254.   
  1255.   /* Define the syntax stuff, so we can do the \<, \>, etc.  */
  1256. ***************
  1257. *** 114,120 ****
  1258.   #endif
  1259.   
  1260.   /* Get the interface, including the syntax bits.  */
  1261. ! #include "regex.h"
  1262.   
  1263.   
  1264.   /* These are the command codes that appear in compiled regular
  1265. --- 114,120 ----
  1266.   #endif
  1267.   
  1268.   /* Get the interface, including the syntax bits.  */
  1269. ! #include "_regex.h"    /* Avoid name clash; Regex.h <==> regex.h */
  1270.   
  1271.   
  1272.   /* These are the command codes that appear in compiled regular
  1273. diff -rc libg++-2.5.2-fsf/libg++/src/depend libg++-2.5.2-amiga/libg++/src/depend
  1274. *** libg++-2.5.2-fsf/libg++/src/depend    Tue Oct 26 02:20:49 1993
  1275. --- libg++-2.5.2-amiga/libg++/src/depend    Fri Dec 17 10:49:41 1993
  1276. ***************
  1277. *** 170,176 ****
  1278.     std.h \
  1279.     new.h \
  1280.     builtin.h \
  1281. !   regex.h \
  1282.     Regex.h
  1283.   RndInt.o : RndInt.cc \
  1284.     RndInt.h \
  1285. --- 170,176 ----
  1286.     std.h \
  1287.     new.h \
  1288.     builtin.h \
  1289. !   _regex.h \
  1290.     Regex.h
  1291.   RndInt.o : RndInt.cc \
  1292.     RndInt.h \
  1293. ***************
  1294. *** 207,213 ****
  1295.     std.h \
  1296.     new.h \
  1297.     builtin.h \
  1298. !   regex.h
  1299.   Uniform.o : Uniform.cc \
  1300.     builtin.h \
  1301.     std.h \
  1302. --- 207,213 ----
  1303.     std.h \
  1304.     new.h \
  1305.     builtin.h \
  1306. !   _regex.h
  1307.   Uniform.o : Uniform.cc \
  1308.     builtin.h \
  1309.     std.h \
  1310. ***************
  1311. *** 277,284 ****
  1312.   pow.o : pow.cc \
  1313.     builtin.h \
  1314.     std.h 
  1315. ! regex.o : regex.cc \
  1316. !   regex.h
  1317.   sqrt.o : sqrt.cc \
  1318.     builtin.h \
  1319.     std.h 
  1320. --- 277,284 ----
  1321.   pow.o : pow.cc \
  1322.     builtin.h \
  1323.     std.h 
  1324. ! _regex.o : _regex.cc \
  1325. !   _regex.h
  1326.   sqrt.o : sqrt.cc \
  1327.     builtin.h \
  1328.     std.h 
  1329. diff -rc libg++-2.5.2-fsf/libg++/src/std.h libg++-2.5.2-amiga/libg++/src/std.h
  1330. *** libg++-2.5.2-fsf/libg++/src/std.h    Wed Jul 28 22:41:41 1993
  1331. --- libg++-2.5.2-amiga/libg++/src/std.h    Fri Dec 17 09:21:11 1993
  1332. ***************
  1333. *** 23,29 ****
  1334.   #include <_G_config.h>
  1335.   #include <stddef.h>
  1336.   #include <stdlib.h>
  1337. ! #include <string.h>
  1338.   #include <unistd.h>
  1339.   #include <stdio.h> 
  1340.   #include <errno.h>
  1341. --- 23,29 ----
  1342.   #include <_G_config.h>
  1343.   #include <stddef.h>
  1344.   #include <stdlib.h>
  1345. ! #include </usr/include/string.h>    /* Avoid getting String.h */
  1346.   #include <unistd.h>
  1347.   #include <stdio.h> 
  1348.   #include <errno.h>
  1349. diff -rc libg++-2.5.2-fsf/libg++/tests/Makefile.sh libg++-2.5.2-amiga/libg++/tests/Makefile.sh
  1350. *** libg++-2.5.2-fsf/libg++/tests/Makefile.sh    Wed Sep 15 21:50:03 1993
  1351. --- libg++-2.5.2-amiga/libg++/tests/Makefile.sh    Sat Dec 18 15:04:37 1993
  1352. ***************
  1353. *** 8,19 ****
  1354.    tiLList.cc
  1355.   EOF
  1356.   
  1357. ! TESTS1="tObstack tString tInteger tRational tComplex tBitSet tBitString tStack tQueue tDeque tPQ tSet tBag tMap tFix tFix16 tFix24 tList tPlex tLList tVec"
  1358.   TTESTS="tRandom ${TESTS1} tiLList"
  1359.   
  1360.   cat <<EOF
  1361.   # executables
  1362. ! TOUTS =  test_h tCurses ${TTESTS} tGetOpt
  1363.   
  1364.   EOF
  1365.   
  1366. --- 8,19 ----
  1367.    tiLList.cc
  1368.   EOF
  1369.   
  1370. ! TESTS1="tObstack tInteger tRational tComplex tBitSet tStack tQueue tDeque tPQ tSet tBag tMap tFix tFix16 tFix24 tList tPlex tLList tVec"
  1371.   TTESTS="tRandom ${TESTS1} tiLList"
  1372.   
  1373.   cat <<EOF
  1374.   # executables
  1375. ! TOUTS =  test_h ${TTESTS} tGetOpt
  1376.   
  1377.   EOF
  1378.   
  1379. ***************
  1380. *** 90,98 ****
  1381.   # Comment this out if your compiler doesn't handle templates:
  1382.   CHECK_TEMPLATES=check-templates
  1383.   
  1384. ! tests checktests: clean_tests test_h tCurses \
  1385. !   check-tObstack check-tString check-tInteger \
  1386. !   check-tRational check-tComplex check-tBitSet check-tBitString \
  1387.     check-tFix check-tFix16 check-tFix24 check-tGetOpt \
  1388.     check-tList check-tPlex check-tLList check-tVec \
  1389.     check-tStack check-tQueue check-tDeque check-tPQ \
  1390. --- 90,98 ----
  1391.   # Comment this out if your compiler doesn't handle templates:
  1392.   CHECK_TEMPLATES=check-templates
  1393.   
  1394. ! tests checktests: clean_tests test_h \
  1395. !   check-tObstack check-tInteger \
  1396. !   check-tRational check-tComplex check-tBitSet \
  1397.     check-tFix check-tFix16 check-tFix24 check-tGetOpt \
  1398.     check-tList check-tPlex check-tLList check-tVec \
  1399.     check-tStack check-tQueue check-tDeque check-tPQ \
  1400. ***************
  1401. *** 133,142 ****
  1402.   LIB_FOR_tFix24=-lm
  1403.   LIB_FOR_tCurses="-lcurses -ltermcap"
  1404.   
  1405. ! for TEST in twrapper tgwrapper $TTESTS tCurses tGetOpt; do
  1406.     echo "${TEST}: " '$(LIBTEST)' " ${TEST}.o"
  1407.     echo '    $(CXX) $(LDFLAGS)' "${TEST}.o" '-o $@ $(LIBTEST) $(LIBS)' \
  1408. !     `eval echo '$LIB_FOR_'$TEST`
  1409.     echo ""
  1410.   done
  1411.   
  1412. --- 133,145 ----
  1413.   LIB_FOR_tFix24=-lm
  1414.   LIB_FOR_tCurses="-lcurses -ltermcap"
  1415.   
  1416. ! # Note:  the eval line below causes commands of the form "echo -lcurses ..."
  1417. ! # to be run, which are not handled properly on the Amiga with pdksh's
  1418. ! # internal echo.  Force the GNU echo (/bin/echo) to be used.  -fnf
  1419. ! for TEST in twrapper tgwrapper $TTESTS tGetOpt; do
  1420.     echo "${TEST}: " '$(LIBTEST)' " ${TEST}.o"
  1421.     echo '    $(CXX) $(LDFLAGS)' "${TEST}.o" '-o $@ $(LIBTEST) $(LIBS)' \
  1422. !     `eval /bin/echo '$LIB_FOR_'$TEST`
  1423.     echo ""
  1424.   done
  1425.   
  1426. diff -rc libg++-2.5.2-fsf/libg++/tests/test_h.cc libg++-2.5.2-amiga/libg++/tests/test_h.cc
  1427. *** libg++-2.5.2-fsf/libg++/tests/test_h.cc    Wed Nov 24 20:42:03 1993
  1428. --- libg++-2.5.2-amiga/libg++/tests/test_h.cc    Fri Dec 17 10:28:07 1993
  1429. ***************
  1430. *** 74,80 ****
  1431.   #include <assert.h>
  1432.   #include <libc.h>
  1433.   #include <compare.h>
  1434. ! #include <complex.h>
  1435.   #include <ctype.h>
  1436.   #include <errno.h>
  1437.   #include <generic.h>
  1438. --- 74,80 ----
  1439.   #include <assert.h>
  1440.   #include <libc.h>
  1441.   #include <compare.h>
  1442. ! #include <_complex.h>    /* Avoid name clash; Complex.h <==> complex.h */
  1443.   #include <ctype.h>
  1444.   #include <errno.h>
  1445.   #include <generic.h>
  1446. ***************
  1447. *** 87,93 ****
  1448.   #include <new.h>
  1449.   #include <osfcn.h>
  1450.   #include <pwd.h>
  1451. ! #include <regex.h>
  1452.   #include <setjmp.h>
  1453.   #include <signal.h>
  1454.   #include <stdarg.h>
  1455. --- 87,93 ----
  1456.   #include <new.h>
  1457.   #include <osfcn.h>
  1458.   #include <pwd.h>
  1459. ! #include <_regex.h>    /* Avoid name clash; Regex.h <==> regex.h */
  1460.   #include <setjmp.h>
  1461.   #include <signal.h>
  1462.   #include <stdarg.h>
  1463. ***************
  1464. *** 95,101 ****
  1465.   #include <stdio.h>
  1466.   #include <stdlib.h>
  1467.   #include <strclass.h>
  1468. ! #include <string.h>
  1469.   #include <swap.h>
  1470.   #include <unistd.h>
  1471.   #include <limits.h>
  1472. --- 95,101 ----
  1473.   #include <stdio.h>
  1474.   #include <stdlib.h>
  1475.   #include <strclass.h>
  1476. ! #include </usr/include/string.h>    /* Avoid getting String.h */
  1477.   #include <swap.h>
  1478.   #include <unistd.h>
  1479.   #include <limits.h>
  1480. diff -rc libg++-2.5.2-fsf/libiberty/Makefile.in libg++-2.5.2-amiga/libiberty/Makefile.in
  1481. *** libg++-2.5.2-fsf/libiberty/Makefile.in    Fri Nov 26 21:55:13 1993
  1482. --- libg++-2.5.2-amiga/libiberty/Makefile.in    Sat Dec 18 14:34:58 1993
  1483. ***************
  1484. *** 60,66 ****
  1485.   AR = ar
  1486.   AR_FLAGS = rc
  1487.   
  1488. ! CFLAGS = -g
  1489.   BISON = bison
  1490.   MAKEINFO = makeinfo
  1491.   RANLIB = ranlib
  1492. --- 60,66 ----
  1493.   AR = ar
  1494.   AR_FLAGS = rc
  1495.   
  1496. ! CFLAGS = -O
  1497.   BISON = bison
  1498.   MAKEINFO = makeinfo
  1499.   RANLIB = ranlib
  1500. ***************
  1501. *** 93,99 ****
  1502.   .PHONY: check installcheck
  1503.   check installcheck:
  1504.   
  1505.   #### Host, target, and site specific Makefile fragments come in here.
  1506.   ###
  1507.   
  1508. --- 93,99 ----
  1509.   .PHONY: check installcheck
  1510.   check installcheck:
  1511.   
  1512. ! CC=gcc
  1513.   #### Host, target, and site specific Makefile fragments come in here.
  1514.   ###
  1515.   
  1516. diff -rc libg++-2.5.2-fsf/libio/config.shared libg++-2.5.2-amiga/libio/config.shared
  1517. *** libg++-2.5.2-fsf/libio/config.shared    Sat Nov 27 03:27:42 1993
  1518. --- libg++-2.5.2-amiga/libio/config.shared    Sat Dec 18 14:34:17 1993
  1519. ***************
  1520. *** 91,97 ****
  1521.   echo ''
  1522.   echo 'CC = `if [ -f '${TOPDIR}'gcc/xgcc ] ; \'
  1523.   echo '    then echo '${TOPDIR}'gcc/xgcc -B'${TOPDIR}'gcc/ ; \'
  1524. ! echo '    else echo cc ; fi`'
  1525.   echo 'CXX = `if [ -f '${TOPDIR}'gcc/xgcc ] ; \'
  1526.   echo '    then echo '${TOPDIR}'gcc/xgcc -B'${TOPDIR}'gcc/ ; \'
  1527.   echo '    else echo gcc ; fi`'
  1528. --- 91,97 ----
  1529.   echo ''
  1530.   echo 'CC = `if [ -f '${TOPDIR}'gcc/xgcc ] ; \'
  1531.   echo '    then echo '${TOPDIR}'gcc/xgcc -B'${TOPDIR}'gcc/ ; \'
  1532. ! echo '    else echo gcc ; fi`'
  1533.   echo 'CXX = `if [ -f '${TOPDIR}'gcc/xgcc ] ; \'
  1534.   echo '    then echo '${TOPDIR}'gcc/xgcc -B'${TOPDIR}'gcc/ ; \'
  1535.   echo '    else echo gcc ; fi`'
  1536. ***************
  1537. *** 105,112 ****
  1538.   else
  1539.     echo 'WRAP_C_INCLUDES = -I$(srcdir)'/${TOLIBGXX}g++-include
  1540.   fi
  1541. ! echo 'CFLAGS = -g'
  1542. ! echo 'CXXFLAGS = -g -O'
  1543.   
  1544.   if test "${DOING_LIBGXX}" = "true" ; then
  1545.     echo 'PROTODIR = $(srcdir)'/${TOLIBGXX}src/gen
  1546. --- 105,112 ----
  1547.   else
  1548.     echo 'WRAP_C_INCLUDES = -I$(srcdir)'/${TOLIBGXX}g++-include
  1549.   fi
  1550. ! echo 'CFLAGS = -O'
  1551. ! echo 'CXXFLAGS = -O'
  1552.   
  1553.   if test "${DOING_LIBGXX}" = "true" ; then
  1554.     echo 'PROTODIR = $(srcdir)'/${TOLIBGXX}src/gen
  1555. diff -rc libg++-2.5.2-fsf/libio/dbz/Makefile.in libg++-2.5.2-amiga/libio/dbz/Makefile.in
  1556. *** libg++-2.5.2-fsf/libio/dbz/Makefile.in    Fri Dec  3 07:21:55 1993
  1557. --- libg++-2.5.2-amiga/libio/dbz/Makefile.in    Sat Dec 18 14:33:21 1993
  1558. ***************
  1559. *** 1,5 ****
  1560.   srcdir = .
  1561. ! CFLAGS = -g
  1562.   C_FLAGS = $(CFLAGS) -I$(srcdir) -I.. -I$(srcdir)/.. $(XTRAFLAGS) -DDBZ_FINISH='_IO_flush_all()'
  1563.   CC = `if [ -f ../../../gcc/gcc ] ; \
  1564.       then echo ../../../gcc/gcc -B../../../gcc/ ; \
  1565. --- 1,5 ----
  1566.   srcdir = .
  1567. ! CFLAGS = -O
  1568.   C_FLAGS = $(CFLAGS) -I$(srcdir) -I.. -I$(srcdir)/.. $(XTRAFLAGS) -DDBZ_FINISH='_IO_flush_all()'
  1569.   CC = `if [ -f ../../../gcc/gcc ] ; \
  1570.       then echo ../../../gcc/gcc -B../../../gcc/ ; \
  1571. diff -rc libg++-2.5.2-fsf/libio/gen-params libg++-2.5.2-amiga/libio/gen-params
  1572. *** libg++-2.5.2-fsf/libio/gen-params    Thu Nov  4 18:45:55 1993
  1573. --- libg++-2.5.2-amiga/libio/gen-params    Thu Dec 16 21:38:24 1993
  1574. ***************
  1575. *** 50,56 ****
  1576.   binutilsdir=${binutilsdir-${rootdir}/binutils}
  1577.   CC=${CC-`if [ -f ${gccdir}/xgcc ] ; \
  1578.       then echo ${gccdir}/xgcc -B${gccdir}/ -I${gccdir}/include ; \
  1579. !     else echo cc ; fi`}
  1580.   CXX=${CXX-`if [ -f ${gccdir}/xgcc ] ; \
  1581.       then echo ${gccdir}/xgcc -B${gccdir}/ -I${gccdir}/include ; \
  1582.       else echo gcc ; fi`}
  1583. --- 50,56 ----
  1584.   binutilsdir=${binutilsdir-${rootdir}/binutils}
  1585.   CC=${CC-`if [ -f ${gccdir}/xgcc ] ; \
  1586.       then echo ${gccdir}/xgcc -B${gccdir}/ -I${gccdir}/include ; \
  1587. !     else echo gcc ; fi`}
  1588.   CXX=${CXX-`if [ -f ${gccdir}/xgcc ] ; \
  1589.       then echo ${gccdir}/xgcc -B${gccdir}/ -I${gccdir}/include ; \
  1590.       else echo gcc ; fi`}
  1591. diff -rc libg++-2.5.2-fsf/libio/tests/Makefile.in libg++-2.5.2-amiga/libio/tests/Makefile.in
  1592. *** libg++-2.5.2-fsf/libio/tests/Makefile.in    Fri Dec  3 07:20:20 1993
  1593. --- libg++-2.5.2-amiga/libio/tests/Makefile.in    Sat Dec 18 14:33:53 1993
  1594. ***************
  1595. *** 17,25 ****
  1596.   
  1597.   srcdir = .
  1598.   
  1599. ! CFLAGS = -g
  1600.   C_FLAGS = $(CFLAGS) -I. -I.. -I$(srcdir) -I$(srcdir)/..
  1601. ! CXXFLAGS = -g
  1602.   CXX_FLAGS = $(CXXFLAGS) -I. -I.. -I$(srcdir) -I$(srcdir)/..
  1603.   CC = gcc
  1604.   CXX = gcc
  1605. --- 17,25 ----
  1606.   
  1607.   srcdir = .
  1608.   
  1609. ! CFLAGS = -O
  1610.   C_FLAGS = $(CFLAGS) -I. -I.. -I$(srcdir) -I$(srcdir)/..
  1611. ! CXXFLAGS = -O
  1612.   CXX_FLAGS = $(CXXFLAGS) -I. -I.. -I$(srcdir) -I$(srcdir)/..
  1613.   CC = gcc
  1614.   CXX = gcc
  1615. ***************
  1616. *** 162,168 ****
  1617.         -o tfformat $(srcdir)/tfformat.c $(IOSTDIOLIB)
  1618.   
  1619.   check-tfformat: tfformat
  1620. !     ./tfformat
  1621.   
  1622.   tiformat: $(srcdir)/tiformat.c
  1623.       $(CC) $(C_FLAGS) -DTEST_LIBIO -o tiformat $(srcdir)/tiformat.c $(IOSTDIOLIB)
  1624. --- 162,168 ----
  1625.         -o tfformat $(srcdir)/tfformat.c $(IOSTDIOLIB)
  1626.   
  1627.   check-tfformat: tfformat
  1628. !     -./tfformat
  1629.   
  1630.   tiformat: $(srcdir)/tiformat.c
  1631.       $(CC) $(C_FLAGS) -DTEST_LIBIO -o tiformat $(srcdir)/tiformat.c $(IOSTDIOLIB)
  1632.