home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
bc-1.03-diffs.gz
/
bc-1.03-diffs
Wrap
Text File
|
1996-10-13
|
63KB
|
1,865 lines
This file contains patches that transform the baseline version into
the amiga version. Assuming that you have unarchived the baseline
version in the current directory, just run the command:
patch -p1 -E -b .pbak <diff-file
where 'diff-file' is this patch file. After running patch you should
remove all the generated *.pbak files, and look for any *.rej files
that indicate a problem patching the baseline source.
diff -rup --new-file baseline/fsf/bc/Makefile.in amiga/fsf/bc/Makefile.in
--- baseline/fsf/bc/Makefile.in Fri Nov 4 00:01:16 1994
+++ amiga/fsf/bc/Makefile.in Sat Sep 28 00:00:00 1996
@@ -29,6 +29,9 @@ bindir = $(exec_prefix)/bin
datadir = $(prefix)/lib
libdir = $(prefix)/lib
infodir = $(prefix)/info
+guidedir = $(prefix)/guide
+dvidir = $(prefix)/dvi
+psdir = $(prefix)/ps
# Where to install the manual pages.
mandir = $(prefix)/man/man1
@@ -63,6 +66,7 @@ LDFLAGS = @LDFLAGS@
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
+DVIPS = dvips
# stuff for cflags
@@ -97,7 +101,7 @@ DISTFILES = COPYING Makefile.in Install
number.h proto.h scan.l util.c vfprintf.c README bc.1 sbc.y \
fix_libmath.h libmath.b configure configure.in config.h.in \
acconfig.h ChangeLog \
- dc.1 dc.texinfo \
+ dc.1 dc.texinfo dc.guide dc.dvi dc.ps \
dc-array.c dc-eval.c dc-misc.c dc-number.c dc-stack.c \
dc-string.c dc.h dc-proto.h dc-regdef.h dc-version.h \
install-sh
@@ -108,10 +112,10 @@ DCOFILES = dc-misc.$O dc-eval.$O dc-stac
#
SUBDIRS = Examples Test
#
-EXTRAFILES = bc.c.dist scan.c.dist y.tab.h.dist libmath.h dc.info
+EXTRAFILES = bc.c.dist scan.c.dist y.tab.h.dist libmath.h dc.info dc.guide dc.dvi dc.ps
#
-all: bc dc dc.info
+all: bc dc dc.info dc.guide dc.dvi dc.ps
### targets required by GNU Coding standards ###
@@ -137,7 +141,7 @@ config.h.in:
autoheader
config.h: config.h.in configure
- ./configure
+ $(SHELL) $(srcdir)/configure
libmath.h: libmath.b
$(MAKE) fbc
@@ -163,26 +167,35 @@ install: installdirs bc libmath.b config
fi
$(INSTALL_DATA) $(srcdir)/bc.1 $(mandir)
$(INSTALL_DATA) $(srcdir)/dc.1 $(mandir)
- $(INSTALL_DATA) $(srcdir)/dc.info $(infodir)
+ $(INSTALL_DATA) dc.info $(infodir)
+ $(INSTALL_DATA) dc.guide $(guidedir)
+ $(INSTALL_DATA) dc.dvi $(dvidir)
+ $(INSTALL_DATA) dc.ps $(psdir)
installdirs:
- -mkdir $(prefix)
- -mkdir $(bindir)
+ if [ -d $(prefix) ]; then true; else mkdir $(prefix); fi
+ if [ -d $(bindir) ]; then true; else mkdir $(bindir); fi
-if grep -s "define BC_MATH_FILE" config.h; \
- then mkdir $(libdir)
+ then if [ -d $(libdir) ]; then true; else mkdir $(libdir); fi; \
else true; \
fi
- -mkdir $(mandir)
- -mkdir $(infodir)
+ if [ -d $(prefix) ]; then true; else mkdir $(mandir); fi
+ if [ -d $(infodir) ]; then true; else mkdir $(infodir); fi
+ if [ -d $(guidedir) ]; then true; else mkdir $(guidedir); fi
+ if [ -d $(dvidir) ]; then true; else mkdir $(dvidir); fi
+ if [ -d $(psdir) ]; then true; else mkdir $(psdir); fi
uninstall:
rm -f $(bindir)/bc $(bindir)/dc
if grep -s "define BC_MATH_FILE" config.h; \
- then rm -f $(libdir)/libmath.b;
+ then rm -f $(libdir)/libmath.b; \
else true; \
fi
rm -f $(mandir)/bc1 $(mandir)/dc.1
rm -f $(infodir)/dc.info
+ rm -f $(guidedir)/dc.guide
+ rm -f $(dvidir)/dc.dvi
+ rm -f $(psdir)/dc.ps
dist: $(EXTRAFILES)
OF=`sed -n 's/.*\([0-9][0-9]*\.[0-9][0-9]*\).*/bc-\1/p' version.h` \
@@ -258,24 +271,26 @@ distclean: clean
mostlyclean: distclean
realclean: distclean
- rm -rf *.dist configure libmath.h dc.info config.h.in
+ rm -rf *.dist configure libmath.h dc.info dc.guide dc.dvi dc.ps config.h.in
scan.c: scan.l
- $(LEX) scan.l
+ $(LEX) $(srcdir)/scan.l
mv lex.yy.c scan.c
y.tab.h bc.c: bc.y
@echo "expect 1 shift/reduce conflict"
- $(YACC) -d bc.y
+ $(YACC) -d $(srcdir)/bc.y
mv y.tab.c bc.c
sbc.c: sbc.y
- $(YACC) -d sbc.y
+ $(YACC) -d $(srcdir)/sbc.y
mv y.tab.c sbc.c
# Information files
info: dc.info
+guide: dc.guide
dvi: dc.dvi
+ps: dc.ps
#bc.info: bc.texinfo
# $(MAKEINFO) -I$(srcdir) --no-split bc.texinfo
@@ -286,9 +301,14 @@ dvi: dc.dvi
dc.info: dc.texinfo
$(MAKEINFO) -I$(srcdir) --no-split dc.texinfo
+dc.guide: dc.texinfo
+ $(MAKEINFO) -I$(srcdir) --no-split dc.texinfo --amiga -o $@
+
dc.dvi: dc.texinfo
$(TEXI2DVI) $(srcdir)/dc.texinfo
+dc.ps: dc.dvi
+ $(DVIPS) -o $@ $?
global.$O: bcdefs.h global.h libmath.h global.c
bc.$O: bcdefs.h global.h bc.y
diff -rup --new-file baseline/fsf/bc/Product-Info amiga/fsf/bc/Product-Info
--- baseline/fsf/bc/Product-Info Wed Dec 31 17:00:00 1969
+++ amiga/fsf/bc/Product-Info Sat Sep 28 00:00:00 1996
@@ -0,0 +1,38 @@
+.name
+bc
+.fullname
+GNU bc
+.type
+Miscellaneous
+.short
+GNU arbitrary precision calculator lang.
+.description
+A language that supports arbitrary precision numbers with interactive
+execution of statements. There are some similarities in the syntax to
+the C programming language.
+
+A standard math library is available by command line option. If
+requested, the math library is defined before processing any files.
+bc starts by processing code from all the files listed on the command
+line in the order listed. After all files have been processed, bc
+reads from the standard input. All code is executed as it is read.
+(If a file contains a command to halt the processor, bc will never
+read from the standard input.)
+
+This version of bc contains several extensions beyond traditional bc
+implementations and the POSIX draft standard. Command line options
+can cause these extensions to print a warning or to be rejected. This
+document describes the language accepted by this processor.
+Extensions will be identified as such.
+.version
+1.03
+.author
+Philip A. Nelson
+.requirements
+Binary version requires ixemul.library.
+.distribution
+GNU Public License
+.email
+phil@cs.wwu.edu
+.described-by
+Fred Fish (fnf@amigalib.com)
diff -rup --new-file baseline/fsf/bc/configure amiga/fsf/bc/configure
--- baseline/fsf/bc/configure Thu Nov 3 15:45:26 1994
+++ amiga/fsf/bc/configure Mon Sep 30 22:36:25 1996
@@ -1,8 +1,8 @@
-#!/bin/sh
+#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated automatically using autoconf version 2.0
-# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
+# Generated automatically using autoconf version 2.10
+# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
@@ -12,37 +12,6 @@ ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
-# Omit some internal or obsolete options to make the list less imposing.
-ac_usage="Usage: configure [options] [host]
-Options: [defaults in brackets after descriptions]
-Configuration:
- --cache-file=FILE cache test results in FILE
- --help print this message
- --no-create do not create output files
- --quiet, --silent do not print \`checking...' messages
- --version print the version of autoconf that created configure
-Directory and file names:
- --prefix=PREFIX install architecture-independent files in PREFIX
- [$ac_default_prefix]
- --exec-prefix=PREFIX install architecture-dependent files in PREFIX
- [same as prefix]
- --srcdir=DIR find the sources in DIR [configure dir or ..]
- --program-prefix=PREFIX prepend PREFIX to installed program names
- --program-suffix=SUFFIX append SUFFIX to installed program names
- --program-transform-name=PROGRAM run sed PROGRAM on installed program names
-Host type:
- --build=BUILD configure for building on BUILD [BUILD=HOST]
- --host=HOST configure for HOST [guessed]
- --target=TARGET configure for TARGET [TARGET=HOST]
-Features and packages:
- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --x-includes=DIR X include files are in DIR
- --x-libraries=DIR X library files are in DIR
---enable and --with options recognized:$ac_help"
-
# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
@@ -64,9 +33,25 @@ target=NONE
verbose=
x_includes=NONE
x_libraries=NONE
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datadir='${prefix}/share'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+libdir='${exec_prefix}/lib'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+infodir='${prefix}/info'
+guidedir='${prefix}/guide'
+psdir='${prefix}/ps'
+dvidir='${prefix}/dvi'
+mandir='${prefix}/man'
# Initialize some other variables.
subdirs=
+MFLAGS= MAKEFLAGS=
ac_prev=
for ac_option
@@ -88,9 +73,14 @@ do
case "$ac_option" in
- -build | --build | --buil | --bui | --bu | --b)
+ -bindir | --bindir | --bindi | --bind | --bin | --bi)
+ ac_prev=bindir ;;
+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+ bindir="$ac_optarg" ;;
+
+ -build | --build | --buil | --bui | --bu)
ac_prev=build ;;
- -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
+ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
build="$ac_optarg" ;;
-cache-file | --cache-file | --cache-fil | --cache-fi \
@@ -100,6 +90,12 @@ do
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cache_file="$ac_optarg" ;;
+ -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
+ ac_prev=datadir ;;
+ -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
+ | --da=*)
+ datadir="$ac_optarg" ;;
+
-disable-* | --disable-*)
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
# Reject names that are not valid shell variable names.
@@ -136,9 +132,61 @@ do
with_gas=yes ;;
-help | --help | --hel | --he)
+ # Omit some internal or obsolete options to make the list less imposing.
+ # This message is too long to be a string in the A/UX 3.1 sh.
cat << EOF
-$ac_usage
+Usage: configure [options] [host]
+Options: [defaults in brackets after descriptions]
+Configuration:
+ --cache-file=FILE cache test results in FILE
+ --help print this message
+ --no-create do not create output files
+ --quiet, --silent do not print \`checking...' messages
+ --version print the version of autoconf that created configure
+Directory and file names:
+ --prefix=PREFIX install architecture-independent files in PREFIX
+ [$ac_default_prefix]
+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
+ [same as prefix]
+ --bindir=DIR user executables in DIR [EPREFIX/bin]
+ --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
+ --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
+ --datadir=DIR read-only architecture-independent data in DIR
+ [PREFIX/share]
+ --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
+ --sharedstatedir=DIR modifiable architecture-independent data in DIR
+ [PREFIX/com]
+ --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
+ --libdir=DIR object code libraries in DIR [EPREFIX/lib]
+ --includedir=DIR C header files in DIR [PREFIX/include]
+ --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
+ --infodir=DIR info documentation in DIR [PREFIX/info]
+ --guidedir=DIR Amigaguide documentation in DIR [PREFIX/guide]
+ --psdir=DIR postscript documentation in DIR [PREFIX/ps]
+ --dvidir=DIR TeX dvi documentation in DIR [PREFIX/dvi]
+ --mandir=DIR man documentation in DIR [PREFIX/man]
+ --srcdir=DIR find the sources in DIR [configure dir or ..]
+ --program-prefix=PREFIX prepend PREFIX to installed program names
+ --program-suffix=SUFFIX append SUFFIX to installed program names
+ --program-transform-name=PROGRAM
+ run sed PROGRAM on installed program names
+EOF
+ cat << EOF
+Host type:
+ --build=BUILD configure for building on BUILD [BUILD=HOST]
+ --host=HOST configure for HOST [guessed]
+ --target=TARGET configure for TARGET [TARGET=HOST]
+Features and packages:
+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --x-includes=DIR X include files are in DIR
+ --x-libraries=DIR X library files are in DIR
EOF
+ if test -n "$ac_help"; then
+ echo "--enable and --with options recognized:$ac_help"
+ fi
exit 0 ;;
-host | --host | --hos | --ho)
@@ -146,6 +194,56 @@ EOF
-host=* | --host=* | --hos=* | --ho=*)
host="$ac_optarg" ;;
+ -includedir | --includedir | --includedi | --included | --include \
+ | --includ | --inclu | --incl | --inc)
+ ac_prev=includedir ;;
+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+ | --includ=* | --inclu=* | --incl=* | --inc=*)
+ includedir="$ac_optarg" ;;
+
+ -infodir | --infodir | --infodi | --infod | --info | --inf)
+ ac_prev=infodir ;;
+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+ infodir="$ac_optarg" ;;
+
+ -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
+ ac_prev=guidedir ;;
+ -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+ guidedir="$ac_optarg" ;;
+
+ -psdir | --psdir | --psdi | --psd | --ps)
+ ac_prev=psdir ;;
+ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+ psdir="$ac_optarg" ;;
+
+ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
+ ac_prev=dvidir ;;
+ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+ dvidir="$ac_optarg" ;;
+
+ -libdir | --libdir | --libdi | --libd)
+ ac_prev=libdir ;;
+ -libdir=* | --libdir=* | --libdi=* | --libd=*)
+ libdir="$ac_optarg" ;;
+
+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+ | --libexe | --libex | --libe)
+ ac_prev=libexecdir ;;
+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+ | --libexe=* | --libex=* | --libe=*)
+ libexecdir="$ac_optarg" ;;
+
+ -localstatedir | --localstatedir | --localstatedi | --localstated \
+ | --localstate | --localstat | --localsta | --localst \
+ | --locals | --local | --loca | --loc | --lo)
+ ac_prev=localstatedir ;;
+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* \
+ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
+ localstatedir="$ac_optarg" ;;
+
+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+ ac_prev=mandir ;;
+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+ mandir="$ac_optarg" ;;
+
-nfp | --nfp | --nf)
# Obsolete; use --without-fp.
with_fp=no ;;
@@ -158,6 +256,15 @@ EOF
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
no_recursion=yes ;;
+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+ | --oldin | --oldi | --old | --ol | --o)
+ ac_prev=oldincludedir ;;
+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+ oldincludedir="$ac_optarg" ;;
+
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
ac_prev=prefix ;;
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
@@ -198,6 +305,23 @@ EOF
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+ ac_prev=sbindir ;;
+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+ | --sbi=* | --sb=*)
+ sbindir="$ac_optarg" ;;
+
+ -sharedstatedir | --sharedstatedir | --sharedstatedi \
+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+ | --sharedst | --shareds | --shared | --share | --shar \
+ | --sha | --sh)
+ ac_prev=sharedstatedir ;;
+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+ | --sha=* | --sh=*)
+ sharedstatedir="$ac_optarg" ;;
+
-site | --site | --sit)
ac_prev=site ;;
-site=* | --site=* | --sit=*)
@@ -208,6 +332,13 @@ EOF
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
srcdir="$ac_optarg" ;;
+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+ | --syscon | --sysco | --sysc | --sys | --sy)
+ ac_prev=sysconfdir ;;
+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+ sysconfdir="$ac_optarg" ;;
+
-target | --target | --targe | --targ | --tar | --ta | --t)
ac_prev=target ;;
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
@@ -217,7 +348,7 @@ EOF
verbose=yes ;;
-version | --version | --versio | --versi | --vers)
- echo "configure generated by autoconf version 2.0"
+ echo "configure generated by autoconf version 2.10"
exit 0 ;;
-with-* | --with-*)
@@ -263,7 +394,7 @@ EOF
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
;;
- *)
+ *)
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
echo "configure: warning: $ac_option: invalid host type" 1>&2
fi
@@ -280,19 +411,20 @@ if test -n "$ac_prev"; then
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
fi
-trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
+trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
# File descriptor usage:
-# 0 unused; standard input
+# 0 standard input
# 1 file creation
# 2 errors and warnings
-# 3 unused; some systems may open it to /dev/tty
-# 4 checking for... messages and results
+# 3 some systems may open it to /dev/tty
+# 4 used on the Kubota Titan
+# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
- exec 4>/dev/null
+ exec 6>/dev/null
else
- exec 4>&1
+ exec 6>&1
fi
exec 5>./config.log
@@ -382,8 +514,8 @@ fi
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
-ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
-ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
@@ -401,9 +533,9 @@ fi
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
@@ -417,39 +549,88 @@ else
fi
done
IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&4
+ echo "$ac_t""$CC" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+if test -z "$CC"; then
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
+ ac_prog_rejected=no
+ for ac_dir in $PATH; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
+ ac_prog_rejected=yes
+ continue
+ fi
+ ac_cv_prog_CC="cc"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+if test $ac_prog_rejected = yes; then
+ # We found a bogon in the path, so make sure we never use it.
+ set dummy $ac_cv_prog_CC
+ shift
+ if test $# -gt 0; then
+ # We chose a different compiler from the bogus one.
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set CC to just the basename; use the full file name.
+ shift
+ set dummy "$ac_dir/$ac_word" "$@"
+ shift
+ ac_cv_prog_CC="$@"
+ fi
+fi
+fi
+fi
+CC="$ac_cv_prog_CC"
+if test -n "$CC"; then
+ echo "$ac_t""$CC" 1>&6
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
+ test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
+fi
-echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.c <<EOF
#ifdef __GNUC__
yes;
#endif
EOF
-if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
+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
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
fi
fi
-echo "$ac_t""$ac_cv_prog_gcc" 1>&4
+
+echo "$ac_t""$ac_cv_prog_gcc" 1>&6
if test $ac_cv_prog_gcc = yes; then
GCC=yes
if test "${CFLAGS+set}" != set; then
- echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
@@ -460,11 +641,12 @@ fi
rm -f conftest*
fi
- echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
+
+echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
if test $ac_cv_prog_gcc_g = yes; then
- CFLAGS="-g -O"
+ CFLAGS="-g -O2"
else
- CFLAGS="-O"
+ CFLAGS="-O2"
fi
fi
else
@@ -472,14 +654,14 @@ else
test "${CFLAGS+set}" = set || CFLAGS="-g"
fi
-echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
+echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
fi
if test -z "$CPP"; then
-if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
# This must be in double quotes, not single quotes, because CPP may get
# substituted into the Makefile and "${CC-cc}" will confuse make.
@@ -487,12 +669,13 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
-#line 491 "configure"
+#line 673 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
@@ -501,12 +684,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
-#line 505 "configure"
+#line 688 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
@@ -520,21 +704,24 @@ fi
rm -f conftest*
ac_cv_prog_CPP="$CPP"
fi
+ CPP="$ac_cv_prog_CPP"
+else
+ ac_cv_prog_CPP="$CPP"
fi
-CPP="$ac_cv_prog_CPP"
-echo "$ac_t""$CPP" 1>&4
+echo "$ac_t""$CPP" 1>&6
ac_safe=`echo "minix/config.h" | tr './\055' '___'`
-echo $ac_n "checking for minix/config.h""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 534 "configure"
+#line 720 "configure"
#include "confdefs.h"
#include <minix/config.h>
EOF
-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -547,10 +734,10 @@ fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&4
+ echo "$ac_t""yes" 1>&6
MINIX=yes
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
MINIX=
fi
@@ -573,9 +760,9 @@ for ac_prog in 'bison -y' byacc
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_prog_YACC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$YACC"; then
ac_cv_prog_YACC="$YACC" # Let the user override the test.
@@ -593,9 +780,9 @@ fi
fi
YACC="$ac_cv_prog_YACC"
if test -n "$YACC"; then
- echo "$ac_t""$YACC" 1>&4
+ echo "$ac_t""$YACC" 1>&6
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
test -n "$YACC" && break
@@ -604,9 +791,9 @@ test -n "$YACC" || YACC="yacc"
# Extract the first word of "flex", so it can be a program name with args.
set dummy flex; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_prog_LEX'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$LEX"; then
ac_cv_prog_LEX="$LEX" # Let the user override the test.
@@ -625,9 +812,9 @@ fi
fi
LEX="$ac_cv_prog_LEX"
if test -n "$LEX"; then
- echo "$ac_t""$LEX" 1>&4
+ echo "$ac_t""$LEX" 1>&6
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
if test -z "$LEXLIB"
@@ -636,37 +823,42 @@ then
flex*) ac_lib=fl ;;
*) ac_lib=l ;;
esac
- echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_lib_$ac_lib'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&6
+ac_lib_var=`echo $ac_lib'_'yywrap | tr './+\055' '__p_'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="$LIBS -l$ac_lib "
+LIBS="-l$ac_lib $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 647 "configure"
+#line 835 "configure"
#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char yywrap();
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
-main()
+yywrap()
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_lib_$ac_lib=yes"
+ eval "ac_cv_lib_$ac_lib_var=yes"
else
rm -rf conftest*
- eval "ac_cv_lib_$ac_lib=no"
+ eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib`\" = yes"; then
- echo "$ac_t""yes" 1>&4
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
LEXLIB="-l$ac_lib"
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
fi
@@ -700,18 +892,20 @@ ac_configure=$ac_aux_dir/configure # Thi
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
+# AmigaOS /c/install
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
-echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
+echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
if test -z "$INSTALL"; then
-if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
for ac_dir in $PATH; do
- case "$ac_dir" in
- ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
+ # Account for people who put trailing slashes in PATH elements.
+ case "$ac_dir/" in
+ /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
*)
# OSF1 and SCO ODT 3.0 have their own names for install.
for ac_prog in ginstall installbsd scoinst install; do
@@ -731,12 +925,19 @@ else
esac
done
IFS="$ac_save_ifs"
- # As a last resort, use the slow shell script.
- test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
+
fi
- INSTALL="$ac_cv_path_install"
+ if test "${ac_cv_path_install+set}" = set; then
+ INSTALL="$ac_cv_path_install"
+ else
+ # As a last resort, use the slow shell script. We don't cache a
+ # path for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the path is relative.
+ INSTALL="$ac_install_sh"
+ fi
fi
-echo "$ac_t""$INSTALL" 1>&4
+echo "$ac_t""$INSTALL" 1>&6
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
@@ -744,12 +945,12 @@ test -z "$INSTALL_PROGRAM" && INSTALL_PR
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-echo $ac_n "checking for working const""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for working const""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 753 "configure"
+#line 954 "configure"
#include "confdefs.h"
int main() { return 0; }
@@ -762,7 +963,7 @@ char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this. */
struct point {int x, y;};
-static struct point const zero;
+static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
It does not let you subtract one const X* pointer from another in an arm
of an if-expression whose if-part is not a constant expression */
@@ -799,7 +1000,7 @@ ccp = (char const *const *) p;
; return 0; }
EOF
-if eval $ac_compile; then
+if { (eval echo configure:1004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_const=yes
else
@@ -809,7 +1010,8 @@ fi
rm -f conftest*
fi
-echo "$ac_t""$ac_cv_c_const" 1>&4
+
+echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
cat >> confdefs.h <<\EOF
#define const
@@ -818,19 +1020,19 @@ EOF
fi
# If we cannot run a trivial program, we must be cross compiling.
-echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
- ac_cv_cross=yes
+ ac_cv_c_cross=yes
else
cat > conftest.$ac_ext <<EOF
-#line 830 "configure"
+#line 1032 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
-eval $ac_link
+{ (eval echo configure:1036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
ac_cv_c_cross=no
else
@@ -839,22 +1041,24 @@ fi
fi
rm -fr conftest*
fi
+
+echo "$ac_t""$ac_cv_c_cross" 1>&6
cross_compiling=$ac_cv_c_cross
-echo "$ac_t""$ac_cv_c_cross" 1>&4
-echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 851 "configure"
+#line 1054 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:1062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -869,7 +1073,7 @@ rm -f conftest*
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
-#line 873 "configure"
+#line 1077 "configure"
#include "confdefs.h"
#include <string.h>
EOF
@@ -887,7 +1091,7 @@ fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
-#line 891 "configure"
+#line 1095 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
@@ -905,10 +1109,10 @@ fi
if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
- ac_cv_header_stdc=no
+ :
else
cat > conftest.$ac_ext <<EOF
-#line 912 "configure"
+#line 1116 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@@ -919,7 +1123,7 @@ if (XOR (islower (i), ISLOWER (i)) || to
exit (0); }
EOF
-eval $ac_link
+{ (eval echo configure:1127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
:
else
@@ -929,7 +1133,8 @@ fi
rm -fr conftest*
fi
fi
-echo "$ac_t""$ac_cv_header_stdc" 1>&4
+
+echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
@@ -937,12 +1142,12 @@ EOF
fi
-echo $ac_n "checking for size_t""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_type_size_t'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for size_t""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 946 "configure"
+#line 1151 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@@ -960,7 +1165,7 @@ fi
rm -f conftest*
fi
-echo "$ac_t""$ac_cv_type_size_t" 1>&4
+echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
cat >> confdefs.h <<\EOF
#define size_t unsigned
@@ -971,16 +1176,17 @@ fi
for ac_hdr in stdarg.h stddef.h stdlib.h string.h limits.h unistd.h
do
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 980 "configure"
+#line 1185 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -993,28 +1199,35 @@ fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&4
- ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
+ echo "$ac_t""yes" 1>&6
+ ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
done
for ac_func in isgraph
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1015 "configure"
+#line 1221 "configure"
#include "confdefs.h"
-#include <ctype.h> /* Arbitrary system header to define __stub macros. */
-int main() { return 0; }
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char $ac_func();
+
+int main() { t(); return 0; }
int t() {
/* The GNU C library defines this for functions which it implements
@@ -1023,13 +1236,12 @@ int t() {
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-/* Override any gcc2 internal prototype to avoid an error. */
-char $ac_func(); $ac_func();
+$ac_func();
#endif
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:1245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -1040,22 +1252,22 @@ rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&4
- ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
+ echo "$ac_t""yes" 1>&6
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
done
SaveCFLAGS="$CFLAGS"
CFLAGS="-g -O -I. -I$srcdir"
-echo $ac_n "checking if long strings are accepted by the C compiler""... $ac_c" 1>&4
+echo $ac_n "checking if long strings are accepted by the C compiler""... $ac_c" 1>&6
cat > conftest.$ac_ext <<EOF
-#line 1059 "configure"
+#line 1271 "configure"
#include "confdefs.h"
char libmath[] =
@@ -1067,25 +1279,23 @@ int t() {
; return 0; }
EOF
-if eval $ac_compile; then
+if { (eval echo configure:1283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
- echo "$ac_t""yes" 1>&4
+ echo "$ac_t""yes" 1>&6
else
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define BC_MATH_FILE "libmath.b"
EOF
-echo "$ac_t""no" 1>&4
+echo "$ac_t""no" 1>&6
echo "configure: warning: libmath.b will not be preloaded into the executable" 1>&2
fi
rm -f conftest*
CFLAGS="$SaveCFLAGS"
trap '' 1 2 15
-if test -w $cache_file; then
-echo "updating cache $cache_file"
-cat > $cache_file <<\EOF
+cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
@@ -1101,15 +1311,24 @@ cat > $cache_file <<\EOF
# --recheck option to rerun configure.
#
EOF
-# Ultrix sh set writes to stderr and can't be redirected directly.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
- sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
- >> $cache_file
+ sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
+ >> confcache
+if cmp -s $cache_file confcache; then
+ :
else
-echo "not updating unwritable cache $cache_file"
+ if test -w $cache_file; then
+ echo "updating cache $cache_file"
+ cat confcache > $cache_file
+ else
+ echo "not updating unwritable cache $cache_file"
+ fi
fi
+rm -f confcache
-trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
+trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
@@ -1130,9 +1349,11 @@ DEFS=-DHAVE_CONFIG_H
: ${CONFIG_STATUS=./config.status}
echo creating $CONFIG_STATUS
-rm -f $CONFIG_STATUS
+# Some systems, like AmigaOS, won't allow you to remove a script that is
+# being executed, so just move it out of the way instead.
+if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
cat > $CONFIG_STATUS <<EOF
-#!/bin/sh
+#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
@@ -1151,7 +1372,7 @@ do
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- echo "$CONFIG_STATUS generated by autoconf version 2.0"
+ echo "$CONFIG_STATUS generated by autoconf version 2.10"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
@@ -1162,11 +1383,13 @@ done
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
-trap 'rm -fr Makefile config.h conftest*; exit 1' 1 2 15
+trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+EOF
+cat >> $CONFIG_STATUS <<EOF
-# Protect against being on the right side of a sed subst in config.status.
-sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
- s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
+# Protect against being on the right side of a sed subst in config.status.
+sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
+ s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@CFLAGS@%$CFLAGS%g
@@ -1178,6 +1401,21 @@ s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
+s%@bindir@%$bindir%g
+s%@sbindir@%$sbindir%g
+s%@libexecdir@%$libexecdir%g
+s%@datadir@%$datadir%g
+s%@sysconfdir@%$sysconfdir%g
+s%@sharedstatedir@%$sharedstatedir%g
+s%@localstatedir@%$localstatedir%g
+s%@libdir@%$libdir%g
+s%@includedir@%$includedir%g
+s%@oldincludedir@%$oldincludedir%g
+s%@infodir@%$infodir%g
+s%@guidedir@%$guidedir%g
+s%@psdir@%$psdir%g
+s%@dvidir@%$dvidir%g
+s%@mandir@%$mandir%g
s%@CC@%$CC%g
s%@CPP@%$CPP%g
s%@YACC@%$YACC%g
@@ -1208,7 +1446,7 @@ for ac_file in .. $CONFIG_FILES; do if t
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
- ac_dir_suffix="/$ac_dir"
+ ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
# A "../" for each directory in $ac_dir_suffix.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
else
@@ -1283,13 +1521,13 @@ EOF
# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h. And first:
-# Protect against being on the right side of a sed subst in config.status.
+# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
-s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
+s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
@@ -1337,6 +1575,12 @@ cat >> $CONFIG_STATUS <<\EOF
echo "$ac_file is unchanged"
rm -f conftest.h
else
+ # Remove last slash and all that follows it. Not all systems have dirname.
+ ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
+ if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
+ # The file is in a subdirectory.
+ test ! -d "$ac_dir" && mkdir "$ac_dir"
+ fi
rm -f $ac_file
mv conftest.h $ac_file
fi
@@ -1347,7 +1591,8 @@ fi; done
exit 0
EOF
chmod +x $CONFIG_STATUS
+rm -f CONFIG.STATUS.old
rm -fr confdefs* $ac_clean_files
-test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
+test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
diff -rup --new-file baseline/fsf/bc/const.h amiga/fsf/bc/const.h
--- baseline/fsf/bc/const.h Wed Nov 2 11:38:37 1994
+++ amiga/fsf/bc/const.h Sat Sep 28 00:00:00 1996
@@ -38,14 +38,21 @@
/* Define constants in some reasonable size. The next 4 constants are
POSIX constants. */
+#ifndef BC_BASE_MAX
#define BC_BASE_MAX INT_MAX
+#endif
+#ifndef BC_SCALE_MAX
#define BC_SCALE_MAX INT_MAX
+#endif
+#ifndef BC_STRING_MAX
#define BC_STRING_MAX INT_MAX
-
+#endif
/* Definitions for arrays. */
+#ifndef BC_DIM_MAX
#define BC_DIM_MAX 65535 /* this should be NODE_SIZE^NODE_DEPTH-1 */
+#endif
#define NODE_SIZE 16 /* Must be a power of 2. */
#define NODE_MASK 0xf /* Must be NODE_SIZE-1. */
diff -rup --new-file baseline/fsf/bc/dc.info amiga/fsf/bc/dc.info
--- baseline/fsf/bc/dc.info Wed Nov 2 11:52:54 1994
+++ amiga/fsf/bc/dc.info Wed Dec 31 17:00:00 1969
@@ -1,346 +0,0 @@
-This is Info file dc.info, produced by Makeinfo-1.55 from the input
-file dc.texinfo.
-
- This file documents DC, an arbitrary precision calculator.
-
- Published by the Free Software Foundation, 675 Massachusetts Avenue,
-Cambridge, MA 02139 USA
-
- Copyright (C) 1984 Free Software Foundation, Inc.
-
- Permission is granted to make and distribute verbatim copies of this
-manual provided the copyright notice and this permission notice are
-preserved on all copies.
-
- Permission is granted to copy and distribute modified versions of
-this manual under the conditions for verbatim copying, provided that
-the entire resulting derived work is distributed under the terms of a
-permission notice identical to this one.
-
- Permission is granted to copy and distribute translations of this
-manual into another language, under the above conditions for modified
-versions, except that this permission notice may be stated in a
-translation approved by the Foundation.
-
-
-File: dc.info, Node: Top, Next: Introduction, Prev: (dir), Up: (dir)
-
-* Menu:
-
-* Introduction:: Introduction
-* Printing Commands:: Printing Commands
-* Arithmetic:: Arithmetic
-* Stack Control:: Stack Control
-* Registers:: Registers
-* Parameters:: Parameters
-* Strings:: Strings
-* Status Inquiry:: Status Inquiry
-* Miscellaneous:: Other commands
-* Notes:: Notes
-
-
-File: dc.info, Node: Introduction, Next: Printing Commands, Prev: Top, Up: Top
-
-Introduction
-************
-
- DC is a reverse-polish desk calculator which supports unlimited
-precision arithmetic. It also allows you to define and call macros.
-Normally DC reads from the standard input; if any command arguments are
-given to it, they are filenames, and DC reads and executes the contents
-of the files before reading from standard input. All normal output is
-to standard output; all error messages are written to standard error.
-
- To exit, use `q'. `C-c' does not exit; it is used to abort macros
-that are looping, etc. (Currently this is not true; `C-c' does exit.)
-
- A reverse-polish calculator stores numbers on a stack. Entering a
-number pushes it on the stack. Arithmetic operations pop arguments off
-the stack and push the results.
-
- To enter a number in DC, type the digits, with an optional decimal
-point. Exponential notation is not supported. To enter a negative
-number, begin the number with `_'. `-' cannot be used for this, as it
-is a binary operator for subtraction instead. To enter two numbers in
-succession, separate them with spaces or newlines. These have no
-meaning as commands.
-
-
-File: dc.info, Node: Printing Commands, Next: Arithmetic, Prev: Introduction, Up: Top
-
-Printing Commands
-*****************
-
-`p'
- Prints the value on the top of the stack, without altering the
- stack. A newline is printed after the value.
-
-`P'
- Prints the value on the top of the stack, popping it off, and does
- not print a newline after.
-
-`f'
- Prints the entire contents of the stack without altering anything.
- This is a good command to use if you are lost or want to figure
- out what the effect of some command has been.
-
-
-File: dc.info, Node: Arithmetic, Next: Stack Control, Prev: Printing Commands, Up: Top
-
-Arithmetic
-**********
-
-`+'
- Pops two values off the stack, adds them, and pushes the result.
- The precision of the result is determined only by the values of
- the arguments, and is enough to be exact.
-
-`-'
- Pops two values, subtracts the first one popped from the second
- one popped, and pushes the result.
-
-`*'
- Pops two values, multiplies them, and pushes the result. The
- number of fraction digits in the result is controlled by the
- current precision value (see below) and does not depend on the
- values being multiplied.
-
-`/'
- Pops two values, divides the second one popped from the first one
- popped, and pushes the result. The number of fraction digits is
- specified by the precision value.
-
-`%'
- Pops two values, computes the remainder of the division that the
- `/' command would do, and pushes that. The division is done with
- as many fraction digits as the precision value specifies, and the
- remainder is also computed with that many fraction digits.
-
-`^'
- Pops two values and exponentiates, using the first value popped as
- the exponent and the second popped as the base. The fraction part
- of the exponent is ignored. The precision value specifies the
- number of fraction digits in the result.
-
-`v'
- Pops one value, computes its square root, and pushes that. The
- precision value specifies the number of fraction digits in the
- result.
-
- Most arithmetic operations are affected by the *precision value*,
-which you can set with the `k' command. The default precision value is
-zero, which means that all arithmetic except for addition and
-subtraction produces integer results.
-
- The remainder operation (`%') requires some explanation: applied to
-arguments `a' and `b' it produces `a - (b * (a / b))', where `a / b' is
-computed in the current precision.
-
-
-File: dc.info, Node: Stack Control, Next: Registers, Prev: Arithmetic, Up: Top
-
-Stack Control
-*************
-
-`c'
- Clears the stack, rendering it empty.
-
-`d'
- Duplicates the value on the top of the stack, pushing another copy
- of it. Thus, `4d*p' computes 4 squared and prints it.
-
-
-File: dc.info, Node: Registers, Next: Parameters, Prev: Stack Control, Up: Top
-
-Registers
-*********
-
- DC provides 256 memory registers, each named by a single character.
-You can store a number in a register and retrieve it later.
-
-`sR'
- Pop the value off the top of the stack and store it into register
- R.
-
-`lR'
- Copy the value in register R, and push it onto the stack. This
- does not alter the contents of R.
-
- Each register also contains its own stack. The current register
- value is the top of the register's stack.
-
-`SR'
- Pop the value off the top of the (main) stack and push it onto the
- stack of register R. The previous value of the register becomes
- inaccessible.
-
-`LR'
- Pop the value off the top of register R's stack and push it onto
- the main stack. The previous value in register R's stack, if any,
- is now accessible via the `lR' command.
-
-
-File: dc.info, Node: Parameters, Next: Strings, Prev: Registers, Up: Top
-
-Parameters
-**********
-
- DC has three parameters that control its operation: the precision,
-the input radix, and the output radix. The precision specifies the
-number of fraction digits to keep in the result of most arithmetic
-operations. The input radix controls the interpretation of numbers
-typed in; *all* numbers typed in use this radix. The output radix is
-used for printing numbers.
-
- The input and output radices are separate parameters; you can make
-them unequal, which can be useful or confusing. The input radix must
-be between 2 and 36 inclusive. The output radix must be at least 2.
-The precision must be zero or greater. The precision is always
-measured in decimal digits, regardless of the current input or output
-radix.
-
-`i'
- Pops the value off the top of the stack and uses it to set the
- input radix.
-
-`o'
- Pops the value off the top of the stack and uses it to set the
- output radix.
-
-`k'
- Pops the value off the top of the stack and uses it to set the
- precision.
-
-`I'
- Pushes the current input radix on the stack.
-
-`O'
- Pushes the current output radix on the stack.
-
-`K'
- Pushes the current precision on the stack.
-
-
-File: dc.info, Node: Strings, Next: Status Inquiry, Prev: Parameters, Up: Top
-
-Strings
-*******
-
- DC can operate on strings as well as on numbers. The only things
-you can do with strings are print them and execute them as macros
-(which means that the contents of the string are processed as DC
-commands). Both registers and the stack can hold strings, and DC
-always knows whether any given object is a string or a number. Some
-commands such as arithmetic operations demand numbers as arguments and
-print errors if given strings. Other commands can accept either a
-number or a string; for example, the `p' command can accept either and
-prints the object according to its type.
-
-`[CHARACTERS]'
- Makes a string containing CHARACTERS and pushes it on the stack.
- For example, `[foo]P' prints the characters `foo' (with no
- newline).
-
-`x'
- Pops a value off the stack and executes it as a macro. Normally
- it should be a string; if it is a number, it is simply pushed back
- onto the stack. For example, `[1p]x' executes the macro `1p',
- which pushes 1 on the stack and prints `1' on a separate line.
-
- Macros are most often stored in registers; `[1p]sa' stores a macro
- to print `1' into register `a', and `lax' invokes the macro.
-
-`>R'
- Pops two values off the stack and compares them assuming they are
- numbers, executing the contents of register R as a macro if the
- original top-of-stack is greater. Thus, `1 2>a' will invoke
- register `a''s contents and `2 1>a' will not.
-
-`<R'
- Similar but invokes the macro if the original top-of-stack is less.
-
-`=R'
- Similar but invokes the macro if the two numbers popped are equal.
-
-`?'
- Reads a line from the terminal and executes it. This command
- allows a macro to request input from the user.
-
-`q'
- During the execution of a macro, this command exits from the macro
- and also from the macro which invoked it. If called from the top
- level, or from a macro which was called directly from the top
- level, the `q' command will cause DC to exit.
-
-`Q'
- Pops a value off the stack and uses it as a count of levels of
- macro execution to be exited. Thus, `3Q' exits three levels.
-
-
-File: dc.info, Node: Status Inquiry, Next: Miscellaneous, Prev: Strings, Up: Top
-
-Status Inquiry
-**************
-
-`Z'
- Pops a value off the stack, calculates the number of digits it has
- (or number of characters, if it is a string) and pushes that
- number.
-
-`X'
- Pops a value off the stack, calculates the number of fraction
- digits it has, and pushes that number. For a string, the value
- pushed is 0.
-
-`z'
- Pushes the current stack depth; the number of objects on the stack
- before the execution of the `z' command.
-
-
-File: dc.info, Node: Miscellaneous, Next: Notes, Prev: Status Inquiry, Up: Top
-
-Miscellaneous
-*************
-
-`!'
- Will run the rest of the line as a system command.
-
-`#'
- Will interpret the rest of the line as a comment.
-
-`:R'
- Will pop the top two values off of the stack. The old
- second-to-top value will be stored in the array R, indexed by the
- old top-of-stack value.
-
-`;R'
- Pops the top-of-stack and uses it as an index into the array R.
- The selected value is then pushed onto the stack.
-
-
-File: dc.info, Node: Notes, Prev: Miscellaneous, Up: Top
-
-Notes
-*****
-
- The array operations `:' and `;' are usually only used by
-traditional implementations of BC. (The GNU BC is self contained and
-does not need DC to run.) The comment operator `#' is a new command not
-found in traditional implementations of DC.
-
-
-
-Tag Table:
-Node: Top960
-Node: Introduction1487
-Node: Printing Commands2707
-Node: Arithmetic3267
-Node: Stack Control5230
-Node: Registers5530
-Node: Parameters6446
-Node: Strings7707
-Node: Status Inquiry9932
-Node: Miscellaneous10489
-Node: Notes11021
-
-End Tag Table
diff -rup --new-file baseline/fsf/bc/manifests/bin amiga/fsf/bc/manifests/bin
--- baseline/fsf/bc/manifests/bin Wed Dec 31 17:00:00 1969
+++ amiga/fsf/bc/manifests/bin Sat Sep 28 00:00:00 1996
@@ -0,0 +1,10 @@
+COPYING
+COPYING.info
+bin/bc
+bin/dc
+dvi/dc.dvi
+guide/dc.guide
+info/dc.info
+man/man1/bc.1
+man/man1/dc.1
+ps/dc.ps
diff -rup --new-file baseline/fsf/bc/manifests/src amiga/fsf/bc/manifests/src
--- baseline/fsf/bc/manifests/src Wed Dec 31 17:00:00 1969
+++ amiga/fsf/bc/manifests/src Sat Sep 28 00:00:00 1996
@@ -0,0 +1,70 @@
+fsf/bc/COPYING
+fsf/bc/ChangeLog
+fsf/bc/Examples/ckbook.b
+fsf/bc/Examples/pi.b
+fsf/bc/Examples/primes.b
+fsf/bc/Examples/twins.b
+fsf/bc/Install
+fsf/bc/Makefile.in
+fsf/bc/Product-Info
+fsf/bc/README
+fsf/bc/Test/BUG.bc
+fsf/bc/Test/array.b
+fsf/bc/Test/aryprm.b
+fsf/bc/Test/atan.b
+fsf/bc/Test/checklib.b
+fsf/bc/Test/div.b
+fsf/bc/Test/exp.b
+fsf/bc/Test/fact.b
+fsf/bc/Test/jn.b
+fsf/bc/Test/ln.b
+fsf/bc/Test/mul.b
+fsf/bc/Test/raise.b
+fsf/bc/Test/signum
+fsf/bc/Test/sine.b
+fsf/bc/Test/sqrt.b
+fsf/bc/Test/testfn.b
+fsf/bc/Test/timetest
+fsf/bc/acconfig.h
+fsf/bc/bc.1
+fsf/bc/bc.c.dist
+fsf/bc/bc.y
+fsf/bc/bcdefs.h
+fsf/bc/config.h.in
+fsf/bc/configure
+fsf/bc/configure.in
+fsf/bc/const.h
+fsf/bc/dc-array.c
+fsf/bc/dc-eval.c
+fsf/bc/dc-misc.c
+fsf/bc/dc-number.c
+fsf/bc/dc-proto.h
+fsf/bc/dc-regdef.h
+fsf/bc/dc-stack.c
+fsf/bc/dc-string.c
+fsf/bc/dc-version.h
+fsf/bc/dc.1
+fsf/bc/dc.h
+fsf/bc/dc.texinfo
+fsf/bc/execute.c
+fsf/bc/fix_libmath.h
+fsf/bc/global.c
+fsf/bc/global.h
+fsf/bc/install-sh
+fsf/bc/libmath.b
+fsf/bc/libmath.h
+fsf/bc/load.c
+fsf/bc/main.c
+fsf/bc/manifests/bin
+fsf/bc/manifests/src
+fsf/bc/number.c
+fsf/bc/number.h
+fsf/bc/proto.h
+fsf/bc/sbc.y
+fsf/bc/scan.c.dist
+fsf/bc/scan.l
+fsf/bc/storage.c
+fsf/bc/util.c
+fsf/bc/version.h
+fsf/bc/vfprintf.c
+fsf/bc/y.tab.h.dist
diff -rup --new-file baseline/fsf/bc/scan.l amiga/fsf/bc/scan.l
--- baseline/fsf/bc/scan.l Wed Nov 2 11:46:07 1994
+++ amiga/fsf/bc/scan.l Sat Sep 28 00:00:00 1996
@@ -135,7 +135,10 @@ limits return(Limits);
}
[a-z][a-z0-9_]* { yylval.s_value = strcopyof(yytext); return(NAME); }
\"[^\"]*\" {
- unsigned char *look;
+ /* ADE-local: Changed "look" from "unsigned char *" to just "char *"
+ since that is the type of yytext, and in ANSI C, these are different
+ types, leading to a compiler diagnostic message and/or error. */
+ char *look;
int count = 0;
yylval.s_value = strcopyof(yytext);
for (look = yytext; *look != 0; look++)
@@ -147,7 +150,10 @@ limits return(Limits);
return(STRING);
}
{DIGIT}({DIGIT}|\\\n)*("."({DIGIT}|\\\n)*)?|"."(\\\n)*{DIGIT}({DIGIT}|\\\n)* {
- unsigned char *src, *dst;
+ /* ADE-local: Changed "src" and "dst" from "unsigned char *" to just "char *"
+ since that is the type of yytext, and in ANSI C, these are different
+ types, leading to a compiler diagnostic message and/or error. */
+ char *src, *dst;
int len;
/* remove a trailing decimal point. */
len = strlen(yytext);