home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / Jikes / jikes-diffs < prev    next >
Text File  |  2000-01-20  |  67KB  |  1,734 lines

  1. diff -u -r -N jikes-1.11.orig/src/Makefile.amiga jikes-1.11/src/Makefile.amiga
  2. --- jikes-1.11.orig/src/Makefile.amiga    Thu Jan  1 02:00:00 1970
  3. +++ jikes-1.11/src/Makefile.amiga    Mon Jan 17 21:10:19 2000
  4. @@ -0,0 +1,443 @@
  5. +# Generated automatically from Makefile.in by configure.
  6. +# $Id: Makefile.in,v 1.14 2000/01/06 06:46:47 lord Exp $
  7. +
  8. +# This software is subject to the terms of the IBM Jikes Compiler
  9. +# License Agreement available at the following URL:
  10. +# http://www.ibm.com/research/jikes.
  11. +# Copyright (C) 1996, 1998, International Business Machines Corporation
  12. +# and others.  All Rights Reserved.
  13. +# You must accept the terms of that agreement to use this software.
  14. +
  15. +
  16. +CXX=c++
  17. +CXXREQUIREDFLAGS=-c -ansi -DBIGENDIAN -Dstat=mystat -Dfopen=myfopen -Dopendir=myopendir -Dmkdir=mymkdir -DHAVE_BOOL -DHAVE_WCSLEN -DHAVE_WCSCPY -DHAVE_WCSNCPY -DHAVE_WCSCAT -DHAVE_WCSCMP -DHAVE_WCSNCMP -DHAVE_LIB_ICU_UC -I.
  18. +CXXDEBUGFLAGS=-DTEST -g
  19. +CXXOPTFLAGS=-O0 -m68020-60 -m68881
  20. +CXXFLAGS=$(CXXREQUIREDFLAGS) $(CXXOPTFLAGS)  -DWORDS_BIGENDIAN=1 -DHAVE_WCHAR_H=1 
  21. +CFLAGS=$(CXXFLAGS)
  22. +ERASE=rm -f
  23. +EXECUTABLE=jikes
  24. +LD=c++
  25. +LDFLAGS=-s -L. -o $(EXECUTABLE) -m68020-60 -m68881
  26. +LIBS=-lw -licu-uc
  27. +# Use GG:lib/libnix/swapstack.o when compiling for a 68000
  28. +# Use GG:lib/libm020/libnix/swapstack.o when compiling for a 68020+
  29. +SYSOBJECTS=GG:lib/libm020/libnix/swapstack.o -noixemul
  30. +
  31. +
  32. +BUILD_DIR=.
  33. +
  34. +srcdir        = .
  35. +prefix        = /gg
  36. +exec_prefix    = ${prefix}
  37. +
  38. +
  39. +#
  40. +# You should not need to edit below here
  41. +#
  42. +
  43. +
  44. +all:  $(EXECUTABLE)
  45. +
  46. +clean:
  47. +    $(ERASE) $(EXECUTABLE)
  48. +    $(ERASE) $(OBJECTS)
  49. +    $(ERASE) core
  50. +    $(ERASE) gencode.class
  51. +
  52. +distclean: clean
  53. +    $(ERASE) config.cache config.log config.status
  54. +    $(ERASE) Makefile TAGS
  55. +    $(ERASE) *~
  56. +
  57. +install: all
  58. +    mkdir -p $(prefix)/bin
  59. +    strip $(EXECUTABLE)
  60. +    cp $(EXECUTABLE) $(prefix)/bin
  61. +    mkdir -p $(prefix)/man/man1
  62. +    cp ../jikes.1 $(prefix)/man/man1
  63. +
  64. +OBJECTS=jikes.o scanner.o code.o zip.o unzip.o \
  65. +        ast.o diagnose.o parser.o lpginput.o javaact.o \
  66. +        error.o set.o symbol.o lookup.o long.o depend.o \
  67. +        stream.o op.o control.o modifier.o system.o \
  68. +        bytecode.o body.o decl.o definite.o dump.o expr.o \
  69. +        getclass.o init.o double.o config.o option.o \
  70. +        incrmnt.o case.o tab.o segment.o unparse.o amiga.o
  71. +
  72. +$(EXECUTABLE):    $(OBJECTS)
  73. +    $(LD) $(LDFLAGS)  $(OBJECTS) $(SYSOBJECTS) $(LIBS)
  74. +
  75. +
  76. +javasym.h: $(srcdir)/java.g
  77. +    jikespg $(srcdir)/java.g
  78. +    $(ERASE) java.l
  79. +
  80. +javadef.h: $(srcdir)/java.g
  81. +    jikespg $(srcdir)/java.g
  82. +    $(ERASE) java.l
  83. +
  84. +javadcl.h: $(srcdir)/java.g
  85. +    jikespg $(srcdir)/java.g
  86. +    $(ERASE) java.l
  87. +
  88. +javaprs.h: $(srcdir)/java.g
  89. +    jikespg $(srcdir)/java.g
  90. +    $(ERASE) java.l
  91. +
  92. +
  93. +ast.o:  $(srcdir)/ast.cpp $(srcdir)/config.h \
  94. +          $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/ast.h \
  95. +          $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  96. +          $(srcdir)/tuple.h $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  97. +          $(srcdir)/double.h $(srcdir)/symbol.h $(srcdir)/option.h \
  98. +          $(srcdir)/depend.h $(srcdir)/access.h 
  99. +    $(CXX) $(CXXFLAGS) $(srcdir)/ast.cpp 
  100. +
  101. +unparse.o:  $(srcdir)/unparse.cpp $(srcdir)/config.h \
  102. +          $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/ast.h \
  103. +          $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  104. +          $(srcdir)/tuple.h $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  105. +          $(srcdir)/double.h $(srcdir)/symbol.h $(srcdir)/option.h \
  106. +          $(srcdir)/depend.h $(srcdir)/access.h 
  107. +    $(CXX) $(CXXFLAGS) $(srcdir)/unparse.cpp 
  108. +
  109. +body.o: $(srcdir)/body.cpp $(srcdir)/config.h $(srcdir)/semantic.h \
  110. +          $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  111. +          $(srcdir)/javasym.h $(srcdir)/tuple.h \
  112. +          $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  113. +          $(srcdir)/double.h $(srcdir)/code.h \
  114. +      $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \
  115. +          $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \
  116. +          $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  117. +          $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h $(srcdir)/set.h 
  118. +    $(CXX) $(CXXFLAGS) $(srcdir)/body.cpp 
  119. +
  120. +bytecode.o: $(srcdir)/bytecode.cpp $(srcdir)/config.h $(srcdir)/ast.h \
  121. +              $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  122. +              $(srcdir)/tuple.h $(srcdir)/tab.h \
  123. +              $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  124. +              $(srcdir)/code.h $(srcdir)/case.h \
  125. +              $(srcdir)/symbol.h $(srcdir)/option.h $(srcdir)/depend.h \
  126. +              $(srcdir)/access.h $(srcdir)/bytecode.h $(srcdir)/class.h \
  127. +              $(srcdir)/semantic.h $(srcdir)/diagnose.h $(srcdir)/parser.h \
  128. +              $(srcdir)/lpginput.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  129. +              $(srcdir)/error.h $(srcdir)/control.h $(srcdir)/set.h \
  130. +              $(srcdir)/op.h $(srcdir)/segment.h  \
  131. +              $(srcdir)/op.h $(srcdir)/table.h 
  132. +    $(CXX) $(CXXFLAGS) $(srcdir)/bytecode.cpp 
  133. +
  134. +config.o:  $(srcdir)/config.cpp $(srcdir)/config.h 
  135. +    $(CXX) $(CXXFLAGS) $(srcdir)/config.cpp 
  136. +
  137. +code.o:  $(srcdir)/code.cpp $(srcdir)/code.h $(srcdir)/config.h 
  138. +    $(CXX) $(CXXFLAGS) $(srcdir)/code.cpp 
  139. +
  140. +control.o:  $(srcdir)/control.cpp $(srcdir)/config.h $(srcdir)/control.h \
  141. +              $(srcdir)/option.h $(srcdir)/code.h \
  142. +              $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \
  143. +              $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \
  144. +              $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  145. +              $(srcdir)/case.h $(srcdir)/depend.h \
  146. +              $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/scanner.h \
  147. +          $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  148. +              $(srcdir)/javaact.h $(srcdir)/semantic.h $(srcdir)/ast.h \
  149. +          $(srcdir)/diagnose.h $(srcdir)/error.h $(srcdir)/bytecode.h \
  150. +              $(srcdir)/class.h $(srcdir)/segment.h \
  151. +              $(srcdir)/class.h $(srcdir)/op.h 
  152. +    $(CXX) $(CXXFLAGS) $(srcdir)/control.cpp 
  153. +
  154. +case.o:  $(srcdir)/case.cpp $(srcdir)/config.h $(srcdir)/case.h 
  155. +    $(CXX) $(CXXFLAGS) $(srcdir)/case.cpp 
  156. +
  157. +diagnose.o:  $(srcdir)/diagnose.cpp $(srcdir)/config.h $(srcdir)/diagnose.h \
  158. +               $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/stream.h \
  159. +           $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tuple.h \
  160. +               $(srcdir)/tab.h $(srcdir)/lookup.h \
  161. +               $(srcdir)/long.h $(srcdir)/double.h \
  162. +               $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/javaprs.h \
  163. +               $(srcdir)/javaact.h $(srcdir)/control.h $(srcdir)/option.h \
  164. +           $(srcdir)/symbol.h $(srcdir)/depend.h $(srcdir)/access.h \
  165. +               $(srcdir)/set.h $(srcdir)/semantic.h $(srcdir)/ast.h \
  166. +               $(srcdir)/error.h $(srcdir)/spell.h
  167. +    $(CXX) $(CXXFLAGS) $(srcdir)/diagnose.cpp 
  168. +
  169. +decl.o:  $(srcdir)/decl.cpp $(srcdir)/config.h $(srcdir)/semantic.h \
  170. +           $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  171. +           $(srcdir)/javasym.h $(srcdir)/tuple.h \
  172. +           $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  173. +           $(srcdir)/double.h $(srcdir)/code.h \
  174. +       $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \
  175. +           $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \
  176. +           $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  177. +           $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h \
  178. +           $(srcdir)/set.h $(srcdir)/table.h 
  179. +    $(CXX) $(CXXFLAGS) $(srcdir)/decl.cpp 
  180. +
  181. +definite.o:  $(srcdir)/definite.cpp $(srcdir)/config.h $(srcdir)/semantic.h \
  182. +               $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  183. +           $(srcdir)/javasym.h $(srcdir)/tuple.h \
  184. +               $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  185. +               $(srcdir)/double.h $(srcdir)/code.h \
  186. +               $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \
  187. +               $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \
  188. +           $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  189. +               $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h \
  190. +               $(srcdir)/set.h 
  191. +    $(CXX) $(CXXFLAGS) $(srcdir)/definite.cpp 
  192. +
  193. +depend.o:  $(srcdir)/depend.cpp $(srcdir)/config.h $(srcdir)/ast.h \
  194. +             $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  195. +             $(srcdir)/tuple.h $(srcdir)/tab.h \
  196. +             $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  197. +             $(srcdir)/code.h $(srcdir)/case.h \
  198. +         $(srcdir)/symbol.h $(srcdir)/option.h $(srcdir)/depend.h \
  199. +             $(srcdir)/access.h $(srcdir)/semantic.h $(srcdir)/diagnose.h \
  200. +         $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  201. +             $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h \
  202. +             $(srcdir)/set.h 
  203. +    $(CXX) $(CXXFLAGS) $(srcdir)/depend.cpp 
  204. +
  205. +double.o:  $(srcdir)/double.cpp $(srcdir)/config.h $(srcdir)/double.h \
  206. +             $(srcdir)/long.h 
  207. +    $(CXX) $(CXXFLAGS) $(srcdir)/double.cpp 
  208. +
  209. +dump.o:  $(srcdir)/dump.cpp $(srcdir)/config.h $(srcdir)/javasym.h \
  210. +           $(srcdir)/control.h $(srcdir)/option.h \
  211. +           $(srcdir)/code.h $(srcdir)/tuple.h $(srcdir)/symbol.h \
  212. +           $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/tab.h \
  213. +           $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  214. +           $(srcdir)/case.h $(srcdir)/depend.h \
  215. +           $(srcdir)/access.h $(srcdir)/set.h 
  216. +    $(CXX) $(CXXFLAGS) $(srcdir)/dump.cpp 
  217. +
  218. +error.o:  $(srcdir)/error.cpp $(srcdir)/config.h \
  219. +            $(srcdir)/code.h $(srcdir)/case.h \
  220. +            $(srcdir)/error.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  221. +            $(srcdir)/javasym.h $(srcdir)/tuple.h $(srcdir)/tab.h \
  222. +            $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  223. +            $(srcdir)/control.h $(srcdir)/option.h $(srcdir)/symbol.h \
  224. +            $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/set.h \
  225. +        $(srcdir)/semantic.h $(srcdir)/ast.h $(srcdir)/diagnose.h \
  226. +            $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  227. +        $(srcdir)/javaact.h 
  228. +    $(CXX) $(CXXFLAGS) $(srcdir)/error.cpp 
  229. +
  230. +expr.o:  $(srcdir)/expr.cpp $(srcdir)/double.h $(srcdir)/config.h \
  231. +           $(srcdir)/parser.h $(srcdir)/lpginput.h \
  232. +           $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  233. +           $(srcdir)/tuple.h $(srcdir)/tab.h $(srcdir)/lookup.h \
  234. +           $(srcdir)/long.h $(srcdir)/code.h \
  235. +           $(srcdir)/case.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  236. +           $(srcdir)/semantic.h $(srcdir)/ast.h $(srcdir)/symbol.h \
  237. +       $(srcdir)/option.h $(srcdir)/depend.h $(srcdir)/access.h \
  238. +           $(srcdir)/diagnose.h $(srcdir)/error.h $(srcdir)/control.h \
  239. +           $(srcdir)/set.h $(srcdir)/table.h $(srcdir)/spell.h
  240. +    $(CXX) $(CXXFLAGS) $(srcdir)/expr.cpp 
  241. +
  242. +getclass.o:  $(srcdir)/getclass.cpp $(srcdir)/config.h $(srcdir)/control.h \
  243. +               $(srcdir)/option.h $(srcdir)/code.h \
  244. +               $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \
  245. +               $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \
  246. +               $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  247. +               $(srcdir)/case.h $(srcdir)/depend.h \
  248. +               $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/semantic.h \
  249. +           $(srcdir)/ast.h $(srcdir)/diagnose.h $(srcdir)/parser.h \
  250. +               $(srcdir)/lpginput.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  251. +               $(srcdir)/error.h $(srcdir)/getclass.h $(srcdir)/zip.h \
  252. +               $(srcdir)/unzip.h 
  253. +    $(CXX) $(CXXFLAGS) $(srcdir)/getclass.cpp 
  254. +
  255. +incrmnt.o:  $(srcdir)/incrmnt.cpp $(srcdir)/config.h $(srcdir)/control.h \
  256. +              $(srcdir)/option.h $(srcdir)/code.h \
  257. +              $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \
  258. +              $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \
  259. +              $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  260. +              $(srcdir)/case.h $(srcdir)/depend.h \
  261. +              $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/scanner.h \
  262. +          $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  263. +              $(srcdir)/javaact.h $(srcdir)/semantic.h $(srcdir)/ast.h \
  264. +          $(srcdir)/diagnose.h $(srcdir)/error.h 
  265. +    $(CXX) $(CXXFLAGS) $(srcdir)/incrmnt.cpp 
  266. +
  267. +init.o:  $(srcdir)/init.cpp $(srcdir)/config.h $(srcdir)/semantic.h \
  268. +           $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  269. +           $(srcdir)/javasym.h $(srcdir)/tuple.h \
  270. +           $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  271. +           $(srcdir)/double.h $(srcdir)/code.h \
  272. +       $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \
  273. +           $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \
  274. +           $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  275. +           $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h $(srcdir)/set.h 
  276. +    $(CXX) $(CXXFLAGS) $(srcdir)/init.cpp
  277. +
  278. +javaact.o: $(srcdir)/javaact.cpp $(srcdir)/config.h $(srcdir)/parser.h \
  279. +             $(srcdir)/lpginput.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  280. +         $(srcdir)/javasym.h $(srcdir)/tuple.h \
  281. +             $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  282. +             $(srcdir)/double.h $(srcdir)/code.h \
  283. +             $(srcdir)/case.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  284. +             $(srcdir)/ast.h $(srcdir)/symbol.h $(srcdir)/option.h \
  285. +         $(srcdir)/depend.h $(srcdir)/access.h 
  286. +    $(CXX) $(CXXFLAGS) $(srcdir)/javaact.cpp
  287. +
  288. +jikes.o:  $(srcdir)/jikes.cpp $(srcdir)/config.h $(srcdir)/control.h \
  289. +            $(srcdir)/option.h $(srcdir)/code.h \
  290. +            $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \
  291. +            $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \
  292. +            $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  293. +            $(srcdir)/case.h $(srcdir)/depend.h \
  294. +            $(srcdir)/access.h $(srcdir)/set.h 
  295. +    $(CXX) $(CXXFLAGS) $(srcdir)/jikes.cpp
  296. +
  297. +long.o:  $(srcdir)/long.cpp $(srcdir)/config.h $(srcdir)/long.h \
  298. +           $(srcdir)/double.h 
  299. +    $(CXX) $(CXXFLAGS) $(srcdir)/long.cpp 
  300. +
  301. +lookup.o:  $(srcdir)/lookup.cpp $(srcdir)/config.h $(srcdir)/lookup.h \
  302. +             $(srcdir)/tuple.h $(srcdir)/long.h \
  303. +             $(srcdir)/double.h $(srcdir)/symbol.h $(srcdir)/code.h \
  304. +             $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  305. +             $(srcdir)/tab.h $(srcdir)/case.h \
  306. +             $(srcdir)/option.h $(srcdir)/depend.h $(srcdir)/access.h \
  307. +             $(srcdir)/ast.h 
  308. +    $(CXX) $(CXXFLAGS) $(srcdir)/lookup.cpp
  309. +
  310. +lpginput.o:  $(srcdir)/lpginput.cpp $(srcdir)/config.h $(srcdir)/lpginput.h \
  311. +               $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  312. +           $(srcdir)/tuple.h $(srcdir)/tab.h \
  313. +               $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  314. +               $(srcdir)/code.h $(srcdir)/case.h \
  315. +               $(srcdir)/javaprs.h $(srcdir)/javadcl.h 
  316. +    $(CXX) $(CXXFLAGS) $(srcdir)/lpginput.cpp 
  317. +
  318. +modifier.o:  $(srcdir)/modifier.cpp $(srcdir)/config.h $(srcdir)/semantic.h \
  319. +               $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  320. +           $(srcdir)/javasym.h $(srcdir)/tuple.h \
  321. +               $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  322. +               $(srcdir)/double.h $(srcdir)/code.h \
  323. +               $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \
  324. +               $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \
  325. +           $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  326. +               $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h \
  327. +               $(srcdir)/set.h 
  328. +    $(CXX) $(CXXFLAGS) $(srcdir)/modifier.cpp 
  329. +
  330. +op.o:  $(srcdir)/op.cpp $(srcdir)/config.h $(srcdir)/op.h $(srcdir)/tuple.h \
  331. +         $(srcdir)/class.h $(srcdir)/semantic.h $(srcdir)/ast.h \
  332. +     $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  333. +         $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  334. +     $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/symbol.h \
  335. +         $(srcdir)/option.h $(srcdir)/depend.h $(srcdir)/access.h \
  336. +         $(srcdir)/diagnose.h $(srcdir)/parser.h $(srcdir)/lpginput.h \
  337. +         $(srcdir)/javaprs.h $(srcdir)/javaact.h $(srcdir)/error.h \
  338. +     $(srcdir)/control.h $(srcdir)/set.h 
  339. +    $(CXX) $(CXXFLAGS) $(srcdir)/op.cpp 
  340. +
  341. +option.o:  $(srcdir)/option.cpp $(srcdir)/option.h $(srcdir)/config.h \
  342. +             $(srcdir)/code.h $(srcdir)/tuple.h \
  343. +             $(srcdir)/javasym.h $(srcdir)/error.h $(srcdir)/stream.h \
  344. +             $(srcdir)/javadef.h $(srcdir)/tab.h $(srcdir)/lookup.h \
  345. +             $(srcdir)/long.h $(srcdir)/double.h \
  346. +             $(srcdir)/case.h 
  347. +    $(CXX) $(CXXFLAGS) $(srcdir)/option.cpp 
  348. +
  349. +parser.o:  $(srcdir)/parser.cpp $(srcdir)/config.h $(srcdir)/parser.h \
  350. +             $(srcdir)/lpginput.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  351. +         $(srcdir)/javasym.h $(srcdir)/tuple.h \
  352. +             $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  353. +             $(srcdir)/double.h $(srcdir)/code.h \
  354. +             $(srcdir)/case.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  355. +             $(srcdir)/ast.h $(srcdir)/symbol.h $(srcdir)/option.h \
  356. +         $(srcdir)/depend.h $(srcdir)/access.h 
  357. +    $(CXX) $(CXXFLAGS) $(srcdir)/parser.cpp
  358. +
  359. +scanner.o: $(srcdir)/scanner.cpp $(srcdir)/config.h $(srcdir)/scanner.h \
  360. +             $(srcdir)/code.h $(srcdir)/javadef.h \
  361. +             $(srcdir)/javasym.h $(srcdir)/stream.h $(srcdir)/tuple.h \
  362. +             $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  363. +             $(srcdir)/double.h $(srcdir)/case.h \
  364. +             $(srcdir)/control.h $(srcdir)/option.h $(srcdir)/symbol.h \
  365. +             $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/error.h 
  366. +    $(CXX) $(CXXFLAGS) $(srcdir)/scanner.cpp 
  367. +
  368. +set.o:  $(srcdir)/set.cpp $(srcdir)/set.h $(srcdir)/config.h \
  369. +          $(srcdir)/symbol.h $(srcdir)/code.h \
  370. +          $(srcdir)/stream.h $(srcdir)/javadef.h $(srcdir)/javasym.h \
  371. +          $(srcdir)/tuple.h $(srcdir)/tab.h $(srcdir)/lookup.h \
  372. +          $(srcdir)/long.h $(srcdir)/double.h \
  373. +          $(srcdir)/case.h $(srcdir)/option.h $(srcdir)/depend.h \
  374. +          $(srcdir)/access.h 
  375. +    $(CXX) $(CXXFLAGS) $(srcdir)/set.cpp 
  376. +
  377. +stream.o:  $(srcdir)/stream.cpp $(srcdir)/config.h $(srcdir)/stream.h \
  378. +             $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tuple.h \
  379. +             $(srcdir)/tab.h $(srcdir)/lookup.h \
  380. +             $(srcdir)/long.h $(srcdir)/double.h \
  381. +             $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/zip.h \
  382. +         $(srcdir)/unzip.h $(srcdir)/symbol.h $(srcdir)/option.h \
  383. +             $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/control.h \
  384. +             $(srcdir)/set.h $(srcdir)/semantic.h $(srcdir)/ast.h \
  385. +             $(srcdir)/diagnose.h $(srcdir)/parser.h $(srcdir)/lpginput.h \
  386. +             $(srcdir)/javaprs.h $(srcdir)/javaact.h $(srcdir)/error.h 
  387. +    $(CXX) $(CXXFLAGS) $(srcdir)/stream.cpp 
  388. +
  389. +symbol.o:  $(srcdir)/symbol.cpp $(srcdir)/config.h $(srcdir)/stream.h \
  390. +             $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tuple.h \
  391. +             $(srcdir)/tab.h $(srcdir)/lookup.h \
  392. +             $(srcdir)/long.h $(srcdir)/double.h \
  393. +             $(srcdir)/code.h $(srcdir)/case.h $(srcdir)/control.h \
  394. +         $(srcdir)/option.h $(srcdir)/symbol.h $(srcdir)/depend.h \
  395. +             $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/ast.h \
  396. +             $(srcdir)/semantic.h $(srcdir)/diagnose.h $(srcdir)/parser.h \
  397. +             $(srcdir)/lpginput.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  398. +             $(srcdir)/error.h $(srcdir)/table.h $(srcdir)/zip.h $(srcdir)/unzip.h 
  399. +    $(CXX) $(CXXFLAGS) $(srcdir)/symbol.cpp
  400. +
  401. +system.o:  $(srcdir)/system.cpp $(srcdir)/config.h $(srcdir)/control.h \
  402. +             $(srcdir)/option.h $(srcdir)/code.h \
  403. +             $(srcdir)/tuple.h $(srcdir)/symbol.h $(srcdir)/stream.h \
  404. +             $(srcdir)/javadef.h $(srcdir)/javasym.h $(srcdir)/tab.h \
  405. +             $(srcdir)/lookup.h $(srcdir)/long.h $(srcdir)/double.h \
  406. +             $(srcdir)/case.h $(srcdir)/depend.h \
  407. +             $(srcdir)/access.h $(srcdir)/set.h $(srcdir)/semantic.h \
  408. +         $(srcdir)/ast.h $(srcdir)/diagnose.h $(srcdir)/parser.h \
  409. +             $(srcdir)/lpginput.h $(srcdir)/javaprs.h $(srcdir)/javaact.h \
  410. +             $(srcdir)/error.h $(srcdir)/zip.h $(srcdir)/unzip.h 
  411. +    $(CXX) $(CXXFLAGS) $(srcdir)/system.cpp 
  412. +
  413. +tab.o: $(srcdir)/tab.h $(srcdir)/tab.cpp $(srcdir)/config.h
  414. +    $(CXX) $(CXXFLAGS) $(srcdir)/tab.cpp
  415. +
  416. +unzip.o:  $(srcdir)/unzip.cpp $(srcdir)/config.h $(srcdir)/unzip.h 
  417. +    $(CXX) $(CXXFLAGS) $(srcdir)/unzip.cpp 
  418. +
  419. +wom.o:  $(srcdir)/wom.cpp $(srcdir)/config.h $(srcdir)/semantic.h \
  420. +          $(srcdir)/ast.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  421. +          $(srcdir)/javasym.h $(srcdir)/tuple.h \
  422. +          $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  423. +          $(srcdir)/double.h $(srcdir)/code.h \
  424. +      $(srcdir)/case.h $(srcdir)/symbol.h $(srcdir)/option.h \
  425. +          $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/diagnose.h \
  426. +          $(srcdir)/parser.h $(srcdir)/lpginput.h $(srcdir)/javaprs.h \
  427. +          $(srcdir)/javaact.h $(srcdir)/error.h $(srcdir)/control.h $(srcdir)/set.h 
  428. +    $(CXX) $(CXXFLAGS) $(srcdir)/wom.cpp
  429. +
  430. +zip.o:  $(srcdir)/zip.cpp $(srcdir)/config.h $(srcdir)/control.h \
  431. +          $(srcdir)/option.h $(srcdir)/code.h $(srcdir)/tuple.h \
  432. +      $(srcdir)/symbol.h $(srcdir)/stream.h $(srcdir)/javadef.h \
  433. +          $(srcdir)/javasym.h $(srcdir)/tab.h $(srcdir)/lookup.h $(srcdir)/long.h \
  434. +      $(srcdir)/double.h $(srcdir)/case.h \
  435. +          $(srcdir)/depend.h $(srcdir)/access.h $(srcdir)/set.h \
  436. +          $(srcdir)/zip.h $(srcdir)/unzip.h 
  437. +    $(CXX) $(CXXFLAGS) $(srcdir)/zip.cpp 
  438. +
  439. +segment.o:  $(srcdir)/segment.cpp $(srcdir)/segment.h $(srcdir)/tuple.h $(srcdir)/config.h 
  440. +    $(CXX) $(CXXFLAGS) $(srcdir)/segment.cpp
  441. +
  442. +
  443. +tags:
  444. +    etags *.h *.cpp
  445. +
  446. +
  447. +TAGS:  tags
  448. diff -u -r -N jikes-1.11.orig/src/README.AMIGA jikes-1.11/src/README.AMIGA
  449. --- jikes-1.11.orig/src/README.AMIGA    Thu Jan  1 02:00:00 1970
  450. +++ jikes-1.11/src/README.AMIGA    Thu Jan 20 18:10:38 2000
  451. @@ -0,0 +1,59 @@
  452. +This is the source of the native Amiga port (no ixemul.library required)
  453. +of jikes, the free Java compiler from IBM.
  454. +
  455. +The distinction between stable and development version has been
  456. +dropped, so the Aminet version is the latest version.  The relevant
  457. +files can also be downloaded from the Amiga Jikes home page at
  458. +http://dias.cti.gr/~kyrimis/jikes/ .
  459. +
  460. +To build jikes on the Amiga, you need:
  461. +* A wide character library (e.g., the simple wchar library that I have
  462. +  extracted from the Jikes source, available at both Aminet and the Amiga
  463. +  Jikes web site).
  464. +* If you want to enable support for the "-encoding" option, then you must
  465. +  also install ICU, IBM's International Classes for Unicode. (This
  466. +  library also requires a wide character library, which is the reason
  467. +  why the Jikes wide character code cannot be used in place.)
  468. +
  469. +You can then either run the configure script, e.g., type "LIBS=-lw
  470. +configure --prefix=/gg" from sh and tweak the resulting Makefile, or
  471. +simply copy Makefile.amiga to Makefile.  If you use Makefile.amiga, note
  472. +that support for "-encoding" is turned on, so you will have to disable
  473. +it if you do not want it. (The relevant items in the Makefile are the
  474. +"-DHAVE_LIB_ICU_UC" option in CXXREQUIREDFLAGS and the -licu-uc option
  475. +in LIBS.)
  476. +
  477. +Before typing "make", you may want to make the following changes to the
  478. +Makefile:
  479. +* Change the CPU and FPU options.
  480. +* Change the optimization level. Note that using -O2 will produce a binary
  481. +  that is about a megabyte larger, and the resulting gains in compilation
  482. +  time will be overwhelmed by the additional loading time. Also note that
  483. +  you will need at least 70M of memory to compile jikes with -O2, i.e.,
  484. +  you will most likely need to use VMM, and that on a 68040@28MHz it
  485. +  takes about a day to produce the optimized binary. In other words,
  486. +  don't bother.
  487. +
  488. +INSTALLATION:
  489. +Simply copy the jikes executable somewhere in your path.
  490. +
  491. +USAGE:
  492. +Set either the CLASSPATH or the JIKESPATH environment variable to point
  493. +to the directories and zip/jar files that you want your compiler to use.
  494. +E.g., if you are using Kaffe, you can say:
  495. +setenv CLASSPATH "GG:share/kaffe/Klasses.jar;GG:share/kaffe/Pizza.jar;."
  496. +Separate the path components using semicolons. You can use UNIX "." and ".."
  497. +notation for the current directory and for the parent directory of a
  498. +directory.
  499. +
  500. +If you find a bug in the Amiga port, you can contact me at kyrimis@cti.gr
  501. +and I'll see what I can do.
  502. +
  503. +Kriton Kyrimis.
  504. +
  505. +******************************************************************************
  506. +This software is subject to the terms of the IBM Public License, available
  507. +at the following URL: http://www.research.com/jikes/license/license3.htm.
  508. +Copyright (C) 1996, 1999 International Business Machines Corporation
  509. +and others.  All Rights Reserved.
  510. +******************************************************************************
  511. diff -u -r -N jikes-1.11.orig/src/amiga.c jikes-1.11/src/amiga.c
  512. --- jikes-1.11.orig/src/amiga.c    Thu Jan  1 02:00:00 1970
  513. +++ jikes-1.11/src/amiga.c    Sun Jan 16 17:48:56 2000
  514. @@ -0,0 +1,132 @@
  515. +#ifdef stat
  516. +#undef stat
  517. +#endif
  518. +#ifdef fopen
  519. +#undef fopen
  520. +#endif
  521. +#ifdef opendir
  522. +#undef opendir
  523. +#endif
  524. +#ifdef mkdir
  525. +#undef mkdir
  526. +#endif
  527. +
  528. +#include <stdio.h>
  529. +#include <sys/types.h>
  530. +#include <sys/stat.h>
  531. +#include <sys/param.h>
  532. +#include <string.h>
  533. +#include <unistd.h>
  534. +#include <dirent.h>
  535. +
  536. +__BEGIN_DECLS
  537. +/**
  538. + * Provide wrappers for the stat, fopen, and opendir functions that massage
  539. + * the file names given to them as arguments so that UNIX "." and ".."
  540. + * path names are translated to their AmigaOS equivalents. This is done so
  541. + * that no intervention is done in terms of file semantics to the jikes
  542. + * source.
  543. + */
  544. +static char buf[MAXPATHLEN+1];
  545. +static char cwd[MAXPATHLEN+1];
  546. +static char pathComponent[MAXPATHLEN+1];
  547. +
  548. +static void ix_out(char *s)
  549. +{
  550. +  int ptr;
  551. +
  552. +  if (strcmp(s, ".") == 0) {
  553. +    if (buf[0] == '\0') {
  554. +      strcat(buf, cwd);
  555. +    }else{
  556. +      ptr = strlen(buf)-1;
  557. +      if (buf[ptr] == '/') {
  558. +        buf[ptr] = '\0';
  559. +      }
  560. +    }
  561. +  }else{
  562. +    if (strcmp(s, "..") == 0) {
  563. +      strcat(buf, "/");
  564. +    }else{
  565. +      strcat(buf, s);
  566. +    }
  567. +  }
  568. +}
  569. +
  570. +static char *
  571. +ix_path(const char *path)
  572. +{
  573. +  int len;
  574. +  char sep[2];
  575. +  int appendSep, skipNext = 0;
  576. +  int i, j;
  577. +
  578. +  buf[0] = '\0';
  579. +  cwd[0] = '\0';
  580. +  pathComponent[0] = '\0';
  581. +  sep[1] = '\0';
  582. +  getcwd(cwd, sizeof(cwd));
  583. +  len = strlen(path);
  584. +
  585. +  for (i=0, j=0; i<len; i++) {
  586. +    if (path[i] == '/' || path[i] == ':') {
  587. +      pathComponent[j] = '\0';
  588. +      if (j != 0) {
  589. +        ix_out(pathComponent);
  590. +        if (buf[0] != '\0' &&
  591. +        ((strcmp(pathComponent, ".") == 0 && buf[strlen(buf)-1] == ':') ||
  592. +         (strcmp(pathComponent, "..") == 0 && buf[strlen(buf)-1] == '/'))){
  593. +      appendSep = 0;
  594. +    }else{
  595. +      appendSep = 1;
  596. +    }
  597. +        j = 0;
  598. +        pathComponent[0] = '\0';
  599. +      }
  600. +      sep[0] = path[i];
  601. +      if (appendSep && !skipNext) {
  602. +        strcat(buf, sep);
  603. +      }
  604. +      /* Constructs of the type FOO:/bar are *probably* caused by appending
  605. +       * UNIX-style a path to a directory, so we skip the bogus "/".
  606. +       */
  607. +      if (path[i] == ':' && path[i+1] == '/') {
  608. +        skipNext = 1;
  609. +      }else{
  610. +        skipNext = 0;
  611. +      }
  612. +    }else{
  613. +      pathComponent[j++] = path[i];
  614. +    }
  615. +  }
  616. +  if (j > 0) {
  617. +    pathComponent[j] = '\0';
  618. +    ix_out(pathComponent);
  619. +  }
  620. +  return buf;
  621. +}
  622. +
  623. +int
  624. +mystat(const char *path, struct stat *sb)
  625. +{
  626. +  return stat(ix_path(path), sb);
  627. +}
  628. +
  629. +FILE *
  630. +myfopen(char *path, char *mode)
  631. +{
  632. +  return fopen(ix_path(path), mode);
  633. +}
  634. +
  635. +DIR
  636. +*myopendir(const char *path)
  637. +{
  638. +  return opendir(ix_path(path));
  639. +}
  640. +
  641. +int
  642. +mymkdir(const char *path, mode_t mode)
  643. +{
  644. +  return mkdir(ix_path(path), mode);
  645. +}
  646. +__END_DECLS
  647. diff -u -r -N jikes-1.11.orig/src/config.cpp jikes-1.11/src/config.cpp
  648. --- jikes-1.11.orig/src/config.cpp    Thu Jan  6 08:46:47 2000
  649. +++ jikes-1.11/src/config.cpp    Sun Jan 16 17:48:57 2000
  650. @@ -826,7 +826,7 @@
  651.          return (((::SystemStat(name, &status) == 0) && (status.st_mode & STAT_S_IFDIR)) ? 1 : 0);
  652.      }
  653.  
  654. -#if defined(GNU_LIBC5)
  655. +#if defined(GNU_LIBC5) || defined __amigaos__
  656.  #include <sys/stat.h>
  657.  #ifndef UNIX
  658.      int SystemMkdir(char *dirname)
  659. diff -u -r -N jikes-1.11.orig/src/config.h jikes-1.11/src/config.h
  660. --- jikes-1.11.orig/src/config.h    Thu Jan  6 10:45:44 2000
  661. +++ jikes-1.11/src/config.h    Sun Jan 16 17:56:26 2000
  662. @@ -28,6 +28,17 @@
  663.  #include <sys/types.h>
  664.  #include <sys/stat.h>
  665.  
  666. +
  667. +#if defined(GNU_LIBC5)
  668. +    extern size_t wcslen(wchar_t *);
  669. +    extern wchar_t *wcscpy(wchar_t *, wchar_t *);
  670. +    extern wchar_t *wcsncpy(wchar_t *, wchar_t *, int);
  671. +    extern wchar_t *wcscat(wchar_t *, wchar_t *);
  672. +    extern int wcscmp(wchar_t *, wchar_t *);
  673. +    extern int wcsncmp(wchar_t *, wchar_t *, int);
  674. +#endif
  675. +
  676. +
  677.  #ifdef TEST
  678.  #define NO_LEAKS
  679.  #endif
  680. @@ -585,6 +596,10 @@
  681.      char info[TAIL_INDEX + 1], // + 1 for '\0'
  682.           *str;
  683.  };
  684. +
  685. +#ifdef __amigaos__
  686. +#define AMIGAOS_FILE_SYSTEM
  687. +#endif
  688.  
  689.  //
  690.  // The configure script check each of these to see if we need our own implementation
  691. diff -u -r -N jikes-1.11.orig/src/configure jikes-1.11/src/configure
  692. --- jikes-1.11.orig/src/configure    Sat Jan  8 00:19:45 2000
  693. +++ jikes-1.11/src/configure    Sun Jan 16 18:33:42 2000
  694. @@ -54,6 +54,10 @@
  695.  includedir='${prefix}/include'
  696.  oldincludedir='/usr/include'
  697.  infodir='${prefix}/info'
  698. +guidedir='${prefix}/guide'
  699. +htmldir='${prefix}/html'
  700. +psdir='${prefix}/ps'
  701. +dvidir='${prefix}/dvi'
  702.  mandir='${prefix}/man'
  703.  
  704.  # Initialize some other variables.
  705. @@ -171,6 +175,10 @@
  706.    --includedir=DIR        C header files in DIR [PREFIX/include]
  707.    --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  708.    --infodir=DIR           info documentation in DIR [PREFIX/info]
  709. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  710. +  --htmldir=DIR           HTML documentation in DIR [PREFIX/html]
  711. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  712. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  713.    --mandir=DIR            man documentation in DIR [PREFIX/man]
  714.    --srcdir=DIR            find the sources in DIR [configure dir or ..]
  715.    --program-prefix=PREFIX prepend PREFIX to installed program names
  716. @@ -213,6 +221,22 @@
  717.    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  718.      infodir="$ac_optarg" ;;
  719.  
  720. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  721. +   ac_prev=guidedir ;;
  722. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  723. +
  724. + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm)
  725. +   ac_prev=htmldir ;;
  726. + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* |--htm=*)+    htmldir="$ac_optarg" ;;
  727. +
  728. + -psdir | --psdir | --psdi | --psd | --ps)
  729. +   ac_prev=psdir ;;
  730. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  731. +
  732. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  733. +   ac_prev=dvidir ;;
  734. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  735. +
  736.    -libdir | --libdir | --libdi | --libd)
  737.      ac_prev=libdir ;;
  738.    -libdir=* | --libdir=* | --libdi=* | --libd=*)
  739. @@ -553,7 +577,7 @@
  740.  # Extract the first word of "$ac_prog", so it can be a program name with args.
  741.  set dummy $ac_prog; ac_word=$2
  742.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  743. -echo "configure:557: checking for $ac_word" >&5
  744. +echo "configure:581: checking for $ac_word" >&5
  745.  if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  746.    echo $ac_n "(cached) $ac_c" 1>&6
  747.  else
  748. @@ -585,7 +609,7 @@
  749.  
  750.  
  751.  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  752. -echo "configure:589: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  753. +echo "configure:613: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  754.  
  755.  ac_ext=C
  756.  # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  757. @@ -596,12 +620,12 @@
  758.  
  759.  cat > conftest.$ac_ext << EOF
  760.  
  761. -#line 600 "configure"
  762. +#line 624 "configure"
  763.  #include "confdefs.h"
  764.  
  765.  int main(){return(0);}
  766.  EOF
  767. -if { (eval echo configure:605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  768. +if { (eval echo configure:629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  769.    ac_cv_prog_cxx_works=yes
  770.    # If we can't run a trivial program, we are probably using a cross compiler.
  771.    if (./conftest; exit) 2>/dev/null; then
  772. @@ -627,12 +651,12 @@
  773.    { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  774.  fi
  775.  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  776. -echo "configure:631: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  777. +echo "configure:655: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  778.  echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  779.  cross_compiling=$ac_cv_prog_cxx_cross
  780.  
  781.  echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  782. -echo "configure:636: checking whether we are using GNU C++" >&5
  783. +echo "configure:660: checking whether we are using GNU C++" >&5
  784.  if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  785.    echo $ac_n "(cached) $ac_c" 1>&6
  786.  else
  787. @@ -641,7 +665,7 @@
  788.    yes;
  789.  #endif
  790.  EOF
  791. -if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  792. +if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  793.    ac_cv_prog_gxx=yes
  794.  else
  795.    ac_cv_prog_gxx=no
  796. @@ -660,7 +684,7 @@
  797.  ac_save_CXXFLAGS="$CXXFLAGS"
  798.  CXXFLAGS=
  799.  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  800. -echo "configure:664: checking whether ${CXX-g++} accepts -g" >&5
  801. +echo "configure:688: checking whether ${CXX-g++} accepts -g" >&5
  802.  if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  803.    echo $ac_n "(cached) $ac_c" 1>&6
  804.  else
  805. @@ -692,12 +716,12 @@
  806.  fi
  807.  
  808.  echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  809. -echo "configure:696: checking for Cygwin environment" >&5
  810. +echo "configure:720: checking for Cygwin environment" >&5
  811.  if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  812.    echo $ac_n "(cached) $ac_c" 1>&6
  813.  else
  814.    cat > conftest.$ac_ext <<EOF
  815. -#line 701 "configure"
  816. +#line 725 "configure"
  817.  #include "confdefs.h"
  818.  
  819.  int main() {
  820. @@ -708,7 +732,7 @@
  821.  return __CYGWIN__;
  822.  ; return 0; }
  823.  EOF
  824. -if { (eval echo configure:712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  825. +if { (eval echo configure:736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  826.    rm -rf conftest*
  827.    ac_cv_cygwin=yes
  828.  else
  829. @@ -725,13 +749,13 @@
  830.  CYGWIN=
  831.  test "$ac_cv_cygwin" = yes && CYGWIN=yes
  832.  echo $ac_n "checking for object suffix""... $ac_c" 1>&6
  833. -echo "configure:729: checking for object suffix" >&5
  834. +echo "configure:753: checking for object suffix" >&5
  835.  if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
  836.    echo $ac_n "(cached) $ac_c" 1>&6
  837.  else
  838.    rm -f conftest*
  839.  echo 'int i = 1;' > conftest.$ac_ext
  840. -if { (eval echo configure:735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  841. +if { (eval echo configure:759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  842.    for ac_file in conftest.*; do
  843.      case $ac_file in
  844.      *.c) ;;
  845. @@ -749,19 +773,19 @@
  846.  ac_objext=$ac_cv_objext
  847.  
  848.  echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  849. -echo "configure:753: checking for mingw32 environment" >&5
  850. +echo "configure:777: checking for mingw32 environment" >&5
  851.  if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  852.    echo $ac_n "(cached) $ac_c" 1>&6
  853.  else
  854.    cat > conftest.$ac_ext <<EOF
  855. -#line 758 "configure"
  856. +#line 782 "configure"
  857.  #include "confdefs.h"
  858.  
  859.  int main() {
  860.  return __MINGW32__;
  861.  ; return 0; }
  862.  EOF
  863. -if { (eval echo configure:765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  864. +if { (eval echo configure:789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  865.    rm -rf conftest*
  866.    ac_cv_mingw32=yes
  867.  else
  868. @@ -780,7 +804,7 @@
  869.  
  870.  
  871.  echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  872. -echo "configure:784: checking for executable suffix" >&5
  873. +echo "configure:808: checking for executable suffix" >&5
  874.  if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  875.    echo $ac_n "(cached) $ac_c" 1>&6
  876.  else
  877. @@ -790,10 +814,10 @@
  878.    rm -f conftest*
  879.    echo 'int main () { return 0; }' > conftest.$ac_ext
  880.    ac_cv_exeext=
  881. -  if { (eval echo configure:794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  882. +  if { (eval echo configure:818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  883.      for file in conftest.*; do
  884.        case $file in
  885. -      *.c | *.o | *.obj) ;;
  886. +      *.c | *.o | *.obj | *.xSYM) ;;
  887.        *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
  888.        esac
  889.      done
  890. @@ -856,7 +880,7 @@
  891.          # Extract the first word of "icc", so it can be a program name with args.
  892.  set dummy icc; ac_word=$2
  893.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  894. -echo "configure:860: checking for $ac_word" >&5
  895. +echo "configure:884: checking for $ac_word" >&5
  896.  if eval "test \"`echo '$''{'ac_cv_path_CXX'+set}'`\" = set"; then
  897.    echo $ac_n "(cached) $ac_c" 1>&6
  898.  else
  899. @@ -893,7 +917,7 @@
  900.              # Extract the first word of "xlC", so it can be a program name with args.
  901.  set dummy xlC; ac_word=$2
  902.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  903. -echo "configure:897: checking for $ac_word" >&5
  904. +echo "configure:921: checking for $ac_word" >&5
  905.  if eval "test \"`echo '$''{'ac_cv_path_CXX'+set}'`\" = set"; then
  906.    echo $ac_n "(cached) $ac_c" 1>&6
  907.  else
  908. @@ -963,7 +987,7 @@
  909.          # Extract the first word of "CC", so it can be a program name with args.
  910.  set dummy CC; ac_word=$2
  911.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  912. -echo "configure:967: checking for $ac_word" >&5
  913. +echo "configure:991: checking for $ac_word" >&5
  914.  if eval "test \"`echo '$''{'ac_cv_path_CXX'+set}'`\" = set"; then
  915.    echo $ac_n "(cached) $ac_c" 1>&6
  916.  else
  917. @@ -1058,7 +1082,7 @@
  918.      # Extract the first word of "c++", so it can be a program name with args.
  919.  set dummy c++; ac_word=$2
  920.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  921. -echo "configure:1062: checking for $ac_word" >&5
  922. +echo "configure:1086: checking for $ac_word" >&5
  923.  if eval "test \"`echo '$''{'ac_cv_path_TMP_PROG'+set}'`\" = set"; then
  924.    echo $ac_n "(cached) $ac_c" 1>&6
  925.  else
  926. @@ -1113,7 +1137,7 @@
  927.  # echo the compiler we are using
  928.  
  929.  echo $ac_n "checking for the compiler to use""... $ac_c" 1>&6
  930. -echo "configure:1117: checking for the compiler to use" >&5
  931. +echo "configure:1141: checking for the compiler to use" >&5
  932.  echo "$ac_t""$CXX." 1>&6
  933.  
  934.  
  935. @@ -1248,6 +1272,15 @@
  936.          EXEEXT=.exe
  937.  
  938.          ;;
  939. +    AmigaOS)
  940. +    CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DBIGENDIAN -Dstat=mystat -Dfopen=myfopen -Dopendir=myopendir -Dmkdir=mymkdir"
  941. +    SYSOBJECTS="GG:lib/libnix/swapstack.o -noixemul"
  942. +    case "$CC_NAME" in
  943. +        ?++)
  944. +        CXXREQUIREDFLAGS="-funsigned-char $CXXREQUIREDFLAGS"
  945. +        ;;
  946. +    esac
  947. +    ;;
  948.      *)
  949.          { echo "configure: error: platform '`uname -s`' is not supported." 1>&2; exit 1; }
  950.          ;;
  951. @@ -1258,14 +1291,14 @@
  952.  #   Check for endianness
  953.  #--------------------------------------------------------------------
  954.  echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  955. -echo "configure:1262: checking whether byte ordering is bigendian" >&5
  956. +echo "configure:1295: checking whether byte ordering is bigendian" >&5
  957.  if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  958.    echo $ac_n "(cached) $ac_c" 1>&6
  959.  else
  960.    ac_cv_c_bigendian=unknown
  961.  # See if sys/param.h defines the BYTE_ORDER macro.
  962.  cat > conftest.$ac_ext <<EOF
  963. -#line 1269 "configure"
  964. +#line 1302 "configure"
  965.  #include "confdefs.h"
  966.  #include <sys/types.h>
  967.  #include <sys/param.h>
  968. @@ -1276,11 +1309,11 @@
  969.  #endif
  970.  ; return 0; }
  971.  EOF
  972. -if { (eval echo configure:1280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  973. +if { (eval echo configure:1313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  974.    rm -rf conftest*
  975.    # It does; now see whether it defined to BIG_ENDIAN or not.
  976.  cat > conftest.$ac_ext <<EOF
  977. -#line 1284 "configure"
  978. +#line 1317 "configure"
  979.  #include "confdefs.h"
  980.  #include <sys/types.h>
  981.  #include <sys/param.h>
  982. @@ -1291,7 +1324,7 @@
  983.  #endif
  984.  ; return 0; }
  985.  EOF
  986. -if { (eval echo configure:1295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  987. +if { (eval echo configure:1328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  988.    rm -rf conftest*
  989.    ac_cv_c_bigendian=yes
  990.  else
  991. @@ -1311,7 +1344,7 @@
  992.      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  993.  else
  994.    cat > conftest.$ac_ext <<EOF
  995. -#line 1315 "configure"
  996. +#line 1348 "configure"
  997.  #include "confdefs.h"
  998.  #ifdef __cplusplus
  999.  extern "C" void exit(int);
  1000. @@ -1327,7 +1360,7 @@
  1001.    exit (u.c[sizeof (long) - 1] == 1);
  1002.  }
  1003.  EOF
  1004. -if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1005. +if { (eval echo configure:1364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1006.  then
  1007.    ac_cv_c_bigendian=no
  1008.  else
  1009. @@ -1356,19 +1389,19 @@
  1010.  #--------------------------------------------------------------------
  1011.  
  1012.  echo $ac_n "checking builtin bool type""... $ac_c" 1>&6
  1013. -echo "configure:1360: checking builtin bool type" >&5
  1014. +echo "configure:1393: checking builtin bool type" >&5
  1015.  if eval "test \"`echo '$''{'jikes_cv_has_bool'+set}'`\" = set"; then
  1016.    echo $ac_n "(cached) $ac_c" 1>&6
  1017.  else
  1018.    cat > conftest.$ac_ext <<EOF
  1019. -#line 1365 "configure"
  1020. +#line 1398 "configure"
  1021.  #include "confdefs.h"
  1022.  
  1023.  int main() {
  1024.  bool some_boolean_value = true;
  1025.  ; return 0; }
  1026.  EOF
  1027. -if { (eval echo configure:1372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1028. +if { (eval echo configure:1405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1029.    rm -rf conftest*
  1030.    jikes_cv_has_bool=yes
  1031.  else
  1032. @@ -1390,12 +1423,12 @@
  1033.  #--------------------------------------------------------------------------
  1034.  
  1035.  echo $ac_n "checking for broken ushrt_max""... $ac_c" 1>&6
  1036. -echo "configure:1394: checking for broken ushrt_max" >&5
  1037. +echo "configure:1427: checking for broken ushrt_max" >&5
  1038.  if eval "test \"`echo '$''{'jikes_cv_ushrt_max_is_broken'+set}'`\" = set"; then
  1039.    echo $ac_n "(cached) $ac_c" 1>&6
  1040.  else
  1041.    cat > conftest.$ac_ext <<EOF
  1042. -#line 1399 "configure"
  1043. +#line 1432 "configure"
  1044.  #include "confdefs.h"
  1045.  
  1046.  #include <limits.h>
  1047. @@ -1407,7 +1440,7 @@
  1048.  return 0;
  1049.  ; return 0; }
  1050.  EOF
  1051. -if { (eval echo configure:1411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1052. +if { (eval echo configure:1444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1053.    rm -rf conftest*
  1054.    jikes_cv_ushrt_max_is_broken=no
  1055.  else
  1056. @@ -1428,7 +1461,7 @@
  1057.  #   Check for some headers which are not present on all supported platforms
  1058.  #----------------------------------------------------------------------------------
  1059.  echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
  1060. -echo "configure:1432: checking how to run the C++ preprocessor" >&5
  1061. +echo "configure:1465: checking how to run the C++ preprocessor" >&5
  1062.  if test -z "$CXXCPP"; then
  1063.  if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
  1064.    echo $ac_n "(cached) $ac_c" 1>&6
  1065. @@ -1441,12 +1474,12 @@
  1066.  cross_compiling=$ac_cv_prog_cxx_cross
  1067.    CXXCPP="${CXX-g++} -E"
  1068.    cat > conftest.$ac_ext <<EOF
  1069. -#line 1445 "configure"
  1070. +#line 1478 "configure"
  1071.  #include "confdefs.h"
  1072.  #include <stdlib.h>
  1073.  EOF
  1074.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1075. -{ (eval echo configure:1450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1076. +{ (eval echo configure:1483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1077.  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1078.  if test -z "$ac_err"; then
  1079.    :
  1080. @@ -1474,17 +1507,17 @@
  1081.  do
  1082.  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1083.  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1084. -echo "configure:1478: checking for $ac_hdr" >&5
  1085. +echo "configure:1511: checking for $ac_hdr" >&5
  1086.  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1087.    echo $ac_n "(cached) $ac_c" 1>&6
  1088.  else
  1089.    cat > conftest.$ac_ext <<EOF
  1090. -#line 1483 "configure"
  1091. +#line 1516 "configure"
  1092.  #include "confdefs.h"
  1093.  #include <$ac_hdr>
  1094.  EOF
  1095.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1096. -{ (eval echo configure:1488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1097. +{ (eval echo configure:1521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1098.  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1099.  if test -z "$ac_err"; then
  1100.    rm -rf conftest*
  1101. @@ -1515,12 +1548,12 @@
  1102.  #   Check for wint_t in wchar.h (broken on linux libc5, cygwin, maybe others?)
  1103.  #--------------------------------------------------------------------
  1104.  echo $ac_n "checking for wint_t in wchar.h""... $ac_c" 1>&6
  1105. -echo "configure:1519: checking for wint_t in wchar.h" >&5
  1106. +echo "configure:1552: checking for wint_t in wchar.h" >&5
  1107.  if eval "test \"`echo '$''{'jikes_cv_has_wint_t'+set}'`\" = set"; then
  1108.    echo $ac_n "(cached) $ac_c" 1>&6
  1109.  else
  1110.    cat > conftest.$ac_ext <<EOF
  1111. -#line 1524 "configure"
  1112. +#line 1557 "configure"
  1113.  #include "confdefs.h"
  1114.  
  1115.  #ifdef HAVE_WCHAR_H
  1116. @@ -1531,7 +1564,7 @@
  1117.  wint_t foo;
  1118.  ; return 0; }
  1119.  EOF
  1120. -if { (eval echo configure:1535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1121. +if { (eval echo configure:1568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1122.    rm -rf conftest*
  1123.    CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DHAVE_WINT_T" 
  1124.          jikes_cv_has_wint_t=yes
  1125. @@ -1548,7 +1581,7 @@
  1126.  
  1127.  if test $jikes_cv_has_wint_t = "no"; then
  1128.      cat > conftest.$ac_ext <<EOF
  1129. -#line 1552 "configure"
  1130. +#line 1585 "configure"
  1131.  #include "confdefs.h"
  1132.  
  1133.  #ifdef HAVE_WCHAR_H
  1134. @@ -1560,7 +1593,7 @@
  1135.  wint_t foo;
  1136.  ; return 0; }
  1137.  EOF
  1138. -if { (eval echo configure:1564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1139. +if { (eval echo configure:1597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1140.    :
  1141.  else
  1142.    echo "configure: failed program was:" >&5
  1143. @@ -1583,12 +1616,12 @@
  1144.  fi
  1145.  
  1146.  echo $ac_n "checking for declaration of wcslen""... $ac_c" 1>&6
  1147. -echo "configure:1587: checking for declaration of wcslen" >&5
  1148. +echo "configure:1620: checking for declaration of wcslen" >&5
  1149.  if eval "test \"`echo '$''{'ac_cv_declared_wcslen'+set}'`\" = set"; then
  1150.    echo $ac_n "(cached) $ac_c" 1>&6
  1151.  else
  1152.    cat > conftest.$ac_ext <<EOF
  1153. -#line 1592 "configure"
  1154. +#line 1625 "configure"
  1155.  #include "confdefs.h"
  1156.  
  1157.  #ifdef HAVE_WCHAR_H
  1158. @@ -1600,7 +1633,7 @@
  1159.   wcslen(NULL) 
  1160.  ; return 0; }
  1161.  EOF
  1162. -if { (eval echo configure:1604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1163. +if { (eval echo configure:1637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1164.    rm -rf conftest*
  1165.    ac_cv_declared_wcslen=yes
  1166.  else
  1167. @@ -1619,12 +1652,12 @@
  1168.  fi
  1169.  
  1170.  echo $ac_n "checking for declaration of wcscpy""... $ac_c" 1>&6
  1171. -echo "configure:1623: checking for declaration of wcscpy" >&5
  1172. +echo "configure:1656: checking for declaration of wcscpy" >&5
  1173.  if eval "test \"`echo '$''{'ac_cv_declared_wcscpy'+set}'`\" = set"; then
  1174.    echo $ac_n "(cached) $ac_c" 1>&6
  1175.  else
  1176.    cat > conftest.$ac_ext <<EOF
  1177. -#line 1628 "configure"
  1178. +#line 1661 "configure"
  1179.  #include "confdefs.h"
  1180.  
  1181.  #ifdef HAVE_WCHAR_H
  1182. @@ -1636,7 +1669,7 @@
  1183.   wcscpy(NULL, NULL) 
  1184.  ; return 0; }
  1185.  EOF
  1186. -if { (eval echo configure:1640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1187. +if { (eval echo configure:1673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1188.    rm -rf conftest*
  1189.    ac_cv_declared_wcscpy=yes
  1190.  else
  1191. @@ -1655,12 +1688,12 @@
  1192.  fi
  1193.  
  1194.  echo $ac_n "checking for declaration of wcsncpy""... $ac_c" 1>&6
  1195. -echo "configure:1659: checking for declaration of wcsncpy" >&5
  1196. +echo "configure:1692: checking for declaration of wcsncpy" >&5
  1197.  if eval "test \"`echo '$''{'ac_cv_declared_wcsncpy'+set}'`\" = set"; then
  1198.    echo $ac_n "(cached) $ac_c" 1>&6
  1199.  else
  1200.    cat > conftest.$ac_ext <<EOF
  1201. -#line 1664 "configure"
  1202. +#line 1697 "configure"
  1203.  #include "confdefs.h"
  1204.  
  1205.  #ifdef HAVE_WCHAR_H
  1206. @@ -1672,7 +1705,7 @@
  1207.   wcsncpy(NULL, NULL, 0) 
  1208.  ; return 0; }
  1209.  EOF
  1210. -if { (eval echo configure:1676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1211. +if { (eval echo configure:1709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1212.    rm -rf conftest*
  1213.    ac_cv_declared_wcsncpy=yes
  1214.  else
  1215. @@ -1691,12 +1724,12 @@
  1216.  fi
  1217.  
  1218.  echo $ac_n "checking for declaration of wcscat""... $ac_c" 1>&6
  1219. -echo "configure:1695: checking for declaration of wcscat" >&5
  1220. +echo "configure:1728: checking for declaration of wcscat" >&5
  1221.  if eval "test \"`echo '$''{'ac_cv_declared_wcscat'+set}'`\" = set"; then
  1222.    echo $ac_n "(cached) $ac_c" 1>&6
  1223.  else
  1224.    cat > conftest.$ac_ext <<EOF
  1225. -#line 1700 "configure"
  1226. +#line 1733 "configure"
  1227.  #include "confdefs.h"
  1228.  
  1229.  #ifdef HAVE_WCHAR_H
  1230. @@ -1708,7 +1741,7 @@
  1231.   wcscat(NULL, NULL) 
  1232.  ; return 0; }
  1233.  EOF
  1234. -if { (eval echo configure:1712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1235. +if { (eval echo configure:1745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1236.    rm -rf conftest*
  1237.    ac_cv_declared_wcscat=yes
  1238.  else
  1239. @@ -1727,12 +1760,12 @@
  1240.  fi
  1241.  
  1242.  echo $ac_n "checking for declaration of wcscmp""... $ac_c" 1>&6
  1243. -echo "configure:1731: checking for declaration of wcscmp" >&5
  1244. +echo "configure:1764: checking for declaration of wcscmp" >&5
  1245.  if eval "test \"`echo '$''{'ac_cv_declared_wcscmp'+set}'`\" = set"; then
  1246.    echo $ac_n "(cached) $ac_c" 1>&6
  1247.  else
  1248.    cat > conftest.$ac_ext <<EOF
  1249. -#line 1736 "configure"
  1250. +#line 1769 "configure"
  1251.  #include "confdefs.h"
  1252.  
  1253.  #ifdef HAVE_WCHAR_H
  1254. @@ -1744,7 +1777,7 @@
  1255.   wcscmp(NULL, NULL) 
  1256.  ; return 0; }
  1257.  EOF
  1258. -if { (eval echo configure:1748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1259. +if { (eval echo configure:1781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1260.    rm -rf conftest*
  1261.    ac_cv_declared_wcscmp=yes
  1262.  else
  1263. @@ -1763,12 +1796,12 @@
  1264.  fi
  1265.  
  1266.  echo $ac_n "checking for declaration of wcsncmp""... $ac_c" 1>&6
  1267. -echo "configure:1767: checking for declaration of wcsncmp" >&5
  1268. +echo "configure:1800: checking for declaration of wcsncmp" >&5
  1269.  if eval "test \"`echo '$''{'ac_cv_declared_wcsncmp'+set}'`\" = set"; then
  1270.    echo $ac_n "(cached) $ac_c" 1>&6
  1271.  else
  1272.    cat > conftest.$ac_ext <<EOF
  1273. -#line 1772 "configure"
  1274. +#line 1805 "configure"
  1275.  #include "confdefs.h"
  1276.  
  1277.  #ifdef HAVE_WCHAR_H
  1278. @@ -1780,7 +1813,7 @@
  1279.   wcsncmp(NULL, NULL, 0) 
  1280.  ; return 0; }
  1281.  EOF
  1282. -if { (eval echo configure:1784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1283. +if { (eval echo configure:1817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1284.    rm -rf conftest*
  1285.    ac_cv_declared_wcsncmp=yes
  1286.  else
  1287. @@ -1806,7 +1839,7 @@
  1288.  ac_saved_ld_flags=$LDFLAGS
  1289.  LDFLAGS=
  1290.  echo $ac_n "checking for ucnv_getDefaultName in -licu-uc""... $ac_c" 1>&6
  1291. -echo "configure:1810: checking for ucnv_getDefaultName in -licu-uc" >&5
  1292. +echo "configure:1843: checking for ucnv_getDefaultName in -licu-uc" >&5
  1293.  ac_lib_var=`echo icu-uc'_'ucnv_getDefaultName | sed 'y%./+-%__p_%'`
  1294.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1295.    echo $ac_n "(cached) $ac_c" 1>&6
  1296. @@ -1814,7 +1847,7 @@
  1297.    ac_save_LIBS="$LIBS"
  1298.  LIBS="-licu-uc  $LIBS"
  1299.  cat > conftest.$ac_ext <<EOF
  1300. -#line 1818 "configure"
  1301. +#line 1851 "configure"
  1302.  #include "confdefs.h"
  1303.  /* Override any gcc2 internal prototype to avoid an error.  */
  1304.  #ifdef __cplusplus
  1305. @@ -1828,7 +1861,7 @@
  1306.  ucnv_getDefaultName()
  1307.  ; return 0; }
  1308.  EOF
  1309. -if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1310. +if { (eval echo configure:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1311.    rm -rf conftest*
  1312.    eval "ac_cv_lib_$ac_lib_var=yes"
  1313.  else
  1314. @@ -1858,7 +1891,7 @@
  1315.  # Extract the first word of "javac ", so it can be a program name with args.
  1316.  set dummy javac ; ac_word=$2
  1317.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1318. -echo "configure:1862: checking for $ac_word" >&5
  1319. +echo "configure:1895: checking for $ac_word" >&5
  1320.  if eval "test \"`echo '$''{'ac_cv_prog_JAVAC'+set}'`\" = set"; then
  1321.    echo $ac_n "(cached) $ac_c" 1>&6
  1322.  else
  1323. @@ -1892,7 +1925,7 @@
  1324.      # Extract the first word of "jikes ", so it can be a program name with args.
  1325.  set dummy jikes ; ac_word=$2
  1326.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1327. -echo "configure:1896: checking for $ac_word" >&5
  1328. +echo "configure:1929: checking for $ac_word" >&5
  1329.  if eval "test \"`echo '$''{'ac_cv_prog_JAVAC'+set}'`\" = set"; then
  1330.    echo $ac_n "(cached) $ac_c" 1>&6
  1331.  else
  1332. @@ -1931,7 +1964,7 @@
  1333.  # Extract the first word of "java ", so it can be a program name with args.
  1334.  set dummy java ; ac_word=$2
  1335.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1336. -echo "configure:1935: checking for $ac_word" >&5
  1337. +echo "configure:1968: checking for $ac_word" >&5
  1338.  if eval "test \"`echo '$''{'ac_cv_prog_JAVA'+set}'`\" = set"; then
  1339.    echo $ac_n "(cached) $ac_c" 1>&6
  1340.  else
  1341. @@ -2078,6 +2111,7 @@
  1342.  
  1343.  trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1344.  
  1345. +
  1346.  # Transform confdefs.h into DEFS.
  1347.  # Protect against shell expansion while executing Makefile rules.
  1348.  # Protect against Makefile macro expansion.
  1349. @@ -2096,7 +2130,9 @@
  1350.  : ${CONFIG_STATUS=./config.status}
  1351.  
  1352.  echo creating $CONFIG_STATUS
  1353. -rm -f $CONFIG_STATUS
  1354. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  1355. +# being executed, so just move it out of the way instead.
  1356. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1357.  cat > $CONFIG_STATUS <<EOF
  1358.  #! /bin/sh
  1359.  # Generated automatically by configure.
  1360. @@ -2158,6 +2194,10 @@
  1361.  s%@includedir@%$includedir%g
  1362.  s%@oldincludedir@%$oldincludedir%g
  1363.  s%@infodir@%$infodir%g
  1364. +s%@guidedir@%$guidedir%g
  1365. +s%@htmldir@%$htmldir%g
  1366. +s%@psdir@%$psdir%g
  1367. +s%@dvidir@%$dvidir%g
  1368.  s%@mandir@%$mandir%g
  1369.  s%@CXX@%$CXX%g
  1370.  s%@OBJEXT@%$OBJEXT%g
  1371. @@ -2279,6 +2319,7 @@
  1372.  exit 0
  1373.  EOF
  1374.  chmod +x $CONFIG_STATUS
  1375. +rm -f CONFIG.STATUS.old
  1376.  rm -fr confdefs* $ac_clean_files
  1377.  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1378.  
  1379. diff -u -r -N jikes-1.11.orig/src/configure.in jikes-1.11/src/configure.in
  1380. --- jikes-1.11.orig/src/configure.in    Sat Jan  8 00:19:46 2000
  1381. +++ jikes-1.11/src/configure.in    Sun Jan 16 18:33:13 2000
  1382. @@ -295,6 +295,15 @@
  1383.          EXEEXT=.exe
  1384.  
  1385.          ;;
  1386. +    AmigaOS)
  1387. +    CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DBIGENDIAN -Dstat=mystat -Dfopen=myfopen -Dopendir=myopendir -Dmkdir=mymkdir"
  1388. +    SYSOBJECTS="GG:lib/libnix/swapstack.o -noixemul"
  1389. +    case "$CC_NAME" in
  1390. +        ?++)
  1391. +        CXXREQUIREDFLAGS="-funsigned-char $CXXREQUIREDFLAGS"
  1392. +        ;;
  1393. +    esac
  1394. +    ;;
  1395.      *)
  1396.          AC_MSG_ERROR([platform '`uname -s`' is not supported.])
  1397.          ;;
  1398. diff -u -r -N jikes-1.11.orig/src/control.cpp jikes-1.11/src/control.cpp
  1399. --- jikes-1.11.orig/src/control.cpp    Thu Nov 18 05:37:22 1999
  1400. +++ jikes-1.11/src/control.cpp    Sun Jan 16 17:49:02 2000
  1401. @@ -642,7 +642,7 @@
  1402.  // When searching for a directory in the system, if it is not already present in the hierarchy
  1403.  // insert it and attempt to read it from the system...
  1404.  //
  1405. -#ifdef UNIX_FILE_SYSTEM
  1406. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1407.      DirectorySymbol *Control::ProcessSubdirectories(wchar_t *source_name, int source_name_length)
  1408.      {
  1409.          int name_length = (source_name_length < 0 ? 0 : source_name_length);
  1410. @@ -950,7 +950,7 @@
  1411.      //
  1412.      DirectorySymbol *directory_symbol;
  1413.      NameSymbol *file_name_symbol;
  1414. -#ifdef UNIX_FILE_SYSTEM
  1415. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1416.      int len;
  1417.      for (len = name_length - 1; len >= 0 && name[len] != U_SLASH; len--)
  1418.          ;
  1419. diff -u -r -N jikes-1.11.orig/src/getclass.cpp jikes-1.11/src/getclass.cpp
  1420. --- jikes-1.11.orig/src/getclass.cpp    Wed Nov  3 02:46:31 1999
  1421. +++ jikes-1.11/src/getclass.cpp    Sun Jan 16 17:49:02 2000
  1422. @@ -371,7 +371,7 @@
  1423.      }
  1424.      else
  1425.      {
  1426. -#ifdef UNIX_FILE_SYSTEM
  1427. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1428.          FILE *classfile = ::SystemFopen(file_symbol -> FileName(), "rb");
  1429.          if (classfile == NULL)
  1430.          {
  1431. diff -u -r -N jikes-1.11.orig/src/jikes.cpp jikes-1.11/src/jikes.cpp
  1432. --- jikes-1.11.orig/src/jikes.cpp    Tue Jan 11 04:50:15 2000
  1433. +++ jikes-1.11/src/jikes.cpp    Sun Jan 16 17:49:02 2000
  1434. @@ -14,6 +14,15 @@
  1435.  #include "control.h"
  1436.  #include <stdio.h>
  1437.  
  1438. +#ifdef __amigaos__
  1439. +// Jikes definitely needs more than the default 4K stack. Without ICU support,
  1440. +// about 8K seem to be enough. With ICU support stack requirements rise to
  1441. +// about 26K, so we round this value up to 30K to play it safe.
  1442. +extern "C" {
  1443. +  unsigned long __stack = 30000;
  1444. +}
  1445. +#endif
  1446. +
  1447.  int main(int argc, char *argv[])
  1448.  {
  1449.      int return_code;
  1450. diff -u -r -N jikes-1.11.orig/src/option.cpp jikes-1.11/src/option.cpp
  1451. --- jikes-1.11.orig/src/option.cpp    Thu Jan  6 10:24:30 2000
  1452. +++ jikes-1.11/src/option.cpp    Sun Jan 16 17:58:29 2000
  1453. @@ -265,7 +265,7 @@
  1454.              else if (strcmp(arguments.argv[i], "-d") == 0 && ((i + 1) < arguments.argc))
  1455.              {
  1456.                  ++i;
  1457. -#ifdef UNIX_FILE_SYSTEM
  1458. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1459.                  int length = strlen(arguments.argv[i]);
  1460.                  directory = new char[length + 1];
  1461.                  strcpy(directory, arguments.argv[i]);
  1462. diff -u -r -N jikes-1.11.orig/src/option.h jikes-1.11/src/option.h
  1463. --- jikes-1.11.orig/src/option.h    Fri Jan  7 23:23:58 2000
  1464. +++ jikes-1.11/src/option.h    Sun Jan 16 17:49:08 2000
  1465. @@ -17,6 +17,10 @@
  1466.  #include <ctype.h>
  1467.  #include "code.h"
  1468.  #include "tuple.h"
  1469. +#ifdef AMIGAOS_FILE_SYSTEM
  1470. +#include <unistd.h>
  1471. +#include <sys/param.h>
  1472. +#endif
  1473.  
  1474.  #ifdef HAVE_LIB_ICU_UC
  1475.  # include <ucnv.h>
  1476. @@ -105,6 +109,13 @@
  1477.      char *GetMainCurrentDirectory()
  1478.      {
  1479.          return current_directory[main_disk];
  1480. +    }
  1481. +#elif defined(AMIGAOS_FILE_SYSTEM)
  1482. +public:
  1483. +    char *GetMainCurrentDirectory()
  1484. +    {
  1485. +    static char buf[MAXPATHLEN+1];
  1486. +    return getcwd(buf, sizeof(buf));
  1487.      }
  1488.  #endif
  1489.  
  1490. diff -u -r -N jikes-1.11.orig/src/stream.cpp jikes-1.11/src/stream.cpp
  1491. --- jikes-1.11.orig/src/stream.cpp    Tue Dec 14 19:31:53 1999
  1492. +++ jikes-1.11/src/stream.cpp    Sun Jan 16 17:49:09 2000
  1493. @@ -309,7 +309,7 @@
  1494.          file_symbol -> mtime = status.st_mtime; // actual time stamp of file read
  1495.          file_symbol -> lex_stream = this;
  1496.  
  1497. -#ifdef UNIX_FILE_SYSTEM
  1498. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1499.          FILE *srcfile = ::SystemFopen(FileName(), "r");
  1500.          if (srcfile != NULL)
  1501.          {
  1502. @@ -375,7 +375,7 @@
  1503.  
  1504.          if (status.st_mtime == file_symbol -> mtime)
  1505.          {
  1506. -#ifdef UNIX_FILE_SYSTEM
  1507. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1508.              FILE *srcfile = ::SystemFopen(FileName(), "r");
  1509.              if (srcfile != NULL)
  1510.              {
  1511. diff -u -r -N jikes-1.11.orig/src/symbol.cpp jikes-1.11/src/symbol.cpp
  1512. --- jikes-1.11.orig/src/symbol.cpp    Thu Jan  6 10:24:30 2000
  1513. +++ jikes-1.11/src/symbol.cpp    Sun Jan 16 17:49:10 2000
  1514. @@ -19,7 +19,7 @@
  1515.  #include "set.h"
  1516.  #include "case.h"
  1517.  
  1518. -#ifdef UNIX_FILE_SYSTEM
  1519. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1520.  #include <dirent.h>
  1521.  #elif defined(WIN32_FILE_SYSTEM)
  1522.  #include <windows.h>
  1523. @@ -763,7 +763,7 @@
  1524.      {
  1525.          entries = new DirectoryTable();
  1526.  
  1527. -#ifdef UNIX_FILE_SYSTEM
  1528. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1529.          DIR *directory = opendir(this -> DirectoryName());
  1530.          if (directory)
  1531.          {
  1532. diff -u -r -N jikes-1.11.orig/src/symbol.h jikes-1.11/src/symbol.h
  1533. --- jikes-1.11.orig/src/symbol.h    Thu Nov 18 05:37:23 1999
  1534. +++ jikes-1.11/src/symbol.h    Sun Jan 16 17:49:11 2000
  1535. @@ -2307,6 +2307,19 @@
  1536.      {
  1537.          return Case::StringSegmentEqual(suffix, java_suffix, java_suffix_length);
  1538.      }
  1539. +#elif defined(AMIGAOS_FILE_SYSTEM)
  1540. +    // Do not use StringSegmentEqual() as in the WIN32 case, because that
  1541. +    // function may check beyond the end of the string, thus possibly causing
  1542. +    // enforcer hits.
  1543. +    inline bool FileSymbol::IsClassSuffix(char *suffix)
  1544. +    {
  1545. +        return (strncasecmp(suffix, class_suffix, class_suffix_length) == 0);
  1546. +    }
  1547. +
  1548. +    inline bool  FileSymbol::IsJavaSuffix(char *suffix)
  1549. +    {
  1550. +        return (strncasecmp(suffix, java_suffix, java_suffix_length) == 0);
  1551. +    }
  1552.  #endif
  1553.  
  1554.  #endif // ifndef symbol_INCLUDED
  1555. diff -u -r -N jikes-1.11.orig/src/system.cpp jikes-1.11/src/system.cpp
  1556. --- jikes-1.11.orig/src/system.cpp    Thu Nov 18 05:37:23 1999
  1557. +++ jikes-1.11/src/system.cpp    Sun Jan 16 17:49:11 2000
  1558. @@ -428,7 +428,7 @@
  1559.  
  1560.  void Control::ProcessPath()
  1561.  {
  1562. -#ifdef UNIX_FILE_SYSTEM
  1563. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1564.      NameSymbol *dot_path_name_symbol = dot_name_symbol;
  1565.  
  1566.      //
  1567. @@ -498,7 +498,7 @@
  1568.                  path_name[i] = head[i];
  1569.              path_name[path_name_length] = U_NULL;
  1570.  
  1571. -#ifdef UNIX_FILE_SYSTEM
  1572. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1573.  
  1574.              input_name = path_name;
  1575.  
  1576. diff -u -r -N jikes-1.11.orig/src/tuple.h jikes-1.11/src/tuple.h
  1577. --- jikes-1.11.orig/src/tuple.h    Fri Oct 15 05:30:42 1999
  1578. +++ jikes-1.11/src/tuple.h    Sun Jan 16 17:49:11 2000
  1579. @@ -419,7 +419,7 @@
  1580.  
  1581.      inline bool WriteToFile(char *file_name)
  1582.      {
  1583. -#ifdef UNIX_FILE_SYSTEM
  1584. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1585.          FILE *file = ::SystemFopen(file_name, "wb");
  1586.          if (file  ==  (FILE *) NULL)
  1587.              return false;
  1588. diff -u -r -N jikes-1.11.orig/src/unzip.cpp jikes-1.11/src/unzip.cpp
  1589. --- jikes-1.11.orig/src/unzip.cpp    Thu Aug 26 18:34:10 1999
  1590. +++ jikes-1.11/src/unzip.cpp    Sun Jan 16 17:49:12 2000
  1591. @@ -44,7 +44,7 @@
  1592.  struct huft *Unzip::global_fixed_td;    /* inflate static */
  1593.  int Unzip::global_fixed_bl,
  1594.      Unzip::global_fixed_bd;
  1595. -#ifdef UNIX_FILE_SYSTEM
  1596. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1597.      FILE *Unzip::global_file; /* file pointer for zip file */
  1598.  #elif defined(WIN32_FILE_SYSTEM)
  1599.      char *Unzip::global_file; /* file pointer for zip file */
  1600. @@ -749,7 +749,7 @@
  1601.    return 0;
  1602.  }
  1603.  
  1604. -#ifdef UNIX_FILE_SYSTEM
  1605. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1606.      int Unzip::unzip8(FILE * zipfile, char *buffer)
  1607.  #elif defined(WIN32_FILE_SYSTEM)
  1608.      int Unzip::unzip8(char *zipfile, char *buffer)
  1609. @@ -790,7 +790,7 @@
  1610.  }
  1611.  
  1612.  
  1613. -#ifdef UNIX_FILE_SYSTEM
  1614. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1615.      int Unzip::UncompressFile0(FILE *zipfile, char *buffer, long buffer_length)
  1616.      {
  1617.          fread(buffer, sizeof(char), buffer_length, zipfile);
  1618. diff -u -r -N jikes-1.11.orig/src/unzip.h jikes-1.11/src/unzip.h
  1619. --- jikes-1.11.orig/src/unzip.h    Thu Aug 26 18:34:10 1999
  1620. +++ jikes-1.11/src/unzip.h    Sun Jan 16 17:49:12 2000
  1621. @@ -176,7 +176,7 @@
  1622.  
  1623.  #ifndef NEXTBYTE        /* default is to simply get a byte from stdin */
  1624.  /* default for   define NEXTBYTE is  getchar() */
  1625. -#ifdef UNIX_FILE_SYSTEM
  1626. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1627.      #define NEXTBYTE getc(global_file)
  1628.  #elif defined(WIN32_FILE_SYSTEM)
  1629.      #define NEXTBYTE ((u1) (*global_file++))
  1630. @@ -279,7 +279,7 @@
  1631.      static struct huft *global_fixed_td;    /* inflate static */
  1632.      static int global_fixed_bl,
  1633.                 global_fixed_bd;
  1634. -#ifdef UNIX_FILE_SYSTEM
  1635. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1636.      static FILE *global_file; /* file pointer for zip file */
  1637.  #elif defined(WIN32_FILE_SYSTEM)
  1638.      static char *global_file;
  1639. @@ -341,7 +341,7 @@
  1640.      static int inflate_block(int *);
  1641.      static int inflate_free();
  1642.  
  1643. -#ifdef UNIX_FILE_SYSTEM
  1644. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1645.      static int unzip8(FILE * zipfile, char *buffer);
  1646.  
  1647.      static int UncompressFile0(FILE *, char *, long);
  1648. diff -u -r -N jikes-1.11.orig/src/zip.cpp jikes-1.11/src/zip.cpp
  1649. --- jikes-1.11.orig/src/zip.cpp    Thu Aug 26 18:34:11 1999
  1650. +++ jikes-1.11/src/zip.cpp    Sun Jan 16 17:49:12 2000
  1651. @@ -20,7 +20,7 @@
  1652.  // The ZipFile methods follow
  1653.  //
  1654.  //************************************************************************************************
  1655. -#ifdef UNIX_FILE_SYSTEM
  1656. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1657.      int (*ZipFile::uncompress_file[10]) (FILE *, char *, long) =
  1658.      {
  1659.          UncompressFile0,
  1660. @@ -71,6 +71,7 @@
  1661.      {
  1662.          file_buffer += length;
  1663.      }
  1664. +
  1665.  #endif
  1666.  
  1667.  
  1668. @@ -100,7 +101,7 @@
  1669.  
  1670.      assert(zip -> IsValid());
  1671.  
  1672. -#ifdef UNIX_FILE_SYSTEM
  1673. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1674.      zipfile = zip -> zipfile;
  1675.      int rc = fseek(zipfile, file_symbol -> offset, SEEK_SET);
  1676.  
  1677. @@ -123,7 +124,7 @@
  1678.      u2 extra_field_length                    = GetU2();
  1679.      Skip(filename_length + extra_field_length);
  1680.  
  1681. -#ifdef UNIX_FILE_SYSTEM
  1682. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1683.      this -> buffer = new char[file_symbol -> uncompressed_size];
  1684.      if (! uncompress_file[compression_method < 9 ? compression_method : 9](zipfile, this -> buffer, file_symbol -> uncompressed_size))
  1685.      {
  1686. @@ -319,7 +320,7 @@
  1687.                                                    magic(0),
  1688.                                                    zipbuffer(NULL)
  1689.  {
  1690. -#ifdef UNIX_FILE_SYSTEM
  1691. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1692.      zipfile = ::SystemFopen(zipfile_name, "rb");
  1693.      if (zipfile)
  1694.      {
  1695. @@ -355,7 +356,7 @@
  1696.  
  1697.  Zip::~Zip()
  1698.  {
  1699. -#ifdef UNIX_FILE_SYSTEM
  1700. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1701.      delete [] zipbuffer;
  1702.      if (zipfile)
  1703.          fclose(zipfile);
  1704. @@ -392,7 +393,7 @@
  1705.                   // u2 total_number_of_entries_in_the_  = GetU2();
  1706.          u4 central_directory_size                       = GetU4();
  1707.  
  1708. -#ifdef UNIX_FILE_SYSTEM
  1709. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1710.          int rc = fseek(zipfile, -((int) central_directory_size + 22), SEEK_END);
  1711.  
  1712.          assert(rc == 0);
  1713. diff -u -r -N jikes-1.11.orig/src/zip.h jikes-1.11/src/zip.h
  1714. --- jikes-1.11.orig/src/zip.h    Tue Jul  6 17:00:40 1999
  1715. +++ jikes-1.11/src/zip.h    Sun Jan 16 17:49:12 2000
  1716. @@ -41,7 +41,7 @@
  1717.      u4 GetU4();
  1718.      void Skip(u4 length);
  1719.  
  1720. -#ifdef UNIX_FILE_SYSTEM
  1721. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1722.          FILE *zipfile;
  1723.          static int (*uncompress_file[10]) (FILE *, char *, long);
  1724.      public:
  1725. @@ -88,7 +88,7 @@
  1726.      DirectorySymbol *ProcessSubdirectoryEntries(DirectorySymbol *, char *, int);
  1727.      void ProcessDirectoryEntry();
  1728.  
  1729. -#ifdef UNIX_FILE_SYSTEM
  1730. +#if defined(UNIX_FILE_SYSTEM) || defined(AMIGAOS_FILE_SYSTEM)
  1731.      FILE *zipfile;
  1732.  #elif defined(WIN32_FILE_SYSTEM)
  1733.      HANDLE zipfile, mapfile;
  1734.