home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 6 / FreshFish_September1994.bin / bbs / gnu / textutils-1.9-diffs.lha / GNU / src / diffs / textutils-1.9.diffs
Encoding:
Text File  |  1994-09-07  |  107.7 KB  |  3,739 lines

  1. diff -rc --new-file textutils-1.9/INSTALL /gnu/src/amiga/textutils-1.9/INSTALL
  2. *** textutils-1.9/INSTALL    Wed Sep 15 23:05:10 1993
  3. --- /gnu/src/amiga/textutils-1.9/INSTALL    Mon Feb 21 23:12:18 1994
  4. ***************
  5. *** 35,42 ****
  6.   where DIR is the directory that contains the source code.
  7.   
  8.      By default, `make install' will install the package's files in
  9. ! `/usr/local/bin', `/usr/local/man', etc.  You can specify an
  10. ! installation prefix other than `/usr/local' by giving `configure' the
  11.   option `--prefix=PATH'.  Alternately, you can do so by consistently
  12.   giving a value for the `prefix' variable when you run `make', e.g.,
  13.        make prefix=/usr/gnu
  14. --- 35,42 ----
  15.   where DIR is the directory that contains the source code.
  16.   
  17.      By default, `make install' will install the package's files in
  18. ! `/gnu/bin', `/gnu/man', etc.  You can specify an
  19. ! installation prefix other than `/gnu' by giving `configure' the
  20.   option `--prefix=PATH'.  Alternately, you can do so by consistently
  21.   giving a value for the `prefix' variable when you run `make', e.g.,
  22.        make prefix=/usr/gnu
  23. diff -rc --new-file textutils-1.9/Makefile.in /gnu/src/amiga/textutils-1.9/Makefile.in
  24. *** textutils-1.9/Makefile.in    Thu Oct 21 17:52:51 1993
  25. --- /gnu/src/amiga/textutils-1.9/Makefile.in    Sun Jul 10 10:34:00 1994
  26. ***************
  27. *** 25,31 ****
  28.   srcdir = @srcdir@
  29.   VPATH = @srcdir@
  30.   
  31. ! prefix = /usr/local
  32.   exec_prefix = $(prefix)
  33.   bindir = $(exec_prefix)/bin
  34.   libdir = $(exec_prefix)/lib
  35. --- 25,31 ----
  36.   srcdir = @srcdir@
  37.   VPATH = @srcdir@
  38.   
  39. ! prefix = /gnu
  40.   exec_prefix = $(prefix)
  41.   bindir = $(exec_prefix)/bin
  42.   libdir = $(exec_prefix)/lib
  43. ***************
  44. *** 45,51 ****
  45.   SUBDIRS = lib src man
  46.   
  47.   all:
  48. !     for dir in $(SUBDIRS); do \
  49.         echo making $@ in $$dir ; \
  50.         (cd $$dir; $(MAKE) $@) ; \
  51.       done
  52. --- 45,51 ----
  53.   SUBDIRS = lib src man
  54.   
  55.   all:
  56. !     @for dir in $(SUBDIRS); do \
  57.         echo making $@ in $$dir ; \
  58.         (cd $$dir; $(MAKE) $@) ; \
  59.       done
  60. ***************
  61. *** 58,65 ****
  62.   installcheck:
  63.   
  64.   $(PROGS):
  65. !     cd lib; $(MAKE) all
  66. !     cd src; $(MAKE) $@
  67.   
  68.   config.h: stamp-config
  69.   
  70. --- 58,65 ----
  71.   installcheck:
  72.   
  73.   $(PROGS):
  74. !     @cd lib; $(MAKE) all
  75. !     @cd src; $(MAKE) $@
  76.   
  77.   config.h: stamp-config
  78.   
  79. ***************
  80. *** 87,93 ****
  81.   install:: installdirs
  82.   
  83.   install uninstall TAGS clean mostlyclean distclean realclean::
  84. !     for dir in $(SUBDIRS); do \
  85.         echo making $@ in $$dir ; \
  86.         (cd $$dir; $(MAKE) $@) ; \
  87.       done
  88. --- 87,93 ----
  89.   install:: installdirs
  90.   
  91.   install uninstall TAGS clean mostlyclean distclean realclean::
  92. !     @for dir in $(SUBDIRS); do \
  93.         echo making $@ in $$dir ; \
  94.         (cd $$dir; $(MAKE) $@) ; \
  95.       done
  96. ***************
  97. *** 101,107 ****
  98.       rm -rf `cat .fname`
  99.       mkdir `cat .fname`
  100.       ln $(DISTFILES) `cat .fname`
  101. !     for dir in $(SUBDIRS); do \
  102.         mkdir `cat .fname`/$$dir; \
  103.         (cd $$dir; $(MAKE) $@); \
  104.       done
  105. --- 101,107 ----
  106.       rm -rf `cat .fname`
  107.       mkdir `cat .fname`
  108.       ln $(DISTFILES) `cat .fname`
  109. !     @for dir in $(SUBDIRS); do \
  110.         mkdir `cat .fname`/$$dir; \
  111.         (cd $$dir; $(MAKE) $@); \
  112.       done
  113. diff -rc --new-file textutils-1.9/Product-Info /gnu/src/amiga/textutils-1.9/Product-Info
  114. *** textutils-1.9/Product-Info    Thu Jan  1 00:00:00 1970
  115. --- /gnu/src/amiga/textutils-1.9/Product-Info    Tue Jul 12 17:48:52 1994
  116. ***************
  117. *** 0 ****
  118. --- 1,26 ----
  119. + .name
  120. + textutils
  121. + .fullname
  122. + GNU text processing utilities
  123. + .type
  124. + Text Processing
  125. + .short
  126. + GNU text processing utilities
  127. + .description
  128. + These are the GNU text file (actually, file contents) processing
  129. + utilities.  Most of these programs have significant advantages over
  130. + their Unix counterparts, such as greater speed, additional options,
  131. + and fewer arbitrary limits.  The programs that can be built with this
  132. + package are: cat, cksum, comm, csplit, cut, expand, fold, head, join,
  133. + nl, od paste, pr, sort, split, sum, tac, tail, tr, unexpand, uniq, and
  134. + wc.  The cmp program has moved to the GNU diff distribution.
  135. + .version
  136. + 1.9
  137. + .author
  138. + Free Software Foundation
  139. + .requirements
  140. + Amiga binaries require ixemul.library.
  141. + .distribution
  142. + GNU Public License
  143. + .described-by
  144. + Fred Fish (fnf@amigalib.com)
  145. diff -rc --new-file textutils-1.9/configure /gnu/src/amiga/textutils-1.9/configure
  146. *** textutils-1.9/configure    Tue Nov  2 21:02:43 1993
  147. --- /gnu/src/amiga/textutils-1.9/configure    Fri Apr 29 13:04:13 1994
  148. ***************
  149. *** 1,155 ****
  150.   #!/bin/sh
  151.   # Guess values for system-dependent variables and create Makefiles.
  152. ! # Generated automatically using autoconf.
  153. ! # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  154.   
  155. ! # This program is free software; you can redistribute it and/or modify
  156. ! # it under the terms of the GNU General Public License as published by
  157. ! # the Free Software Foundation; either version 2, or (at your option)
  158.   # any later version.
  159.   
  160. ! # This program is distributed in the hope that it will be useful,
  161. ! # but WITHOUT ANY WARRANTY; without even the implied warranty of
  162. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  163. ! # GNU General Public License for more details.
  164.   
  165.   # You should have received a copy of the GNU General Public License
  166.   # along with this program; if not, write to the Free Software
  167.   # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  168.   
  169. ! # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp]
  170. ! #        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE[=VALUE]]
  171. ! # Ignores all args except --srcdir, --prefix, --exec-prefix, and
  172. ! # --with-PACKAGE[=VALUE] unless this script has special code to handle it.
  173.   
  174. ! for arg
  175.   do
  176. -   # Handle --exec-prefix with a space before the argument.
  177. -   if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  178. -   # Handle --host with a space before the argument.
  179. -   elif test x$next_host = xyes; then next_host=
  180. -   # Handle --prefix with a space before the argument.
  181. -   elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  182. -   # Handle --srcdir with a space before the argument.
  183. -   elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  184. -   else
  185. -     case $arg in
  186. -      # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  187. -      -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  188. -     exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  189. -      -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  190. -     next_exec_prefix=yes ;;
  191. -      -gas | --gas | --ga | --g) ;;
  192. -      -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  193. -      -host | --host | --hos | --ho | --h)
  194. -     next_host=yes ;;
  195. -      -nfp | --nfp | --nf) ;;
  196. -      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  197. -     prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  198. -      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  199. -     next_prefix=yes ;;
  200. -      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  201. -     srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  202. -      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  203. -     next_srcdir=yes ;;
  204. -      -with-* | --with-*)
  205. -        package=`echo $arg|sed -e 's/-*with-//' -e 's/=.*//'`
  206. -        # Reject names that aren't valid shell variable names.
  207. -        if test -n "`echo $package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  208. -          echo "configure: $package: invalid package name" >&2; exit 1
  209. -        fi
  210. -        package=`echo $package| sed 's/-/_/g'`
  211. -        case "$arg" in
  212. -          *=*) val="`echo $arg|sed 's/[^=]*=//'`" ;;
  213. -          *) val=1 ;;
  214. -        esac
  215. -        eval "with_$package='$val'" ;;
  216.   
  217. !      -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
  218. !        verbose=yes ;;
  219.   
  220. !      *) ;;
  221.       esac
  222. !   fi
  223.   done
  224.   
  225. ! trap 'rm -fr conftest* confdefs* core; exit 1' 1 3 15
  226. ! trap 'rm -f confdefs*' 0
  227.   
  228.   # NLS nuisances.
  229.   # These must not be set unconditionally because not all systems understand
  230.   # e.g. LANG=C (notably SCO).
  231. ! if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi
  232. ! if test "${LANG+set}"   = 'set' ; then LANG=C;   export LANG;   fi
  233.   
  234. ! rm -f conftest* confdefs.h
  235.   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  236. ! echo > confdefs.h
  237. ! compile='${CC-cc} $CFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  238.   
  239.   # A filename unique to this package, relative to the directory that
  240.   # configure is in, which we can look for to find out if srcdir is correct.
  241. ! unique_file=src/fold.c
  242.   
  243.   # Find the source files, if location was not specified.
  244.   if test -z "$srcdir"; then
  245. !   srcdirdefaulted=yes
  246.     # Try the directory containing this script, then `..'.
  247. !   prog=$0
  248. !   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  249. !   test "X$confdir" = "X$prog" && confdir=.
  250. !   srcdir=$confdir
  251. !   if test ! -r $srcdir/$unique_file; then
  252.       srcdir=..
  253.     fi
  254.   fi
  255. ! if test ! -r $srcdir/$unique_file; then
  256. !   if test x$srcdirdefaulted = xyes; then
  257. !     echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  258.     else
  259. !     echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  260.     fi
  261. -   exit 1
  262.   fi
  263. ! # Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  264. ! # But we can't avoid them for `..', to make subdirectories work.
  265. ! case $srcdir in
  266. !   .|/*|~*) ;;
  267. !   *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  268. ! esac
  269.   
  270.   
  271. - # Save the original args to write them into config.status later.
  272. - configure_args="$*"
  273.   
  274.   
  275.   # We want these before the checks, so the checks can modify their values.
  276. ! test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
  277. ! test -z "$LDFLAGS" && LDFLAGS=-g
  278.   
  279.   if test -z "$CC"; then
  280.     # Extract the first word of `gcc', so it can be a program name with args.
  281. !   set dummy gcc; word=$2
  282. !   echo checking for $word
  283. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  284. !   for dir in $PATH; do
  285. !     test -z "$dir" && dir=.
  286. !     if test -f $dir/$word; then
  287.         CC="gcc"
  288.         break
  289.       fi
  290.     done
  291. !   IFS="$saveifs"
  292.   fi
  293.   test -z "$CC" && CC="cc"
  294. ! test -n "$CC" && test -n "$verbose" && echo "    setting CC to $CC"
  295.   
  296.   # Find out if we are using GNU C, under whatever name.
  297.   cat > conftest.c <<EOF
  298. --- 1,341 ----
  299.   #!/bin/sh
  300.   # Guess values for system-dependent variables and create Makefiles.
  301. ! # Generated automatically using autoconf version 1.9 
  302. ! # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  303.   
  304. ! # This configure script is free software; you can redistribute it and/or
  305. ! # modify it under the terms of the GNU General Public License as published
  306. ! # by the Free Software Foundation; either version 2, or (at your option)
  307.   # any later version.
  308.   
  309. ! # This script is distributed in the hope that it will be useful, but
  310. ! # WITHOUT ANY WARRANTY; without even the implied warranty of
  311. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  312. ! # Public License for more details.
  313.   
  314.   # You should have received a copy of the GNU General Public License
  315.   # along with this program; if not, write to the Free Software
  316.   # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  317.   
  318. ! # Save the original args to write them into config.status later.
  319. ! configure_args="$*"
  320.   
  321. ! # Only options that might do something get documented.
  322. ! ac_usage="Usage: configure [options] [host]
  323. ! Options: [defaults in brackets after descriptions]
  324. ! --build=BUILD        configure for building on BUILD [BUILD=HOST]
  325. ! --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  326. ! --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  327. ! --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  328. ! --help            print this message
  329. ! --host=HOST        configure for HOST [guessed]
  330. ! --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  331. ! --quiet, --silent    do not print \`checking for...' messages
  332. ! --srcdir=DIR        find the sources in DIR [configure dir or ..]
  333. ! --target=TARGET        configure for TARGET [TARGET=HOST]
  334. ! --verbose        print results of checks
  335. ! --version        print the version of autoconf that created configure
  336. ! --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  337. ! --without-PACKAGE    do not use PACKAGE (same as --with-PACKAGE=no)
  338. ! --x-includes=DIR    X include files are in DIR
  339. ! --x-libraries=DIR    X library files are in DIR"
  340. ! # Initialize some variables set by options.
  341. ! # The variables have the same names as the options, with
  342. ! # dashes changed to underlines.
  343. ! build=NONE
  344. ! exec_prefix=
  345. ! host=NONE
  346. ! no_create=
  347. ! nonopt=NONE
  348. ! norecursion=
  349. ! prefix=
  350. ! program_prefix=
  351. ! program_suffix=
  352. ! program_transform_name=
  353. ! silent=
  354. ! srcdir=
  355. ! target=NONE
  356. ! verbose=
  357. ! x_includes=
  358. ! x_libraries=
  359. ! ac_prev=
  360. ! for ac_option
  361.   do
  362.   
  363. !   # If the previous option needs an argument, assign it.
  364. !   if test -n "$ac_prev"; then
  365. !     eval "$ac_prev=\$ac_option"
  366. !     ac_prev=
  367. !     continue
  368. !   fi
  369. !   # Accept (but ignore some of) the important Cygnus configure
  370. !   # options, so we can diagnose typos.
  371. !   case "$ac_option" in
  372. !   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  373. !   *) ac_optarg= ;;
  374. !   esac
  375. !   case "$ac_option" in
  376. !   -build | --build | --buil | --bui | --bu | --b)
  377. !     ac_prev=build ;;
  378. !   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  379. !     build="$ac_optarg" ;;
  380. !   -disable-* | --disable-*)
  381. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  382. !     # Reject names that aren't valid shell variable names.
  383. !     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  384. !       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  385. !     fi
  386. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  387. !     eval "enable_${ac_feature}=no" ;;
  388. !   -enable-* | --enable-*)
  389. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  390. !     # Reject names that aren't valid shell variable names.
  391. !     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  392. !       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  393. !     fi
  394. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  395. !     case "$ac_option" in
  396. !       *=*) ;;
  397. !       *) ac_optarg=yes ;;
  398. !     esac
  399. !     eval "enable_${ac_feature}='$ac_optarg'" ;;
  400.   
  401. !   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  402. !   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  403. !   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  404. !   | --exec | --exe | --ex)
  405. !     ac_prev=exec_prefix ;;
  406. !   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  407. !   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  408. !   | --exec=* | --exe=* | --ex=*)
  409. !     exec_prefix="$ac_optarg" ;;
  410. !   -gas | --gas | --ga | --g)
  411. !     with_gas=yes ;; # Obsolete; use --with-gas.
  412. !   -help | --help | --hel | --he)
  413. !     cat << EOF
  414. ! $ac_usage
  415. ! EOF
  416. !     exit 0 ;;
  417. !   -host | --host | --hos | --ho)
  418. !     ac_prev=host ;;
  419. !   -host=* | --host=* | --hos=* | --ho=*)
  420. !     host="$ac_optarg" ;;
  421. !   -nfp | --nfp | --nf)
  422. !     with_fp=no ;; # Obsolete; use --without-fp.
  423. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  424. !   | --no-cr | --no-c)
  425. !     no_create=yes ;;
  426. !   -norecursion | --norecursion | --norecursio | --norecursi \
  427. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  428. !     norecursion=yes ;;
  429. !   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  430. !     ac_prev=prefix ;;
  431. !   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  432. !     prefix="$ac_optarg" ;;
  433. !   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  434. !   | --program-pre | --program-pr | --program-p)
  435. !     ac_prev=program_prefix ;;
  436. !   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  437. !   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  438. !     program_prefix="$ac_optarg" ;;
  439. !   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  440. !   | --program-suf | --program-su | --program-s)
  441. !     ac_prev=program_suffix ;;
  442. !   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  443. !   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  444. !     program_suffix="$ac_optarg" ;;
  445. !   -program-transform-name | --program-transform-name \
  446. !   | --program-transform-nam | --program-transform-na \
  447. !   | --program-transform-n | --program-transform- \
  448. !   | --program-transform | --program-transfor \
  449. !   | --program-transfo | --program-transf \
  450. !   | --program-trans | --program-tran \
  451. !   | --progr-tra | --program-tr | --program-t)
  452. !     ac_prev=program_transform_name ;;
  453. !   -program-transform-name=* | --program-transform-name=* \
  454. !   | --program-transform-nam=* | --program-transform-na=* \
  455. !   | --program-transform-n=* | --program-transform-=* \
  456. !   | --program-transform=* | --program-transfor=* \
  457. !   | --program-transfo=* | --program-transf=* \
  458. !   | --program-trans=* | --program-tran=* \
  459. !   | --progr-tra=* | --program-tr=* | --program-t=*)
  460. !     program_transform_name="$ac_optarg" ;;
  461. !   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  462. !   | -silent | --silent | --silen | --sile | --sil)
  463. !     silent=yes ;;
  464. !   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  465. !     ac_prev=srcdir ;;
  466. !   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  467. !     srcdir="$ac_optarg" ;;
  468. !   -target | --target | --targe | --targ | --tar | --ta | --t)
  469. !     ac_prev=target ;;
  470. !   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  471. !     target="$ac_optarg" ;;
  472. !   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  473. !     verbose=yes ;;
  474. !   -version | --version | --versio | --versi | --vers)
  475. !     /bin/echo "configure generated by autoconf version 1.9"
  476. !     exit 0 ;;
  477. !   -with-* | --with-*)
  478. !     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  479. !     # Reject names that aren't valid shell variable names.
  480. !     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  481. !       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  482. !     fi
  483. !     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  484. !     case "$ac_option" in
  485. !       *=*) ;;
  486. !       *) ac_optarg=yes ;;
  487.       esac
  488. !     eval "with_${ac_package}='$ac_optarg'" ;;
  489. !   -without-* | --without-*)
  490. !     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  491. !     # Reject names that aren't valid shell variable names.
  492. !     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  493. !       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  494. !     fi
  495. !     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  496. !     eval "with_${ac_package}=no" ;;
  497. !   --x) with_x=yes ;; # Obsolete; use --with-x.
  498. !   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  499. !   | --x-incl | --x-inc | --x-in | --x-i)
  500. !     ac_prev=x_includes ;;
  501. !   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  502. !   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  503. !     x_includes="$ac_optarg" ;;
  504. !   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  505. !   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  506. !     ac_prev=x_libraries ;;
  507. !   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  508. !   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  509. !     x_libraries="$ac_optarg" ;;
  510. !   -*) /bin/echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  511. !     ;;
  512. !   *) 
  513. !     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  514. !       /bin/echo "configure: warning: $ac_option: invalid host type" >&2
  515. !     fi
  516. !     if test "x$nonopt" != xNONE; then
  517. !       /bin/echo "configure: can only configure for one host and one target at a time" >&2; exit 1
  518. !     fi
  519. !     nonopt="$ac_option"
  520. !     ;;
  521. !   esac
  522.   done
  523.   
  524. ! if test -n "$ac_prev"; then
  525. !   /bin/echo "configure: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  526. ! fi
  527. ! trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  528. ! trap 'rm -fr confdefs* $ac_clean_files' 0
  529. ! # Save the original args if we used an alternate arg parser.
  530. ! ac_configure_temp="${configure_args-$*}"
  531. ! # Strip out --no-create and --norecursion so they don't pile up.
  532. ! configure_args=
  533. ! for ac_arg in $ac_configure_temp; do
  534. !   case "$ac_arg" in
  535. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  536. !   | --no-cr | --no-c) ;;
  537. !   -norecursion | --norecursion | --norecursio | --norecursi \
  538. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  539. !   *) configure_args="$configure_args $ac_arg" ;;
  540. !   esac
  541. ! done
  542.   
  543.   # NLS nuisances.
  544.   # These must not be set unconditionally because not all systems understand
  545.   # e.g. LANG=C (notably SCO).
  546. ! if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  547. ! if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  548.   
  549. ! # confdefs.h avoids OS command line length limits that DEFS can exceed.
  550. ! rm -rf conftest* confdefs.h
  551.   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  552. ! /bin/echo > confdefs.h
  553.   
  554.   # A filename unique to this package, relative to the directory that
  555.   # configure is in, which we can look for to find out if srcdir is correct.
  556. ! ac_unique_file=src/fold.c
  557.   
  558.   # Find the source files, if location was not specified.
  559.   if test -z "$srcdir"; then
  560. !   ac_srcdir_defaulted=yes
  561.     # Try the directory containing this script, then `..'.
  562. !   ac_prog=$0
  563. !   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  564. !   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  565. !   srcdir=$ac_confdir
  566. !   if test ! -r $srcdir/$ac_unique_file; then
  567.       srcdir=..
  568.     fi
  569.   fi
  570. ! if test ! -r $srcdir/$ac_unique_file; then
  571. !   if test x$ac_srcdir_defaulted = xyes; then
  572. !     /bin/echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  573.     else
  574. !     /bin/echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  575.     fi
  576.   fi
  577. ! ac_ext=c
  578. ! ac_cpp='${CPP} $CFLAGS'
  579. ! ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  580.   
  581.   
  582.   
  583.   
  584.   # We want these before the checks, so the checks can modify their values.
  585. ! test -z "$CFLAGS" && CFLAGS= auto_cflags=1
  586. ! test -z "$LDFLAGS" && LDFLAGS=
  587.   
  588.   if test -z "$CC"; then
  589.     # Extract the first word of `gcc', so it can be a program name with args.
  590. !   set ac_dummy gcc; ac_word=$2
  591. !   test -n "$silent" || /bin/echo "checking for $ac_word"
  592. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  593. !   for ac_dir in $PATH; do
  594. !     test -z "$ac_dir" && ac_dir=.
  595. !     if test -f $ac_dir/$ac_word; then
  596.         CC="gcc"
  597.         break
  598.       fi
  599.     done
  600. !   IFS="$ac_save_ifs"
  601.   fi
  602.   test -z "$CC" && CC="cc"
  603. ! test -n "$CC" && test -n "$verbose" && /bin/echo "    setting CC to $CC"
  604.   
  605.   # Find out if we are using GNU C, under whatever name.
  606.   cat > conftest.c <<EOF
  607. ***************
  608. *** 165,186 ****
  609.   
  610.   
  611.   # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
  612. ! test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
  613.   
  614.   
  615. ! echo checking how to run the C preprocessor
  616.   if test -z "$CPP"; then
  617.     # This must be in double quotes, not single quotes, because CPP may get
  618.     # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  619.     # make.  It must be expanded now.
  620.     CPP="${CC-cc} -E"
  621. !   cat > conftest.c <<EOF
  622.   #include "confdefs.h"
  623.   #include <stdio.h>
  624.   Syntax Error
  625.   EOF
  626. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  627. ! if test -z "$err"; then
  628.     :
  629.   else
  630.     rm -rf conftest*
  631. --- 351,387 ----
  632.   
  633.   
  634.   # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
  635. ! test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
  636.   
  637.   
  638. ! test -n "$silent" || /bin/echo "checking how to run the C preprocessor"
  639.   if test -z "$CPP"; then
  640.     # This must be in double quotes, not single quotes, because CPP may get
  641.     # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  642.     # make.  It must be expanded now.
  643.     CPP="${CC-cc} -E"
  644. !   cat > conftest.${ac_ext} <<EOF
  645. ! #include "confdefs.h"
  646. ! #include <stdio.h>
  647. ! Syntax Error
  648. ! EOF
  649. ! # Some shells (Coherent) do redirections in the wrong order, so need
  650. ! # the parens.
  651. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  652. ! if test -z "$ac_err"; then
  653. !   :
  654. ! else
  655. !   rm -rf conftest*
  656. !   CPP="${CC-cc} -E -traditional-cpp"
  657. !   cat > conftest.${ac_ext} <<EOF
  658.   #include "confdefs.h"
  659.   #include <stdio.h>
  660.   Syntax Error
  661.   EOF
  662. ! # Some shells (Coherent) do redirections in the wrong order, so need
  663. ! # the parens.
  664. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  665. ! if test -z "$ac_err"; then
  666.     :
  667.   else
  668.     rm -rf conftest*
  669. ***************
  670. *** 188,230 ****
  671.   fi
  672.   rm -f conftest*
  673.   fi
  674. ! test ".${verbose}" != "." && echo "    setting CPP to $CPP"
  675.   
  676.   if test -n "$GCC"; then
  677. !   echo checking whether -traditional is needed
  678. !   pattern="Autoconf.*'x'"
  679. !   prog='#include <sgtty.h>
  680.   Autoconf TIOCGETP'
  681. !   cat > conftest.c <<EOF
  682.   #include "confdefs.h"
  683. ! $prog
  684.   EOF
  685. ! eval "$CPP conftest.c > conftest.out 2>&1"
  686. ! if egrep "$pattern" conftest.out >/dev/null 2>&1; then
  687.     rm -rf conftest*
  688. !   need_trad=1
  689.   
  690.   fi
  691.   rm -f conftest*
  692.   
  693.   
  694. !   if test -z "$need_trad"; then
  695. !     prog='#include <termio.h>
  696.   Autoconf TCGETA'
  697. !     cat > conftest.c <<EOF
  698.   #include "confdefs.h"
  699. ! $prog
  700.   EOF
  701. ! eval "$CPP conftest.c > conftest.out 2>&1"
  702. ! if egrep "$pattern" conftest.out >/dev/null 2>&1; then
  703.     rm -rf conftest*
  704. !   need_trad=1
  705.   
  706.   fi
  707.   rm -f conftest*
  708.   
  709.     fi
  710. !   test -n "$need_trad" && CC="$CC -traditional"
  711.   fi
  712.   
  713.   # Make sure to not get the incompatible SysV /etc/install and
  714. --- 389,433 ----
  715.   fi
  716.   rm -f conftest*
  717.   fi
  718. ! rm -f conftest*
  719. ! fi
  720. ! test -n "$verbose" && /bin/echo "    setting CPP to $CPP"
  721.   
  722.   if test -n "$GCC"; then
  723. !   test -n "$silent" || /bin/echo "checking whether -traditional is needed"
  724. !   ac_pattern="Autoconf.*'x'"
  725. !   ac_prog='#include <sgtty.h>
  726.   Autoconf TIOCGETP'
  727. !   cat > conftest.${ac_ext} <<EOF
  728.   #include "confdefs.h"
  729. ! $ac_prog
  730.   EOF
  731. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  732. ! if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
  733.     rm -rf conftest*
  734. !   ac_need_trad=1
  735.   
  736.   fi
  737.   rm -f conftest*
  738.   
  739.   
  740. !   if test -z "$ac_need_trad"; then
  741. !     ac_prog='#include <termio.h>
  742.   Autoconf TCGETA'
  743. !     cat > conftest.${ac_ext} <<EOF
  744.   #include "confdefs.h"
  745. ! $ac_prog
  746.   EOF
  747. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  748. ! if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
  749.     rm -rf conftest*
  750. !   ac_need_trad=1
  751.   
  752.   fi
  753.   rm -f conftest*
  754.   
  755.     fi
  756. !   test -n "$ac_need_trad" && CC="$CC -traditional"
  757.   fi
  758.   
  759.   # Make sure to not get the incompatible SysV /etc/install and
  760. ***************
  761. *** 232,312 ****
  762.   # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  763.   # or the AFS install, which mishandles nonexistent args, or
  764.   # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  765. ! # `staff'.  On most BSDish systems install is in /usr/bin, not /usr/ucb
  766. ! # anyway.  Sigh.
  767.   if test "z${INSTALL}" = "z" ; then
  768. !   echo checking for install
  769. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  770. !   for dir in $PATH; do
  771. !     test -z "$dir" && dir=.
  772. !     case $dir in
  773. !     /etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  774.       *)
  775. !       if test -f $dir/installbsd; then
  776. !     INSTALL="$dir/installbsd -c" # OSF1
  777. !     INSTALL_PROGRAM='$(INSTALL)'
  778. !     INSTALL_DATA='$(INSTALL) -m 644'
  779. !     break
  780. !       fi
  781. !       if test -f $dir/install; then
  782. !     if grep dspmsg $dir/install >/dev/null 2>&1; then
  783. !       : # AIX
  784. !     else
  785. !       INSTALL="$dir/install -c"
  786. !       INSTALL_PROGRAM='$(INSTALL)'
  787. !       INSTALL_DATA='$(INSTALL) -m 644'
  788. !       break
  789.       fi
  790. !       fi
  791.         ;;
  792.       esac
  793.     done
  794. !   IFS="$saveifs"
  795.   fi
  796. ! INSTALL=${INSTALL-cp}
  797. ! test -n "$verbose" && echo "    setting INSTALL to $INSTALL"
  798. ! INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  799. ! test -n "$verbose" && echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  800. ! INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  801. ! test -n "$verbose" && echo "    setting INSTALL_DATA to $INSTALL_DATA"
  802.   
  803.   if test -z "$RANLIB"; then
  804.     # Extract the first word of `ranlib', so it can be a program name with args.
  805. !   set dummy ranlib; word=$2
  806. !   echo checking for $word
  807. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  808. !   for dir in $PATH; do
  809. !     test -z "$dir" && dir=.
  810. !     if test -f $dir/$word; then
  811.         RANLIB="ranlib"
  812.         break
  813.       fi
  814.     done
  815. !   IFS="$saveifs"
  816.   fi
  817.   test -z "$RANLIB" && RANLIB=":"
  818. ! test -n "$RANLIB" && test -n "$verbose" && echo "    setting RANLIB to $RANLIB"
  819.   
  820. ! echo checking for AIX
  821. ! cat > conftest.c <<EOF
  822.   #include "confdefs.h"
  823.   #ifdef _AIX
  824.     yes
  825.   #endif
  826.   
  827.   EOF
  828. ! eval "$CPP conftest.c > conftest.out 2>&1"
  829.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  830.     rm -rf conftest*
  831.     
  832.   {
  833.   test -n "$verbose" && \
  834. ! echo "    defining _ALL_SOURCE"
  835. ! echo "#define" _ALL_SOURCE 1 >> confdefs.h
  836.   DEFS="$DEFS -D_ALL_SOURCE=1"
  837. ! SEDDEFS="${SEDDEFS}\${SEDdA}_ALL_SOURCE\${SEDdB}_ALL_SOURCE\${SEDdC}1\${SEDdD}
  838. ! \${SEDuA}_ALL_SOURCE\${SEDuB}_ALL_SOURCE\${SEDuC}1\${SEDuD}
  839. ! \${SEDeA}_ALL_SOURCE\${SEDeB}_ALL_SOURCE\${SEDeC}1\${SEDeD}
  840.   "
  841.   }
  842.   
  843. --- 435,533 ----
  844.   # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  845.   # or the AFS install, which mishandles nonexistent args, or
  846.   # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  847. ! # `staff', or /sbin/install on IRIX which has incompatible command-line
  848. ! # syntax.  Sigh.
  849. ! #
  850. ! #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  851. ! #     anyway.
  852. ! # This turns out not to be true, so the mere pathname isn't an indication
  853. ! # of whether the program works.  What we really need is a set of tests for
  854. ! # the install program to see if it actually works in all the required ways.
  855. ! #
  856. ! # Avoid using ./install, which might have been erroneously created
  857. ! # by make from ./install.sh.
  858.   if test "z${INSTALL}" = "z" ; then
  859. !   test -n "$silent" || /bin/echo "checking for a BSD compatible install"
  860. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  861. !   for ac_dir in $PATH; do
  862. !     case "$ac_dir" in
  863. !     ''|.|/gnu/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  864.       *)
  865. !       # OSF1 and SCO ODT 3.0 have their own names for install.
  866. !       for ac_prog in installbsd scoinst install; do
  867. !         if test -f $ac_dir/$ac_prog; then
  868. !       if test $ac_prog = install &&
  869. !             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  870. !         # AIX install.  It has an incompatible calling convention.
  871. !         # OSF/1 installbsd also uses dspmsg, but is usable.
  872. !         :
  873. !       else
  874. !         INSTALL="$ac_dir/$ac_prog -c"
  875. !         INSTALL_PROGRAM='${INSTALL}'
  876. !         INSTALL_DATA='${INSTALL} -m 644'
  877. !         break 2
  878. !       fi
  879.       fi
  880. !       done
  881.         ;;
  882.       esac
  883.     done
  884. !   IFS="$ac_save_ifs"
  885.   fi
  886. ! if test -z "$INSTALL"; then
  887. !   if test -f ${srcdir}/install.sh; then
  888. !     # As a last resort, use the slow shell script.
  889. !     INSTALL='@top_srcdir@/install.sh -c'
  890. !   else
  891. !     /bin/echo "configure: warning: ${srcdir}/install.sh not found; using cp" >&2
  892. !     INSTALL=cp
  893. !   fi
  894. ! fi
  895. ! test -n "$verbose" && /bin/echo "    setting INSTALL to $INSTALL"
  896. ! # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  897. ! # It thinks the first close brace ends the variable substitution.
  898. ! test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  899. ! test -n "$verbose" && /bin/echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  900. ! test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL}'
  901. ! test -n "$verbose" && /bin/echo "    setting INSTALL_DATA to $INSTALL_DATA"
  902.   
  903.   if test -z "$RANLIB"; then
  904.     # Extract the first word of `ranlib', so it can be a program name with args.
  905. !   set ac_dummy ranlib; ac_word=$2
  906. !   test -n "$silent" || /bin/echo "checking for $ac_word"
  907. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  908. !   for ac_dir in $PATH; do
  909. !     test -z "$ac_dir" && ac_dir=.
  910. !     if test -f $ac_dir/$ac_word; then
  911.         RANLIB="ranlib"
  912.         break
  913.       fi
  914.     done
  915. !   IFS="$ac_save_ifs"
  916.   fi
  917.   test -z "$RANLIB" && RANLIB=":"
  918. ! test -n "$RANLIB" && test -n "$verbose" && /bin/echo "    setting RANLIB to $RANLIB"
  919.   
  920. ! test -n "$silent" || /bin/echo "checking for AIX"
  921. ! cat > conftest.${ac_ext} <<EOF
  922.   #include "confdefs.h"
  923.   #ifdef _AIX
  924.     yes
  925.   #endif
  926.   
  927.   EOF
  928. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  929.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  930.     rm -rf conftest*
  931.     
  932.   {
  933.   test -n "$verbose" && \
  934. ! /bin/echo "    defining _ALL_SOURCE"
  935. ! /bin/echo "#define" _ALL_SOURCE "1" >> confdefs.h
  936.   DEFS="$DEFS -D_ALL_SOURCE=1"
  937. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_ALL_SOURCE\${ac_dB}_ALL_SOURCE\${ac_dC}1\${ac_dD}
  938. ! \${ac_uA}_ALL_SOURCE\${ac_uB}_ALL_SOURCE\${ac_uC}1\${ac_uD}
  939. ! \${ac_eA}_ALL_SOURCE\${ac_eB}_ALL_SOURCE\${ac_eC}1\${ac_eD}
  940.   "
  941.   }
  942.   
  943. ***************
  944. *** 315,327 ****
  945.   rm -f conftest*
  946.   
  947.   
  948. ! echo checking for minix/config.h
  949. ! cat > conftest.c <<EOF
  950.   #include "confdefs.h"
  951.   #include <minix/config.h>
  952.   EOF
  953. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  954. ! if test -z "$err"; then
  955.     rm -rf conftest*
  956.     MINIX=1
  957.   
  958. --- 536,550 ----
  959.   rm -f conftest*
  960.   
  961.   
  962. ! test -n "$silent" || /bin/echo "checking for minix/config.h"
  963. ! cat > conftest.${ac_ext} <<EOF
  964.   #include "confdefs.h"
  965.   #include <minix/config.h>
  966.   EOF
  967. ! # Some shells (Coherent) do redirections in the wrong order, so need
  968. ! # the parens.
  969. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  970. ! if test -z "$ac_err"; then
  971.     rm -rf conftest*
  972.     MINIX=1
  973.   
  974. ***************
  975. *** 333,387 ****
  976.     
  977.   {
  978.   test -n "$verbose" && \
  979. ! echo "    defining _POSIX_SOURCE"
  980. ! echo "#define" _POSIX_SOURCE 1 >> confdefs.h
  981.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  982. ! SEDDEFS="${SEDDEFS}\${SEDdA}_POSIX_SOURCE\${SEDdB}_POSIX_SOURCE\${SEDdC}1\${SEDdD}
  983. ! \${SEDuA}_POSIX_SOURCE\${SEDuB}_POSIX_SOURCE\${SEDuC}1\${SEDuD}
  984. ! \${SEDeA}_POSIX_SOURCE\${SEDeB}_POSIX_SOURCE\${SEDeC}1\${SEDeD}
  985.   "
  986.   }
  987.   
  988.     
  989.   {
  990.   test -n "$verbose" && \
  991. ! echo "    defining" _POSIX_1_SOURCE to be 2
  992. ! echo "#define" _POSIX_1_SOURCE 2 >> confdefs.h
  993.   DEFS="$DEFS -D_POSIX_1_SOURCE=2"
  994. ! SEDDEFS="${SEDDEFS}\${SEDdA}_POSIX_1_SOURCE\${SEDdB}_POSIX_1_SOURCE\${SEDdC}2\${SEDdD}
  995. ! \${SEDuA}_POSIX_1_SOURCE\${SEDuB}_POSIX_1_SOURCE\${SEDuC}2\${SEDuD}
  996. ! \${SEDeA}_POSIX_1_SOURCE\${SEDeB}_POSIX_1_SOURCE\${SEDeC}2\${SEDeD}
  997.   "
  998.   }
  999.   
  1000.     
  1001.   {
  1002.   test -n "$verbose" && \
  1003. ! echo "    defining _MINIX"
  1004. ! echo "#define" _MINIX 1 >> confdefs.h
  1005.   DEFS="$DEFS -D_MINIX=1"
  1006. ! SEDDEFS="${SEDDEFS}\${SEDdA}_MINIX\${SEDdB}_MINIX\${SEDdC}1\${SEDdD}
  1007. ! \${SEDuA}_MINIX\${SEDuB}_MINIX\${SEDuC}1\${SEDuD}
  1008. ! \${SEDeA}_MINIX\${SEDeB}_MINIX\${SEDeC}1\${SEDeD}
  1009.   "
  1010.   }
  1011.   
  1012.   fi
  1013.   
  1014. ! echo checking for POSIXized ISC
  1015. ! if test -d /etc/conf/kconfig.d &&
  1016. !   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1017.   then
  1018.     ISC=1 # If later tests want to check for ISC.
  1019.     
  1020.   {
  1021.   test -n "$verbose" && \
  1022. ! echo "    defining _POSIX_SOURCE"
  1023. ! echo "#define" _POSIX_SOURCE 1 >> confdefs.h
  1024.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  1025. ! SEDDEFS="${SEDDEFS}\${SEDdA}_POSIX_SOURCE\${SEDdB}_POSIX_SOURCE\${SEDdC}1\${SEDdD}
  1026. ! \${SEDuA}_POSIX_SOURCE\${SEDuB}_POSIX_SOURCE\${SEDuC}1\${SEDuD}
  1027. ! \${SEDeA}_POSIX_SOURCE\${SEDeB}_POSIX_SOURCE\${SEDeC}1\${SEDeD}
  1028.   "
  1029.   }
  1030.   
  1031. --- 556,610 ----
  1032.     
  1033.   {
  1034.   test -n "$verbose" && \
  1035. ! /bin/echo "    defining _POSIX_SOURCE"
  1036. ! /bin/echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  1037.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  1038. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_SOURCE\${ac_dB}_POSIX_SOURCE\${ac_dC}1\${ac_dD}
  1039. ! \${ac_uA}_POSIX_SOURCE\${ac_uB}_POSIX_SOURCE\${ac_uC}1\${ac_uD}
  1040. ! \${ac_eA}_POSIX_SOURCE\${ac_eB}_POSIX_SOURCE\${ac_eC}1\${ac_eD}
  1041.   "
  1042.   }
  1043.   
  1044.     
  1045.   {
  1046.   test -n "$verbose" && \
  1047. ! /bin/echo "    defining" _POSIX_1_SOURCE to be "2"
  1048. ! /bin/echo "#define" _POSIX_1_SOURCE "2" >> confdefs.h
  1049.   DEFS="$DEFS -D_POSIX_1_SOURCE=2"
  1050. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_1_SOURCE\${ac_dB}_POSIX_1_SOURCE\${ac_dC}2\${ac_dD}
  1051. ! \${ac_uA}_POSIX_1_SOURCE\${ac_uB}_POSIX_1_SOURCE\${ac_uC}2\${ac_uD}
  1052. ! \${ac_eA}_POSIX_1_SOURCE\${ac_eB}_POSIX_1_SOURCE\${ac_eC}2\${ac_eD}
  1053.   "
  1054.   }
  1055.   
  1056.     
  1057.   {
  1058.   test -n "$verbose" && \
  1059. ! /bin/echo "    defining _MINIX"
  1060. ! /bin/echo "#define" _MINIX "1" >> confdefs.h
  1061.   DEFS="$DEFS -D_MINIX=1"
  1062. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_MINIX\${ac_dB}_MINIX\${ac_dC}1\${ac_dD}
  1063. ! \${ac_uA}_MINIX\${ac_uB}_MINIX\${ac_uC}1\${ac_uD}
  1064. ! \${ac_eA}_MINIX\${ac_eB}_MINIX\${ac_eC}1\${ac_eD}
  1065.   "
  1066.   }
  1067.   
  1068.   fi
  1069.   
  1070. ! test -n "$silent" || /bin/echo "checking for POSIXized ISC"
  1071. ! if test -d /gnu/etc/conf/kconfig.d &&
  1072. !   grep _POSIX_VERSION /gnu/include/sys/unistd.h >/dev/null 2>&1
  1073.   then
  1074.     ISC=1 # If later tests want to check for ISC.
  1075.     
  1076.   {
  1077.   test -n "$verbose" && \
  1078. ! /bin/echo "    defining _POSIX_SOURCE"
  1079. ! /bin/echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  1080.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  1081. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_SOURCE\${ac_dB}_POSIX_SOURCE\${ac_dC}1\${ac_dD}
  1082. ! \${ac_uA}_POSIX_SOURCE\${ac_uB}_POSIX_SOURCE\${ac_uC}1\${ac_uD}
  1083. ! \${ac_eA}_POSIX_SOURCE\${ac_eB}_POSIX_SOURCE\${ac_eC}1\${ac_eD}
  1084.   "
  1085.   }
  1086.   
  1087. ***************
  1088. *** 392,399 ****
  1089.     fi
  1090.   fi
  1091.   
  1092. ! echo checking for return type of signal handlers
  1093. ! cat > conftest.c <<EOF
  1094.   #include "confdefs.h"
  1095.   #include <sys/types.h>
  1096.   #include <signal.h>
  1097. --- 615,622 ----
  1098.     fi
  1099.   fi
  1100.   
  1101. ! test -n "$silent" || /bin/echo "checking for return type of signal handlers"
  1102. ! cat > conftest.${ac_ext} <<EOF
  1103.   #include "confdefs.h"
  1104.   #include <sys/types.h>
  1105.   #include <signal.h>
  1106. ***************
  1107. *** 401,420 ****
  1108.   #undef signal
  1109.   #endif
  1110.   extern void (*signal ()) ();
  1111. ! int main() { exit(0); }
  1112. ! int t() { int i; }
  1113.   EOF
  1114. ! if eval $compile; then
  1115.     rm -rf conftest*
  1116.     
  1117.   {
  1118.   test -n "$verbose" && \
  1119. ! echo "    defining" RETSIGTYPE to be void
  1120. ! echo "#define" RETSIGTYPE void >> confdefs.h
  1121.   DEFS="$DEFS -DRETSIGTYPE=void"
  1122. ! SEDDEFS="${SEDDEFS}\${SEDdA}RETSIGTYPE\${SEDdB}RETSIGTYPE\${SEDdC}void\${SEDdD}
  1123. ! \${SEDuA}RETSIGTYPE\${SEDuB}RETSIGTYPE\${SEDuC}void\${SEDuD}
  1124. ! \${SEDeA}RETSIGTYPE\${SEDeB}RETSIGTYPE\${SEDeC}void\${SEDeD}
  1125.   "
  1126.   }
  1127.   
  1128. --- 624,643 ----
  1129.   #undef signal
  1130.   #endif
  1131.   extern void (*signal ()) ();
  1132. ! int main() { return 0; }
  1133. ! int t() { int i;; return 0; }
  1134.   EOF
  1135. ! if eval $ac_compile; then
  1136.     rm -rf conftest*
  1137.     
  1138.   {
  1139.   test -n "$verbose" && \
  1140. ! /bin/echo "    defining" RETSIGTYPE to be "void"
  1141. ! /bin/echo "#define" RETSIGTYPE "void" >> confdefs.h
  1142.   DEFS="$DEFS -DRETSIGTYPE=void"
  1143. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD}
  1144. ! \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
  1145. ! \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
  1146.   "
  1147.   }
  1148.   
  1149. ***************
  1150. *** 424,435 ****
  1151.     
  1152.   {
  1153.   test -n "$verbose" && \
  1154. ! echo "    defining" RETSIGTYPE to be int
  1155. ! echo "#define" RETSIGTYPE int >> confdefs.h
  1156.   DEFS="$DEFS -DRETSIGTYPE=int"
  1157. ! SEDDEFS="${SEDDEFS}\${SEDdA}RETSIGTYPE\${SEDdB}RETSIGTYPE\${SEDdC}int\${SEDdD}
  1158. ! \${SEDuA}RETSIGTYPE\${SEDuB}RETSIGTYPE\${SEDuC}int\${SEDuD}
  1159. ! \${SEDeA}RETSIGTYPE\${SEDeB}RETSIGTYPE\${SEDeC}int\${SEDeD}
  1160.   "
  1161.   }
  1162.   
  1163. --- 647,658 ----
  1164.     
  1165.   {
  1166.   test -n "$verbose" && \
  1167. ! /bin/echo "    defining" RETSIGTYPE to be "int"
  1168. ! /bin/echo "#define" RETSIGTYPE "int" >> confdefs.h
  1169.   DEFS="$DEFS -DRETSIGTYPE=int"
  1170. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
  1171. ! \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
  1172. ! \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
  1173.   "
  1174.   }
  1175.   
  1176. ***************
  1177. *** 437,446 ****
  1178.   rm -f conftest*
  1179.   
  1180.   
  1181. ! echo checking for size_t in sys/types.h
  1182. ! echo '#include "confdefs.h"
  1183. ! #include <sys/types.h>' > conftest.c
  1184. ! eval "$CPP conftest.c > conftest.out 2>&1"
  1185.   if egrep "size_t" conftest.out >/dev/null 2>&1; then
  1186.     :
  1187.   else
  1188. --- 660,669 ----
  1189.   rm -f conftest*
  1190.   
  1191.   
  1192. ! test -n "$silent" || /bin/echo "checking for size_t in sys/types.h"
  1193. ! /bin/echo '#include "confdefs.h"
  1194. ! #include <sys/types.h>' > conftest.${ac_ext}
  1195. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1196.   if egrep "size_t" conftest.out >/dev/null 2>&1; then
  1197.     :
  1198.   else
  1199. ***************
  1200. *** 448,466 ****
  1201.     
  1202.   {
  1203.   test -n "$verbose" && \
  1204. ! echo "    defining" size_t to be unsigned
  1205. ! echo "#define" size_t unsigned >> confdefs.h
  1206.   DEFS="$DEFS -Dsize_t=unsigned"
  1207. ! SEDDEFS="${SEDDEFS}\${SEDdA}size_t\${SEDdB}size_t\${SEDdC}unsigned\${SEDdD}
  1208. ! \${SEDuA}size_t\${SEDuB}size_t\${SEDuC}unsigned\${SEDuD}
  1209. ! \${SEDeA}size_t\${SEDeB}size_t\${SEDeC}unsigned\${SEDeD}
  1210.   "
  1211.   }
  1212.   
  1213.   fi
  1214.   rm -f conftest*
  1215.   
  1216. ! prog='/* Ultrix mips cc rejects this.  */
  1217.   typedef int charset[2]; const charset x;
  1218.   /* SunOS 4.1.1 cc rejects this.  */
  1219.   char const *const *ccp;
  1220. --- 671,689 ----
  1221.     
  1222.   {
  1223.   test -n "$verbose" && \
  1224. ! /bin/echo "    defining" size_t to be "unsigned"
  1225. ! /bin/echo "#define" size_t "unsigned" >> confdefs.h
  1226.   DEFS="$DEFS -Dsize_t=unsigned"
  1227. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}size_t\${ac_dB}size_t\${ac_dC}unsigned\${ac_dD}
  1228. ! \${ac_uA}size_t\${ac_uB}size_t\${ac_uC}unsigned\${ac_uD}
  1229. ! \${ac_eA}size_t\${ac_eB}size_t\${ac_eC}unsigned\${ac_eD}
  1230.   "
  1231.   }
  1232.   
  1233.   fi
  1234.   rm -f conftest*
  1235.   
  1236. ! ac_prog='/* Ultrix mips cc rejects this.  */
  1237.   typedef int charset[2]; const charset x;
  1238.   /* SunOS 4.1.1 cc rejects this.  */
  1239.   char const *const *ccp;
  1240. ***************
  1241. *** 498,563 ****
  1242.   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1243.     const int foo = 10;
  1244.   }'
  1245. ! echo checking for lack of working const
  1246. ! cat > conftest.c <<EOF
  1247.   #include "confdefs.h"
  1248.   
  1249. ! int main() { exit(0); }
  1250. ! int t() { $prog }
  1251.   EOF
  1252. ! if eval $compile; then
  1253.     :
  1254.   else
  1255.     rm -rf conftest*
  1256.     
  1257.   {
  1258.   test -n "$verbose" && \
  1259. ! echo "    defining" const to be empty
  1260. ! echo "#define" const  >> confdefs.h
  1261.   DEFS="$DEFS -Dconst="
  1262. ! SEDDEFS="${SEDDEFS}\${SEDdA}const\${SEDdB}const\${SEDdC}\${SEDdD}
  1263. ! \${SEDuA}const\${SEDuB}const\${SEDuC}\${SEDuD}
  1264. ! \${SEDeA}const\${SEDeB}const\${SEDeC}\${SEDeD}
  1265.   "
  1266.   }
  1267.   
  1268.   fi
  1269.   rm -f conftest*
  1270.   
  1271. ! echo checking for long double
  1272.   if test -n "$GCC"; then
  1273.   
  1274.   {
  1275.   test -n "$verbose" && \
  1276. ! echo "    defining HAVE_LONG_DOUBLE"
  1277. ! echo "#define" HAVE_LONG_DOUBLE 1 >> confdefs.h
  1278.   DEFS="$DEFS -DHAVE_LONG_DOUBLE=1"
  1279. ! SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_LONG_DOUBLE\${SEDdB}HAVE_LONG_DOUBLE\${SEDdC}1\${SEDdD}
  1280. ! \${SEDuA}HAVE_LONG_DOUBLE\${SEDuB}HAVE_LONG_DOUBLE\${SEDuC}1\${SEDuD}
  1281. ! \${SEDeA}HAVE_LONG_DOUBLE\${SEDeB}HAVE_LONG_DOUBLE\${SEDeC}1\${SEDeD}
  1282.   "
  1283.   }
  1284.   
  1285.   else
  1286. ! cat > conftest.c <<EOF
  1287.   #include "confdefs.h"
  1288.   int main() {
  1289. ! /* The Stardent Vistra knows sizeof(long double), but doesn't support it.  */
  1290.   long double foo = 0.0;
  1291.   /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
  1292.   exit(sizeof(long double) < sizeof(double)); }
  1293.   EOF
  1294. ! eval $compile
  1295.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1296.     
  1297.   {
  1298.   test -n "$verbose" && \
  1299. ! echo "    defining HAVE_LONG_DOUBLE"
  1300. ! echo "#define" HAVE_LONG_DOUBLE 1 >> confdefs.h
  1301.   DEFS="$DEFS -DHAVE_LONG_DOUBLE=1"
  1302. ! SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_LONG_DOUBLE\${SEDdB}HAVE_LONG_DOUBLE\${SEDdC}1\${SEDdD}
  1303. ! \${SEDuA}HAVE_LONG_DOUBLE\${SEDuB}HAVE_LONG_DOUBLE\${SEDuC}1\${SEDuD}
  1304. ! \${SEDeA}HAVE_LONG_DOUBLE\${SEDeB}HAVE_LONG_DOUBLE\${SEDeC}1\${SEDeD}
  1305.   "
  1306.   }
  1307.   
  1308. --- 721,786 ----
  1309.   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1310.     const int foo = 10;
  1311.   }'
  1312. ! test -n "$silent" || /bin/echo "checking for lack of working const"
  1313. ! cat > conftest.${ac_ext} <<EOF
  1314.   #include "confdefs.h"
  1315.   
  1316. ! int main() { return 0; }
  1317. ! int t() { $ac_prog; return 0; }
  1318.   EOF
  1319. ! if eval $ac_compile; then
  1320.     :
  1321.   else
  1322.     rm -rf conftest*
  1323.     
  1324.   {
  1325.   test -n "$verbose" && \
  1326. ! /bin/echo "    defining" const to be empty
  1327. ! /bin/echo "#define" const "" >> confdefs.h
  1328.   DEFS="$DEFS -Dconst="
  1329. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}const\${ac_dB}const\${ac_dC}\${ac_dD}
  1330. ! \${ac_uA}const\${ac_uB}const\${ac_uC}\${ac_uD}
  1331. ! \${ac_eA}const\${ac_eB}const\${ac_eC}\${ac_eD}
  1332.   "
  1333.   }
  1334.   
  1335.   fi
  1336.   rm -f conftest*
  1337.   
  1338. ! test -n "$silent" || /bin/echo "checking for long double"
  1339.   if test -n "$GCC"; then
  1340.   
  1341.   {
  1342.   test -n "$verbose" && \
  1343. ! /bin/echo "    defining HAVE_LONG_DOUBLE"
  1344. ! /bin/echo "#define" HAVE_LONG_DOUBLE "1" >> confdefs.h
  1345.   DEFS="$DEFS -DHAVE_LONG_DOUBLE=1"
  1346. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LONG_DOUBLE\${ac_dB}HAVE_LONG_DOUBLE\${ac_dC}1\${ac_dD}
  1347. ! \${ac_uA}HAVE_LONG_DOUBLE\${ac_uB}HAVE_LONG_DOUBLE\${ac_uC}1\${ac_uD}
  1348. ! \${ac_eA}HAVE_LONG_DOUBLE\${ac_eB}HAVE_LONG_DOUBLE\${ac_eC}1\${ac_eD}
  1349.   "
  1350.   }
  1351.   
  1352.   else
  1353. ! cat > conftest.${ac_ext} <<EOF
  1354.   #include "confdefs.h"
  1355.   int main() {
  1356. ! /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
  1357.   long double foo = 0.0;
  1358.   /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
  1359.   exit(sizeof(long double) < sizeof(double)); }
  1360.   EOF
  1361. ! eval $ac_compile
  1362.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1363.     
  1364.   {
  1365.   test -n "$verbose" && \
  1366. ! /bin/echo "    defining HAVE_LONG_DOUBLE"
  1367. ! /bin/echo "#define" HAVE_LONG_DOUBLE "1" >> confdefs.h
  1368.   DEFS="$DEFS -DHAVE_LONG_DOUBLE=1"
  1369. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LONG_DOUBLE\${ac_dB}HAVE_LONG_DOUBLE\${ac_dC}1\${ac_dD}
  1370. ! \${ac_uA}HAVE_LONG_DOUBLE\${ac_uB}HAVE_LONG_DOUBLE\${ac_uC}1\${ac_uD}
  1371. ! \${ac_eA}HAVE_LONG_DOUBLE\${ac_eB}HAVE_LONG_DOUBLE\${ac_eC}1\${ac_eD}
  1372.   "
  1373.   }
  1374.   
  1375. ***************
  1376. *** 566,613 ****
  1377.   rm -fr conftest*
  1378.   fi
  1379.   
  1380. ! echo checking for 64-bit long ints
  1381. ! cat > conftest.c <<EOF
  1382.   #include "confdefs.h"
  1383. ! main() { exit(sizeof(long int) != 8); }
  1384.   EOF
  1385. ! eval $compile
  1386.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1387. !   
  1388.   {
  1389.   test -n "$verbose" && \
  1390. ! echo "    defining LONG_64_BITS"
  1391. ! echo "#define" LONG_64_BITS 1 >> confdefs.h
  1392. ! DEFS="$DEFS -DLONG_64_BITS=1"
  1393. ! SEDDEFS="${SEDDEFS}\${SEDdA}LONG_64_BITS\${SEDdB}LONG_64_BITS\${SEDdC}1\${SEDdD}
  1394. ! \${SEDuA}LONG_64_BITS\${SEDuB}LONG_64_BITS\${SEDuC}1\${SEDuD}
  1395. ! \${SEDeA}LONG_64_BITS\${SEDeB}LONG_64_BITS\${SEDeC}1\${SEDeD}
  1396.   "
  1397.   }
  1398.   
  1399. ! fi
  1400. ! rm -fr conftest*
  1401. ! echo checking for ANSI C header files
  1402. ! cat > conftest.c <<EOF
  1403.   #include "confdefs.h"
  1404.   #include <stdlib.h>
  1405.   #include <stdarg.h>
  1406.   #include <string.h>
  1407.   #include <float.h>
  1408.   EOF
  1409. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1410. ! if test -z "$err"; then
  1411.     rm -rf conftest*
  1412.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1413. ! echo '#include "confdefs.h"
  1414. ! #include <string.h>' > conftest.c
  1415. ! eval "$CPP conftest.c > conftest.out 2>&1"
  1416.   if egrep "memchr" conftest.out >/dev/null 2>&1; then
  1417.     rm -rf conftest*
  1418.     # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1419. ! cat > conftest.c <<EOF
  1420.   #include "confdefs.h"
  1421.   #include <ctype.h>
  1422.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1423. --- 789,846 ----
  1424.   rm -fr conftest*
  1425.   fi
  1426.   
  1427. ! test -n "$silent" || /bin/echo "checking size of long"
  1428. ! ac_size=0
  1429. ! cat > conftest.${ac_ext} <<EOF
  1430.   #include "confdefs.h"
  1431. ! #include <stdio.h>
  1432. ! main()
  1433. ! {
  1434. !   FILE *f=fopen("conftestval", "w");
  1435. !   if (!f) exit(1);
  1436. !   fprintf(f, "%d\n", sizeof(long));
  1437. !   exit(0);
  1438. ! }
  1439.   EOF
  1440. ! eval $ac_compile
  1441.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1442. !   ac_size=`cat conftestval`
  1443. ! fi
  1444. ! rm -fr conftest*
  1445.   {
  1446.   test -n "$verbose" && \
  1447. ! /bin/echo "    defining" SIZEOF_LONG to be "$ac_size"
  1448. ! /bin/echo "#define" SIZEOF_LONG "$ac_size" >> confdefs.h
  1449. ! DEFS="$DEFS -DSIZEOF_LONG=$ac_size"
  1450. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_LONG\${ac_dB}SIZEOF_LONG\${ac_dC}$ac_size\${ac_dD}
  1451. ! \${ac_uA}SIZEOF_LONG\${ac_uB}SIZEOF_LONG\${ac_uC}$ac_size\${ac_uD}
  1452. ! \${ac_eA}SIZEOF_LONG\${ac_eB}SIZEOF_LONG\${ac_eC}$ac_size\${ac_eD}
  1453.   "
  1454.   }
  1455.   
  1456. ! test -n "$silent" || /bin/echo "checking for ANSI C header files"
  1457. ! cat > conftest.${ac_ext} <<EOF
  1458.   #include "confdefs.h"
  1459.   #include <stdlib.h>
  1460.   #include <stdarg.h>
  1461.   #include <string.h>
  1462.   #include <float.h>
  1463.   EOF
  1464. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1465. ! # the parens.
  1466. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1467. ! if test -z "$ac_err"; then
  1468.     rm -rf conftest*
  1469.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1470. ! /bin/echo '#include "confdefs.h"
  1471. ! #include <string.h>' > conftest.${ac_ext}
  1472. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1473.   if egrep "memchr" conftest.out >/dev/null 2>&1; then
  1474.     rm -rf conftest*
  1475.     # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1476. ! cat > conftest.${ac_ext} <<EOF
  1477.   #include "confdefs.h"
  1478.   #include <ctype.h>
  1479.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1480. ***************
  1481. *** 618,639 ****
  1482.   exit (0); }
  1483.   
  1484.   EOF
  1485. ! eval $compile
  1486.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1487.     
  1488.   {
  1489.   test -n "$verbose" && \
  1490. ! echo "    defining STDC_HEADERS"
  1491. ! echo "#define" STDC_HEADERS 1 >> confdefs.h
  1492.   DEFS="$DEFS -DSTDC_HEADERS=1"
  1493. ! SEDDEFS="${SEDDEFS}\${SEDdA}STDC_HEADERS\${SEDdB}STDC_HEADERS\${SEDdC}1\${SEDdD}
  1494. ! \${SEDuA}STDC_HEADERS\${SEDuB}STDC_HEADERS\${SEDuC}1\${SEDuD}
  1495. ! \${SEDeA}STDC_HEADERS\${SEDeB}STDC_HEADERS\${SEDeC}1\${SEDeD}
  1496.   "
  1497.   }
  1498.   
  1499.   
  1500.   fi
  1501.   rm -fr conftest*
  1502.   
  1503.   fi
  1504. --- 851,882 ----
  1505.   exit (0); }
  1506.   
  1507.   EOF
  1508. ! eval $ac_compile
  1509.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1510. +   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1511. + /bin/echo '#include "confdefs.h"
  1512. + #include <stdlib.h>' > conftest.${ac_ext}
  1513. + eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1514. + if egrep "free" conftest.out >/dev/null 2>&1; then
  1515. +   rm -rf conftest*
  1516.     
  1517.   {
  1518.   test -n "$verbose" && \
  1519. ! /bin/echo "    defining STDC_HEADERS"
  1520. ! /bin/echo "#define" STDC_HEADERS "1" >> confdefs.h
  1521.   DEFS="$DEFS -DSTDC_HEADERS=1"
  1522. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD}
  1523. ! \${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
  1524. ! \${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
  1525.   "
  1526.   }
  1527.   
  1528.   
  1529.   fi
  1530. + rm -f conftest*
  1531. + fi
  1532.   rm -fr conftest*
  1533.   
  1534.   fi
  1535. ***************
  1536. *** 643,650 ****
  1537.   fi
  1538.   rm -f conftest*
  1539.   
  1540. ! echo checking byte ordering
  1541. ! cat > conftest.c <<EOF
  1542.   #include "confdefs.h"
  1543.   main () {
  1544.     /* Are we little or big endian?  From Harbison&Steele.  */
  1545. --- 886,893 ----
  1546.   fi
  1547.   rm -f conftest*
  1548.   
  1549. ! test -n "$silent" || /bin/echo "checking byte ordering"
  1550. ! cat > conftest.${ac_ext} <<EOF
  1551.   #include "confdefs.h"
  1552.   main () {
  1553.     /* Are we little or big endian?  From Harbison&Steele.  */
  1554. ***************
  1555. *** 657,683 ****
  1556.     exit (u.c[sizeof (long) - 1] == 1);
  1557.   }
  1558.   EOF
  1559. ! eval $compile
  1560.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1561.     :
  1562.   else
  1563.     
  1564.   {
  1565.   test -n "$verbose" && \
  1566. ! echo "    defining WORDS_BIGENDIAN"
  1567. ! echo "#define" WORDS_BIGENDIAN 1 >> confdefs.h
  1568.   DEFS="$DEFS -DWORDS_BIGENDIAN=1"
  1569. ! SEDDEFS="${SEDDEFS}\${SEDdA}WORDS_BIGENDIAN\${SEDdB}WORDS_BIGENDIAN\${SEDdC}1\${SEDdD}
  1570. ! \${SEDuA}WORDS_BIGENDIAN\${SEDuB}WORDS_BIGENDIAN\${SEDuC}1\${SEDuD}
  1571. ! \${SEDeA}WORDS_BIGENDIAN\${SEDeB}WORDS_BIGENDIAN\${SEDeC}1\${SEDeD}
  1572.   "
  1573.   }
  1574.   
  1575.   fi
  1576.   rm -fr conftest*
  1577.   
  1578. ! echo checking for broken stat file mode macros
  1579. ! cat > conftest.c <<EOF
  1580.   #include "confdefs.h"
  1581.   #include <sys/types.h>
  1582.   #include <sys/stat.h>
  1583. --- 900,926 ----
  1584.     exit (u.c[sizeof (long) - 1] == 1);
  1585.   }
  1586.   EOF
  1587. ! eval $ac_compile
  1588.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1589.     :
  1590.   else
  1591.     
  1592.   {
  1593.   test -n "$verbose" && \
  1594. ! /bin/echo "    defining WORDS_BIGENDIAN"
  1595. ! /bin/echo "#define" WORDS_BIGENDIAN "1" >> confdefs.h
  1596.   DEFS="$DEFS -DWORDS_BIGENDIAN=1"
  1597. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}WORDS_BIGENDIAN\${ac_dB}WORDS_BIGENDIAN\${ac_dC}1\${ac_dD}
  1598. ! \${ac_uA}WORDS_BIGENDIAN\${ac_uB}WORDS_BIGENDIAN\${ac_uC}1\${ac_uD}
  1599. ! \${ac_eA}WORDS_BIGENDIAN\${ac_eB}WORDS_BIGENDIAN\${ac_eC}1\${ac_eD}
  1600.   "
  1601.   }
  1602.   
  1603.   fi
  1604.   rm -fr conftest*
  1605.   
  1606. ! test -n "$silent" || /bin/echo "checking for broken stat file mode macros"
  1607. ! cat > conftest.${ac_ext} <<EOF
  1608.   #include "confdefs.h"
  1609.   #include <sys/types.h>
  1610.   #include <sys/stat.h>
  1611. ***************
  1612. *** 703,720 ****
  1613.   #endif /* S_ISSOCK */
  1614.   
  1615.   EOF
  1616. ! eval "$CPP conftest.c > conftest.out 2>&1"
  1617.   if egrep "You lose" conftest.out >/dev/null 2>&1; then
  1618.     rm -rf conftest*
  1619.     
  1620.   {
  1621.   test -n "$verbose" && \
  1622. ! echo "    defining STAT_MACROS_BROKEN"
  1623. ! echo "#define" STAT_MACROS_BROKEN 1 >> confdefs.h
  1624.   DEFS="$DEFS -DSTAT_MACROS_BROKEN=1"
  1625. ! SEDDEFS="${SEDDEFS}\${SEDdA}STAT_MACROS_BROKEN\${SEDdB}STAT_MACROS_BROKEN\${SEDdC}1\${SEDdD}
  1626. ! \${SEDuA}STAT_MACROS_BROKEN\${SEDuB}STAT_MACROS_BROKEN\${SEDuC}1\${SEDuD}
  1627. ! \${SEDeA}STAT_MACROS_BROKEN\${SEDeB}STAT_MACROS_BROKEN\${SEDeC}1\${SEDeD}
  1628.   "
  1629.   }
  1630.   
  1631. --- 946,963 ----
  1632.   #endif /* S_ISSOCK */
  1633.   
  1634.   EOF
  1635. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1636.   if egrep "You lose" conftest.out >/dev/null 2>&1; then
  1637.     rm -rf conftest*
  1638.     
  1639.   {
  1640.   test -n "$verbose" && \
  1641. ! /bin/echo "    defining STAT_MACROS_BROKEN"
  1642. ! /bin/echo "#define" STAT_MACROS_BROKEN "1" >> confdefs.h
  1643.   DEFS="$DEFS -DSTAT_MACROS_BROKEN=1"
  1644. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STAT_MACROS_BROKEN\${ac_dB}STAT_MACROS_BROKEN\${ac_dC}1\${ac_dD}
  1645. ! \${ac_uA}STAT_MACROS_BROKEN\${ac_uB}STAT_MACROS_BROKEN\${ac_uC}1\${ac_uD}
  1646. ! \${ac_eA}STAT_MACROS_BROKEN\${ac_eB}STAT_MACROS_BROKEN\${ac_eC}1\${ac_eD}
  1647.   "
  1648.   }
  1649.   
  1650. ***************
  1651. *** 722,747 ****
  1652.   fi
  1653.   rm -f conftest*
  1654.   
  1655. ! for hdr in limits.h string.h memory.h fcntl.h unistd.h
  1656.   do
  1657. ! trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  1658. ! echo checking for ${hdr}
  1659. ! cat > conftest.c <<EOF
  1660.   #include "confdefs.h"
  1661. ! #include <${hdr}>
  1662.   EOF
  1663. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1664. ! if test -z "$err"; then
  1665.     rm -rf conftest*
  1666.     
  1667.   {
  1668.   test -n "$verbose" && \
  1669. ! echo "    defining ${trhdr}"
  1670. ! echo "#define" ${trhdr} 1 >> confdefs.h
  1671. ! DEFS="$DEFS -D${trhdr}=1"
  1672. ! SEDDEFS="${SEDDEFS}\${SEDdA}${trhdr}\${SEDdB}${trhdr}\${SEDdC}1\${SEDdD}
  1673. ! \${SEDuA}${trhdr}\${SEDuB}${trhdr}\${SEDuC}1\${SEDuD}
  1674. ! \${SEDeA}${trhdr}\${SEDeB}${trhdr}\${SEDeC}1\${SEDeD}
  1675.   "
  1676.   }
  1677.   
  1678. --- 965,992 ----
  1679.   fi
  1680.   rm -f conftest*
  1681.   
  1682. ! for ac_hdr in limits.h string.h memory.h fcntl.h unistd.h
  1683.   do
  1684. ! ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  1685. ! test -n "$silent" || /bin/echo "checking for ${ac_hdr}"
  1686. ! cat > conftest.${ac_ext} <<EOF
  1687.   #include "confdefs.h"
  1688. ! #include <${ac_hdr}>
  1689.   EOF
  1690. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1691. ! # the parens.
  1692. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1693. ! if test -z "$ac_err"; then
  1694.     rm -rf conftest*
  1695.     
  1696.   {
  1697.   test -n "$verbose" && \
  1698. ! /bin/echo "    defining ${ac_tr_hdr}"
  1699. ! /bin/echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  1700. ! DEFS="$DEFS -D${ac_tr_hdr}=1"
  1701. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
  1702. ! \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
  1703. ! \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
  1704.   "
  1705.   }
  1706.   
  1707. ***************
  1708. *** 750,787 ****
  1709.   rm -f conftest*
  1710.   done
  1711.   
  1712. ! for func in bcopy memcmp memset stpcpy strtoul
  1713.   do
  1714. ! echo checking for ${func}
  1715. ! cat > conftest.c <<EOF
  1716.   #include "confdefs.h"
  1717.   #include <ctype.h>
  1718. ! int main() { exit(0); }
  1719.   int t() { 
  1720.   /* The GNU C library defines this for functions which it implements
  1721.       to always fail with ENOSYS.  Some functions are actually named
  1722.       something starting with __ and the normal name is an alias.  */
  1723. ! #if defined (__stub_${func}) || defined (__stub___${func})
  1724.   choke me
  1725.   #else
  1726.   /* Override any gcc2 internal prototype to avoid an error.  */
  1727. ! extern char ${func}(); ${func}();
  1728.   #endif
  1729. !  }
  1730.   EOF
  1731. ! if eval $compile; then
  1732.     :
  1733.   else
  1734.     rm -rf conftest*
  1735. !   LIBOBJS="$LIBOBJS ${func}.o"
  1736. ! test -n "$verbose" && echo "    using ${func}.o instead"
  1737.   fi
  1738.   rm -f conftest*
  1739.   
  1740.   done
  1741.   
  1742.   echo "checking if memcmp is 8-bit clean"
  1743. ! cat > conftest.c <<EOF
  1744.   #include "confdefs.h"
  1745.   
  1746.   main()
  1747. --- 995,1032 ----
  1748.   rm -f conftest*
  1749.   done
  1750.   
  1751. ! for ac_func in bcopy memcmp memset stpcpy strtoul
  1752.   do
  1753. ! test -n "$silent" || /bin/echo "checking for ${ac_func}"
  1754. ! cat > conftest.${ac_ext} <<EOF
  1755.   #include "confdefs.h"
  1756.   #include <ctype.h>
  1757. ! int main() { return 0; }
  1758.   int t() { 
  1759.   /* The GNU C library defines this for functions which it implements
  1760.       to always fail with ENOSYS.  Some functions are actually named
  1761.       something starting with __ and the normal name is an alias.  */
  1762. ! #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  1763.   choke me
  1764.   #else
  1765.   /* Override any gcc2 internal prototype to avoid an error.  */
  1766. ! extern char ${ac_func}(); ${ac_func}();
  1767.   #endif
  1768. ! ; return 0; }
  1769.   EOF
  1770. ! if eval $ac_compile; then
  1771.     :
  1772.   else
  1773.     rm -rf conftest*
  1774. !   LIBOBJS="$LIBOBJS ${ac_func}.o"
  1775. ! test -n "$verbose" && /bin/echo "    using ${ac_func}.o instead"
  1776.   fi
  1777.   rm -f conftest*
  1778.   
  1779.   done
  1780.   
  1781.   echo "checking if memcmp is 8-bit clean"
  1782. ! cat > conftest.${ac_ext} <<EOF
  1783.   #include "confdefs.h"
  1784.   
  1785.   main()
  1786. ***************
  1787. *** 791,797 ****
  1788.   }
  1789.   
  1790.   EOF
  1791. ! eval $compile
  1792.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1793.     
  1794.   test -n "$verbose" && echo "    memcmp is 8-bit clean"
  1795. --- 1036,1042 ----
  1796.   }
  1797.   
  1798.   EOF
  1799. ! eval $ac_compile
  1800.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1801.     
  1802.   test -n "$verbose" && echo "    memcmp is 8-bit clean"
  1803. ***************
  1804. *** 807,842 ****
  1805.   
  1806.   fi
  1807.   rm -fr conftest*
  1808. ! for func in strerror
  1809.   do
  1810. ! trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
  1811. ! echo checking for ${func}
  1812. ! cat > conftest.c <<EOF
  1813.   #include "confdefs.h"
  1814.   #include <ctype.h>
  1815. ! int main() { exit(0); }
  1816.   int t() { 
  1817.   /* The GNU C library defines this for functions which it implements
  1818.       to always fail with ENOSYS.  Some functions are actually named
  1819.       something starting with __ and the normal name is an alias.  */
  1820. ! #if defined (__stub_${func}) || defined (__stub___${func})
  1821.   choke me
  1822.   #else
  1823.   /* Override any gcc2 internal prototype to avoid an error.  */
  1824. ! extern char ${func}(); ${func}();
  1825.   #endif
  1826. !  }
  1827.   EOF
  1828. ! if eval $compile; then
  1829.     rm -rf conftest*
  1830.     {
  1831.   test -n "$verbose" && \
  1832. ! echo "    defining ${trfunc}"
  1833. ! echo "#define" ${trfunc} 1 >> confdefs.h
  1834. ! DEFS="$DEFS -D${trfunc}=1"
  1835. ! SEDDEFS="${SEDDEFS}\${SEDdA}${trfunc}\${SEDdB}${trfunc}\${SEDdC}1\${SEDdD}
  1836. ! \${SEDuA}${trfunc}\${SEDuB}${trfunc}\${SEDuC}1\${SEDuD}
  1837. ! \${SEDeA}${trfunc}\${SEDeB}${trfunc}\${SEDeC}1\${SEDeD}
  1838.   "
  1839.   }
  1840.   
  1841. --- 1052,1087 ----
  1842.   
  1843.   fi
  1844.   rm -fr conftest*
  1845. ! for ac_func in strerror
  1846.   do
  1847. ! ac_tr_func=HAVE_`/bin/echo $ac_func | tr '[a-z]' '[A-Z]'`
  1848. ! test -n "$silent" || /bin/echo "checking for ${ac_func}"
  1849. ! cat > conftest.${ac_ext} <<EOF
  1850.   #include "confdefs.h"
  1851.   #include <ctype.h>
  1852. ! int main() { return 0; }
  1853.   int t() { 
  1854.   /* The GNU C library defines this for functions which it implements
  1855.       to always fail with ENOSYS.  Some functions are actually named
  1856.       something starting with __ and the normal name is an alias.  */
  1857. ! #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  1858.   choke me
  1859.   #else
  1860.   /* Override any gcc2 internal prototype to avoid an error.  */
  1861. ! extern char ${ac_func}(); ${ac_func}();
  1862.   #endif
  1863. ! ; return 0; }
  1864.   EOF
  1865. ! if eval $ac_compile; then
  1866.     rm -rf conftest*
  1867.     {
  1868.   test -n "$verbose" && \
  1869. ! /bin/echo "    defining ${ac_tr_func}"
  1870. ! /bin/echo "#define" ${ac_tr_func} "1" >> confdefs.h
  1871. ! DEFS="$DEFS -D${ac_tr_func}=1"
  1872. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
  1873. ! \${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
  1874. ! \${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
  1875.   "
  1876.   }
  1877.   
  1878. ***************
  1879. *** 845,897 ****
  1880.   rm -f conftest*
  1881.   done
  1882.   
  1883. ! echo checking for vprintf
  1884. ! cat > conftest.c <<EOF
  1885.   #include "confdefs.h"
  1886.   
  1887. ! int main() { exit(0); }
  1888. ! int t() { vprintf(); }
  1889.   EOF
  1890. ! if eval $compile; then
  1891.     rm -rf conftest*
  1892.     
  1893.   {
  1894.   test -n "$verbose" && \
  1895. ! echo "    defining HAVE_VPRINTF"
  1896. ! echo "#define" HAVE_VPRINTF 1 >> confdefs.h
  1897.   DEFS="$DEFS -DHAVE_VPRINTF=1"
  1898. ! SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_VPRINTF\${SEDdB}HAVE_VPRINTF\${SEDdC}1\${SEDdD}
  1899. ! \${SEDuA}HAVE_VPRINTF\${SEDuB}HAVE_VPRINTF\${SEDuC}1\${SEDuD}
  1900. ! \${SEDeA}HAVE_VPRINTF\${SEDeB}HAVE_VPRINTF\${SEDeC}1\${SEDeD}
  1901.   "
  1902.   }
  1903.   
  1904.   
  1905.   else
  1906.     rm -rf conftest*
  1907. !   vprintf_missing=1
  1908.   fi
  1909.   rm -f conftest*
  1910.   
  1911. ! if test -n "$vprintf_missing"; then
  1912. ! echo checking for _doprnt
  1913. ! cat > conftest.c <<EOF
  1914.   #include "confdefs.h"
  1915.   
  1916. ! int main() { exit(0); }
  1917. ! int t() { _doprnt(); }
  1918.   EOF
  1919. ! if eval $compile; then
  1920.     rm -rf conftest*
  1921.     
  1922.   {
  1923.   test -n "$verbose" && \
  1924. ! echo "    defining HAVE_DOPRNT"
  1925. ! echo "#define" HAVE_DOPRNT 1 >> confdefs.h
  1926.   DEFS="$DEFS -DHAVE_DOPRNT=1"
  1927. ! SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_DOPRNT\${SEDdB}HAVE_DOPRNT\${SEDdC}1\${SEDdD}
  1928. ! \${SEDuA}HAVE_DOPRNT\${SEDuB}HAVE_DOPRNT\${SEDuC}1\${SEDuD}
  1929. ! \${SEDeA}HAVE_DOPRNT\${SEDeB}HAVE_DOPRNT\${SEDeC}1\${SEDeD}
  1930.   "
  1931.   }
  1932.   
  1933. --- 1090,1142 ----
  1934.   rm -f conftest*
  1935.   done
  1936.   
  1937. ! test -n "$silent" || /bin/echo "checking for vprintf"
  1938. ! cat > conftest.${ac_ext} <<EOF
  1939.   #include "confdefs.h"
  1940.   
  1941. ! int main() { return 0; }
  1942. ! int t() { vprintf();; return 0; }
  1943.   EOF
  1944. ! if eval $ac_compile; then
  1945.     rm -rf conftest*
  1946.     
  1947.   {
  1948.   test -n "$verbose" && \
  1949. ! /bin/echo "    defining HAVE_VPRINTF"
  1950. ! /bin/echo "#define" HAVE_VPRINTF "1" >> confdefs.h
  1951.   DEFS="$DEFS -DHAVE_VPRINTF=1"
  1952. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_VPRINTF\${ac_dB}HAVE_VPRINTF\${ac_dC}1\${ac_dD}
  1953. ! \${ac_uA}HAVE_VPRINTF\${ac_uB}HAVE_VPRINTF\${ac_uC}1\${ac_uD}
  1954. ! \${ac_eA}HAVE_VPRINTF\${ac_eB}HAVE_VPRINTF\${ac_eC}1\${ac_eD}
  1955.   "
  1956.   }
  1957.   
  1958.   
  1959.   else
  1960.     rm -rf conftest*
  1961. !   ac_vprintf_missing=1
  1962.   fi
  1963.   rm -f conftest*
  1964.   
  1965. ! if test -n "$ac_vprintf_missing"; then
  1966. ! test -n "$silent" || /bin/echo "checking for _doprnt"
  1967. ! cat > conftest.${ac_ext} <<EOF
  1968.   #include "confdefs.h"
  1969.   
  1970. ! int main() { return 0; }
  1971. ! int t() { _doprnt();; return 0; }
  1972.   EOF
  1973. ! if eval $ac_compile; then
  1974.     rm -rf conftest*
  1975.     
  1976.   {
  1977.   test -n "$verbose" && \
  1978. ! /bin/echo "    defining HAVE_DOPRNT"
  1979. ! /bin/echo "#define" HAVE_DOPRNT "1" >> confdefs.h
  1980.   DEFS="$DEFS -DHAVE_DOPRNT=1"
  1981. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DOPRNT\${ac_dB}HAVE_DOPRNT\${ac_dC}1\${ac_dD}
  1982. ! \${ac_uA}HAVE_DOPRNT\${ac_uB}HAVE_DOPRNT\${ac_uC}1\${ac_uD}
  1983. ! \${ac_eA}HAVE_DOPRNT\${ac_eB}HAVE_DOPRNT\${ac_eC}1\${ac_eD}
  1984.   "
  1985.   }
  1986.   
  1987. ***************
  1988. *** 903,926 ****
  1989.   
  1990.   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1991.   # for constant arguments.  Useless!
  1992. ! echo checking for working alloca.h
  1993. ! cat > conftest.c <<EOF
  1994.   #include "confdefs.h"
  1995.   #include <alloca.h>
  1996. ! int main() { exit(0); }
  1997. ! int t() { char *p = alloca(2 * sizeof(int)); }
  1998.   EOF
  1999. ! if eval $compile; then
  2000.     rm -rf conftest*
  2001.     
  2002.   {
  2003.   test -n "$verbose" && \
  2004. ! echo "    defining HAVE_ALLOCA_H"
  2005. ! echo "#define" HAVE_ALLOCA_H 1 >> confdefs.h
  2006.   DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  2007. ! SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_ALLOCA_H\${SEDdB}HAVE_ALLOCA_H\${SEDdC}1\${SEDdD}
  2008. ! \${SEDuA}HAVE_ALLOCA_H\${SEDuB}HAVE_ALLOCA_H\${SEDuC}1\${SEDuD}
  2009. ! \${SEDeA}HAVE_ALLOCA_H\${SEDeB}HAVE_ALLOCA_H\${SEDeC}1\${SEDeD}
  2010.   "
  2011.   }
  2012.   
  2013. --- 1148,1171 ----
  2014.   
  2015.   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  2016.   # for constant arguments.  Useless!
  2017. ! test -n "$silent" || /bin/echo "checking for working alloca.h"
  2018. ! cat > conftest.${ac_ext} <<EOF
  2019.   #include "confdefs.h"
  2020.   #include <alloca.h>
  2021. ! int main() { return 0; }
  2022. ! int t() { char *p = alloca(2 * sizeof(int));; return 0; }
  2023.   EOF
  2024. ! if eval $ac_compile; then
  2025.     rm -rf conftest*
  2026.     
  2027.   {
  2028.   test -n "$verbose" && \
  2029. ! /bin/echo "    defining HAVE_ALLOCA_H"
  2030. ! /bin/echo "#define" HAVE_ALLOCA_H "1" >> confdefs.h
  2031.   DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  2032. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA_H\${ac_dB}HAVE_ALLOCA_H\${ac_dC}1\${ac_dD}
  2033. ! \${ac_uA}HAVE_ALLOCA_H\${ac_uB}HAVE_ALLOCA_H\${ac_uC}1\${ac_uD}
  2034. ! \${ac_eA}HAVE_ALLOCA_H\${ac_eB}HAVE_ALLOCA_H\${ac_eC}1\${ac_eD}
  2035.   "
  2036.   }
  2037.   
  2038. ***************
  2039. *** 928,934 ****
  2040.   fi
  2041.   rm -f conftest*
  2042.   
  2043. ! decl="#ifdef __GNUC__
  2044.   #define alloca __builtin_alloca
  2045.   #else
  2046.   #if HAVE_ALLOCA_H
  2047. --- 1173,1179 ----
  2048.   fi
  2049.   rm -f conftest*
  2050.   
  2051. ! ac_decl="#ifdef __GNUC__
  2052.   #define alloca __builtin_alloca
  2053.   #else
  2054.   #if HAVE_ALLOCA_H
  2055. ***************
  2056. *** 942,960 ****
  2057.   #endif
  2058.   #endif
  2059.   "
  2060. ! echo checking for alloca
  2061. ! cat > conftest.c <<EOF
  2062.   #include "confdefs.h"
  2063. ! $decl
  2064. ! int main() { exit(0); }
  2065. ! int t() { char *p = (char *) alloca(1); }
  2066.   EOF
  2067. ! if eval $compile; then
  2068. !   :
  2069.   else
  2070.     rm -rf conftest*
  2071. !   alloca_missing=1
  2072. ! cat > conftest.c <<EOF
  2073.   #include "confdefs.h"
  2074.   
  2075.   #if defined(CRAY) && ! defined(CRAY2)
  2076. --- 1187,1218 ----
  2077.   #endif
  2078.   #endif
  2079.   "
  2080. ! test -n "$silent" || /bin/echo "checking for alloca"
  2081. ! cat > conftest.${ac_ext} <<EOF
  2082.   #include "confdefs.h"
  2083. ! $ac_decl
  2084. ! int main() { return 0; }
  2085. ! int t() { char *p = (char *) alloca(1);; return 0; }
  2086.   EOF
  2087. ! if eval $ac_compile; then
  2088. !   rm -rf conftest*
  2089. !   
  2090. ! {
  2091. ! test -n "$verbose" && \
  2092. ! /bin/echo "    defining HAVE_ALLOCA"
  2093. ! /bin/echo "#define" HAVE_ALLOCA "1" >> confdefs.h
  2094. ! DEFS="$DEFS -DHAVE_ALLOCA=1"
  2095. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA\${ac_dB}HAVE_ALLOCA\${ac_dC}1\${ac_dD}
  2096. ! \${ac_uA}HAVE_ALLOCA\${ac_uB}HAVE_ALLOCA\${ac_uC}1\${ac_uD}
  2097. ! \${ac_eA}HAVE_ALLOCA\${ac_eB}HAVE_ALLOCA\${ac_eC}1\${ac_eD}
  2098. ! "
  2099. ! }
  2100.   else
  2101.     rm -rf conftest*
  2102. !   ac_alloca_missing=1
  2103. ! cat > conftest.${ac_ext} <<EOF
  2104.   #include "confdefs.h"
  2105.   
  2106.   #if defined(CRAY) && ! defined(CRAY2)
  2107. ***************
  2108. *** 964,977 ****
  2109.   #endif
  2110.   
  2111.   EOF
  2112. ! eval "$CPP conftest.c > conftest.out 2>&1"
  2113.   if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  2114.     rm -rf conftest*
  2115. !   echo checking for _getb67
  2116. ! cat > conftest.c <<EOF
  2117.   #include "confdefs.h"
  2118.   #include <ctype.h>
  2119. ! int main() { exit(0); }
  2120.   int t() { 
  2121.   /* The GNU C library defines this for functions which it implements
  2122.       to always fail with ENOSYS.  Some functions are actually named
  2123. --- 1222,1235 ----
  2124.   #endif
  2125.   
  2126.   EOF
  2127. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  2128.   if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  2129.     rm -rf conftest*
  2130. !   test -n "$silent" || /bin/echo "checking for _getb67"
  2131. ! cat > conftest.${ac_ext} <<EOF
  2132.   #include "confdefs.h"
  2133.   #include <ctype.h>
  2134. ! int main() { return 0; }
  2135.   int t() { 
  2136.   /* The GNU C library defines this for functions which it implements
  2137.       to always fail with ENOSYS.  Some functions are actually named
  2138. ***************
  2139. *** 982,1010 ****
  2140.   /* Override any gcc2 internal prototype to avoid an error.  */
  2141.   extern char _getb67(); _getb67();
  2142.   #endif
  2143. !  }
  2144.   EOF
  2145. ! if eval $compile; then
  2146.     rm -rf conftest*
  2147.     {
  2148.   test -n "$verbose" && \
  2149. ! echo "    defining" CRAY_STACKSEG_END to be _getb67
  2150. ! echo "#define" CRAY_STACKSEG_END _getb67 >> confdefs.h
  2151.   DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
  2152. ! SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}_getb67\${SEDdD}
  2153. ! \${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}_getb67\${SEDuD}
  2154. ! \${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}_getb67\${SEDeD}
  2155.   "
  2156.   }
  2157.   
  2158.   
  2159.   else
  2160.     rm -rf conftest*
  2161. !   echo checking for GETB67
  2162. ! cat > conftest.c <<EOF
  2163.   #include "confdefs.h"
  2164.   #include <ctype.h>
  2165. ! int main() { exit(0); }
  2166.   int t() { 
  2167.   /* The GNU C library defines this for functions which it implements
  2168.       to always fail with ENOSYS.  Some functions are actually named
  2169. --- 1240,1268 ----
  2170.   /* Override any gcc2 internal prototype to avoid an error.  */
  2171.   extern char _getb67(); _getb67();
  2172.   #endif
  2173. ! ; return 0; }
  2174.   EOF
  2175. ! if eval $ac_compile; then
  2176.     rm -rf conftest*
  2177.     {
  2178.   test -n "$verbose" && \
  2179. ! /bin/echo "    defining" CRAY_STACKSEG_END to be "_getb67"
  2180. ! /bin/echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.h
  2181.   DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
  2182. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}_getb67\${ac_dD}
  2183. ! \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}_getb67\${ac_uD}
  2184. ! \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}_getb67\${ac_eD}
  2185.   "
  2186.   }
  2187.   
  2188.   
  2189.   else
  2190.     rm -rf conftest*
  2191. !   test -n "$silent" || /bin/echo "checking for GETB67"
  2192. ! cat > conftest.${ac_ext} <<EOF
  2193.   #include "confdefs.h"
  2194.   #include <ctype.h>
  2195. ! int main() { return 0; }
  2196.   int t() { 
  2197.   /* The GNU C library defines this for functions which it implements
  2198.       to always fail with ENOSYS.  Some functions are actually named
  2199. ***************
  2200. *** 1015,1043 ****
  2201.   /* Override any gcc2 internal prototype to avoid an error.  */
  2202.   extern char GETB67(); GETB67();
  2203.   #endif
  2204. !  }
  2205.   EOF
  2206. ! if eval $compile; then
  2207.     rm -rf conftest*
  2208.     {
  2209.   test -n "$verbose" && \
  2210. ! echo "    defining" CRAY_STACKSEG_END to be GETB67
  2211. ! echo "#define" CRAY_STACKSEG_END GETB67 >> confdefs.h
  2212.   DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
  2213. ! SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}GETB67\${SEDdD}
  2214. ! \${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}GETB67\${SEDuD}
  2215. ! \${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}GETB67\${SEDeD}
  2216.   "
  2217.   }
  2218.   
  2219.   
  2220.   else
  2221.     rm -rf conftest*
  2222. !   echo checking for getb67
  2223. ! cat > conftest.c <<EOF
  2224.   #include "confdefs.h"
  2225.   #include <ctype.h>
  2226. ! int main() { exit(0); }
  2227.   int t() { 
  2228.   /* The GNU C library defines this for functions which it implements
  2229.       to always fail with ENOSYS.  Some functions are actually named
  2230. --- 1273,1301 ----
  2231.   /* Override any gcc2 internal prototype to avoid an error.  */
  2232.   extern char GETB67(); GETB67();
  2233.   #endif
  2234. ! ; return 0; }
  2235.   EOF
  2236. ! if eval $ac_compile; then
  2237.     rm -rf conftest*
  2238.     {
  2239.   test -n "$verbose" && \
  2240. ! /bin/echo "    defining" CRAY_STACKSEG_END to be "GETB67"
  2241. ! /bin/echo "#define" CRAY_STACKSEG_END "GETB67" >> confdefs.h
  2242.   DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
  2243. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}GETB67\${ac_dD}
  2244. ! \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}GETB67\${ac_uD}
  2245. ! \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}GETB67\${ac_eD}
  2246.   "
  2247.   }
  2248.   
  2249.   
  2250.   else
  2251.     rm -rf conftest*
  2252. !   test -n "$silent" || /bin/echo "checking for getb67"
  2253. ! cat > conftest.${ac_ext} <<EOF
  2254.   #include "confdefs.h"
  2255.   #include <ctype.h>
  2256. ! int main() { return 0; }
  2257.   int t() { 
  2258.   /* The GNU C library defines this for functions which it implements
  2259.       to always fail with ENOSYS.  Some functions are actually named
  2260. ***************
  2261. *** 1048,1065 ****
  2262.   /* Override any gcc2 internal prototype to avoid an error.  */
  2263.   extern char getb67(); getb67();
  2264.   #endif
  2265. !  }
  2266.   EOF
  2267. ! if eval $compile; then
  2268.     rm -rf conftest*
  2269.     {
  2270.   test -n "$verbose" && \
  2271. ! echo "    defining" CRAY_STACKSEG_END to be getb67
  2272. ! echo "#define" CRAY_STACKSEG_END getb67 >> confdefs.h
  2273.   DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
  2274. ! SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}getb67\${SEDdD}
  2275. ! \${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}getb67\${SEDuD}
  2276. ! \${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}getb67\${SEDeD}
  2277.   "
  2278.   }
  2279.   
  2280. --- 1306,1323 ----
  2281.   /* Override any gcc2 internal prototype to avoid an error.  */
  2282.   extern char getb67(); getb67();
  2283.   #endif
  2284. ! ; return 0; }
  2285.   EOF
  2286. ! if eval $ac_compile; then
  2287.     rm -rf conftest*
  2288.     {
  2289.   test -n "$verbose" && \
  2290. ! /bin/echo "    defining" CRAY_STACKSEG_END to be "getb67"
  2291. ! /bin/echo "#define" CRAY_STACKSEG_END "getb67" >> confdefs.h
  2292.   DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
  2293. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}getb67\${ac_dD}
  2294. ! \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}getb67\${ac_uD}
  2295. ! \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}getb67\${ac_eD}
  2296.   "
  2297.   }
  2298.   
  2299. ***************
  2300. *** 1081,1087 ****
  2301.   fi
  2302.   rm -f conftest*
  2303.   
  2304. ! if test -n "$alloca_missing"; then
  2305.     # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2306.     # that cause trouble.  Some versions do not even contain alloca or
  2307.     # contain a buggy version.  If you still want to use their alloca,
  2308. --- 1339,1345 ----
  2309.   fi
  2310.   rm -f conftest*
  2311.   
  2312. ! if test -n "$ac_alloca_missing"; then
  2313.     # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2314.     # that cause trouble.  Some versions do not even contain alloca or
  2315.     # contain a buggy version.  If you still want to use their alloca,
  2316. ***************
  2317. *** 1090,1113 ****
  2318.     
  2319.   {
  2320.   test -n "$verbose" && \
  2321. ! echo "    defining C_ALLOCA"
  2322. ! echo "#define" C_ALLOCA 1 >> confdefs.h
  2323.   DEFS="$DEFS -DC_ALLOCA=1"
  2324. ! SEDDEFS="${SEDDEFS}\${SEDdA}C_ALLOCA\${SEDdB}C_ALLOCA\${SEDdC}1\${SEDdD}
  2325. ! \${SEDuA}C_ALLOCA\${SEDuB}C_ALLOCA\${SEDuC}1\${SEDuD}
  2326. ! \${SEDeA}C_ALLOCA\${SEDeB}C_ALLOCA\${SEDeC}1\${SEDeD}
  2327.   "
  2328.   }
  2329.   
  2330.   
  2331. !   echo 'checking stack direction for C alloca'
  2332. !   echo checking whether cross-compiling
  2333.   # If we cannot run a trivial program, we must be cross compiling.
  2334. ! cat > conftest.c <<EOF
  2335.   #include "confdefs.h"
  2336.   main(){exit(0);}
  2337.   EOF
  2338. ! eval $compile
  2339.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2340.     :
  2341.   else
  2342. --- 1348,1371 ----
  2343.     
  2344.   {
  2345.   test -n "$verbose" && \
  2346. ! /bin/echo "    defining C_ALLOCA"
  2347. ! /bin/echo "#define" C_ALLOCA "1" >> confdefs.h
  2348.   DEFS="$DEFS -DC_ALLOCA=1"
  2349. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}C_ALLOCA\${ac_dB}C_ALLOCA\${ac_dC}1\${ac_dD}
  2350. ! \${ac_uA}C_ALLOCA\${ac_uB}C_ALLOCA\${ac_uC}1\${ac_uD}
  2351. ! \${ac_eA}C_ALLOCA\${ac_eB}C_ALLOCA\${ac_eC}1\${ac_eD}
  2352.   "
  2353.   }
  2354.   
  2355.   
  2356. !   test -n "$silent" || /bin/echo "checking stack direction for C alloca"
  2357. !   test -n "$silent" || /bin/echo "checking whether cross-compiling"
  2358.   # If we cannot run a trivial program, we must be cross compiling.
  2359. ! cat > conftest.${ac_ext} <<EOF
  2360.   #include "confdefs.h"
  2361.   main(){exit(0);}
  2362.   EOF
  2363. ! eval $ac_compile
  2364.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2365.     :
  2366.   else
  2367. ***************
  2368. *** 1120,1136 ****
  2369.     
  2370.   {
  2371.   test -n "$verbose" && \
  2372. ! echo "    defining" STACK_DIRECTION to be 0
  2373. ! echo "#define" STACK_DIRECTION 0 >> confdefs.h
  2374.   DEFS="$DEFS -DSTACK_DIRECTION=0"
  2375. ! SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}0\${SEDdD}
  2376. ! \${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}0\${SEDuD}
  2377. ! \${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}0\${SEDeD}
  2378.   "
  2379.   }
  2380.   
  2381.   else
  2382. ! cat > conftest.c <<EOF
  2383.   #include "confdefs.h"
  2384.   find_stack_direction ()
  2385.   {
  2386. --- 1378,1394 ----
  2387.     
  2388.   {
  2389.   test -n "$verbose" && \
  2390. ! /bin/echo "    defining" STACK_DIRECTION to be "0"
  2391. ! /bin/echo "#define" STACK_DIRECTION "0" >> confdefs.h
  2392.   DEFS="$DEFS -DSTACK_DIRECTION=0"
  2393. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}0\${ac_dD}
  2394. ! \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}0\${ac_uD}
  2395. ! \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}0\${ac_eD}
  2396.   "
  2397.   }
  2398.   
  2399.   else
  2400. ! cat > conftest.${ac_ext} <<EOF
  2401.   #include "confdefs.h"
  2402.   find_stack_direction ()
  2403.   {
  2404. ***************
  2405. *** 1149,1165 ****
  2406.     exit (find_stack_direction() < 0);
  2407.   }
  2408.   EOF
  2409. ! eval $compile
  2410.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2411.     
  2412.   {
  2413.   test -n "$verbose" && \
  2414. ! echo "    defining" STACK_DIRECTION to be 1
  2415. ! echo "#define" STACK_DIRECTION 1 >> confdefs.h
  2416.   DEFS="$DEFS -DSTACK_DIRECTION=1"
  2417. ! SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}1\${SEDdD}
  2418. ! \${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}1\${SEDuD}
  2419. ! \${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}1\${SEDeD}
  2420.   "
  2421.   }
  2422.   
  2423. --- 1407,1423 ----
  2424.     exit (find_stack_direction() < 0);
  2425.   }
  2426.   EOF
  2427. ! eval $ac_compile
  2428.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2429.     
  2430.   {
  2431.   test -n "$verbose" && \
  2432. ! /bin/echo "    defining" STACK_DIRECTION to be "1"
  2433. ! /bin/echo "#define" STACK_DIRECTION "1" >> confdefs.h
  2434.   DEFS="$DEFS -DSTACK_DIRECTION=1"
  2435. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}1\${ac_dD}
  2436. ! \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}1\${ac_uD}
  2437. ! \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}1\${ac_eD}
  2438.   "
  2439.   }
  2440.   
  2441. ***************
  2442. *** 1168,1179 ****
  2443.     
  2444.   {
  2445.   test -n "$verbose" && \
  2446. ! echo "    defining" STACK_DIRECTION to be -1
  2447. ! echo "#define" STACK_DIRECTION -1 >> confdefs.h
  2448.   DEFS="$DEFS -DSTACK_DIRECTION=-1"
  2449. ! SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}-1\${SEDdD}
  2450. ! \${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}-1\${SEDuD}
  2451. ! \${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}-1\${SEDeD}
  2452.   "
  2453.   }
  2454.   
  2455. --- 1426,1437 ----
  2456.     
  2457.   {
  2458.   test -n "$verbose" && \
  2459. ! /bin/echo "    defining" STACK_DIRECTION to be "-1"
  2460. ! /bin/echo "#define" STACK_DIRECTION "-1" >> confdefs.h
  2461.   DEFS="$DEFS -DSTACK_DIRECTION=-1"
  2462. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}-1\${ac_dD}
  2463. ! \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}-1\${ac_uD}
  2464. ! \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}-1\${ac_eD}
  2465.   "
  2466.   }
  2467.   
  2468. ***************
  2469. *** 1182,1206 ****
  2470.   rm -fr conftest*
  2471.   fi
  2472.   
  2473. ! echo checking for st_blksize in struct stat
  2474. ! cat > conftest.c <<EOF
  2475.   #include "confdefs.h"
  2476.   #include <sys/types.h>
  2477.   #include <sys/stat.h>
  2478. ! int main() { exit(0); }
  2479. ! int t() { struct stat s; s.st_blksize; }
  2480.   EOF
  2481. ! if eval $compile; then
  2482.     rm -rf conftest*
  2483.     
  2484.   {
  2485.   test -n "$verbose" && \
  2486. ! echo "    defining HAVE_ST_BLKSIZE"
  2487. ! echo "#define" HAVE_ST_BLKSIZE 1 >> confdefs.h
  2488.   DEFS="$DEFS -DHAVE_ST_BLKSIZE=1"
  2489. ! SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_ST_BLKSIZE\${SEDdB}HAVE_ST_BLKSIZE\${SEDdC}1\${SEDdD}
  2490. ! \${SEDuA}HAVE_ST_BLKSIZE\${SEDuB}HAVE_ST_BLKSIZE\${SEDuC}1\${SEDuD}
  2491. ! \${SEDeA}HAVE_ST_BLKSIZE\${SEDeB}HAVE_ST_BLKSIZE\${SEDeC}1\${SEDeD}
  2492.   "
  2493.   }
  2494.   
  2495. --- 1440,1464 ----
  2496.   rm -fr conftest*
  2497.   fi
  2498.   
  2499. ! test -n "$silent" || /bin/echo "checking for st_blksize in struct stat"
  2500. ! cat > conftest.${ac_ext} <<EOF
  2501.   #include "confdefs.h"
  2502.   #include <sys/types.h>
  2503.   #include <sys/stat.h>
  2504. ! int main() { return 0; }
  2505. ! int t() { struct stat s; s.st_blksize;; return 0; }
  2506.   EOF
  2507. ! if eval $ac_compile; then
  2508.     rm -rf conftest*
  2509.     
  2510.   {
  2511.   test -n "$verbose" && \
  2512. ! /bin/echo "    defining HAVE_ST_BLKSIZE"
  2513. ! /bin/echo "#define" HAVE_ST_BLKSIZE "1" >> confdefs.h
  2514.   DEFS="$DEFS -DHAVE_ST_BLKSIZE=1"
  2515. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ST_BLKSIZE\${ac_dB}HAVE_ST_BLKSIZE\${ac_dC}1\${ac_dD}
  2516. ! \${ac_uA}HAVE_ST_BLKSIZE\${ac_uB}HAVE_ST_BLKSIZE\${ac_uC}1\${ac_uD}
  2517. ! \${ac_eA}HAVE_ST_BLKSIZE\${ac_eB}HAVE_ST_BLKSIZE\${ac_eC}1\${ac_eD}
  2518.   "
  2519.   }
  2520.   
  2521. ***************
  2522. *** 1208,1359 ****
  2523.   fi
  2524.   rm -f conftest*
  2525.   
  2526. ! echo checking for directory library header
  2527. ! dirheader=
  2528. ! if test -z "$dirheader"; then
  2529. !   echo checking for dirent.h
  2530. ! cat > conftest.c <<EOF
  2531.   #include "confdefs.h"
  2532.   #include <sys/types.h>
  2533.   #include <dirent.h>
  2534. ! int main() { exit(0); }
  2535. ! int t() { DIR *dirp = 0; }
  2536.   EOF
  2537. ! if eval $compile; then
  2538.     rm -rf conftest*
  2539.     
  2540.   {
  2541.   test -n "$verbose" && \
  2542. ! echo "    defining DIRENT"
  2543. ! echo "#define" DIRENT 1 >> confdefs.h
  2544.   DEFS="$DEFS -DDIRENT=1"
  2545. ! SEDDEFS="${SEDDEFS}\${SEDdA}DIRENT\${SEDdB}DIRENT\${SEDdC}1\${SEDdD}
  2546. ! \${SEDuA}DIRENT\${SEDuB}DIRENT\${SEDuC}1\${SEDuD}
  2547. ! \${SEDeA}DIRENT\${SEDeB}DIRENT\${SEDeC}1\${SEDeD}
  2548.   "
  2549.   }
  2550. !  dirheader=dirent.h
  2551.   
  2552.   fi
  2553.   rm -f conftest*
  2554.   fi
  2555. ! if test -z "$dirheader"; then
  2556. !   echo checking for sys/ndir.h
  2557. ! cat > conftest.c <<EOF
  2558.   #include "confdefs.h"
  2559.   #include <sys/types.h>
  2560.   #include <sys/ndir.h>
  2561. ! int main() { exit(0); }
  2562. ! int t() { DIR *dirp = 0; }
  2563.   EOF
  2564. ! if eval $compile; then
  2565.     rm -rf conftest*
  2566.     
  2567.   {
  2568.   test -n "$verbose" && \
  2569. ! echo "    defining SYSNDIR"
  2570. ! echo "#define" SYSNDIR 1 >> confdefs.h
  2571.   DEFS="$DEFS -DSYSNDIR=1"
  2572. ! SEDDEFS="${SEDDEFS}\${SEDdA}SYSNDIR\${SEDdB}SYSNDIR\${SEDdC}1\${SEDdD}
  2573. ! \${SEDuA}SYSNDIR\${SEDuB}SYSNDIR\${SEDuC}1\${SEDuD}
  2574. ! \${SEDeA}SYSNDIR\${SEDeB}SYSNDIR\${SEDeC}1\${SEDeD}
  2575.   "
  2576.   }
  2577. !  dirheader=sys/ndir.h
  2578.   
  2579.   fi
  2580.   rm -f conftest*
  2581.   fi
  2582. ! if test -z "$dirheader"; then
  2583. !   echo checking for sys/dir.h
  2584. ! cat > conftest.c <<EOF
  2585.   #include "confdefs.h"
  2586.   #include <sys/types.h>
  2587.   #include <sys/dir.h>
  2588. ! int main() { exit(0); }
  2589. ! int t() { DIR *dirp = 0; }
  2590.   EOF
  2591. ! if eval $compile; then
  2592.     rm -rf conftest*
  2593.     
  2594.   {
  2595.   test -n "$verbose" && \
  2596. ! echo "    defining SYSDIR"
  2597. ! echo "#define" SYSDIR 1 >> confdefs.h
  2598.   DEFS="$DEFS -DSYSDIR=1"
  2599. ! SEDDEFS="${SEDDEFS}\${SEDdA}SYSDIR\${SEDdB}SYSDIR\${SEDdC}1\${SEDdD}
  2600. ! \${SEDuA}SYSDIR\${SEDuB}SYSDIR\${SEDuC}1\${SEDuD}
  2601. ! \${SEDeA}SYSDIR\${SEDeB}SYSDIR\${SEDeC}1\${SEDeD}
  2602.   "
  2603.   }
  2604. !  dirheader=sys/dir.h
  2605.   
  2606.   fi
  2607.   rm -f conftest*
  2608.   fi
  2609. ! if test -z "$dirheader"; then
  2610. !   echo checking for ndir.h
  2611. ! cat > conftest.c <<EOF
  2612.   #include "confdefs.h"
  2613.   #include <sys/types.h>
  2614.   #include <ndir.h>
  2615. ! int main() { exit(0); }
  2616. ! int t() { DIR *dirp = 0; }
  2617.   EOF
  2618. ! if eval $compile; then
  2619.     rm -rf conftest*
  2620.     
  2621.   {
  2622.   test -n "$verbose" && \
  2623. ! echo "    defining NDIR"
  2624. ! echo "#define" NDIR 1 >> confdefs.h
  2625.   DEFS="$DEFS -DNDIR=1"
  2626. ! SEDDEFS="${SEDDEFS}\${SEDdA}NDIR\${SEDdB}NDIR\${SEDdC}1\${SEDdD}
  2627. ! \${SEDuA}NDIR\${SEDuB}NDIR\${SEDuC}1\${SEDuD}
  2628. ! \${SEDeA}NDIR\${SEDeB}NDIR\${SEDeC}1\${SEDeD}
  2629.   "
  2630.   }
  2631. !  dirheader=ndir.h
  2632.   
  2633.   fi
  2634.   rm -f conftest*
  2635.   fi
  2636.   
  2637. ! echo checking for closedir return value
  2638. ! cat > conftest.c <<EOF
  2639.   #include "confdefs.h"
  2640.   #include <sys/types.h>
  2641. ! #include <$dirheader>
  2642.   int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  2643.   EOF
  2644. ! eval $compile
  2645.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2646.     :
  2647.   else
  2648.     
  2649.   {
  2650.   test -n "$verbose" && \
  2651. ! echo "    defining VOID_CLOSEDIR"
  2652. ! echo "#define" VOID_CLOSEDIR 1 >> confdefs.h
  2653.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  2654. ! SEDDEFS="${SEDDEFS}\${SEDdA}VOID_CLOSEDIR\${SEDdB}VOID_CLOSEDIR\${SEDdC}1\${SEDdD}
  2655. ! \${SEDuA}VOID_CLOSEDIR\${SEDuB}VOID_CLOSEDIR\${SEDuC}1\${SEDuD}
  2656. ! \${SEDeA}VOID_CLOSEDIR\${SEDeB}VOID_CLOSEDIR\${SEDeC}1\${SEDeD}
  2657.   "
  2658.   }
  2659.   
  2660.   fi
  2661.   rm -fr conftest*
  2662.   
  2663. ! echo checking for Xenix
  2664. ! cat > conftest.c <<EOF
  2665.   #include "confdefs.h"
  2666.   #if defined(M_XENIX) && !defined(M_UNIX)
  2667.     yes
  2668.   #endif
  2669.   
  2670.   EOF
  2671. ! eval "$CPP conftest.c > conftest.out 2>&1"
  2672.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  2673.     rm -rf conftest*
  2674.     XENIX=1
  2675. --- 1466,1617 ----
  2676.   fi
  2677.   rm -f conftest*
  2678.   
  2679. ! test -n "$silent" || /bin/echo "checking for directory library header"
  2680. ! ac_dir_header=
  2681. ! if test -z "$ac_dir_header"; then
  2682. !   test -n "$silent" || /bin/echo "checking for dirent.h"
  2683. ! cat > conftest.${ac_ext} <<EOF
  2684.   #include "confdefs.h"
  2685.   #include <sys/types.h>
  2686.   #include <dirent.h>
  2687. ! int main() { return 0; }
  2688. ! int t() { DIR *dirp = 0;; return 0; }
  2689.   EOF
  2690. ! if eval $ac_compile; then
  2691.     rm -rf conftest*
  2692.     
  2693.   {
  2694.   test -n "$verbose" && \
  2695. ! /bin/echo "    defining DIRENT"
  2696. ! /bin/echo "#define" DIRENT "1" >> confdefs.h
  2697.   DEFS="$DEFS -DDIRENT=1"
  2698. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}DIRENT\${ac_dB}DIRENT\${ac_dC}1\${ac_dD}
  2699. ! \${ac_uA}DIRENT\${ac_uB}DIRENT\${ac_uC}1\${ac_uD}
  2700. ! \${ac_eA}DIRENT\${ac_eB}DIRENT\${ac_eC}1\${ac_eD}
  2701.   "
  2702.   }
  2703. !  ac_dir_header=dirent.h
  2704.   
  2705.   fi
  2706.   rm -f conftest*
  2707.   fi
  2708. ! if test -z "$ac_dir_header"; then
  2709. !   test -n "$silent" || /bin/echo "checking for sys/ndir.h"
  2710. ! cat > conftest.${ac_ext} <<EOF
  2711.   #include "confdefs.h"
  2712.   #include <sys/types.h>
  2713.   #include <sys/ndir.h>
  2714. ! int main() { return 0; }
  2715. ! int t() { DIR *dirp = 0;; return 0; }
  2716.   EOF
  2717. ! if eval $ac_compile; then
  2718.     rm -rf conftest*
  2719.     
  2720.   {
  2721.   test -n "$verbose" && \
  2722. ! /bin/echo "    defining SYSNDIR"
  2723. ! /bin/echo "#define" SYSNDIR "1" >> confdefs.h
  2724.   DEFS="$DEFS -DSYSNDIR=1"
  2725. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSNDIR\${ac_dB}SYSNDIR\${ac_dC}1\${ac_dD}
  2726. ! \${ac_uA}SYSNDIR\${ac_uB}SYSNDIR\${ac_uC}1\${ac_uD}
  2727. ! \${ac_eA}SYSNDIR\${ac_eB}SYSNDIR\${ac_eC}1\${ac_eD}
  2728.   "
  2729.   }
  2730. !  ac_dir_header=sys/ndir.h
  2731.   
  2732.   fi
  2733.   rm -f conftest*
  2734.   fi
  2735. ! if test -z "$ac_dir_header"; then
  2736. !   test -n "$silent" || /bin/echo "checking for sys/dir.h"
  2737. ! cat > conftest.${ac_ext} <<EOF
  2738.   #include "confdefs.h"
  2739.   #include <sys/types.h>
  2740.   #include <sys/dir.h>
  2741. ! int main() { return 0; }
  2742. ! int t() { DIR *dirp = 0;; return 0; }
  2743.   EOF
  2744. ! if eval $ac_compile; then
  2745.     rm -rf conftest*
  2746.     
  2747.   {
  2748.   test -n "$verbose" && \
  2749. ! /bin/echo "    defining SYSDIR"
  2750. ! /bin/echo "#define" SYSDIR "1" >> confdefs.h
  2751.   DEFS="$DEFS -DSYSDIR=1"
  2752. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSDIR\${ac_dB}SYSDIR\${ac_dC}1\${ac_dD}
  2753. ! \${ac_uA}SYSDIR\${ac_uB}SYSDIR\${ac_uC}1\${ac_uD}
  2754. ! \${ac_eA}SYSDIR\${ac_eB}SYSDIR\${ac_eC}1\${ac_eD}
  2755.   "
  2756.   }
  2757. !  ac_dir_header=sys/dir.h
  2758.   
  2759.   fi
  2760.   rm -f conftest*
  2761.   fi
  2762. ! if test -z "$ac_dir_header"; then
  2763. !   test -n "$silent" || /bin/echo "checking for ndir.h"
  2764. ! cat > conftest.${ac_ext} <<EOF
  2765.   #include "confdefs.h"
  2766.   #include <sys/types.h>
  2767.   #include <ndir.h>
  2768. ! int main() { return 0; }
  2769. ! int t() { DIR *dirp = 0;; return 0; }
  2770.   EOF
  2771. ! if eval $ac_compile; then
  2772.     rm -rf conftest*
  2773.     
  2774.   {
  2775.   test -n "$verbose" && \
  2776. ! /bin/echo "    defining NDIR"
  2777. ! /bin/echo "#define" NDIR "1" >> confdefs.h
  2778.   DEFS="$DEFS -DNDIR=1"
  2779. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}NDIR\${ac_dB}NDIR\${ac_dC}1\${ac_dD}
  2780. ! \${ac_uA}NDIR\${ac_uB}NDIR\${ac_uC}1\${ac_uD}
  2781. ! \${ac_eA}NDIR\${ac_eB}NDIR\${ac_eC}1\${ac_eD}
  2782.   "
  2783.   }
  2784. !  ac_dir_header=ndir.h
  2785.   
  2786.   fi
  2787.   rm -f conftest*
  2788.   fi
  2789.   
  2790. ! test -n "$silent" || /bin/echo "checking for closedir return value"
  2791. ! cat > conftest.${ac_ext} <<EOF
  2792.   #include "confdefs.h"
  2793.   #include <sys/types.h>
  2794. ! #include <$ac_dir_header>
  2795.   int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  2796.   EOF
  2797. ! eval $ac_compile
  2798.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2799.     :
  2800.   else
  2801.     
  2802.   {
  2803.   test -n "$verbose" && \
  2804. ! /bin/echo "    defining VOID_CLOSEDIR"
  2805. ! /bin/echo "#define" VOID_CLOSEDIR "1" >> confdefs.h
  2806.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  2807. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}VOID_CLOSEDIR\${ac_dB}VOID_CLOSEDIR\${ac_dC}1\${ac_dD}
  2808. ! \${ac_uA}VOID_CLOSEDIR\${ac_uB}VOID_CLOSEDIR\${ac_uC}1\${ac_uD}
  2809. ! \${ac_eA}VOID_CLOSEDIR\${ac_eB}VOID_CLOSEDIR\${ac_eC}1\${ac_eD}
  2810.   "
  2811.   }
  2812.   
  2813.   fi
  2814.   rm -fr conftest*
  2815.   
  2816. ! test -n "$silent" || /bin/echo "checking for Xenix"
  2817. ! cat > conftest.${ac_ext} <<EOF
  2818.   #include "confdefs.h"
  2819.   #if defined(M_XENIX) && !defined(M_UNIX)
  2820.     yes
  2821.   #endif
  2822.   
  2823.   EOF
  2824. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  2825.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  2826.     rm -rf conftest*
  2827.     XENIX=1
  2828. ***************
  2829. *** 1371,1394 ****
  2830.   
  2831.   # Set default prefixes.
  2832.   if test -n "$prefix"; then
  2833. !   test -z "$exec_prefix" && exec_prefix='${prefix}'
  2834. !   prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  2835.   fi
  2836.   if test -n "$exec_prefix"; then
  2837. !   prsub="$prsub
  2838.   s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  2839.   fi
  2840.   # Quote sed substitution magic chars in DEFS.
  2841.   cat >conftest.def <<EOF
  2842.   $DEFS
  2843.   EOF
  2844. ! escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  2845. ! DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`
  2846.   rm -f conftest.def
  2847.   # Substitute for predefined variables.
  2848.   
  2849. ! trap 'rm -f config.status; exit 1' 1 3 15
  2850. ! echo creating config.status
  2851.   rm -f config.status
  2852.   cat > config.status <<EOF
  2853.   #!/bin/sh
  2854. --- 1629,1659 ----
  2855.   
  2856.   # Set default prefixes.
  2857.   if test -n "$prefix"; then
  2858. !   test -z "$exec_prefix" && exec_prefix='${prefix}' # Let make expand it.
  2859. !   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  2860.   fi
  2861.   if test -n "$exec_prefix"; then
  2862. !   ac_prsub="$ac_prsub
  2863.   s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  2864.   fi
  2865. + # Any assignment to VPATH causes Sun make to only execute
  2866. + # the first set of double-colon rules, so remove it if not needed.
  2867. + # If there is a colon in the path, we need to keep it.
  2868. + if test "x$srcdir" = x.; then
  2869. +   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2870. + fi
  2871.   # Quote sed substitution magic chars in DEFS.
  2872.   cat >conftest.def <<EOF
  2873.   $DEFS
  2874.   EOF
  2875. ! ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  2876. ! DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  2877.   rm -f conftest.def
  2878.   # Substitute for predefined variables.
  2879.   
  2880. ! trap 'rm -f config.status; exit 1' 1 2 15
  2881. ! /bin/echo creating config.status
  2882.   rm -f config.status
  2883.   cat > config.status <<EOF
  2884.   #!/bin/sh
  2885. ***************
  2886. *** 1399,1415 ****
  2887.   #
  2888.   # $0 $configure_args
  2889.   
  2890. ! for arg
  2891.   do
  2892. !   case "\$arg" in
  2893. !     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2894. !     echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args
  2895. !     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args ;;
  2896. !     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  2897.     esac
  2898.   done
  2899.   
  2900. ! trap 'rm -fr Makefile lib/Makefile src/Makefile man/Makefile config.h conftest*; exit 1' 1 3 15
  2901.   CC='$CC'
  2902.   CFLAGS='$CFLAGS'
  2903.   LDFLAGS='$LDFLAGS'
  2904. --- 1664,1686 ----
  2905.   #
  2906.   # $0 $configure_args
  2907.   
  2908. ! ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  2909. ! for ac_option
  2910.   do
  2911. !   case "\$ac_option" in
  2912. !   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2913. !     /bin/echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  2914. !     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  2915. !   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2916. !     /bin/echo "config.status generated by autoconf version 1.9"
  2917. !     exit 0 ;;
  2918. !   -help | --help | --hel | --he | --h)
  2919. !     /bin/echo "\$ac_cs_usage"; exit 0 ;;
  2920. !   *) /bin/echo "\$ac_cs_usage"; exit 1 ;;
  2921.     esac
  2922.   done
  2923.   
  2924. ! trap 'rm -fr Makefile lib/Makefile src/Makefile man/Makefile config.h conftest*; exit 1' 1 2 15
  2925.   CC='$CC'
  2926.   CFLAGS='$CFLAGS'
  2927.   LDFLAGS='$LDFLAGS'
  2928. ***************
  2929. *** 1422,1450 ****
  2930.   ALLOCA='$ALLOCA'
  2931.   LIBS='$LIBS'
  2932.   srcdir='$srcdir'
  2933.   prefix='$prefix'
  2934.   exec_prefix='$exec_prefix'
  2935. ! prsub='$prsub'
  2936.   extrasub='$extrasub'
  2937.   EOF
  2938.   cat >> config.status <<\EOF
  2939.   
  2940. ! top_srcdir=$srcdir
  2941.   
  2942.   CONFIG_FILES=${CONFIG_FILES-"Makefile lib/Makefile src/Makefile man/Makefile"}
  2943. ! for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
  2944. !   srcdir=$top_srcdir
  2945.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2946. !   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  2947. !   if test "$dir" != "$file"; then
  2948. !     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  2949. !     test ! -d $dir && mkdir $dir
  2950.     fi
  2951. !   echo creating $file
  2952. !   rm -f $file
  2953. !   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  2954.     sed -e "
  2955. ! $prsub
  2956.   $extrasub
  2957.   s%@CC@%$CC%g
  2958.   s%@CFLAGS@%$CFLAGS%g
  2959. --- 1693,1741 ----
  2960.   ALLOCA='$ALLOCA'
  2961.   LIBS='$LIBS'
  2962.   srcdir='$srcdir'
  2963. + top_srcdir='$top_srcdir'
  2964.   prefix='$prefix'
  2965.   exec_prefix='$exec_prefix'
  2966. ! ac_prsub='$ac_prsub'
  2967. ! ac_vpsub='$ac_vpsub'
  2968.   extrasub='$extrasub'
  2969.   EOF
  2970.   cat >> config.status <<\EOF
  2971.   
  2972. ! ac_given_srcdir=$srcdir
  2973.   
  2974.   CONFIG_FILES=${CONFIG_FILES-"Makefile lib/Makefile src/Makefile man/Makefile"}
  2975. ! for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  2976.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2977. !   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2978. !   if test "$ac_dir" != "$ac_file"; then
  2979. !     # The file is in a subdirectory.
  2980. !     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2981. !     ac_dir_suffix="/$ac_dir"
  2982. !   else
  2983. !     ac_dir_suffix=
  2984.     fi
  2985. !   # A "../" for each directory in $ac_dir_suffix.
  2986. !   ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2987. !   case "$ac_given_srcdir" in
  2988. !   .)  srcdir=.; top_srcdir="$ac_dots." ;;
  2989. !   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2990. !   *) # Relative path.
  2991. !     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2992. !     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2993. !   esac
  2994. !   /bin/echo creating "$ac_file"
  2995. !   rm -f "$ac_file"
  2996. !   comment_str="Generated automatically from `/bin/echo $ac_file|sed 's|.*/||'`.in by configure."
  2997. !   case "$ac_file" in
  2998. !     *.c | *.h | *.C | *.cc | *.m )  /bin/echo "/* $comment_str */" > "$ac_file" ;;
  2999. !     * )          /bin/echo "# $comment_str"     > "$ac_file" ;;
  3000. !   esac
  3001.     sed -e "
  3002. ! $ac_prsub
  3003. ! $ac_vpsub
  3004.   $extrasub
  3005.   s%@CC@%$CC%g
  3006.   s%@CFLAGS@%$CFLAGS%g
  3007. ***************
  3008. *** 1458,1517 ****
  3009.   s%@ALLOCA@%$ALLOCA%g
  3010.   s%@LIBS@%$LIBS%g
  3011.   s%@srcdir@%$srcdir%g
  3012. ! s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
  3013.   fi; done
  3014.   
  3015. ! CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  3016. ! for file in .. ${CONFIG_HEADERS}; do if test "x$file" != x..; then
  3017. ! echo creating $file
  3018. ! # These sed commands are put into SEDDEFS when defining a macro.
  3019.   # They are broken into pieces to make the sed script easier to manage.
  3020.   # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  3021.   # is the cpp macro being defined and VALUE is the value it is being given.
  3022.   # Each defining turns into a single global substitution command.
  3023.   #
  3024. ! # SEDd sets the value in "#define NAME VALUE" lines.
  3025. ! SEDdA='s@^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3026. ! SEDdB='\([     ][     ]*\)[^     ]*@\1#\2'
  3027. ! SEDdC='\3'
  3028. ! SEDdD='@g'
  3029. ! # SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3030. ! SEDuA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3031. ! SEDuB='\([     ]\)@\1#\2define\3'
  3032. ! SEDuC=' '
  3033. ! SEDuD='\4@g'
  3034. ! # SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3035. ! SEDeA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3036. ! SEDeB='$@\1#\2define\3'
  3037. ! SEDeC=' '
  3038. ! SEDeD='@g'
  3039.   rm -f conftest.sed
  3040.   EOF
  3041.   # Turn off quoting long enough to insert the sed commands.
  3042.   rm -f conftest.sh
  3043.   cat > conftest.sh <<EOF
  3044. ! $SEDDEFS
  3045.   EOF
  3046.   
  3047. ! # Break up $SEDDEFS (now in conftest.sh) because some shells have a limit
  3048.   # on the size of here documents.
  3049.   
  3050.   # Maximum number of lines to put in a single here document.
  3051. ! maxshlines=9
  3052.   
  3053.   while :
  3054.   do
  3055. !   # wc gives bogus results for an empty file on some systems.
  3056. !   lines=`grep -c . conftest.sh`
  3057. !   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  3058.     rm -f conftest.s1 conftest.s2
  3059. !   sed ${maxshlines}q conftest.sh > conftest.s1 # Like head -20.
  3060. !   sed 1,${maxshlines}d conftest.sh > conftest.s2 # Like tail +21.
  3061.     # Write a limited-size here document to append to conftest.sed.
  3062. !   echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  3063.     cat conftest.s1 >> config.status
  3064. !   echo 'CONFEOF' >> config.status
  3065.     rm -f conftest.s1 conftest.sh
  3066.     mv conftest.s2 conftest.sh
  3067.   done
  3068. --- 1749,1809 ----
  3069.   s%@ALLOCA@%$ALLOCA%g
  3070.   s%@LIBS@%$LIBS%g
  3071.   s%@srcdir@%$srcdir%g
  3072. ! s%@top_srcdir@%$top_srcdir%g
  3073. ! s%@prefix@%$prefix%g
  3074. ! s%@exec_prefix@%$exec_prefix%g
  3075. ! s%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
  3076.   fi; done
  3077.   
  3078. ! # These sed commands are put into ac_sed_defs when defining a macro.
  3079.   # They are broken into pieces to make the sed script easier to manage.
  3080.   # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  3081.   # is the cpp macro being defined and VALUE is the value it is being given.
  3082.   # Each defining turns into a single global substitution command.
  3083. + # Hopefully no one uses "!" as a variable value.
  3084. + # Other candidates for the sed separators, like , and @, do get used.
  3085.   #
  3086. ! # ac_d sets the value in "#define NAME VALUE" lines.
  3087. ! ac_dA='s!^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3088. ! ac_dB='\([     ][     ]*\)[^     ]*!\1#\2'
  3089. ! ac_dC='\3'
  3090. ! ac_dD='!g'
  3091. ! # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3092. ! ac_uA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3093. ! ac_uB='\([     ]\)!\1#\2define\3'
  3094. ! ac_uC=' '
  3095. ! ac_uD='\4!g'
  3096. ! # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3097. ! ac_eA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3098. ! ac_eB='$!\1#\2define\3'
  3099. ! ac_eC=' '
  3100. ! ac_eD='!g'
  3101.   rm -f conftest.sed
  3102.   EOF
  3103.   # Turn off quoting long enough to insert the sed commands.
  3104.   rm -f conftest.sh
  3105.   cat > conftest.sh <<EOF
  3106. ! $ac_sed_defs
  3107.   EOF
  3108.   
  3109. ! # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
  3110.   # on the size of here documents.
  3111.   
  3112.   # Maximum number of lines to put in a single here document.
  3113. ! ac_max_sh_lines=9
  3114.   
  3115.   while :
  3116.   do
  3117. !   # wc gives bogus results for an empty file on some AIX systems.
  3118. !   ac_lines=`grep -c . conftest.sh`
  3119. !   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3120.     rm -f conftest.s1 conftest.s2
  3121. !   sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -20.
  3122. !   sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +21.
  3123.     # Write a limited-size here document to append to conftest.sed.
  3124. !   /bin/echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  3125.     cat conftest.s1 >> config.status
  3126. !   /bin/echo 'CONFEOF' >> config.status
  3127.     rm -f conftest.s1 conftest.sh
  3128.     mv conftest.s2 conftest.sh
  3129.   done
  3130. ***************
  3131. *** 1528,1559 ****
  3132.   CONFEOF
  3133.   rm -f conftest.h
  3134.   # Break up the sed commands because old seds have small limits.
  3135. ! maxsedlines=20
  3136. ! cp $top_srcdir/$file.in conftest.h1
  3137. ! while :
  3138. ! do
  3139. !   lines=`grep -c . conftest.sed`
  3140. !   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  3141. !   rm -f conftest.s1 conftest.s2 conftest.h2
  3142. !   sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  3143. !   sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  3144. !   sed -f conftest.s1 < conftest.h1 > conftest.h2
  3145. !   rm -f conftest.s1 conftest.h1 conftest.sed
  3146. !   mv conftest.h2 conftest.h1
  3147. !   mv conftest.s2 conftest.sed
  3148. ! done
  3149. ! rm -f conftest.sed conftest.h
  3150. ! echo "/* $file.  Generated automatically by configure.  */" > conftest.h
  3151. ! cat conftest.h1 >> conftest.h
  3152. ! rm -f conftest.h1
  3153. ! if cmp -s $file conftest.h 2>/dev/null; then
  3154. !   # The file exists and we would not be changing it.
  3155. !   echo "$file is unchanged"
  3156. !   rm -f conftest.h
  3157. ! else
  3158. !   rm -f $file
  3159. !   mv conftest.h $file
  3160. ! fi
  3161.   fi; done
  3162.   
  3163.   
  3164. --- 1820,1856 ----
  3165.   CONFEOF
  3166.   rm -f conftest.h
  3167.   # Break up the sed commands because old seds have small limits.
  3168. ! ac_max_sed_lines=20
  3169. ! CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  3170. ! for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
  3171. !   /bin/echo creating $ac_file
  3172. !   cp $ac_given_srcdir/$ac_file.in conftest.h1
  3173. !   while :
  3174. !   do
  3175. !     ac_lines=`grep -c . conftest.sed`
  3176. !     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3177. !     rm -f conftest.s1 conftest.s2 conftest.h2
  3178. !     sed ${ac_max_sed_lines}q conftest.sed > conftest.s1 # Like head -20.
  3179. !     sed 1,${ac_max_sed_lines}d conftest.sed > conftest.s2 # Like tail +21.
  3180. !     sed -f conftest.s1 < conftest.h1 > conftest.h2
  3181. !     rm -f conftest.s1 conftest.h1 conftest.sed
  3182. !     mv conftest.h2 conftest.h1
  3183. !     mv conftest.s2 conftest.sed
  3184. !   done
  3185. !   rm -f conftest.sed conftest.h
  3186. !   /bin/echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  3187. !   cat conftest.h1 >> conftest.h
  3188. !   rm -f conftest.h1
  3189. !   if cmp -s $ac_file conftest.h 2>/dev/null; then
  3190. !     # The file exists and we would not be changing it.
  3191. !     /bin/echo "$ac_file is unchanged"
  3192. !     rm -f conftest.h
  3193. !   else
  3194. !     rm -f $ac_file
  3195. !     mv conftest.h $ac_file
  3196. !   fi
  3197.   fi; done
  3198.   
  3199.   
  3200. ***************
  3201. *** 1561,1565 ****
  3202.   exit 0
  3203.   EOF
  3204.   chmod +x config.status
  3205. ! ${CONFIG_SHELL-/bin/sh} config.status
  3206.   
  3207. --- 1858,1862 ----
  3208.   exit 0
  3209.   EOF
  3210.   chmod +x config.status
  3211. ! test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} config.status
  3212.   
  3213. diff -rc --new-file textutils-1.9/configure.in /gnu/src/amiga/textutils-1.9/configure.in
  3214. *** textutils-1.9/configure.in    Sat Oct 23 05:02:15 1993
  3215. --- /gnu/src/amiga/textutils-1.9/configure.in    Fri Apr 29 13:04:12 1994
  3216. ***************
  3217. *** 3,15 ****
  3218.   AC_CONFIG_HEADER(config.h)
  3219.   
  3220.   # We want these before the checks, so the checks can modify their values.
  3221. ! test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
  3222. ! test -z "$LDFLAGS" && LDFLAGS=-g
  3223.   
  3224.   AC_PROG_CC
  3225.   
  3226.   # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
  3227. ! test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
  3228.   
  3229.   AC_SUBST(CFLAGS)dnl
  3230.   AC_SUBST(LDFLAGS)dnl
  3231. --- 3,15 ----
  3232.   AC_CONFIG_HEADER(config.h)
  3233.   
  3234.   # We want these before the checks, so the checks can modify their values.
  3235. ! test -z "$CFLAGS" && CFLAGS= auto_cflags=1
  3236. ! test -z "$LDFLAGS" && LDFLAGS=
  3237.   
  3238.   AC_PROG_CC
  3239.   
  3240.   # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
  3241. ! test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
  3242.   
  3243.   AC_SUBST(CFLAGS)dnl
  3244.   AC_SUBST(LDFLAGS)dnl
  3245. ***************
  3246. *** 25,31 ****
  3247.   AC_SIZE_T
  3248.   AC_CONST
  3249.   AC_LONG_DOUBLE
  3250. ! AC_LONG_64_BITS
  3251.   AC_STDC_HEADERS
  3252.   AC_WORDS_BIGENDIAN
  3253.   AC_STAT_MACROS_BROKEN
  3254. --- 25,31 ----
  3255.   AC_SIZE_T
  3256.   AC_CONST
  3257.   AC_LONG_DOUBLE
  3258. ! AC_SIZEOF_TYPE(long, sizevar)
  3259.   AC_STDC_HEADERS
  3260.   AC_WORDS_BIGENDIAN
  3261.   AC_STAT_MACROS_BROKEN
  3262. diff -rc --new-file textutils-1.9/man/Makefile.in /gnu/src/amiga/textutils-1.9/man/Makefile.in
  3263. *** textutils-1.9/man/Makefile.in    Thu Oct 21 16:32:16 1993
  3264. --- /gnu/src/amiga/textutils-1.9/man/Makefile.in    Mon Feb 21 23:12:26 1994
  3265. ***************
  3266. *** 20,26 ****
  3267.   srcdir = @srcdir@
  3268.   VPATH = @srcdir@
  3269.   
  3270. ! prefix = /usr/local
  3271.   exec_prefix = $(prefix)
  3272.   mandir = $(prefix)/man/man1
  3273.   manprefix =
  3274. --- 20,26 ----
  3275.   srcdir = @srcdir@
  3276.   VPATH = @srcdir@
  3277.   
  3278. ! prefix = /gnu
  3279.   exec_prefix = $(prefix)
  3280.   mandir = $(prefix)/man/man1
  3281.   manprefix =
  3282. diff -rc --new-file textutils-1.9/src/Makefile.in /gnu/src/amiga/textutils-1.9/src/Makefile.in
  3283. *** textutils-1.9/src/Makefile.in    Mon Oct 25 15:36:25 1993
  3284. --- /gnu/src/amiga/textutils-1.9/src/Makefile.in    Mon Feb 21 23:12:42 1994
  3285. ***************
  3286. *** 20,26 ****
  3287.   srcdir = @srcdir@
  3288.   VPATH = @srcdir@
  3289.   
  3290. ! prefix = /usr/local
  3291.   exec_prefix = $(prefix)
  3292.   bindir = $(exec_prefix)/bin
  3293.   binprefix = 
  3294. --- 20,26 ----
  3295.   srcdir = @srcdir@
  3296.   VPATH = @srcdir@
  3297.   
  3298. ! prefix = /gnu
  3299.   exec_prefix = $(prefix)
  3300.   bindir = $(exec_prefix)/bin
  3301.   binprefix = 
  3302. diff -rc --new-file textutils-1.9/src/cat.c /gnu/src/amiga/textutils-1.9/src/cat.c
  3303. *** textutils-1.9/src/cat.c    Sat Oct 23 04:56:27 1993
  3304. --- /gnu/src/amiga/textutils-1.9/src/cat.c    Mon Feb 21 23:08:09 1994
  3305. ***************
  3306. *** 119,125 ****
  3307.   }
  3308.   
  3309.   
  3310. - void
  3311.   main (argc, argv)
  3312.        int argc;
  3313.        char *argv[];
  3314. --- 119,124 ----
  3315. diff -rc --new-file textutils-1.9/src/cksum.c /gnu/src/amiga/textutils-1.9/src/cksum.c
  3316. *** textutils-1.9/src/cksum.c    Sat Oct 23 04:56:27 1993
  3317. --- /gnu/src/amiga/textutils-1.9/src/cksum.c    Mon Feb 21 23:08:10 1994
  3318. ***************
  3319. *** 94,100 ****
  3320.     return rem & 0xFFFFFFFF;    /* Make it run on 64-bit machine.  */
  3321.   }
  3322.   
  3323. - void
  3324.   main ()
  3325.   {
  3326.     int i;
  3327. --- 94,99 ----
  3328. ***************
  3329. *** 292,298 ****
  3330.     exit (status);
  3331.   }
  3332.   
  3333. - void
  3334.   main (argc, argv)
  3335.        int argc;
  3336.        char **argv;
  3337. --- 291,296 ----
  3338. diff -rc --new-file textutils-1.9/src/comm.c /gnu/src/amiga/textutils-1.9/src/comm.c
  3339. *** textutils-1.9/src/comm.c    Sat Oct 23 04:56:28 1993
  3340. --- /gnu/src/amiga/textutils-1.9/src/comm.c    Mon Feb 21 23:08:11 1994
  3341. ***************
  3342. *** 67,73 ****
  3343.   static void writeline ();
  3344.   static void usage ();
  3345.   
  3346. - void
  3347.   main (argc, argv)
  3348.        int argc;
  3349.        char *argv[];
  3350. --- 67,72 ----
  3351. diff -rc --new-file textutils-1.9/src/csplit.c /gnu/src/amiga/textutils-1.9/src/csplit.c
  3352. *** textutils-1.9/src/csplit.c    Fri Oct 29 17:58:19 1993
  3353. --- /gnu/src/amiga/textutils-1.9/src/csplit.c    Wed May  4 16:32:57 1994
  3354. ***************
  3355. *** 36,43 ****
  3356.   #ifdef HAVE_LIMITS_H
  3357.   #include <limits.h>
  3358.   #endif /* HAVE_LIMITS_H */
  3359. - #include "regex.h"
  3360.   #include "system.h"
  3361.   #include "version.h"
  3362.   
  3363.   #ifdef STDC_HEADERS
  3364. --- 36,43 ----
  3365.   #ifdef HAVE_LIMITS_H
  3366.   #include <limits.h>
  3367.   #endif /* HAVE_LIMITS_H */
  3368.   #include "system.h"
  3369. + #include "regex.h"    /* After system.h to avoid clashes with system defines */
  3370.   #include "version.h"
  3371.   
  3372.   #ifdef STDC_HEADERS
  3373. ***************
  3374. *** 1440,1446 ****
  3375.     cleanup ();
  3376.   }
  3377.   
  3378. - void
  3379.   main (argc, argv)
  3380.        int argc;
  3381.        char **argv;
  3382. --- 1440,1445 ----
  3383. diff -rc --new-file textutils-1.9/src/cut.c /gnu/src/amiga/textutils-1.9/src/cut.c
  3384. *** textutils-1.9/src/cut.c    Sun Nov  7 03:51:12 1993
  3385. --- /gnu/src/amiga/textutils-1.9/src/cut.c    Mon Feb 21 23:08:13 1994
  3386. ***************
  3387. *** 168,174 ****
  3388.     {0, 0, 0, 0}
  3389.   };
  3390.   
  3391. - void
  3392.   main (argc, argv)
  3393.        int argc;
  3394.        char **argv;
  3395. --- 168,173 ----
  3396. diff -rc --new-file textutils-1.9/src/expand.c /gnu/src/amiga/textutils-1.9/src/expand.c
  3397. *** textutils-1.9/src/expand.c    Sun Oct 24 19:42:06 1993
  3398. --- /gnu/src/amiga/textutils-1.9/src/expand.c    Mon Feb 21 23:08:14 1994
  3399. ***************
  3400. *** 121,127 ****
  3401.     {NULL, 0, NULL, 0}
  3402.   };
  3403.   
  3404. - void
  3405.   main (argc, argv)
  3406.        int argc;
  3407.        char **argv;
  3408. --- 121,126 ----
  3409. diff -rc --new-file textutils-1.9/src/fold.c /gnu/src/amiga/textutils-1.9/src/fold.c
  3410. *** textutils-1.9/src/fold.c    Tue Nov  2 20:46:59 1993
  3411. --- /gnu/src/amiga/textutils-1.9/src/fold.c    Mon Feb 21 23:08:14 1994
  3412. ***************
  3413. *** 95,101 ****
  3414.     exit (status);
  3415.   }
  3416.   
  3417. - void
  3418.   main (argc, argv)
  3419.        int argc;
  3420.        char **argv;
  3421. --- 95,100 ----
  3422. diff -rc --new-file textutils-1.9/src/head.c /gnu/src/amiga/textutils-1.9/src/head.c
  3423. *** textutils-1.9/src/head.c    Sun Oct 24 19:42:08 1993
  3424. --- /gnu/src/amiga/textutils-1.9/src/head.c    Mon Feb 21 23:08:15 1994
  3425. ***************
  3426. *** 105,111 ****
  3427.     {NULL, 0, NULL, 0}
  3428.   };
  3429.   
  3430. - void
  3431.   main (argc, argv)
  3432.        int argc;
  3433.        char **argv;
  3434. --- 105,110 ----
  3435. diff -rc --new-file textutils-1.9/src/join.c /gnu/src/amiga/textutils-1.9/src/join.c
  3436. *** textutils-1.9/src/join.c    Sat Oct 30 19:31:11 1993
  3437. --- /gnu/src/amiga/textutils-1.9/src/join.c    Mon Feb 21 23:08:16 1994
  3438. ***************
  3439. *** 569,575 ****
  3440.     return added;
  3441.   }
  3442.   
  3443. - void
  3444.   main (argc, argv)
  3445.        int argc;
  3446.        char *argv[];
  3447. --- 569,574 ----
  3448. diff -rc --new-file textutils-1.9/src/nl.c /gnu/src/amiga/textutils-1.9/src/nl.c
  3449. *** textutils-1.9/src/nl.c    Sun Oct 24 19:42:09 1993
  3450. --- /gnu/src/amiga/textutils-1.9/src/nl.c    Wed May  4 16:33:59 1994
  3451. ***************
  3452. *** 32,40 ****
  3453.   #include <stdio.h>
  3454.   #include <sys/types.h>
  3455.   #include <getopt.h>
  3456. - #include <regex.h>
  3457.   #include "linebuffer.h"
  3458.   #include "system.h"
  3459.   #include "version.h"
  3460.   
  3461.   #ifndef TRUE
  3462. --- 32,40 ----
  3463.   #include <stdio.h>
  3464.   #include <sys/types.h>
  3465.   #include <getopt.h>
  3466.   #include "linebuffer.h"
  3467.   #include "system.h"
  3468. + #include "regex.h"    /* After "system.h" to avoid clashes with system defines */
  3469.   #include "version.h"
  3470.   
  3471.   #ifndef TRUE
  3472. ***************
  3473. *** 184,190 ****
  3474.     {NULL, 0, NULL, 0}
  3475.   };
  3476.   
  3477. - void
  3478.   main (argc, argv)
  3479.        int argc;
  3480.        char **argv;
  3481. --- 184,189 ----
  3482. diff -rc --new-file textutils-1.9/src/od.c /gnu/src/amiga/textutils-1.9/src/od.c
  3483. *** textutils-1.9/src/od.c    Thu Oct 28 13:33:42 1993
  3484. --- /gnu/src/amiga/textutils-1.9/src/od.c    Mon Feb 21 23:08:18 1994
  3485. ***************
  3486. *** 1684,1690 ****
  3487.     return err;
  3488.   }
  3489.   
  3490. - int
  3491.   main (argc, argv)
  3492.        int argc;
  3493.        char **argv;
  3494. --- 1684,1689 ----
  3495. diff -rc --new-file textutils-1.9/src/paste.c /gnu/src/amiga/textutils-1.9/src/paste.c
  3496. *** textutils-1.9/src/paste.c    Sun Oct 24 19:42:13 1993
  3497. --- /gnu/src/amiga/textutils-1.9/src/paste.c    Mon Feb 21 23:08:19 1994
  3498. ***************
  3499. *** 104,110 ****
  3500.     {0, 0, 0, 0}
  3501.   };
  3502.   
  3503. - void
  3504.   main (argc, argv)
  3505.        int argc;
  3506.        char **argv;
  3507. --- 104,109 ----
  3508. diff -rc --new-file textutils-1.9/src/pr.c /gnu/src/amiga/textutils-1.9/src/pr.c
  3509. *** textutils-1.9/src/pr.c    Sat Oct 23 04:56:39 1993
  3510. --- /gnu/src/amiga/textutils-1.9/src/pr.c    Mon Feb 21 23:08:20 1994
  3511. ***************
  3512. *** 467,473 ****
  3513.     return n;
  3514.   }
  3515.   
  3516. - void
  3517.   main (argc, argv)
  3518.        int argc;
  3519.        char **argv;
  3520. --- 467,472 ----
  3521. diff -rc --new-file textutils-1.9/src/sort.c /gnu/src/amiga/textutils-1.9/src/sort.c
  3522. *** textutils-1.9/src/sort.c    Mon Oct 25 15:36:27 1993
  3523. --- /gnu/src/amiga/textutils-1.9/src/sort.c    Mon Feb 21 23:08:22 1994
  3524. ***************
  3525. *** 1444,1450 ****
  3526.     return s;
  3527.   }
  3528.   
  3529. - void
  3530.   main (argc, argv)
  3531.        int argc;
  3532.        char *argv[];
  3533. --- 1444,1449 ----
  3534. diff -rc --new-file textutils-1.9/src/split.c /gnu/src/amiga/textutils-1.9/src/split.c
  3535. *** textutils-1.9/src/split.c    Sun Oct 24 19:42:14 1993
  3536. --- /gnu/src/amiga/textutils-1.9/src/split.c    Mon Feb 21 23:08:23 1994
  3537. ***************
  3538. *** 127,133 ****
  3539.     exit (status);
  3540.   }
  3541.   
  3542. - void
  3543.   main (argc, argv)
  3544.        int argc;
  3545.        char *argv[];
  3546. --- 127,132 ----
  3547. diff -rc --new-file textutils-1.9/src/sum.c /gnu/src/amiga/textutils-1.9/src/sum.c
  3548. *** textutils-1.9/src/sum.c    Sat Oct 23 04:56:44 1993
  3549. --- /gnu/src/amiga/textutils-1.9/src/sum.c    Mon Feb 21 23:08:23 1994
  3550. ***************
  3551. *** 90,96 ****
  3552.     exit (status);
  3553.   }
  3554.   
  3555. - void
  3556.   main (argc, argv)
  3557.        int argc;
  3558.        char **argv;
  3559. --- 90,95 ----
  3560. diff -rc --new-file textutils-1.9/src/tac.c /gnu/src/amiga/textutils-1.9/src/tac.c
  3561. *** textutils-1.9/src/tac.c    Sun Oct 24 19:42:16 1993
  3562. --- /gnu/src/amiga/textutils-1.9/src/tac.c    Wed May  4 16:34:48 1994
  3563. ***************
  3564. *** 50,57 ****
  3565.   #include <getopt.h>
  3566.   #include <sys/types.h>
  3567.   #include <signal.h>
  3568. - #include <regex.h>
  3569.   #include "system.h"
  3570.   #include "version.h"
  3571.   
  3572.   #ifndef STDC_HEADERS
  3573. --- 50,57 ----
  3574.   #include <getopt.h>
  3575.   #include <sys/types.h>
  3576.   #include <signal.h>
  3577.   #include "system.h"
  3578. + #include "regex.h"    /* After "system.h" to avoid clashes with system defines */
  3579.   #include "version.h"
  3580.   
  3581.   #ifndef STDC_HEADERS
  3582. ***************
  3583. *** 156,162 ****
  3584.     exit (status);
  3585.   }
  3586.   
  3587. - void
  3588.   main (argc, argv)
  3589.        int argc;
  3590.        char **argv;
  3591. --- 156,161 ----
  3592. diff -rc --new-file textutils-1.9/src/tail.c /gnu/src/amiga/textutils-1.9/src/tail.c
  3593. *** textutils-1.9/src/tail.c    Sun Oct 24 19:42:17 1993
  3594. --- /gnu/src/amiga/textutils-1.9/src/tail.c    Mon Feb 21 23:08:25 1994
  3595. ***************
  3596. *** 141,147 ****
  3597.     {NULL, 0, NULL, 0}
  3598.   };
  3599.   
  3600. - void
  3601.   main (argc, argv)
  3602.        int argc;
  3603.        char **argv;
  3604. --- 141,146 ----
  3605. diff -rc --new-file textutils-1.9/src/tr.c /gnu/src/amiga/textutils-1.9/src/tr.c
  3606. *** textutils-1.9/src/tr.c    Sun Oct 24 18:57:29 1993
  3607. --- /gnu/src/amiga/textutils-1.9/src/tr.c    Mon Feb 21 23:08:27 1994
  3608. ***************
  3609. *** 1702,1708 ****
  3610.         in_set[i] = (!in_set[i]);
  3611.   }
  3612.   
  3613. - void
  3614.   main (argc, argv)
  3615.        int argc;
  3616.        char **argv;
  3617. --- 1702,1707 ----
  3618. diff -rc --new-file textutils-1.9/src/unexpand.c /gnu/src/amiga/textutils-1.9/src/unexpand.c
  3619. *** textutils-1.9/src/unexpand.c    Sun Oct 24 19:42:18 1993
  3620. --- /gnu/src/amiga/textutils-1.9/src/unexpand.c    Mon Feb 21 23:08:28 1994
  3621. ***************
  3622. *** 123,129 ****
  3623.     {NULL, 0, NULL, 0}
  3624.   };
  3625.   
  3626. - void
  3627.   main (argc, argv)
  3628.        int argc;
  3629.        char **argv;
  3630. --- 123,128 ----
  3631. diff -rc --new-file textutils-1.9/src/uniq.c /gnu/src/amiga/textutils-1.9/src/uniq.c
  3632. *** textutils-1.9/src/uniq.c    Sun Oct 24 19:42:19 1993
  3633. --- /gnu/src/amiga/textutils-1.9/src/uniq.c    Mon Feb 21 23:08:29 1994
  3634. ***************
  3635. *** 99,105 ****
  3636.     {NULL, 0, NULL, 0}
  3637.   };
  3638.   
  3639. - void
  3640.   main (argc, argv)
  3641.        int argc;
  3642.        char *argv[];
  3643. --- 99,104 ----
  3644. diff -rc --new-file textutils-1.9/src/wc.c /gnu/src/amiga/textutils-1.9/src/wc.c
  3645. *** textutils-1.9/src/wc.c    Sat Oct 23 04:56:50 1993
  3646. --- /gnu/src/amiga/textutils-1.9/src/wc.c    Mon Feb 21 23:08:29 1994
  3647. ***************
  3648. *** 104,110 ****
  3649.     exit (status);
  3650.   }
  3651.   
  3652. - void
  3653.   main (argc, argv)
  3654.        int argc;
  3655.        char **argv;
  3656. --- 104,109 ----
  3657. ***************
  3658. *** 200,211 ****
  3659.       }
  3660.   }
  3661.   
  3662.   static void
  3663.   wc (fd, file)
  3664.        int fd;
  3665.        char *file;
  3666.   {
  3667. -   char buf[BUFFER_SIZE];
  3668.     register int bytes_read;
  3669.     register int in_word = 0;
  3670.     register unsigned long lines, words, chars;
  3671. --- 199,211 ----
  3672.       }
  3673.   }
  3674.   
  3675. + char buf[BUFFER_SIZE];        /* Move buffer off stack; David Gay */
  3676.   static void
  3677.   wc (fd, file)
  3678.        int fd;
  3679.        char *file;
  3680.   {
  3681.     register int bytes_read;
  3682.     register int in_word = 0;
  3683.     register unsigned long lines, words, chars;
  3684.