home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / bc-1.03-diffs.gz / bc-1.03-diffs
Text File  |  1996-10-13  |  63KB  |  1,865 lines

  1. This file contains patches that transform the baseline version into
  2. the amiga version.  Assuming that you have unarchived the baseline
  3. version in the current directory, just run the command:
  4.  
  5.     patch -p1 -E -b .pbak <diff-file
  6.  
  7. where 'diff-file' is this patch file.  After running patch you should
  8. remove all the generated *.pbak files, and look for any *.rej files
  9. that indicate a problem patching the baseline source.
  10.  
  11. diff -rup --new-file baseline/fsf/bc/Makefile.in amiga/fsf/bc/Makefile.in
  12. --- baseline/fsf/bc/Makefile.in    Fri Nov  4 00:01:16 1994
  13. +++ amiga/fsf/bc/Makefile.in    Sat Sep 28 00:00:00 1996
  14. @@ -29,6 +29,9 @@ bindir = $(exec_prefix)/bin
  15.  datadir = $(prefix)/lib
  16.  libdir = $(prefix)/lib
  17.  infodir = $(prefix)/info
  18. +guidedir = $(prefix)/guide
  19. +dvidir = $(prefix)/dvi
  20. +psdir = $(prefix)/ps
  21.  
  22.  # Where to install the manual pages.
  23.  mandir = $(prefix)/man/man1
  24. @@ -63,6 +66,7 @@ LDFLAGS = @LDFLAGS@
  25.  
  26.  MAKEINFO = makeinfo
  27.  TEXI2DVI = texi2dvi
  28. +DVIPS = dvips
  29.  
  30.  # stuff for cflags
  31.  
  32. @@ -97,7 +101,7 @@ DISTFILES = COPYING Makefile.in Install 
  33.          number.h proto.h scan.l util.c vfprintf.c README bc.1 sbc.y \
  34.          fix_libmath.h libmath.b configure configure.in config.h.in \
  35.          acconfig.h ChangeLog \
  36. -        dc.1 dc.texinfo \
  37. +        dc.1 dc.texinfo dc.guide dc.dvi dc.ps \
  38.           dc-array.c dc-eval.c dc-misc.c dc-number.c dc-stack.c \
  39.          dc-string.c dc.h dc-proto.h dc-regdef.h dc-version.h \
  40.          install-sh
  41. @@ -108,10 +112,10 @@ DCOFILES = dc-misc.$O dc-eval.$O dc-stac
  42.  #
  43.  SUBDIRS = Examples Test
  44.  #
  45. -EXTRAFILES = bc.c.dist scan.c.dist y.tab.h.dist libmath.h dc.info
  46. +EXTRAFILES = bc.c.dist scan.c.dist y.tab.h.dist libmath.h dc.info dc.guide dc.dvi dc.ps
  47.  #
  48.  
  49. -all: bc dc dc.info
  50. +all: bc dc dc.info dc.guide dc.dvi dc.ps
  51.  
  52.  ### targets required by GNU Coding standards ###
  53.  
  54. @@ -137,7 +141,7 @@ config.h.in:
  55.      autoheader
  56.  
  57.  config.h:    config.h.in configure
  58. -    ./configure
  59. +    $(SHELL) $(srcdir)/configure
  60.  
  61.  libmath.h: libmath.b
  62.      $(MAKE) fbc
  63. @@ -163,26 +167,35 @@ install: installdirs bc libmath.b config
  64.      fi
  65.      $(INSTALL_DATA) $(srcdir)/bc.1 $(mandir)
  66.      $(INSTALL_DATA) $(srcdir)/dc.1 $(mandir)
  67. -    $(INSTALL_DATA) $(srcdir)/dc.info $(infodir)
  68. +    $(INSTALL_DATA) dc.info $(infodir)
  69. +    $(INSTALL_DATA) dc.guide $(guidedir)
  70. +    $(INSTALL_DATA) dc.dvi $(dvidir)
  71. +    $(INSTALL_DATA) dc.ps $(psdir)
  72.  
  73.  installdirs:
  74. -    -mkdir $(prefix)
  75. -    -mkdir $(bindir)
  76. +    if [ -d $(prefix) ]; then true; else mkdir $(prefix); fi
  77. +    if [ -d $(bindir) ]; then true; else mkdir $(bindir); fi
  78.      -if grep -s "define BC_MATH_FILE" config.h; \
  79. -      then mkdir $(libdir)
  80. +      then if [ -d $(libdir) ]; then true; else mkdir $(libdir); fi; \
  81.        else true; \
  82.      fi
  83. -    -mkdir $(mandir)
  84. -    -mkdir $(infodir)
  85. +    if [ -d $(prefix) ]; then true; else mkdir $(mandir); fi
  86. +    if [ -d $(infodir) ]; then true; else mkdir $(infodir); fi
  87. +    if [ -d $(guidedir) ]; then true; else mkdir $(guidedir); fi
  88. +    if [ -d $(dvidir) ]; then true; else mkdir $(dvidir); fi
  89. +    if [ -d $(psdir) ]; then true; else mkdir $(psdir); fi
  90.  
  91.  uninstall: 
  92.      rm -f $(bindir)/bc $(bindir)/dc
  93.      if grep -s "define BC_MATH_FILE" config.h; \
  94. -      then rm -f $(libdir)/libmath.b;
  95. +      then rm -f $(libdir)/libmath.b; \
  96.        else true; \
  97.      fi
  98.      rm -f $(mandir)/bc1 $(mandir)/dc.1
  99.      rm -f $(infodir)/dc.info
  100. +    rm -f $(guidedir)/dc.guide
  101. +    rm -f $(dvidir)/dc.dvi
  102. +    rm -f $(psdir)/dc.ps
  103.  
  104.  dist: $(EXTRAFILES)
  105.      OF=`sed -n 's/.*\([0-9][0-9]*\.[0-9][0-9]*\).*/bc-\1/p' version.h` \
  106. @@ -258,24 +271,26 @@ distclean: clean
  107.  mostlyclean: distclean
  108.  
  109.  realclean: distclean
  110. -    rm -rf *.dist configure libmath.h dc.info config.h.in
  111. +    rm -rf *.dist configure libmath.h dc.info dc.guide dc.dvi dc.ps config.h.in
  112.  
  113.  scan.c: scan.l
  114. -    $(LEX) scan.l
  115. +    $(LEX) $(srcdir)/scan.l
  116.      mv lex.yy.c scan.c
  117.  
  118.  y.tab.h bc.c: bc.y
  119.      @echo "expect 1 shift/reduce conflict"
  120. -    $(YACC) -d bc.y
  121. +    $(YACC) -d $(srcdir)/bc.y
  122.      mv y.tab.c bc.c
  123.  
  124.  sbc.c: sbc.y
  125. -    $(YACC) -d sbc.y
  126. +    $(YACC) -d $(srcdir)/sbc.y
  127.      mv y.tab.c sbc.c
  128.  
  129.  # Information files
  130.  info: dc.info
  131. +guide: dc.guide
  132.  dvi: dc.dvi
  133. +ps: dc.ps
  134.  
  135.  #bc.info: bc.texinfo
  136.  #    $(MAKEINFO) -I$(srcdir) --no-split bc.texinfo
  137. @@ -286,9 +301,14 @@ dvi: dc.dvi
  138.  dc.info: dc.texinfo
  139.      $(MAKEINFO) -I$(srcdir) --no-split dc.texinfo
  140.  
  141. +dc.guide: dc.texinfo
  142. +    $(MAKEINFO) -I$(srcdir) --no-split dc.texinfo --amiga -o $@
  143. +
  144.  dc.dvi: dc.texinfo
  145.      $(TEXI2DVI) $(srcdir)/dc.texinfo
  146.  
  147. +dc.ps: dc.dvi
  148. +    $(DVIPS) -o $@ $?
  149.  
  150.  global.$O:  bcdefs.h global.h libmath.h global.c
  151.  bc.$O:        bcdefs.h global.h bc.y
  152. diff -rup --new-file baseline/fsf/bc/Product-Info amiga/fsf/bc/Product-Info
  153. --- baseline/fsf/bc/Product-Info    Wed Dec 31 17:00:00 1969
  154. +++ amiga/fsf/bc/Product-Info    Sat Sep 28 00:00:00 1996
  155. @@ -0,0 +1,38 @@
  156. +.name
  157. +bc
  158. +.fullname
  159. +GNU bc
  160. +.type
  161. +Miscellaneous
  162. +.short
  163. +GNU arbitrary precision calculator lang.
  164. +.description
  165. +A language that supports arbitrary precision numbers with interactive
  166. +execution of statements.  There are some similarities in the syntax to
  167. +the C programming language.
  168. +
  169. +A standard math library is available by command line option.  If
  170. +requested, the math library is defined before processing any files.
  171. +bc starts by processing code from all the files listed on the command
  172. +line in the order listed.  After all files have been processed, bc
  173. +reads from the standard input.  All code is executed as it is read.
  174. +(If a file contains a command to halt the processor, bc will never
  175. +read from the standard input.)
  176. +
  177. +This version of bc contains several extensions beyond traditional bc
  178. +implementations and the POSIX draft standard.  Command line options
  179. +can cause these extensions to print a warning or to be rejected.  This
  180. +document describes the language accepted by this processor.
  181. +Extensions will be identified as such.
  182. +.version
  183. +1.03
  184. +.author
  185. +Philip A. Nelson
  186. +.requirements
  187. +Binary version requires ixemul.library.
  188. +.distribution
  189. +GNU Public License
  190. +.email
  191. +phil@cs.wwu.edu
  192. +.described-by
  193. +Fred Fish (fnf@amigalib.com)
  194. diff -rup --new-file baseline/fsf/bc/configure amiga/fsf/bc/configure
  195. --- baseline/fsf/bc/configure    Thu Nov  3 15:45:26 1994
  196. +++ amiga/fsf/bc/configure    Mon Sep 30 22:36:25 1996
  197. @@ -1,8 +1,8 @@
  198. -#!/bin/sh
  199. +#! /bin/sh
  200.  
  201.  # Guess values for system-dependent variables and create Makefiles.
  202. -# Generated automatically using autoconf version 2.0 
  203. -# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  204. +# Generated automatically using autoconf version 2.10 
  205. +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  206.  #
  207.  # This configure script is free software; the Free Software Foundation
  208.  # gives unlimited permission to copy, distribute and modify it.
  209. @@ -12,37 +12,6 @@ ac_help=
  210.  ac_default_prefix=/usr/local
  211.  # Any additions from configure.in:
  212.  
  213. -# Omit some internal or obsolete options to make the list less imposing.
  214. -ac_usage="Usage: configure [options] [host]
  215. -Options: [defaults in brackets after descriptions]
  216. -Configuration:
  217. -  --cache-file=FILE       cache test results in FILE
  218. -  --help                  print this message
  219. -  --no-create             do not create output files
  220. -  --quiet, --silent       do not print \`checking...' messages
  221. -  --version               print the version of autoconf that created configure
  222. -Directory and file names:
  223. -  --prefix=PREFIX         install architecture-independent files in PREFIX
  224. -                          [$ac_default_prefix]
  225. -  --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  226. -                          [same as prefix]
  227. -  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  228. -  --program-prefix=PREFIX prepend PREFIX to installed program names
  229. -  --program-suffix=SUFFIX append SUFFIX to installed program names
  230. -  --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  231. -Host type:
  232. -  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  233. -  --host=HOST             configure for HOST [guessed]
  234. -  --target=TARGET         configure for TARGET [TARGET=HOST]
  235. -Features and packages:
  236. -  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  237. -  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  238. -  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  239. -  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  240. -  --x-includes=DIR        X include files are in DIR
  241. -  --x-libraries=DIR       X library files are in DIR
  242. ---enable and --with options recognized:$ac_help"
  243. -
  244.  # Initialize some variables set by options.
  245.  # The variables have the same names as the options, with
  246.  # dashes changed to underlines.
  247. @@ -64,9 +33,25 @@ target=NONE
  248.  verbose=
  249.  x_includes=NONE
  250.  x_libraries=NONE
  251. +bindir='${exec_prefix}/bin'
  252. +sbindir='${exec_prefix}/sbin'
  253. +libexecdir='${exec_prefix}/libexec'
  254. +datadir='${prefix}/share'
  255. +sysconfdir='${prefix}/etc'
  256. +sharedstatedir='${prefix}/com'
  257. +localstatedir='${prefix}/var'
  258. +libdir='${exec_prefix}/lib'
  259. +includedir='${prefix}/include'
  260. +oldincludedir='/usr/include'
  261. +infodir='${prefix}/info'
  262. +guidedir='${prefix}/guide'
  263. +psdir='${prefix}/ps'
  264. +dvidir='${prefix}/dvi'
  265. +mandir='${prefix}/man'
  266.  
  267.  # Initialize some other variables.
  268.  subdirs=
  269. +MFLAGS= MAKEFLAGS=
  270.  
  271.  ac_prev=
  272.  for ac_option
  273. @@ -88,9 +73,14 @@ do
  274.  
  275.    case "$ac_option" in
  276.  
  277. -  -build | --build | --buil | --bui | --bu | --b)
  278. +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  279. +    ac_prev=bindir ;;
  280. +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  281. +    bindir="$ac_optarg" ;;
  282. +
  283. +  -build | --build | --buil | --bui | --bu)
  284.      ac_prev=build ;;
  285. -  -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  286. +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  287.      build="$ac_optarg" ;;
  288.  
  289.    -cache-file | --cache-file | --cache-fil | --cache-fi \
  290. @@ -100,6 +90,12 @@ do
  291.    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  292.      cache_file="$ac_optarg" ;;
  293.  
  294. +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  295. +    ac_prev=datadir ;;
  296. +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  297. +  | --da=*)
  298. +    datadir="$ac_optarg" ;;
  299. +
  300.    -disable-* | --disable-*)
  301.      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  302.      # Reject names that are not valid shell variable names.
  303. @@ -136,9 +132,61 @@ do
  304.      with_gas=yes ;;
  305.  
  306.    -help | --help | --hel | --he)
  307. +    # Omit some internal or obsolete options to make the list less imposing.
  308. +    # This message is too long to be a string in the A/UX 3.1 sh.
  309.      cat << EOF
  310. -$ac_usage
  311. +Usage: configure [options] [host]
  312. +Options: [defaults in brackets after descriptions]
  313. +Configuration:
  314. +  --cache-file=FILE       cache test results in FILE
  315. +  --help                  print this message
  316. +  --no-create             do not create output files
  317. +  --quiet, --silent       do not print \`checking...' messages
  318. +  --version               print the version of autoconf that created configure
  319. +Directory and file names:
  320. +  --prefix=PREFIX         install architecture-independent files in PREFIX
  321. +                          [$ac_default_prefix]
  322. +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  323. +                          [same as prefix]
  324. +  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  325. +  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  326. +  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  327. +  --datadir=DIR           read-only architecture-independent data in DIR
  328. +                          [PREFIX/share]
  329. +  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  330. +  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  331. +                          [PREFIX/com]
  332. +  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  333. +  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  334. +  --includedir=DIR        C header files in DIR [PREFIX/include]
  335. +  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  336. +  --infodir=DIR           info documentation in DIR [PREFIX/info]
  337. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  338. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  339. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  340. +  --mandir=DIR            man documentation in DIR [PREFIX/man]
  341. +  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  342. +  --program-prefix=PREFIX prepend PREFIX to installed program names
  343. +  --program-suffix=SUFFIX append SUFFIX to installed program names
  344. +  --program-transform-name=PROGRAM
  345. +                          run sed PROGRAM on installed program names
  346. +EOF
  347. +    cat << EOF
  348. +Host type:
  349. +  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  350. +  --host=HOST             configure for HOST [guessed]
  351. +  --target=TARGET         configure for TARGET [TARGET=HOST]
  352. +Features and packages:
  353. +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  354. +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  355. +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  356. +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  357. +  --x-includes=DIR        X include files are in DIR
  358. +  --x-libraries=DIR       X library files are in DIR
  359.  EOF
  360. +    if test -n "$ac_help"; then
  361. +      echo "--enable and --with options recognized:$ac_help"
  362. +    fi
  363.      exit 0 ;;
  364.  
  365.    -host | --host | --hos | --ho)
  366. @@ -146,6 +194,56 @@ EOF
  367.    -host=* | --host=* | --hos=* | --ho=*)
  368.      host="$ac_optarg" ;;
  369.  
  370. +  -includedir | --includedir | --includedi | --included | --include \
  371. +  | --includ | --inclu | --incl | --inc)
  372. +    ac_prev=includedir ;;
  373. +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  374. +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  375. +    includedir="$ac_optarg" ;;
  376. +
  377. +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  378. +    ac_prev=infodir ;;
  379. +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  380. +    infodir="$ac_optarg" ;;
  381. +
  382. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  383. +   ac_prev=guidedir ;;
  384. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  385. +
  386. + -psdir | --psdir | --psdi | --psd | --ps)
  387. +   ac_prev=psdir ;;
  388. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  389. +
  390. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  391. +   ac_prev=dvidir ;;
  392. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  393. +
  394. +  -libdir | --libdir | --libdi | --libd)
  395. +    ac_prev=libdir ;;
  396. +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  397. +    libdir="$ac_optarg" ;;
  398. +
  399. +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  400. +  | --libexe | --libex | --libe)
  401. +    ac_prev=libexecdir ;;
  402. +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  403. +  | --libexe=* | --libex=* | --libe=*)
  404. +    libexecdir="$ac_optarg" ;;
  405. +
  406. +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  407. +  | --localstate | --localstat | --localsta | --localst \
  408. +  | --locals | --local | --loca | --loc | --lo)
  409. +    ac_prev=localstatedir ;;
  410. +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  411. +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  412. +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  413. +    localstatedir="$ac_optarg" ;;
  414. +
  415. +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  416. +    ac_prev=mandir ;;
  417. +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  418. +    mandir="$ac_optarg" ;;
  419. +
  420.    -nfp | --nfp | --nf)
  421.      # Obsolete; use --without-fp.
  422.      with_fp=no ;;
  423. @@ -158,6 +256,15 @@ EOF
  424.    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  425.      no_recursion=yes ;;
  426.  
  427. +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  428. +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  429. +  | --oldin | --oldi | --old | --ol | --o)
  430. +    ac_prev=oldincludedir ;;
  431. +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  432. +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  433. +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  434. +    oldincludedir="$ac_optarg" ;;
  435. +
  436.    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  437.      ac_prev=prefix ;;
  438.    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  439. @@ -198,6 +305,23 @@ EOF
  440.    | -silent | --silent | --silen | --sile | --sil)
  441.      silent=yes ;;
  442.  
  443. +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  444. +    ac_prev=sbindir ;;
  445. +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  446. +  | --sbi=* | --sb=*)
  447. +    sbindir="$ac_optarg" ;;
  448. +
  449. +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  450. +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  451. +  | --sharedst | --shareds | --shared | --share | --shar \
  452. +  | --sha | --sh)
  453. +    ac_prev=sharedstatedir ;;
  454. +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  455. +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  456. +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  457. +  | --sha=* | --sh=*)
  458. +    sharedstatedir="$ac_optarg" ;;
  459. +
  460.    -site | --site | --sit)
  461.      ac_prev=site ;;
  462.    -site=* | --site=* | --sit=*)
  463. @@ -208,6 +332,13 @@ EOF
  464.    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  465.      srcdir="$ac_optarg" ;;
  466.  
  467. +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  468. +  | --syscon | --sysco | --sysc | --sys | --sy)
  469. +    ac_prev=sysconfdir ;;
  470. +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  471. +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  472. +    sysconfdir="$ac_optarg" ;;
  473. +
  474.    -target | --target | --targe | --targ | --tar | --ta | --t)
  475.      ac_prev=target ;;
  476.    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  477. @@ -217,7 +348,7 @@ EOF
  478.      verbose=yes ;;
  479.  
  480.    -version | --version | --versio | --versi | --vers)
  481. -    echo "configure generated by autoconf version 2.0"
  482. +    echo "configure generated by autoconf version 2.10"
  483.      exit 0 ;;
  484.  
  485.    -with-* | --with-*)
  486. @@ -263,7 +394,7 @@ EOF
  487.    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  488.      ;;
  489.  
  490. -  *) 
  491. +  *)
  492.      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  493.        echo "configure: warning: $ac_option: invalid host type" 1>&2
  494.      fi
  495. @@ -280,19 +411,20 @@ if test -n "$ac_prev"; then
  496.    { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  497.  fi
  498.  
  499. -trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  500. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  501.  
  502.  # File descriptor usage:
  503. -# 0 unused; standard input
  504. +# 0 standard input
  505.  # 1 file creation
  506.  # 2 errors and warnings
  507. -# 3 unused; some systems may open it to /dev/tty
  508. -# 4 checking for... messages and results
  509. +# 3 some systems may open it to /dev/tty
  510. +# 4 used on the Kubota Titan
  511. +# 6 checking for... messages and results
  512.  # 5 compiler messages saved in config.log
  513.  if test "$silent" = yes; then
  514. -  exec 4>/dev/null
  515. +  exec 6>/dev/null
  516.  else
  517. -  exec 4>&1
  518. +  exec 6>&1
  519.  fi
  520.  exec 5>./config.log
  521.  
  522. @@ -382,8 +514,8 @@ fi
  523.  ac_ext=c
  524.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  525.  ac_cpp='$CPP $CPPFLAGS'
  526. -ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
  527. -ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  528. +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  529. +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  530.  
  531.  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  532.    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  533. @@ -401,9 +533,9 @@ fi
  534.  
  535.  # Extract the first word of "gcc", so it can be a program name with args.
  536.  set dummy gcc; ac_word=$2
  537. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  538. -if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  539. -  echo $ac_n "(cached) $ac_c" 1>&4
  540. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  541. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  542. +  echo $ac_n "(cached) $ac_c" 1>&6
  543.  else
  544.    if test -n "$CC"; then
  545.    ac_cv_prog_CC="$CC" # Let the user override the test.
  546. @@ -417,39 +549,88 @@ else
  547.      fi
  548.    done
  549.    IFS="$ac_save_ifs"
  550. -  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  551.  fi
  552.  fi
  553.  CC="$ac_cv_prog_CC"
  554.  if test -n "$CC"; then
  555. -  echo "$ac_t""$CC" 1>&4
  556. +  echo "$ac_t""$CC" 1>&6
  557. +else
  558. +  echo "$ac_t""no" 1>&6
  559. +fi
  560. +
  561. +if test -z "$CC"; then
  562. +  # Extract the first word of "cc", so it can be a program name with args.
  563. +set dummy cc; ac_word=$2
  564. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  565. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  566. +  echo $ac_n "(cached) $ac_c" 1>&6
  567. +else
  568. +  if test -n "$CC"; then
  569. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  570. +else
  571. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  572. +  ac_prog_rejected=no
  573. +  for ac_dir in $PATH; do
  574. +    test -z "$ac_dir" && ac_dir=.
  575. +    if test -f $ac_dir/$ac_word; then
  576. +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  577. +        ac_prog_rejected=yes
  578. +    continue
  579. +      fi
  580. +      ac_cv_prog_CC="cc"
  581. +      break
  582. +    fi
  583. +  done
  584. +  IFS="$ac_save_ifs"
  585. +if test $ac_prog_rejected = yes; then
  586. +  # We found a bogon in the path, so make sure we never use it.
  587. +  set dummy $ac_cv_prog_CC
  588. +  shift
  589. +  if test $# -gt 0; then
  590. +    # We chose a different compiler from the bogus one.
  591. +    # However, it has the same basename, so the bogon will be chosen
  592. +    # first if we set CC to just the basename; use the full file name.
  593. +    shift
  594. +    set dummy "$ac_dir/$ac_word" "$@"
  595. +    shift
  596. +    ac_cv_prog_CC="$@"
  597. +  fi
  598. +fi
  599. +fi
  600. +fi
  601. +CC="$ac_cv_prog_CC"
  602. +if test -n "$CC"; then
  603. +  echo "$ac_t""$CC" 1>&6
  604.  else
  605. -  echo "$ac_t""no" 1>&4
  606. +  echo "$ac_t""no" 1>&6
  607.  fi
  608.  
  609. +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  610. +fi
  611.  
  612. -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
  613. -if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  614. -  echo $ac_n "(cached) $ac_c" 1>&4
  615. +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  616. +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  617. +  echo $ac_n "(cached) $ac_c" 1>&6
  618.  else
  619.    cat > conftest.c <<EOF
  620.  #ifdef __GNUC__
  621.    yes;
  622.  #endif
  623.  EOF
  624. -if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  625. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  626.    ac_cv_prog_gcc=yes
  627.  else
  628.    ac_cv_prog_gcc=no
  629.  fi
  630.  fi
  631. -echo "$ac_t""$ac_cv_prog_gcc" 1>&4
  632. +
  633. +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  634.  if test $ac_cv_prog_gcc = yes; then
  635.    GCC=yes
  636.    if test "${CFLAGS+set}" != set; then
  637. -    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
  638. -if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  639. -  echo $ac_n "(cached) $ac_c" 1>&4
  640. +    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  641. +if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  642. +  echo $ac_n "(cached) $ac_c" 1>&6
  643.  else
  644.    echo 'void f(){}' > conftest.c
  645.  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  646. @@ -460,11 +641,12 @@ fi
  647.  rm -f conftest*
  648.  
  649.  fi
  650. -    echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
  651. +
  652. +echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  653.      if test $ac_cv_prog_gcc_g = yes; then
  654. -      CFLAGS="-g -O"
  655. +      CFLAGS="-g -O2"
  656.      else
  657. -      CFLAGS="-O"
  658. +      CFLAGS="-O2"
  659.      fi
  660.    fi
  661.  else
  662. @@ -472,14 +654,14 @@ else
  663.    test "${CFLAGS+set}" = set || CFLAGS="-g"
  664.  fi
  665.  
  666. -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
  667. +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  668.  # On Suns, sometimes $CPP names a directory.
  669.  if test -n "$CPP" && test -d "$CPP"; then
  670.    CPP=
  671.  fi
  672.  if test -z "$CPP"; then
  673. -if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  674. -  echo $ac_n "(cached) $ac_c" 1>&4
  675. +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  676. +  echo $ac_n "(cached) $ac_c" 1>&6
  677.  else
  678.      # This must be in double quotes, not single quotes, because CPP may get
  679.    # substituted into the Makefile and "${CC-cc}" will confuse make.
  680. @@ -487,12 +669,13 @@ else
  681.    # On the NeXT, cc -E runs the code through the compiler's parser,
  682.    # not just through cpp.
  683.    cat > conftest.$ac_ext <<EOF
  684. -#line 491 "configure"
  685. +#line 673 "configure"
  686.  #include "confdefs.h"
  687.  #include <assert.h>
  688.  Syntax Error
  689.  EOF
  690. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  691. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  692. +{ (eval echo configure:679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  693.  ac_err=`grep -v '^ *+' conftest.out`
  694.  if test -z "$ac_err"; then
  695.    :
  696. @@ -501,12 +684,13 @@ else
  697.    rm -rf conftest*
  698.    CPP="${CC-cc} -E -traditional-cpp"
  699.    cat > conftest.$ac_ext <<EOF
  700. -#line 505 "configure"
  701. +#line 688 "configure"
  702.  #include "confdefs.h"
  703.  #include <assert.h>
  704.  Syntax Error
  705.  EOF
  706. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  707. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  708. +{ (eval echo configure:694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  709.  ac_err=`grep -v '^ *+' conftest.out`
  710.  if test -z "$ac_err"; then
  711.    :
  712. @@ -520,21 +704,24 @@ fi
  713.  rm -f conftest*
  714.    ac_cv_prog_CPP="$CPP"
  715.  fi
  716. +  CPP="$ac_cv_prog_CPP"
  717. +else
  718. +  ac_cv_prog_CPP="$CPP"
  719.  fi
  720. -CPP="$ac_cv_prog_CPP"
  721. -echo "$ac_t""$CPP" 1>&4
  722. +echo "$ac_t""$CPP" 1>&6
  723.  
  724.  ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  725. -echo $ac_n "checking for minix/config.h""... $ac_c" 1>&4
  726. -if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  727. -  echo $ac_n "(cached) $ac_c" 1>&4
  728. +echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  729. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  730. +  echo $ac_n "(cached) $ac_c" 1>&6
  731.  else
  732.    cat > conftest.$ac_ext <<EOF
  733. -#line 534 "configure"
  734. +#line 720 "configure"
  735.  #include "confdefs.h"
  736.  #include <minix/config.h>
  737.  EOF
  738. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  739. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  740. +{ (eval echo configure:725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  741.  ac_err=`grep -v '^ *+' conftest.out`
  742.  if test -z "$ac_err"; then
  743.    rm -rf conftest*
  744. @@ -547,10 +734,10 @@ fi
  745.  rm -f conftest*
  746.  fi
  747.  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  748. -  echo "$ac_t""yes" 1>&4
  749. +  echo "$ac_t""yes" 1>&6
  750.    MINIX=yes
  751.  else
  752. -  echo "$ac_t""no" 1>&4
  753. +  echo "$ac_t""no" 1>&6
  754.  MINIX=
  755.  fi
  756.  
  757. @@ -573,9 +760,9 @@ for ac_prog in 'bison -y' byacc
  758.  do
  759.  # Extract the first word of "$ac_prog", so it can be a program name with args.
  760.  set dummy $ac_prog; ac_word=$2
  761. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  762. -if eval "test \"`echo '${'ac_cv_prog_YACC'+set}'`\" = set"; then
  763. -  echo $ac_n "(cached) $ac_c" 1>&4
  764. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  765. +if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  766. +  echo $ac_n "(cached) $ac_c" 1>&6
  767.  else
  768.    if test -n "$YACC"; then
  769.    ac_cv_prog_YACC="$YACC" # Let the user override the test.
  770. @@ -593,9 +780,9 @@ fi
  771.  fi
  772.  YACC="$ac_cv_prog_YACC"
  773.  if test -n "$YACC"; then
  774. -  echo "$ac_t""$YACC" 1>&4
  775. +  echo "$ac_t""$YACC" 1>&6
  776.  else
  777. -  echo "$ac_t""no" 1>&4
  778. +  echo "$ac_t""no" 1>&6
  779.  fi
  780.  
  781.  test -n "$YACC" && break
  782. @@ -604,9 +791,9 @@ test -n "$YACC" || YACC="yacc"
  783.  
  784.  # Extract the first word of "flex", so it can be a program name with args.
  785.  set dummy flex; ac_word=$2
  786. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  787. -if eval "test \"`echo '${'ac_cv_prog_LEX'+set}'`\" = set"; then
  788. -  echo $ac_n "(cached) $ac_c" 1>&4
  789. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  790. +if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  791. +  echo $ac_n "(cached) $ac_c" 1>&6
  792.  else
  793.    if test -n "$LEX"; then
  794.    ac_cv_prog_LEX="$LEX" # Let the user override the test.
  795. @@ -625,9 +812,9 @@ fi
  796.  fi
  797.  LEX="$ac_cv_prog_LEX"
  798.  if test -n "$LEX"; then
  799. -  echo "$ac_t""$LEX" 1>&4
  800. +  echo "$ac_t""$LEX" 1>&6
  801.  else
  802. -  echo "$ac_t""no" 1>&4
  803. +  echo "$ac_t""no" 1>&6
  804.  fi
  805.  
  806.  if test -z "$LEXLIB"
  807. @@ -636,37 +823,42 @@ then
  808.    flex*) ac_lib=fl ;;
  809.    *) ac_lib=l ;;
  810.    esac
  811. -  echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&4
  812. -if eval "test \"`echo '${'ac_cv_lib_$ac_lib'+set}'`\" = set"; then
  813. -  echo $ac_n "(cached) $ac_c" 1>&4
  814. +  echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&6
  815. +ac_lib_var=`echo $ac_lib'_'yywrap | tr './+\055' '__p_'`
  816. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  817. +  echo $ac_n "(cached) $ac_c" 1>&6
  818.  else
  819.    ac_save_LIBS="$LIBS"
  820. -LIBS="$LIBS -l$ac_lib "
  821. +LIBS="-l$ac_lib  $LIBS"
  822.  cat > conftest.$ac_ext <<EOF
  823. -#line 647 "configure"
  824. +#line 835 "configure"
  825.  #include "confdefs.h"
  826. +/* Override any gcc2 internal prototype to avoid an error.  */
  827. +/* We use char because int might match the return type of a gcc2
  828. +    builtin and then its argument prototype would still apply.  */
  829. +char yywrap();
  830.  
  831. -int main() { return 0; }
  832. +int main() { t(); return 0; }
  833.  int t() {
  834. -main()
  835. +yywrap()
  836.  ; return 0; }
  837.  EOF
  838. -if eval $ac_link; then
  839. +if { (eval echo configure:847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  840.    rm -rf conftest*
  841. -  eval "ac_cv_lib_$ac_lib=yes"
  842. +  eval "ac_cv_lib_$ac_lib_var=yes"
  843.  else
  844.    rm -rf conftest*
  845. -  eval "ac_cv_lib_$ac_lib=no"
  846. +  eval "ac_cv_lib_$ac_lib_var=no"
  847.  fi
  848.  rm -f conftest*
  849.  LIBS="$ac_save_LIBS"
  850.  
  851.  fi
  852. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib`\" = yes"; then
  853. -  echo "$ac_t""yes" 1>&4
  854. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  855. +  echo "$ac_t""yes" 1>&6
  856.    LEXLIB="-l$ac_lib"
  857.  else
  858. -  echo "$ac_t""no" 1>&4
  859. +  echo "$ac_t""no" 1>&6
  860.  fi
  861.  
  862.  fi
  863. @@ -700,18 +892,20 @@ ac_configure=$ac_aux_dir/configure # Thi
  864.  # SunOS /usr/etc/install
  865.  # IRIX /sbin/install
  866.  # AIX /bin/install
  867. +# AmigaOS /c/install
  868.  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  869.  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  870.  # ./install, which can be erroneously created by make from ./install.sh.
  871. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  872. +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  873.  if test -z "$INSTALL"; then
  874. -if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  875. -  echo $ac_n "(cached) $ac_c" 1>&4
  876. +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  877. +  echo $ac_n "(cached) $ac_c" 1>&6
  878.  else
  879.      IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  880.    for ac_dir in $PATH; do
  881. -    case "$ac_dir" in
  882. -    ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
  883. +    # Account for people who put trailing slashes in PATH elements.
  884. +    case "$ac_dir/" in
  885. +    /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  886.      *)
  887.        # OSF1 and SCO ODT 3.0 have their own names for install.
  888.        for ac_prog in ginstall installbsd scoinst install; do
  889. @@ -731,12 +925,19 @@ else
  890.      esac
  891.    done
  892.    IFS="$ac_save_ifs"
  893. -  # As a last resort, use the slow shell script.
  894. -  test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  895. +
  896.  fi
  897. -  INSTALL="$ac_cv_path_install"
  898. +  if test "${ac_cv_path_install+set}" = set; then
  899. +    INSTALL="$ac_cv_path_install"
  900. +  else
  901. +    # As a last resort, use the slow shell script.  We don't cache a
  902. +    # path for INSTALL within a source directory, because that will
  903. +    # break other packages using the cache if that directory is
  904. +    # removed, or if the path is relative.
  905. +    INSTALL="$ac_install_sh"
  906. +  fi
  907.  fi
  908. -echo "$ac_t""$INSTALL" 1>&4
  909. +echo "$ac_t""$INSTALL" 1>&6
  910.  
  911.  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  912.  # It thinks the first close brace ends the variable substitution.
  913. @@ -744,12 +945,12 @@ test -z "$INSTALL_PROGRAM" && INSTALL_PR
  914.  
  915.  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  916.  
  917. -echo $ac_n "checking for working const""... $ac_c" 1>&4
  918. -if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
  919. -  echo $ac_n "(cached) $ac_c" 1>&4
  920. +echo $ac_n "checking for working const""... $ac_c" 1>&6
  921. +if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  922. +  echo $ac_n "(cached) $ac_c" 1>&6
  923.  else
  924.    cat > conftest.$ac_ext <<EOF
  925. -#line 753 "configure"
  926. +#line 954 "configure"
  927.  #include "confdefs.h"
  928.  
  929.  int main() { return 0; }
  930. @@ -762,7 +963,7 @@ char const *const *ccp;
  931.  char **p;
  932.  /* NEC SVR4.0.2 mips cc rejects this.  */
  933.  struct point {int x, y;};
  934. -static struct point const zero;
  935. +static struct point const zero = {0,0};
  936.  /* AIX XL C 1.02.0.0 rejects this.
  937.     It does not let you subtract one const X* pointer from another in an arm
  938.     of an if-expression whose if-part is not a constant expression */
  939. @@ -799,7 +1000,7 @@ ccp = (char const *const *) p;
  940.  
  941.  ; return 0; }
  942.  EOF
  943. -if eval $ac_compile; then
  944. +if { (eval echo configure:1004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  945.    rm -rf conftest*
  946.    ac_cv_c_const=yes
  947.  else
  948. @@ -809,7 +1010,8 @@ fi
  949.  rm -f conftest*
  950.  
  951.  fi
  952. -echo "$ac_t""$ac_cv_c_const" 1>&4
  953. +
  954. +echo "$ac_t""$ac_cv_c_const" 1>&6
  955.  if test $ac_cv_c_const = no; then
  956.    cat >> confdefs.h <<\EOF
  957.  #define const 
  958. @@ -818,19 +1020,19 @@ EOF
  959.  fi
  960.  
  961.  # If we cannot run a trivial program, we must be cross compiling.
  962. -echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  963. -if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  964. -  echo $ac_n "(cached) $ac_c" 1>&4
  965. +echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  966. +if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  967. +  echo $ac_n "(cached) $ac_c" 1>&6
  968.  else
  969.    if test "$cross_compiling" = yes; then
  970. -  ac_cv_cross=yes
  971. +  ac_cv_c_cross=yes
  972.  else
  973.  cat > conftest.$ac_ext <<EOF
  974. -#line 830 "configure"
  975. +#line 1032 "configure"
  976.  #include "confdefs.h"
  977.  main(){return(0);}
  978.  EOF
  979. -eval $ac_link
  980. +{ (eval echo configure:1036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  981.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  982.    ac_cv_c_cross=no
  983.  else
  984. @@ -839,22 +1041,24 @@ fi
  985.  fi
  986.  rm -fr conftest*
  987.  fi
  988. +
  989. +echo "$ac_t""$ac_cv_c_cross" 1>&6
  990.  cross_compiling=$ac_cv_c_cross
  991. -echo "$ac_t""$ac_cv_c_cross" 1>&4
  992.  
  993. -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
  994. -if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  995. -  echo $ac_n "(cached) $ac_c" 1>&4
  996. +echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  997. +if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  998. +  echo $ac_n "(cached) $ac_c" 1>&6
  999.  else
  1000.    cat > conftest.$ac_ext <<EOF
  1001. -#line 851 "configure"
  1002. +#line 1054 "configure"
  1003.  #include "confdefs.h"
  1004.  #include <stdlib.h>
  1005.  #include <stdarg.h>
  1006.  #include <string.h>
  1007.  #include <float.h>
  1008.  EOF
  1009. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1010. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1011. +{ (eval echo configure:1062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1012.  ac_err=`grep -v '^ *+' conftest.out`
  1013.  if test -z "$ac_err"; then
  1014.    rm -rf conftest*
  1015. @@ -869,7 +1073,7 @@ rm -f conftest*
  1016.  if test $ac_cv_header_stdc = yes; then
  1017.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1018.  cat > conftest.$ac_ext <<EOF
  1019. -#line 873 "configure"
  1020. +#line 1077 "configure"
  1021.  #include "confdefs.h"
  1022.  #include <string.h>
  1023.  EOF
  1024. @@ -887,7 +1091,7 @@ fi
  1025.  if test $ac_cv_header_stdc = yes; then
  1026.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1027.  cat > conftest.$ac_ext <<EOF
  1028. -#line 891 "configure"
  1029. +#line 1095 "configure"
  1030.  #include "confdefs.h"
  1031.  #include <stdlib.h>
  1032.  EOF
  1033. @@ -905,10 +1109,10 @@ fi
  1034.  if test $ac_cv_header_stdc = yes; then
  1035.    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1036.  if test "$cross_compiling" = yes; then
  1037. -  ac_cv_header_stdc=no
  1038. +  :
  1039.  else
  1040.  cat > conftest.$ac_ext <<EOF
  1041. -#line 912 "configure"
  1042. +#line 1116 "configure"
  1043.  #include "confdefs.h"
  1044.  #include <ctype.h>
  1045.  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1046. @@ -919,7 +1123,7 @@ if (XOR (islower (i), ISLOWER (i)) || to
  1047.  exit (0); }
  1048.  
  1049.  EOF
  1050. -eval $ac_link
  1051. +{ (eval echo configure:1127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1052.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1053.    :
  1054.  else
  1055. @@ -929,7 +1133,8 @@ fi
  1056.  rm -fr conftest*
  1057.  fi
  1058.  fi
  1059. -echo "$ac_t""$ac_cv_header_stdc" 1>&4
  1060. +
  1061. +echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1062.  if test $ac_cv_header_stdc = yes; then
  1063.    cat >> confdefs.h <<\EOF
  1064.  #define STDC_HEADERS 1
  1065. @@ -937,12 +1142,12 @@ EOF
  1066.  
  1067.  fi
  1068.  
  1069. -echo $ac_n "checking for size_t""... $ac_c" 1>&4
  1070. -if eval "test \"`echo '${'ac_cv_type_size_t'+set}'`\" = set"; then
  1071. -  echo $ac_n "(cached) $ac_c" 1>&4
  1072. +echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1073. +if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1074. +  echo $ac_n "(cached) $ac_c" 1>&6
  1075.  else
  1076.    cat > conftest.$ac_ext <<EOF
  1077. -#line 946 "configure"
  1078. +#line 1151 "configure"
  1079.  #include "confdefs.h"
  1080.  #include <sys/types.h>
  1081.  #if STDC_HEADERS
  1082. @@ -960,7 +1165,7 @@ fi
  1083.  rm -f conftest*
  1084.  
  1085.  fi
  1086. -echo "$ac_t""$ac_cv_type_size_t" 1>&4
  1087. +echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1088.  if test $ac_cv_type_size_t = no; then
  1089.    cat >> confdefs.h <<\EOF
  1090.  #define size_t unsigned
  1091. @@ -971,16 +1176,17 @@ fi
  1092.  for ac_hdr in stdarg.h stddef.h stdlib.h string.h limits.h unistd.h
  1093.  do
  1094.  ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1095. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  1096. -if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1097. -  echo $ac_n "(cached) $ac_c" 1>&4
  1098. +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1099. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1100. +  echo $ac_n "(cached) $ac_c" 1>&6
  1101.  else
  1102.    cat > conftest.$ac_ext <<EOF
  1103. -#line 980 "configure"
  1104. +#line 1185 "configure"
  1105.  #include "confdefs.h"
  1106.  #include <$ac_hdr>
  1107.  EOF
  1108. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1109. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1110. +{ (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1111.  ac_err=`grep -v '^ *+' conftest.out`
  1112.  if test -z "$ac_err"; then
  1113.    rm -rf conftest*
  1114. @@ -993,28 +1199,35 @@ fi
  1115.  rm -f conftest*
  1116.  fi
  1117.  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1118. -  echo "$ac_t""yes" 1>&4
  1119. -    ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1120. +  echo "$ac_t""yes" 1>&6
  1121. +    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1122.    cat >> confdefs.h <<EOF
  1123.  #define $ac_tr_hdr 1
  1124.  EOF
  1125.   
  1126.  else
  1127. -  echo "$ac_t""no" 1>&4
  1128. +  echo "$ac_t""no" 1>&6
  1129.  fi
  1130.  done
  1131.  
  1132.  for ac_func in isgraph
  1133.  do
  1134. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1135. -if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1136. -  echo $ac_n "(cached) $ac_c" 1>&4
  1137. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1138. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1139. +  echo $ac_n "(cached) $ac_c" 1>&6
  1140.  else
  1141.    cat > conftest.$ac_ext <<EOF
  1142. -#line 1015 "configure"
  1143. +#line 1221 "configure"
  1144.  #include "confdefs.h"
  1145. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1146. -int main() { return 0; }
  1147. +/* System header to define __stub macros and hopefully few prototypes,
  1148. +    which can conflict with char $ac_func(); below.  */
  1149. +#include <assert.h>
  1150. +/* Override any gcc2 internal prototype to avoid an error.  */
  1151. +/* We use char because int might match the return type of a gcc2
  1152. +    builtin and then its argument prototype would still apply.  */
  1153. +char $ac_func();
  1154. +
  1155. +int main() { t(); return 0; }
  1156.  int t() {
  1157.  
  1158.  /* The GNU C library defines this for functions which it implements
  1159. @@ -1023,13 +1236,12 @@ int t() {
  1160.  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1161.  choke me
  1162.  #else
  1163. -/* Override any gcc2 internal prototype to avoid an error.  */
  1164. -char $ac_func(); $ac_func();
  1165. +$ac_func();
  1166.  #endif
  1167.  
  1168.  ; return 0; }
  1169.  EOF
  1170. -if eval $ac_link; then
  1171. +if { (eval echo configure:1245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1172.    rm -rf conftest*
  1173.    eval "ac_cv_func_$ac_func=yes"
  1174.  else
  1175. @@ -1040,22 +1252,22 @@ rm -f conftest*
  1176.  
  1177.  fi
  1178.  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1179. -  echo "$ac_t""yes" 1>&4
  1180. -    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1181. +  echo "$ac_t""yes" 1>&6
  1182. +    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1183.    cat >> confdefs.h <<EOF
  1184.  #define $ac_tr_func 1
  1185.  EOF
  1186.   
  1187.  else
  1188. -  echo "$ac_t""no" 1>&4
  1189. +  echo "$ac_t""no" 1>&6
  1190.  fi
  1191.  done
  1192.  
  1193.  SaveCFLAGS="$CFLAGS"
  1194.  CFLAGS="-g -O -I. -I$srcdir"
  1195. -echo $ac_n "checking if long strings are accepted by the C compiler""... $ac_c" 1>&4
  1196. +echo $ac_n "checking if long strings are accepted by the C compiler""... $ac_c" 1>&6
  1197.  cat > conftest.$ac_ext <<EOF
  1198. -#line 1059 "configure"
  1199. +#line 1271 "configure"
  1200.  #include "confdefs.h"
  1201.  
  1202.  char libmath[] = 
  1203. @@ -1067,25 +1279,23 @@ int t() {
  1204.  
  1205.  ; return 0; }
  1206.  EOF
  1207. -if eval $ac_compile; then
  1208. +if { (eval echo configure:1283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1209.    rm -rf conftest*
  1210. -  echo "$ac_t""yes" 1>&4
  1211. +  echo "$ac_t""yes" 1>&6
  1212.  else
  1213.    rm -rf conftest*
  1214.    cat >> confdefs.h <<\EOF
  1215.  #define BC_MATH_FILE "libmath.b"
  1216.  EOF
  1217.  
  1218. -echo "$ac_t""no" 1>&4
  1219. +echo "$ac_t""no" 1>&6
  1220.  echo "configure: warning: libmath.b will not be preloaded into the executable" 1>&2
  1221.  fi
  1222.  rm -f conftest*
  1223.  
  1224.  CFLAGS="$SaveCFLAGS"
  1225.  trap '' 1 2 15
  1226. -if test -w $cache_file; then
  1227. -echo "updating cache $cache_file"
  1228. -cat > $cache_file <<\EOF
  1229. +cat > confcache <<\EOF
  1230.  # This file is a shell script that caches the results of configure
  1231.  # tests run on this system so they can be shared between configure
  1232.  # scripts and configure runs.  It is not useful on other systems.
  1233. @@ -1101,15 +1311,24 @@ cat > $cache_file <<\EOF
  1234.  # --recheck option to rerun configure.
  1235.  #
  1236.  EOF
  1237. -# Ultrix sh set writes to stderr and can't be redirected directly.
  1238. +# Ultrix sh set writes to stderr and can't be redirected directly,
  1239. +# and sets the high bit in the cache file unless we assign to the vars.
  1240.  (set) 2>&1 |
  1241. -  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
  1242. -  >> $cache_file
  1243. +  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1244. +  >> confcache
  1245. +if cmp -s $cache_file confcache; then
  1246. +  :
  1247.  else
  1248. -echo "not updating unwritable cache $cache_file"
  1249. +  if test -w $cache_file; then
  1250. +    echo "updating cache $cache_file"
  1251. +    cat confcache > $cache_file
  1252. +  else
  1253. +    echo "not updating unwritable cache $cache_file"
  1254. +  fi
  1255.  fi
  1256. +rm -f confcache
  1257.  
  1258. -trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  1259. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1260.  
  1261.  test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1262.  # Let make expand exec_prefix.
  1263. @@ -1130,9 +1349,11 @@ DEFS=-DHAVE_CONFIG_H
  1264.  : ${CONFIG_STATUS=./config.status}
  1265.  
  1266.  echo creating $CONFIG_STATUS
  1267. -rm -f $CONFIG_STATUS
  1268. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  1269. +# being executed, so just move it out of the way instead.
  1270. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1271.  cat > $CONFIG_STATUS <<EOF
  1272. -#!/bin/sh
  1273. +#! /bin/sh
  1274.  # Generated automatically by configure.
  1275.  # Run this file to recreate the current configuration.
  1276.  # This directory was configured as follows,
  1277. @@ -1151,7 +1372,7 @@ do
  1278.      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1279.      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1280.    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1281. -    echo "$CONFIG_STATUS generated by autoconf version 2.0"
  1282. +    echo "$CONFIG_STATUS generated by autoconf version 2.10"
  1283.      exit 0 ;;
  1284.    -help | --help | --hel | --he | --h)
  1285.      echo "\$ac_cs_usage"; exit 0 ;;
  1286. @@ -1162,11 +1383,13 @@ done
  1287.  ac_given_srcdir=$srcdir
  1288.  ac_given_INSTALL="$INSTALL"
  1289.  
  1290. -trap 'rm -fr Makefile config.h conftest*; exit 1' 1 2 15
  1291. +trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1292. +EOF
  1293. +cat >> $CONFIG_STATUS <<EOF
  1294.  
  1295. -# Protect against being on the right side of a sed subst in config.status. 
  1296. -sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  1297. - s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  1298. +# Protect against being on the right side of a sed subst in config.status.
  1299. +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1300. + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1301.  $ac_vpsub
  1302.  $extrasub
  1303.  s%@CFLAGS@%$CFLAGS%g
  1304. @@ -1178,6 +1401,21 @@ s%@LIBS@%$LIBS%g
  1305.  s%@exec_prefix@%$exec_prefix%g
  1306.  s%@prefix@%$prefix%g
  1307.  s%@program_transform_name@%$program_transform_name%g
  1308. +s%@bindir@%$bindir%g
  1309. +s%@sbindir@%$sbindir%g
  1310. +s%@libexecdir@%$libexecdir%g
  1311. +s%@datadir@%$datadir%g
  1312. +s%@sysconfdir@%$sysconfdir%g
  1313. +s%@sharedstatedir@%$sharedstatedir%g
  1314. +s%@localstatedir@%$localstatedir%g
  1315. +s%@libdir@%$libdir%g
  1316. +s%@includedir@%$includedir%g
  1317. +s%@oldincludedir@%$oldincludedir%g
  1318. +s%@infodir@%$infodir%g
  1319. +s%@guidedir@%$guidedir%g
  1320. +s%@psdir@%$psdir%g
  1321. +s%@dvidir@%$dvidir%g
  1322. +s%@mandir@%$mandir%g
  1323.  s%@CC@%$CC%g
  1324.  s%@CPP@%$CPP%g
  1325.  s%@YACC@%$YACC%g
  1326. @@ -1208,7 +1446,7 @@ for ac_file in .. $CONFIG_FILES; do if t
  1327.    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1328.      # The file is in a subdirectory.
  1329.      test ! -d "$ac_dir" && mkdir "$ac_dir"
  1330. -    ac_dir_suffix="/$ac_dir"
  1331. +    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1332.      # A "../" for each directory in $ac_dir_suffix.
  1333.      ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1334.    else
  1335. @@ -1283,13 +1521,13 @@ EOF
  1336.  
  1337.  # Transform confdefs.h into a sed script conftest.vals that substitutes
  1338.  # the proper values into config.h.in to produce config.h.  And first:
  1339. -# Protect against being on the right side of a sed subst in config.status. 
  1340. +# Protect against being on the right side of a sed subst in config.status.
  1341.  # Protect against being in an unquoted here document in config.status.
  1342.  rm -f conftest.vals
  1343.  cat > conftest.hdr <<\EOF
  1344.  s/[\\&%]/\\&/g
  1345.  s%[\\$`]%\\&%g
  1346. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1347. +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1348.  s%ac_d%ac_u%gp
  1349.  s%ac_u%ac_e%gp
  1350.  EOF
  1351. @@ -1337,6 +1575,12 @@ cat >> $CONFIG_STATUS <<\EOF
  1352.      echo "$ac_file is unchanged"
  1353.      rm -f conftest.h
  1354.    else
  1355. +    # Remove last slash and all that follows it.  Not all systems have dirname.
  1356. +      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1357. +      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1358. +      # The file is in a subdirectory.
  1359. +      test ! -d "$ac_dir" && mkdir "$ac_dir"
  1360. +    fi
  1361.      rm -f $ac_file
  1362.      mv conftest.h $ac_file
  1363.    fi
  1364. @@ -1347,7 +1591,8 @@ fi; done
  1365.  exit 0
  1366.  EOF
  1367.  chmod +x $CONFIG_STATUS
  1368. +rm -f CONFIG.STATUS.old
  1369.  rm -fr confdefs* $ac_clean_files
  1370. -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
  1371. +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1372.  
  1373.  
  1374. diff -rup --new-file baseline/fsf/bc/const.h amiga/fsf/bc/const.h
  1375. --- baseline/fsf/bc/const.h    Wed Nov  2 11:38:37 1994
  1376. +++ amiga/fsf/bc/const.h    Sat Sep 28 00:00:00 1996
  1377. @@ -38,14 +38,21 @@
  1378.  /* Define constants in some reasonable size.  The next 4 constants are
  1379.     POSIX constants. */
  1380.  
  1381. +#ifndef BC_BASE_MAX
  1382.  #define BC_BASE_MAX   INT_MAX
  1383. +#endif
  1384. +#ifndef BC_SCALE_MAX
  1385.  #define BC_SCALE_MAX  INT_MAX
  1386. +#endif
  1387. +#ifndef BC_STRING_MAX
  1388.  #define BC_STRING_MAX INT_MAX
  1389. -
  1390. +#endif
  1391.  
  1392.  /* Definitions for arrays. */
  1393.  
  1394. +#ifndef BC_DIM_MAX
  1395.  #define BC_DIM_MAX    65535       /* this should be NODE_SIZE^NODE_DEPTH-1 */
  1396. +#endif
  1397.  
  1398.  #define   NODE_SIZE        16     /* Must be a power of 2. */
  1399.  #define   NODE_MASK       0xf     /* Must be NODE_SIZE-1. */
  1400. diff -rup --new-file baseline/fsf/bc/dc.info amiga/fsf/bc/dc.info
  1401. --- baseline/fsf/bc/dc.info    Wed Nov  2 11:52:54 1994
  1402. +++ amiga/fsf/bc/dc.info    Wed Dec 31 17:00:00 1969
  1403. @@ -1,346 +0,0 @@
  1404. -This is Info file dc.info, produced by Makeinfo-1.55 from the input
  1405. -file dc.texinfo.
  1406. -
  1407. -   This file documents DC, an arbitrary precision calculator.
  1408. -
  1409. -   Published by the Free Software Foundation, 675 Massachusetts Avenue,
  1410. -Cambridge, MA 02139 USA
  1411. -
  1412. -   Copyright (C) 1984 Free Software Foundation, Inc.
  1413. -
  1414. -   Permission is granted to make and distribute verbatim copies of this
  1415. -manual provided the copyright notice and this permission notice are
  1416. -preserved on all copies.
  1417. -
  1418. -   Permission is granted to copy and distribute modified versions of
  1419. -this manual under the conditions for verbatim copying, provided that
  1420. -the entire resulting derived work is distributed under the terms of a
  1421. -permission notice identical to this one.
  1422. -
  1423. -   Permission is granted to copy and distribute translations of this
  1424. -manual into another language, under the above conditions for modified
  1425. -versions, except that this permission notice may be stated in a
  1426. -translation approved by the Foundation.
  1427. -
  1428. -
  1429. -File: dc.info,  Node: Top,  Next: Introduction,  Prev: (dir),  Up: (dir)
  1430. -
  1431. -* Menu:
  1432. -
  1433. -* Introduction::                Introduction
  1434. -* Printing Commands::           Printing Commands
  1435. -* Arithmetic::                  Arithmetic
  1436. -* Stack Control::               Stack Control
  1437. -* Registers::                   Registers
  1438. -* Parameters::                  Parameters
  1439. -* Strings::                     Strings
  1440. -* Status Inquiry::              Status Inquiry
  1441. -* Miscellaneous::               Other commands
  1442. -* Notes::                       Notes
  1443. -
  1444. -
  1445. -File: dc.info,  Node: Introduction,  Next: Printing Commands,  Prev: Top,  Up: Top
  1446. -
  1447. -Introduction
  1448. -************
  1449. -
  1450. -   DC is a reverse-polish desk calculator which supports unlimited
  1451. -precision arithmetic.  It also allows you to define and call macros.
  1452. -Normally DC reads from the standard input; if any command arguments are
  1453. -given to it, they are filenames, and DC reads and executes the contents
  1454. -of the files before reading from standard input.  All normal output is
  1455. -to standard output; all error messages are written to standard error.
  1456. -
  1457. -   To exit, use `q'.  `C-c' does not exit; it is used to abort macros
  1458. -that are looping, etc.  (Currently this is not true; `C-c' does exit.)
  1459. -
  1460. -   A reverse-polish calculator stores numbers on a stack.  Entering a
  1461. -number pushes it on the stack.  Arithmetic operations pop arguments off
  1462. -the stack and push the results.
  1463. -
  1464. -   To enter a number in DC, type the digits, with an optional decimal
  1465. -point.  Exponential notation is not supported.  To enter a negative
  1466. -number, begin the number with `_'.  `-' cannot be used for this, as it
  1467. -is a binary operator for subtraction instead.  To enter two numbers in
  1468. -succession, separate them with spaces or newlines.  These have no
  1469. -meaning as commands.
  1470. -
  1471. -
  1472. -File: dc.info,  Node: Printing Commands,  Next: Arithmetic,  Prev: Introduction,  Up: Top
  1473. -
  1474. -Printing Commands
  1475. -*****************
  1476. -
  1477. -`p'
  1478. -     Prints the value on the top of the stack, without altering the
  1479. -     stack.  A newline is printed after the value.
  1480. -
  1481. -`P'
  1482. -     Prints the value on the top of the stack, popping it off, and does
  1483. -     not print a newline after.
  1484. -
  1485. -`f'
  1486. -     Prints the entire contents of the stack without altering anything.
  1487. -     This is a good command to use if you are lost or want to figure
  1488. -     out what the effect of some command has been.
  1489. -
  1490. -
  1491. -File: dc.info,  Node: Arithmetic,  Next: Stack Control,  Prev: Printing Commands,  Up: Top
  1492. -
  1493. -Arithmetic
  1494. -**********
  1495. -
  1496. -`+'
  1497. -     Pops two values off the stack, adds them, and pushes the result.
  1498. -     The precision of the result is determined only by the values of
  1499. -     the arguments, and is enough to be exact.
  1500. -
  1501. -`-'
  1502. -     Pops two values, subtracts the first one popped from the second
  1503. -     one popped, and pushes the result.
  1504. -
  1505. -`*'
  1506. -     Pops two values, multiplies them, and pushes the result.  The
  1507. -     number of fraction digits in the result is controlled by the
  1508. -     current precision value (see below) and does not depend on the
  1509. -     values being multiplied.
  1510. -
  1511. -`/'
  1512. -     Pops two values, divides the second one popped from the first one
  1513. -     popped, and pushes the result.  The number of fraction digits is
  1514. -     specified by the precision value.
  1515. -
  1516. -`%'
  1517. -     Pops two values, computes the remainder of the division that the
  1518. -     `/' command would do, and pushes that.  The division is done with
  1519. -     as many fraction digits as the precision value specifies, and the
  1520. -     remainder is also computed with that many fraction digits.
  1521. -
  1522. -`^'
  1523. -     Pops two values and exponentiates, using the first value popped as
  1524. -     the exponent and the second popped as the base.  The fraction part
  1525. -     of the exponent is ignored.  The precision value specifies the
  1526. -     number of fraction digits in the result.
  1527. -
  1528. -`v'
  1529. -     Pops one value, computes its square root, and pushes that.  The
  1530. -     precision value specifies the number of fraction digits in the
  1531. -     result.
  1532. -
  1533. -   Most arithmetic operations are affected by the *precision value*,
  1534. -which you can set with the `k' command.  The default precision value is
  1535. -zero, which means that all arithmetic except for addition and
  1536. -subtraction produces integer results.
  1537. -
  1538. -   The remainder operation (`%') requires some explanation: applied to
  1539. -arguments `a' and `b' it produces `a - (b * (a / b))', where `a / b' is
  1540. -computed in the current precision.
  1541. -
  1542. -
  1543. -File: dc.info,  Node: Stack Control,  Next: Registers,  Prev: Arithmetic,  Up: Top
  1544. -
  1545. -Stack Control
  1546. -*************
  1547. -
  1548. -`c'
  1549. -     Clears the stack, rendering it empty.
  1550. -
  1551. -`d'
  1552. -     Duplicates the value on the top of the stack, pushing another copy
  1553. -     of it.  Thus, `4d*p' computes 4 squared and prints it.
  1554. -
  1555. -
  1556. -File: dc.info,  Node: Registers,  Next: Parameters,  Prev: Stack Control,  Up: Top
  1557. -
  1558. -Registers
  1559. -*********
  1560. -
  1561. -   DC provides 256 memory registers, each named by a single character.
  1562. -You can store a number in a register and retrieve it later.
  1563. -
  1564. -`sR'
  1565. -     Pop the value off the top of the stack and store it into register
  1566. -     R.
  1567. -
  1568. -`lR'
  1569. -     Copy the value in register R, and push it onto the stack.  This
  1570. -     does not alter the contents of R.
  1571. -
  1572. -     Each register also contains its own stack.  The current register
  1573. -     value is the top of the register's stack.
  1574. -
  1575. -`SR'
  1576. -     Pop the value off the top of the (main) stack and push it onto the
  1577. -     stack of register R.  The previous value of the register becomes
  1578. -     inaccessible.
  1579. -
  1580. -`LR'
  1581. -     Pop the value off the top of register R's stack and push it onto
  1582. -     the main stack.  The previous value in register R's stack, if any,
  1583. -     is now accessible via the `lR' command.
  1584. -
  1585. -
  1586. -File: dc.info,  Node: Parameters,  Next: Strings,  Prev: Registers,  Up: Top
  1587. -
  1588. -Parameters
  1589. -**********
  1590. -
  1591. -   DC has three parameters that control its operation: the precision,
  1592. -the input radix, and the output radix.  The precision specifies the
  1593. -number of fraction digits to keep in the result of most arithmetic
  1594. -operations.  The input radix controls the interpretation of numbers
  1595. -typed in; *all* numbers typed in use this radix.  The output radix is
  1596. -used for printing numbers.
  1597. -
  1598. -   The input and output radices are separate parameters; you can make
  1599. -them unequal, which can be useful or confusing.  The input radix must
  1600. -be between 2 and 36 inclusive.  The output radix must be at least 2.
  1601. -The precision must be zero or greater.  The precision is always
  1602. -measured in decimal digits, regardless of the current input or output
  1603. -radix.
  1604. -
  1605. -`i'
  1606. -     Pops the value off the top of the stack and uses it to set the
  1607. -     input radix.
  1608. -
  1609. -`o'
  1610. -     Pops the value off the top of the stack and uses it to set the
  1611. -     output radix.
  1612. -
  1613. -`k'
  1614. -     Pops the value off the top of the stack and uses it to set the
  1615. -     precision.
  1616. -
  1617. -`I'
  1618. -     Pushes the current input radix on the stack.
  1619. -
  1620. -`O'
  1621. -     Pushes the current output radix on the stack.
  1622. -
  1623. -`K'
  1624. -     Pushes the current precision on the stack.
  1625. -
  1626. -
  1627. -File: dc.info,  Node: Strings,  Next: Status Inquiry,  Prev: Parameters,  Up: Top
  1628. -
  1629. -Strings
  1630. -*******
  1631. -
  1632. -   DC can operate on strings as well as on numbers.  The only things
  1633. -you can do with strings are print them and execute them as macros
  1634. -(which means that the contents of the string are processed as DC
  1635. -commands).  Both registers and the stack can hold strings, and DC
  1636. -always knows whether any given object is a string or a number.  Some
  1637. -commands such as arithmetic operations demand numbers as arguments and
  1638. -print errors if given strings.  Other commands can accept either a
  1639. -number or a string; for example, the `p' command can accept either and
  1640. -prints the object according to its type.
  1641. -
  1642. -`[CHARACTERS]'
  1643. -     Makes a string containing CHARACTERS and pushes it on the stack.
  1644. -     For example, `[foo]P' prints the characters `foo' (with no
  1645. -     newline).
  1646. -
  1647. -`x'
  1648. -     Pops a value off the stack and executes it as a macro.  Normally
  1649. -     it should be a string; if it is a number, it is simply pushed back
  1650. -     onto the stack.  For example, `[1p]x' executes the macro `1p',
  1651. -     which pushes 1 on the stack and prints `1' on a separate line.
  1652. -
  1653. -     Macros are most often stored in registers; `[1p]sa' stores a macro
  1654. -     to print `1' into register `a', and `lax' invokes the macro.
  1655. -
  1656. -`>R'
  1657. -     Pops two values off the stack and compares them assuming they are
  1658. -     numbers, executing the contents of register R as a macro if the
  1659. -     original top-of-stack is greater.  Thus, `1 2>a' will invoke
  1660. -     register `a''s contents and `2 1>a' will not.
  1661. -
  1662. -`<R'
  1663. -     Similar but invokes the macro if the original top-of-stack is less.
  1664. -
  1665. -`=R'
  1666. -     Similar but invokes the macro if the two numbers popped are equal.
  1667. -
  1668. -`?'
  1669. -     Reads a line from the terminal and executes it.  This command
  1670. -     allows a macro to request input from the user.
  1671. -
  1672. -`q'
  1673. -     During the execution of a macro, this command exits from the macro
  1674. -     and also from the macro which invoked it.  If called from the top
  1675. -     level, or from a macro which was called directly from the top
  1676. -     level, the `q' command will cause DC to exit.
  1677. -
  1678. -`Q'
  1679. -     Pops a value off the stack and uses it as a count of levels of
  1680. -     macro execution to be exited.  Thus, `3Q' exits three levels.
  1681. -
  1682. -
  1683. -File: dc.info,  Node: Status Inquiry,  Next: Miscellaneous,  Prev: Strings,  Up: Top
  1684. -
  1685. -Status Inquiry
  1686. -**************
  1687. -
  1688. -`Z'
  1689. -     Pops a value off the stack, calculates the number of digits it has
  1690. -     (or number of characters, if it is a string) and pushes that
  1691. -     number.
  1692. -
  1693. -`X'
  1694. -     Pops a value off the stack, calculates the number of fraction
  1695. -     digits it has, and pushes that number.  For a string, the value
  1696. -     pushed is 0.
  1697. -
  1698. -`z'
  1699. -     Pushes the current stack depth; the number of objects on the stack
  1700. -     before the execution of the `z' command.
  1701. -
  1702. -
  1703. -File: dc.info,  Node: Miscellaneous,  Next: Notes,  Prev: Status Inquiry,  Up: Top
  1704. -
  1705. -Miscellaneous
  1706. -*************
  1707. -
  1708. -`!'
  1709. -     Will run the rest of the line as a system command.
  1710. -
  1711. -`#'
  1712. -     Will interpret the rest of the line as a comment.
  1713. -
  1714. -`:R'
  1715. -     Will pop the top two values off of the stack.  The old
  1716. -     second-to-top value will be stored in the array R, indexed by the
  1717. -     old top-of-stack value.
  1718. -
  1719. -`;R'
  1720. -     Pops the top-of-stack and uses it as an index into the array R.
  1721. -     The selected value is then pushed onto the stack.
  1722. -
  1723. -
  1724. -File: dc.info,  Node: Notes,  Prev: Miscellaneous,  Up: Top
  1725. -
  1726. -Notes
  1727. -*****
  1728. -
  1729. -   The array operations `:' and `;' are usually only used by
  1730. -traditional implementations of BC.  (The GNU BC is self contained and
  1731. -does not need DC to run.) The comment operator `#' is a new command not
  1732. -found in traditional implementations of DC.
  1733. -
  1734. -
  1735. -
  1736. -Tag Table:
  1737. -Node: Top960
  1738. -Node: Introduction1487
  1739. -Node: Printing Commands2707
  1740. -Node: Arithmetic3267
  1741. -Node: Stack Control5230
  1742. -Node: Registers5530
  1743. -Node: Parameters6446
  1744. -Node: Strings7707
  1745. -Node: Status Inquiry9932
  1746. -Node: Miscellaneous10489
  1747. -Node: Notes11021
  1748. -
  1749. -End Tag Table
  1750. diff -rup --new-file baseline/fsf/bc/manifests/bin amiga/fsf/bc/manifests/bin
  1751. --- baseline/fsf/bc/manifests/bin    Wed Dec 31 17:00:00 1969
  1752. +++ amiga/fsf/bc/manifests/bin    Sat Sep 28 00:00:00 1996
  1753. @@ -0,0 +1,10 @@
  1754. +COPYING
  1755. +COPYING.info
  1756. +bin/bc
  1757. +bin/dc
  1758. +dvi/dc.dvi
  1759. +guide/dc.guide
  1760. +info/dc.info
  1761. +man/man1/bc.1
  1762. +man/man1/dc.1
  1763. +ps/dc.ps
  1764. diff -rup --new-file baseline/fsf/bc/manifests/src amiga/fsf/bc/manifests/src
  1765. --- baseline/fsf/bc/manifests/src    Wed Dec 31 17:00:00 1969
  1766. +++ amiga/fsf/bc/manifests/src    Sat Sep 28 00:00:00 1996
  1767. @@ -0,0 +1,70 @@
  1768. +fsf/bc/COPYING
  1769. +fsf/bc/ChangeLog
  1770. +fsf/bc/Examples/ckbook.b
  1771. +fsf/bc/Examples/pi.b
  1772. +fsf/bc/Examples/primes.b
  1773. +fsf/bc/Examples/twins.b
  1774. +fsf/bc/Install
  1775. +fsf/bc/Makefile.in
  1776. +fsf/bc/Product-Info
  1777. +fsf/bc/README
  1778. +fsf/bc/Test/BUG.bc
  1779. +fsf/bc/Test/array.b
  1780. +fsf/bc/Test/aryprm.b
  1781. +fsf/bc/Test/atan.b
  1782. +fsf/bc/Test/checklib.b
  1783. +fsf/bc/Test/div.b
  1784. +fsf/bc/Test/exp.b
  1785. +fsf/bc/Test/fact.b
  1786. +fsf/bc/Test/jn.b
  1787. +fsf/bc/Test/ln.b
  1788. +fsf/bc/Test/mul.b
  1789. +fsf/bc/Test/raise.b
  1790. +fsf/bc/Test/signum
  1791. +fsf/bc/Test/sine.b
  1792. +fsf/bc/Test/sqrt.b
  1793. +fsf/bc/Test/testfn.b
  1794. +fsf/bc/Test/timetest
  1795. +fsf/bc/acconfig.h
  1796. +fsf/bc/bc.1
  1797. +fsf/bc/bc.c.dist
  1798. +fsf/bc/bc.y
  1799. +fsf/bc/bcdefs.h
  1800. +fsf/bc/config.h.in
  1801. +fsf/bc/configure
  1802. +fsf/bc/configure.in
  1803. +fsf/bc/const.h
  1804. +fsf/bc/dc-array.c
  1805. +fsf/bc/dc-eval.c
  1806. +fsf/bc/dc-misc.c
  1807. +fsf/bc/dc-number.c
  1808. +fsf/bc/dc-proto.h
  1809. +fsf/bc/dc-regdef.h
  1810. +fsf/bc/dc-stack.c
  1811. +fsf/bc/dc-string.c
  1812. +fsf/bc/dc-version.h
  1813. +fsf/bc/dc.1
  1814. +fsf/bc/dc.h
  1815. +fsf/bc/dc.texinfo
  1816. +fsf/bc/execute.c
  1817. +fsf/bc/fix_libmath.h
  1818. +fsf/bc/global.c
  1819. +fsf/bc/global.h
  1820. +fsf/bc/install-sh
  1821. +fsf/bc/libmath.b
  1822. +fsf/bc/libmath.h
  1823. +fsf/bc/load.c
  1824. +fsf/bc/main.c
  1825. +fsf/bc/manifests/bin
  1826. +fsf/bc/manifests/src
  1827. +fsf/bc/number.c
  1828. +fsf/bc/number.h
  1829. +fsf/bc/proto.h
  1830. +fsf/bc/sbc.y
  1831. +fsf/bc/scan.c.dist
  1832. +fsf/bc/scan.l
  1833. +fsf/bc/storage.c
  1834. +fsf/bc/util.c
  1835. +fsf/bc/version.h
  1836. +fsf/bc/vfprintf.c
  1837. +fsf/bc/y.tab.h.dist
  1838. diff -rup --new-file baseline/fsf/bc/scan.l amiga/fsf/bc/scan.l
  1839. --- baseline/fsf/bc/scan.l    Wed Nov  2 11:46:07 1994
  1840. +++ amiga/fsf/bc/scan.l    Sat Sep 28 00:00:00 1996
  1841. @@ -135,7 +135,10 @@ limits return(Limits);
  1842.        }
  1843.  [a-z][a-z0-9_]* { yylval.s_value = strcopyof(yytext); return(NAME); }
  1844.  \"[^\"]*\"  {
  1845. -           unsigned char *look;
  1846. +          /* ADE-local: Changed "look" from "unsigned char *" to just "char *"
  1847. +         since that is the type of yytext, and in ANSI C, these are different
  1848. +         types, leading to a compiler diagnostic message and/or error. */
  1849. +           char *look;
  1850.            int count = 0;
  1851.            yylval.s_value = strcopyof(yytext);
  1852.            for (look = yytext; *look != 0; look++)
  1853. @@ -147,7 +150,10 @@ limits return(Limits);
  1854.            return(STRING);
  1855.          }
  1856.  {DIGIT}({DIGIT}|\\\n)*("."({DIGIT}|\\\n)*)?|"."(\\\n)*{DIGIT}({DIGIT}|\\\n)* {
  1857. -          unsigned char *src, *dst;
  1858. +          /* ADE-local: Changed "src" and "dst" from "unsigned char *" to just "char *"
  1859. +         since that is the type of yytext, and in ANSI C, these are different
  1860. +         types, leading to a compiler diagnostic message and/or error. */
  1861. +          char *src, *dst;
  1862.            int len;
  1863.            /* remove a trailing decimal point. */
  1864.            len = strlen(yytext);
  1865.