home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / src / diffs / cpio-2.3.diffs < prev    next >
Encoding:
Text File  |  1995-01-21  |  77.7 KB  |  2,897 lines

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