home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
gdbm-1.7.3-diffs.gz
/
gdbm-1.7.3-diffs
Wrap
Text File
|
1996-10-13
|
128KB
|
4,047 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/gdbm/INSTALL amiga/fsf/gdbm/INSTALL
--- baseline/fsf/gdbm/INSTALL Fri Oct 29 06:13:35 1993
+++ amiga/fsf/gdbm/INSTALL Sat Sep 28 00:00:00 1996
@@ -66,8 +66,8 @@ In that case, run `configure' with the o
DIR is the directory that contains the source code.
By default, `make install' will install the package's files in
-/usr/local/bin, /usr/local/lib, /usr/local/man, etc. You can specify an
-installation prefix other than /usr/local by giving `configure' the option
+/gnu/bin, /gnu/lib, /gnu/man, etc. You can specify an
+installation prefix other than /gnu by giving `configure' the option
`--prefix=PATH'. Alternately, you can do so by consistently giving a value
for the `prefix' variable when you run `make', e.g.,
make prefix=/usr/gnu
diff -rup --new-file baseline/fsf/gdbm/Makefile.in amiga/fsf/gdbm/Makefile.in
--- baseline/fsf/gdbm/Makefile.in Sun May 15 02:28:49 1994
+++ amiga/fsf/gdbm/Makefile.in Sat Sep 28 00:00:00 1996
@@ -11,19 +11,20 @@ INSTALL_DATA = @INSTALL_DATA@
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
+DVIPS = dvips
RANLIB = @RANLIB@
-DEFS =
+DEFS = @DEFS@
# Where the system [n]dbm routines are...
LIBS = @LIBS@ -lc
# SunOS users might wish to add '-fpcc-struct-return' to CFLAGS. see INSTALL.
-CFLAGS = -O
-LDFLAGS =
+CFLAGS = @CFLAGS@
+LDFLAGS = @LDFLAGS@
# Common prefix for installation directories
-prefix = /usr/local
+prefix = @prefix@
exec_prefix = $(prefix)
binprefix = $(exec_prefix)
manprefix = $(prefix)
@@ -33,7 +34,10 @@ libdir = $(exec_prefix)/lib
# The include directory for gdbm.h and dbm.h.
includedir = $(prefix)/include
# Info and man directories.
-infodir = $(prefix)/info
+infodir = @infodir@
+guidedir = @guidedir@
+dvidir = @dvidir@
+psdir = @psdir@
man3dir = $(prefix)/man/man3
manext = 3
@@ -44,7 +48,7 @@ manext = 3
SHELL = /bin/sh
-PROGS = libgdbm.a testgdbm testdbm testndbm tndbm tdbm conv2gdbm
+PROGS = libgdbm.a testgdbm testdbm testndbm # tndbm tdbm conv2gdbm
DBM_CF = dbminit.c delete.c fetch.c store.c seq.c close.c
@@ -72,11 +76,23 @@ GDBM_OF = gdbmopen.o gdbmdelete.o gdbmfe
TEX_F = gdbm.aux gdbm.cp gdbm.dvi gdbm.fn gdbm.ky gdbm.log gdbm.pg \
gdbm.toc gdbm.tp gdbm.vr
-TEXI_F = gdbm.info
+TEXI_F = gdbm.info gdbm.dvi gdbm.guide gdbm.ps
SRCS = $(DBM_CF) $(NDBM_CF) $(GDBM_CF) $(TEST_CF)
-OBJS = $(DBM_OF) $(NDBM_OF) $(GDBM_OF) @ALLOCA@
+# ADE hack. Disable inclusion of the dbm and ndbm compatibility functions
+# since the standard ndbm.h file comes from ixemul, which has dbm/ndbm
+# functions. We don't want to overwrite that file with the one from gdbm,
+# and we must not try to use the compatibility functions without including
+# the correct ndbm.h, since some functions like dbm_error are handled
+# differently (#defined away in the gdbm ndbm.h file). Longterm the
+# way this should be handled is configure should check to see if the
+# system already supplies dbm or ndbm functions, and if so, arrange to
+# substitute null for @DBM_OF@, @NDBM_OF@, and @install-compat@.
+# On systems without dbm or ndbm support, the compatibility functions
+# should be put into libgdbm.a and dbm.h/ndbm.h should be installed.
+#OBJS = $(DBM_OF) $(NDBM_OF) $(GDBM_OF) @ALLOCA@
+OBJS = $(GDBM_OF) @ALLOCA@ # @DBM_OF@ @NDBM_OF@
HDRS = gdbmdefs.h extern.h gdbmerrno.h systems.h dbm.h ndbm.h gdbmconst.h \
proto.h
@@ -88,19 +104,30 @@ MSCFILES = COPYING ChangeLog Makefile.in
DISTFILES = $(SRCS) $(HDRS) $(MSCFILES)
-all: libgdbm.a
+all: libgdbm.a gdbm.h gdbm.info gdbm.guide gdbm.dvi gdbm.ps
progs: $(PROGS)
-install: libgdbm.a gdbm.h gdbm.info
+install: all # @install-compat@
+ -if [ -d $(libdir) ] ; then true ; else mkdir -p $(libdir) ; fi
$(INSTALL_DATA) libgdbm.a $(libdir)/libgdbm.a
+ -if [ -d $(includedir) ] ; then true ; else mkdir -p $(includedir) ; fi
$(INSTALL_DATA) gdbm.h $(includedir)/gdbm.h
+ -if [ -d $(man3dir) ] ; then true ; else mkdir -p $(man3dir) ; fi
$(INSTALL_DATA) $(srcdir)/gdbm.3 $(man3dir)/gdbm.3
- $(INSTALL_DATA) $(srcdir)/gdbm.info $(infodir)/gdbm.info
+ -if [ -d $(infodir) ] ; then true ; else mkdir -p $(infodir) ; fi
+ $(INSTALL_DATA) gdbm.info $(infodir)/gdbm.info
+ -if [ -d $(guidedir) ] ; then true ; else mkdir -p $(guidedir) ; fi
+ $(INSTALL_DATA) gdbm.guide $(guidedir)/gdbm.guide
+ -if [ -d $(dvidir) ] ; then true ; else mkdir -p $(dvidir) ; fi
+ $(INSTALL_DATA) gdbm.dvi $(dvidir)/gdbm.dvi
+ -if [ -d $(psdir) ] ; then true ; else mkdir -p $(psdir) ; fi
+ $(INSTALL_DATA) gdbm.ps $(psdir)/gdbm.ps
install-compat:
+ -if [ -d $(includedir) ] ; then true ; else mkdir -p $(includedir) ; fi
$(INSTALL_DATA) $(srcdir)/dbm.h $(includedir)/dbm.h
- $(INSTALL_DATA) $(srcdir/ndbm.h $(includedir)/ndbm.h
+ $(INSTALL_DATA) $(srcdir)/ndbm.h $(includedir)/ndbm.h
libgdbm.a: $(OBJS) gdbm.h
rm -f libgdbm.a
@@ -149,13 +176,22 @@ TAGS: $(SRCS)
info: gdbm.info
-gdbm.info:
- $(MAKEINFO) $(srcdir)/gdbm.texinfo
+gdbm.info: gdbm.texinfo
+ $(MAKEINFO) -I$(srcdir) $? --output=$@
+
+guide: gdbm.guide
+
+gdbm.guide: gdbm.texinfo
+ $(MAKEINFO) --amiga-39 $? -o $@
dvi: gdbm.dvi
-gdbm.dvi:
- $(TEXI2DVI) $(srcdir)/gdbm.texinfo
+gdbm.dvi: gdbm.texinfo
+ $(TEXI2DVI) $?
+
+ps: gdbm.ps
+gdbm.ps: gdbm.dvi
+ $(DVIPS) -o $@ $?
clean:
rm -f $(PROGS) $(TEX_F) *.o core junk*
diff -rup --new-file baseline/fsf/gdbm/Product-Info amiga/fsf/gdbm/Product-Info
--- baseline/fsf/gdbm/Product-Info Wed Dec 31 17:00:00 1969
+++ amiga/fsf/gdbm/Product-Info Sat Sep 28 00:00:00 1996
@@ -0,0 +1,21 @@
+.name
+gdbm
+.fullname
+GNU database manager library
+.type
+Library
+.short
+GNU database manager library
+.description
+GNU dbm is a library of routines that manages data files that contain
+key/data pairs. The access provided is that of storing, retrieval,
+and deletion by key and a non-sorted traversal of all keys. A process
+is allowed to use multiple data files at the same time.
+.version
+1.7.3
+.author
+Philip A. Nelson
+.distribution
+GNU Public License
+.described-by
+Fred Fish (fnf@amigalib.com)
diff -rup --new-file baseline/fsf/gdbm/configure amiga/fsf/gdbm/configure
--- baseline/fsf/gdbm/configure Sun May 15 02:28:57 1994
+++ amiga/fsf/gdbm/configure Mon Sep 30 22:44:44 1996
@@ -1,293 +1,969 @@
-#!/bin/sh
+#! /bin/sh
+
# Guess values for system-dependent variables and create Makefiles.
-# Generated automatically using autoconf.
-# Copyright (C) 1991, 1992, 1993 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.
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-# Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp]
-# [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE[=VALUE]]
-# Ignores all args except --srcdir, --prefix, --exec-prefix, and
-# --with-PACKAGE[=VALUE] unless this script has special code to handle it.
+# Defaults:
+ac_help=
+ac_default_prefix=/usr/local
+# Any additions from configure.in:
+
+# Initialize some variables set by options.
+# The variables have the same names as the options, with
+# dashes changed to underlines.
+build=NONE
+cache_file=./config.cache
+exec_prefix=NONE
+host=NONE
+no_create=
+nonopt=NONE
+no_recursion=
+prefix=NONE
+program_prefix=NONE
+program_suffix=NONE
+program_transform_name=s,x,x,
+silent=
+site=
+srcdir=
+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=
-for arg
+ac_prev=
+for ac_option
do
- # Handle --exec-prefix with a space before the argument.
- if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
- # Handle --host with a space before the argument.
- elif test x$next_host = xyes; then next_host=
- # Handle --prefix with a space before the argument.
- elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
- # Handle --srcdir with a space before the argument.
- elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
- else
- case $arg in
- # For backward compatibility, recognize -exec-prefix and --exec_prefix.
- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
- exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
- next_exec_prefix=yes ;;
-
- -gas | --gas | --ga | --g) ;;
-
- -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
- -host | --host | --hos | --ho | --h)
- next_host=yes ;;
-
- -nfp | --nfp | --nf) ;;
-
- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
- prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
- next_prefix=yes ;;
-
- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
- srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
- next_srcdir=yes ;;
-
- -with-* | --with-*)
- package=`echo $arg|sed -e 's/-*with-//' -e 's/=.*//'`
- # Reject names that aren't valid shell variable names.
- if test -n "`echo $package| sed 's/[-a-zA-Z0-9_]//g'`"; then
- echo "configure: $package: invalid package name" >&2; exit 1
- fi
- package=`echo $package| sed 's/-/_/g'`
- case "$arg" in
- *=*) val="`echo $arg|sed 's/[^=]*=//'`" ;;
- *) val=1 ;;
- esac
- eval "with_$package='$val'" ;;
- -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
- verbose=yes ;;
+ # If the previous option needs an argument, assign it.
+ if test -n "$ac_prev"; then
+ eval "$ac_prev=\$ac_option"
+ ac_prev=
+ continue
+ fi
+
+ case "$ac_option" in
+ -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+ *) ac_optarg= ;;
+ esac
+
+ # Accept the important Cygnus configure options, so we can diagnose typos.
+
+ case "$ac_option" in
- *) ;;
+ -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=*)
+ build="$ac_optarg" ;;
+
+ -cache-file | --cache-file | --cache-fil | --cache-fi \
+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
+ ac_prev=cache_file ;;
+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
+ | --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.
+ if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
+ { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
+ fi
+ ac_feature=`echo $ac_feature| sed 's/-/_/g'`
+ eval "enable_${ac_feature}=no" ;;
+
+ -enable-* | --enable-*)
+ ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
+ # Reject names that are not valid shell variable names.
+ if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
+ { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
+ fi
+ ac_feature=`echo $ac_feature| sed 's/-/_/g'`
+ case "$ac_option" in
+ *=*) ;;
+ *) ac_optarg=yes ;;
esac
- fi
+ eval "enable_${ac_feature}='$ac_optarg'" ;;
+
+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+ | --exec | --exe | --ex)
+ ac_prev=exec_prefix ;;
+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
+ | --exec=* | --exe=* | --ex=*)
+ exec_prefix="$ac_optarg" ;;
+
+ -gas | --gas | --ga | --g)
+ # Obsolete; use --with-gas.
+ 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
+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)
+ ac_prev=host ;;
+ -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 ;;
+
+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ | --no-cr | --no-c)
+ no_create=yes ;;
+
+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ | --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=*)
+ prefix="$ac_optarg" ;;
+
+ -program-prefix | --program-prefix | --program-prefi | --program-pref \
+ | --program-pre | --program-pr | --program-p)
+ ac_prev=program_prefix ;;
+ -program-prefix=* | --program-prefix=* | --program-prefi=* \
+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
+ program_prefix="$ac_optarg" ;;
+
+ -program-suffix | --program-suffix | --program-suffi | --program-suff \
+ | --program-suf | --program-su | --program-s)
+ ac_prev=program_suffix ;;
+ -program-suffix=* | --program-suffix=* | --program-suffi=* \
+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
+ program_suffix="$ac_optarg" ;;
+
+ -program-transform-name | --program-transform-name \
+ | --program-transform-nam | --program-transform-na \
+ | --program-transform-n | --program-transform- \
+ | --program-transform | --program-transfor \
+ | --program-transfo | --program-transf \
+ | --program-trans | --program-tran \
+ | --progr-tra | --program-tr | --program-t)
+ ac_prev=program_transform_name ;;
+ -program-transform-name=* | --program-transform-name=* \
+ | --program-transform-nam=* | --program-transform-na=* \
+ | --program-transform-n=* | --program-transform-=* \
+ | --program-transform=* | --program-transfor=* \
+ | --program-transfo=* | --program-transf=* \
+ | --program-trans=* | --program-tran=* \
+ | --progr-tra=* | --program-tr=* | --program-t=*)
+ program_transform_name="$ac_optarg" ;;
+
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -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=*)
+ site="$ac_optarg" ;;
+
+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
+ ac_prev=srcdir ;;
+ -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=*)
+ target="$ac_optarg" ;;
+
+ -v | -verbose | --verbose | --verbos | --verbo | --verb)
+ verbose=yes ;;
+
+ -version | --version | --versio | --versi | --vers)
+ echo "configure generated by autoconf version 2.10"
+ exit 0 ;;
+
+ -with-* | --with-*)
+ ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
+ # Reject names that are not valid shell variable names.
+ if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
+ { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
+ fi
+ ac_package=`echo $ac_package| sed 's/-/_/g'`
+ case "$ac_option" in
+ *=*) ;;
+ *) ac_optarg=yes ;;
+ esac
+ eval "with_${ac_package}='$ac_optarg'" ;;
+
+ -without-* | --without-*)
+ ac_package=`echo $ac_option|sed -e 's/-*without-//'`
+ # Reject names that are not valid shell variable names.
+ if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
+ { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
+ fi
+ ac_package=`echo $ac_package| sed 's/-/_/g'`
+ eval "with_${ac_package}=no" ;;
+
+ --x)
+ # Obsolete; use --with-x.
+ with_x=yes ;;
+
+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
+ | --x-incl | --x-inc | --x-in | --x-i)
+ ac_prev=x_includes ;;
+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
+ x_includes="$ac_optarg" ;;
+
+ -x-libraries | --x-libraries | --x-librarie | --x-librari \
+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
+ ac_prev=x_libraries ;;
+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
+ x_libraries="$ac_optarg" ;;
+
+ -*) { 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
+ if test "x$nonopt" != xNONE; then
+ { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
+ fi
+ nonopt="$ac_option"
+ ;;
+
+ esac
done
-trap 'rm -fr conftest* confdefs* core; exit 1' 1 3 15
-trap 'rm -f confdefs*' 0
+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 core.* *.core $ac_clean_files; exit 1' 1 2 15
+
+# File descriptor usage:
+# 0 standard input
+# 1 file creation
+# 2 errors and warnings
+# 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 6>/dev/null
+else
+ exec 6>&1
+fi
+exec 5>./config.log
+
+echo "\
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+" 1>&5
+
+# Strip out --no-create and --no-recursion so they do not pile up.
+# Also quote any args containing shell metacharacters.
+ac_configure_args=
+for ac_arg
+do
+ case "$ac_arg" in
+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ | --no-cr | --no-c) ;;
+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
+ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
+ ac_configure_args="$ac_configure_args '$ac_arg'" ;;
+ *) ac_configure_args="$ac_configure_args $ac_arg" ;;
+ esac
+done
# NLS nuisances.
+# Only set LANG and LC_ALL to C if already set.
# These must not be set unconditionally because not all systems understand
# e.g. LANG=C (notably SCO).
-if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi
-if test "${LANG+set}" = 'set' ; then LANG=C; export LANG; fi
+if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
+if test "${LANG+set}" = set; then LANG=C; export LANG; fi
-rm -f conftest* confdefs.h
+# confdefs.h avoids OS command line length limits that DEFS can exceed.
+rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h
-compile='${CC-cc} $CFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
-unique_file=gdbmdefs.h
+ac_unique_file=gdbmdefs.h
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
- srcdirdefaulted=yes
- # Try the directory containing this script, then `..'.
- prog=$0
- confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
- test "X$confdir" = "X$prog" && confdir=.
- srcdir=$confdir
- if test ! -r $srcdir/$unique_file; then
+ ac_srcdir_defaulted=yes
+ # Try the directory containing this script, then its parent.
+ ac_prog=$0
+ ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
+ test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
+ srcdir=$ac_confdir
+ if test ! -r $srcdir/$ac_unique_file; then
srcdir=..
fi
+else
+ ac_srcdir_defaulted=no
+fi
+if test ! -r $srcdir/$ac_unique_file; then
+ if test "$ac_srcdir_defaulted" = yes; then
+ { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
+ else
+ { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
+ fi
+fi
+srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
+
+# Prefer explicitly selected file to automatically selected ones.
+if test -z "$CONFIG_SITE"; then
+ if test "x$prefix" != xNONE; then
+ CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
+ else
+ CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
+ fi
+fi
+for ac_site_file in $CONFIG_SITE; do
+ if test -r "$ac_site_file"; then
+ echo "loading site script $ac_site_file"
+ . "$ac_site_file"
+ fi
+done
+
+if test -r "$cache_file"; then
+ echo "loading cache $cache_file"
+ . $cache_file
+else
+ echo "creating cache $cache_file"
+ > $cache_file
fi
-if test ! -r $srcdir/$unique_file; then
- if test x$srcdirdefaulted = xyes; then
- echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
+
+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} -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.
+ if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
+ ac_n= ac_c='
+' ac_t=' '
else
- echo "configure: Can not find sources in \`${srcdir}'." 1>&2
+ ac_n=-n ac_c= ac_t=
fi
- exit 1
+else
+ ac_n= ac_c='\c' ac_t=
fi
-# Preserve a srcdir of `.' to avoid automounter screwups with pwd.
-# But we can't avoid them for `..', to make subdirectories work.
-case $srcdir in
- .|/*|~*) ;;
- *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
-esac
-# Save the original args to write them into config.status later.
-configure_args="$*"
+# 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>&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}:"
+ for ac_dir in $PATH; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ ac_cv_prog_CC="gcc"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+fi
+fi
+CC="$ac_cv_prog_CC"
+if test -n "$CC"; then
+ echo "$ac_t""$CC" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
if test -z "$CC"; then
- # Extract the first word of `gcc', so it can be a program name with args.
- set dummy gcc; word=$2
- echo checking for $word
- IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:"
- for dir in $PATH; do
- test -z "$dir" && dir=.
- if test -f $dir/$word; then
- CC="gcc"
+ # 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="$saveifs"
+ 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>&6
+fi
+
+ test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
fi
-test -z "$CC" && CC="cc"
-test -n "$CC" && test -n "$verbose" && echo " setting CC to $CC"
-# Find out if we are using GNU C, under whatever name.
-cat > conftest.c <<EOF
+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
+ yes;
#endif
EOF
-${CC-cc} -E conftest.c > conftest.out 2>&1
-if egrep yes conftest.out >/dev/null 2>&1; then
- GCC=1 # For later tests.
+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>&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>&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
+ ac_cv_prog_gcc_g=yes
+else
+ ac_cv_prog_gcc_g=no
fi
rm -f conftest*
-echo checking how to run the C preprocessor
+fi
+
+echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
+ if test $ac_cv_prog_gcc_g = yes; then
+ CFLAGS="-g -O2"
+ else
+ CFLAGS="-O2"
+ fi
+ fi
+else
+ GCC=
+ test "${CFLAGS+set}" = set || CFLAGS="-g"
+fi
+
+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
- # This must be in double quotes, not single quotes, because CPP may get
- # substituted into the Makefile and ``${CC-cc}'' will simply confuse
- # make. It must be expanded now.
+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.
CPP="${CC-cc} -E"
- cat > conftest.c <<EOF
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp.
+ cat > conftest.$ac_ext <<EOF
+#line 673 "configure"
#include "confdefs.h"
-#include <stdio.h>
+#include <assert.h>
+Syntax Error
+EOF
+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
+ :
+else
+ echo "$ac_err" >&5
+ rm -rf conftest*
+ CPP="${CC-cc} -E -traditional-cpp"
+ cat > conftest.$ac_ext <<EOF
+#line 688 "configure"
+#include "confdefs.h"
+#include <assert.h>
Syntax Error
EOF
-err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
-if test -z "$err"; then
+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
:
else
+ echo "$ac_err" >&5
rm -rf conftest*
CPP=/lib/cpp
fi
rm -f conftest*
fi
-test ".${verbose}" != "." && echo " setting CPP to $CPP"
+rm -f conftest*
+ ac_cv_prog_CPP="$CPP"
+fi
+ CPP="$ac_cv_prog_CPP"
+else
+ ac_cv_prog_CPP="$CPP"
+fi
+echo "$ac_t""$CPP" 1>&6
-# Make sure to not get the incompatible SysV /etc/install and
-# /usr/sbin/install, which might be in PATH before a BSD-like install,
-# or the SunOS /usr/etc/install directory, or the AIX /bin/install,
-# or the AFS install, which mishandles nonexistent args, or
-# /usr/ucb/install on SVR4, which tries to use the nonexistent group
-# `staff'. On most BSDish systems install is in /usr/bin, not /usr/ucb
-# anyway. Sigh.
-if test "z${INSTALL}" = "z" ; then
- echo checking for install
- IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:"
- for dir in $PATH; do
- test -z "$dir" && dir=.
- case $dir in
- /etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
+ac_aux_dir=
+for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
+ if test -f $ac_dir/install-sh; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install-sh -c"
+ break
+ elif test -f $ac_dir/install.sh; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install.sh -c"
+ break
+ fi
+done
+if test -z "$ac_aux_dir"; then
+ { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
+fi
+ac_config_guess=$ac_aux_dir/config.guess
+ac_config_sub=$ac_aux_dir/config.sub
+ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
+
+# Find a good install program. We prefer a C program (faster),
+# so one script is as good as another. But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# 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>&6
+if test -z "$INSTALL"; then
+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
+ # 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/*) ;;
*)
- if test -f $dir/installbsd; then
- INSTALL="$dir/installbsd -c" # OSF1
- INSTALL_PROGRAM='$(INSTALL)'
- INSTALL_DATA='$(INSTALL) -m 644'
- break
- fi
- if test -f $dir/install; then
- if grep dspmsg $dir/install >/dev/null 2>&1; then
- : # AIX
- else
- INSTALL="$dir/install -c"
- INSTALL_PROGRAM='$(INSTALL)'
- INSTALL_DATA='$(INSTALL) -m 644'
- break
+ # OSF1 and SCO ODT 3.0 have their own names for install.
+ for ac_prog in ginstall installbsd scoinst install; do
+ if test -f $ac_dir/$ac_prog; then
+ if test $ac_prog = install &&
+ grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
+ # AIX install. It has an incompatible calling convention.
+ # OSF/1 installbsd also uses dspmsg, but is usable.
+ :
+ else
+ ac_cv_path_install="$ac_dir/$ac_prog -c"
+ break 2
+ fi
fi
- fi
+ done
;;
esac
done
- IFS="$saveifs"
+ IFS="$ac_save_ifs"
+
fi
-INSTALL=${INSTALL-cp}
-test -n "$verbose" && echo " setting INSTALL to $INSTALL"
-INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
-test -n "$verbose" && echo " setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
-INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
-test -n "$verbose" && echo " setting INSTALL_DATA to $INSTALL_DATA"
-
-if test -z "$RANLIB"; then
- # Extract the first word of `ranlib', so it can be a program name with args.
- set dummy ranlib; word=$2
- echo checking for $word
- IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:"
- for dir in $PATH; do
- test -z "$dir" && dir=.
- if test -f $dir/$word; then
- RANLIB="ranlib"
+ 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>&6
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+# Extract the first word of "ranlib", so it can be a program name with args.
+set dummy ranlib; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test -n "$RANLIB"; then
+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+else
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
+ for ac_dir in $PATH; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ ac_cv_prog_RANLIB="ranlib"
break
fi
done
- IFS="$saveifs"
+ IFS="$ac_save_ifs"
+ test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
+fi
+fi
+RANLIB="$ac_cv_prog_RANLIB"
+if test -n "$RANLIB"; then
+ echo "$ac_t""$RANLIB" 1>&6
+else
+ echo "$ac_t""no" 1>&6
fi
-test -z "$RANLIB" && RANLIB=":"
-test -n "$RANLIB" && test -n "$verbose" && echo " setting RANLIB to $RANLIB"
-echo checking integer size
-cat > conftest.c <<EOF
+# If we cannot run a trivial program, we must be cross compiling.
+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_c_cross=yes
+else
+cat > conftest.$ac_ext <<EOF
+#line 830 "configure"
#include "confdefs.h"
-main() { exit(sizeof(int) != 2); }
+main(){return(0);}
EOF
-eval $compile
+{ (eval echo configure:834: \"$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
+ ac_cv_c_cross=yes
+fi
+fi
+rm -fr conftest*
+fi
+
+echo "$ac_t""$ac_cv_c_cross" 1>&6
+cross_compiling=$ac_cv_c_cross
+
+echo $ac_n "checking size of int""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test "$cross_compiling" = yes; then
+ ac_cv_sizeof_int=sizevar
+else
+cat > conftest.$ac_ext <<EOF
+#line 855 "configure"
+#include "confdefs.h"
+#include <stdio.h>
+main()
{
-test -n "$verbose" && \
-echo " defining INT_16_BITS"
-echo "#define" INT_16_BITS 1 >> confdefs.h
-DEFS="$DEFS -DINT_16_BITS=1"
-SEDDEFS="${SEDDEFS}\${SEDdA}INT_16_BITS\${SEDdB}INT_16_BITS\${SEDdC}1\${SEDdD}
-\${SEDuA}INT_16_BITS\${SEDuB}INT_16_BITS\${SEDuC}1\${SEDuD}
-\${SEDeA}INT_16_BITS\${SEDeB}INT_16_BITS\${SEDeC}1\${SEDeD}
-"
+ FILE *f=fopen("conftestval", "w");
+ if (!f) exit(1);
+ fprintf(f, "%d\n", sizeof(int));
+ exit(0);
}
+EOF
+{ (eval echo configure:866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+if test -s conftest && (./conftest; exit) 2>/dev/null; then
+ ac_cv_sizeof_int=`cat conftestval`
+else
+ ac_cv_sizeof_int=0
+fi
+fi
+rm -fr conftest*
+fi
+echo "$ac_t""$ac_cv_sizeof_int" 1>&6
+cat >> confdefs.h <<EOF
+#define SIZEOF_INT $ac_cv_sizeof_int
+EOF
+echo $ac_n "checking size of long""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test "$cross_compiling" = yes; then
+ ac_cv_sizeof_long=sizevar
+else
+cat > conftest.$ac_ext <<EOF
+#line 889 "configure"
+#include "confdefs.h"
+#include <stdio.h>
+main()
+{
+ FILE *f=fopen("conftestval", "w");
+ if (!f) exit(1);
+ fprintf(f, "%d\n", sizeof(long));
+ exit(0);
+}
+EOF
+{ (eval echo configure:900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+if test -s conftest && (./conftest; exit) 2>/dev/null; then
+ ac_cv_sizeof_long=`cat conftestval`
+else
+ ac_cv_sizeof_long=0
+fi
fi
rm -fr conftest*
+fi
+echo "$ac_t""$ac_cv_sizeof_long" 1>&6
+cat >> confdefs.h <<EOF
+#define SIZEOF_LONG $ac_cv_sizeof_long
+EOF
+
-echo checking for 64-bit long ints
-cat > conftest.c <<EOF
+echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_cv_c_bigendian=unknown
+# See if sys/param.h defines the BYTE_ORDER macro.
+cat > conftest.$ac_ext <<EOF
+#line 922 "configure"
#include "confdefs.h"
-main() { exit(sizeof(long int) != 8); }
+#include <sys/types.h>
+#include <sys/param.h>
+int main() { return 0; }
+int t() {
+
+#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
+ bogus endian macros
+#endif
+; return 0; }
EOF
-eval $compile
-if test -s conftest && (./conftest; exit) 2>/dev/null; then
-
-{
-test -n "$verbose" && \
-echo " defining LONG_64_BITS"
-echo "#define" LONG_64_BITS 1 >> confdefs.h
-DEFS="$DEFS -DLONG_64_BITS=1"
-SEDDEFS="${SEDDEFS}\${SEDdA}LONG_64_BITS\${SEDdB}LONG_64_BITS\${SEDdC}1\${SEDdD}
-\${SEDuA}LONG_64_BITS\${SEDuB}LONG_64_BITS\${SEDuC}1\${SEDuD}
-\${SEDeA}LONG_64_BITS\${SEDeB}LONG_64_BITS\${SEDeC}1\${SEDeD}
-"
-}
+if { (eval echo configure:934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ # It does; now see whether it defined to BIG_ENDIAN or not.
+cat > conftest.$ac_ext <<EOF
+#line 938 "configure"
+#include "confdefs.h"
+#include <sys/types.h>
+#include <sys/param.h>
+int main() { return 0; }
+int t() {
+#if BYTE_ORDER != BIG_ENDIAN
+ not big endian
+#endif
+; return 0; }
+EOF
+if { (eval echo configure:950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_c_bigendian=yes
+else
+ rm -rf conftest*
+ ac_cv_c_bigendian=no
+fi
+rm -f conftest*
fi
-rm -fr conftest*
+rm -f conftest*
-echo checking byte ordering
-cat > conftest.c <<EOF
+if test $ac_cv_c_bigendian = unknown; then
+if test "$cross_compiling" = yes; then
+ { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
+else
+cat > conftest.$ac_ext <<EOF
+#line 967 "configure"
#include "confdefs.h"
main () {
/* Are we little or big endian? From Harbison&Steele. */
@@ -300,30 +976,44 @@ main () {
exit (u.c[sizeof (long) - 1] == 1);
}
EOF
-eval $compile
+{ (eval echo configure:980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
- :
+ ac_cv_c_bigendian=no
else
-
-{
-test -n "$verbose" && \
-echo " defining WORDS_BIGENDIAN"
-echo "#define" WORDS_BIGENDIAN 1 >> confdefs.h
-DEFS="$DEFS -DWORDS_BIGENDIAN=1"
-SEDDEFS="${SEDDEFS}\${SEDdA}WORDS_BIGENDIAN\${SEDdB}WORDS_BIGENDIAN\${SEDdC}1\${SEDdD}
-\${SEDuA}WORDS_BIGENDIAN\${SEDuB}WORDS_BIGENDIAN\${SEDuC}1\${SEDuD}
-\${SEDeA}WORDS_BIGENDIAN\${SEDeB}WORDS_BIGENDIAN\${SEDeC}1\${SEDeD}
-"
-}
-
+ ac_cv_c_bigendian=yes
+fi
fi
rm -fr conftest*
+fi
+fi
+
+echo "$ac_t""$ac_cv_c_bigendian" 1>&6
+if test $ac_cv_c_bigendian = yes; then
+ cat >> confdefs.h <<\EOF
+#define WORDS_BIGENDIAN 1
+EOF
+
+fi
+
+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 1004 "configure"
+#include "confdefs.h"
-prog='/* Ultrix mips cc rejects this. */
+int main() { return 0; }
+int t() {
+
+/* Ultrix mips cc rejects this. */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this. */
char const *const *ccp;
char **p;
+/* NEC SVR4.0.2 mips cc rejects this. */
+struct point {int x, y;};
+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 */
@@ -340,7 +1030,7 @@ ccp = (char const *const *) p;
*t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
- int x[] = {25,17};
+ int x[] = {25, 17};
const int *foo = &x[0];
++foo;
}
@@ -356,453 +1046,463 @@ ccp = (char const *const *) p;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
const int foo = 10;
-}'
-echo checking for lack of working const
-cat > conftest.c <<EOF
-#include "confdefs.h"
+}
-int main() { exit(0); }
-int t() { $prog }
+; return 0; }
EOF
-if eval $compile; then
- :
+if { (eval echo configure:1054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_c_const=yes
else
rm -rf conftest*
-
-{
-test -n "$verbose" && \
-echo " defining" const to be empty
-echo "#define" const >> confdefs.h
-DEFS="$DEFS -Dconst="
-SEDDEFS="${SEDDEFS}\${SEDdA}const\${SEDdB}const\${SEDdC}\${SEDdD}
-\${SEDuA}const\${SEDuB}const\${SEDuC}\${SEDuD}
-\${SEDeA}const\${SEDeB}const\${SEDeC}\${SEDeD}
-"
-}
-
+ ac_cv_c_const=no
fi
rm -f conftest*
-for hdr in stdlib.h string.h sys/file.h unistd.h fcntl.h sys/types.h
+fi
+
+echo "$ac_t""$ac_cv_c_const" 1>&6
+if test $ac_cv_c_const = no; then
+ cat >> confdefs.h <<\EOF
+#define const
+EOF
+
+fi
+
+for ac_hdr in stdlib.h string.h sys/file.h unistd.h fcntl.h sys/types.h
do
-trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
-echo checking for ${hdr}
-cat > conftest.c <<EOF
+ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
+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 1081 "configure"
#include "confdefs.h"
-#include <${hdr}>
+#include <$ac_hdr>
EOF
-err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
-if test -z "$err"; then
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:1086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ac_err=`grep -v '^ *+' conftest.out`
+if test -z "$ac_err"; then
rm -rf conftest*
-
-{
-test -n "$verbose" && \
-echo " defining ${trhdr}"
-echo "#define" ${trhdr} 1 >> confdefs.h
-DEFS="$DEFS -D${trhdr}=1"
-SEDDEFS="${SEDDEFS}\${SEDdA}${trhdr}\${SEDdB}${trhdr}\${SEDdC}1\${SEDdD}
-\${SEDuA}${trhdr}\${SEDuB}${trhdr}\${SEDuC}1\${SEDuD}
-\${SEDeA}${trhdr}\${SEDeB}${trhdr}\${SEDeC}1\${SEDeD}
-"
-}
-
-
+ eval "ac_cv_header_$ac_safe=yes"
+else
+ echo "$ac_err" >&5
+ rm -rf conftest*
+ eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
+fi
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ 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>&6
+fi
done
-for hdr in memory.h
+for ac_hdr in memory.h
do
-trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
-echo checking for ${hdr}
-cat > conftest.c <<EOF
+ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
+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 1118 "configure"
#include "confdefs.h"
-#include <${hdr}>
+#include <$ac_hdr>
EOF
-err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
-if test -z "$err"; then
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:1123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ac_err=`grep -v '^ *+' conftest.out`
+if test -z "$ac_err"; then
rm -rf conftest*
-
-{
-test -n "$verbose" && \
-echo " defining ${trhdr}"
-echo "#define" ${trhdr} 1 >> confdefs.h
-DEFS="$DEFS -D${trhdr}=1"
-SEDDEFS="${SEDDEFS}\${SEDdA}${trhdr}\${SEDdB}${trhdr}\${SEDdC}1\${SEDdD}
-\${SEDuA}${trhdr}\${SEDuB}${trhdr}\${SEDuC}1\${SEDuD}
-\${SEDeA}${trhdr}\${SEDeB}${trhdr}\${SEDeC}1\${SEDeD}
-"
-}
-
-
+ eval "ac_cv_header_$ac_safe=yes"
+else
+ echo "$ac_err" >&5
+ rm -rf conftest*
+ eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
+fi
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ 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>&6
+fi
done
-LIBS_save="${LIBS}"
-LIBS="${LIBS} -ldbm"
-have_lib=""
-echo checking for -ldbm
-cat > conftest.c <<EOF
+echo $ac_n "checking for -ldbm""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_lib_dbm'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_save_LIBS="$LIBS"
+LIBS="-ldbm $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 1154 "configure"
#include "confdefs.h"
-int main() { exit(0); }
-int t() { main(); }
+int main() { t(); return 0; }
+int t() {
+main()
+; return 0; }
EOF
-if eval $compile; then
+if { (eval echo configure:1162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
- have_lib="1"
-
+ ac_cv_lib_dbm=yes
+else
+ rm -rf conftest*
+ ac_cv_lib_dbm=no
fi
rm -f conftest*
-LIBS="${LIBS_save}"
-if test -n "${have_lib}"; then
-
-{
-test -n "$verbose" && \
-echo " defining HAVE_LIBDBM"
-echo "#define" HAVE_LIBDBM 1 >> confdefs.h
-DEFS="$DEFS -DHAVE_LIBDBM=1"
-SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_LIBDBM\${SEDdB}HAVE_LIBDBM\${SEDdC}1\${SEDdD}
-\${SEDuA}HAVE_LIBDBM\${SEDuB}HAVE_LIBDBM\${SEDuC}1\${SEDuD}
-\${SEDeA}HAVE_LIBDBM\${SEDeB}HAVE_LIBDBM\${SEDeC}1\${SEDeD}
-"
-}
+LIBS="$ac_save_LIBS"
+
+fi
+echo "$ac_t""$ac_cv_lib_dbm" 1>&6
+if test "$ac_cv_lib_dbm" = yes; then
+ cat >> confdefs.h <<\EOF
+#define HAVE_LIBDBM 1
+EOF
+
+ LIBS="-ldbm $LIBS"
- LIBS="${LIBS} -ldbm"
fi
-LIBS_save="${LIBS}"
-LIBS="${LIBS} -lndbm"
-have_lib=""
-echo checking for -lndbm
-cat > conftest.c <<EOF
+echo $ac_n "checking for -lndbm""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_lib_ndbm'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_save_LIBS="$LIBS"
+LIBS="-lndbm $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 1190 "configure"
#include "confdefs.h"
-int main() { exit(0); }
-int t() { main(); }
+int main() { t(); return 0; }
+int t() {
+main()
+; return 0; }
EOF
-if eval $compile; then
+if { (eval echo configure:1198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
- have_lib="1"
-
+ ac_cv_lib_ndbm=yes
+else
+ rm -rf conftest*
+ ac_cv_lib_ndbm=no
fi
rm -f conftest*
-LIBS="${LIBS_save}"
-if test -n "${have_lib}"; then
-
-{
-test -n "$verbose" && \
-echo " defining HAVE_LIBNDBM"
-echo "#define" HAVE_LIBNDBM 1 >> confdefs.h
-DEFS="$DEFS -DHAVE_LIBNDBM=1"
-SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_LIBNDBM\${SEDdB}HAVE_LIBNDBM\${SEDdC}1\${SEDdD}
-\${SEDuA}HAVE_LIBNDBM\${SEDuB}HAVE_LIBNDBM\${SEDuC}1\${SEDuD}
-\${SEDeA}HAVE_LIBNDBM\${SEDeB}HAVE_LIBNDBM\${SEDeC}1\${SEDeD}
-"
-}
+LIBS="$ac_save_LIBS"
+
+fi
+echo "$ac_t""$ac_cv_lib_ndbm" 1>&6
+if test "$ac_cv_lib_ndbm" = yes; then
+ cat >> confdefs.h <<\EOF
+#define HAVE_LIBNDBM 1
+EOF
+
+ LIBS="-lndbm $LIBS"
- LIBS="${LIBS} -lndbm"
fi
-for func in rename ftruncate flock bcopy fsync
+for ac_func in rename ftruncate flock bcopy fsync
do
-trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
-echo checking for ${func}
-cat > conftest.c <<EOF
+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 1226 "configure"
#include "confdefs.h"
-#include <ctype.h>
-int main() { exit(0); }
-int t() {
+/* 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
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
-#if defined (__stub_${func}) || defined (__stub___${func})
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-/* Override any gcc2 internal prototype to avoid an error. */
-extern char ${func}(); ${func}();
+$ac_func();
#endif
- }
+
+; return 0; }
EOF
-if eval $compile; then
+if { (eval echo configure:1250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
- {
-test -n "$verbose" && \
-echo " defining ${trfunc}"
-echo "#define" ${trfunc} 1 >> confdefs.h
-DEFS="$DEFS -D${trfunc}=1"
-SEDDEFS="${SEDDEFS}\${SEDdA}${trfunc}\${SEDdB}${trfunc}\${SEDdC}1\${SEDdD}
-\${SEDuA}${trfunc}\${SEDuB}${trfunc}\${SEDuC}1\${SEDuD}
-\${SEDeA}${trfunc}\${SEDeB}${trfunc}\${SEDeC}1\${SEDeD}
-"
-}
-
-
+ eval "ac_cv_func_$ac_func=yes"
+else
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
+
+fi
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ 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>&6
+fi
done
-for func in getopt
+for ac_func in getopt
do
-echo checking for ${func}
-cat > conftest.c <<EOF
+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 1279 "configure"
#include "confdefs.h"
-#include <ctype.h>
-int main() { exit(0); }
-int t() {
+/* 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
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
-#if defined (__stub_${func}) || defined (__stub___${func})
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-/* Override any gcc2 internal prototype to avoid an error. */
-extern char ${func}(); ${func}();
+$ac_func();
#endif
- }
+
+; return 0; }
EOF
-if eval $compile; then
- :
+if { (eval echo configure:1303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=yes"
else
rm -rf conftest*
- LIBOBJS="$LIBOBJS ${func}.o"
-test -n "$verbose" && echo " using ${func}.o instead"
+ eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
+fi
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ :
+else
+ echo "$ac_t""no" 1>&6
+LIBOBJS="$LIBOBJS ${ac_func}.o"
+fi
+
done
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments. Useless!
-echo checking for working alloca.h
-cat > conftest.c <<EOF
+echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 1330 "configure"
#include "confdefs.h"
#include <alloca.h>
-int main() { exit(0); }
-int t() { char *p = alloca(2 * sizeof(int)); }
+int main() { t(); return 0; }
+int t() {
+char *p = alloca(2 * sizeof(int));
+; return 0; }
EOF
-if eval $compile; then
+if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
-
-{
-test -n "$verbose" && \
-echo " defining HAVE_ALLOCA_H"
-echo "#define" HAVE_ALLOCA_H 1 >> confdefs.h
-DEFS="$DEFS -DHAVE_ALLOCA_H=1"
-SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_ALLOCA_H\${SEDdB}HAVE_ALLOCA_H\${SEDdC}1\${SEDdD}
-\${SEDuA}HAVE_ALLOCA_H\${SEDuB}HAVE_ALLOCA_H\${SEDuC}1\${SEDuD}
-\${SEDeA}HAVE_ALLOCA_H\${SEDeB}HAVE_ALLOCA_H\${SEDeC}1\${SEDeD}
-"
-}
+ ac_cv_header_alloca_h=yes
+else
+ rm -rf conftest*
+ ac_cv_header_alloca_h=no
+fi
+rm -f conftest*
+fi
+
+echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
+if test $ac_cv_header_alloca_h = yes; then
+ cat >> confdefs.h <<\EOF
+#define HAVE_ALLOCA_H 1
+EOF
fi
-rm -f conftest*
-decl="#ifdef __GNUC__
-#define alloca __builtin_alloca
-#else
-#if HAVE_ALLOCA_H
-#include <alloca.h>
+echo $ac_n "checking for alloca""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 1362 "configure"
+#include "confdefs.h"
+
+#ifdef __GNUC__
+# define alloca __builtin_alloca
#else
-#ifdef _AIX
+# if HAVE_ALLOCA_H
+# include <alloca.h>
+# else
+# ifdef _AIX
#pragma alloca
-#else
+# else
+# ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
+# endif
+# endif
+# endif
#endif
-#endif
-#endif
-"
-echo checking for alloca
-cat > conftest.c <<EOF
-#include "confdefs.h"
-$decl
-int main() { exit(0); }
-int t() { char *p = (char *) alloca(1); }
+
+int main() { t(); return 0; }
+int t() {
+char *p = (char *) alloca(1);
+; return 0; }
EOF
-if eval $compile; then
- :
+if { (eval echo configure:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_func_alloca=yes
else
rm -rf conftest*
- alloca_missing=1
-cat > conftest.c <<EOF
-#include "confdefs.h"
+ ac_cv_func_alloca=no
+fi
+rm -f conftest*
-#if defined(CRAY) && ! defined(CRAY2)
-winnitude
-#else
-lossage
-#endif
+fi
+echo "$ac_t""$ac_cv_func_alloca" 1>&6
+if test $ac_cv_func_alloca = yes; then
+ cat >> confdefs.h <<\EOF
+#define HAVE_ALLOCA 1
EOF
-eval "$CPP conftest.c > conftest.out 2>&1"
-if egrep "winnitude" conftest.out >/dev/null 2>&1; then
- rm -rf conftest*
- echo checking for _getb67
-cat > conftest.c <<EOF
-#include "confdefs.h"
-#include <ctype.h>
-int main() { exit(0); }
-int t() {
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub__getb67) || defined (__stub____getb67)
-choke me
-#else
-/* Override any gcc2 internal prototype to avoid an error. */
-extern char _getb67(); _getb67();
-#endif
- }
+
+fi
+
+if test $ac_cv_func_alloca = no; then
+ # The SVR3 libPW and SVR4 libucb both contain incompatible functions
+ # that cause trouble. Some versions do not even contain alloca or
+ # contain a buggy version. If you still want to use their alloca,
+ # use ar to extract alloca.o from them instead of compiling alloca.c.
+ ALLOCA=alloca.o
+ cat >> confdefs.h <<\EOF
+#define C_ALLOCA 1
EOF
-if eval $compile; then
- rm -rf conftest*
- {
-test -n "$verbose" && \
-echo " defining" CRAY_STACKSEG_END to be _getb67
-echo "#define" CRAY_STACKSEG_END _getb67 >> confdefs.h
-DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
-SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}_getb67\${SEDdD}
-\${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}_getb67\${SEDuD}
-\${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}_getb67\${SEDeD}
-"
-}
+echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
- rm -rf conftest*
- echo checking for GETB67
-cat > conftest.c <<EOF
+ cat > conftest.$ac_ext <<EOF
+#line 1421 "configure"
#include "confdefs.h"
-#include <ctype.h>
-int main() { exit(0); }
-int t() {
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_GETB67) || defined (__stub___GETB67)
-choke me
+#if defined(CRAY) && ! defined(CRAY2)
+webecray
#else
-/* Override any gcc2 internal prototype to avoid an error. */
-extern char GETB67(); GETB67();
+wenotbecray
#endif
- }
+
EOF
-if eval $compile; then
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ egrep "webecray" >/dev/null 2>&1; then
rm -rf conftest*
- {
-test -n "$verbose" && \
-echo " defining" CRAY_STACKSEG_END to be GETB67
-echo "#define" CRAY_STACKSEG_END GETB67 >> confdefs.h
-DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
-SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}GETB67\${SEDdD}
-\${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}GETB67\${SEDuD}
-\${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}GETB67\${SEDeD}
-"
-}
+ ac_cv_os_cray=yes
+else
+ rm -rf conftest*
+ ac_cv_os_cray=no
+fi
+rm -f conftest*
+fi
+echo "$ac_t""$ac_cv_os_cray" 1>&6
+if test $ac_cv_os_cray = yes; then
+for ac_func in _getb67 GETB67 getb67; do
+ 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
- rm -rf conftest*
- echo checking for getb67
-cat > conftest.c <<EOF
+ cat > conftest.$ac_ext <<EOF
+#line 1450 "configure"
#include "confdefs.h"
-#include <ctype.h>
-int main() { exit(0); }
-int t() {
+/* 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
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
-#if defined (__stub_getb67) || defined (__stub___getb67)
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-/* Override any gcc2 internal prototype to avoid an error. */
-extern char getb67(); getb67();
+$ac_func();
#endif
- }
+
+; return 0; }
EOF
-if eval $compile; then
+if { (eval echo configure:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
- {
-test -n "$verbose" && \
-echo " defining" CRAY_STACKSEG_END to be getb67
-echo "#define" CRAY_STACKSEG_END getb67 >> confdefs.h
-DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
-SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}getb67\${SEDdD}
-\${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}getb67\${SEDuD}
-\${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}getb67\${SEDeD}
-"
-}
-
-
-fi
-rm -f conftest*
-
+ eval "ac_cv_func_$ac_func=yes"
+else
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
-rm -f conftest*
-
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ cat >> confdefs.h <<EOF
+#define CRAY_STACKSEG_END $ac_func
+EOF
+ break
+else
+ echo "$ac_t""no" 1>&6
fi
-rm -f conftest*
-
+done
fi
-rm -f conftest*
-if test -n "$alloca_missing"; then
- # The SVR3 libPW and SVR4 libucb both contain incompatible functions
- # that cause trouble. Some versions do not even contain alloca or
- # contain a buggy version. If you still want to use their alloca,
- # use ar to extract alloca.o from them instead of compiling alloca.c.
- ALLOCA=alloca.o
-
-{
-test -n "$verbose" && \
-echo " defining C_ALLOCA"
-echo "#define" C_ALLOCA 1 >> confdefs.h
-DEFS="$DEFS -DC_ALLOCA=1"
-SEDDEFS="${SEDDEFS}\${SEDdA}C_ALLOCA\${SEDdB}C_ALLOCA\${SEDdC}1\${SEDdD}
-\${SEDuA}C_ALLOCA\${SEDuB}C_ALLOCA\${SEDuC}1\${SEDuD}
-\${SEDeA}C_ALLOCA\${SEDeB}C_ALLOCA\${SEDeC}1\${SEDeD}
-"
-}
-
-
- echo 'checking stack direction for C alloca'
- echo checking whether cross-compiling
-# If we cannot run a trivial program, we must be cross compiling.
-cat > conftest.c <<EOF
-#include "confdefs.h"
-main(){exit(0);}
-EOF
-eval $compile
-if test -s conftest && (./conftest; exit) 2>/dev/null; then
- :
+echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
- cross_compiling=1
-fi
-rm -fr conftest*
-
-if test -n "$cross_compiling"
-then
-
-{
-test -n "$verbose" && \
-echo " defining" STACK_DIRECTION to be 0
-echo "#define" STACK_DIRECTION 0 >> confdefs.h
-DEFS="$DEFS -DSTACK_DIRECTION=0"
-SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}0\${SEDdD}
-\${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}0\${SEDuD}
-\${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}0\${SEDeD}
-"
-}
-
+ if test "$cross_compiling" = yes; then
+ ac_cv_c_stack_direction=0
else
-cat > conftest.c <<EOF
+cat > conftest.$ac_ext <<EOF
+#line 1506 "configure"
#include "confdefs.h"
find_stack_direction ()
{
@@ -821,275 +1521,482 @@ main ()
exit (find_stack_direction() < 0);
}
EOF
-eval $compile
+{ (eval echo configure:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
-
-{
-test -n "$verbose" && \
-echo " defining" STACK_DIRECTION to be 1
-echo "#define" STACK_DIRECTION 1 >> confdefs.h
-DEFS="$DEFS -DSTACK_DIRECTION=1"
-SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}1\${SEDdD}
-\${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}1\${SEDuD}
-\${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}1\${SEDeD}
-"
-}
+ ac_cv_c_stack_direction=1
+else
+ ac_cv_c_stack_direction=-1
+fi
+fi
+rm -fr conftest*
+fi
+echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
+cat >> confdefs.h <<EOF
+#define STACK_DIRECTION $ac_cv_c_stack_direction
+EOF
-else
-
-{
-test -n "$verbose" && \
-echo " defining" STACK_DIRECTION to be -1
-echo "#define" STACK_DIRECTION -1 >> confdefs.h
-DEFS="$DEFS -DSTACK_DIRECTION=-1"
-SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}-1\${SEDdD}
-\${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}-1\${SEDuD}
-\${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}-1\${SEDeD}
-"
-}
+fi
+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 1547 "configure"
+#include "confdefs.h"
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+EOF
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:1555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ac_err=`grep -v '^ *+' conftest.out`
+if test -z "$ac_err"; then
+ rm -rf conftest*
+ ac_cv_header_stdc=yes
+else
+ echo "$ac_err" >&5
+ rm -rf conftest*
+ ac_cv_header_stdc=no
fi
+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 1570 "configure"
+#include "confdefs.h"
+#include <string.h>
+EOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ egrep "memchr" >/dev/null 2>&1; then
+ :
+else
+ rm -rf conftest*
+ ac_cv_header_stdc=no
fi
-rm -fr conftest*
+rm -f conftest*
+
fi
-echo checking for off_t in sys/types.h
-echo '#include "confdefs.h"
-#include <sys/types.h>' > conftest.c
-eval "$CPP conftest.c > conftest.out 2>&1"
-if egrep "off_t" conftest.out >/dev/null 2>&1; then
+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 1588 "configure"
+#include "confdefs.h"
+#include <stdlib.h>
+EOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ egrep "free" >/dev/null 2>&1; then
:
else
rm -rf conftest*
-
-{
-test -n "$verbose" && \
-echo " defining" off_t to be long
-echo "#define" off_t long >> confdefs.h
-DEFS="$DEFS -Doff_t=long"
-SEDDEFS="${SEDDEFS}\${SEDdA}off_t\${SEDdB}off_t\${SEDdC}long\${SEDdD}
-\${SEDuA}off_t\${SEDuB}off_t\${SEDuC}long\${SEDuD}
-\${SEDeA}off_t\${SEDeB}off_t\${SEDeC}long\${SEDeD}
-"
-}
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+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
+ :
+else
+cat > conftest.$ac_ext <<EOF
+#line 1609 "configure"
+#include "confdefs.h"
+#include <ctype.h>
+#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+int main () { int i; for (i = 0; i < 256; i++)
+if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
+exit (0); }
+EOF
+{ (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+if test -s conftest && (./conftest; exit) 2>/dev/null; then
+ :
+else
+ ac_cv_header_stdc=no
+fi
+fi
+rm -fr conftest*
+fi
+fi
+
+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
+EOF
+
+fi
+
+echo $ac_n "checking for off_t""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 1644 "configure"
+#include "confdefs.h"
+#include <sys/types.h>
+#if STDC_HEADERS
+#include <stdlib.h>
+#endif
+EOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ egrep "off_t" >/dev/null 2>&1; then
+ rm -rf conftest*
+ ac_cv_type_off_t=yes
+else
+ rm -rf conftest*
+ ac_cv_type_off_t=no
fi
rm -f conftest*
-echo checking for st_blksize in struct stat
-cat > conftest.c <<EOF
+fi
+echo "$ac_t""$ac_cv_type_off_t" 1>&6
+if test $ac_cv_type_off_t = no; then
+ cat >> confdefs.h <<\EOF
+#define off_t long
+EOF
+
+fi
+
+echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 1675 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
-int main() { exit(0); }
-int t() { struct stat s; s.st_blksize; }
+int main() { return 0; }
+int t() {
+struct stat s; s.st_blksize;
+; return 0; }
EOF
-if eval $compile; then
+if { (eval echo configure:1684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
-
-{
-test -n "$verbose" && \
-echo " defining HAVE_ST_BLKSIZE"
-echo "#define" HAVE_ST_BLKSIZE 1 >> confdefs.h
-DEFS="$DEFS -DHAVE_ST_BLKSIZE=1"
-SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_ST_BLKSIZE\${SEDdB}HAVE_ST_BLKSIZE\${SEDdC}1\${SEDdD}
-\${SEDuA}HAVE_ST_BLKSIZE\${SEDuB}HAVE_ST_BLKSIZE\${SEDuC}1\${SEDuD}
-\${SEDeA}HAVE_ST_BLKSIZE\${SEDeB}HAVE_ST_BLKSIZE\${SEDeC}1\${SEDeD}
-"
-}
+ ac_cv_struct_st_blksize=yes
+else
+ rm -rf conftest*
+ ac_cv_struct_st_blksize=no
+fi
+rm -f conftest*
+fi
+
+echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
+if test $ac_cv_struct_st_blksize = yes; then
+ cat >> confdefs.h <<\EOF
+#define HAVE_ST_BLKSIZE 1
+EOF
fi
-rm -f conftest*
-# Set default prefixes.
-if test -n "$prefix"; then
- test -z "$exec_prefix" && exec_prefix='${prefix}'
- prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%"
-fi
-if test -n "$exec_prefix"; then
- prsub="$prsub
-s%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
-fi
-# Quote sed substitution magic chars in DEFS.
-cat >conftest.def <<EOF
-$DEFS
-EOF
-escape_ampersand_and_backslash='s%[&\\]%\\&%g'
-DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`
-rm -f conftest.def
-# Substitute for predefined variables.
-
-trap 'rm -f config.status; exit 1' 1 3 15
-echo creating config.status
-rm -f config.status
-cat > config.status <<EOF
-#!/bin/sh
+trap '' 1 2 15
+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.
+# If it contains results you don't want to keep, you may remove or edit it.
+#
+# By default, configure uses ./config.cache as the cache file,
+# creating it if it does not exist already. You can give configure
+# the --cache-file=FILE option to use a different cache file; that is
+# what configure does when it calls configure scripts in
+# subdirectories, so they share the cache.
+# Giving --cache-file=/dev/null disables caching, for debugging configure.
+# config.status only pays attention to the cache file if you give it the
+# --recheck option to rerun configure.
+#
+EOF
+# 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=\${\1='\2'}/p" \
+ >> confcache
+if cmp -s $cache_file confcache; then
+ :
+else
+ 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 core.* *.core $ac_clean_files; exit 1' 1 2 15
+
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+# Let make expand exec_prefix.
+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+
+# Any assignment to VPATH causes Sun make to only execute
+# the first set of double-colon rules, so remove it if not needed.
+# If there is a colon in the path, we need to keep it.
+if test "x$srcdir" = x.; then
+ ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
+fi
+
+trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
+
+DEFS=-DHAVE_CONFIG_H
+
+# Without the "./", some shells look in PATH for config.status.
+: ${CONFIG_STATUS=./config.status}
+
+echo creating $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
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
-# $0 $configure_args
+# $0 $ac_configure_args
+#
+# Compiler output produced by configure, useful for debugging
+# configure, is in ./config.log if it exists.
-for arg
+ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
+for ac_option
do
- case "\$arg" in
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args
- exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args ;;
- *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
+ case "\$ac_option" in
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+ 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.10"
+ exit 0 ;;
+ -help | --help | --hel | --he | --h)
+ echo "\$ac_cs_usage"; exit 0 ;;
+ *) echo "\$ac_cs_usage"; exit 1 ;;
esac
done
-trap 'rm -fr Makefile autoconf.h conftest*; exit 1' 1 3 15
-CC='$CC'
-CPP='$CPP'
-INSTALL='$INSTALL'
-INSTALL_PROGRAM='$INSTALL_PROGRAM'
-INSTALL_DATA='$INSTALL_DATA'
-RANLIB='$RANLIB'
-LIBOBJS='$LIBOBJS'
-ALLOCA='$ALLOCA'
-LIBS='$LIBS'
-srcdir='$srcdir'
-prefix='$prefix'
-exec_prefix='$exec_prefix'
-prsub='$prsub'
-extrasub='$extrasub'
-EOF
-cat >> config.status <<\EOF
-
-top_srcdir=$srcdir
-
-CONFIG_FILES=${CONFIG_FILES-"Makefile"}
-for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
- srcdir=$top_srcdir
- # Remove last slash and all that follows it. Not all systems have dirname.
- dir=`echo $file|sed 's%/[^/][^/]*$%%'`
- if test "$dir" != "$file"; then
- test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
- test ! -d $dir && mkdir $dir
- fi
- echo creating $file
- rm -f $file
- echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
- sed -e "
-$prsub
+ac_given_srcdir=$srcdir
+ac_given_INSTALL="$INSTALL"
+
+trap 'rm -fr `echo "Makefile autoconf.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
+$ac_vpsub
$extrasub
+s%@CFLAGS@%$CFLAGS%g
+s%@CPPFLAGS@%$CPPFLAGS%g
+s%@CXXFLAGS@%$CXXFLAGS%g
+s%@DEFS@%$DEFS%g
+s%@LDFLAGS@%$LDFLAGS%g
+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%@INSTALL@%$INSTALL%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@RANLIB@%$RANLIB%g
s%@LIBOBJS@%$LIBOBJS%g
s%@ALLOCA@%$ALLOCA%g
-s%@LIBS@%$LIBS%g
+
+CEOF
+EOF
+cat >> $CONFIG_STATUS <<EOF
+
+CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
+EOF
+cat >> $CONFIG_STATUS <<\EOF
+for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
+ # Support "outfile[:infile]", defaulting infile="outfile.in".
+ case "$ac_file" in
+ *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
+ ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
+ *) ac_file_in="${ac_file}.in" ;;
+ esac
+
+ # Adjust relative srcdir, etc. for subdirectories.
+
+ # 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"
+ 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
+ ac_dir_suffix= ac_dots=
+ fi
+
+ case "$ac_given_srcdir" in
+ .) srcdir=.
+ if test -z "$ac_dots"; then top_srcdir=.
+ else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
+ /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
+ *) # Relative path.
+ srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
+ top_srcdir="$ac_dots$ac_given_srcdir" ;;
+ esac
+
+ case "$ac_given_INSTALL" in
+ [/$]*) INSTALL="$ac_given_INSTALL" ;;
+ *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
+ esac
+ echo creating "$ac_file"
+ rm -f "$ac_file"
+ configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
+ case "$ac_file" in
+ *Makefile*) ac_comsub="1i\\
+# $configure_input" ;;
+ *) ac_comsub= ;;
+ esac
+ sed -e "$ac_comsub
+s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
-s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
+s%@top_srcdir@%$top_srcdir%g
+s%@INSTALL@%$INSTALL%g
+" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
fi; done
+rm -f conftest.subs
+
+# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
+# NAME is the cpp macro being defined and VALUE is the value it is being given.
+#
+# ac_d sets the value in "#define NAME VALUE" lines.
+ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
+ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
+ac_dC='\3'
+ac_dD='%g'
+# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
+ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
+ac_uB='\([ ]\)%\1#\2define\3'
+ac_uC=' '
+ac_uD='\4%g'
+# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
+ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
+ac_eB='$%\1#\2define\3'
+ac_eC=' '
+ac_eD='%g'
CONFIG_HEADERS=${CONFIG_HEADERS-"autoconf.h"}
-for file in .. ${CONFIG_HEADERS}; do if test "x$file" != x..; then
-echo creating $file
+for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
+ # Support "outfile[:infile]", defaulting infile="outfile.in".
+ case "$ac_file" in
+ *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
+ ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
+ *) ac_file_in="${ac_file}.in" ;;
+ esac
-# These sed commands are put into SEDDEFS when defining a macro.
-# They are broken into pieces to make the sed script easier to manage.
-# They are passed to sed as "A NAME B NAME C VALUE D", where NAME
-# is the cpp macro being defined and VALUE is the value it is being given.
-# Each defining turns into a single global substitution command.
-#
-# SEDd sets the value in "#define NAME VALUE" lines.
-SEDdA='s@^\([ ]*\)#\([ ]*define[ ][ ]*\)'
-SEDdB='\([ ][ ]*\)[^ ]*@\1#\2'
-SEDdC='\3'
-SEDdD='@g'
-# SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
-SEDuA='s@^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
-SEDuB='\([ ]\)@\1#\2define\3'
-SEDuC=' '
-SEDuD='\4@g'
-# SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
-SEDeA='s@^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
-SEDeB='$@\1#\2define\3'
-SEDeC=' '
-SEDeD='@g'
-rm -f conftest.sed
-EOF
-# Turn off quoting long enough to insert the sed commands.
-rm -f conftest.sh
-cat > conftest.sh <<EOF
-$SEDDEFS
+ echo creating $ac_file
+
+ rm -f conftest.frag conftest.in conftest.out
+ cp $ac_given_srcdir/$ac_file_in conftest.in
+
+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 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%ac_d%ac_u%gp
+s%ac_u%ac_e%gp
EOF
+sed -n -f conftest.hdr confdefs.h > conftest.vals
+rm -f conftest.hdr
-# Break up $SEDDEFS (now in conftest.sh) because some shells have a limit
-# on the size of here documents.
+# This sed command replaces #undef with comments. This is necessary, for
+# example, in the case of _POSIX_SOURCE, which is predefined and required
+# on some systems where configure will not decide to define it.
+cat >> conftest.vals <<\EOF
+s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
+EOF
+# Break up conftest.vals because some shells have a limit on
+# the size of here documents, and old seds have small limits too.
# Maximum number of lines to put in a single here document.
-maxshlines=9
+ac_max_here_lines=12
+rm -f conftest.tail
while :
do
- # wc gives bogus results for an empty file on some systems.
- lines=`grep -c . conftest.sh`
- if test -z "$lines" || test "$lines" -eq 0; then break; fi
- rm -f conftest.s1 conftest.s2
- sed ${maxshlines}q conftest.sh > conftest.s1 # Like head -20.
- sed 1,${maxshlines}d conftest.sh > conftest.s2 # Like tail +21.
- # Write a limited-size here document to append to conftest.sed.
- echo 'cat >> conftest.sed <<CONFEOF' >> config.status
- cat conftest.s1 >> config.status
- echo 'CONFEOF' >> config.status
- rm -f conftest.s1 conftest.sh
- mv conftest.s2 conftest.sh
+ ac_lines=`grep -c . conftest.vals`
+ # grep -c gives empty output for an empty file on some AIX systems.
+ if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
+ # Write a limited-size here document to conftest.frag.
+ echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
+ sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
+ echo 'CEOF
+ sed -f conftest.frag conftest.in > conftest.out
+ rm -f conftest.in
+ mv conftest.out conftest.in
+' >> $CONFIG_STATUS
+ sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
+ rm -f conftest.vals
+ mv conftest.tail conftest.vals
done
-rm -f conftest.sh
+rm -f conftest.vals
-# Now back to your regularly scheduled config.status.
-cat >> config.status <<\EOF
-# This sed command replaces #undef's with comments. This is necessary, for
-# example, in the case of _POSIX_SOURCE, which is predefined and required
-# on some systems where configure will not decide to define it in
-# autoconf.h.
-cat >> conftest.sed <<\CONFEOF
-s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
-CONFEOF
-rm -f conftest.h
-# Break up the sed commands because old seds have small limits.
-maxsedlines=20
-cp $top_srcdir/$file.in conftest.h1
-while :
-do
- lines=`grep -c . conftest.sed`
- if test -z "$lines" || test "$lines" -eq 0; then break; fi
- rm -f conftest.s1 conftest.s2 conftest.h2
- sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
- sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
- sed -f conftest.s1 < conftest.h1 > conftest.h2
- rm -f conftest.s1 conftest.h1 conftest.sed
- mv conftest.h2 conftest.h1
- mv conftest.s2 conftest.sed
-done
-rm -f conftest.sed conftest.h
-echo "/* $file. Generated automatically by configure. */" > conftest.h
-cat conftest.h1 >> conftest.h
-rm -f conftest.h1
-if cmp -s $file conftest.h 2>/dev/null; then
- # The file exists and we would not be changing it.
- echo "$file is unchanged"
- rm -f conftest.h
-else
- rm -f $file
- mv conftest.h $file
-fi
+cat >> $CONFIG_STATUS <<\EOF
+ rm -f conftest.frag conftest.h
+ echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
+ cat conftest.in >> conftest.h
+ rm -f conftest.in
+ if cmp -s $ac_file conftest.h 2>/dev/null; then
+ 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
fi; done
exit 0
EOF
-chmod +x config.status
-${CONFIG_SHELL-/bin/sh} config.status
+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 || exit 1
diff -rup --new-file baseline/fsf/gdbm/configure.in amiga/fsf/gdbm/configure.in
--- baseline/fsf/gdbm/configure.in Sun May 15 02:27:16 1994
+++ amiga/fsf/gdbm/configure.in Sat Sep 28 00:00:00 1996
@@ -6,8 +6,8 @@ AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_RANLIB
-AC_INT_16_BITS
-AC_LONG_64_BITS
+AC_SIZEOF_TYPE(int, sizevar)
+AC_SIZEOF_TYPE(long, sizevar)
AC_WORDS_BIGENDIAN
AC_CONST
AC_HAVE_HEADERS(stdlib.h string.h sys/file.h unistd.h fcntl.h sys/types.h)
diff -rup --new-file baseline/fsf/gdbm/gdbm.3 amiga/fsf/gdbm/gdbm.3
--- baseline/fsf/gdbm/gdbm.3 Thu May 19 15:13:45 1994
+++ amiga/fsf/gdbm/gdbm.3 Sat Sep 28 00:00:00 1996
@@ -356,7 +356,7 @@ To search for some data, without retriev
the key data to search for.
If the \fIkey\fR is found within the database, the return value \fIret\fR
-will be true. If nothing appropiate is found, \fIret\fR will be false.
+will be true. If nothing appropriate is found, \fIret\fR will be false.
This routine is useful for checking for the existance of a record,
without performing the memory allocation done by \fBgdbm_fetch\fR.
@@ -433,7 +433,7 @@ To convert a \fBgdbm\fR error code into
ret = gdbm_strerror ( errno )
Where \fBerrno\fR is of type \fBgdbm_error\fR, usually the global
-variable \fBgdbm_errno\fR. The appropiate phrase is returned.
+variable \fBgdbm_errno\fR. The appropriate phrase is returned.
\fBGdbm\fR now supports the ability to set certain options on an
diff -rup --new-file baseline/fsf/gdbm/gdbm.info amiga/fsf/gdbm/gdbm.info
--- baseline/fsf/gdbm/gdbm.info Thu May 19 16:12:37 1994
+++ amiga/fsf/gdbm/gdbm.info Wed Dec 31 17:00:00 1969
@@ -1,705 +0,0 @@
-This is Info file gdbm.info, produced by Makeinfo-1.55 from the input
-file ./gdbm.texinfo.
-
- This file documents the GNU dbm utility.
-
- Copyright (C) 1989-1993 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 also
-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.
-
-
-File: gdbm.info, Node: Top, Next: Copying, Prev: (dir), Up: (dir)
-
- GNU `dbm' is a library of functions implementing a hashed database
-on a disk file. This manual documents GNU `dbm' Version 1.7.1
-(`gdbm'). The software was written by Philip A. Nelson. This document
-was originally written by Pierre Gaumond from texts written by Phil.
-
-* Menu:
-
-Introduction:
-
-* Copying:: Your rights.
-* Intro:: Introduction to GNU dbm.
-* List:: List of functions.
-
-Functions:
-
-* Open:: Opening the database.
-* Close:: Closing the database.
-* Store:: Inserting and replacing records in the database.
-* Fetch:: Searching records in the database.
-* Delete:: Removing records from the database.
-* Sequential:: Sequential access to records.
-* Reorganization:: Database reorganization.
-* Sync:: Insure all writes to disk have competed.
-* Errors:: Convert internal error codes into English.
-* Options:: Setting internal options.
-
-Other topics:
-
-* Variables:: Two useful variables.
-* Compatibility:: Compatibility with UNIX dbm and ndbm.
-* Conversion:: Converting dbm files to gdbm format.
-* Bugs:: Problems and bugs.
-
-
-File: gdbm.info, Node: Copying, Next: Intro, Prev: Top, Up: Top
-
-Copying Conditions.
-*******************
-
- This library is "free"; this means that everyone is free to use it
-and free to redistribute it on a free basis. GNU `dbm' (`gdbm') is not
-in the public domain; it is copyrighted and there are restrictions on
-its distribution, but these restrictions are designed to permit
-everything that a good cooperating citizen would want to do. What is
-not allowed is to try to prevent others from further sharing any
-version of `gdbm' that they might get from you.
-
- Specifically, we want to make sure that you have the right to give
-away copies `gdbm', that you receive source code or else can get it if
-you want it, that you can change these functions or use pieces of them
-in new free programs, and that you know you can do these things.
-
- To make sure that everyone has such rights, we have to forbid you to
-deprive anyone else of these rights. For example, if you distribute
-copies `gdbm', you must give the recipients all the rights that you
-have. You must make sure that they, too, receive or can get the source
-code. And you must tell them their rights.
-
- Also, for our own protection, we must make certain that everyone
-finds out that there is no warranty for anything in the `gdbm'
-distribution. If these functions are modified by someone else and
-passed on, we want their recipients to know that what they have is not
-what we distributed, so that any problems introduced by others will not
-reflect on our reputation.
-
- `gdbm' is currently distributed under the terms of the GNU General
-Public License, Version 2. (*NOT* under the GNU General Library Public
-License.) A copy the GNU General Public License is included with the
-distribution of `gdbm'.
-
-
-File: gdbm.info, Node: Intro, Next: List, Prev: Copying, Up: Top
-
-Introduction to GNU `dbm'.
-**************************
-
- GNU `dbm' (`gdbm')is a library of database functions that use
-extendible hashing and works similar to the standard UNIX `dbm'
-functions. These routines are provided to a programmer needing to
-create and manipulate a hashed database. (`gdbm' is *NOT* a complete
-database package for an end user.)
-
- The basic use of `gdbm' is to store key/data pairs in a data file.
-Each key must be unique and each key is paired with only one data item.
-The keys can not be directly accessed in sorted order. The basic unit
-of data in `gdbm' is the structure:
-
- typedef struct {
- char *dptr;
- int dsize;
- } datum;
-
- This structure allows for arbitrary sized keys and data items.
-
- The key/data pairs are stored in a `gdbm' disk file, called a `gdbm'
-database. An application must open a `gdbm' database to be able
-manipulate the keys and data contained in the database. `gdbm' allows
-an application to have multiple databases open at the same time. When
-an application opens a `gdbm' database, it is designated as a `reader'
-or a `writer'. A `gdbm' database opened by at most one writer at a
-time. However, many readers may open the database open simultaneously.
-Readers and writers can not open the `gdbm' database at the same time.
-
-
-File: gdbm.info, Node: List, Next: Open, Prev: Intro, Up: Top
-
-List of functions.
-******************
-
- The following is a quick list of the functions contained in the
-`gdbm' library. The include file `gdbm.h', that can be included by the
-user, contains a definition of these functions.
-
- #include <gdbm.h>
-
- GDBM_FILE gdbm_open(name, block_size, flags, mode, fatal_func);
- void gdbm_close(dbf);
- int gdbm_store(dbf, key, content, flag);
- datum gdbm_fetch(dbf, key);
- int gdbm_delete(dbf, key);
- datum gdbm_firstkey(dbf);
- datum gdbm_nextkey(dbf, key);
- int gdbm_reorganize(dbf);
- void gdbm_sync(dbf);
- int gdbm_exists(dbf, key);
- char *gdbm_strerror(errno);
- int gdbm_setopt(dbf, option, value, size)
-
- The `gdbm.h' include file is often in the `/usr/local/gnu/include'
-directory. (The actual location of `gdbm.h' depends on your local
-installation of `gdbm'.)
-
-
-File: gdbm.info, Node: Open, Next: Close, Prev: List, Up: Top
-
-Opening the database.
-*********************
-
- Initialize `gdbm' system. If the file has a size of zero bytes, a
-file initialization procedure is performed, setting up the initial
-structure in the file.
-
- The procedure for opening a `gdbm' file is:
-
- GDBM_FILE dbf;
-
- dbf = gdbm_open(name, block_size, flags, mode, fatal_func);
-
- The parameters are:
-
-char *name
- The name of the file (the complete name, `gdbm' does not append any
- characters to this name).
-
-int block_size
- It is used during initialization to determine the size of various
- constructs. It is the size of a single transfer from disk to
- memory. This parameter is ignored if the file has been previously
- initialized. The minimum size is 512. If the value is less than
- 512, the file system blocksize is used, otherwise the value of
- `block_size' is used.
-
-int flags
- If `flags' is set to GDBM_READER, the user wants to just read the
- database and any call to `gdbm_store' or `gdbm_delete' will fail.
- Many readers can access the database at the same time. If `flags'
- is set to GDBM_WRITER, the user wants both read and write access
- to the database and requires exclusive access. If `flags' is set
- to GDBM_WRCREAT, the user wants both read and write access to the
- database and if the database does not exist, create a new one. If
- `flags' is set to GDBM_NEWDB, the user want a new database
- created, regardless of whether one existed, and wants read and
- write access to the new database. For all writers (GDBM_WRITER,
- GDBM_WRCREAT and GDBM_NEWDB) the value GDBM_FAST can be added to
- the `flags' field using logical or. This option causes `gdbm' to
- write the database without any disk file synchronization. This
- allows faster writes, but may produce an inconsistent database in
- the event of abnormal termination of the writer. Any error
- detected will cause a return value of NULL and an appropriate
- value will be in `gdbm_errno' (see Variables). If no errors occur,
- a pointer to the `gdbm' file descriptor will be returned.
-
-int mode
- File mode (see chmod(2) and open(2) if the file is created).
-
-void (*fatal_func) ()
- A function for `gdbm' to call if it detects a fatal error. The only
- parameter of this function is a string. If the value of NULL is
- provided, `gdbm' will use a default function.
-
- The return value, `dbf', is the pointer needed by all other
-functions to access that `gdbm' file. If the return is the NULL pointer,
-`gdbm_open' was not successful. The errors can be found in `gdbm_errno'
-for `gdbm' errors and in `errno' for file system errors (for error
-codes, see `gdbm.h').
-
- In all of the following calls, the parameter `dbf' refers to the
-pointer returned from `gdbm_open'.
-
-
-File: gdbm.info, Node: Close, Next: Store, Prev: Open, Up: Top
-
-Closing the database.
-*********************
-
- It is important that every file opened is also closed. This is
-needed to update the reader/writer count on the file. This is done by:
-
- gdbm_close(dbf);
-
- The parameter is:
-
-GDBM_FILE dbf
- The pointer returned by `gdbm_open'.
-
- Closes the `gdbm' file and frees all memory associated with the file
-`dbf'.
-
-
-File: gdbm.info, Node: Store, Next: Fetch, Prev: Close, Up: Top
-
-Inserting and replacing records in the database.
-************************************************
-
- The function `gdbm_store' inserts or replaces records in the
-database.
-
- ret = gdbm_store(dbf, key, content, flag);
-
- The parameters are:
-
-GDBM_FILE dbf
- The pointer returned by `gdbm_open'.
-
-datum key
- The `key' data.
-
-datum content
- The data to be associated with the key.
-
-int flag
- Defines the action to take when the key is already in the
- database. The value GDBM_REPLACE (defined in `gdbm.h') asks that
- the old data be replaced by the new `content'. The value
- GDBM_INSERT asks that an error be returned and no action taken if
- the `key' already exists.
-
- The values returned in `ret' are:
-
--1
- The item was not stored in the database because the caller was not
- an official writer or either `key' or `content' have a NULL dptr
- field. Both `key' and `content' must have the dptr field be a
- non-NULL value. Since a NULL dptr field is used by other
- functions to indicate an error, a NULL field cannot be valid data.
-
-+1
- The item was not stored because the argument `flag' was
- GDBM_INSERT and the `key' was already in the database.
-
-0
- No error. `content' is keyed by `key'. The file on disk is updated
- to reflect the structure of the new database before returning from
- this function.
-
- If you store data for a `key' that is already in the data base,
-`gdbm' replaces the old data with the new data if called with
-GDBM_REPLACE. You do not get two data items for the same `key' and you
-do not get an error from `gdbm_store'.
-
- The size in `gdbm' is not restricted like `dbm' or `ndbm'. Your data
-can be as large as you want.
-
-
-File: gdbm.info, Node: Fetch, Next: Delete, Prev: Store, Up: Top
-
-Searching for records in the database.
-**************************************
-
- Looks up a given `key' and returns the information associated with
-that key. The pointer in the structure that is returned is a pointer
-to dynamically allocated memory block. To search for some data:
-
- content = gdbm_fetch(dbf, key);
-
- The parameters are:
-
-GDBM_FILE dbf
- The pointer returned by `gdbm_open'.
-
-datum key
- The `key' data.
-
- The datum returned in `content' is a pointer to the data found. If
-the dptr is NULL, no data was found. If dptr is not NULL, then it points
-to data allocated by malloc. `gdbm' does not automatically free this
-data. The user must free this storage when done using it. This
-eliminates the need to copy the result to save it for later use (you
-just save the pointer).
-
- You may also search for a particular key without retrieving it,
-using:
-
- ret = gdbm_exists(dbf, key);
-
- The parameters are:
-
-GDBM_FILE dbf
- The pointer returned by `gdbm_open'.
-
-datum key
- The `key' data.
-
- Unlike `gdbm_fetch', this routine does not allocate any memory, and
-simply returns true or false, depending on whether the `key' exists, or
-not.
-
-
-File: gdbm.info, Node: Delete, Next: Sequential, Prev: Fetch, Up: Top
-
-Removing records from the database.
-***********************************
-
- To remove some data from the database:
-
- ret = gdbm_delete(dbf, key);
-
- The parameters are:
-
-GDBM_FILE dbf
- The pointer returned by `gdbm_open'.
-
-datum key
- The `key' data.
-
- The ret value is -1 if the item is not present or the requester is a
-reader. The ret value is 0 if there was a successful delete.
-
- `gdbm_delete' removes the keyed item and the `key' from the database
-`dbf'. The file on disk is updated to reflect the structure of the new
-database before returning from this function.
-
-
-File: gdbm.info, Node: Sequential, Next: Reorganization, Prev: Delete, Up: Top
-
-Sequential access to records.
-*****************************
-
- The next two functions allow for accessing all items in the
-database. This access is not `key' sequential, but it is guaranteed to
-visit every `key' in the database once. The order has to do with the
-hash values. `gdbm_firstkey' starts the visit of all keys in the
-database. `gdbm_nextkey' finds and reads the next entry in the hash
-structure for `dbf'.
-
- key = gdbm_firstkey(dbf);
-
- nextkey = gdbm_nextkey(dbf, key);
-
- The parameters are:
-
-GDBM_FILE dbf
- The pointer returned by `gdbm_open'.
-
-datum `key'
-datum nextkey
- The `key' data.
-
- The return values are both datum. If `key'.dptr or nextkey.dptr is
-NULL, there is no first `key' or next `key'. Again notice that dptr
-points to data allocated by malloc and `gdbm' will not free it for you.
-
- These functions were intended to visit the database in read-only
-algorithms, for instance, to validate the database or similar
-operations.
-
- File `visiting' is based on a `hash table'. `gdbm_delete'
-re-arranges the hash table to make sure that any collisions in the
-table do not leave some item `un-findable'. The original key order is
-NOT guaranteed to remain unchanged in ALL instances. It is possible
-that some key will not be visited if a loop like the following is
-executed:
-
- key = gdbm_firstkey ( dbf );
- while ( key.dptr ) {
- nextkey = gdbm_nextkey ( dbf, key );
- if ( some condition ) {
- gdbm_delete ( dbf, key );
- free ( key.dptr );
- }
- key = nextkey;
- }
-
-
-File: gdbm.info, Node: Reorganization, Next: Sync, Prev: Sequential, Up: Top
-
-Database reorganization.
-************************
-
- The following function should be used very seldom.
-
- ret = gdbm_reorganize(dbf);
-
- The parameter is:
-
-GDBM_FILE dbf
- The pointer returned by `gdbm_open'.
-
- If you have had a lot of deletions and would like to shrink the space
-used by the `gdbm' file, this function will reorganize the database.
-`gdbm' will not shorten the length of a `gdbm' file (deleted file space
-will be reused) except by using this reorganization.
-
- This reorganization requires creating a new file and inserting all
-the elements in the old file `dbf' into the new file. The new file is
-then renamed to the same name as the old file and `dbf' is updated to
-contain all the correct information about the new file. If an error is
-detected, the return value is negative. The value zero is returned
-after a successful reorganization.
-
-
-File: gdbm.info, Node: Sync, Next: Errors, Prev: Reorganization, Up: Top
-
-Database Synchronization
-************************
-
- If your database was opened with the GDBM_FAST flag, `gdbm' does not
-wait for writes to the disk to complete before continuing. This allows
-faster writing of databases at the risk of having a corrupted database
-if the application terminates in an abnormal fashion. The following
-function allows the programmer to make sure the disk version of the
-database has been completely updated with all changes to the current
-time.
-
- gdbm_sync(dbf);
-
- The parameter is:
-
-GDBM_FILE dbf
- The pointer returned by `gdbm_open'.
-
- This would usually be called after a complete set of changes have
-been made to the database and before some long waiting time.
-`gdbm_close' automatically calls the equivalent of `gdbm_sync' so no
-call is needed if the database is to be closed immediately after the
-set of changes have been made.
-
-
-File: gdbm.info, Node: Errors, Next: Options, Prev: Sync, Up: Top
-
-Error strings.
-**************
-
- To convert a `gdbm' error code into English text, use this routine:
-
- ret = gdbm_strerror(errno)
-
- The parameter is:
-
-gdbm_error errno
- The `gdbm' error code, usually `gdbm_errno'.
-
- The appropiate phrase for reading by humans is returned.
-
-
-File: gdbm.info, Node: Options, Next: Variables, Prev: Errors, Up: Top
-
-Seting options.
-***************
-
- `Gdbm' now supports the ability to set certain options on an already
-open database.
-
- ret = gdbm_setopt(dbf, option, value, size)
-
- The parameters are:
-
-GDBM_FILE dbf
- The pointer returned by `gdbm_open'.
-
-int option
- The option to be set.
-
-int *value
- A pointer to the value to which `option' will be set.
-
-int size
- The length of the data pointed to by `value'.
-
- The valid options are currently:
-
- GDBM_CACHESIZE - Set the size of the internal bucket cache. This
-option may only be set once on each GDBM_FILE descriptor, and is set
-automatically to 100 upon the first access to the database.
-
- GDBM_FASTMODE - Set fast mode to either on or off. This allows
-fast mode to be toggled on an already open and active database.
-value (see below) should be set to either TRUE or FALSE.
-
- The return value will be -1 upon failure, or 0 upon success. The
-global variable `gdbm_errno' will be set upon failure.
-
- For instance, to set a database to use a cache of 10, after opening
-it with `gdbm_open', but prior to accessing it in any way, the following
-code could be used:
-
- int value = 10;
- ret = gdbm_setopt(dbf, GDBM_CACHESIZE, &value, sizeof(int));
-
-
-File: gdbm.info, Node: Variables, Next: Compatibility, Prev: Options, Up: Top
-
-Two useful variables.
-*********************
-
- The following two variables are variables that may need to be used:
-
-gdbm_error gdbm_errno
- The variable that contains more information about `gdbm' errors
- (`gdbm.h' has the definitions of the error values).
-
-const char * gdbm_version
- The string containing the version information.
-
-
-File: gdbm.info, Node: Compatibility, Next: Conversion, Prev: Variables, Up: Top
-
-Compatibility with standard `dbm' and `ndbm'.
-*********************************************
-
- GNU `dbm' files are not `sparse'. You can copy them with the UNIX
-`cp' command and they will not expand in the copying process.
-
- There is a compatibility mode for use with programs that already use
-UNIX `dbm' and UNIX `ndbm'.
-
- GNU `dbm' has compatibility functions for `dbm'. For `dbm'
-compatibility functions, you need the include file `dbm.h'.
-
- In this compatibility mode, no `gdbm' file pointer is required by
-the user, and Only one file may be opened at a time. All users in
-compatibility mode are assumed to be writers. If the `gdbm' file is a
-read only, it will fail as a writer, but will also try to open it as a
-reader. All returned pointers in datum structures point to data that
-`gdbm' WILL free. They should be treated as static pointers (as
-standard UNIX `dbm' does). The compatibility function names are the
-same as the UNIX `dbm' function names. Their definitions follow:
-
- int dbminit(name);
- int store(key, content);
- datum fetch(key);
- int delete(key);
- datum firstkey();
- datum nextkey(key);
- int dbmclose();
-
- Standard UNIX `dbm' and GNU `dbm' do not have the same data format
-in the file. You cannot access a standard UNIX `dbm' file with GNU
-`dbm'! If you want to use an old database with GNU `dbm', you must use
-the `conv2gdbm' program.
-
- Also, GNU `dbm' has compatibility functions for `ndbm'. For `ndbm'
-compatibility functions, you need the include file `ndbm.h'.
-
- Again, just like `ndbm', any returned datum can be assumed to be
-static storage. You do not have to free that memory, the `ndbm'
-compatibility functions will do it for you.
-
- The functions are:
-
- DBM *dbm_open(name, flags, mode);
- void dbm_close(file);
- datum dbm_fetch(file, key);
- int dbm_store(file, key, `content', flags);
- int dbm_delete(file, key);
- datum dbm_firstkey(file);
- datum dbm_nextkey(file);
- int dbm_error(file);
- int dbm_clearerr(file);
- int dbm_dirfno(file);
- int dbm_pagfno(file);
- int dbm_rdonly(file);
-
- If you want to compile an old C program that used UNIX `dbm' or
-`ndbm' and want to use `gdbm' files, execute the following `cc' command:
-
- cc ... -L /usr/local/lib -lgdbm
-
-
-File: gdbm.info, Node: Conversion, Next: Bugs, Prev: Compatibility, Up: Top
-
-Converting `dbm' files to `gdbm' format.
-****************************************
-
- The program `conv2gdbm' has been provided to help you convert from
-`dbm' databases to `gdbm'. The usage is:
-
- conv2gdbm [-q] [-b block_size] dbm_file [gdbm_file]
-
- The options are:
-
--q
- Causes `conv2gdbm' to work quietly.
-
-block_size
- Is the same as in `gdbm_open'.
-
-dbm_file
- Is the name of the `dbm' file without the `.pag' or `.dir'
- extensions.
-
-gdbm_file
- Is the complete file name. If not included, the `gdbm' file name
- is the same as the `dbm' file name without any extensions. That is
- `conv2gdbm' `dbmfile' converts the files `dbmfile.pag' and
- `dbmfile.dir' into a `gdbm' file called `dbmfile'.
-
-
-File: gdbm.info, Node: Bugs, Prev: Conversion, Up: Top
-
-Problems and bugs.
-******************
-
- If you have problems with GNU `dbm' or think you've found a bug,
-please report it. Before reporting a bug, make sure you've actually
-found a real bug. Carefully reread the documentation and see if it
-really says you can do what you're trying to do. If it's not clear
-whether you should be able to do something or not, report that too; it's
-a bug in the documentation!
-
- Before reporting a bug or trying to fix it yourself, try to isolate
-it to the smallest possible input file that reproduces the problem. Then
-send us the input file and the exact results `gdbm' gave you. Also say
-what you expected to occur; this will help us decide whether the
-problem was really in the documentation.
-
- Once you've got a precise problem, send e-mail to:
-
- Internet: `bug-gnu-utils@prep.ai.mit.edu'.
- UUCP: `mit-eddie!prep.ai.mit.edu!bug-gnu-utils'.
-
- Please include the version number of GNU `dbm' you are using. You
-can get this information by printing the variable `gdbm_version' (see
-Variables).
-
- Non-bug suggestions are always welcome as well. If you have questions
-about things that are unclear in the documentation or are just obscure
-features, please report them too.
-
- You may contact the author by:
- e-mail: phil@cs.wwu.edu
- us-mail: Philip A. Nelson
- Computer Science Department
- Western Washington University
- Bellingham, WA 98226
-
- You may contact the current maintainer by:
- e-mail: downsj@CSOS.ORST.EDU
-
-
-
-Tag Table:
-Node: Top767
-Node: Copying2197
-Node: Intro3979
-Node: List5395
-Node: Open6324
-Node: Close9217
-Node: Store9652
-Node: Fetch11447
-Node: Delete12696
-Node: Sequential13362
-Node: Reorganization15044
-Node: Sync15999
-Node: Errors16959
-Node: Options17319
-Node: Variables18625
-Node: Compatibility19055
-Node: Conversion21429
-Node: Bugs22243
-
-End Tag Table
diff -rup --new-file baseline/fsf/gdbm/gdbm.texinfo amiga/fsf/gdbm/gdbm.texinfo
--- baseline/fsf/gdbm/gdbm.texinfo Thu May 19 15:14:11 1994
+++ amiga/fsf/gdbm/gdbm.texinfo Sat Sep 28 00:00:00 1996
@@ -209,7 +209,7 @@ char *gdbm_strerror(errno);
int gdbm_setopt(dbf, option, value, size)
@end example
-The @code{gdbm.h} include file is often in the @file{/usr/local/gnu/include}
+The @code{gdbm.h} include file is often in the @file{/gnu/include}
directory. (The actual location of @code{gdbm.h} depends on your local
installation of @code{gdbm}.)
@@ -541,7 +541,7 @@ The parameter is:
The @code{gdbm} error code, usually @code{gdbm_errno}.
@end table
-The appropiate phrase for reading by humans is returned.
+The appropriate phrase for reading by humans is returned.
@node Options, Variables, Errors, top
@chapter Seting options.
@@ -665,7 +665,7 @@ If you want to compile an old C program
and want to use @code{gdbm} files, execute the following @code{cc} command:
@example
-cc ... -L /usr/local/lib -lgdbm
+cc ... -L /gnu/lib -lgdbm
@end example
@node Conversion, Bugs, Compatibility, Top
diff -rup --new-file baseline/fsf/gdbm/gdbmerrno.c amiga/fsf/gdbm/gdbmerrno.c
--- baseline/fsf/gdbm/gdbmerrno.c Sun Dec 26 05:53:26 1993
+++ amiga/fsf/gdbm/gdbmerrno.c Sat Sep 28 00:00:00 1996
@@ -53,7 +53,7 @@ gdbm_strerror(error)
{
if(((int)error < 0) || ((int)error > 18))
{
- return("Unkown error");
+ return("Unknown error");
}
else
{
diff -rup --new-file baseline/fsf/gdbm/gdbmopen.c amiga/fsf/gdbm/gdbmopen.c
--- baseline/fsf/gdbm/gdbmopen.c Sun Dec 26 05:57:32 1993
+++ amiga/fsf/gdbm/gdbmopen.c Sat Sep 28 00:00:00 1996
@@ -53,7 +53,7 @@
exist, create a new one. If FLAGS is GDBM_NEWDB, the user want a
new database created, regardless of whether one existed, and wants read
and write access to the new database. Any error detected will cause a
- return value of null and an approprate value will be in gdbm_errno. If
+ return value of null and an appropriate value will be in gdbm_errno. If
no errors occur, a pointer to the "gdbm file descriptor" will be
returned. */
@@ -153,7 +153,7 @@ gdbm_open (file, block_size, flags, mode
/* Get the status of the file. */
fstat (dbf->desc, &file_stat);
- /* Lock the file in the approprate way. */
+ /* Lock the file in the appropriate way. */
if (flags == GDBM_READER)
{
if (file_stat.st_size == 0)
diff -rup --new-file baseline/fsf/gdbm/install-sh amiga/fsf/gdbm/install-sh
--- baseline/fsf/gdbm/install-sh Wed Dec 31 17:00:00 1969
+++ amiga/fsf/gdbm/install-sh Sat Sep 28 00:00:00 1996
@@ -0,0 +1,238 @@
+#! /bin/sh
+#
+# install - install a program, script, or datafile
+# This comes from X11R5.
+#
+# Calling this script install-sh is preferred over install.sh, to prevent
+# `make' implicit rules from creating a file called install from it
+# when there is no Makefile.
+#
+# This script is compatible with the BSD install script, but was written
+# from scratch.
+#
+
+
+# set DOITPROG to echo to test this script
+
+# Don't use :- since 4.3BSD and earlier shells don't like it.
+doit="${DOITPROG-}"
+
+
+# put in absolute paths if you don't have them in your path; or use env. vars.
+
+mvprog="${MVPROG-mv}"
+cpprog="${CPPROG-cp}"
+chmodprog="${CHMODPROG-chmod}"
+chownprog="${CHOWNPROG-chown}"
+chgrpprog="${CHGRPPROG-chgrp}"
+stripprog="${STRIPPROG-strip}"
+rmprog="${RMPROG-rm}"
+mkdirprog="${MKDIRPROG-mkdir}"
+
+transformbasename=""
+transform_arg=""
+instcmd="$mvprog"
+chmodcmd="$chmodprog 0755"
+chowncmd=""
+chgrpcmd=""
+stripcmd=""
+rmcmd="$rmprog -f"
+mvcmd="$mvprog"
+src=""
+dst=""
+dir_arg=""
+
+while [ x"$1" != x ]; do
+ case $1 in
+ -c) instcmd="$cpprog"
+ shift
+ continue;;
+
+ -d) dir_arg=true
+ shift
+ continue;;
+
+ -m) chmodcmd="$chmodprog $2"
+ shift
+ shift
+ continue;;
+
+ -o) chowncmd="$chownprog $2"
+ shift
+ shift
+ continue;;
+
+ -g) chgrpcmd="$chgrpprog $2"
+ shift
+ shift
+ continue;;
+
+ -s) stripcmd="$stripprog"
+ shift
+ continue;;
+
+ -t=*) transformarg=`echo $1 | sed 's/-t=//'`
+ shift
+ continue;;
+
+ -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
+ shift
+ continue;;
+
+ *) if [ x"$src" = x ]
+ then
+ src=$1
+ else
+ # this colon is to work around a 386BSD /bin/sh bug
+ :
+ dst=$1
+ fi
+ shift
+ continue;;
+ esac
+done
+
+if [ x"$src" = x ]
+then
+ echo "install: no input file specified"
+ exit 1
+else
+ true
+fi
+
+if [ x"$dir_arg" != x ]; then
+ dst=$src
+ src=""
+
+ if [ -d $dst ]; then
+ instcmd=:
+ else
+ instcmd=mkdir
+ fi
+else
+
+# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
+# might cause directories to be created, which would be especially bad
+# if $src (and thus $dsttmp) contains '*'.
+
+ if [ -f $src -o -d $src ]
+ then
+ true
+ else
+ echo "install: $src does not exist"
+ exit 1
+ fi
+
+ if [ x"$dst" = x ]
+ then
+ echo "install: no destination specified"
+ exit 1
+ else
+ true
+ fi
+
+# If destination is a directory, append the input filename; if your system
+# does not like double slashes in filenames, you may need to add some logic
+
+ if [ -d $dst ]
+ then
+ dst="$dst"/`basename $src`
+ else
+ true
+ fi
+fi
+
+## this sed command emulates the dirname command
+dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
+
+# Make sure that the destination directory exists.
+# this part is taken from Noah Friedman's mkinstalldirs script
+
+# Skip lots of stat calls in the usual case.
+if [ ! -d "$dstdir" ]; then
+defaultIFS='
+'
+IFS="${IFS-${defaultIFS}}"
+
+oIFS="${IFS}"
+# Some sh's can't handle IFS=/ for some reason.
+IFS='%'
+set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
+IFS="${oIFS}"
+
+pathcomp=''
+
+while [ $# -ne 0 ] ; do
+ pathcomp="${pathcomp}${1}"
+ shift
+
+ if [ ! -d "${pathcomp}" ] ;
+ then
+ $mkdirprog "${pathcomp}"
+ else
+ true
+ fi
+
+ pathcomp="${pathcomp}/"
+done
+fi
+
+if [ x"$dir_arg" != x ]
+then
+ $doit $instcmd $dst &&
+
+ if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
+ if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
+else
+
+# If we're going to rename the final executable, determine the name now.
+
+ if [ x"$transformarg" = x ]
+ then
+ dstfile=`basename $dst`
+ else
+ dstfile=`basename $dst $transformbasename |
+ sed $transformarg`$transformbasename
+ fi
+
+# don't allow the sed command to completely eliminate the filename
+
+ if [ x"$dstfile" = x ]
+ then
+ dstfile=`basename $dst`
+ else
+ true
+ fi
+
+# Make a temp file name in the proper directory.
+
+ dsttmp=$dstdir/#inst.$$#
+
+# Move or copy the file name to the temp name
+
+ $doit $instcmd $src $dsttmp &&
+
+ trap "rm -f ${dsttmp}" 0 &&
+
+# and set any options; do chmod last to preserve setuid bits
+
+# If any of these fail, we abort the whole thing. If we want to
+# ignore errors from any of these, just make sure not to ignore
+# errors from the above "$doit $instcmd $src $dsttmp" command.
+
+ if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
+ if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
+
+# Now rename the file to the real destination.
+
+ $doit $rmcmd -f $dstdir/$dstfile &&
+ $doit $mvcmd $dsttmp $dstdir/$dstfile
+
+fi &&
+
+
+exit 0
diff -rup --new-file baseline/fsf/gdbm/manifests/bin amiga/fsf/gdbm/manifests/bin
--- baseline/fsf/gdbm/manifests/bin Wed Dec 31 17:00:00 1969
+++ amiga/fsf/gdbm/manifests/bin Wed Oct 9 23:17:45 1996
@@ -0,0 +1,9 @@
+COPYING
+COPYING.info
+dvi/gdbm.dvi
+guide/gdbm.guide
+include/gdbm.h
+info/gdbm.info
+lib/libgdbm.a
+man/man3/gdbm.3
+ps/gdbm.ps
diff -rup --new-file baseline/fsf/gdbm/manifests/src amiga/fsf/gdbm/manifests/src
--- baseline/fsf/gdbm/manifests/src Wed Dec 31 17:00:00 1969
+++ amiga/fsf/gdbm/manifests/src Mon Sep 30 13:03:57 1996
@@ -0,0 +1,66 @@
+fsf/gdbm/COPYING
+fsf/gdbm/ChangeLog
+fsf/gdbm/INSTALL
+fsf/gdbm/Makefile.in
+fsf/gdbm/NEWS
+fsf/gdbm/Product-Info
+fsf/gdbm/README
+fsf/gdbm/alloca.c
+fsf/gdbm/autoconf.h.in
+fsf/gdbm/bucket.c
+fsf/gdbm/close.c
+fsf/gdbm/configure
+fsf/gdbm/configure.in
+fsf/gdbm/conv2gdbm.c
+fsf/gdbm/dbm.h
+fsf/gdbm/dbmclose.c
+fsf/gdbm/dbmdelete.c
+fsf/gdbm/dbmdirfno.c
+fsf/gdbm/dbmfetch.c
+fsf/gdbm/dbminit.c
+fsf/gdbm/dbmopen.c
+fsf/gdbm/dbmpagfno.c
+fsf/gdbm/dbmrdonly.c
+fsf/gdbm/dbmseq.c
+fsf/gdbm/dbmstore.c
+fsf/gdbm/delete.c
+fsf/gdbm/extern.h
+fsf/gdbm/falloc.c
+fsf/gdbm/fetch.c
+fsf/gdbm/findkey.c
+fsf/gdbm/gdbm.3
+fsf/gdbm/gdbm.proto
+fsf/gdbm/gdbm.proto2
+fsf/gdbm/gdbm.texinfo
+fsf/gdbm/gdbmclose.c
+fsf/gdbm/gdbmconst.h
+fsf/gdbm/gdbmdefs.h
+fsf/gdbm/gdbmdelete.c
+fsf/gdbm/gdbmerrno.c
+fsf/gdbm/gdbmerrno.h
+fsf/gdbm/gdbmexists.c
+fsf/gdbm/gdbmfetch.c
+fsf/gdbm/gdbmopen.c
+fsf/gdbm/gdbmreorg.c
+fsf/gdbm/gdbmseq.c
+fsf/gdbm/gdbmsetopt.c
+fsf/gdbm/gdbmstore.c
+fsf/gdbm/gdbmsync.c
+fsf/gdbm/getopt.c
+fsf/gdbm/getopt.h
+fsf/gdbm/global.c
+fsf/gdbm/hash.c
+fsf/gdbm/install-sh
+fsf/gdbm/manifests/bin
+fsf/gdbm/manifests/src
+fsf/gdbm/ndbm.h
+fsf/gdbm/proto.h
+fsf/gdbm/samp1.cc
+fsf/gdbm/seq.c
+fsf/gdbm/store.c
+fsf/gdbm/systems.h
+fsf/gdbm/testdbm.c
+fsf/gdbm/testgdbm.c
+fsf/gdbm/testndbm.c
+fsf/gdbm/update.c
+fsf/gdbm/version.c