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

  1. diff -rc --new-file find-3.8/INSTALL /gnu/src/amiga/find-3.8/INSTALL
  2. *** find-3.8/INSTALL    Fri Jan 22 17:16:53 1993
  3. --- /gnu/src/amiga/find-3.8/INSTALL    Wed Feb 23 15:56:55 1994
  4. ***************
  5. *** 33,40 ****
  6.   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/lib, /usr/local/man, etc.  You can specify
  10. ! an installation prefix other than /usr/local by giving `configure' the
  11.   option `--prefix=PATH'.  Alternately, you can do so by giving a value
  12.   for the `prefix' variable when you run `make', e.g.,
  13.       make prefix=/usr/gnu
  14. --- 33,40 ----
  15.   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/lib, /gnu/man, etc.  You can specify
  19. ! an installation prefix other than /gnu by giving `configure' the
  20.   option `--prefix=PATH'.  Alternately, you can do so by giving a value
  21.   for the `prefix' variable when you run `make', e.g.,
  22.       make prefix=/usr/gnu
  23. diff -rc --new-file find-3.8/Makefile.in /gnu/src/amiga/find-3.8/Makefile.in
  24. *** find-3.8/Makefile.in    Tue Mar 23 19:14:52 1993
  25. --- /gnu/src/amiga/find-3.8/Makefile.in    Sun Jul 10 10:28:46 1994
  26. ***************
  27. *** 69,79 ****
  28.   
  29.   DEFS = @DEFS@
  30.   
  31. ! CFLAGS = -g
  32. ! LDFLAGS = -g
  33.   LIBS = @LIBS@
  34.   
  35. ! prefix = /usr/local
  36.   exec_prefix = $(prefix)
  37.   
  38.   # Prefix for each installed program, normally empty or `g'.
  39. --- 69,79 ----
  40.   
  41.   DEFS = @DEFS@
  42.   
  43. ! CFLAGS = -O2
  44. ! LDFLAGS =
  45.   LIBS = @LIBS@
  46.   
  47. ! prefix = /gnu
  48.   exec_prefix = $(prefix)
  49.   
  50.   # Prefix for each installed program, normally empty or `g'.
  51. ***************
  52. *** 115,124 ****
  53.   SUBDIRS = lib find xargs locate man
  54.   
  55.   all:
  56. !     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  57.   
  58.   install uninstall TAGS clean mostlyclean distclean realclean::
  59. !     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  60.   
  61.   distclean realclean::
  62.       rm -f Makefile config.status
  63. --- 115,124 ----
  64.   SUBDIRS = lib find xargs locate man
  65.   
  66.   all:
  67. !     @for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  68.   
  69.   install uninstall TAGS clean mostlyclean distclean realclean::
  70. !     @for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  71.   
  72.   distclean realclean::
  73.       rm -f Makefile config.status
  74. ***************
  75. *** 128,134 ****
  76.       rm -rf `cat .fname`
  77.       mkdir `cat .fname`
  78.       ln $(DISTFILES) `cat .fname`
  79. !     for dir in $(SUBDIRS); do mkdir `cat .fname`/$$dir; cd $$dir; $(MAKE) $@; cd ..; done
  80.       tar chzf `cat .fname`.tar.z `cat .fname`
  81.       rm -rf `cat .fname` .fname
  82.   
  83. --- 128,134 ----
  84.       rm -rf `cat .fname`
  85.       mkdir `cat .fname`
  86.       ln $(DISTFILES) `cat .fname`
  87. !     @for dir in $(SUBDIRS); do mkdir `cat .fname`/$$dir; cd $$dir; $(MAKE) $@; cd ..; done
  88.       tar chzf `cat .fname`.tar.z `cat .fname`
  89.       rm -rf `cat .fname` .fname
  90.   
  91. diff -rc --new-file find-3.8/Product-Info /gnu/src/amiga/find-3.8/Product-Info
  92. *** find-3.8/Product-Info    Thu Jan  1 00:00:00 1970
  93. --- /gnu/src/amiga/find-3.8/Product-Info    Tue Jul 12 17:08:50 1994
  94. ***************
  95. *** 0 ****
  96. --- 1,40 ----
  97. + .name
  98. + find
  99. + .fullname
  100. + GNU find, xargs, and locate
  101. + .type
  102. + Programmer Tool
  103. + .short
  104. + GNU find, xargs, and locate
  105. + .description
  106. + This package contains the GNU find, xargs, and locate programs.  This
  107. + version of find and xargs comply with POSIX 1003.2, and also support
  108. + some additional options, some borrowed from Unix and some unique to
  109. + GNU.
  110. + To gain speed, GNU find now avoids statting files whenever possible.
  111. + It does this by: (1) Checking the number of links to directories and
  112. + not statting files that it knows aren't directories until it
  113. + encounters a test or action that needs the stat info.  (2) Rearranging
  114. + the command line, where possible, so that it can do tests that don't
  115. + require a stat before tests that do, in hopes that the latter will be
  116. + skipped because of an OR or AND.  (But it only does this where it will
  117. + leave the output unchanged.)
  118. + The locate utility is based on James Woods' public domain fast-find
  119. + code, which is also distributed with the 4.3BSD find.  Because POSIX
  120. + requires `find foo' to have the same effect as `find foo -print', the
  121. + fast-find searching has been moved to a separate program, `locate';
  122. + the same thing has been done in 4.3BSD-reno/4.4BSD.  If you use
  123. + locate, you should run the included `updatedb' script from cron
  124. + periodically (typically nightly).
  125. + .version
  126. + 3.8
  127. + .author
  128. + Free Software Foundation
  129. + .requirements
  130. + Amiga binaries require ixemul.library.
  131. + .distribution
  132. + GNU Public License
  133. + .described-by
  134. + Fred Fish (fnf@amigalib.com)
  135. diff -rc --new-file find-3.8/configure /gnu/src/amiga/find-3.8/configure
  136. *** find-3.8/configure    Mon Mar 29 21:02:39 1993
  137. --- /gnu/src/amiga/find-3.8/configure    Mon Apr 25 12:19:00 1994
  138. ***************
  139. *** 1,132 ****
  140.   #!/bin/sh
  141.   # Guess values for system-dependent variables and create Makefiles.
  142. ! # Generated automatically using autoconf.
  143. ! # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  144.   
  145. ! # This program is free software; you can redistribute it and/or modify
  146. ! # it under the terms of the GNU General Public License as published by
  147. ! # the Free Software Foundation; either version 2, or (at your option)
  148.   # any later version.
  149.   
  150. ! # This program is distributed in the hope that it will be useful,
  151. ! # but WITHOUT ANY WARRANTY; without even the implied warranty of
  152. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  153. ! # GNU General Public License for more details.
  154.   
  155.   # You should have received a copy of the GNU General Public License
  156.   # along with this program; if not, write to the Free Software
  157.   # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  158.   
  159. ! # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp] [--no-create]
  160. ! #        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE] [TARGET]
  161. ! # Ignores all args except --srcdir, --prefix, --exec-prefix, --no-create, and
  162. ! # --with-PACKAGE unless this script has special code to handle it.
  163.   
  164.   
  165. ! for arg
  166.   do
  167. -   # Handle --exec-prefix with a space before the argument.
  168. -   if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  169. -   # Handle --host with a space before the argument.
  170. -   elif test x$next_host = xyes; then next_host=
  171. -   # Handle --prefix with a space before the argument.
  172. -   elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  173. -   # Handle --srcdir with a space before the argument.
  174. -   elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  175. -   else
  176. -     case $arg in
  177. -      # For backward compatibility, also recognize exact --exec_prefix.
  178. -      -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  179. -     exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  180. -      -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  181. -     next_exec_prefix=yes ;;
  182. -      -gas | --gas | --ga | --g) ;;
  183. -      -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  184. -      -host | --host | --hos | --ho | --h)
  185. -     next_host=yes ;;
  186. -      -nfp | --nfp | --nf) ;;
  187. -      -no-create | --no-create | --no-creat | --no-crea | --no-cre | --no-cr | --no-c | --no- | --no)
  188. -         no_create=1 ;;
  189. -      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  190. -     prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  191. -      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  192. -     next_prefix=yes ;;
  193. -      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  194. -     srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  195. -      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  196. -     next_srcdir=yes ;;
  197. -      -with-* | --with-*)
  198. -        package=`echo $arg|sed 's/-*with-//'`
  199. -        # Delete all the valid chars; see if any are left.
  200. -        if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then
  201. -          echo "configure: $package: invalid package name" >&2; exit 1
  202. -        fi
  203. -        eval "with_`echo $package|sed s/-/_/g`=1" ;;
  204.   
  205. !      -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
  206. !        verbose=yes ;;
  207.   
  208. !      *) ;;
  209.       esac
  210. !   fi
  211.   done
  212.   
  213. ! trap 'rm -f conftest* core; exit 1' 1 3 15
  214.   
  215. ! rm -f conftest*
  216. ! compile='${CC-cc} $CFLAGS $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  217.   
  218.   # A filename unique to this package, relative to the directory that
  219.   # configure is in, which we can look for to find out if srcdir is correct.
  220. ! unique_file=find/pred.c
  221.   
  222.   # Find the source files, if location was not specified.
  223.   if test -z "$srcdir"; then
  224. !   srcdirdefaulted=yes
  225.     # Try the directory containing this script, then `..'.
  226. !   prog=$0
  227. !   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  228. !   test "X$confdir" = "X$prog" && confdir=.
  229. !   srcdir=$confdir
  230. !   if test ! -r $srcdir/$unique_file; then
  231.       srcdir=..
  232.     fi
  233.   fi
  234. ! if test ! -r $srcdir/$unique_file; then
  235. !   if test x$srcdirdefaulted = xyes; then
  236. !     echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  237.     else
  238. !     echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  239.     fi
  240. -   exit 1
  241.   fi
  242. ! # Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  243. ! # But we can't avoid them for `..', to make subdirectories work.
  244. ! case $srcdir in
  245. !   .|/*|~*) ;;
  246. !   *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  247. ! esac
  248.   
  249.   if test -z "$CC"; then
  250. !   echo checking for gcc
  251. !   saveifs="$IFS"; IFS="${IFS}:"
  252. !   for dir in $PATH; do
  253. !     test -z "$dir" && dir=.
  254. !     if test -f $dir/gcc; then
  255.         CC="gcc"
  256.         break
  257.       fi
  258.     done
  259. !   IFS="$saveifs"
  260.   fi
  261.   test -z "$CC" && CC="cc"
  262.   
  263.   # Find out if we are using GNU C, under whatever name.
  264.   cat > conftest.c <<EOF
  265. --- 1,335 ----
  266.   #!/bin/sh
  267.   # Guess values for system-dependent variables and create Makefiles.
  268. ! # Generated automatically using autoconf version 1.9 
  269. ! # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  270.   
  271. ! # This configure script is free software; you can redistribute it and/or
  272. ! # modify it under the terms of the GNU General Public License as published
  273. ! # by the Free Software Foundation; either version 2, or (at your option)
  274.   # any later version.
  275.   
  276. ! # This script is distributed in the hope that it will be useful, but
  277. ! # WITHOUT ANY WARRANTY; without even the implied warranty of
  278. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  279. ! # Public License for more details.
  280.   
  281.   # You should have received a copy of the GNU General Public License
  282.   # along with this program; if not, write to the Free Software
  283.   # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  284.   
  285. ! # Save the original args to write them into config.status later.
  286. ! configure_args="$*"
  287.   
  288. + # Only options that might do something get documented.
  289. + ac_usage="Usage: configure [options] [host]
  290. + Options: [defaults in brackets after descriptions]
  291. + --build=BUILD        configure for building on BUILD [BUILD=HOST]
  292. + --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  293. + --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  294. + --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  295. + --help            print this message
  296. + --host=HOST        configure for HOST [guessed]
  297. + --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  298. + --quiet, --silent    do not print \`checking for...' messages
  299. + --srcdir=DIR        find the sources in DIR [configure dir or ..]
  300. + --target=TARGET        configure for TARGET [TARGET=HOST]
  301. + --verbose        print results of checks
  302. + --version        print the version of autoconf that created configure
  303. + --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  304. + --without-PACKAGE    do not use PACKAGE (same as --with-PACKAGE=no)
  305. + --x-includes=DIR    X include files are in DIR
  306. + --x-libraries=DIR    X library files are in DIR"
  307. + # Initialize some variables set by options.
  308. + # The variables have the same names as the options, with
  309. + # dashes changed to underlines.
  310. + build=NONE
  311. + exec_prefix=
  312. + host=NONE
  313. + no_create=
  314. + nonopt=NONE
  315. + norecursion=
  316. + prefix=
  317. + program_prefix=
  318. + program_suffix=
  319. + program_transform_name=
  320. + silent=
  321. + srcdir=
  322. + target=NONE
  323. + verbose=
  324. + x_includes=
  325. + x_libraries=
  326.   
  327. ! ac_prev=
  328. ! for ac_option
  329.   do
  330.   
  331. !   # If the previous option needs an argument, assign it.
  332. !   if test -n "$ac_prev"; then
  333. !     eval "$ac_prev=\$ac_option"
  334. !     ac_prev=
  335. !     continue
  336. !   fi
  337. !   # Accept (but ignore some of) the important Cygnus configure
  338. !   # options, so we can diagnose typos.
  339. !   case "$ac_option" in
  340. !   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  341. !   *) ac_optarg= ;;
  342. !   esac
  343. !   case "$ac_option" in
  344. !   -build | --build | --buil | --bui | --bu | --b)
  345. !     ac_prev=build ;;
  346. !   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  347. !     build="$ac_optarg" ;;
  348. !   -disable-* | --disable-*)
  349. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  350. !     # Reject names that aren't valid shell variable names.
  351. !     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  352. !       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  353. !     fi
  354. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  355. !     eval "enable_${ac_feature}=no" ;;
  356. !   -enable-* | --enable-*)
  357. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  358. !     # Reject names that aren't valid shell variable names.
  359. !     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  360. !       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  361. !     fi
  362. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  363. !     case "$ac_option" in
  364. !       *=*) ;;
  365. !       *) ac_optarg=yes ;;
  366. !     esac
  367. !     eval "enable_${ac_feature}='$ac_optarg'" ;;
  368.   
  369. !   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  370. !   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  371. !   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  372. !   | --exec | --exe | --ex)
  373. !     ac_prev=exec_prefix ;;
  374. !   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  375. !   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  376. !   | --exec=* | --exe=* | --ex=*)
  377. !     exec_prefix="$ac_optarg" ;;
  378. !   -gas | --gas | --ga | --g)
  379. !     with_gas=yes ;; # Obsolete; use --with-gas.
  380. !   -help | --help | --hel | --he)
  381. !     cat << EOF
  382. ! $ac_usage
  383. ! EOF
  384. !     exit 0 ;;
  385. !   -host | --host | --hos | --ho)
  386. !     ac_prev=host ;;
  387. !   -host=* | --host=* | --hos=* | --ho=*)
  388. !     host="$ac_optarg" ;;
  389. !   -nfp | --nfp | --nf)
  390. !     with_fp=no ;; # Obsolete; use --without-fp.
  391. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  392. !   | --no-cr | --no-c)
  393. !     no_create=yes ;;
  394. !   -norecursion | --norecursion | --norecursio | --norecursi \
  395. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  396. !     norecursion=yes ;;
  397. !   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  398. !     ac_prev=prefix ;;
  399. !   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  400. !     prefix="$ac_optarg" ;;
  401. !   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  402. !   | --program-pre | --program-pr | --program-p)
  403. !     ac_prev=program_prefix ;;
  404. !   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  405. !   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  406. !     program_prefix="$ac_optarg" ;;
  407. !   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  408. !   | --program-suf | --program-su | --program-s)
  409. !     ac_prev=program_suffix ;;
  410. !   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  411. !   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  412. !     program_suffix="$ac_optarg" ;;
  413. !   -program-transform-name | --program-transform-name \
  414. !   | --program-transform-nam | --program-transform-na \
  415. !   | --program-transform-n | --program-transform- \
  416. !   | --program-transform | --program-transfor \
  417. !   | --program-transfo | --program-transf \
  418. !   | --program-trans | --program-tran \
  419. !   | --progr-tra | --program-tr | --program-t)
  420. !     ac_prev=program_transform_name ;;
  421. !   -program-transform-name=* | --program-transform-name=* \
  422. !   | --program-transform-nam=* | --program-transform-na=* \
  423. !   | --program-transform-n=* | --program-transform-=* \
  424. !   | --program-transform=* | --program-transfor=* \
  425. !   | --program-transfo=* | --program-transf=* \
  426. !   | --program-trans=* | --program-tran=* \
  427. !   | --progr-tra=* | --program-tr=* | --program-t=*)
  428. !     program_transform_name="$ac_optarg" ;;
  429. !   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  430. !   | -silent | --silent | --silen | --sile | --sil)
  431. !     silent=yes ;;
  432. !   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  433. !     ac_prev=srcdir ;;
  434. !   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  435. !     srcdir="$ac_optarg" ;;
  436. !   -target | --target | --targe | --targ | --tar | --ta | --t)
  437. !     ac_prev=target ;;
  438. !   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  439. !     target="$ac_optarg" ;;
  440. !   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  441. !     verbose=yes ;;
  442. !   -version | --version | --versio | --versi | --vers)
  443. !     /bin/echo "configure generated by autoconf version 1.9"
  444. !     exit 0 ;;
  445. !   -with-* | --with-*)
  446. !     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  447. !     # Reject names that aren't valid shell variable names.
  448. !     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  449. !       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  450. !     fi
  451. !     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  452. !     case "$ac_option" in
  453. !       *=*) ;;
  454. !       *) ac_optarg=yes ;;
  455.       esac
  456. !     eval "with_${ac_package}='$ac_optarg'" ;;
  457. !   -without-* | --without-*)
  458. !     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  459. !     # Reject names that aren't valid shell variable names.
  460. !     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  461. !       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  462. !     fi
  463. !     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  464. !     eval "with_${ac_package}=no" ;;
  465. !   --x) with_x=yes ;; # Obsolete; use --with-x.
  466. !   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  467. !   | --x-incl | --x-inc | --x-in | --x-i)
  468. !     ac_prev=x_includes ;;
  469. !   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  470. !   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  471. !     x_includes="$ac_optarg" ;;
  472. !   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  473. !   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  474. !     ac_prev=x_libraries ;;
  475. !   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  476. !   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  477. !     x_libraries="$ac_optarg" ;;
  478. !   -*) /bin/echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  479. !     ;;
  480. !   *) 
  481. !     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  482. !       /bin/echo "configure: warning: $ac_option: invalid host type" >&2
  483. !     fi
  484. !     if test "x$nonopt" != xNONE; then
  485. !       /bin/echo "configure: can only configure for one host and one target at a time" >&2; exit 1
  486. !     fi
  487. !     nonopt="$ac_option"
  488. !     ;;
  489. !   esac
  490.   done
  491.   
  492. ! if test -n "$ac_prev"; then
  493. !   /bin/echo "configure: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  494. ! fi
  495.   
  496. ! trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  497. ! trap 'rm -fr confdefs* $ac_clean_files' 0
  498. ! # Save the original args if we used an alternate arg parser.
  499. ! ac_configure_temp="${configure_args-$*}"
  500. ! # Strip out --no-create and --norecursion so they don't pile up.
  501. ! configure_args=
  502. ! for ac_arg in $ac_configure_temp; do
  503. !   case "$ac_arg" in
  504. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  505. !   | --no-cr | --no-c) ;;
  506. !   -norecursion | --norecursion | --norecursio | --norecursi \
  507. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  508. !   *) configure_args="$configure_args $ac_arg" ;;
  509. !   esac
  510. ! done
  511. ! # NLS nuisances.
  512. ! # These must not be set unconditionally because not all systems understand
  513. ! # e.g. LANG=C (notably SCO).
  514. ! if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  515. ! if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  516. ! # confdefs.h avoids OS command line length limits that DEFS can exceed.
  517. ! rm -rf conftest* confdefs.h
  518. ! # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  519. ! /bin/echo > confdefs.h
  520.   
  521.   # A filename unique to this package, relative to the directory that
  522.   # configure is in, which we can look for to find out if srcdir is correct.
  523. ! ac_unique_file=find/pred.c
  524.   
  525.   # Find the source files, if location was not specified.
  526.   if test -z "$srcdir"; then
  527. !   ac_srcdir_defaulted=yes
  528.     # Try the directory containing this script, then `..'.
  529. !   ac_prog=$0
  530. !   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  531. !   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  532. !   srcdir=$ac_confdir
  533. !   if test ! -r $srcdir/$ac_unique_file; then
  534.       srcdir=..
  535.     fi
  536.   fi
  537. ! if test ! -r $srcdir/$ac_unique_file; then
  538. !   if test x$ac_srcdir_defaulted = xyes; then
  539. !     /bin/echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  540.     else
  541. !     /bin/echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  542.     fi
  543.   fi
  544. ! ac_ext=c
  545. ! ac_cpp='${CPP} $CFLAGS'
  546. ! ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  547.   
  548.   if test -z "$CC"; then
  549. !   # Extract the first word of `gcc', so it can be a program name with args.
  550. !   set ac_dummy gcc; ac_word=$2
  551. !   test -n "$silent" || /bin/echo "checking for $ac_word"
  552. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  553. !   for ac_dir in $PATH; do
  554. !     test -z "$ac_dir" && ac_dir=.
  555. !     if test -f $ac_dir/$ac_word; then
  556.         CC="gcc"
  557.         break
  558.       fi
  559.     done
  560. !   IFS="$ac_save_ifs"
  561.   fi
  562.   test -z "$CC" && CC="cc"
  563. + test -n "$CC" && test -n "$verbose" && /bin/echo "    setting CC to $CC"
  564.   
  565.   # Find out if we are using GNU C, under whatever name.
  566.   cat > conftest.c <<EOF
  567. ***************
  568. *** 140,270 ****
  569.   fi
  570.   rm -f conftest*
  571.   
  572. ! echo checking how to run the C preprocessor
  573.   if test -z "$CPP"; then
  574. !   CPP='${CC-cc} -E'
  575. !   cat > conftest.c <<EOF
  576.   #include <stdio.h>
  577.   EOF
  578. ! err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  579. ! if test -z "$err"; then
  580.     :
  581.   else
  582.     CPP=/lib/cpp
  583.   fi
  584.   rm -f conftest*
  585.   fi
  586.   
  587.   # Make sure to not get the incompatible SysV /etc/install and
  588.   # /usr/sbin/install, which might be in PATH before a BSD-like install,
  589.   # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  590. ! # or the AFS install, which mishandles nonexistent args.  (Sigh.)
  591. ! if test -z "$INSTALL"; then
  592. !   echo checking for install
  593. !   saveifs="$IFS"; IFS="${IFS}:"
  594. !   for dir in $PATH; do
  595. !     test -z "$dir" && dir=.
  596. !     case $dir in
  597. !     /etc|/usr/sbin|/usr/etc|/usr/afsws/bin) ;;
  598.       *)
  599. !       if test -f $dir/installbsd; then
  600. !     INSTALL="$dir/installbsd -c"
  601. !     INSTALL_PROGRAM='$(INSTALL)'
  602. !     INSTALL_DATA='$(INSTALL) -m 644'
  603. !     break
  604. !       fi
  605. !       if test -f $dir/install; then
  606. !     if grep dspmsg $dir/install >/dev/null 2>&1; then
  607. !       : # AIX
  608. !     else
  609. !       INSTALL="$dir/install -c"
  610. !       INSTALL_PROGRAM='$(INSTALL)'
  611. !       INSTALL_DATA='$(INSTALL) -m 644'
  612. !       break
  613.       fi
  614. !       fi
  615.         ;;
  616.       esac
  617.     done
  618. !   IFS="$saveifs"
  619.   fi
  620. ! INSTALL=${INSTALL-cp}
  621. ! INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  622. ! INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  623.   
  624.   if test -z "$RANLIB"; then
  625. !   echo checking for ranlib
  626. !   saveifs="$IFS"; IFS="${IFS}:"
  627. !   for dir in $PATH; do
  628. !     test -z "$dir" && dir=.
  629. !     if test -f $dir/ranlib; then
  630.         RANLIB="ranlib"
  631.         break
  632.       fi
  633.     done
  634. !   IFS="$saveifs"
  635.   fi
  636. ! test -z "$RANLIB" && RANLIB="@:"
  637.   
  638. ! echo checking for AIX
  639. ! cat > conftest.c <<EOF
  640.   #ifdef _AIX
  641.     yes
  642.   #endif
  643.   
  644.   EOF
  645. ! eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  646.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  647. !   {
  648.   test -n "$verbose" && \
  649. ! echo '    defining' _ALL_SOURCE
  650.   DEFS="$DEFS -D_ALL_SOURCE=1"
  651.   }
  652.   
  653.   fi
  654.   rm -f conftest*
  655.   
  656.   
  657. ! echo checking for minix/config.h
  658. ! cat > conftest.c <<EOF
  659.   #include <minix/config.h>
  660.   EOF
  661. ! err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  662. ! if test -z "$err"; then
  663.     MINIX=1
  664.   fi
  665.   rm -f conftest*
  666.   
  667.   # The Minix shell can't assign to the same variable on the same line!
  668.   if test -n "$MINIX"; then
  669. !   {
  670.   test -n "$verbose" && \
  671. ! echo '    defining' _POSIX_SOURCE
  672.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  673.   }
  674.   
  675. !   {
  676.   test -n "$verbose" && \
  677. ! echo '    defining' _POSIX_1_SOURCE to be 2
  678.   DEFS="$DEFS -D_POSIX_1_SOURCE=2"
  679.   }
  680.   
  681. !   {
  682.   test -n "$verbose" && \
  683. ! echo '    defining' _MINIX
  684.   DEFS="$DEFS -D_MINIX=1"
  685.   }
  686.   
  687.   fi
  688.   
  689. ! echo checking for POSIXized ISC
  690. ! if test -d /etc/conf/kconfig.d &&
  691. !   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  692.   then
  693.     ISC=1 # If later tests want to check for ISC.
  694. !   {
  695.   test -n "$verbose" && \
  696. ! echo '    defining' _POSIX_SOURCE
  697.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  698.   }
  699.   
  700. --- 343,542 ----
  701.   fi
  702.   rm -f conftest*
  703.   
  704. ! test -n "$silent" || /bin/echo "checking how to run the C preprocessor"
  705.   if test -z "$CPP"; then
  706. !   # This must be in double quotes, not single quotes, because CPP may get
  707. !   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  708. !   # make.  It must be expanded now.
  709. !   CPP="${CC-cc} -E"
  710. !   cat > conftest.${ac_ext} <<EOF
  711. ! #include "confdefs.h"
  712.   #include <stdio.h>
  713. + Syntax Error
  714.   EOF
  715. ! # Some shells (Coherent) do redirections in the wrong order, so need
  716. ! # the parens.
  717. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  718. ! if test -z "$ac_err"; then
  719.     :
  720.   else
  721. +   rm -rf conftest*
  722. +   CPP="${CC-cc} -E -traditional-cpp"
  723. +   cat > conftest.${ac_ext} <<EOF
  724. + #include "confdefs.h"
  725. + #include <stdio.h>
  726. + Syntax Error
  727. + EOF
  728. + # Some shells (Coherent) do redirections in the wrong order, so need
  729. + # the parens.
  730. + ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  731. + if test -z "$ac_err"; then
  732. +   :
  733. + else
  734. +   rm -rf conftest*
  735.     CPP=/lib/cpp
  736.   fi
  737.   rm -f conftest*
  738.   fi
  739. + rm -f conftest*
  740. + fi
  741. + test -n "$verbose" && /bin/echo "    setting CPP to $CPP"
  742.   
  743.   # Make sure to not get the incompatible SysV /etc/install and
  744.   # /usr/sbin/install, which might be in PATH before a BSD-like install,
  745.   # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  746. ! # or the AFS install, which mishandles nonexistent args, or
  747. ! # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  748. ! # `staff', or /sbin/install on IRIX which has incompatible command-line
  749. ! # syntax.  Sigh.
  750. ! #
  751. ! #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  752. ! #     anyway.
  753. ! # This turns out not to be true, so the mere pathname isn't an indication
  754. ! # of whether the program works.  What we really need is a set of tests for
  755. ! # the install program to see if it actually works in all the required ways.
  756. ! #
  757. ! # Avoid using ./install, which might have been erroneously created
  758. ! # by make from ./install.sh.
  759. ! if test "z${INSTALL}" = "z" ; then
  760. !   test -n "$silent" || /bin/echo "checking for a BSD compatible install"
  761. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  762. !   for ac_dir in $PATH; do
  763. !     case "$ac_dir" in
  764. !     ''|.|/gnu/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  765.       *)
  766. !       # OSF1 and SCO ODT 3.0 have their own names for install.
  767. !       for ac_prog in installbsd scoinst install; do
  768. !         if test -f $ac_dir/$ac_prog; then
  769. !       if test $ac_prog = install &&
  770. !             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  771. !         # AIX install.  It has an incompatible calling convention.
  772. !         # OSF/1 installbsd also uses dspmsg, but is usable.
  773. !         :
  774. !       else
  775. !         INSTALL="$ac_dir/$ac_prog -c"
  776. !         INSTALL_PROGRAM='${INSTALL}'
  777. !         INSTALL_DATA='${INSTALL} -m 644'
  778. !         break 2
  779. !       fi
  780.       fi
  781. !       done
  782.         ;;
  783.       esac
  784.     done
  785. !   IFS="$ac_save_ifs"
  786.   fi
  787. ! if test -z "$INSTALL"; then
  788. !   if test -f ${srcdir}/install.sh; then
  789. !     # As a last resort, use the slow shell script.
  790. !     INSTALL='@top_srcdir@/install.sh -c'
  791. !   else
  792. !     /bin/echo "configure: warning: ${srcdir}/install.sh not found; using cp" >&2
  793. !     INSTALL=cp
  794. !   fi
  795. ! fi
  796. ! test -n "$verbose" && /bin/echo "    setting INSTALL to $INSTALL"
  797. ! # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  798. ! # It thinks the first close brace ends the variable substitution.
  799. ! test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  800. ! test -n "$verbose" && /bin/echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  801. ! test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL}'
  802. ! test -n "$verbose" && /bin/echo "    setting INSTALL_DATA to $INSTALL_DATA"
  803.   
  804.   if test -z "$RANLIB"; then
  805. !   # Extract the first word of `ranlib', so it can be a program name with args.
  806. !   set ac_dummy ranlib; ac_word=$2
  807. !   test -n "$silent" || /bin/echo "checking for $ac_word"
  808. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  809. !   for ac_dir in $PATH; do
  810. !     test -z "$ac_dir" && ac_dir=.
  811. !     if test -f $ac_dir/$ac_word; then
  812.         RANLIB="ranlib"
  813.         break
  814.       fi
  815.     done
  816. !   IFS="$ac_save_ifs"
  817.   fi
  818. ! test -z "$RANLIB" && RANLIB=":"
  819. ! test -n "$RANLIB" && test -n "$verbose" && /bin/echo "    setting RANLIB to $RANLIB"
  820.   
  821. ! test -n "$silent" || /bin/echo "checking for AIX"
  822. ! cat > conftest.${ac_ext} <<EOF
  823. ! #include "confdefs.h"
  824.   #ifdef _AIX
  825.     yes
  826.   #endif
  827.   
  828.   EOF
  829. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  830.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  831. !   rm -rf conftest*
  832. !   
  833. ! {
  834.   test -n "$verbose" && \
  835. ! /bin/echo "    defining _ALL_SOURCE"
  836. ! /bin/echo "#define" _ALL_SOURCE "1" >> confdefs.h
  837.   DEFS="$DEFS -D_ALL_SOURCE=1"
  838.   }
  839.   
  840.   fi
  841.   rm -f conftest*
  842.   
  843.   
  844. ! test -n "$silent" || /bin/echo "checking for minix/config.h"
  845. ! cat > conftest.${ac_ext} <<EOF
  846. ! #include "confdefs.h"
  847.   #include <minix/config.h>
  848.   EOF
  849. ! # Some shells (Coherent) do redirections in the wrong order, so need
  850. ! # the parens.
  851. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  852. ! if test -z "$ac_err"; then
  853. !   rm -rf conftest*
  854.     MINIX=1
  855.   fi
  856.   rm -f conftest*
  857.   
  858.   # The Minix shell can't assign to the same variable on the same line!
  859.   if test -n "$MINIX"; then
  860. !   
  861. ! {
  862.   test -n "$verbose" && \
  863. ! /bin/echo "    defining _POSIX_SOURCE"
  864. ! /bin/echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  865.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  866.   }
  867.   
  868. !   
  869. ! {
  870.   test -n "$verbose" && \
  871. ! /bin/echo "    defining" _POSIX_1_SOURCE to be "2"
  872. ! /bin/echo "#define" _POSIX_1_SOURCE "2" >> confdefs.h
  873.   DEFS="$DEFS -D_POSIX_1_SOURCE=2"
  874.   }
  875.   
  876. !   
  877. ! {
  878.   test -n "$verbose" && \
  879. ! /bin/echo "    defining _MINIX"
  880. ! /bin/echo "#define" _MINIX "1" >> confdefs.h
  881.   DEFS="$DEFS -D_MINIX=1"
  882.   }
  883.   
  884.   fi
  885.   
  886. ! test -n "$silent" || /bin/echo "checking for POSIXized ISC"
  887. ! if test -d /gnu/etc/conf/kconfig.d &&
  888. !   grep _POSIX_VERSION /gnu/include/sys/unistd.h >/dev/null 2>&1
  889.   then
  890.     ISC=1 # If later tests want to check for ISC.
  891. !   
  892. ! {
  893.   test -n "$verbose" && \
  894. ! /bin/echo "    defining _POSIX_SOURCE"
  895. ! /bin/echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  896.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  897.   }
  898.   
  899. ***************
  900. *** 275,562 ****
  901.     fi
  902.   fi
  903.   
  904. ! echo checking for SCO UNIX libintl
  905. ! cat > conftest.c <<EOF
  906. ! #if defined(M_UNIX)
  907. !   yes
  908. ! #endif
  909.   
  910.   EOF
  911. ! eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  912. ! if egrep "yes" conftest.out >/dev/null 2>&1; then
  913. !   SCO_UNIX=1
  914.   fi
  915.   rm -f conftest*
  916.   
  917. - test -n "$SCO_UNIX" && test -f /lib/libintl.a &&
  918. -   LIBS="$LIBS -lintl" # For strftime.
  919.   
  920. ! echo checking for major, minor and makedev header
  921. ! cat > conftest.c <<EOF
  922.   #include <sys/types.h>
  923. ! int main() { exit(0); } 
  924. ! int t() { return makedev(0, 0); }
  925.   EOF
  926. ! if eval $compile; then
  927. !   makedev=1
  928.   fi
  929.   rm -f conftest*
  930.   
  931. ! if test -z "$makedev"; then
  932. ! echo checking for sys/mkdev.h
  933. ! cat > conftest.c <<EOF
  934.   #include <sys/mkdev.h>
  935.   EOF
  936. ! err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  937. ! if test -z "$err"; then
  938. !   {
  939.   test -n "$verbose" && \
  940. ! echo '    defining' MAJOR_IN_MKDEV
  941.   DEFS="$DEFS -DMAJOR_IN_MKDEV=1"
  942.   }
  943. !  makedev=1
  944.   fi
  945.   rm -f conftest*
  946.   
  947.   fi
  948. ! if test -z "$makedev"; then
  949. ! echo checking for sys/sysmacros.h
  950. ! cat > conftest.c <<EOF
  951.   #include <sys/sysmacros.h>
  952.   EOF
  953. ! err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  954. ! if test -z "$err"; then
  955. !   {
  956.   test -n "$verbose" && \
  957. ! echo '    defining' MAJOR_IN_SYSMACROS
  958.   DEFS="$DEFS -DMAJOR_IN_SYSMACROS=1"
  959.   }
  960.   
  961.   fi
  962.   rm -f conftest*
  963.   
  964.   fi
  965.   
  966. ! echo checking for directory library header
  967. ! dirheader=
  968. ! if test -z "$dirheader"; then
  969. !   echo checking for dirent.h
  970. ! cat > conftest.c <<EOF
  971.   #include <sys/types.h>
  972.   #include <dirent.h>
  973. ! int main() { exit(0); } 
  974. ! int t() { DIR *dirp = opendir ("/"); }
  975.   EOF
  976. ! if eval $compile; then
  977. !   {
  978.   test -n "$verbose" && \
  979. ! echo '    defining' DIRENT
  980.   DEFS="$DEFS -DDIRENT=1"
  981.   }
  982. !  dirheader=dirent.h
  983.   fi
  984.   rm -f conftest*
  985.   fi
  986. ! if test -z "$dirheader"; then
  987. !   echo checking for sys/ndir.h
  988. ! cat > conftest.c <<EOF
  989.   #include <sys/types.h>
  990.   #include <sys/ndir.h>
  991. ! int main() { exit(0); } 
  992. ! int t() { DIR *dirp = opendir ("/"); }
  993.   EOF
  994. ! if eval $compile; then
  995. !   {
  996.   test -n "$verbose" && \
  997. ! echo '    defining' SYSNDIR
  998.   DEFS="$DEFS -DSYSNDIR=1"
  999.   }
  1000. !  dirheader=sys/ndir.h
  1001.   fi
  1002.   rm -f conftest*
  1003.   fi
  1004. ! if test -z "$dirheader"; then
  1005. !   echo checking for sys/dir.h
  1006. ! cat > conftest.c <<EOF
  1007.   #include <sys/types.h>
  1008.   #include <sys/dir.h>
  1009. ! int main() { exit(0); } 
  1010. ! int t() { DIR *dirp = opendir ("/"); }
  1011.   EOF
  1012. ! if eval $compile; then
  1013. !   {
  1014.   test -n "$verbose" && \
  1015. ! echo '    defining' SYSDIR
  1016.   DEFS="$DEFS -DSYSDIR=1"
  1017.   }
  1018. !  dirheader=sys/dir.h
  1019.   fi
  1020.   rm -f conftest*
  1021.   fi
  1022. ! if test -z "$dirheader"; then
  1023. !   echo checking for ndir.h
  1024. ! cat > conftest.c <<EOF
  1025.   #include <sys/types.h>
  1026.   #include <ndir.h>
  1027. ! int main() { exit(0); } 
  1028. ! int t() { DIR *dirp = opendir ("/"); }
  1029.   EOF
  1030. ! if eval $compile; then
  1031. !   {
  1032.   test -n "$verbose" && \
  1033. ! echo '    defining' NDIR
  1034.   DEFS="$DEFS -DNDIR=1"
  1035.   }
  1036. !  dirheader=ndir.h
  1037.   fi
  1038.   rm -f conftest*
  1039.   fi
  1040.   
  1041. ! echo checking for closedir return value
  1042. ! cat > conftest.c <<EOF
  1043.   #include <sys/types.h>
  1044. ! #include <$dirheader>
  1045. ! int closedir(); main() { exit(0); }
  1046.   EOF
  1047. ! eval $compile
  1048.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1049.     :
  1050.   else
  1051. !   {
  1052.   test -n "$verbose" && \
  1053. ! echo '    defining' VOID_CLOSEDIR
  1054.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  1055.   }
  1056.   
  1057.   fi
  1058. ! rm -f conftest*
  1059.   
  1060.   echo checking how to get filesystem type
  1061.   # SVR4.
  1062. ! cat > conftest.c <<EOF
  1063.   #include <sys/statvfs.h>
  1064.   #include <sys/fstyp.h>
  1065.   EOF
  1066. ! err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  1067. ! if test -z "$err"; then
  1068. !   {
  1069.   test -n "$verbose" && \
  1070. ! echo '    defining' FSTYPE_STATVFS
  1071.   DEFS="$DEFS -DFSTYPE_STATVFS=1"
  1072.   }
  1073.    fstype=1
  1074.   fi
  1075.   rm -f conftest*
  1076.   if test -z "$fstype"; then
  1077.   # SVR3.
  1078. ! cat > conftest.c <<EOF
  1079.   #include <sys/statfs.h>
  1080.   #include <sys/fstyp.h>
  1081.   EOF
  1082. ! err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  1083. ! if test -z "$err"; then
  1084. !   {
  1085.   test -n "$verbose" && \
  1086. ! echo '    defining' FSTYPE_USG_STATFS
  1087.   DEFS="$DEFS -DFSTYPE_USG_STATFS=1"
  1088.   }
  1089.    fstype=1
  1090.   fi
  1091.   rm -f conftest*
  1092.   fi
  1093.   if test -z "$fstype"; then
  1094.   # AIX.
  1095. ! cat > conftest.c <<EOF
  1096.   #include <sys/statfs.h>
  1097.   #include <sys/vmount.h>
  1098.   EOF
  1099. ! err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  1100. ! if test -z "$err"; then
  1101. !   {
  1102.   test -n "$verbose" && \
  1103. ! echo '    defining' FSTYPE_AIX_STATFS
  1104.   DEFS="$DEFS -DFSTYPE_AIX_STATFS=1"
  1105.   }
  1106.    fstype=1
  1107.   fi
  1108.   rm -f conftest*
  1109.   fi
  1110.   if test -z "$fstype"; then  
  1111.   # 4.3BSD.
  1112. ! cat > conftest.c <<EOF
  1113.   #include <mntent.h>
  1114.   EOF
  1115. ! err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  1116. ! if test -z "$err"; then
  1117. !   {
  1118.   test -n "$verbose" && \
  1119. ! echo '    defining' FSTYPE_MNTENT
  1120.   DEFS="$DEFS -DFSTYPE_MNTENT=1"
  1121.   }
  1122.    fstype=1
  1123.   fi
  1124.   rm -f conftest*
  1125.   fi
  1126.   if test -z "$fstype"; then  
  1127.   # 4.4BSD.  Also DEC OSF/1.
  1128. ! echo '#include <sys/mount.h>' > conftest.c
  1129. ! eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  1130.   if egrep "f_type;" conftest.out >/dev/null 2>&1; then
  1131. !   {
  1132.   test -n "$verbose" && \
  1133. ! echo '    defining' FSTYPE_STATFS
  1134.   DEFS="$DEFS -DFSTYPE_STATFS=1"
  1135.   }
  1136.    fstype=1
  1137.   fi
  1138.   rm -f conftest*
  1139.   
  1140.   fi
  1141.   if test -z "$fstype"; then  
  1142.   # Ultrix.
  1143. ! cat > conftest.c <<EOF
  1144.   #include <sys/mount.h>
  1145.   #include <sys/fs_types.h>
  1146.   EOF
  1147. ! err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  1148. ! if test -z "$err"; then
  1149. !   {
  1150.   test -n "$verbose" && \
  1151. ! echo '    defining' FSTYPE_GETMNT
  1152.   DEFS="$DEFS -DFSTYPE_GETMNT=1"
  1153.   }
  1154.    fstype=1
  1155.   fi
  1156.   rm -f conftest*
  1157.   fi
  1158.   
  1159. ! echo checking for uid_t in sys/types.h
  1160. ! echo '#include <sys/types.h>' > conftest.c
  1161. ! eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  1162.   if egrep "uid_t" conftest.out >/dev/null 2>&1; then
  1163.     :
  1164. ! else 
  1165. !   {
  1166.   test -n "$verbose" && \
  1167. ! echo '    defining' uid_t to be int
  1168.   DEFS="$DEFS -Duid_t=int"
  1169.   }
  1170. !  {
  1171.   test -n "$verbose" && \
  1172. ! echo '    defining' gid_t to be int
  1173.   DEFS="$DEFS -Dgid_t=int"
  1174.   }
  1175.   
  1176.   fi
  1177.   rm -f conftest*
  1178.   
  1179. ! prog='/* Ultrix mips cc rejects this.  */
  1180.   typedef int charset[2]; const charset x;
  1181.   /* SunOS 4.1.1 cc rejects this.  */
  1182.   char const *const *ccp;
  1183.   char **p;
  1184. ! /* AIX XL C 1.2.0.0 rejects this.  */
  1185. ! p += p ? p-p : 0;
  1186.   /* HPUX 7.0 cc rejects these. */
  1187.   ++ccp;
  1188.   p = (char**) ccp;
  1189. --- 547,931 ----
  1190.     fi
  1191.   fi
  1192.   
  1193. ! ac_save_LIBS="${LIBS}"
  1194. ! LIBS="${LIBS} -lintl"
  1195. ! ac_have_lib=""
  1196. ! test -n "$silent" || /bin/echo "checking for -lintl"
  1197. ! cat > conftest.${ac_ext} <<EOF
  1198. ! #include "confdefs.h"
  1199.   
  1200. + int main() { return 0; }
  1201. + int t() { main();; return 0; }
  1202.   EOF
  1203. ! if eval $ac_compile; then
  1204. !   rm -rf conftest*
  1205. !   ac_have_lib="1"
  1206.   fi
  1207.   rm -f conftest*
  1208. + LIBS="${ac_save_LIBS}"
  1209. + if test -n "${ac_have_lib}"; then
  1210. +    :; LIBS="$LIBS -lintl"
  1211. + else
  1212. +    :; 
  1213. + fi
  1214.   
  1215.   
  1216. ! test -n "$silent" || /bin/echo "checking for major, minor and makedev header"
  1217. ! cat > conftest.${ac_ext} <<EOF
  1218. ! #include "confdefs.h"
  1219.   #include <sys/types.h>
  1220. ! int main() { return 0; }
  1221. ! int t() { return makedev(0, 0);; return 0; }
  1222.   EOF
  1223. ! if eval $ac_compile; then
  1224. !   rm -rf conftest*
  1225. !   ac_makedev=1
  1226.   fi
  1227.   rm -f conftest*
  1228.   
  1229. ! if test -z "$ac_makedev"; then
  1230. ! test -n "$silent" || /bin/echo "checking for sys/mkdev.h"
  1231. ! cat > conftest.${ac_ext} <<EOF
  1232. ! #include "confdefs.h"
  1233.   #include <sys/mkdev.h>
  1234.   EOF
  1235. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1236. ! # the parens.
  1237. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1238. ! if test -z "$ac_err"; then
  1239. !   rm -rf conftest*
  1240. !   
  1241. ! {
  1242.   test -n "$verbose" && \
  1243. ! /bin/echo "    defining MAJOR_IN_MKDEV"
  1244. ! /bin/echo "#define" MAJOR_IN_MKDEV "1" >> confdefs.h
  1245.   DEFS="$DEFS -DMAJOR_IN_MKDEV=1"
  1246.   }
  1247. !  ac_makedev=1
  1248.   fi
  1249.   rm -f conftest*
  1250.   
  1251.   fi
  1252. ! if test -z "$ac_makedev"; then
  1253. ! test -n "$silent" || /bin/echo "checking for sys/sysmacros.h"
  1254. ! cat > conftest.${ac_ext} <<EOF
  1255. ! #include "confdefs.h"
  1256.   #include <sys/sysmacros.h>
  1257.   EOF
  1258. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1259. ! # the parens.
  1260. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1261. ! if test -z "$ac_err"; then
  1262. !   rm -rf conftest*
  1263. !   
  1264. ! {
  1265.   test -n "$verbose" && \
  1266. ! /bin/echo "    defining MAJOR_IN_SYSMACROS"
  1267. ! /bin/echo "#define" MAJOR_IN_SYSMACROS "1" >> confdefs.h
  1268.   DEFS="$DEFS -DMAJOR_IN_SYSMACROS=1"
  1269.   }
  1270.   
  1271.   fi
  1272.   rm -f conftest*
  1273.   
  1274.   fi
  1275.   
  1276. ! test -n "$silent" || /bin/echo "checking for directory library header"
  1277. ! ac_dir_header=
  1278. ! if test -z "$ac_dir_header"; then
  1279. !   test -n "$silent" || /bin/echo "checking for dirent.h"
  1280. ! cat > conftest.${ac_ext} <<EOF
  1281. ! #include "confdefs.h"
  1282.   #include <sys/types.h>
  1283.   #include <dirent.h>
  1284. ! int main() { return 0; }
  1285. ! int t() { DIR *dirp = 0;; return 0; }
  1286.   EOF
  1287. ! if eval $ac_compile; then
  1288. !   rm -rf conftest*
  1289. !   
  1290. ! {
  1291.   test -n "$verbose" && \
  1292. ! /bin/echo "    defining DIRENT"
  1293. ! /bin/echo "#define" DIRENT "1" >> confdefs.h
  1294.   DEFS="$DEFS -DDIRENT=1"
  1295.   }
  1296. !  ac_dir_header=dirent.h
  1297.   fi
  1298.   rm -f conftest*
  1299.   fi
  1300. ! if test -z "$ac_dir_header"; then
  1301. !   test -n "$silent" || /bin/echo "checking for sys/ndir.h"
  1302. ! cat > conftest.${ac_ext} <<EOF
  1303. ! #include "confdefs.h"
  1304.   #include <sys/types.h>
  1305.   #include <sys/ndir.h>
  1306. ! int main() { return 0; }
  1307. ! int t() { DIR *dirp = 0;; return 0; }
  1308.   EOF
  1309. ! if eval $ac_compile; then
  1310. !   rm -rf conftest*
  1311. !   
  1312. ! {
  1313.   test -n "$verbose" && \
  1314. ! /bin/echo "    defining SYSNDIR"
  1315. ! /bin/echo "#define" SYSNDIR "1" >> confdefs.h
  1316.   DEFS="$DEFS -DSYSNDIR=1"
  1317.   }
  1318. !  ac_dir_header=sys/ndir.h
  1319.   fi
  1320.   rm -f conftest*
  1321.   fi
  1322. ! if test -z "$ac_dir_header"; then
  1323. !   test -n "$silent" || /bin/echo "checking for sys/dir.h"
  1324. ! cat > conftest.${ac_ext} <<EOF
  1325. ! #include "confdefs.h"
  1326.   #include <sys/types.h>
  1327.   #include <sys/dir.h>
  1328. ! int main() { return 0; }
  1329. ! int t() { DIR *dirp = 0;; return 0; }
  1330.   EOF
  1331. ! if eval $ac_compile; then
  1332. !   rm -rf conftest*
  1333. !   
  1334. ! {
  1335.   test -n "$verbose" && \
  1336. ! /bin/echo "    defining SYSDIR"
  1337. ! /bin/echo "#define" SYSDIR "1" >> confdefs.h
  1338.   DEFS="$DEFS -DSYSDIR=1"
  1339.   }
  1340. !  ac_dir_header=sys/dir.h
  1341.   fi
  1342.   rm -f conftest*
  1343.   fi
  1344. ! if test -z "$ac_dir_header"; then
  1345. !   test -n "$silent" || /bin/echo "checking for ndir.h"
  1346. ! cat > conftest.${ac_ext} <<EOF
  1347. ! #include "confdefs.h"
  1348.   #include <sys/types.h>
  1349.   #include <ndir.h>
  1350. ! int main() { return 0; }
  1351. ! int t() { DIR *dirp = 0;; return 0; }
  1352.   EOF
  1353. ! if eval $ac_compile; then
  1354. !   rm -rf conftest*
  1355. !   
  1356. ! {
  1357.   test -n "$verbose" && \
  1358. ! /bin/echo "    defining NDIR"
  1359. ! /bin/echo "#define" NDIR "1" >> confdefs.h
  1360.   DEFS="$DEFS -DNDIR=1"
  1361.   }
  1362. !  ac_dir_header=ndir.h
  1363.   fi
  1364.   rm -f conftest*
  1365.   fi
  1366.   
  1367. ! test -n "$silent" || /bin/echo "checking for closedir return value"
  1368. ! cat > conftest.${ac_ext} <<EOF
  1369. ! #include "confdefs.h"
  1370.   #include <sys/types.h>
  1371. ! #include <$ac_dir_header>
  1372. ! int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1373.   EOF
  1374. ! eval $ac_compile
  1375.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1376.     :
  1377.   else
  1378. !   
  1379. ! {
  1380.   test -n "$verbose" && \
  1381. ! /bin/echo "    defining VOID_CLOSEDIR"
  1382. ! /bin/echo "#define" VOID_CLOSEDIR "1" >> confdefs.h
  1383.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  1384.   }
  1385.   
  1386.   fi
  1387. ! rm -fr conftest*
  1388.   
  1389.   echo checking how to get filesystem type
  1390.   # SVR4.
  1391. ! cat > conftest.${ac_ext} <<EOF
  1392. ! #include "confdefs.h"
  1393.   #include <sys/statvfs.h>
  1394.   #include <sys/fstyp.h>
  1395.   EOF
  1396. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1397. ! # the parens.
  1398. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1399. ! if test -z "$ac_err"; then
  1400. !   rm -rf conftest*
  1401. !   
  1402. ! {
  1403.   test -n "$verbose" && \
  1404. ! /bin/echo "    defining FSTYPE_STATVFS"
  1405. ! /bin/echo "#define" FSTYPE_STATVFS "1" >> confdefs.h
  1406.   DEFS="$DEFS -DFSTYPE_STATVFS=1"
  1407.   }
  1408.    fstype=1
  1409.   fi
  1410.   rm -f conftest*
  1411.   if test -z "$fstype"; then
  1412.   # SVR3.
  1413. ! cat > conftest.${ac_ext} <<EOF
  1414. ! #include "confdefs.h"
  1415.   #include <sys/statfs.h>
  1416.   #include <sys/fstyp.h>
  1417.   EOF
  1418. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1419. ! # the parens.
  1420. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1421. ! if test -z "$ac_err"; then
  1422. !   rm -rf conftest*
  1423. !   
  1424. ! {
  1425.   test -n "$verbose" && \
  1426. ! /bin/echo "    defining FSTYPE_USG_STATFS"
  1427. ! /bin/echo "#define" FSTYPE_USG_STATFS "1" >> confdefs.h
  1428.   DEFS="$DEFS -DFSTYPE_USG_STATFS=1"
  1429.   }
  1430.    fstype=1
  1431.   fi
  1432.   rm -f conftest*
  1433.   fi
  1434.   if test -z "$fstype"; then
  1435.   # AIX.
  1436. ! cat > conftest.${ac_ext} <<EOF
  1437. ! #include "confdefs.h"
  1438.   #include <sys/statfs.h>
  1439.   #include <sys/vmount.h>
  1440.   EOF
  1441. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1442. ! # the parens.
  1443. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1444. ! if test -z "$ac_err"; then
  1445. !   rm -rf conftest*
  1446. !   
  1447. ! {
  1448.   test -n "$verbose" && \
  1449. ! /bin/echo "    defining FSTYPE_AIX_STATFS"
  1450. ! /bin/echo "#define" FSTYPE_AIX_STATFS "1" >> confdefs.h
  1451.   DEFS="$DEFS -DFSTYPE_AIX_STATFS=1"
  1452.   }
  1453.    fstype=1
  1454.   fi
  1455.   rm -f conftest*
  1456.   fi
  1457.   if test -z "$fstype"; then  
  1458.   # 4.3BSD.
  1459. ! cat > conftest.${ac_ext} <<EOF
  1460. ! #include "confdefs.h"
  1461.   #include <mntent.h>
  1462.   EOF
  1463. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1464. ! # the parens.
  1465. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1466. ! if test -z "$ac_err"; then
  1467. !   rm -rf conftest*
  1468. !   
  1469. ! {
  1470.   test -n "$verbose" && \
  1471. ! /bin/echo "    defining FSTYPE_MNTENT"
  1472. ! /bin/echo "#define" FSTYPE_MNTENT "1" >> confdefs.h
  1473.   DEFS="$DEFS -DFSTYPE_MNTENT=1"
  1474.   }
  1475.    fstype=1
  1476.   fi
  1477.   rm -f conftest*
  1478.   fi
  1479.   if test -z "$fstype"; then  
  1480.   # 4.4BSD.  Also DEC OSF/1.
  1481. ! /bin/echo '#include "confdefs.h"
  1482. ! #include <sys/mount.h>' > conftest.${ac_ext}
  1483. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1484.   if egrep "f_type;" conftest.out >/dev/null 2>&1; then
  1485. !   rm -rf conftest*
  1486. !   
  1487. ! {
  1488.   test -n "$verbose" && \
  1489. ! /bin/echo "    defining FSTYPE_STATFS"
  1490. ! /bin/echo "#define" FSTYPE_STATFS "1" >> confdefs.h
  1491.   DEFS="$DEFS -DFSTYPE_STATFS=1"
  1492.   }
  1493.    fstype=1
  1494.   fi
  1495.   rm -f conftest*
  1496.   
  1497.   fi
  1498.   if test -z "$fstype"; then  
  1499.   # Ultrix.
  1500. ! cat > conftest.${ac_ext} <<EOF
  1501. ! #include "confdefs.h"
  1502.   #include <sys/mount.h>
  1503.   #include <sys/fs_types.h>
  1504.   EOF
  1505. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1506. ! # the parens.
  1507. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1508. ! if test -z "$ac_err"; then
  1509. !   rm -rf conftest*
  1510. !   
  1511. ! {
  1512.   test -n "$verbose" && \
  1513. ! /bin/echo "    defining FSTYPE_GETMNT"
  1514. ! /bin/echo "#define" FSTYPE_GETMNT "1" >> confdefs.h
  1515.   DEFS="$DEFS -DFSTYPE_GETMNT=1"
  1516.   }
  1517.    fstype=1
  1518.   fi
  1519.   rm -f conftest*
  1520.   fi
  1521.   
  1522. ! test -n "$silent" || /bin/echo "checking for uid_t in sys/types.h"
  1523. ! /bin/echo '#include "confdefs.h"
  1524. ! #include <sys/types.h>' > conftest.${ac_ext}
  1525. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1526.   if egrep "uid_t" conftest.out >/dev/null 2>&1; then
  1527.     :
  1528. ! else
  1529. !   rm -rf conftest*
  1530. !   
  1531. ! {
  1532.   test -n "$verbose" && \
  1533. ! /bin/echo "    defining" uid_t to be "int"
  1534. ! /bin/echo "#define" uid_t "int" >> confdefs.h
  1535.   DEFS="$DEFS -Duid_t=int"
  1536.   }
  1537. !  
  1538. ! {
  1539.   test -n "$verbose" && \
  1540. ! /bin/echo "    defining" gid_t to be "int"
  1541. ! /bin/echo "#define" gid_t "int" >> confdefs.h
  1542.   DEFS="$DEFS -Dgid_t=int"
  1543.   }
  1544.   
  1545.   fi
  1546.   rm -f conftest*
  1547.   
  1548. ! ac_prog='/* Ultrix mips cc rejects this.  */
  1549.   typedef int charset[2]; const charset x;
  1550.   /* SunOS 4.1.1 cc rejects this.  */
  1551.   char const *const *ccp;
  1552.   char **p;
  1553. ! /* AIX XL C 1.02.0.0 rejects this.
  1554. !    It does not let you subtract one const X* pointer from another in an arm
  1555. !    of an if-expression whose if-part is not a constant expression */
  1556. ! const char *g = "string";
  1557. ! ccp = &g + (g ? g-g : 0);
  1558.   /* HPUX 7.0 cc rejects these. */
  1559.   ++ccp;
  1560.   p = (char**) ccp;
  1561. ***************
  1562. *** 580,620 ****
  1563.   { /* AIX XL C 1.02.0.0 rejects this saying
  1564.        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1565.     struct s { int j; const int *ap[3]; };
  1566. !   void a (struct s *b) { b->j = 5; }
  1567.   }'
  1568. ! echo checking for working const
  1569. ! cat > conftest.c <<EOF
  1570.   
  1571. ! int main() { exit(0); } 
  1572. ! int t() { $prog }
  1573.   EOF
  1574. ! if eval $compile; then
  1575.     :
  1576.   else
  1577. !   {
  1578.   test -n "$verbose" && \
  1579. ! echo '    defining' const to be empty
  1580.   DEFS="$DEFS -Dconst="
  1581.   }
  1582.   
  1583.   fi
  1584.   rm -f conftest*
  1585.   
  1586. ! echo checking for ANSI C header files
  1587. ! cat > conftest.c <<EOF
  1588.   #include <stdlib.h>
  1589.   #include <stdarg.h>
  1590.   #include <string.h>
  1591.   #include <float.h>
  1592.   EOF
  1593. ! err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  1594. ! if test -z "$err"; then
  1595.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1596. ! echo '#include <string.h>' > conftest.c
  1597. ! eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  1598.   if egrep "memchr" conftest.out >/dev/null 2>&1; then
  1599.     # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1600. ! cat > conftest.c <<EOF
  1601.   #include <ctype.h>
  1602.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1603.   #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1604. --- 949,1003 ----
  1605.   { /* AIX XL C 1.02.0.0 rejects this saying
  1606.        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1607.     struct s { int j; const int *ap[3]; };
  1608. !   struct s *b; b->j = 5;
  1609. ! }
  1610. ! { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1611. !   const int foo = 10;
  1612.   }'
  1613. ! test -n "$silent" || /bin/echo "checking for lack of working const"
  1614. ! cat > conftest.${ac_ext} <<EOF
  1615. ! #include "confdefs.h"
  1616.   
  1617. ! int main() { return 0; }
  1618. ! int t() { $ac_prog; return 0; }
  1619.   EOF
  1620. ! if eval $ac_compile; then
  1621.     :
  1622.   else
  1623. !   rm -rf conftest*
  1624. !   
  1625. ! {
  1626.   test -n "$verbose" && \
  1627. ! /bin/echo "    defining" const to be empty
  1628. ! /bin/echo "#define" const "" >> confdefs.h
  1629.   DEFS="$DEFS -Dconst="
  1630.   }
  1631.   
  1632.   fi
  1633.   rm -f conftest*
  1634.   
  1635. ! test -n "$silent" || /bin/echo "checking for ANSI C header files"
  1636. ! cat > conftest.${ac_ext} <<EOF
  1637. ! #include "confdefs.h"
  1638.   #include <stdlib.h>
  1639.   #include <stdarg.h>
  1640.   #include <string.h>
  1641.   #include <float.h>
  1642.   EOF
  1643. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1644. ! # the parens.
  1645. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1646. ! if test -z "$ac_err"; then
  1647. !   rm -rf conftest*
  1648.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1649. ! /bin/echo '#include "confdefs.h"
  1650. ! #include <string.h>' > conftest.${ac_ext}
  1651. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1652.   if egrep "memchr" conftest.out >/dev/null 2>&1; then
  1653. +   rm -rf conftest*
  1654.     # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1655. ! cat > conftest.${ac_ext} <<EOF
  1656. ! #include "confdefs.h"
  1657.   #include <ctype.h>
  1658.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1659.   #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1660. ***************
  1661. *** 624,758 ****
  1662.   exit (0); }
  1663.   
  1664.   EOF
  1665. ! eval $compile
  1666.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1667. !   {
  1668.   test -n "$verbose" && \
  1669. ! echo '    defining' STDC_HEADERS
  1670.   DEFS="$DEFS -DSTDC_HEADERS=1"
  1671.   }
  1672.   
  1673.   fi
  1674.   rm -f conftest*
  1675.   fi
  1676.   rm -f conftest*
  1677.   
  1678.   fi
  1679.   rm -f conftest*
  1680.   
  1681. ! echo checking for unistd.h
  1682. ! cat > conftest.c <<EOF
  1683. ! #include <unistd.h>
  1684. ! EOF
  1685. ! err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  1686. ! if test -z "$err"; then
  1687. !   {
  1688. ! test -n "$verbose" && \
  1689. ! echo '    defining' HAVE_UNISTD_H
  1690. ! DEFS="$DEFS -DHAVE_UNISTD_H=1"
  1691.   }
  1692.   
  1693.   fi
  1694.   rm -f conftest*
  1695.   
  1696. ! for hdr in string.h limits.h
  1697.   do
  1698. ! trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  1699. ! echo checking for ${hdr}
  1700. ! cat > conftest.c <<EOF
  1701. ! #include <${hdr}>
  1702. ! EOF
  1703. ! err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  1704. ! if test -z "$err"; then
  1705. !   {
  1706. ! test -n "$verbose" && \
  1707. ! echo '    defining' ${trhdr}
  1708. ! DEFS="$DEFS -D${trhdr}=1"
  1709.   }
  1710.   
  1711.   fi
  1712.   rm -f conftest*
  1713.   done
  1714.   
  1715. ! for func in memset stpcpy strdup strftime strspn strstr strtol
  1716.   do
  1717. ! echo checking for ${func}
  1718. ! cat > conftest.c <<EOF
  1719. ! int main() { exit(0); } 
  1720.   int t() { 
  1721.   /* Override any gcc2 internal prototype to avoid an error.  */
  1722. ! extern char ${func}(); ${func}(); }
  1723.   EOF
  1724. ! if eval $compile; then
  1725.     :
  1726.   else
  1727. !   LIBOBJS="$LIBOBJS ${func}.o"
  1728.   fi
  1729.   rm -f conftest*
  1730.   
  1731.   done
  1732.   
  1733. ! for func in strerror
  1734.   do
  1735. ! trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
  1736. ! echo checking for ${func}
  1737. ! cat > conftest.c <<EOF
  1738. ! #include <stdio.h>
  1739. ! int main() { exit(0); } 
  1740.   int t() { 
  1741. ! #ifdef __stub_${func}
  1742.   choke me
  1743.   #else
  1744.   /* Override any gcc2 internal prototype to avoid an error.  */
  1745. ! extern char ${func}(); ${func}();
  1746.   #endif
  1747. !  }
  1748.   EOF
  1749. ! if eval $compile; then
  1750.     {
  1751.   test -n "$verbose" && \
  1752. ! echo '    defining' ${trfunc}
  1753. ! DEFS="$DEFS -D${trfunc}=1"
  1754.   }
  1755.   
  1756.   fi
  1757.   rm -f conftest*
  1758. - #endif
  1759.   done
  1760.   
  1761. ! echo checking for vprintf
  1762. ! cat > conftest.c <<EOF
  1763. ! int main() { exit(0); } 
  1764. ! int t() { vprintf(); }
  1765. ! EOF
  1766. ! if eval $compile; then
  1767. !   {
  1768.   test -n "$verbose" && \
  1769. ! echo '    defining' HAVE_VPRINTF
  1770.   DEFS="$DEFS -DHAVE_VPRINTF=1"
  1771.   }
  1772.   
  1773.   else
  1774. !   vprintf_missing=1
  1775.   fi
  1776.   rm -f conftest*
  1777.   
  1778. ! if test -n "$vprintf_missing"; then
  1779. ! echo checking for _doprnt
  1780. ! cat > conftest.c <<EOF
  1781.   
  1782. ! int main() { exit(0); } 
  1783. ! int t() { _doprnt(); }
  1784.   EOF
  1785. ! if eval $compile; then
  1786. !   {
  1787.   test -n "$verbose" && \
  1788. ! echo '    defining' HAVE_DOPRNT
  1789.   DEFS="$DEFS -DHAVE_DOPRNT=1"
  1790.   }
  1791.   
  1792.   fi
  1793.   rm -f conftest*
  1794.   
  1795. --- 1007,1202 ----
  1796.   exit (0); }
  1797.   
  1798.   EOF
  1799. ! eval $ac_compile
  1800.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1801. !   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1802. ! /bin/echo '#include "confdefs.h"
  1803. ! #include <stdlib.h>' > conftest.${ac_ext}
  1804. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1805. ! if egrep "free" conftest.out >/dev/null 2>&1; then
  1806. !   rm -rf conftest*
  1807. !   
  1808. ! {
  1809.   test -n "$verbose" && \
  1810. ! /bin/echo "    defining STDC_HEADERS"
  1811. ! /bin/echo "#define" STDC_HEADERS "1" >> confdefs.h
  1812.   DEFS="$DEFS -DSTDC_HEADERS=1"
  1813.   }
  1814.   
  1815.   fi
  1816.   rm -f conftest*
  1817. + fi
  1818. + rm -fr conftest*
  1819.   fi
  1820.   rm -f conftest*
  1821.   
  1822.   fi
  1823.   rm -f conftest*
  1824.   
  1825. ! for ac_hdr in unistd.h
  1826. ! do
  1827. ! ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  1828. ! test -n "$silent" || /bin/echo "checking for ${ac_hdr}"
  1829. ! cat > conftest.${ac_ext} <<EOF
  1830. ! #include "confdefs.h"
  1831. ! #include <${ac_hdr}>
  1832. ! EOF
  1833. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1834. ! # the parens.
  1835. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1836. ! if test -z "$ac_err"; then
  1837. !   rm -rf conftest*
  1838. !   
  1839. ! {
  1840. ! test -n "$verbose" && \
  1841. ! /bin/echo "    defining ${ac_tr_hdr}"
  1842. ! /bin/echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  1843. ! DEFS="$DEFS -D${ac_tr_hdr}=1"
  1844.   }
  1845.   
  1846.   fi
  1847.   rm -f conftest*
  1848. + done
  1849.   
  1850. ! for ac_hdr in string.h limits.h
  1851.   do
  1852. ! ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  1853. ! test -n "$silent" || /bin/echo "checking for ${ac_hdr}"
  1854. ! cat > conftest.${ac_ext} <<EOF
  1855. ! #include "confdefs.h"
  1856. ! #include <${ac_hdr}>
  1857. ! EOF
  1858. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1859. ! # the parens.
  1860. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1861. ! if test -z "$ac_err"; then
  1862. !   rm -rf conftest*
  1863. !   
  1864. ! {
  1865. ! test -n "$verbose" && \
  1866. ! /bin/echo "    defining ${ac_tr_hdr}"
  1867. ! /bin/echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  1868. ! DEFS="$DEFS -D${ac_tr_hdr}=1"
  1869.   }
  1870.   
  1871.   fi
  1872.   rm -f conftest*
  1873.   done
  1874.   
  1875. ! for ac_func in memset stpcpy strdup strftime strspn strstr strtol
  1876.   do
  1877. ! test -n "$silent" || /bin/echo "checking for ${ac_func}"
  1878. ! cat > conftest.${ac_ext} <<EOF
  1879. ! #include "confdefs.h"
  1880. ! #include <ctype.h>
  1881. ! int main() { return 0; }
  1882.   int t() { 
  1883. + /* The GNU C library defines this for functions which it implements
  1884. +     to always fail with ENOSYS.  Some functions are actually named
  1885. +     something starting with __ and the normal name is an alias.  */
  1886. + #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  1887. + choke me
  1888. + #else
  1889.   /* Override any gcc2 internal prototype to avoid an error.  */
  1890. ! extern char ${ac_func}(); ${ac_func}();
  1891. ! #endif
  1892. ! ; return 0; }
  1893.   EOF
  1894. ! if eval $ac_compile; then
  1895.     :
  1896.   else
  1897. !   rm -rf conftest*
  1898. !   LIBOBJS="$LIBOBJS ${ac_func}.o"
  1899. ! test -n "$verbose" && /bin/echo "    using ${ac_func}.o instead"
  1900.   fi
  1901.   rm -f conftest*
  1902.   
  1903.   done
  1904.   
  1905. ! for ac_func in strerror
  1906.   do
  1907. ! ac_tr_func=HAVE_`/bin/echo $ac_func | tr '[a-z]' '[A-Z]'`
  1908. ! test -n "$silent" || /bin/echo "checking for ${ac_func}"
  1909. ! cat > conftest.${ac_ext} <<EOF
  1910. ! #include "confdefs.h"
  1911. ! #include <ctype.h>
  1912. ! int main() { return 0; }
  1913.   int t() { 
  1914. ! /* The GNU C library defines this for functions which it implements
  1915. !     to always fail with ENOSYS.  Some functions are actually named
  1916. !     something starting with __ and the normal name is an alias.  */
  1917. ! #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  1918.   choke me
  1919.   #else
  1920.   /* Override any gcc2 internal prototype to avoid an error.  */
  1921. ! extern char ${ac_func}(); ${ac_func}();
  1922.   #endif
  1923. ! ; return 0; }
  1924.   EOF
  1925. ! if eval $ac_compile; then
  1926. !   rm -rf conftest*
  1927.     {
  1928.   test -n "$verbose" && \
  1929. ! /bin/echo "    defining ${ac_tr_func}"
  1930. ! /bin/echo "#define" ${ac_tr_func} "1" >> confdefs.h
  1931. ! DEFS="$DEFS -D${ac_tr_func}=1"
  1932.   }
  1933.   
  1934.   fi
  1935.   rm -f conftest*
  1936.   done
  1937.   
  1938. ! test -n "$silent" || /bin/echo "checking for vprintf"
  1939. ! cat > conftest.${ac_ext} <<EOF
  1940. ! #include "confdefs.h"
  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.   }
  1953.   
  1954.   else
  1955. !   rm -rf conftest*
  1956. !   ac_vprintf_missing=1
  1957.   fi
  1958.   rm -f conftest*
  1959.   
  1960. ! if test -n "$ac_vprintf_missing"; then
  1961. ! test -n "$silent" || /bin/echo "checking for _doprnt"
  1962. ! cat > conftest.${ac_ext} <<EOF
  1963. ! #include "confdefs.h"
  1964.   
  1965. ! int main() { return 0; }
  1966. ! int t() { _doprnt();; return 0; }
  1967.   EOF
  1968. ! if eval $ac_compile; then
  1969. !   rm -rf conftest*
  1970. !   
  1971. ! {
  1972.   test -n "$verbose" && \
  1973. ! /bin/echo "    defining HAVE_DOPRNT"
  1974. ! /bin/echo "#define" HAVE_DOPRNT "1" >> confdefs.h
  1975.   DEFS="$DEFS -DHAVE_DOPRNT=1"
  1976.   }
  1977.   
  1978.   fi
  1979.   rm -f conftest*
  1980.   
  1981. ***************
  1982. *** 760,782 ****
  1983.   
  1984.   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1985.   # for constant arguments.  Useless!
  1986. ! echo checking for working alloca.h
  1987. ! cat > conftest.c <<EOF
  1988.   #include <alloca.h>
  1989. ! int main() { exit(0); } 
  1990. ! int t() { char *p = alloca(2 * sizeof(int)); }
  1991.   EOF
  1992. ! if eval $compile; then
  1993. !   {
  1994.   test -n "$verbose" && \
  1995. ! echo '    defining' HAVE_ALLOCA_H
  1996.   DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  1997.   }
  1998.   
  1999.   fi
  2000.   rm -f conftest*
  2001.   
  2002. ! decl="#ifdef __GNUC__
  2003.   #define alloca __builtin_alloca
  2004.   #else
  2005.   #if HAVE_ALLOCA_H
  2006. --- 1204,1231 ----
  2007.   
  2008.   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  2009.   # for constant arguments.  Useless!
  2010. ! test -n "$silent" || /bin/echo "checking for working alloca.h"
  2011. ! cat > conftest.${ac_ext} <<EOF
  2012. ! #include "confdefs.h"
  2013.   #include <alloca.h>
  2014. ! int main() { return 0; }
  2015. ! int t() { char *p = alloca(2 * sizeof(int));; return 0; }
  2016.   EOF
  2017. ! if eval $ac_compile; then
  2018. !   rm -rf conftest*
  2019. !   
  2020. ! {
  2021.   test -n "$verbose" && \
  2022. ! /bin/echo "    defining HAVE_ALLOCA_H"
  2023. ! /bin/echo "#define" HAVE_ALLOCA_H "1" >> confdefs.h
  2024.   DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  2025.   }
  2026.   
  2027.   fi
  2028.   rm -f conftest*
  2029.   
  2030. ! ac_decl="#ifdef __GNUC__
  2031.   #define alloca __builtin_alloca
  2032.   #else
  2033.   #if HAVE_ALLOCA_H
  2034. ***************
  2035. *** 790,941 ****
  2036.   #endif
  2037.   #endif
  2038.   "
  2039. ! echo checking for alloca
  2040. ! cat > conftest.c <<EOF
  2041. ! $decl
  2042. ! int main() { exit(0); } 
  2043. ! int t() { char *p = (char *) alloca(1); }
  2044.   EOF
  2045. ! if eval $compile; then
  2046. !   :
  2047.   else
  2048. !   alloca_missing=1
  2049.   fi
  2050.   rm -f conftest*
  2051.   
  2052. ! if test -n "$alloca_missing"; then
  2053.     # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2054.     # that cause trouble.  Some versions do not even contain alloca or
  2055.     # contain a buggy version.  If you still want to use their alloca,
  2056.     # use ar to extract alloca.o from them instead of compiling alloca.c.
  2057.     ALLOCA=alloca.o
  2058.   fi
  2059.   
  2060. ! echo checking for st_blocks in struct stat
  2061. ! cat > conftest.c <<EOF
  2062.   #include <sys/types.h>
  2063.   #include <sys/stat.h>
  2064. ! int main() { exit(0); } 
  2065. ! int t() { struct stat s; s.st_blocks; }
  2066.   EOF
  2067. ! if eval $compile; then
  2068. !   {
  2069.   test -n "$verbose" && \
  2070. ! echo '    defining' HAVE_ST_BLOCKS
  2071.   DEFS="$DEFS -DHAVE_ST_BLOCKS=1"
  2072.   }
  2073.   
  2074.   else
  2075.     LIBOBJS="$LIBOBJS fileblocks.o"
  2076.   fi
  2077.   rm -f conftest*
  2078.   
  2079. ! echo checking for st_rdev in struct stat
  2080. ! cat > conftest.c <<EOF
  2081.   #include <sys/types.h>
  2082.   #include <sys/stat.h>
  2083. ! int main() { exit(0); } 
  2084. ! int t() { struct stat s; s.st_rdev; }
  2085.   EOF
  2086. ! if eval $compile; then
  2087. !   {
  2088.   test -n "$verbose" && \
  2089. ! echo '    defining' HAVE_ST_RDEV
  2090.   DEFS="$DEFS -DHAVE_ST_RDEV=1"
  2091.   }
  2092.   
  2093.   fi
  2094.   rm -f conftest*
  2095.   
  2096. ! echo checking for struct tm in time.h
  2097. ! cat > conftest.c <<EOF
  2098.   #include <sys/types.h>
  2099.   #include <time.h>
  2100. ! int main() { exit(0); } 
  2101. ! int t() { struct tm *tp; }
  2102.   EOF
  2103. ! if eval $compile; then
  2104.     :
  2105.   else
  2106. !   {
  2107.   test -n "$verbose" && \
  2108. ! echo '    defining' TM_IN_SYS_TIME
  2109.   DEFS="$DEFS -DTM_IN_SYS_TIME=1"
  2110.   }
  2111.   
  2112.   fi
  2113.   rm -f conftest*
  2114.   
  2115. ! decl='#include <sys/types.h>
  2116.   '
  2117.   case "$DEFS" in
  2118. !   *TM_IN_SYS_TIME*) decl="$decl
  2119.   #include <sys/time.h>
  2120.   " ;;
  2121. !   *) decl="$decl
  2122.   #include <time.h>
  2123.   " ;;
  2124.   esac
  2125. ! echo checking for tm_zone in struct tm
  2126. ! cat > conftest.c <<EOF
  2127. ! $decl
  2128. ! int main() { exit(0); } 
  2129. ! int t() { struct tm tm; tm.tm_zone; }
  2130. ! EOF
  2131. ! if eval $compile; then
  2132. !   {
  2133.   test -n "$verbose" && \
  2134. ! echo '    defining' HAVE_TM_ZONE
  2135.   DEFS="$DEFS -DHAVE_TM_ZONE=1"
  2136.   }
  2137.   
  2138.   else
  2139. !   no_tm_zone=1
  2140.   fi
  2141.   rm -f conftest*
  2142.   
  2143. ! if test -n "$no_tm_zone"; then
  2144. ! echo checking for tzname
  2145. ! cat > conftest.c <<EOF
  2146.   #include <time.h>
  2147.   #ifndef tzname /* For SGI.  */
  2148.   extern char *tzname[]; /* RS6000 and others want it this way.  */
  2149.   #endif
  2150. ! int main() { exit(0); } 
  2151. ! int t() { atoi(*tzname); }
  2152.   EOF
  2153. ! if eval $compile; then
  2154. !   {
  2155.   test -n "$verbose" && \
  2156. ! echo '    defining' HAVE_TZNAME
  2157.   DEFS="$DEFS -DHAVE_TZNAME=1"
  2158.   }
  2159.   
  2160.   fi
  2161.   rm -f conftest*
  2162.   
  2163.   fi
  2164.   
  2165. ! echo checking for Xenix
  2166. ! cat > conftest.c <<EOF
  2167.   #if defined(M_XENIX) && !defined(M_UNIX)
  2168.     yes
  2169.   #endif
  2170.   
  2171.   EOF
  2172. ! eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  2173.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  2174.     XENIX=1
  2175.   fi
  2176.   rm -f conftest*
  2177.   
  2178.   if test -n "$XENIX"; then
  2179. -   {
  2180. - test -n "$verbose" && \
  2181. - echo '    defining' VOID_CLOSEDIR
  2182. - DEFS="$DEFS -DVOID_CLOSEDIR=1"
  2183. - }
  2184.     LIBS="$LIBS -lx"
  2185.     case "$DEFS" in
  2186.     *SYSNDIR*) ;;
  2187. --- 1239,1613 ----
  2188.   #endif
  2189.   #endif
  2190.   "
  2191. ! test -n "$silent" || /bin/echo "checking for alloca"
  2192. ! cat > conftest.${ac_ext} <<EOF
  2193. ! #include "confdefs.h"
  2194. ! $ac_decl
  2195. ! int main() { return 0; }
  2196. ! int t() { char *p = (char *) alloca(1);; return 0; }
  2197. ! EOF
  2198. ! if eval $ac_compile; then
  2199. !   rm -rf conftest*
  2200. !   
  2201. ! {
  2202. ! test -n "$verbose" && \
  2203. ! /bin/echo "    defining HAVE_ALLOCA"
  2204. ! /bin/echo "#define" HAVE_ALLOCA "1" >> confdefs.h
  2205. ! DEFS="$DEFS -DHAVE_ALLOCA=1"
  2206. ! }
  2207. ! else
  2208. !   rm -rf conftest*
  2209. !   ac_alloca_missing=1
  2210. ! cat > conftest.${ac_ext} <<EOF
  2211. ! #include "confdefs.h"
  2212. ! #if defined(CRAY) && ! defined(CRAY2)
  2213. ! winnitude
  2214. ! #else
  2215. ! lossage
  2216. ! #endif
  2217.   EOF
  2218. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  2219. ! if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  2220. !   rm -rf conftest*
  2221. !   test -n "$silent" || /bin/echo "checking for _getb67"
  2222. ! cat > conftest.${ac_ext} <<EOF
  2223. ! #include "confdefs.h"
  2224. ! #include <ctype.h>
  2225. ! int main() { return 0; }
  2226. ! int t() { 
  2227. ! /* The GNU C library defines this for functions which it implements
  2228. !     to always fail with ENOSYS.  Some functions are actually named
  2229. !     something starting with __ and the normal name is an alias.  */
  2230. ! #if defined (__stub__getb67) || defined (__stub____getb67)
  2231. ! choke me
  2232. ! #else
  2233. ! /* Override any gcc2 internal prototype to avoid an error.  */
  2234. ! extern char _getb67(); _getb67();
  2235. ! #endif
  2236. ! ; return 0; }
  2237. ! EOF
  2238. ! if eval $ac_compile; then
  2239. !   rm -rf conftest*
  2240. !   {
  2241. ! test -n "$verbose" && \
  2242. ! /bin/echo "    defining" CRAY_STACKSEG_END to be "_getb67"
  2243. ! /bin/echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.h
  2244. ! DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
  2245. ! }
  2246.   else
  2247. !   rm -rf conftest*
  2248. !   test -n "$silent" || /bin/echo "checking for GETB67"
  2249. ! cat > conftest.${ac_ext} <<EOF
  2250. ! #include "confdefs.h"
  2251. ! #include <ctype.h>
  2252. ! int main() { return 0; }
  2253. ! int t() { 
  2254. ! /* The GNU C library defines this for functions which it implements
  2255. !     to always fail with ENOSYS.  Some functions are actually named
  2256. !     something starting with __ and the normal name is an alias.  */
  2257. ! #if defined (__stub_GETB67) || defined (__stub___GETB67)
  2258. ! choke me
  2259. ! #else
  2260. ! /* Override any gcc2 internal prototype to avoid an error.  */
  2261. ! extern char GETB67(); GETB67();
  2262. ! #endif
  2263. ! ; return 0; }
  2264. ! EOF
  2265. ! if eval $ac_compile; then
  2266. !   rm -rf conftest*
  2267. !   {
  2268. ! test -n "$verbose" && \
  2269. ! /bin/echo "    defining" CRAY_STACKSEG_END to be "GETB67"
  2270. ! /bin/echo "#define" CRAY_STACKSEG_END "GETB67" >> confdefs.h
  2271. ! DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
  2272. ! }
  2273. ! else
  2274. !   rm -rf conftest*
  2275. !   test -n "$silent" || /bin/echo "checking for getb67"
  2276. ! cat > conftest.${ac_ext} <<EOF
  2277. ! #include "confdefs.h"
  2278. ! #include <ctype.h>
  2279. ! int main() { return 0; }
  2280. ! int t() { 
  2281. ! /* The GNU C library defines this for functions which it implements
  2282. !     to always fail with ENOSYS.  Some functions are actually named
  2283. !     something starting with __ and the normal name is an alias.  */
  2284. ! #if defined (__stub_getb67) || defined (__stub___getb67)
  2285. ! choke me
  2286. ! #else
  2287. ! /* Override any gcc2 internal prototype to avoid an error.  */
  2288. ! extern char getb67(); getb67();
  2289. ! #endif
  2290. ! ; return 0; }
  2291. ! EOF
  2292. ! if eval $ac_compile; then
  2293. !   rm -rf conftest*
  2294. !   {
  2295. ! test -n "$verbose" && \
  2296. ! /bin/echo "    defining" CRAY_STACKSEG_END to be "getb67"
  2297. ! /bin/echo "#define" CRAY_STACKSEG_END "getb67" >> confdefs.h
  2298. ! DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
  2299. ! }
  2300.   fi
  2301.   rm -f conftest*
  2302.   
  2303. ! fi
  2304. ! rm -f conftest*
  2305. ! fi
  2306. ! rm -f conftest*
  2307. ! fi
  2308. ! rm -f conftest*
  2309. ! fi
  2310. ! rm -f conftest*
  2311. ! if test -n "$ac_alloca_missing"; then
  2312.     # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2313.     # that cause trouble.  Some versions do not even contain alloca or
  2314.     # contain a buggy version.  If you still want to use their alloca,
  2315.     # use ar to extract alloca.o from them instead of compiling alloca.c.
  2316.     ALLOCA=alloca.o
  2317. +   
  2318. + {
  2319. + test -n "$verbose" && \
  2320. + /bin/echo "    defining C_ALLOCA"
  2321. + /bin/echo "#define" C_ALLOCA "1" >> confdefs.h
  2322. + DEFS="$DEFS -DC_ALLOCA=1"
  2323. + }
  2324. +   test -n "$silent" || /bin/echo "checking stack direction for C alloca"
  2325. +   test -n "$silent" || /bin/echo "checking whether cross-compiling"
  2326. + # If we cannot run a trivial program, we must be cross compiling.
  2327. + cat > conftest.${ac_ext} <<EOF
  2328. + #include "confdefs.h"
  2329. + main(){exit(0);}
  2330. + EOF
  2331. + eval $ac_compile
  2332. + if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2333. +   :
  2334. + else
  2335. +   cross_compiling=1
  2336.   fi
  2337. + rm -fr conftest*
  2338.   
  2339. ! if test -n "$cross_compiling"
  2340. ! then
  2341. !   
  2342. ! {
  2343. ! test -n "$verbose" && \
  2344. ! /bin/echo "    defining" STACK_DIRECTION to be "0"
  2345. ! /bin/echo "#define" STACK_DIRECTION "0" >> confdefs.h
  2346. ! DEFS="$DEFS -DSTACK_DIRECTION=0"
  2347. ! }
  2348. ! else
  2349. ! cat > conftest.${ac_ext} <<EOF
  2350. ! #include "confdefs.h"
  2351. ! find_stack_direction ()
  2352. ! {
  2353. !   static char *addr = 0;
  2354. !   auto char dummy;
  2355. !   if (addr == 0)
  2356. !     {
  2357. !       addr = &dummy;
  2358. !       return find_stack_direction ();
  2359. !     }
  2360. !   else
  2361. !     return (&dummy > addr) ? 1 : -1;
  2362. ! }
  2363. ! main ()
  2364. ! {
  2365. !   exit (find_stack_direction() < 0);
  2366. ! }
  2367. ! EOF
  2368. ! eval $ac_compile
  2369. ! if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2370. !   
  2371. ! {
  2372. ! test -n "$verbose" && \
  2373. ! /bin/echo "    defining" STACK_DIRECTION to be "1"
  2374. ! /bin/echo "#define" STACK_DIRECTION "1" >> confdefs.h
  2375. ! DEFS="$DEFS -DSTACK_DIRECTION=1"
  2376. ! }
  2377. ! else
  2378. !   
  2379. ! {
  2380. ! test -n "$verbose" && \
  2381. ! /bin/echo "    defining" STACK_DIRECTION to be "-1"
  2382. ! /bin/echo "#define" STACK_DIRECTION "-1" >> confdefs.h
  2383. ! DEFS="$DEFS -DSTACK_DIRECTION=-1"
  2384. ! }
  2385. ! fi
  2386. ! fi
  2387. ! rm -fr conftest*
  2388. ! fi
  2389. ! test -n "$silent" || /bin/echo "checking for st_blocks in struct stat"
  2390. ! cat > conftest.${ac_ext} <<EOF
  2391. ! #include "confdefs.h"
  2392.   #include <sys/types.h>
  2393.   #include <sys/stat.h>
  2394. ! int main() { return 0; }
  2395. ! int t() { struct stat s; s.st_blocks;; return 0; }
  2396.   EOF
  2397. ! if eval $ac_compile; then
  2398. !   rm -rf conftest*
  2399. !   
  2400. ! {
  2401.   test -n "$verbose" && \
  2402. ! /bin/echo "    defining HAVE_ST_BLOCKS"
  2403. ! /bin/echo "#define" HAVE_ST_BLOCKS "1" >> confdefs.h
  2404.   DEFS="$DEFS -DHAVE_ST_BLOCKS=1"
  2405.   }
  2406.   
  2407.   else
  2408. +   rm -rf conftest*
  2409.     LIBOBJS="$LIBOBJS fileblocks.o"
  2410.   fi
  2411.   rm -f conftest*
  2412.   
  2413. ! test -n "$silent" || /bin/echo "checking for st_rdev in struct stat"
  2414. ! cat > conftest.${ac_ext} <<EOF
  2415. ! #include "confdefs.h"
  2416.   #include <sys/types.h>
  2417.   #include <sys/stat.h>
  2418. ! int main() { return 0; }
  2419. ! int t() { struct stat s; s.st_rdev;; return 0; }
  2420.   EOF
  2421. ! if eval $ac_compile; then
  2422. !   rm -rf conftest*
  2423. !   
  2424. ! {
  2425.   test -n "$verbose" && \
  2426. ! /bin/echo "    defining HAVE_ST_RDEV"
  2427. ! /bin/echo "#define" HAVE_ST_RDEV "1" >> confdefs.h
  2428.   DEFS="$DEFS -DHAVE_ST_RDEV=1"
  2429.   }
  2430.   
  2431.   fi
  2432.   rm -f conftest*
  2433.   
  2434. ! test -n "$silent" || /bin/echo "checking for struct tm in time.h"
  2435. ! cat > conftest.${ac_ext} <<EOF
  2436. ! #include "confdefs.h"
  2437.   #include <sys/types.h>
  2438.   #include <time.h>
  2439. ! int main() { return 0; }
  2440. ! int t() { struct tm *tp; tp->tm_sec;; return 0; }
  2441.   EOF
  2442. ! if eval $ac_compile; then
  2443.     :
  2444.   else
  2445. !   rm -rf conftest*
  2446. !   
  2447. ! {
  2448.   test -n "$verbose" && \
  2449. ! /bin/echo "    defining TM_IN_SYS_TIME"
  2450. ! /bin/echo "#define" TM_IN_SYS_TIME "1" >> confdefs.h
  2451.   DEFS="$DEFS -DTM_IN_SYS_TIME=1"
  2452.   }
  2453.   
  2454.   fi
  2455.   rm -f conftest*
  2456.   
  2457. ! ac_decl='#include <sys/types.h>
  2458.   '
  2459.   case "$DEFS" in
  2460. !   *TM_IN_SYS_TIME*) ac_decl="$ac_decl
  2461.   #include <sys/time.h>
  2462.   " ;;
  2463. !   *) ac_decl="$ac_decl
  2464.   #include <time.h>
  2465.   " ;;
  2466.   esac
  2467. ! test -n "$silent" || /bin/echo "checking for tm_zone in struct tm"
  2468. ! cat > conftest.${ac_ext} <<EOF
  2469. ! #include "confdefs.h"
  2470. ! $ac_decl
  2471. ! int main() { return 0; }
  2472. ! int t() { struct tm tm; tm.tm_zone;; return 0; }
  2473. ! EOF
  2474. ! if eval $ac_compile; then
  2475. !   rm -rf conftest*
  2476. !   
  2477. ! {
  2478.   test -n "$verbose" && \
  2479. ! /bin/echo "    defining HAVE_TM_ZONE"
  2480. ! /bin/echo "#define" HAVE_TM_ZONE "1" >> confdefs.h
  2481.   DEFS="$DEFS -DHAVE_TM_ZONE=1"
  2482.   }
  2483.   
  2484.   else
  2485. !   rm -rf conftest*
  2486. !   ac_no_tm_zone=1
  2487.   fi
  2488.   rm -f conftest*
  2489.   
  2490. ! if test -n "$ac_no_tm_zone"; then
  2491. ! test -n "$silent" || /bin/echo "checking for tzname"
  2492. ! cat > conftest.${ac_ext} <<EOF
  2493. ! #include "confdefs.h"
  2494.   #include <time.h>
  2495.   #ifndef tzname /* For SGI.  */
  2496.   extern char *tzname[]; /* RS6000 and others want it this way.  */
  2497.   #endif
  2498. ! int main() { return 0; }
  2499. ! int t() { atoi(*tzname);; return 0; }
  2500.   EOF
  2501. ! if eval $ac_compile; then
  2502. !   rm -rf conftest*
  2503. !   
  2504. ! {
  2505.   test -n "$verbose" && \
  2506. ! /bin/echo "    defining HAVE_TZNAME"
  2507. ! /bin/echo "#define" HAVE_TZNAME "1" >> confdefs.h
  2508.   DEFS="$DEFS -DHAVE_TZNAME=1"
  2509.   }
  2510.   
  2511.   fi
  2512.   rm -f conftest*
  2513.   
  2514.   fi
  2515.   
  2516. ! test -n "$silent" || /bin/echo "checking for Xenix"
  2517. ! cat > conftest.${ac_ext} <<EOF
  2518. ! #include "confdefs.h"
  2519.   #if defined(M_XENIX) && !defined(M_UNIX)
  2520.     yes
  2521.   #endif
  2522.   
  2523.   EOF
  2524. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  2525.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  2526. +   rm -rf conftest*
  2527.     XENIX=1
  2528.   fi
  2529.   rm -f conftest*
  2530.   
  2531.   if test -n "$XENIX"; then
  2532.     LIBS="$LIBS -lx"
  2533.     case "$DEFS" in
  2534.     *SYSNDIR*) ;;
  2535. ***************
  2536. *** 943,981 ****
  2537.     esac
  2538.   fi
  2539.   
  2540. ! echo checking for IRIX libsun
  2541. ! if test -f /usr/lib/libsun.a; then
  2542. !   LIBS="$LIBS -lsun"
  2543.   fi
  2544.   
  2545. - echo checking for DYNIX/ptx libseq
  2546. - cat > conftest.c <<EOF
  2547. - #if defined(_SEQUENT_)
  2548. -   yes
  2549. - #endif
  2550.   
  2551.   EOF
  2552. ! eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  2553. ! if egrep "yes" conftest.out >/dev/null 2>&1; then
  2554. !   SEQUENT=1
  2555.   fi
  2556.   rm -f conftest*
  2557.   
  2558. - test -n "$SEQUENT" && test -f /usr/lib/libseq.a &&
  2559. -   LIBS="$LIBS -lseq"
  2560.   
  2561.   if test -n "$prefix"; then
  2562. !   test -z "$exec_prefix" && exec_prefix='${prefix}'
  2563. !   prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  2564.   fi
  2565.   if test -n "$exec_prefix"; then
  2566. !   prsub="$prsub
  2567. ! s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%\
  2568. ! exec_prefix\\1=\\2$exec_prefix%"
  2569.   fi
  2570.   
  2571. ! trap 'rm -f config.status; exit 1' 1 3 15
  2572. ! echo creating config.status
  2573.   rm -f config.status
  2574.   cat > config.status <<EOF
  2575.   #!/bin/sh
  2576. --- 1615,1695 ----
  2577.     esac
  2578.   fi
  2579.   
  2580. ! ac_save_LIBS="${LIBS}"
  2581. ! LIBS="${LIBS} -lsun"
  2582. ! ac_have_lib=""
  2583. ! test -n "$silent" || /bin/echo "checking for -lsun"
  2584. ! cat > conftest.${ac_ext} <<EOF
  2585. ! #include "confdefs.h"
  2586. ! int main() { return 0; }
  2587. ! int t() { main();; return 0; }
  2588. ! EOF
  2589. ! if eval $ac_compile; then
  2590. !   rm -rf conftest*
  2591. !   ac_have_lib="1"
  2592. ! fi
  2593. ! rm -f conftest*
  2594. ! LIBS="${ac_save_LIBS}"
  2595. ! if test -n "${ac_have_lib}"; then
  2596. !    :; LIBS="$LIBS -lsun"
  2597. ! else
  2598. !    :; 
  2599.   fi
  2600.   
  2601.   
  2602. + ac_save_LIBS="${LIBS}"
  2603. + LIBS="${LIBS} -lseq"
  2604. + ac_have_lib=""
  2605. + test -n "$silent" || /bin/echo "checking for -lseq"
  2606. + cat > conftest.${ac_ext} <<EOF
  2607. + #include "confdefs.h"
  2608. + int main() { return 0; }
  2609. + int t() { main();; return 0; }
  2610.   EOF
  2611. ! if eval $ac_compile; then
  2612. !   rm -rf conftest*
  2613. !   ac_have_lib="1"
  2614.   fi
  2615.   rm -f conftest*
  2616. + LIBS="${ac_save_LIBS}"
  2617. + if test -n "${ac_have_lib}"; then
  2618. +    :; LIBS="$LIBS -lseq"
  2619. + else
  2620. +    :; 
  2621. + fi
  2622.   
  2623.   
  2624. + # Set default prefixes.
  2625.   if test -n "$prefix"; then
  2626. !   test -z "$exec_prefix" && exec_prefix='${prefix}' # Let make expand it.
  2627. !   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  2628.   fi
  2629.   if test -n "$exec_prefix"; then
  2630. !   ac_prsub="$ac_prsub
  2631. ! s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  2632.   fi
  2633. + # Any assignment to VPATH causes Sun make to only execute
  2634. + # the first set of double-colon rules, so remove it if not needed.
  2635. + # If there is a colon in the path, we need to keep it.
  2636. + if test "x$srcdir" = x.; then
  2637. +   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2638. + fi
  2639. + # Quote sed substitution magic chars in DEFS.
  2640. + cat >conftest.def <<EOF
  2641. + $DEFS
  2642. + EOF
  2643. + ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  2644. + DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  2645. + rm -f conftest.def
  2646. + # Substitute for predefined variables.
  2647.   
  2648. ! trap 'rm -f config.status; exit 1' 1 2 15
  2649. ! /bin/echo creating config.status
  2650.   rm -f config.status
  2651.   cat > config.status <<EOF
  2652.   #!/bin/sh
  2653. ***************
  2654. *** 984,1001 ****
  2655.   # This directory was configured as follows,
  2656.   # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2657.   #
  2658. ! # $0 $*
  2659.   
  2660. ! for arg
  2661.   do
  2662. !   case "\$arg" in
  2663. !     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2664. !     exec /bin/sh $0 $* ;;
  2665. !     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  2666.     esac
  2667.   done
  2668.   
  2669. ! trap 'rm -f Makefile lib/Makefile find/Makefile xargs/Makefile locate/Makefile man/Makefile; exit 1' 1 3 15
  2670.   CC='$CC'
  2671.   CPP='$CPP'
  2672.   INSTALL='$INSTALL'
  2673. --- 1698,1722 ----
  2674.   # This directory was configured as follows,
  2675.   # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2676.   #
  2677. ! # $0 $configure_args
  2678.   
  2679. ! ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  2680. ! for ac_option
  2681.   do
  2682. !   case "\$ac_option" in
  2683. !   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2684. !     /bin/echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  2685. !     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  2686. !   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2687. !     /bin/echo "config.status generated by autoconf version 1.9"
  2688. !     exit 0 ;;
  2689. !   -help | --help | --hel | --he | --h)
  2690. !     /bin/echo "\$ac_cs_usage"; exit 0 ;;
  2691. !   *) /bin/echo "\$ac_cs_usage"; exit 1 ;;
  2692.     esac
  2693.   done
  2694.   
  2695. ! trap 'rm -f Makefile lib/Makefile find/Makefile xargs/Makefile locate/Makefile man/Makefile; exit 1' 1 2 15
  2696.   CC='$CC'
  2697.   CPP='$CPP'
  2698.   INSTALL='$INSTALL'
  2699. ***************
  2700. *** 1006,1032 ****
  2701.   ALLOCA='$ALLOCA'
  2702.   LIBS='$LIBS'
  2703.   srcdir='$srcdir'
  2704. ! DEFS='$DEFS'
  2705.   prefix='$prefix'
  2706.   exec_prefix='$exec_prefix'
  2707. ! prsub='$prsub'
  2708.   EOF
  2709.   cat >> config.status <<\EOF
  2710.   
  2711. ! top_srcdir=$srcdir
  2712. ! for file in .. Makefile lib/Makefile find/Makefile xargs/Makefile locate/Makefile man/Makefile; do if [ "x$file" != "x.." ]; then
  2713. !   srcdir=$top_srcdir
  2714.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2715. !   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  2716. !   if test "$dir" != "$file"; then
  2717. !     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  2718. !     test ! -d $dir && mkdir $dir
  2719.     fi
  2720. !   echo creating $file
  2721. !   rm -f $file
  2722. !   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  2723.     sed -e "
  2724. ! $prsub
  2725.   s%@CC@%$CC%g
  2726.   s%@CPP@%$CPP%g
  2727.   s%@INSTALL@%$INSTALL%g
  2728. --- 1727,1777 ----
  2729.   ALLOCA='$ALLOCA'
  2730.   LIBS='$LIBS'
  2731.   srcdir='$srcdir'
  2732. ! top_srcdir='$top_srcdir'
  2733.   prefix='$prefix'
  2734.   exec_prefix='$exec_prefix'
  2735. ! DEFS='$DEFS'
  2736. ! ac_prsub='$ac_prsub'
  2737. ! ac_vpsub='$ac_vpsub'
  2738. ! extrasub='$extrasub'
  2739.   EOF
  2740.   cat >> config.status <<\EOF
  2741.   
  2742. ! ac_given_srcdir=$srcdir
  2743. ! CONFIG_FILES=${CONFIG_FILES-"Makefile lib/Makefile find/Makefile xargs/Makefile locate/Makefile man/Makefile"}
  2744. ! for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  2745.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2746. !   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2747. !   if test "$ac_dir" != "$ac_file"; then
  2748. !     # The file is in a subdirectory.
  2749. !     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2750. !     ac_dir_suffix="/$ac_dir"
  2751. !   else
  2752. !     ac_dir_suffix=
  2753.     fi
  2754. !   # A "../" for each directory in $ac_dir_suffix.
  2755. !   ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2756. !   case "$ac_given_srcdir" in
  2757. !   .)  srcdir=.; top_srcdir="$ac_dots." ;;
  2758. !   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2759. !   *) # Relative path.
  2760. !     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2761. !     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2762. !   esac
  2763. !   /bin/echo creating "$ac_file"
  2764. !   rm -f "$ac_file"
  2765. !   comment_str="Generated automatically from `/bin/echo $ac_file|sed 's|.*/||'`.in by configure."
  2766. !   case "$ac_file" in
  2767. !     *.c | *.h | *.C | *.cc | *.m )  /bin/echo "/* $comment_str */" > "$ac_file" ;;
  2768. !     * )          /bin/echo "# $comment_str"     > "$ac_file" ;;
  2769. !   esac
  2770.     sed -e "
  2771. ! $ac_prsub
  2772. ! $ac_vpsub
  2773. ! $extrasub
  2774.   s%@CC@%$CC%g
  2775.   s%@CPP@%$CPP%g
  2776.   s%@INSTALL@%$INSTALL%g
  2777. ***************
  2778. *** 1037,1048 ****
  2779.   s%@ALLOCA@%$ALLOCA%g
  2780.   s%@LIBS@%$LIBS%g
  2781.   s%@srcdir@%$srcdir%g
  2782.   s%@DEFS@%$DEFS%
  2783. ! " $top_srcdir/${file}.in >> $file
  2784.   fi; done
  2785.   
  2786.   exit 0
  2787.   EOF
  2788.   chmod +x config.status
  2789. ! test -n "$no_create" || ./config.status
  2790.   
  2791. --- 1782,1797 ----
  2792.   s%@ALLOCA@%$ALLOCA%g
  2793.   s%@LIBS@%$LIBS%g
  2794.   s%@srcdir@%$srcdir%g
  2795. + s%@top_srcdir@%$top_srcdir%g
  2796. + s%@prefix@%$prefix%g
  2797. + s%@exec_prefix@%$exec_prefix%g
  2798.   s%@DEFS@%$DEFS%
  2799. ! " $ac_given_srcdir/${ac_file}.in >> $ac_file
  2800.   fi; done
  2801.   
  2802.   exit 0
  2803.   EOF
  2804.   chmod +x config.status
  2805. ! test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} config.status
  2806.   
  2807. diff -rc --new-file find-3.8/configure.in /gnu/src/amiga/find-3.8/configure.in
  2808. *** find-3.8/configure.in    Fri Mar 26 01:46:53 1993
  2809. --- /gnu/src/amiga/find-3.8/configure.in    Mon Apr 25 12:18:53 1994
  2810. ***************
  2811. *** 41,47 ****
  2812.   AC_UID_T
  2813.   AC_CONST
  2814.   AC_STDC_HEADERS
  2815. ! AC_UNISTD_H
  2816.   AC_HAVE_HEADERS(string.h limits.h)
  2817.   AC_REPLACE_FUNCS(memset stpcpy strdup strftime strspn strstr strtol)
  2818.   AC_HAVE_FUNCS(strerror)
  2819. --- 41,47 ----
  2820.   AC_UID_T
  2821.   AC_CONST
  2822.   AC_STDC_HEADERS
  2823. ! AC_HAVE_HEADERS(unistd.h)
  2824.   AC_HAVE_HEADERS(string.h limits.h)
  2825.   AC_REPLACE_FUNCS(memset stpcpy strdup strftime strspn strstr strtol)
  2826.   AC_HAVE_FUNCS(strerror)
  2827. diff -rc --new-file find-3.8/find/find.c /gnu/src/amiga/find-3.8/find/find.c
  2828. *** find-3.8/find/find.c    Fri Mar 26 22:23:01 1993
  2829. --- /gnu/src/amiga/find-3.8/find/find.c    Wed May  4 15:51:24 1994
  2830. ***************
  2831. *** 113,119 ****
  2832.   }
  2833.   #endif /* DEBUG_STAT */
  2834.   
  2835. ! void
  2836.   main (argc, argv)
  2837.        int argc;
  2838.        char *argv[];
  2839. --- 113,119 ----
  2840.   }
  2841.   #endif /* DEBUG_STAT */
  2842.   
  2843. ! int
  2844.   main (argc, argv)
  2845.        int argc;
  2846.        char *argv[];
  2847. diff -rc --new-file find-3.8/find/pred.c /gnu/src/amiga/find-3.8/find/pred.c
  2848. *** find-3.8/find/pred.c    Fri Mar 26 22:54:04 1993
  2849. --- /gnu/src/amiga/find-3.8/find/pred.c    Wed Feb 23 15:49:53 1994
  2850. ***************
  2851. *** 1396,1402 ****
  2852.     fflush (stdout);
  2853.     fflush (stderr);
  2854.   
  2855. !   child_pid = fork ();
  2856.     if (child_pid == -1)
  2857.       error (1, errno, "cannot fork");
  2858.     if (child_pid == 0)
  2859. --- 1396,1402 ----
  2860.     fflush (stdout);
  2861.     fflush (stderr);
  2862.   
  2863. !   child_pid = vfork ();
  2864.     if (child_pid == -1)
  2865.       error (1, errno, "cannot fork");
  2866.     if (child_pid == 0)
  2867. diff -rc --new-file find-3.8/lib/fnmatch.h /gnu/src/amiga/find-3.8/lib/fnmatch.h
  2868. *** find-3.8/lib/fnmatch.h    Thu Mar 25 22:06:09 1993
  2869. --- /gnu/src/amiga/find-3.8/lib/fnmatch.h    Wed May  4 15:53:30 1994
  2870. ***************
  2871. *** 33,38 ****
  2872. --- 33,42 ----
  2873.   #define    const
  2874.   #endif /* C++ or ANSI C.  */
  2875.   
  2876. + #ifdef FNM_PATHNAME
  2877. + #undef FNM_PATHNAME    /* Defined in some <unistd.h> files?  -fnf */
  2878. + #endif
  2879.   /* Bits set in the FLAGS argument to `fnmatch'.  */
  2880.   #define    FNM_PATHNAME    (1 << 0) /* No wildcard can ever match `/'.  */
  2881.   #define    FNM_NOESCAPE    (1 << 1) /* Backslashes don't quote special chars.  */
  2882. diff -rc --new-file find-3.8/locate/Makefile.in /gnu/src/amiga/find-3.8/locate/Makefile.in
  2883. *** find-3.8/locate/Makefile.in    Fri Sep 11 02:35:25 1992
  2884. --- /gnu/src/amiga/find-3.8/locate/Makefile.in    Sun Jun 12 16:42:01 1994
  2885. ***************
  2886. *** 32,39 ****
  2887.   
  2888.   install: all
  2889.       $(INSTALL_PROGRAM) locate $(bindir)/$(binprefix)locate
  2890. !     -mkdir $(libdir)
  2891. !     -mkdir $(datadir)
  2892.       for f in $(LIBPROGS); do $(INSTALL_PROGRAM) $$f $(libdir)/$$f; done
  2893.   
  2894.   uninstall:
  2895. --- 32,39 ----
  2896.   
  2897.   install: all
  2898.       $(INSTALL_PROGRAM) locate $(bindir)/$(binprefix)locate
  2899. !     if [ -d $(libdir) ]; then true; else mkdir $(libdir); fi
  2900. !     if [ -d $(datadir) ]; then true; else mkdir $(datadir); fi
  2901.       for f in $(LIBPROGS); do $(INSTALL_PROGRAM) $$f $(libdir)/$$f; done
  2902.   
  2903.   uninstall:
  2904. diff -rc --new-file find-3.8/locate/bigram.c /gnu/src/amiga/find-3.8/locate/bigram.c
  2905. *** find-3.8/locate/bigram.c    Sun Dec 13 11:59:23 1992
  2906. --- /gnu/src/amiga/find-3.8/locate/bigram.c    Wed Feb 23 16:13:41 1994
  2907. ***************
  2908. *** 30,36 ****
  2909.   
  2910.   static char *oldpath;
  2911.   
  2912. ! void
  2913.   main (argc, argv)
  2914.        int argc;
  2915.        char **argv;
  2916. --- 30,36 ----
  2917.   
  2918.   static char *oldpath;
  2919.   
  2920. ! int
  2921.   main (argc, argv)
  2922.        int argc;
  2923.        char **argv;
  2924. diff -rc --new-file find-3.8/locate/code.c /gnu/src/amiga/find-3.8/locate/code.c
  2925. *** find-3.8/locate/code.c    Sun Dec 13 11:59:23 1992
  2926. --- /gnu/src/amiga/find-3.8/locate/code.c    Wed Feb 23 16:13:59 1994
  2927. ***************
  2928. *** 53,59 ****
  2929.   
  2930.   static char bigrams[257] = {0};
  2931.   
  2932. ! void
  2933.   main (argc, argv)
  2934.        int argc;
  2935.        char *argv[];
  2936. --- 53,59 ----
  2937.   
  2938.   static char bigrams[257] = {0};
  2939.   
  2940. ! int
  2941.   main (argc, argv)
  2942.        int argc;
  2943.        char *argv[];
  2944. diff -rc --new-file find-3.8/locate/locate.c /gnu/src/amiga/find-3.8/locate/locate.c
  2945. *** find-3.8/locate/locate.c    Sun Dec 13 11:59:24 1992
  2946. --- /gnu/src/amiga/find-3.8/locate/locate.c    Wed May  4 19:14:09 1994
  2947. ***************
  2948. *** 33,39 ****
  2949.      Public domain. */
  2950.   
  2951.   #include <stdio.h>
  2952. - #include <fnmatch.h>
  2953.   #include <getopt.h>
  2954.   #if defined(HAVE_STRING_H) || defined(STDC_HEADERS)
  2955.   #include <string.h>
  2956. --- 33,38 ----
  2957. ***************
  2958. *** 56,61 ****
  2959. --- 55,63 ----
  2960.   #endif
  2961.   #include <sys/types.h>
  2962.   #include "pathmax.h"
  2963. + /* Put fnmatch.h after pathmax.h, since it includes <unistd.h>, which may define
  2964. +    FNM_PATHNAME. */
  2965. + #include "fnmatch.h"
  2966.   
  2967.   #define    TRUE    1
  2968.   #define    FALSE    0
  2969. ***************
  2970. *** 215,221 ****
  2971.     {NULL, 0, NULL, 0}
  2972.   };
  2973.   
  2974. ! void
  2975.   main (argc, argv)
  2976.        int argc;
  2977.        char **argv;
  2978. --- 217,223 ----
  2979.     {NULL, 0, NULL, 0}
  2980.   };
  2981.   
  2982. ! int
  2983.   main (argc, argv)
  2984.        int argc;
  2985.        char **argv;
  2986. diff -rc --new-file find-3.8/locate/updatedb.sh /gnu/src/amiga/find-3.8/locate/updatedb.sh
  2987. *** find-3.8/locate/updatedb.sh    Fri Jul  3 07:45:02 1992
  2988. --- /gnu/src/amiga/find-3.8/locate/updatedb.sh    Wed Feb 23 15:56:47 1994
  2989. ***************
  2990. *** 3,9 ****
  2991.   # csh original by James Woods; sh conversion by David MacKenzie.
  2992.   # Public domain.
  2993.   
  2994. ! PATH=/bin:/usr/bin # Just temporarily.
  2995.   
  2996.   # You can set these in the environment to override their defaults:
  2997.   
  2998. --- 3,9 ----
  2999.   # csh original by James Woods; sh conversion by David MacKenzie.
  3000.   # Public domain.
  3001.   
  3002. ! PATH=/local/bin:/bin # Just temporarily.
  3003.   
  3004.   # You can set these in the environment to override their defaults:
  3005.   
  3006. ***************
  3007. *** 24,30 ****
  3008.   test -z "$NFSUSER" && NFSUSER=daemon
  3009.   
  3010.   # Directory to hold intermediate files.
  3011. ! test -z "$TMPDIR" && TMPDIR=/usr/tmp
  3012.   
  3013.   # The database file to build.
  3014.   test -z "$LOCATE_DB" && LOCATE_DB=@LOCATE_DB@
  3015. --- 24,30 ----
  3016.   test -z "$NFSUSER" && NFSUSER=daemon
  3017.   
  3018.   # Directory to hold intermediate files.
  3019. ! test -z "$TMPDIR" && TMPDIR=/tmp
  3020.   
  3021.   # The database file to build.
  3022.   test -z "$LOCATE_DB" && LOCATE_DB=@LOCATE_DB@
  3023. ***************
  3024. *** 41,47 ****
  3025.   # Any prefix in the GNU find filename, before `find'.
  3026.   binprefix=@binprefix@
  3027.   
  3028. ! PATH=$LIBDIR:$BINDIR:/usr/ucb:/bin:/usr/bin export PATH
  3029.   
  3030.   bigrams=$TMPDIR/f.bigrams$$
  3031.   filelist=$TMPDIR/f.list$$
  3032. --- 41,47 ----
  3033.   # Any prefix in the GNU find filename, before `find'.
  3034.   binprefix=@binprefix@
  3035.   
  3036. ! PATH=$LIBDIR:$BINDIR:/bin:/local/bin export PATH
  3037.   
  3038.   bigrams=$TMPDIR/f.bigrams$$
  3039.   filelist=$TMPDIR/f.list$$
  3040. diff -rc --new-file find-3.8/xargs/xargs.c /gnu/src/amiga/find-3.8/xargs/xargs.c
  3041. *** find-3.8/xargs/xargs.c    Wed Mar 24 23:18:27 1993
  3042. --- /gnu/src/amiga/find-3.8/xargs/xargs.c    Wed May  4 15:52:51 1994
  3043. ***************
  3044. *** 227,233 ****
  3045.     {NULL, 0, NULL, 0}
  3046.   };
  3047.   
  3048. ! void
  3049.   main (argc, argv)
  3050.        int argc;
  3051.        char **argv;
  3052. --- 227,233 ----
  3053.     {NULL, 0, NULL, 0}
  3054.   };
  3055.   
  3056. ! int
  3057.   main (argc, argv)
  3058.        int argc;
  3059.        char **argv;
  3060. ***************
  3061. *** 696,702 ****
  3062.       print_args (0);
  3063.         /* If we run out of processes, wait for a child to return and
  3064.            try again.  */
  3065. !       while ((child = fork ()) < 0 && errno == EAGAIN && procs_executing)
  3066.       wait_for_proc (0);
  3067.         switch (child)
  3068.       {
  3069. --- 696,702 ----
  3070.       print_args (0);
  3071.         /* If we run out of processes, wait for a child to return and
  3072.            try again.  */
  3073. !       while ((child = vfork ()) < 0 && errno == EAGAIN && procs_executing)
  3074.       wait_for_proc (0);
  3075.         switch (child)
  3076.       {
  3077.