home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / sh-utils-1.12-diffs.gz / sh-utils-1.12-diffs
Text File  |  1996-10-13  |  218KB  |  6,587 lines

  1. This file contains patches that transform the baseline version into
  2. the amiga version.  Assuming that you have unarchived the baseline
  3. version in the current directory, just run the command:
  4.  
  5.     patch -p1 -E -b .pbak <diff-file
  6.  
  7. where 'diff-file' is this patch file.  After running patch you should
  8. remove all the generated *.pbak files, and look for any *.rej files
  9. that indicate a problem patching the baseline source.
  10.  
  11. diff -rup --new-file baseline/fsf/sh-utils/INSTALL amiga/fsf/sh-utils/INSTALL
  12. --- baseline/fsf/sh-utils/INSTALL    Tue Oct 18 13:30:28 1994
  13. +++ amiga/fsf/sh-utils/INSTALL    Sat Sep 28 00:00:00 1996
  14. @@ -76,8 +76,8 @@ Installation Names
  15.  ==================
  16.  
  17.     By default, `make install' will install the package's files in
  18. -`/usr/local/bin', `/usr/local/man', etc.  You can specify an
  19. -installation prefix other than `/usr/local' by giving `configure' the
  20. +`/gnu/bin', `/gnu/man', etc.  You can specify an
  21. +installation prefix other than `/gnu' by giving `configure' the
  22.  option `--prefix=PATH'.
  23.  
  24.     You can specify separate installation prefixes for
  25. diff -rup --new-file baseline/fsf/sh-utils/Makefile.in amiga/fsf/sh-utils/Makefile.in
  26. --- baseline/fsf/sh-utils/Makefile.in    Fri Nov  4 00:01:04 1994
  27. +++ amiga/fsf/sh-utils/Makefile.in    Sat Sep 28 00:00:00 1996
  28. @@ -33,8 +33,9 @@ NEWS configure configure.in config.h.in 
  29.  stamp-h.in acconfig.h
  30.  
  31.  # Redundant stuff for making only selected programs.
  32. +# Amiga hacks - remove tty and who, since they need ttyname().
  33.  PROGS = basename date dirname echo env expr false groups hostname id logname \
  34. -pathchk printenv printf pwd sleep tee test true tty users who whoami \
  35. +pathchk printenv printf pwd sleep tee test true users whoami \
  36.  yes @PROGS@
  37.  
  38.  # Subdirectories to run make in for the primary targets.
  39. @@ -48,7 +49,7 @@ all install uninstall: config.h Makefile
  40.        (cd $$subdir && $(MAKE) $@) || exit 1; \
  41.      done
  42.  
  43. -info dvi:
  44. +info guide dvi:
  45.      cd doc && $(MAKE) $@
  46.  
  47.  check:
  48. diff -rup --new-file baseline/fsf/sh-utils/Product-Info amiga/fsf/sh-utils/Product-Info
  49. --- baseline/fsf/sh-utils/Product-Info    Wed Dec 31 17:00:00 1969
  50. +++ amiga/fsf/sh-utils/Product-Info    Sat Sep 28 00:00:00 1996
  51. @@ -0,0 +1,24 @@
  52. +.name
  53. +sh-utils
  54. +.fullname
  55. +Shell programming utilities
  56. +.type
  57. +Programmer Tool
  58. +.short
  59. +GNU shell programming utilities
  60. +.description
  61. +This is a package of small shell programming utilities.  They are
  62. +mostly compliant with POSIX.2, where applicable.  The programs that
  63. +can be built with this package are: basename date dirname echo env
  64. +expr false groups id logname nice nohup pathchk printenv printf sleep
  65. +stty tee test true tty uname who whoami yes Some programs (uname,
  66. +nice, nohup, and stty) are built and installed only on systems that
  67. +have the features to support them.
  68. +.version
  69. +1.12
  70. +.author
  71. +Free Software Foundation
  72. +.distribution
  73. +GNU Public License
  74. +.described-by
  75. +Fred Fish (fnf@amigalib.com)
  76. diff -rup --new-file baseline/fsf/sh-utils/configure amiga/fsf/sh-utils/configure
  77. --- baseline/fsf/sh-utils/configure    Fri Oct  7 16:52:35 1994
  78. +++ amiga/fsf/sh-utils/configure    Mon Sep 30 22:49:36 1996
  79. @@ -1,56 +1,16 @@
  80. -#!/bin/sh
  81. +#! /bin/sh
  82.  
  83.  # Guess values for system-dependent variables and create Makefiles.
  84. -# Generated automatically using autoconf version 1.120 
  85. -# Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  86. +# Generated automatically using autoconf version 2.10 
  87. +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  88.  #
  89. -# This configure script is free software; you can redistribute it and/or
  90. -# modify it under the terms of the GNU General Public License as published
  91. -# by the Free Software Foundation; either version 2, or (at your option)
  92. -# any later version.
  93. -#
  94. -# This script is distributed in the hope that it will be useful, but
  95. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  96. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  97. -# Public License for more details.
  98. -#
  99. -# You should have received a copy of the GNU General Public License
  100. -# along with this script; if not, write to the Free Software
  101. -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  102. -#
  103. -# The redistribution and modification terms for this script do not affect
  104. -# the terms for software that it configures.
  105. +# This configure script is free software; the Free Software Foundation
  106. +# gives unlimited permission to copy, distribute and modify it.
  107.  
  108. +# Defaults:
  109.  ac_help=
  110. -
  111. -# Omit some internal or obsolete options to make the list less imposing.
  112. -ac_usage="Usage: configure [options] [host]
  113. -Options: [defaults in brackets after descriptions]
  114. -Configuration:
  115. -  --cache-file=FILE       cache test results in FILE
  116. -  --help                  print this message
  117. -  --no-create             do not create output files
  118. -  --quiet, --silent       do not print \`checking...' messages
  119. -  --version               print the version of autoconf that created configure
  120. -Directory and file names:
  121. -  --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  122. -  --prefix=PREFIX         install host independent files in PREFIX [/usr/local]
  123. -  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  124. -  --program-prefix=PREFIX prepend PREFIX to installed program names
  125. -  --program-suffix=SUFFIX append SUFFIX to installed program names
  126. -  --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  127. -Host type:
  128. -  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  129. -  --host=HOST             configure for HOST [guessed]
  130. -  --target=TARGET         configure for TARGET [TARGET=HOST]
  131. -Features and packages:
  132. -  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  133. -  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  134. -  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  135. -  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  136. -  --x-includes=DIR        X include files are in DIR
  137. -  --x-libraries=DIR       X library files are in DIR
  138. ---enable and --with options recognized:$ac_help"
  139. +ac_default_prefix=/usr/local
  140. +# Any additions from configure.in:
  141.  
  142.  # Initialize some variables set by options.
  143.  # The variables have the same names as the options, with
  144. @@ -67,14 +27,31 @@ program_prefix=NONE
  145.  program_suffix=NONE
  146.  program_transform_name=s,x,x,
  147.  silent=
  148. +site=
  149.  srcdir=
  150.  target=NONE
  151.  verbose=
  152.  x_includes=NONE
  153.  x_libraries=NONE
  154. +bindir='${exec_prefix}/bin'
  155. +sbindir='${exec_prefix}/sbin'
  156. +libexecdir='${exec_prefix}/libexec'
  157. +datadir='${prefix}/share'
  158. +sysconfdir='${prefix}/etc'
  159. +sharedstatedir='${prefix}/com'
  160. +localstatedir='${prefix}/var'
  161. +libdir='${exec_prefix}/lib'
  162. +includedir='${prefix}/include'
  163. +oldincludedir='/usr/include'
  164. +infodir='${prefix}/info'
  165. +guidedir='${prefix}/guide'
  166. +psdir='${prefix}/ps'
  167. +dvidir='${prefix}/dvi'
  168. +mandir='${prefix}/man'
  169.  
  170.  # Initialize some other variables.
  171.  subdirs=
  172. +MFLAGS= MAKEFLAGS=
  173.  
  174.  ac_prev=
  175.  for ac_option
  176. @@ -96,9 +73,14 @@ do
  177.  
  178.    case "$ac_option" in
  179.  
  180. -  -build | --build | --buil | --bui | --bu | --b)
  181. +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  182. +    ac_prev=bindir ;;
  183. +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  184. +    bindir="$ac_optarg" ;;
  185. +
  186. +  -build | --build | --buil | --bui | --bu)
  187.      ac_prev=build ;;
  188. -  -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  189. +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  190.      build="$ac_optarg" ;;
  191.  
  192.    -cache-file | --cache-file | --cache-fil | --cache-fi \
  193. @@ -108,6 +90,12 @@ do
  194.    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  195.      cache_file="$ac_optarg" ;;
  196.  
  197. +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  198. +    ac_prev=datadir ;;
  199. +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  200. +  | --da=*)
  201. +    datadir="$ac_optarg" ;;
  202. +
  203.    -disable-* | --disable-*)
  204.      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  205.      # Reject names that are not valid shell variable names.
  206. @@ -144,9 +132,61 @@ do
  207.      with_gas=yes ;;
  208.  
  209.    -help | --help | --hel | --he)
  210. +    # Omit some internal or obsolete options to make the list less imposing.
  211. +    # This message is too long to be a string in the A/UX 3.1 sh.
  212. +    cat << EOF
  213. +Usage: configure [options] [host]
  214. +Options: [defaults in brackets after descriptions]
  215. +Configuration:
  216. +  --cache-file=FILE       cache test results in FILE
  217. +  --help                  print this message
  218. +  --no-create             do not create output files
  219. +  --quiet, --silent       do not print \`checking...' messages
  220. +  --version               print the version of autoconf that created configure
  221. +Directory and file names:
  222. +  --prefix=PREFIX         install architecture-independent files in PREFIX
  223. +                          [$ac_default_prefix]
  224. +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  225. +                          [same as prefix]
  226. +  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  227. +  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  228. +  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  229. +  --datadir=DIR           read-only architecture-independent data in DIR
  230. +                          [PREFIX/share]
  231. +  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  232. +  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  233. +                          [PREFIX/com]
  234. +  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  235. +  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  236. +  --includedir=DIR        C header files in DIR [PREFIX/include]
  237. +  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  238. +  --infodir=DIR           info documentation in DIR [PREFIX/info]
  239. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  240. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  241. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  242. +  --mandir=DIR            man documentation in DIR [PREFIX/man]
  243. +  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  244. +  --program-prefix=PREFIX prepend PREFIX to installed program names
  245. +  --program-suffix=SUFFIX append SUFFIX to installed program names
  246. +  --program-transform-name=PROGRAM
  247. +                          run sed PROGRAM on installed program names
  248. +EOF
  249.      cat << EOF
  250. -$ac_usage
  251. +Host type:
  252. +  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  253. +  --host=HOST             configure for HOST [guessed]
  254. +  --target=TARGET         configure for TARGET [TARGET=HOST]
  255. +Features and packages:
  256. +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  257. +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  258. +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  259. +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  260. +  --x-includes=DIR        X include files are in DIR
  261. +  --x-libraries=DIR       X library files are in DIR
  262.  EOF
  263. +    if test -n "$ac_help"; then
  264. +      echo "--enable and --with options recognized:$ac_help"
  265. +    fi
  266.      exit 0 ;;
  267.  
  268.    -host | --host | --hos | --ho)
  269. @@ -154,6 +194,56 @@ EOF
  270.    -host=* | --host=* | --hos=* | --ho=*)
  271.      host="$ac_optarg" ;;
  272.  
  273. +  -includedir | --includedir | --includedi | --included | --include \
  274. +  | --includ | --inclu | --incl | --inc)
  275. +    ac_prev=includedir ;;
  276. +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  277. +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  278. +    includedir="$ac_optarg" ;;
  279. +
  280. +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  281. +    ac_prev=infodir ;;
  282. +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  283. +    infodir="$ac_optarg" ;;
  284. +
  285. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  286. +   ac_prev=guidedir ;;
  287. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  288. +
  289. + -psdir | --psdir | --psdi | --psd | --ps)
  290. +   ac_prev=psdir ;;
  291. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  292. +
  293. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  294. +   ac_prev=dvidir ;;
  295. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  296. +
  297. +  -libdir | --libdir | --libdi | --libd)
  298. +    ac_prev=libdir ;;
  299. +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  300. +    libdir="$ac_optarg" ;;
  301. +
  302. +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  303. +  | --libexe | --libex | --libe)
  304. +    ac_prev=libexecdir ;;
  305. +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  306. +  | --libexe=* | --libex=* | --libe=*)
  307. +    libexecdir="$ac_optarg" ;;
  308. +
  309. +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  310. +  | --localstate | --localstat | --localsta | --localst \
  311. +  | --locals | --local | --loca | --loc | --lo)
  312. +    ac_prev=localstatedir ;;
  313. +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  314. +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  315. +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  316. +    localstatedir="$ac_optarg" ;;
  317. +
  318. +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  319. +    ac_prev=mandir ;;
  320. +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  321. +    mandir="$ac_optarg" ;;
  322. +
  323.    -nfp | --nfp | --nf)
  324.      # Obsolete; use --without-fp.
  325.      with_fp=no ;;
  326. @@ -166,6 +256,15 @@ EOF
  327.    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  328.      no_recursion=yes ;;
  329.  
  330. +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  331. +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  332. +  | --oldin | --oldi | --old | --ol | --o)
  333. +    ac_prev=oldincludedir ;;
  334. +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  335. +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  336. +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  337. +    oldincludedir="$ac_optarg" ;;
  338. +
  339.    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  340.      ac_prev=prefix ;;
  341.    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  342. @@ -206,11 +305,40 @@ EOF
  343.    | -silent | --silent | --silen | --sile | --sil)
  344.      silent=yes ;;
  345.  
  346. +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  347. +    ac_prev=sbindir ;;
  348. +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  349. +  | --sbi=* | --sb=*)
  350. +    sbindir="$ac_optarg" ;;
  351. +
  352. +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  353. +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  354. +  | --sharedst | --shareds | --shared | --share | --shar \
  355. +  | --sha | --sh)
  356. +    ac_prev=sharedstatedir ;;
  357. +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  358. +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  359. +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  360. +  | --sha=* | --sh=*)
  361. +    sharedstatedir="$ac_optarg" ;;
  362. +
  363. +  -site | --site | --sit)
  364. +    ac_prev=site ;;
  365. +  -site=* | --site=* | --sit=*)
  366. +    site="$ac_optarg" ;;
  367. +
  368.    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  369.      ac_prev=srcdir ;;
  370.    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  371.      srcdir="$ac_optarg" ;;
  372.  
  373. +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  374. +  | --syscon | --sysco | --sysc | --sys | --sy)
  375. +    ac_prev=sysconfdir ;;
  376. +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  377. +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  378. +    sysconfdir="$ac_optarg" ;;
  379. +
  380.    -target | --target | --targe | --targ | --tar | --ta | --t)
  381.      ac_prev=target ;;
  382.    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  383. @@ -220,7 +348,7 @@ EOF
  384.      verbose=yes ;;
  385.  
  386.    -version | --version | --versio | --versi | --vers)
  387. -    echo "configure generated by autoconf version 1.120"
  388. +    echo "configure generated by autoconf version 2.10"
  389.      exit 0 ;;
  390.  
  391.    -with-* | --with-*)
  392. @@ -266,7 +394,7 @@ EOF
  393.    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  394.      ;;
  395.  
  396. -  *) 
  397. +  *)
  398.      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  399.        echo "configure: warning: $ac_option: invalid host type" 1>&2
  400.      fi
  401. @@ -283,19 +411,20 @@ if test -n "$ac_prev"; then
  402.    { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  403.  fi
  404.  
  405. -trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  406. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  407.  
  408.  # File descriptor usage:
  409. -# 0 unused; standard input
  410. +# 0 standard input
  411.  # 1 file creation
  412.  # 2 errors and warnings
  413. -# 3 unused; some systems may open it to /dev/tty
  414. -# 4 checking for... messages and results
  415. +# 3 some systems may open it to /dev/tty
  416. +# 4 used on the Kubota Titan
  417. +# 6 checking for... messages and results
  418.  # 5 compiler messages saved in config.log
  419.  if test "$silent" = yes; then
  420. -  exec 4>/dev/null
  421. +  exec 6>/dev/null
  422.  else
  423. -  exec 4>&1
  424. +  exec 6>&1
  425.  fi
  426.  exec 5>./config.log
  427.  
  428. @@ -362,13 +491,9 @@ srcdir=`echo "${srcdir}" | sed 's%\([^/]
  429.  # Prefer explicitly selected file to automatically selected ones.
  430.  if test -z "$CONFIG_SITE"; then
  431.    if test "x$prefix" != xNONE; then
  432. -    CONFIG_SITE=$prefix/lib/config.site
  433. +    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  434.    else
  435. -    CONFIG_SITE=/usr/local/lib/config.site
  436. -  fi
  437. -  # System dependent files override system independent ones.
  438. -  if test "x$exec_prefix" != xNONE && test "x$exec_prefix" != "x$prefix"; then
  439. -    CONFIG_SITE="$CONFIG_SITE $exec_prefix/lib/config.site"
  440. +    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  441.    fi
  442.  fi
  443.  for ac_site_file in $CONFIG_SITE; do
  444. @@ -389,7 +514,8 @@ fi
  445.  ac_ext=c
  446.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  447.  ac_cpp='$CPP $CPPFLAGS'
  448. -ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  449. +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  450. +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  451.  
  452.  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  453.    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  454. @@ -408,10 +534,10 @@ fi
  455.  
  456.  
  457.  
  458. -echo $ac_n "checking whether ${MAKE-make} sets \$MAKE""... $ac_c" 1>&4
  459. +echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  460.  set dummy ${MAKE-make}; ac_make=$2
  461. -if eval "test \"`echo '${'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  462. -  echo $ac_n "(cached) $ac_c" 1>&4
  463. +if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  464. +  echo $ac_n "(cached) $ac_c" 1>&6
  465.  else
  466.    cat > conftestmake <<\EOF
  467.  all:
  468. @@ -427,18 +553,18 @@ fi
  469.  rm -f conftestmake
  470.  fi
  471.  if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  472. -  echo "$ac_t""yes" 1>&4
  473. +  echo "$ac_t""yes" 1>&6
  474.    SET_MAKE=
  475.  else
  476. -  echo "$ac_t""no" 1>&4
  477. +  echo "$ac_t""no" 1>&6
  478.    SET_MAKE="MAKE=${MAKE-make}"
  479.  fi
  480.  
  481.  # Extract the first word of "gcc", so it can be a program name with args.
  482.  set dummy gcc; ac_word=$2
  483. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  484. -if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  485. -  echo $ac_n "(cached) $ac_c" 1>&4
  486. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  487. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  488. +  echo $ac_n "(cached) $ac_c" 1>&6
  489.  else
  490.    if test -n "$CC"; then
  491.    ac_cv_prog_CC="$CC" # Let the user override the test.
  492. @@ -452,39 +578,88 @@ else
  493.      fi
  494.    done
  495.    IFS="$ac_save_ifs"
  496. -  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  497.  fi
  498.  fi
  499.  CC="$ac_cv_prog_CC"
  500.  if test -n "$CC"; then
  501. -  echo "$ac_t""$CC" 1>&4
  502. +  echo "$ac_t""$CC" 1>&6
  503. +else
  504. +  echo "$ac_t""no" 1>&6
  505. +fi
  506. +
  507. +if test -z "$CC"; then
  508. +  # Extract the first word of "cc", so it can be a program name with args.
  509. +set dummy cc; ac_word=$2
  510. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  511. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  512. +  echo $ac_n "(cached) $ac_c" 1>&6
  513. +else
  514. +  if test -n "$CC"; then
  515. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  516. +else
  517. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  518. +  ac_prog_rejected=no
  519. +  for ac_dir in $PATH; do
  520. +    test -z "$ac_dir" && ac_dir=.
  521. +    if test -f $ac_dir/$ac_word; then
  522. +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  523. +        ac_prog_rejected=yes
  524. +    continue
  525. +      fi
  526. +      ac_cv_prog_CC="cc"
  527. +      break
  528. +    fi
  529. +  done
  530. +  IFS="$ac_save_ifs"
  531. +if test $ac_prog_rejected = yes; then
  532. +  # We found a bogon in the path, so make sure we never use it.
  533. +  set dummy $ac_cv_prog_CC
  534. +  shift
  535. +  if test $# -gt 0; then
  536. +    # We chose a different compiler from the bogus one.
  537. +    # However, it has the same basename, so the bogon will be chosen
  538. +    # first if we set CC to just the basename; use the full file name.
  539. +    shift
  540. +    set dummy "$ac_dir/$ac_word" "$@"
  541. +    shift
  542. +    ac_cv_prog_CC="$@"
  543. +  fi
  544. +fi
  545. +fi
  546. +fi
  547. +CC="$ac_cv_prog_CC"
  548. +if test -n "$CC"; then
  549. +  echo "$ac_t""$CC" 1>&6
  550.  else
  551. -  echo "$ac_t""no" 1>&4
  552. +  echo "$ac_t""no" 1>&6
  553.  fi
  554.  
  555. +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  556. +fi
  557.  
  558. -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
  559. -if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  560. -  echo $ac_n "(cached) $ac_c" 1>&4
  561. +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  562. +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  563. +  echo $ac_n "(cached) $ac_c" 1>&6
  564.  else
  565.    cat > conftest.c <<EOF
  566.  #ifdef __GNUC__
  567. -  yes
  568. +  yes;
  569.  #endif
  570.  EOF
  571. -if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  572. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  573.    ac_cv_prog_gcc=yes
  574.  else
  575.    ac_cv_prog_gcc=no
  576.  fi
  577.  fi
  578. -echo "$ac_t""$ac_cv_prog_gcc" 1>&4
  579. +
  580. +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  581.  if test $ac_cv_prog_gcc = yes; then
  582.    GCC=yes
  583.    if test "${CFLAGS+set}" != set; then
  584. -    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
  585. -if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  586. -  echo $ac_n "(cached) $ac_c" 1>&4
  587. +    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  588. +if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  589. +  echo $ac_n "(cached) $ac_c" 1>&6
  590.  else
  591.    echo 'void f(){}' > conftest.c
  592.  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  593. @@ -495,11 +670,12 @@ fi
  594.  rm -f conftest*
  595.  
  596.  fi
  597. -    echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
  598. +
  599. +echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  600.      if test $ac_cv_prog_gcc_g = yes; then
  601. -      CFLAGS="-g -O"
  602. +      CFLAGS="-g -O2"
  603.      else
  604. -      CFLAGS="-O"
  605. +      CFLAGS="-O2"
  606.      fi
  607.    fi
  608.  else
  609. @@ -507,14 +683,14 @@ else
  610.    test "${CFLAGS+set}" = set || CFLAGS="-g"
  611.  fi
  612.  
  613. -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
  614. +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  615.  # On Suns, sometimes $CPP names a directory.
  616.  if test -n "$CPP" && test -d "$CPP"; then
  617.    CPP=
  618.  fi
  619.  if test -z "$CPP"; then
  620. -if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  621. -  echo $ac_n "(cached) $ac_c" 1>&4
  622. +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  623. +  echo $ac_n "(cached) $ac_c" 1>&6
  624.  else
  625.      # This must be in double quotes, not single quotes, because CPP may get
  626.    # substituted into the Makefile and "${CC-cc}" will confuse make.
  627. @@ -522,12 +698,13 @@ else
  628.    # On the NeXT, cc -E runs the code through the compiler's parser,
  629.    # not just through cpp.
  630.    cat > conftest.$ac_ext <<EOF
  631. -#line 526 "configure"
  632. +#line 702 "configure"
  633.  #include "confdefs.h"
  634. -#include <stdio.h>
  635. +#include <assert.h>
  636.  Syntax Error
  637.  EOF
  638. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  639. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  640. +{ (eval echo configure:708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  641.  ac_err=`grep -v '^ *+' conftest.out`
  642.  if test -z "$ac_err"; then
  643.    :
  644. @@ -536,12 +713,13 @@ else
  645.    rm -rf conftest*
  646.    CPP="${CC-cc} -E -traditional-cpp"
  647.    cat > conftest.$ac_ext <<EOF
  648. -#line 540 "configure"
  649. +#line 717 "configure"
  650.  #include "confdefs.h"
  651. -#include <stdio.h>
  652. +#include <assert.h>
  653.  Syntax Error
  654.  EOF
  655. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  656. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  657. +{ (eval echo configure:723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  658.  ac_err=`grep -v '^ *+' conftest.out`
  659.  if test -z "$ac_err"; then
  660.    :
  661. @@ -555,18 +733,20 @@ fi
  662.  rm -f conftest*
  663.    ac_cv_prog_CPP="$CPP"
  664.  fi
  665. +  CPP="$ac_cv_prog_CPP"
  666. +else
  667. +  ac_cv_prog_CPP="$CPP"
  668.  fi
  669. -CPP="$ac_cv_prog_CPP"
  670. -echo "$ac_t""$CPP" 1>&4
  671. +echo "$ac_t""$CPP" 1>&6
  672.  
  673.  if test $ac_cv_prog_gcc = yes; then
  674. -  echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&4
  675. -if eval "test \"`echo '${'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  676. -  echo $ac_n "(cached) $ac_c" 1>&4
  677. +    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  678. +if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  679. +  echo $ac_n "(cached) $ac_c" 1>&6
  680.  else
  681.      ac_pattern="Autoconf.*'x'"
  682.    cat > conftest.$ac_ext <<EOF
  683. -#line 570 "configure"
  684. +#line 750 "configure"
  685.  #include "confdefs.h"
  686.  #include <sgtty.h>
  687.  Autoconf TIOCGETP
  688. @@ -584,7 +764,7 @@ rm -f conftest*
  689.  
  690.    if test $ac_cv_prog_gcc_traditional = no; then
  691.      cat > conftest.$ac_ext <<EOF
  692. -#line 588 "configure"
  693. +#line 768 "configure"
  694.  #include "confdefs.h"
  695.  #include <termio.h>
  696.  Autoconf TCGETA
  697. @@ -598,7 +778,8 @@ rm -f conftest*
  698.  
  699.    fi
  700.  fi
  701. -  echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&4
  702. +
  703. +echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  704.    if test $ac_cv_prog_gcc_traditional = yes; then
  705.      CC="$CC -traditional"
  706.    fi
  707. @@ -630,18 +811,20 @@ ac_configure=$ac_aux_dir/configure # Thi
  708.  # SunOS /usr/etc/install
  709.  # IRIX /sbin/install
  710.  # AIX /bin/install
  711. +# AmigaOS /c/install
  712.  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  713.  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  714.  # ./install, which can be erroneously created by make from ./install.sh.
  715. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  716. +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  717.  if test -z "$INSTALL"; then
  718. -if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  719. -  echo $ac_n "(cached) $ac_c" 1>&4
  720. +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  721. +  echo $ac_n "(cached) $ac_c" 1>&6
  722.  else
  723.      IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  724.    for ac_dir in $PATH; do
  725. -    case "$ac_dir" in
  726. -    ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
  727. +    # Account for people who put trailing slashes in PATH elements.
  728. +    case "$ac_dir/" in
  729. +    /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  730.      *)
  731.        # OSF1 and SCO ODT 3.0 have their own names for install.
  732.        for ac_prog in ginstall installbsd scoinst install; do
  733. @@ -661,12 +844,19 @@ else
  734.      esac
  735.    done
  736.    IFS="$ac_save_ifs"
  737. -  # As a last resort, use the slow shell script.
  738. -  test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  739. +
  740.  fi
  741. -  INSTALL="$ac_cv_path_install"
  742. +  if test "${ac_cv_path_install+set}" = set; then
  743. +    INSTALL="$ac_cv_path_install"
  744. +  else
  745. +    # As a last resort, use the slow shell script.  We don't cache a
  746. +    # path for INSTALL within a source directory, because that will
  747. +    # break other packages using the cache if that directory is
  748. +    # removed, or if the path is relative.
  749. +    INSTALL="$ac_install_sh"
  750. +  fi
  751.  fi
  752. -echo "$ac_t""$INSTALL" 1>&4
  753. +echo "$ac_t""$INSTALL" 1>&6
  754.  
  755.  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  756.  # It thinks the first close brace ends the variable substitution.
  757. @@ -676,9 +866,9 @@ test -z "$INSTALL_DATA" && INSTALL_DATA=
  758.  
  759.  # Extract the first word of "ranlib", so it can be a program name with args.
  760.  set dummy ranlib; ac_word=$2
  761. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  762. -if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  763. -  echo $ac_n "(cached) $ac_c" 1>&4
  764. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  765. +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  766. +  echo $ac_n "(cached) $ac_c" 1>&6
  767.  else
  768.    if test -n "$RANLIB"; then
  769.    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  770. @@ -697,18 +887,18 @@ fi
  771.  fi
  772.  RANLIB="$ac_cv_prog_RANLIB"
  773.  if test -n "$RANLIB"; then
  774. -  echo "$ac_t""$RANLIB" 1>&4
  775. +  echo "$ac_t""$RANLIB" 1>&6
  776.  else
  777. -  echo "$ac_t""no" 1>&4
  778. +  echo "$ac_t""no" 1>&6
  779.  fi
  780.  
  781.  for ac_prog in 'bison -y' byacc
  782.  do
  783.  # Extract the first word of "$ac_prog", so it can be a program name with args.
  784.  set dummy $ac_prog; ac_word=$2
  785. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  786. -if eval "test \"`echo '${'ac_cv_prog_YACC'+set}'`\" = set"; then
  787. -  echo $ac_n "(cached) $ac_c" 1>&4
  788. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  789. +if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  790. +  echo $ac_n "(cached) $ac_c" 1>&6
  791.  else
  792.    if test -n "$YACC"; then
  793.    ac_cv_prog_YACC="$YACC" # Let the user override the test.
  794. @@ -726,18 +916,18 @@ fi
  795.  fi
  796.  YACC="$ac_cv_prog_YACC"
  797.  if test -n "$YACC"; then
  798. -  echo "$ac_t""$YACC" 1>&4
  799. +  echo "$ac_t""$YACC" 1>&6
  800.  else
  801. -  echo "$ac_t""no" 1>&4
  802. +  echo "$ac_t""no" 1>&6
  803.  fi
  804.  
  805.  test -n "$YACC" && break
  806.  done
  807.  test -n "$YACC" || YACC="yacc"
  808.  
  809. -echo $ac_n "checking for AIX""... $ac_c" 1>&4
  810. +echo $ac_n "checking for AIX""... $ac_c" 1>&6
  811.  cat > conftest.$ac_ext <<EOF
  812. -#line 741 "configure"
  813. +#line 931 "configure"
  814.  #include "confdefs.h"
  815.  #ifdef _AIX
  816.    yes
  817. @@ -747,28 +937,29 @@ EOF
  818.  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  819.    egrep "yes" >/dev/null 2>&1; then
  820.    rm -rf conftest*
  821. -  echo "$ac_t""yes" 1>&4; cat >> confdefs.h <<\EOF
  822. +  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  823.  #define _ALL_SOURCE 1
  824.  EOF
  825.  
  826.  else
  827.    rm -rf conftest*
  828. -  echo "$ac_t""no" 1>&4
  829. +  echo "$ac_t""no" 1>&6
  830.  fi
  831.  rm -f conftest*
  832.  
  833.  
  834. -ac_safe=`echo "minix/config.h" | tr './' '__'`
  835. -echo $ac_n "checking for minix/config.h""... $ac_c" 1>&4
  836. -if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  837. -  echo $ac_n "(cached) $ac_c" 1>&4
  838. +ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  839. +echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  840. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  841. +  echo $ac_n "(cached) $ac_c" 1>&6
  842.  else
  843.    cat > conftest.$ac_ext <<EOF
  844. -#line 768 "configure"
  845. +#line 958 "configure"
  846.  #include "confdefs.h"
  847.  #include <minix/config.h>
  848.  EOF
  849. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  850. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  851. +{ (eval echo configure:963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  852.  ac_err=`grep -v '^ *+' conftest.out`
  853.  if test -z "$ac_err"; then
  854.    rm -rf conftest*
  855. @@ -781,10 +972,10 @@ fi
  856.  rm -f conftest*
  857.  fi
  858.  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  859. -  echo "$ac_t""yes" 1>&4
  860. +  echo "$ac_t""yes" 1>&6
  861.    MINIX=yes
  862.  else
  863. -  echo "$ac_t""no" 1>&4
  864. +  echo "$ac_t""no" 1>&6
  865.  MINIX=
  866.  fi
  867.  
  868. @@ -803,11 +994,11 @@ EOF
  869.  
  870.  fi
  871.  
  872. -echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&4
  873. +echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  874.  if test -d /etc/conf/kconfig.d &&
  875.    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  876.  then
  877. -  echo "$ac_t""yes" 1>&4
  878. +  echo "$ac_t""yes" 1>&6
  879.    ISC=yes # If later tests want to check for ISC.
  880.    cat >> confdefs.h <<\EOF
  881.  #define _POSIX_SOURCE 1
  882. @@ -819,21 +1010,28 @@ EOF
  883.      CC="$CC -Xp"
  884.    fi
  885.  else
  886. -  echo "$ac_t""no" 1>&4
  887. +  echo "$ac_t""no" 1>&6
  888.    ISC=
  889.  fi
  890.  
  891.  for ac_func in uname
  892.  do
  893. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  894. -if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  895. -  echo $ac_n "(cached) $ac_c" 1>&4
  896. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  897. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  898. +  echo $ac_n "(cached) $ac_c" 1>&6
  899.  else
  900.    cat > conftest.$ac_ext <<EOF
  901. -#line 834 "configure"
  902. +#line 1025 "configure"
  903.  #include "confdefs.h"
  904. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  905. -int main() { return 0; }
  906. +/* System header to define __stub macros and hopefully few prototypes,
  907. +    which can conflict with char $ac_func(); below.  */
  908. +#include <assert.h>
  909. +/* Override any gcc2 internal prototype to avoid an error.  */
  910. +/* We use char because int might match the return type of a gcc2
  911. +    builtin and then its argument prototype would still apply.  */
  912. +char $ac_func();
  913. +
  914. +int main() { t(); return 0; }
  915.  int t() {
  916.  
  917.  /* The GNU C library defines this for functions which it implements
  918. @@ -842,13 +1040,12 @@ int t() {
  919.  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  920.  choke me
  921.  #else
  922. -/* Override any gcc2 internal prototype to avoid an error.  */
  923. -char $ac_func(); $ac_func();
  924. +$ac_func();
  925.  #endif
  926.  
  927.  ; return 0; }
  928.  EOF
  929. -if eval $ac_link; then
  930. +if { (eval echo configure:1049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  931.    rm -rf conftest*
  932.    eval "ac_cv_func_$ac_func=yes"
  933.  else
  934. @@ -859,23 +1056,23 @@ rm -f conftest*
  935.  
  936.  fi
  937.  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  938. -  echo "$ac_t""yes" 1>&4
  939. -    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  940. +  echo "$ac_t""yes" 1>&6
  941. +    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  942.    cat >> confdefs.h <<EOF
  943.  #define $ac_tr_func 1
  944.  EOF
  945.   PROGS="$PROGS uname" MAN="$MAN uname.1"
  946.  else
  947. -  echo "$ac_t""no" 1>&4
  948. +  echo "$ac_t""no" 1>&6
  949.  fi
  950.  done
  951.  
  952. -echo $ac_n "checking for working const""... $ac_c" 1>&4
  953. -if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
  954. -  echo $ac_n "(cached) $ac_c" 1>&4
  955. +echo $ac_n "checking for working const""... $ac_c" 1>&6
  956. +if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  957. +  echo $ac_n "(cached) $ac_c" 1>&6
  958.  else
  959.    cat > conftest.$ac_ext <<EOF
  960. -#line 879 "configure"
  961. +#line 1076 "configure"
  962.  #include "confdefs.h"
  963.  
  964.  int main() { return 0; }
  965. @@ -886,6 +1083,9 @@ typedef int charset[2]; const charset x;
  966.  /* SunOS 4.1.1 cc rejects this.  */
  967.  char const *const *ccp;
  968.  char **p;
  969. +/* NEC SVR4.0.2 mips cc rejects this.  */
  970. +struct point {int x, y;};
  971. +static struct point const zero = {0,0};
  972.  /* AIX XL C 1.02.0.0 rejects this.
  973.     It does not let you subtract one const X* pointer from another in an arm
  974.     of an if-expression whose if-part is not a constant expression */
  975. @@ -922,7 +1122,7 @@ ccp = (char const *const *) p;
  976.  
  977.  ; return 0; }
  978.  EOF
  979. -if eval $ac_link; then
  980. +if { (eval echo configure:1126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  981.    rm -rf conftest*
  982.    ac_cv_c_const=yes
  983.  else
  984. @@ -932,7 +1132,8 @@ fi
  985.  rm -f conftest*
  986.  
  987.  fi
  988. -echo "$ac_t""$ac_cv_c_const" 1>&4
  989. +
  990. +echo "$ac_t""$ac_cv_c_const" 1>&6
  991.  if test $ac_cv_c_const = no; then
  992.    cat >> confdefs.h <<\EOF
  993.  #define const 
  994. @@ -941,19 +1142,19 @@ EOF
  995.  fi
  996.  
  997.  # If we cannot run a trivial program, we must be cross compiling.
  998. -echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  999. -if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  1000. -  echo $ac_n "(cached) $ac_c" 1>&4
  1001. +echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1002. +if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1003. +  echo $ac_n "(cached) $ac_c" 1>&6
  1004.  else
  1005.    if test "$cross_compiling" = yes; then
  1006. -  ac_cv_cross=yes
  1007. +  ac_cv_c_cross=yes
  1008.  else
  1009.  cat > conftest.$ac_ext <<EOF
  1010. -#line 953 "configure"
  1011. +#line 1154 "configure"
  1012.  #include "confdefs.h"
  1013.  main(){return(0);}
  1014.  EOF
  1015. -eval $ac_link
  1016. +{ (eval echo configure:1158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1017.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1018.    ac_cv_c_cross=no
  1019.  else
  1020. @@ -962,22 +1163,24 @@ fi
  1021.  fi
  1022.  rm -fr conftest*
  1023.  fi
  1024. +
  1025. +echo "$ac_t""$ac_cv_c_cross" 1>&6
  1026.  cross_compiling=$ac_cv_c_cross
  1027. -echo "$ac_t""$ac_cv_c_cross" 1>&4
  1028.  
  1029. -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
  1030. -if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  1031. -  echo $ac_n "(cached) $ac_c" 1>&4
  1032. +echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1033. +if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1034. +  echo $ac_n "(cached) $ac_c" 1>&6
  1035.  else
  1036.    cat > conftest.$ac_ext <<EOF
  1037. -#line 974 "configure"
  1038. +#line 1176 "configure"
  1039.  #include "confdefs.h"
  1040.  #include <stdlib.h>
  1041.  #include <stdarg.h>
  1042.  #include <string.h>
  1043.  #include <float.h>
  1044.  EOF
  1045. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1046. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1047. +{ (eval echo configure:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1048.  ac_err=`grep -v '^ *+' conftest.out`
  1049.  if test -z "$ac_err"; then
  1050.    rm -rf conftest*
  1051. @@ -992,7 +1195,7 @@ rm -f conftest*
  1052.  if test $ac_cv_header_stdc = yes; then
  1053.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1054.  cat > conftest.$ac_ext <<EOF
  1055. -#line 996 "configure"
  1056. +#line 1199 "configure"
  1057.  #include "confdefs.h"
  1058.  #include <string.h>
  1059.  EOF
  1060. @@ -1010,7 +1213,7 @@ fi
  1061.  if test $ac_cv_header_stdc = yes; then
  1062.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1063.  cat > conftest.$ac_ext <<EOF
  1064. -#line 1014 "configure"
  1065. +#line 1217 "configure"
  1066.  #include "confdefs.h"
  1067.  #include <stdlib.h>
  1068.  EOF
  1069. @@ -1028,10 +1231,10 @@ fi
  1070.  if test $ac_cv_header_stdc = yes; then
  1071.    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1072.  if test "$cross_compiling" = yes; then
  1073. -  ac_cv_header_stdc=no
  1074. +  :
  1075.  else
  1076.  cat > conftest.$ac_ext <<EOF
  1077. -#line 1035 "configure"
  1078. +#line 1238 "configure"
  1079.  #include "confdefs.h"
  1080.  #include <ctype.h>
  1081.  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1082. @@ -1042,7 +1245,7 @@ if (XOR (islower (i), ISLOWER (i)) || to
  1083.  exit (0); }
  1084.  
  1085.  EOF
  1086. -eval $ac_link
  1087. +{ (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1088.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1089.    :
  1090.  else
  1091. @@ -1052,7 +1255,8 @@ fi
  1092.  rm -fr conftest*
  1093.  fi
  1094.  fi
  1095. -echo "$ac_t""$ac_cv_header_stdc" 1>&4
  1096. +
  1097. +echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1098.  if test $ac_cv_header_stdc = yes; then
  1099.    cat >> confdefs.h <<\EOF
  1100.  #define STDC_HEADERS 1
  1101. @@ -1060,15 +1264,59 @@ EOF
  1102.  
  1103.  fi
  1104.  
  1105. -echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&4
  1106. -if eval "test \"`echo '${'ac_cv_c_bigendian'+set}'`\" = set"; then
  1107. -  echo $ac_n "(cached) $ac_c" 1>&4
  1108. +echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  1109. +if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  1110. +  echo $ac_n "(cached) $ac_c" 1>&6
  1111.  else
  1112. -  if test "$cross_compiling" = yes; then
  1113. +  ac_cv_c_bigendian=unknown
  1114. +# See if sys/param.h defines the BYTE_ORDER macro.
  1115. +cat > conftest.$ac_ext <<EOF
  1116. +#line 1275 "configure"
  1117. +#include "confdefs.h"
  1118. +#include <sys/types.h>
  1119. +#include <sys/param.h>
  1120. +int main() { return 0; }
  1121. +int t() {
  1122. +
  1123. +#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  1124. + bogus endian macros
  1125. +#endif
  1126. +; return 0; }
  1127. +EOF
  1128. +if { (eval echo configure:1287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1129. +  rm -rf conftest*
  1130. +  # It does; now see whether it defined to BIG_ENDIAN or not.
  1131. +cat > conftest.$ac_ext <<EOF
  1132. +#line 1291 "configure"
  1133. +#include "confdefs.h"
  1134. +#include <sys/types.h>
  1135. +#include <sys/param.h>
  1136. +int main() { return 0; }
  1137. +int t() {
  1138. +
  1139. +#if BYTE_ORDER != BIG_ENDIAN
  1140. + not big endian
  1141. +#endif
  1142. +; return 0; }
  1143. +EOF
  1144. +if { (eval echo configure:1303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1145. +  rm -rf conftest*
  1146. +  ac_cv_c_bigendian=yes
  1147. +else
  1148. +  rm -rf conftest*
  1149. +  ac_cv_c_bigendian=no
  1150. +fi
  1151. +rm -f conftest*
  1152. +
  1153. +fi
  1154. +rm -f conftest*
  1155. +
  1156. +if test $ac_cv_c_bigendian = unknown; then
  1157. +if test "$cross_compiling" = yes; then
  1158.      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1159.  else
  1160.  cat > conftest.$ac_ext <<EOF
  1161. -#line 1072 "configure"
  1162. +#line 1320 "configure"
  1163.  #include "confdefs.h"
  1164.  main () {
  1165.    /* Are we little or big endian?  From Harbison&Steele.  */
  1166. @@ -1081,7 +1329,7 @@ main () {
  1167.    exit (u.c[sizeof (long) - 1] == 1);
  1168.  }
  1169.  EOF
  1170. -eval $ac_link
  1171. +{ (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1172.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1173.    ac_cv_c_bigendian=no
  1174.  else
  1175. @@ -1090,7 +1338,9 @@ fi
  1176.  fi
  1177.  rm -fr conftest*
  1178.  fi
  1179. -echo "$ac_t""$ac_cv_c_bigendian" 1>&4
  1180. +fi
  1181. +
  1182. +echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  1183.  if test $ac_cv_c_bigendian = yes; then
  1184.    cat >> confdefs.h <<\EOF
  1185.  #define WORDS_BIGENDIAN 1
  1186. @@ -1099,12 +1349,12 @@ EOF
  1187.  fi
  1188.  
  1189.  
  1190. -echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&4
  1191. -if eval "test \"`echo '${'ac_cv_struct_tm'+set}'`\" = set"; then
  1192. -  echo $ac_n "(cached) $ac_c" 1>&4
  1193. +echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  1194. +if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  1195. +  echo $ac_n "(cached) $ac_c" 1>&6
  1196.  else
  1197.    cat > conftest.$ac_ext <<EOF
  1198. -#line 1108 "configure"
  1199. +#line 1358 "configure"
  1200.  #include "confdefs.h"
  1201.  #include <sys/types.h>
  1202.  #include <time.h>
  1203. @@ -1113,7 +1363,7 @@ int t() {
  1204.  struct tm *tp; tp->tm_sec;
  1205.  ; return 0; }
  1206.  EOF
  1207. -if eval $ac_link; then
  1208. +if { (eval echo configure:1367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1209.    rm -rf conftest*
  1210.    ac_cv_struct_tm=time.h
  1211.  else
  1212. @@ -1123,7 +1373,8 @@ fi
  1213.  rm -f conftest*
  1214.  
  1215.  fi
  1216. -echo "$ac_t""$ac_cv_struct_tm" 1>&4
  1217. +
  1218. +echo "$ac_t""$ac_cv_struct_tm" 1>&6
  1219.  if test $ac_cv_struct_tm = sys/time.h; then
  1220.    cat >> confdefs.h <<\EOF
  1221.  #define TM_IN_SYS_TIME 1
  1222. @@ -1131,12 +1382,12 @@ EOF
  1223.  
  1224.  fi
  1225.  
  1226. -echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&4
  1227. -if eval "test \"`echo '${'ac_cv_header_time'+set}'`\" = set"; then
  1228. -  echo $ac_n "(cached) $ac_c" 1>&4
  1229. +echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  1230. +if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  1231. +  echo $ac_n "(cached) $ac_c" 1>&6
  1232.  else
  1233.    cat > conftest.$ac_ext <<EOF
  1234. -#line 1140 "configure"
  1235. +#line 1391 "configure"
  1236.  #include "confdefs.h"
  1237.  #include <sys/types.h>
  1238.  #include <sys/time.h>
  1239. @@ -1146,7 +1397,7 @@ int t() {
  1240.  struct tm *tp;
  1241.  ; return 0; }
  1242.  EOF
  1243. -if eval $ac_link; then
  1244. +if { (eval echo configure:1401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1245.    rm -rf conftest*
  1246.    ac_cv_header_time=yes
  1247.  else
  1248. @@ -1156,7 +1407,8 @@ fi
  1249.  rm -f conftest*
  1250.  
  1251.  fi
  1252. -echo "$ac_t""$ac_cv_header_time" 1>&4
  1253. +
  1254. +echo "$ac_t""$ac_cv_header_time" 1>&6
  1255.  if test $ac_cv_header_time = yes; then
  1256.    cat >> confdefs.h <<\EOF
  1257.  #define TIME_WITH_SYS_TIME 1
  1258. @@ -1164,12 +1416,12 @@ EOF
  1259.  
  1260.  fi
  1261.  
  1262. -echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&4
  1263. -if eval "test \"`echo '${'ac_cv_struct_tm_zone'+set}'`\" = set"; then
  1264. -  echo $ac_n "(cached) $ac_c" 1>&4
  1265. +echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
  1266. +if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
  1267. +  echo $ac_n "(cached) $ac_c" 1>&6
  1268.  else
  1269.    cat > conftest.$ac_ext <<EOF
  1270. -#line 1173 "configure"
  1271. +#line 1425 "configure"
  1272.  #include "confdefs.h"
  1273.  #include <sys/types.h>
  1274.  #include <$ac_cv_struct_tm>
  1275. @@ -1178,7 +1430,7 @@ int t() {
  1276.  struct tm tm; tm.tm_zone;
  1277.  ; return 0; }
  1278.  EOF
  1279. -if eval $ac_link; then
  1280. +if { (eval echo configure:1434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1281.    rm -rf conftest*
  1282.    ac_cv_struct_tm_zone=yes
  1283.  else
  1284. @@ -1188,30 +1440,31 @@ fi
  1285.  rm -f conftest*
  1286.  
  1287.  fi
  1288. -echo "$ac_t""$ac_cv_struct_tm_zone" 1>&4
  1289. +
  1290. +echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
  1291.  if test "$ac_cv_struct_tm_zone" = yes; then
  1292.    cat >> confdefs.h <<\EOF
  1293.  #define HAVE_TM_ZONE 1
  1294.  EOF
  1295.  
  1296.  else
  1297. -  echo $ac_n "checking for tzname""... $ac_c" 1>&4
  1298. -if eval "test \"`echo '${'ac_cv_var_tzname'+set}'`\" = set"; then
  1299. -  echo $ac_n "(cached) $ac_c" 1>&4
  1300. +  echo $ac_n "checking for tzname""... $ac_c" 1>&6
  1301. +if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
  1302. +  echo $ac_n "(cached) $ac_c" 1>&6
  1303.  else
  1304.    cat > conftest.$ac_ext <<EOF
  1305. -#line 1204 "configure"
  1306. +#line 1457 "configure"
  1307.  #include "confdefs.h"
  1308.  #include <time.h>
  1309.  #ifndef tzname /* For SGI.  */
  1310.  extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
  1311.  #endif
  1312. -int main() { return 0; }
  1313. +int main() { t(); return 0; }
  1314.  int t() {
  1315.  atoi(*tzname);
  1316.  ; return 0; }
  1317.  EOF
  1318. -if eval $ac_link; then
  1319. +if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1320.    rm -rf conftest*
  1321.    ac_cv_var_tzname=yes
  1322.  else
  1323. @@ -1221,7 +1474,8 @@ fi
  1324.  rm -f conftest*
  1325.  
  1326.  fi
  1327. -  echo "$ac_t""$ac_cv_var_tzname" 1>&4
  1328. +
  1329. +echo "$ac_t""$ac_cv_var_tzname" 1>&6
  1330.    if test $ac_cv_var_tzname = yes; then
  1331.      cat >> confdefs.h <<\EOF
  1332.  #define HAVE_TZNAME 1
  1333. @@ -1230,33 +1484,35 @@ EOF
  1334.    fi
  1335.  fi
  1336.  
  1337. -echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&4
  1338. -if eval "test \"`echo '${'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1339. -  echo $ac_n "(cached) $ac_c" 1>&4
  1340. +echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  1341. +if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1342. +  echo $ac_n "(cached) $ac_c" 1>&6
  1343.  else
  1344.    cat > conftest.$ac_ext <<EOF
  1345. -#line 1239 "configure"
  1346. +#line 1493 "configure"
  1347.  #include "confdefs.h"
  1348.  #include <sys/types.h>
  1349.  #include <sys/stat.h>
  1350. -#ifdef S_ISBLK
  1351. +
  1352. +#if defined(S_ISBLK) && defined(S_IFDIR)
  1353.  # if S_ISBLK (S_IFDIR)
  1354.  You lose.
  1355.  # endif
  1356. -# ifdef S_IFCHR
  1357. -#  if S_ISBLK (S_IFCHR)
  1358. +#endif
  1359. +
  1360. +#if defined(S_ISBLK) && defined(S_IFCHR)
  1361. +# if S_ISBLK (S_IFCHR)
  1362.  You lose.
  1363. -#  endif
  1364.  # endif
  1365.  #endif
  1366.  
  1367. -#ifdef S_ISLNK
  1368. +#if defined(S_ISLNK) && defined(S_IFREG)
  1369.  # if S_ISLNK (S_IFREG)
  1370.  You lose.
  1371.  # endif
  1372.  #endif
  1373.  
  1374. -#ifdef S_ISSOCK
  1375. +#if defined(S_ISSOCK) && defined(S_IFREG)
  1376.  # if S_ISSOCK (S_IFREG)
  1377.  You lose.
  1378.  # endif
  1379. @@ -1274,7 +1530,8 @@ fi
  1380.  rm -f conftest*
  1381.  
  1382.  fi
  1383. -echo "$ac_t""$ac_cv_header_stat_broken" 1>&4
  1384. +
  1385. +echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  1386.  if test $ac_cv_header_stat_broken = yes; then
  1387.    cat >> confdefs.h <<\EOF
  1388.  #define STAT_MACROS_BROKEN 1
  1389. @@ -1282,12 +1539,12 @@ EOF
  1390.  
  1391.  fi
  1392.  
  1393. -echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&4
  1394. -if eval "test \"`echo '${'ac_cv_type_uid_t'+set}'`\" = set"; then
  1395. -  echo $ac_n "(cached) $ac_c" 1>&4
  1396. +echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  1397. +if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  1398. +  echo $ac_n "(cached) $ac_c" 1>&6
  1399.  else
  1400.    cat > conftest.$ac_ext <<EOF
  1401. -#line 1291 "configure"
  1402. +#line 1548 "configure"
  1403.  #include "confdefs.h"
  1404.  #include <sys/types.h>
  1405.  EOF
  1406. @@ -1302,7 +1559,8 @@ fi
  1407.  rm -f conftest*
  1408.  
  1409.  fi
  1410. -echo "$ac_t""$ac_cv_type_uid_t" 1>&4
  1411. +
  1412. +echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  1413.  if test $ac_cv_type_uid_t = no; then
  1414.    cat >> confdefs.h <<\EOF
  1415.  #define uid_t int
  1416. @@ -1314,15 +1572,15 @@ EOF
  1417.  
  1418.  fi
  1419.  
  1420. -echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&4
  1421. -if eval "test \"`echo '${'ac_cv_type_getgroups'+set}'`\" = set"; then
  1422. -  echo $ac_n "(cached) $ac_c" 1>&4
  1423. +echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
  1424. +if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
  1425. +  echo $ac_n "(cached) $ac_c" 1>&6
  1426.  else
  1427.    if test "$cross_compiling" = yes; then
  1428.    ac_cv_type_getgroups=cross
  1429.  else
  1430.  cat > conftest.$ac_ext <<EOF
  1431. -#line 1326 "configure"
  1432. +#line 1584 "configure"
  1433.  #include "confdefs.h"
  1434.  
  1435.  /* Thanks to Mike Rendell for this test.  */
  1436. @@ -1347,7 +1605,7 @@ main()
  1437.  }
  1438.  
  1439.  EOF
  1440. -eval $ac_link
  1441. +{ (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1442.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1443.      ac_cv_type_getgroups=gid_t
  1444.  else
  1445. @@ -1357,7 +1615,7 @@ fi
  1446.  rm -fr conftest*
  1447.  if test $ac_cv_type_getgroups = cross; then
  1448.          cat > conftest.$ac_ext <<EOF
  1449. -#line 1361 "configure"
  1450. +#line 1619 "configure"
  1451.  #include "confdefs.h"
  1452.  #include <unistd.h>
  1453.  EOF
  1454. @@ -1373,18 +1631,19 @@ rm -f conftest*
  1455.  
  1456.  fi
  1457.  fi
  1458. -echo "$ac_t""$ac_cv_type_getgroups" 1>&4
  1459. +
  1460. +echo "$ac_t""$ac_cv_type_getgroups" 1>&6
  1461.  cat >> confdefs.h <<EOF
  1462.  #define GETGROUPS_T $ac_cv_type_getgroups
  1463.  EOF
  1464.  
  1465.  
  1466. -echo $ac_n "checking for size_t""... $ac_c" 1>&4
  1467. -if eval "test \"`echo '${'ac_cv_type_size_t'+set}'`\" = set"; then
  1468. -  echo $ac_n "(cached) $ac_c" 1>&4
  1469. +echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1470. +if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1471. +  echo $ac_n "(cached) $ac_c" 1>&6
  1472.  else
  1473.    cat > conftest.$ac_ext <<EOF
  1474. -#line 1388 "configure"
  1475. +#line 1647 "configure"
  1476.  #include "confdefs.h"
  1477.  #include <sys/types.h>
  1478.  #if STDC_HEADERS
  1479. @@ -1402,7 +1661,7 @@ fi
  1480.  rm -f conftest*
  1481.  
  1482.  fi
  1483. -echo "$ac_t""$ac_cv_type_size_t" 1>&4
  1484. +echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1485.  if test $ac_cv_type_size_t = no; then
  1486.    cat >> confdefs.h <<\EOF
  1487.  #define size_t unsigned
  1488. @@ -1414,15 +1673,22 @@ fi
  1489.  for ac_func in bcopy endgrent endpwent ftime getcwd getgroups gettimeofday \
  1490.             isascii memcpy sethostname strerror sysinfo
  1491.  do
  1492. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1493. -if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1494. -  echo $ac_n "(cached) $ac_c" 1>&4
  1495. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1496. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1497. +  echo $ac_n "(cached) $ac_c" 1>&6
  1498.  else
  1499.    cat > conftest.$ac_ext <<EOF
  1500. -#line 1423 "configure"
  1501. +#line 1682 "configure"
  1502.  #include "confdefs.h"
  1503. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1504. -int main() { return 0; }
  1505. +/* System header to define __stub macros and hopefully few prototypes,
  1506. +    which can conflict with char $ac_func(); below.  */
  1507. +#include <assert.h>
  1508. +/* Override any gcc2 internal prototype to avoid an error.  */
  1509. +/* We use char because int might match the return type of a gcc2
  1510. +    builtin and then its argument prototype would still apply.  */
  1511. +char $ac_func();
  1512. +
  1513. +int main() { t(); return 0; }
  1514.  int t() {
  1515.  
  1516.  /* The GNU C library defines this for functions which it implements
  1517. @@ -1431,13 +1697,12 @@ int t() {
  1518.  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1519.  choke me
  1520.  #else
  1521. -/* Override any gcc2 internal prototype to avoid an error.  */
  1522. -char $ac_func(); $ac_func();
  1523. +$ac_func();
  1524.  #endif
  1525.  
  1526.  ; return 0; }
  1527.  EOF
  1528. -if eval $ac_link; then
  1529. +if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1530.    rm -rf conftest*
  1531.    eval "ac_cv_func_$ac_func=yes"
  1532.  else
  1533. @@ -1448,14 +1713,14 @@ rm -f conftest*
  1534.  
  1535.  fi
  1536.  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1537. -  echo "$ac_t""yes" 1>&4
  1538. -    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1539. +  echo "$ac_t""yes" 1>&6
  1540. +    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1541.    cat >> confdefs.h <<EOF
  1542.  #define $ac_tr_func 1
  1543.  EOF
  1544.   
  1545.  else
  1546. -  echo "$ac_t""no" 1>&4
  1547. +  echo "$ac_t""no" 1>&6
  1548.  fi
  1549.  done
  1550.  
  1551. @@ -1463,15 +1728,22 @@ done
  1552.  # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
  1553.  for ac_func in initgroups
  1554.  do
  1555. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1556. -if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1557. -  echo $ac_n "(cached) $ac_c" 1>&4
  1558. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1559. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1560. +  echo $ac_n "(cached) $ac_c" 1>&6
  1561.  else
  1562.    cat > conftest.$ac_ext <<EOF
  1563. -#line 1472 "configure"
  1564. +#line 1737 "configure"
  1565.  #include "confdefs.h"
  1566. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1567. -int main() { return 0; }
  1568. +/* System header to define __stub macros and hopefully few prototypes,
  1569. +    which can conflict with char $ac_func(); below.  */
  1570. +#include <assert.h>
  1571. +/* Override any gcc2 internal prototype to avoid an error.  */
  1572. +/* We use char because int might match the return type of a gcc2
  1573. +    builtin and then its argument prototype would still apply.  */
  1574. +char $ac_func();
  1575. +
  1576. +int main() { t(); return 0; }
  1577.  int t() {
  1578.  
  1579.  /* The GNU C library defines this for functions which it implements
  1580. @@ -1480,13 +1752,12 @@ int t() {
  1581.  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1582.  choke me
  1583.  #else
  1584. -/* Override any gcc2 internal prototype to avoid an error.  */
  1585. -char $ac_func(); $ac_func();
  1586. +$ac_func();
  1587.  #endif
  1588.  
  1589.  ; return 0; }
  1590.  EOF
  1591. -if eval $ac_link; then
  1592. +if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1593.    rm -rf conftest*
  1594.    eval "ac_cv_func_$ac_func=yes"
  1595.  else
  1596. @@ -1497,70 +1768,82 @@ rm -f conftest*
  1597.  
  1598.  fi
  1599.  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1600. -  echo "$ac_t""yes" 1>&4
  1601. -    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1602. +  echo "$ac_t""yes" 1>&6
  1603. +    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1604.    cat >> confdefs.h <<EOF
  1605.  #define $ac_tr_func 1
  1606.  EOF
  1607.   
  1608.  else
  1609. -  echo "$ac_t""no" 1>&4
  1610. +  echo "$ac_t""no" 1>&6
  1611.  fi
  1612.  done
  1613.  
  1614.  if test $ac_cv_func_initgroups = no; then
  1615. -  echo $ac_n "checking for -los""... $ac_c" 1>&4
  1616. -if eval "test \"`echo '${'ac_cv_lib_os'+set}'`\" = set"; then
  1617. -  echo $ac_n "(cached) $ac_c" 1>&4
  1618. +  echo $ac_n "checking for -los""... $ac_c" 1>&6
  1619. +ac_lib_var=`echo os'_'initgroups | tr './+\055' '__p_'`
  1620. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1621. +  echo $ac_n "(cached) $ac_c" 1>&6
  1622.  else
  1623.    ac_save_LIBS="$LIBS"
  1624. -LIBS="$LIBS -los "
  1625. +LIBS="-los  $LIBS"
  1626.  cat > conftest.$ac_ext <<EOF
  1627. -#line 1520 "configure"
  1628. +#line 1792 "configure"
  1629.  #include "confdefs.h"
  1630. +/* Override any gcc2 internal prototype to avoid an error.  */
  1631. +/* We use char because int might match the return type of a gcc2
  1632. +    builtin and then its argument prototype would still apply.  */
  1633. +char initgroups();
  1634.  
  1635. -int main() { return 0; }
  1636. +int main() { t(); return 0; }
  1637.  int t() {
  1638.  initgroups()
  1639.  ; return 0; }
  1640.  EOF
  1641. -if eval $ac_link; then
  1642. +if { (eval echo configure:1804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1643.    rm -rf conftest*
  1644. -  eval "ac_cv_lib_os=yes"
  1645. +  eval "ac_cv_lib_$ac_lib_var=yes"
  1646.  else
  1647.    rm -rf conftest*
  1648. -  eval "ac_cv_lib_os=no"
  1649. +  eval "ac_cv_lib_$ac_lib_var=no"
  1650.  fi
  1651.  rm -f conftest*
  1652.  LIBS="$ac_save_LIBS"
  1653.  
  1654.  fi
  1655. -if eval "test \"`echo '$ac_cv_lib_'os`\" = yes"; then
  1656. -  echo "$ac_t""yes" 1>&4
  1657. -    ac_tr_lib=HAVE_LIB`echo os | tr '[a-z]' '[A-Z]'`
  1658. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1659. +  echo "$ac_t""yes" 1>&6
  1660. +    ac_tr_lib=HAVE_LIB`echo os | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  1661.    cat >> confdefs.h <<EOF
  1662.  #define $ac_tr_lib 1
  1663.  EOF
  1664.  
  1665. -  LIBS="$LIBS -los"
  1666. +  LIBS="-los $LIBS"
  1667.  
  1668.  else
  1669. -  echo "$ac_t""no" 1>&4
  1670. +  echo "$ac_t""no" 1>&6
  1671.  fi
  1672.  
  1673.  fi
  1674.  
  1675.  for ac_func in syslog
  1676.  do
  1677. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1678. -if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1679. -  echo $ac_n "(cached) $ac_c" 1>&4
  1680. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1681. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1682. +  echo $ac_n "(cached) $ac_c" 1>&6
  1683.  else
  1684.    cat > conftest.$ac_ext <<EOF
  1685. -#line 1561 "configure"
  1686. +#line 1837 "configure"
  1687.  #include "confdefs.h"
  1688. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1689. -int main() { return 0; }
  1690. +/* System header to define __stub macros and hopefully few prototypes,
  1691. +    which can conflict with char $ac_func(); below.  */
  1692. +#include <assert.h>
  1693. +/* Override any gcc2 internal prototype to avoid an error.  */
  1694. +/* We use char because int might match the return type of a gcc2
  1695. +    builtin and then its argument prototype would still apply.  */
  1696. +char $ac_func();
  1697. +
  1698. +int main() { t(); return 0; }
  1699.  int t() {
  1700.  
  1701.  /* The GNU C library defines this for functions which it implements
  1702. @@ -1569,13 +1852,12 @@ int t() {
  1703.  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1704.  choke me
  1705.  #else
  1706. -/* Override any gcc2 internal prototype to avoid an error.  */
  1707. -char $ac_func(); $ac_func();
  1708. +$ac_func();
  1709.  #endif
  1710.  
  1711.  ; return 0; }
  1712.  EOF
  1713. -if eval $ac_link; then
  1714. +if { (eval echo configure:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1715.    rm -rf conftest*
  1716.    eval "ac_cv_func_$ac_func=yes"
  1717.  else
  1718. @@ -1586,55 +1868,60 @@ rm -f conftest*
  1719.  
  1720.  fi
  1721.  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1722. -  echo "$ac_t""yes" 1>&4
  1723. -    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1724. +  echo "$ac_t""yes" 1>&6
  1725. +    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1726.    cat >> confdefs.h <<EOF
  1727.  #define $ac_tr_func 1
  1728.  EOF
  1729.   
  1730.  else
  1731. -  echo "$ac_t""no" 1>&4
  1732. +  echo "$ac_t""no" 1>&6
  1733.  fi
  1734.  done
  1735.  
  1736.  if test $ac_cv_func_syslog = no; then
  1737.    # syslog is not in the default libraries.  See if it's in some other.
  1738.    for lib in bsd socket inet; do
  1739. -    echo $ac_n "checking for -l$lib""... $ac_c" 1>&4
  1740. -if eval "test \"`echo '${'ac_cv_lib_$lib'+set}'`\" = set"; then
  1741. -  echo $ac_n "(cached) $ac_c" 1>&4
  1742. +    echo $ac_n "checking for -l$lib""... $ac_c" 1>&6
  1743. +ac_lib_var=`echo $lib'_'syslog | tr './+\055' '__p_'`
  1744. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1745. +  echo $ac_n "(cached) $ac_c" 1>&6
  1746.  else
  1747.    ac_save_LIBS="$LIBS"
  1748. -LIBS="$LIBS -l$lib "
  1749. +LIBS="-l$lib  $LIBS"
  1750.  cat > conftest.$ac_ext <<EOF
  1751. -#line 1611 "configure"
  1752. +#line 1894 "configure"
  1753.  #include "confdefs.h"
  1754. +/* Override any gcc2 internal prototype to avoid an error.  */
  1755. +/* We use char because int might match the return type of a gcc2
  1756. +    builtin and then its argument prototype would still apply.  */
  1757. +char syslog();
  1758.  
  1759. -int main() { return 0; }
  1760. +int main() { t(); return 0; }
  1761.  int t() {
  1762.  syslog()
  1763.  ; return 0; }
  1764.  EOF
  1765. -if eval $ac_link; then
  1766. +if { (eval echo configure:1906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1767.    rm -rf conftest*
  1768. -  eval "ac_cv_lib_$lib=yes"
  1769. +  eval "ac_cv_lib_$ac_lib_var=yes"
  1770.  else
  1771.    rm -rf conftest*
  1772. -  eval "ac_cv_lib_$lib=no"
  1773. +  eval "ac_cv_lib_$ac_lib_var=no"
  1774.  fi
  1775.  rm -f conftest*
  1776.  LIBS="$ac_save_LIBS"
  1777.  
  1778.  fi
  1779. -if eval "test \"`echo '$ac_cv_lib_'$lib`\" = yes"; then
  1780. -  echo "$ac_t""yes" 1>&4
  1781. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1782. +  echo "$ac_t""yes" 1>&6
  1783.    cat >> confdefs.h <<\EOF
  1784.  #define HAVE_SYSLOG 1
  1785.  EOF
  1786.  
  1787.        LIBS="$LIBS -l$lib"; break
  1788.  else
  1789. -  echo "$ac_t""no" 1>&4
  1790. +  echo "$ac_t""no" 1>&6
  1791.  fi
  1792.  
  1793.    done
  1794. @@ -1643,17 +1930,18 @@ fi
  1795.  for ac_hdr in string.h fcntl.h limits.h syslog.h sys/time.h unistd.h \
  1796.           sys/timeb.h float.h sys/systeminfo.h sys/param.h
  1797.  do
  1798. -ac_safe=`echo "$ac_hdr" | tr './' '__'`
  1799. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  1800. -if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1801. -  echo $ac_n "(cached) $ac_c" 1>&4
  1802. +ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1803. +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1804. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1805. +  echo $ac_n "(cached) $ac_c" 1>&6
  1806.  else
  1807.    cat > conftest.$ac_ext <<EOF
  1808. -#line 1653 "configure"
  1809. +#line 1940 "configure"
  1810.  #include "confdefs.h"
  1811.  #include <$ac_hdr>
  1812.  EOF
  1813. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1814. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1815. +{ (eval echo configure:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1816.  ac_err=`grep -v '^ *+' conftest.out`
  1817.  if test -z "$ac_err"; then
  1818.    rm -rf conftest*
  1819. @@ -1666,14 +1954,14 @@ fi
  1820.  rm -f conftest*
  1821.  fi
  1822.  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1823. -  echo "$ac_t""yes" 1>&4
  1824. -    ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  1825. +  echo "$ac_t""yes" 1>&6
  1826. +    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1827.    cat >> confdefs.h <<EOF
  1828.  #define $ac_tr_hdr 1
  1829.  EOF
  1830.   
  1831.  else
  1832. -  echo "$ac_t""no" 1>&4
  1833. +  echo "$ac_t""no" 1>&6
  1834.  fi
  1835.  done
  1836.  
  1837. @@ -1681,15 +1969,22 @@ done
  1838.  for ac_func in gethostname getusershell mktime stime \
  1839.           strcspn strstr strtol strtoul strtod
  1840.  do
  1841. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1842. -if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1843. -  echo $ac_n "(cached) $ac_c" 1>&4
  1844. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1845. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1846. +  echo $ac_n "(cached) $ac_c" 1>&6
  1847.  else
  1848.    cat > conftest.$ac_ext <<EOF
  1849. -#line 1690 "configure"
  1850. +#line 1978 "configure"
  1851.  #include "confdefs.h"
  1852. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1853. -int main() { return 0; }
  1854. +/* System header to define __stub macros and hopefully few prototypes,
  1855. +    which can conflict with char $ac_func(); below.  */
  1856. +#include <assert.h>
  1857. +/* Override any gcc2 internal prototype to avoid an error.  */
  1858. +/* We use char because int might match the return type of a gcc2
  1859. +    builtin and then its argument prototype would still apply.  */
  1860. +char $ac_func();
  1861. +
  1862. +int main() { t(); return 0; }
  1863.  int t() {
  1864.  
  1865.  /* The GNU C library defines this for functions which it implements
  1866. @@ -1698,13 +1993,12 @@ int t() {
  1867.  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1868.  choke me
  1869.  #else
  1870. -/* Override any gcc2 internal prototype to avoid an error.  */
  1871. -char $ac_func(); $ac_func();
  1872. +$ac_func();
  1873.  #endif
  1874.  
  1875.  ; return 0; }
  1876.  EOF
  1877. -if eval $ac_link; then
  1878. +if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1879.    rm -rf conftest*
  1880.    eval "ac_cv_func_$ac_func=yes"
  1881.  else
  1882. @@ -1715,24 +2009,24 @@ rm -f conftest*
  1883.  
  1884.  fi
  1885.  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1886. -  echo "$ac_t""yes" 1>&4
  1887. +  echo "$ac_t""yes" 1>&6
  1888.    :
  1889.  else
  1890. -  echo "$ac_t""no" 1>&4
  1891. +  echo "$ac_t""no" 1>&6
  1892.  LIBOBJS="$LIBOBJS ${ac_func}.o"
  1893.  fi
  1894.  
  1895.  done
  1896.  
  1897. -echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&4
  1898. -if eval "test \"`echo '${'ac_cv_func_memcmp'+set}'`\" = set"; then
  1899. -  echo $ac_n "(cached) $ac_c" 1>&4
  1900. +echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
  1901. +if eval "test \"`echo '$''{'ac_cv_func_memcmp'+set}'`\" = set"; then
  1902. +  echo $ac_n "(cached) $ac_c" 1>&6
  1903.  else
  1904.    if test "$cross_compiling" = yes; then
  1905.    ac_cv_func_memcmp=no
  1906.  else
  1907.  cat > conftest.$ac_ext <<EOF
  1908. -#line 1736 "configure"
  1909. +#line 2030 "configure"
  1910.  #include "confdefs.h"
  1911.  
  1912.  main()
  1913. @@ -1742,7 +2036,7 @@ main()
  1914.  }
  1915.  
  1916.  EOF
  1917. -eval $ac_link
  1918. +{ (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1919.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1920.    ac_cv_func_memcmp=yes
  1921.  else
  1922. @@ -1751,18 +2045,26 @@ fi
  1923.  fi
  1924.  rm -fr conftest*
  1925.  fi
  1926. -echo "$ac_t""$ac_cv_func_memcmp" 1>&4
  1927. +
  1928. +echo "$ac_t""$ac_cv_func_memcmp" 1>&6
  1929.  test $ac_cv_func_memcmp = no && LIBOBJS="$LIBOBJS memcmp.o"
  1930.  
  1931. -echo $ac_n "checking for vprintf""... $ac_c" 1>&4
  1932. -if eval "test \"`echo '${'ac_cv_func_vprintf'+set}'`\" = set"; then
  1933. -  echo $ac_n "(cached) $ac_c" 1>&4
  1934. +echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  1935. +if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  1936. +  echo $ac_n "(cached) $ac_c" 1>&6
  1937.  else
  1938.    cat > conftest.$ac_ext <<EOF
  1939. -#line 1763 "configure"
  1940. +#line 2058 "configure"
  1941.  #include "confdefs.h"
  1942. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1943. -int main() { return 0; }
  1944. +/* System header to define __stub macros and hopefully few prototypes,
  1945. +    which can conflict with char vprintf(); below.  */
  1946. +#include <assert.h>
  1947. +/* Override any gcc2 internal prototype to avoid an error.  */
  1948. +/* We use char because int might match the return type of a gcc2
  1949. +    builtin and then its argument prototype would still apply.  */
  1950. +char vprintf();
  1951. +
  1952. +int main() { t(); return 0; }
  1953.  int t() {
  1954.  
  1955.  /* The GNU C library defines this for functions which it implements
  1956. @@ -1771,13 +2073,12 @@ int t() {
  1957.  #if defined (__stub_vprintf) || defined (__stub___vprintf)
  1958.  choke me
  1959.  #else
  1960. -/* Override any gcc2 internal prototype to avoid an error.  */
  1961. -char vprintf(); vprintf();
  1962. +vprintf();
  1963.  #endif
  1964.  
  1965.  ; return 0; }
  1966.  EOF
  1967. -if eval $ac_link; then
  1968. +if { (eval echo configure:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1969.    rm -rf conftest*
  1970.    eval "ac_cv_func_vprintf=yes"
  1971.  else
  1972. @@ -1788,25 +2089,32 @@ rm -f conftest*
  1973.  
  1974.  fi
  1975.  if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  1976. -  echo "$ac_t""yes" 1>&4
  1977. +  echo "$ac_t""yes" 1>&6
  1978.    cat >> confdefs.h <<\EOF
  1979.  #define HAVE_VPRINTF 1
  1980.  EOF
  1981.  
  1982.  else
  1983. -  echo "$ac_t""no" 1>&4
  1984. +  echo "$ac_t""no" 1>&6
  1985.  fi
  1986.  
  1987.  if test "$ac_cv_func_vprintf" != yes; then
  1988. -echo $ac_n "checking for _doprnt""... $ac_c" 1>&4
  1989. -if eval "test \"`echo '${'ac_cv_func__doprnt'+set}'`\" = set"; then
  1990. -  echo $ac_n "(cached) $ac_c" 1>&4
  1991. +echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  1992. +if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  1993. +  echo $ac_n "(cached) $ac_c" 1>&6
  1994.  else
  1995.    cat > conftest.$ac_ext <<EOF
  1996. -#line 1807 "configure"
  1997. +#line 2108 "configure"
  1998.  #include "confdefs.h"
  1999. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2000. -int main() { return 0; }
  2001. +/* System header to define __stub macros and hopefully few prototypes,
  2002. +    which can conflict with char _doprnt(); below.  */
  2003. +#include <assert.h>
  2004. +/* Override any gcc2 internal prototype to avoid an error.  */
  2005. +/* We use char because int might match the return type of a gcc2
  2006. +    builtin and then its argument prototype would still apply.  */
  2007. +char _doprnt();
  2008. +
  2009. +int main() { t(); return 0; }
  2010.  int t() {
  2011.  
  2012.  /* The GNU C library defines this for functions which it implements
  2013. @@ -1815,13 +2123,12 @@ int t() {
  2014.  #if defined (__stub__doprnt) || defined (__stub____doprnt)
  2015.  choke me
  2016.  #else
  2017. -/* Override any gcc2 internal prototype to avoid an error.  */
  2018. -char _doprnt(); _doprnt();
  2019. +_doprnt();
  2020.  #endif
  2021.  
  2022.  ; return 0; }
  2023.  EOF
  2024. -if eval $ac_link; then
  2025. +if { (eval echo configure:2132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2026.    rm -rf conftest*
  2027.    eval "ac_cv_func__doprnt=yes"
  2028.  else
  2029. @@ -1832,33 +2139,33 @@ rm -f conftest*
  2030.  
  2031.  fi
  2032.  if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  2033. -  echo "$ac_t""yes" 1>&4
  2034. +  echo "$ac_t""yes" 1>&6
  2035.    cat >> confdefs.h <<\EOF
  2036.  #define HAVE_DOPRNT 1
  2037.  EOF
  2038.  
  2039.  else
  2040. -  echo "$ac_t""no" 1>&4
  2041. +  echo "$ac_t""no" 1>&6
  2042.  fi
  2043.  
  2044.  fi
  2045.  
  2046.  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  2047.  # for constant arguments.  Useless!
  2048. -echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
  2049. -if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
  2050. -  echo $ac_n "(cached) $ac_c" 1>&4
  2051. +echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  2052. +if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  2053. +  echo $ac_n "(cached) $ac_c" 1>&6
  2054.  else
  2055.    cat > conftest.$ac_ext <<EOF
  2056. -#line 1854 "configure"
  2057. +#line 2161 "configure"
  2058.  #include "confdefs.h"
  2059.  #include <alloca.h>
  2060. -int main() { return 0; }
  2061. +int main() { t(); return 0; }
  2062.  int t() {
  2063.  char *p = alloca(2 * sizeof(int));
  2064.  ; return 0; }
  2065.  EOF
  2066. -if eval $ac_link; then
  2067. +if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2068.    rm -rf conftest*
  2069.    ac_cv_header_alloca_h=yes
  2070.  else
  2071. @@ -1868,7 +2175,8 @@ fi
  2072.  rm -f conftest*
  2073.  
  2074.  fi
  2075. -echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
  2076. +
  2077. +echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  2078.  if test $ac_cv_header_alloca_h = yes; then
  2079.    cat >> confdefs.h <<\EOF
  2080.  #define HAVE_ALLOCA_H 1
  2081. @@ -1876,12 +2184,12 @@ EOF
  2082.  
  2083.  fi
  2084.  
  2085. -echo $ac_n "checking for alloca""... $ac_c" 1>&4
  2086. -if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
  2087. -  echo $ac_n "(cached) $ac_c" 1>&4
  2088. +echo $ac_n "checking for alloca""... $ac_c" 1>&6
  2089. +if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  2090. +  echo $ac_n "(cached) $ac_c" 1>&6
  2091.  else
  2092.    cat > conftest.$ac_ext <<EOF
  2093. -#line 1885 "configure"
  2094. +#line 2193 "configure"
  2095.  #include "confdefs.h"
  2096.  
  2097.  #ifdef __GNUC__
  2098. @@ -1900,12 +2208,12 @@ char *alloca ();
  2099.  # endif
  2100.  #endif
  2101.  
  2102. -int main() { return 0; }
  2103. +int main() { t(); return 0; }
  2104.  int t() {
  2105.  char *p = (char *) alloca(1);
  2106.  ; return 0; }
  2107.  EOF
  2108. -if eval $ac_link; then
  2109. +if { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2110.    rm -rf conftest*
  2111.    ac_cv_func_alloca=yes
  2112.  else
  2113. @@ -1915,7 +2223,8 @@ fi
  2114.  rm -f conftest*
  2115.  
  2116.  fi
  2117. -echo "$ac_t""$ac_cv_func_alloca" 1>&4
  2118. +
  2119. +echo "$ac_t""$ac_cv_func_alloca" 1>&6
  2120.  if test $ac_cv_func_alloca = yes; then
  2121.    cat >> confdefs.h <<\EOF
  2122.  #define HAVE_ALLOCA 1
  2123. @@ -1934,12 +2243,12 @@ if test $ac_cv_func_alloca = no; then
  2124.  EOF
  2125.  
  2126.  
  2127. -echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
  2128. -if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
  2129. -  echo $ac_n "(cached) $ac_c" 1>&4
  2130. +echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  2131. +if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  2132. +  echo $ac_n "(cached) $ac_c" 1>&6
  2133.  else
  2134.    cat > conftest.$ac_ext <<EOF
  2135. -#line 1943 "configure"
  2136. +#line 2252 "configure"
  2137.  #include "confdefs.h"
  2138.  #if defined(CRAY) && ! defined(CRAY2)
  2139.  webecray
  2140. @@ -1959,148 +2268,72 @@ fi
  2141.  rm -f conftest*
  2142.  
  2143.  fi
  2144. -echo "$ac_t""$ac_cv_os_cray" 1>&4
  2145. +
  2146. +echo "$ac_t""$ac_cv_os_cray" 1>&6
  2147.  if test $ac_cv_os_cray = yes; then
  2148. -echo $ac_n "checking for _getb67""... $ac_c" 1>&4
  2149. -if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
  2150. -  echo $ac_n "(cached) $ac_c" 1>&4
  2151. +for ac_func in _getb67 GETB67 getb67; do
  2152. +  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2153. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2154. +  echo $ac_n "(cached) $ac_c" 1>&6
  2155.  else
  2156.    cat > conftest.$ac_ext <<EOF
  2157. -#line 1970 "configure"
  2158. +#line 2281 "configure"
  2159.  #include "confdefs.h"
  2160. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2161. -int main() { return 0; }
  2162. -int t() {
  2163. -
  2164. -/* The GNU C library defines this for functions which it implements
  2165. -    to always fail with ENOSYS.  Some functions are actually named
  2166. -    something starting with __ and the normal name is an alias.  */
  2167. -#if defined (__stub__getb67) || defined (__stub____getb67)
  2168. -choke me
  2169. -#else
  2170. +/* System header to define __stub macros and hopefully few prototypes,
  2171. +    which can conflict with char $ac_func(); below.  */
  2172. +#include <assert.h>
  2173.  /* Override any gcc2 internal prototype to avoid an error.  */
  2174. -char _getb67(); _getb67();
  2175. -#endif
  2176. +/* We use char because int might match the return type of a gcc2
  2177. +    builtin and then its argument prototype would still apply.  */
  2178. +char $ac_func();
  2179.  
  2180. -; return 0; }
  2181. -EOF
  2182. -if eval $ac_link; then
  2183. -  rm -rf conftest*
  2184. -  eval "ac_cv_func__getb67=yes"
  2185. -else
  2186. -  rm -rf conftest*
  2187. -  eval "ac_cv_func__getb67=no"
  2188. -fi
  2189. -rm -f conftest*
  2190. -
  2191. -fi
  2192. -if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
  2193. -  echo "$ac_t""yes" 1>&4
  2194. -  cat >> confdefs.h <<\EOF
  2195. -#define CRAY_STACKSEG_END _getb67
  2196. -EOF
  2197. -
  2198. -else
  2199. -  echo "$ac_t""no" 1>&4
  2200. -echo $ac_n "checking for GETB67""... $ac_c" 1>&4
  2201. -if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
  2202. -  echo $ac_n "(cached) $ac_c" 1>&4
  2203. -else
  2204. -  cat > conftest.$ac_ext <<EOF
  2205. -#line 2011 "configure"
  2206. -#include "confdefs.h"
  2207. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2208. -int main() { return 0; }
  2209. +int main() { t(); return 0; }
  2210.  int t() {
  2211.  
  2212.  /* The GNU C library defines this for functions which it implements
  2213.      to always fail with ENOSYS.  Some functions are actually named
  2214.      something starting with __ and the normal name is an alias.  */
  2215. -#if defined (__stub_GETB67) || defined (__stub___GETB67)
  2216. -choke me
  2217. -#else
  2218. -/* Override any gcc2 internal prototype to avoid an error.  */
  2219. -char GETB67(); GETB67();
  2220. -#endif
  2221. -
  2222. -; return 0; }
  2223. -EOF
  2224. -if eval $ac_link; then
  2225. -  rm -rf conftest*
  2226. -  eval "ac_cv_func_GETB67=yes"
  2227. -else
  2228. -  rm -rf conftest*
  2229. -  eval "ac_cv_func_GETB67=no"
  2230. -fi
  2231. -rm -f conftest*
  2232. -
  2233. -fi
  2234. -if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
  2235. -  echo "$ac_t""yes" 1>&4
  2236. -  cat >> confdefs.h <<\EOF
  2237. -#define CRAY_STACKSEG_END GETB67
  2238. -EOF
  2239. -
  2240. -else
  2241. -  echo "$ac_t""no" 1>&4
  2242. -echo $ac_n "checking for getb67""... $ac_c" 1>&4
  2243. -if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
  2244. -  echo $ac_n "(cached) $ac_c" 1>&4
  2245. -else
  2246. -  cat > conftest.$ac_ext <<EOF
  2247. -#line 2052 "configure"
  2248. -#include "confdefs.h"
  2249. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2250. -int main() { return 0; }
  2251. -int t() {
  2252. -
  2253. -/* The GNU C library defines this for functions which it implements
  2254. -    to always fail with ENOSYS.  Some functions are actually named
  2255. -    something starting with __ and the normal name is an alias.  */
  2256. -#if defined (__stub_getb67) || defined (__stub___getb67)
  2257. +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2258.  choke me
  2259.  #else
  2260. -/* Override any gcc2 internal prototype to avoid an error.  */
  2261. -char getb67(); getb67();
  2262. +$ac_func();
  2263.  #endif
  2264.  
  2265.  ; return 0; }
  2266.  EOF
  2267. -if eval $ac_link; then
  2268. +if { (eval echo configure:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2269.    rm -rf conftest*
  2270. -  eval "ac_cv_func_getb67=yes"
  2271. +  eval "ac_cv_func_$ac_func=yes"
  2272.  else
  2273.    rm -rf conftest*
  2274. -  eval "ac_cv_func_getb67=no"
  2275. +  eval "ac_cv_func_$ac_func=no"
  2276.  fi
  2277.  rm -f conftest*
  2278.  
  2279.  fi
  2280. -if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
  2281. -  echo "$ac_t""yes" 1>&4
  2282. -  cat >> confdefs.h <<\EOF
  2283. -#define CRAY_STACKSEG_END getb67
  2284. +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2285. +  echo "$ac_t""yes" 1>&6
  2286. +  cat >> confdefs.h <<EOF
  2287. +#define CRAY_STACKSEG_END $ac_func
  2288.  EOF
  2289.  
  2290. +  break
  2291.  else
  2292. -  echo "$ac_t""no" 1>&4
  2293. -fi
  2294. -
  2295. -fi
  2296. -
  2297. +  echo "$ac_t""no" 1>&6
  2298.  fi
  2299.  
  2300. +done
  2301.  fi
  2302.  
  2303. -echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
  2304. -if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
  2305. -  echo $ac_n "(cached) $ac_c" 1>&4
  2306. +echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  2307. +if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  2308. +  echo $ac_n "(cached) $ac_c" 1>&6
  2309.  else
  2310.    if test "$cross_compiling" = yes; then
  2311.    ac_cv_c_stack_direction=0
  2312.  else
  2313.  cat > conftest.$ac_ext <<EOF
  2314. -#line 2104 "configure"
  2315. +#line 2337 "configure"
  2316.  #include "confdefs.h"
  2317.  find_stack_direction ()
  2318.  {
  2319. @@ -2119,7 +2352,7 @@ main ()
  2320.    exit (find_stack_direction() < 0);
  2321.  }
  2322.  EOF
  2323. -eval $ac_link
  2324. +{ (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2325.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2326.    ac_cv_c_stack_direction=1
  2327.  else
  2328. @@ -2128,7 +2361,8 @@ fi
  2329.  fi
  2330.  rm -fr conftest*
  2331.  fi
  2332. -echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
  2333. +
  2334. +echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  2335.  cat >> confdefs.h <<EOF
  2336.  #define STACK_DIRECTION $ac_cv_c_stack_direction
  2337.  EOF
  2338. @@ -2136,21 +2370,21 @@ EOF
  2339.  fi
  2340.  
  2341.  
  2342. -echo $ac_n "checking for 3-argument setpriority function""... $ac_c" 1>&4
  2343. -if eval "test \"`echo '${'utils_cv_func_setpriority'+set}'`\" = set"; then
  2344. -  echo $ac_n "(cached) $ac_c" 1>&4
  2345. +echo $ac_n "checking for 3-argument setpriority function""... $ac_c" 1>&6
  2346. +if eval "test \"`echo '$''{'utils_cv_func_setpriority'+set}'`\" = set"; then
  2347. +  echo $ac_n "(cached) $ac_c" 1>&6
  2348.  else
  2349.    cat > conftest.$ac_ext <<EOF
  2350. -#line 2145 "configure"
  2351. +#line 2379 "configure"
  2352.  #include "confdefs.h"
  2353.  #include <sys/time.h>
  2354.  #include <sys/resource.h>
  2355. -int main() { return 0; }
  2356. +int main() { t(); return 0; }
  2357.  int t() {
  2358.  setpriority(0, 0, 0);
  2359.  ; return 0; }
  2360.  EOF
  2361. -if eval $ac_link; then
  2362. +if { (eval echo configure:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2363.    rm -rf conftest*
  2364.    utils_cv_func_setpriority=yes
  2365.  else
  2366. @@ -2161,25 +2395,25 @@ rm -f conftest*
  2367.  
  2368.  fi
  2369.  
  2370. -echo "$ac_t""$utils_cv_func_setpriority" 1>&4
  2371. +echo "$ac_t""$utils_cv_func_setpriority" 1>&6
  2372.  if test $utils_cv_func_setpriority = yes; then
  2373.    PROGS="$PROGS nice nohup"
  2374.    MAN="$MAN nice.1 nohup.1"
  2375.  else
  2376. -  echo $ac_n "checking for nice function""... $ac_c" 1>&4
  2377. -  if eval "test \"`echo '${'utils_cv_func_nice'+set}'`\" = set"; then
  2378. -  echo $ac_n "(cached) $ac_c" 1>&4
  2379. +  echo $ac_n "checking for nice function""... $ac_c" 1>&6
  2380. +  if eval "test \"`echo '$''{'utils_cv_func_nice'+set}'`\" = set"; then
  2381. +  echo $ac_n "(cached) $ac_c" 1>&6
  2382.  else
  2383.    cat > conftest.$ac_ext <<EOF
  2384. -#line 2175 "configure"
  2385. +#line 2409 "configure"
  2386.  #include "confdefs.h"
  2387.  
  2388. -int main() { return 0; }
  2389. +int main() { t(); return 0; }
  2390.  int t() {
  2391.  nice();
  2392.  ; return 0; }
  2393.  EOF
  2394. -if eval $ac_link; then
  2395. +if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2396.    rm -rf conftest*
  2397.    utils_cv_func_nice=yes
  2398.  else
  2399. @@ -2190,7 +2424,7 @@ rm -f conftest*
  2400.  
  2401.  fi
  2402.  
  2403. -  echo "$ac_t""$utils_cv_func_nice" 1>&4
  2404. +  echo "$ac_t""$utils_cv_func_nice" 1>&6
  2405.    if test $utils_cv_func_nice = yes; then
  2406.      cat >> confdefs.h <<\EOF
  2407.  #define NICE_PRIORITY 1
  2408. @@ -2201,21 +2435,21 @@ EOF
  2409.    fi
  2410.  fi
  2411.  
  2412. -echo $ac_n "checking ut_host in struct utmp""... $ac_c" 1>&4
  2413. -if eval "test \"`echo '${'su_cv_func_ut_host_in_utmp'+set}'`\" = set"; then
  2414. -  echo $ac_n "(cached) $ac_c" 1>&4
  2415. +echo $ac_n "checking ut_host in struct utmp""... $ac_c" 1>&6
  2416. +if eval "test \"`echo '$''{'su_cv_func_ut_host_in_utmp'+set}'`\" = set"; then
  2417. +  echo $ac_n "(cached) $ac_c" 1>&6
  2418.  else
  2419.    cat > conftest.$ac_ext <<EOF
  2420. -#line 2210 "configure"
  2421. +#line 2444 "configure"
  2422.  #include "confdefs.h"
  2423.  #include <sys/types.h>
  2424.  #include <utmp.h>
  2425. -int main() { return 0; }
  2426. +int main() { t(); return 0; }
  2427.  int t() {
  2428.  struct utmp ut; ut.ut_host;
  2429.  ; return 0; }
  2430.  EOF
  2431. -if eval $ac_link; then
  2432. +if { (eval echo configure:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2433.    rm -rf conftest*
  2434.    su_cv_func_ut_host_in_utmp=yes
  2435.  else
  2436. @@ -2226,7 +2460,7 @@ rm -f conftest*
  2437.  
  2438.  fi
  2439.  
  2440. -echo "$ac_t""$su_cv_func_ut_host_in_utmp" 1>&4
  2441. +echo "$ac_t""$su_cv_func_ut_host_in_utmp" 1>&6
  2442.  if test $su_cv_func_ut_host_in_utmp = yes; then
  2443.    have_ut_host=1
  2444.    cat >> confdefs.h <<\EOF
  2445. @@ -2236,21 +2470,21 @@ EOF
  2446.  fi
  2447.  
  2448.  if test -z "$have_ut_host"; then
  2449. -  echo $ac_n "checking ut_host in struct utmpx""... $ac_c" 1>&4
  2450. -  if eval "test \"`echo '${'su_cv_func_ut_host_in_utmpx'+set}'`\" = set"; then
  2451. -  echo $ac_n "(cached) $ac_c" 1>&4
  2452. +  echo $ac_n "checking ut_host in struct utmpx""... $ac_c" 1>&6
  2453. +  if eval "test \"`echo '$''{'su_cv_func_ut_host_in_utmpx'+set}'`\" = set"; then
  2454. +  echo $ac_n "(cached) $ac_c" 1>&6
  2455.  else
  2456.    cat > conftest.$ac_ext <<EOF
  2457. -#line 2245 "configure"
  2458. +#line 2479 "configure"
  2459.  #include "confdefs.h"
  2460.  #include <sys/types.h>
  2461.  #include <utmpx.h>
  2462. -int main() { return 0; }
  2463. +int main() { t(); return 0; }
  2464.  int t() {
  2465.  struct utmpx ut; ut.ut_host;
  2466.  ; return 0; }
  2467.  EOF
  2468. -if eval $ac_link; then
  2469. +if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2470.    rm -rf conftest*
  2471.    su_cv_func_ut_host_in_utmpx=yes
  2472.  else
  2473. @@ -2261,7 +2495,7 @@ rm -f conftest*
  2474.  
  2475.  fi
  2476.  
  2477. -  echo "$ac_t""$su_cv_func_ut_host_in_utmpx" 1>&4
  2478. +  echo "$ac_t""$su_cv_func_ut_host_in_utmpx" 1>&6
  2479.    if test $su_cv_func_ut_host_in_utmpx = yes; then
  2480.      cat >> confdefs.h <<\EOF
  2481.  #define HAVE_UTMPX_H 1
  2482. @@ -2274,23 +2508,23 @@ EOF
  2483.    fi
  2484.  fi
  2485.  
  2486. -echo $ac_n "checking POSIX termios""... $ac_c" 1>&4
  2487. -if eval "test \"`echo '${'su_cv_sys_posix_termios'+set}'`\" = set"; then
  2488. -  echo $ac_n "(cached) $ac_c" 1>&4
  2489. +echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
  2490. +if eval "test \"`echo '$''{'su_cv_sys_posix_termios'+set}'`\" = set"; then
  2491. +  echo $ac_n "(cached) $ac_c" 1>&6
  2492.  else
  2493.    cat > conftest.$ac_ext <<EOF
  2494. -#line 2283 "configure"
  2495. +#line 2517 "configure"
  2496.  #include "confdefs.h"
  2497.  #include <sys/types.h>
  2498.  #include <unistd.h>
  2499.  #include <termios.h>
  2500. -int main() { return 0; }
  2501. +int main() { t(); return 0; }
  2502.  int t() {
  2503.  /* SunOS 4.0.3 has termios.h but not the library calls.  */
  2504.  tcgetattr(0, 0);
  2505.  ; return 0; }
  2506.  EOF
  2507. -if eval $ac_link; then
  2508. +if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2509.    rm -rf conftest*
  2510.    su_cv_sys_posix_termios=yes
  2511.  else
  2512. @@ -2301,26 +2535,26 @@ rm -f conftest*
  2513.  
  2514.  fi
  2515.  
  2516. -echo "$ac_t""$su_cv_sys_posix_termios" 1>&4
  2517. +echo "$ac_t""$su_cv_sys_posix_termios" 1>&6
  2518.  
  2519.  if test $su_cv_sys_posix_termios = yes; then
  2520.    PROGS="$PROGS stty" MAN="$MAN stty.1"
  2521.  
  2522. -  echo $ac_n "checking c_line in struct termios""... $ac_c" 1>&4
  2523. -  if eval "test \"`echo '${'su_cv_sys_c_line_in_termios'+set}'`\" = set"; then
  2524. -  echo $ac_n "(cached) $ac_c" 1>&4
  2525. +  echo $ac_n "checking c_line in struct termios""... $ac_c" 1>&6
  2526. +  if eval "test \"`echo '$''{'su_cv_sys_c_line_in_termios'+set}'`\" = set"; then
  2527. +  echo $ac_n "(cached) $ac_c" 1>&6
  2528.  else
  2529.    cat > conftest.$ac_ext <<EOF
  2530. -#line 2315 "configure"
  2531. +#line 2549 "configure"
  2532.  #include "confdefs.h"
  2533.  #include <sys/types.h>
  2534.  #include <termios.h>
  2535. -int main() { return 0; }
  2536. +int main() { t(); return 0; }
  2537.  int t() {
  2538.  struct termios t; t.c_line;
  2539.  ; return 0; }
  2540.  EOF
  2541. -if eval $ac_link; then
  2542. +if { (eval echo configure:2558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2543.    rm -rf conftest*
  2544.    su_cv_sys_c_line_in_termios=yes
  2545.  else
  2546. @@ -2331,27 +2565,27 @@ rm -f conftest*
  2547.  
  2548.  fi
  2549.  
  2550. -  echo "$ac_t""$su_cv_sys_c_line_in_termios" 1>&4
  2551. +  echo "$ac_t""$su_cv_sys_c_line_in_termios" 1>&6
  2552.    test $su_cv_sys_c_line_in_termios = yes && cat >> confdefs.h <<\EOF
  2553.  #define HAVE_C_LINE 1
  2554.  EOF
  2555.  
  2556.  
  2557. -  echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&4
  2558. -  if eval "test \"`echo '${'su_cv_sys_tiocgwinsz_in_termios_h'+set}'`\" = set"; then
  2559. -  echo $ac_n "(cached) $ac_c" 1>&4
  2560. +  echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
  2561. +  if eval "test \"`echo '$''{'su_cv_sys_tiocgwinsz_in_termios_h'+set}'`\" = set"; then
  2562. +  echo $ac_n "(cached) $ac_c" 1>&6
  2563.  else
  2564.    cat > conftest.$ac_ext <<EOF
  2565. -#line 2346 "configure"
  2566. +#line 2580 "configure"
  2567.  #include "confdefs.h"
  2568.  #include <sys/types.h>
  2569.  #include <termios.h>
  2570. -int main() { return 0; }
  2571. +int main() { t(); return 0; }
  2572.  int t() {
  2573.  int x = TIOCGWINSZ;
  2574.  ; return 0; }
  2575.  EOF
  2576. -if eval $ac_link; then
  2577. +if { (eval echo configure:2589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2578.    rm -rf conftest*
  2579.    su_cv_sys_tiocgwinsz_in_termios_h=yes
  2580.  else
  2581. @@ -2362,27 +2596,27 @@ rm -f conftest*
  2582.  
  2583.  fi
  2584.  
  2585. -  echo "$ac_t""$su_cv_sys_tiocgwinsz_in_termios_h" 1>&4
  2586. +  echo "$ac_t""$su_cv_sys_tiocgwinsz_in_termios_h" 1>&6
  2587.  else
  2588.    su_cv_sys_tiocgwinsz_in_termios_h=no
  2589.  fi
  2590.  
  2591.  if test $su_cv_sys_tiocgwinsz_in_termios_h = no; then
  2592. -  echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&4
  2593. -  if eval "test \"`echo '${'su_cv_sys_tiocgwinsz_in_sys_ioctl_h'+set}'`\" = set"; then
  2594. -  echo $ac_n "(cached) $ac_c" 1>&4
  2595. +  echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
  2596. +  if eval "test \"`echo '$''{'su_cv_sys_tiocgwinsz_in_sys_ioctl_h'+set}'`\" = set"; then
  2597. +  echo $ac_n "(cached) $ac_c" 1>&6
  2598.  else
  2599.    cat > conftest.$ac_ext <<EOF
  2600. -#line 2377 "configure"
  2601. +#line 2611 "configure"
  2602.  #include "confdefs.h"
  2603.  #include <sys/types.h>
  2604.  #include <sys/ioctl.h>
  2605. -int main() { return 0; }
  2606. +int main() { t(); return 0; }
  2607.  int t() {
  2608.  int x = TIOCGWINSZ;
  2609.  ; return 0; }
  2610.  EOF
  2611. -if eval $ac_link; then
  2612. +if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2613.    rm -rf conftest*
  2614.    su_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
  2615.  else
  2616. @@ -2393,7 +2627,7 @@ rm -f conftest*
  2617.  
  2618.  fi
  2619.  
  2620. -  echo "$ac_t""$su_cv_sys_tiocgwinsz_in_sys_ioctl_h" 1>&4
  2621. +  echo "$ac_t""$su_cv_sys_tiocgwinsz_in_sys_ioctl_h" 1>&6
  2622.  
  2623.    test $su_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes \
  2624.        && cat >> confdefs.h <<\EOF
  2625. @@ -2402,17 +2636,18 @@ EOF
  2626.  
  2627.  fi
  2628.  
  2629. -ac_safe=`echo "sys/ptem.h" | tr './' '__'`
  2630. -echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&4
  2631. -if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2632. -  echo $ac_n "(cached) $ac_c" 1>&4
  2633. +ac_safe=`echo "sys/ptem.h" | tr './\055' '___'`
  2634. +echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
  2635. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2636. +  echo $ac_n "(cached) $ac_c" 1>&6
  2637.  else
  2638.    cat > conftest.$ac_ext <<EOF
  2639. -#line 2412 "configure"
  2640. +#line 2646 "configure"
  2641.  #include "confdefs.h"
  2642.  #include <sys/ptem.h>
  2643.  EOF
  2644. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2645. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2646. +{ (eval echo configure:2651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2647.  ac_err=`grep -v '^ *+' conftest.out`
  2648.  if test -z "$ac_err"; then
  2649.    rm -rf conftest*
  2650. @@ -2425,157 +2660,171 @@ fi
  2651.  rm -f conftest*
  2652.  fi
  2653.  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2654. -  echo "$ac_t""yes" 1>&4
  2655. +  echo "$ac_t""yes" 1>&6
  2656.    cat >> confdefs.h <<\EOF
  2657.  #define WINSIZE_IN_PTEM 1
  2658.  EOF
  2659.  
  2660.  else
  2661. -  echo "$ac_t""no" 1>&4
  2662. +  echo "$ac_t""no" 1>&6
  2663.  fi
  2664.  
  2665.  
  2666.  # The -lsun library is required for YP support on Irix-4.0.5 systems.
  2667. -echo $ac_n "checking for -lsun""... $ac_c" 1>&4
  2668. -if eval "test \"`echo '${'ac_cv_lib_sun'+set}'`\" = set"; then
  2669. -  echo $ac_n "(cached) $ac_c" 1>&4
  2670. +echo $ac_n "checking for -lsun""... $ac_c" 1>&6
  2671. +ac_lib_var=`echo sun'_'yp_match | tr './+\055' '__p_'`
  2672. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2673. +  echo $ac_n "(cached) $ac_c" 1>&6
  2674.  else
  2675.    ac_save_LIBS="$LIBS"
  2676. -LIBS="$LIBS -lsun "
  2677. +LIBS="-lsun  $LIBS"
  2678.  cat > conftest.$ac_ext <<EOF
  2679. -#line 2447 "configure"
  2680. +#line 2683 "configure"
  2681.  #include "confdefs.h"
  2682. +/* Override any gcc2 internal prototype to avoid an error.  */
  2683. +/* We use char because int might match the return type of a gcc2
  2684. +    builtin and then its argument prototype would still apply.  */
  2685. +char yp_match();
  2686.  
  2687. -int main() { return 0; }
  2688. +int main() { t(); return 0; }
  2689.  int t() {
  2690.  yp_match()
  2691.  ; return 0; }
  2692.  EOF
  2693. -if eval $ac_link; then
  2694. +if { (eval echo configure:2695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2695.    rm -rf conftest*
  2696. -  eval "ac_cv_lib_sun=yes"
  2697. +  eval "ac_cv_lib_$ac_lib_var=yes"
  2698.  else
  2699.    rm -rf conftest*
  2700. -  eval "ac_cv_lib_sun=no"
  2701. +  eval "ac_cv_lib_$ac_lib_var=no"
  2702.  fi
  2703.  rm -f conftest*
  2704.  LIBS="$ac_save_LIBS"
  2705.  
  2706.  fi
  2707. -if eval "test \"`echo '$ac_cv_lib_'sun`\" = yes"; then
  2708. -  echo "$ac_t""yes" 1>&4
  2709. -    ac_tr_lib=HAVE_LIB`echo sun | tr '[a-z]' '[A-Z]'`
  2710. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2711. +  echo "$ac_t""yes" 1>&6
  2712. +    ac_tr_lib=HAVE_LIB`echo sun | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  2713.    cat >> confdefs.h <<EOF
  2714.  #define $ac_tr_lib 1
  2715.  EOF
  2716.  
  2717. -  LIBS="$LIBS -lsun"
  2718. +  LIBS="-lsun $LIBS"
  2719.  
  2720.  else
  2721. -  echo "$ac_t""no" 1>&4
  2722. +  echo "$ac_t""no" 1>&6
  2723.  fi
  2724.  
  2725.  
  2726. -echo "checking for shadow password routines" 1>&4
  2727. +echo "checking for shadow password routines" 1>&6
  2728.  # Needed on SysV for shadow passwords.
  2729. -echo $ac_n "checking for -lsec""... $ac_c" 1>&4
  2730. -if eval "test \"`echo '${'ac_cv_lib_sec'+set}'`\" = set"; then
  2731. -  echo $ac_n "(cached) $ac_c" 1>&4
  2732. +echo $ac_n "checking for -lsec""... $ac_c" 1>&6
  2733. +ac_lib_var=`echo sec'_'main | tr './+\055' '__p_'`
  2734. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2735. +  echo $ac_n "(cached) $ac_c" 1>&6
  2736.  else
  2737.    ac_save_LIBS="$LIBS"
  2738. -LIBS="$LIBS -lsec "
  2739. +LIBS="-lsec  $LIBS"
  2740.  cat > conftest.$ac_ext <<EOF
  2741. -#line 2489 "configure"
  2742. +#line 2730 "configure"
  2743.  #include "confdefs.h"
  2744.  
  2745. -int main() { return 0; }
  2746. +int main() { t(); return 0; }
  2747.  int t() {
  2748.  main()
  2749.  ; return 0; }
  2750.  EOF
  2751. -if eval $ac_link; then
  2752. +if { (eval echo configure:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2753.    rm -rf conftest*
  2754. -  eval "ac_cv_lib_sec=yes"
  2755. +  eval "ac_cv_lib_$ac_lib_var=yes"
  2756.  else
  2757.    rm -rf conftest*
  2758. -  eval "ac_cv_lib_sec=no"
  2759. +  eval "ac_cv_lib_$ac_lib_var=no"
  2760.  fi
  2761.  rm -f conftest*
  2762.  LIBS="$ac_save_LIBS"
  2763.  
  2764.  fi
  2765. -if eval "test \"`echo '$ac_cv_lib_'sec`\" = yes"; then
  2766. -  echo "$ac_t""yes" 1>&4
  2767. -    ac_tr_lib=HAVE_LIB`echo sec | tr '[a-z]' '[A-Z]'`
  2768. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2769. +  echo "$ac_t""yes" 1>&6
  2770. +    ac_tr_lib=HAVE_LIB`echo sec | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  2771.    cat >> confdefs.h <<EOF
  2772.  #define $ac_tr_lib 1
  2773.  EOF
  2774.  
  2775. -  LIBS="$LIBS -lsec"
  2776. +  LIBS="-lsec $LIBS"
  2777.  
  2778.  else
  2779. -  echo "$ac_t""no" 1>&4
  2780. +  echo "$ac_t""no" 1>&6
  2781.  fi
  2782.  
  2783.  
  2784.  # Needed on Linux for shadow passwords.
  2785. -echo $ac_n "checking for -lshadow""... $ac_c" 1>&4
  2786. -if eval "test \"`echo '${'ac_cv_lib_shadow'+set}'`\" = set"; then
  2787. -  echo $ac_n "(cached) $ac_c" 1>&4
  2788. +echo $ac_n "checking for -lshadow""... $ac_c" 1>&6
  2789. +ac_lib_var=`echo shadow'_'main | tr './+\055' '__p_'`
  2790. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2791. +  echo $ac_n "(cached) $ac_c" 1>&6
  2792.  else
  2793.    ac_save_LIBS="$LIBS"
  2794. -LIBS="$LIBS -lshadow "
  2795. +LIBS="-lshadow  $LIBS"
  2796.  cat > conftest.$ac_ext <<EOF
  2797. -#line 2530 "configure"
  2798. +#line 2772 "configure"
  2799.  #include "confdefs.h"
  2800.  
  2801. -int main() { return 0; }
  2802. +int main() { t(); return 0; }
  2803.  int t() {
  2804.  main()
  2805.  ; return 0; }
  2806.  EOF
  2807. -if eval $ac_link; then
  2808. +if { (eval echo configure:2780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2809.    rm -rf conftest*
  2810. -  eval "ac_cv_lib_shadow=yes"
  2811. +  eval "ac_cv_lib_$ac_lib_var=yes"
  2812.  else
  2813.    rm -rf conftest*
  2814. -  eval "ac_cv_lib_shadow=no"
  2815. +  eval "ac_cv_lib_$ac_lib_var=no"
  2816.  fi
  2817.  rm -f conftest*
  2818.  LIBS="$ac_save_LIBS"
  2819.  
  2820.  fi
  2821. -if eval "test \"`echo '$ac_cv_lib_'shadow`\" = yes"; then
  2822. -  echo "$ac_t""yes" 1>&4
  2823. -    ac_tr_lib=HAVE_LIB`echo shadow | tr '[a-z]' '[A-Z]'`
  2824. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2825. +  echo "$ac_t""yes" 1>&6
  2826. +    ac_tr_lib=HAVE_LIB`echo shadow | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  2827.    cat >> confdefs.h <<EOF
  2828.  #define $ac_tr_lib 1
  2829.  EOF
  2830.  
  2831. -  LIBS="$LIBS -lshadow"
  2832. +  LIBS="-lshadow $LIBS"
  2833.  
  2834.  else
  2835. -  echo "$ac_t""no" 1>&4
  2836. +  echo "$ac_t""no" 1>&6
  2837.  fi
  2838.  
  2839.  
  2840.  cat > conftest.$ac_ext <<EOF
  2841. -#line 2564 "configure"
  2842. +#line 2806 "configure"
  2843.  #include "confdefs.h"
  2844.  #include <shadow.h>
  2845.  EOF
  2846.  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2847.    egrep "sp_pwdp" >/dev/null 2>&1; then
  2848.    rm -rf conftest*
  2849. -  echo $ac_n "checking for getspnam""... $ac_c" 1>&4
  2850. -if eval "test \"`echo '${'ac_cv_func_getspnam'+set}'`\" = set"; then
  2851. -  echo $ac_n "(cached) $ac_c" 1>&4
  2852. +  echo $ac_n "checking for getspnam""... $ac_c" 1>&6
  2853. +if eval "test \"`echo '$''{'ac_cv_func_getspnam'+set}'`\" = set"; then
  2854. +  echo $ac_n "(cached) $ac_c" 1>&6
  2855.  else
  2856.    cat > conftest.$ac_ext <<EOF
  2857. -#line 2576 "configure"
  2858. +#line 2818 "configure"
  2859.  #include "confdefs.h"
  2860. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2861. -int main() { return 0; }
  2862. +/* System header to define __stub macros and hopefully few prototypes,
  2863. +    which can conflict with char getspnam(); below.  */
  2864. +#include <assert.h>
  2865. +/* Override any gcc2 internal prototype to avoid an error.  */
  2866. +/* We use char because int might match the return type of a gcc2
  2867. +    builtin and then its argument prototype would still apply.  */
  2868. +char getspnam();
  2869. +
  2870. +int main() { t(); return 0; }
  2871.  int t() {
  2872.  
  2873.  /* The GNU C library defines this for functions which it implements
  2874. @@ -2584,13 +2833,12 @@ int t() {
  2875.  #if defined (__stub_getspnam) || defined (__stub___getspnam)
  2876.  choke me
  2877.  #else
  2878. -/* Override any gcc2 internal prototype to avoid an error.  */
  2879. -char getspnam(); getspnam();
  2880. +getspnam();
  2881.  #endif
  2882.  
  2883.  ; return 0; }
  2884.  EOF
  2885. -if eval $ac_link; then
  2886. +if { (eval echo configure:2842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2887.    rm -rf conftest*
  2888.    eval "ac_cv_func_getspnam=yes"
  2889.  else
  2890. @@ -2601,13 +2849,13 @@ rm -f conftest*
  2891.  
  2892.  fi
  2893.  if eval "test \"`echo '$ac_cv_func_'getspnam`\" = yes"; then
  2894. -  echo "$ac_t""yes" 1>&4
  2895. +  echo "$ac_t""yes" 1>&6
  2896.    cat >> confdefs.h <<\EOF
  2897.  #define HAVE_SHADOW_H 1
  2898.  EOF
  2899.  
  2900.  else
  2901. -  echo "$ac_t""no" 1>&4
  2902. +  echo "$ac_t""no" 1>&6
  2903.  fi
  2904.  
  2905.  fi
  2906. @@ -2616,15 +2864,22 @@ rm -f conftest*
  2907.  
  2908.  for ac_func in crypt
  2909.  do
  2910. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  2911. -if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2912. -  echo $ac_n "(cached) $ac_c" 1>&4
  2913. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2914. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2915. +  echo $ac_n "(cached) $ac_c" 1>&6
  2916.  else
  2917.    cat > conftest.$ac_ext <<EOF
  2918. -#line 2625 "configure"
  2919. +#line 2873 "configure"
  2920.  #include "confdefs.h"
  2921. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2922. -int main() { return 0; }
  2923. +/* System header to define __stub macros and hopefully few prototypes,
  2924. +    which can conflict with char $ac_func(); below.  */
  2925. +#include <assert.h>
  2926. +/* Override any gcc2 internal prototype to avoid an error.  */
  2927. +/* We use char because int might match the return type of a gcc2
  2928. +    builtin and then its argument prototype would still apply.  */
  2929. +char $ac_func();
  2930. +
  2931. +int main() { t(); return 0; }
  2932.  int t() {
  2933.  
  2934.  /* The GNU C library defines this for functions which it implements
  2935. @@ -2633,13 +2888,12 @@ int t() {
  2936.  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2937.  choke me
  2938.  #else
  2939. -/* Override any gcc2 internal prototype to avoid an error.  */
  2940. -char $ac_func(); $ac_func();
  2941. +$ac_func();
  2942.  #endif
  2943.  
  2944.  ; return 0; }
  2945.  EOF
  2946. -if eval $ac_link; then
  2947. +if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2948.    rm -rf conftest*
  2949.    eval "ac_cv_func_$ac_func=yes"
  2950.  else
  2951. @@ -2650,88 +2904,98 @@ rm -f conftest*
  2952.  
  2953.  fi
  2954.  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2955. -  echo "$ac_t""yes" 1>&4
  2956. -    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  2957. +  echo "$ac_t""yes" 1>&6
  2958. +    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2959.    cat >> confdefs.h <<EOF
  2960.  #define $ac_tr_func 1
  2961.  EOF
  2962.   
  2963.  else
  2964. -  echo "$ac_t""no" 1>&4
  2965. +  echo "$ac_t""no" 1>&6
  2966.  fi
  2967.  done
  2968.  
  2969.  if test $ac_cv_func_crypt = no; then
  2970.    # SCO-ODT-3.0 is reported to need this library for crypt.  
  2971. -  echo $ac_n "checking for -lufc""... $ac_c" 1>&4
  2972. -if eval "test \"`echo '${'ac_cv_lib_ufc'+set}'`\" = set"; then
  2973. -  echo $ac_n "(cached) $ac_c" 1>&4
  2974. +  echo $ac_n "checking for -lufc""... $ac_c" 1>&6
  2975. +ac_lib_var=`echo ufc'_'crypt | tr './+\055' '__p_'`
  2976. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2977. +  echo $ac_n "(cached) $ac_c" 1>&6
  2978.  else
  2979.    ac_save_LIBS="$LIBS"
  2980. -LIBS="$LIBS -lufc "
  2981. +LIBS="-lufc  $LIBS"
  2982.  cat > conftest.$ac_ext <<EOF
  2983. -#line 2674 "configure"
  2984. +#line 2929 "configure"
  2985.  #include "confdefs.h"
  2986. +/* Override any gcc2 internal prototype to avoid an error.  */
  2987. +/* We use char because int might match the return type of a gcc2
  2988. +    builtin and then its argument prototype would still apply.  */
  2989. +char crypt();
  2990.  
  2991. -int main() { return 0; }
  2992. +int main() { t(); return 0; }
  2993.  int t() {
  2994.  crypt()
  2995.  ; return 0; }
  2996.  EOF
  2997. -if eval $ac_link; then
  2998. +if { (eval echo configure:2941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2999.    rm -rf conftest*
  3000. -  eval "ac_cv_lib_ufc=yes"
  3001. +  eval "ac_cv_lib_$ac_lib_var=yes"
  3002.  else
  3003.    rm -rf conftest*
  3004. -  eval "ac_cv_lib_ufc=no"
  3005. +  eval "ac_cv_lib_$ac_lib_var=no"
  3006.  fi
  3007.  rm -f conftest*
  3008.  LIBS="$ac_save_LIBS"
  3009.  
  3010.  fi
  3011. -if eval "test \"`echo '$ac_cv_lib_'ufc`\" = yes"; then
  3012. -  echo "$ac_t""yes" 1>&4
  3013. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3014. +  echo "$ac_t""yes" 1>&6
  3015.    LIBS="$LIBS -lufc"
  3016.  else
  3017. -  echo "$ac_t""no" 1>&4
  3018. +  echo "$ac_t""no" 1>&6
  3019.  # NetBSD needs this library for crypt.  
  3020. -    echo $ac_n "checking for -lcrypt""... $ac_c" 1>&4
  3021. -if eval "test \"`echo '${'ac_cv_lib_crypt'+set}'`\" = set"; then
  3022. -  echo $ac_n "(cached) $ac_c" 1>&4
  3023. +    echo $ac_n "checking for -lcrypt""... $ac_c" 1>&6
  3024. +ac_lib_var=`echo crypt'_'crypt | tr './+\055' '__p_'`
  3025. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3026. +  echo $ac_n "(cached) $ac_c" 1>&6
  3027.  else
  3028.    ac_save_LIBS="$LIBS"
  3029. -LIBS="$LIBS -lcrypt "
  3030. +LIBS="-lcrypt  $LIBS"
  3031.  cat > conftest.$ac_ext <<EOF
  3032. -#line 2706 "configure"
  3033. +#line 2966 "configure"
  3034.  #include "confdefs.h"
  3035. +/* Override any gcc2 internal prototype to avoid an error.  */
  3036. +/* We use char because int might match the return type of a gcc2
  3037. +    builtin and then its argument prototype would still apply.  */
  3038. +char crypt();
  3039.  
  3040. -int main() { return 0; }
  3041. +int main() { t(); return 0; }
  3042.  int t() {
  3043.  crypt()
  3044.  ; return 0; }
  3045.  EOF
  3046. -if eval $ac_link; then
  3047. +if { (eval echo configure:2978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3048.    rm -rf conftest*
  3049. -  eval "ac_cv_lib_crypt=yes"
  3050. +  eval "ac_cv_lib_$ac_lib_var=yes"
  3051.  else
  3052.    rm -rf conftest*
  3053. -  eval "ac_cv_lib_crypt=no"
  3054. +  eval "ac_cv_lib_$ac_lib_var=no"
  3055.  fi
  3056.  rm -f conftest*
  3057.  LIBS="$ac_save_LIBS"
  3058.  
  3059.  fi
  3060. -if eval "test \"`echo '$ac_cv_lib_'crypt`\" = yes"; then
  3061. -  echo "$ac_t""yes" 1>&4
  3062. -    ac_tr_lib=HAVE_LIB`echo crypt | tr '[a-z]' '[A-Z]'`
  3063. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3064. +  echo "$ac_t""yes" 1>&6
  3065. +    ac_tr_lib=HAVE_LIB`echo crypt | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  3066.    cat >> confdefs.h <<EOF
  3067.  #define $ac_tr_lib 1
  3068.  EOF
  3069.  
  3070. -  LIBS="$LIBS -lcrypt"
  3071. +  LIBS="-lcrypt $LIBS"
  3072.  
  3073.  else
  3074. -  echo "$ac_t""no" 1>&4
  3075. +  echo "$ac_t""no" 1>&6
  3076.  fi
  3077.  
  3078.  fi
  3079. @@ -2739,9 +3003,7 @@ fi
  3080.  fi
  3081.  
  3082.  trap '' 1 2 15
  3083. -if test -w $cache_file; then
  3084. -echo "updating cache $cache_file"
  3085. -cat > $cache_file <<\EOF
  3086. +cat > confcache <<\EOF
  3087.  # This file is a shell script that caches the results of configure
  3088.  # tests run on this system so they can be shared between configure
  3089.  # scripts and configure runs.  It is not useful on other systems.
  3090. @@ -2757,17 +3019,26 @@ cat > $cache_file <<\EOF
  3091.  # --recheck option to rerun configure.
  3092.  #
  3093.  EOF
  3094. -# Ultrix sh set writes to stderr and can't be redirected directly.
  3095. +# Ultrix sh set writes to stderr and can't be redirected directly,
  3096. +# and sets the high bit in the cache file unless we assign to the vars.
  3097.  (set) 2>&1 |
  3098. -  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
  3099. -  >> $cache_file
  3100. +  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  3101. +  >> confcache
  3102. +if cmp -s $cache_file confcache; then
  3103. +  :
  3104.  else
  3105. -echo "not updating unwritable cache $cache_file"
  3106. +  if test -w $cache_file; then
  3107. +    echo "updating cache $cache_file"
  3108. +    cat confcache > $cache_file
  3109. +  else
  3110. +    echo "not updating unwritable cache $cache_file"
  3111. +  fi
  3112.  fi
  3113. +rm -f confcache
  3114.  
  3115. -trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  3116. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3117.  
  3118. -test "x$prefix" = xNONE && prefix=/usr/local
  3119. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3120.  # Let make expand exec_prefix.
  3121.  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3122.  
  3123. @@ -2786,9 +3057,11 @@ DEFS=-DHAVE_CONFIG_H
  3124.  : ${CONFIG_STATUS=./config.status}
  3125.  
  3126.  echo creating $CONFIG_STATUS
  3127. -rm -f $CONFIG_STATUS
  3128. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  3129. +# being executed, so just move it out of the way instead.
  3130. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  3131.  cat > $CONFIG_STATUS <<EOF
  3132. -#!/bin/sh
  3133. +#! /bin/sh
  3134.  # Generated automatically by configure.
  3135.  # Run this file to recreate the current configuration.
  3136.  # This directory was configured as follows,
  3137. @@ -2807,7 +3080,7 @@ do
  3138.      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3139.      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3140.    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3141. -    echo "$CONFIG_STATUS generated by autoconf version 1.120"
  3142. +    echo "$CONFIG_STATUS generated by autoconf version 2.10"
  3143.      exit 0 ;;
  3144.    -help | --help | --hel | --he | --h)
  3145.      echo "\$ac_cs_usage"; exit 0 ;;
  3146. @@ -2818,11 +3091,13 @@ done
  3147.  ac_given_srcdir=$srcdir
  3148.  ac_given_INSTALL="$INSTALL"
  3149.  
  3150. -trap 'rm -fr Makefile doc/Makefile lib/Makefile man/Makefile src/Makefile config.h conftest*; exit 1' 1 2 15
  3151. +trap 'rm -fr `echo "Makefile doc/Makefile lib/Makefile man/Makefile src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3152. +EOF
  3153. +cat >> $CONFIG_STATUS <<EOF
  3154.  
  3155. -# Protect against being on the right side of a sed subst in config.status. 
  3156. -sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  3157. - s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  3158. +# Protect against being on the right side of a sed subst in config.status.
  3159. +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  3160. + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  3161.  $ac_vpsub
  3162.  $extrasub
  3163.  s%@CFLAGS@%$CFLAGS%g
  3164. @@ -2834,6 +3109,21 @@ s%@LIBS@%$LIBS%g
  3165.  s%@exec_prefix@%$exec_prefix%g
  3166.  s%@prefix@%$prefix%g
  3167.  s%@program_transform_name@%$program_transform_name%g
  3168. +s%@bindir@%$bindir%g
  3169. +s%@sbindir@%$sbindir%g
  3170. +s%@libexecdir@%$libexecdir%g
  3171. +s%@datadir@%$datadir%g
  3172. +s%@sysconfdir@%$sysconfdir%g
  3173. +s%@sharedstatedir@%$sharedstatedir%g
  3174. +s%@localstatedir@%$localstatedir%g
  3175. +s%@libdir@%$libdir%g
  3176. +s%@includedir@%$includedir%g
  3177. +s%@oldincludedir@%$oldincludedir%g
  3178. +s%@infodir@%$infodir%g
  3179. +s%@guidedir@%$guidedir%g
  3180. +s%@psdir@%$psdir%g
  3181. +s%@dvidir@%$dvidir%g
  3182. +s%@mandir@%$mandir%g
  3183.  s%@PROGS@%$PROGS%g
  3184.  s%@MAN@%$MAN%g
  3185.  s%@SET_MAKE@%$SET_MAKE%g
  3186. @@ -2868,7 +3158,7 @@ for ac_file in .. $CONFIG_FILES; do if t
  3187.    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3188.      # The file is in a subdirectory.
  3189.      test ! -d "$ac_dir" && mkdir "$ac_dir"
  3190. -    ac_dir_suffix="/$ac_dir"
  3191. +    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3192.      # A "../" for each directory in $ac_dir_suffix.
  3193.      ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3194.    else
  3195. @@ -2943,13 +3233,13 @@ EOF
  3196.  
  3197.  # Transform confdefs.h into a sed script conftest.vals that substitutes
  3198.  # the proper values into config.h.in to produce config.h.  And first:
  3199. -# Protect against being on the right side of a sed subst in config.status. 
  3200. +# Protect against being on the right side of a sed subst in config.status.
  3201.  # Protect against being in an unquoted here document in config.status.
  3202.  rm -f conftest.vals
  3203.  cat > conftest.hdr <<\EOF
  3204.  s/[\\&%]/\\&/g
  3205.  s%[\\$`]%\\&%g
  3206. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3207. +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3208.  s%ac_d%ac_u%gp
  3209.  s%ac_u%ac_e%gp
  3210.  EOF
  3211. @@ -2997,6 +3287,12 @@ cat >> $CONFIG_STATUS <<\EOF
  3212.      echo "$ac_file is unchanged"
  3213.      rm -f conftest.h
  3214.    else
  3215. +    # Remove last slash and all that follows it.  Not all systems have dirname.
  3216. +      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3217. +      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3218. +      # The file is in a subdirectory.
  3219. +      test ! -d "$ac_dir" && mkdir "$ac_dir"
  3220. +    fi
  3221.      rm -f $ac_file
  3222.      mv conftest.h $ac_file
  3223.    fi
  3224. @@ -3007,5 +3303,6 @@ date > stamp-h
  3225.  exit 0
  3226.  EOF
  3227.  chmod +x $CONFIG_STATUS
  3228. +rm -f CONFIG.STATUS.old
  3229.  rm -fr confdefs* $ac_clean_files
  3230. -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
  3231. +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  3232. diff -rup --new-file baseline/fsf/sh-utils/doc/Makefile.in amiga/fsf/sh-utils/doc/Makefile.in
  3233. --- baseline/fsf/sh-utils/doc/Makefile.in    Thu Nov  3 23:52:12 1994
  3234. +++ amiga/fsf/sh-utils/doc/Makefile.in    Sat Sep 28 00:00:00 1996
  3235. @@ -26,16 +26,19 @@ MAKEINFO = makeinfo
  3236.  TEXI2DVI = texi2dvi
  3237.  
  3238.  prefix = @prefix@
  3239. -infodir = $(prefix)/info
  3240. +infodir = @infodir@
  3241. +guidedir = @guidedir@
  3242.  
  3243.  .SUFFIXES:
  3244.  
  3245.  DISTFILES = Makefile.in sh-utils.texi texinfo.tex sh-utils.info version.texi
  3246.  
  3247. -all: sh-utils.info
  3248. +all: sh-utils.info sh-utils.guide
  3249.  
  3250.  info: sh-utils.info
  3251.  
  3252. +guide: sh-utils.guide
  3253. +
  3254.  version.texi: ../src/version.c
  3255.      sed -e '/version_string/!d' \
  3256.          -e 's/[^"]*"\([^"]*\)".*/@set VERSION \1/' \
  3257. @@ -47,21 +50,27 @@ version.texi: ../src/version.c
  3258.  sh-utils.info: sh-utils.texi version.texi
  3259.      $(MAKEINFO) -I$(srcdir) --no-split sh-utils.texi --output=$@
  3260.  
  3261. +sh-utils.guide: sh-utils.texi version.texi
  3262. +    $(MAKEINFO) -I$(srcdir) --amiga-39 $(srcdir)/sh-utils.texi -o $@
  3263. +
  3264.  dvi: sh-utils.dvi
  3265.  
  3266.  sh-utils.dvi: sh-utils.texi version.texi
  3267.      $(TEXI2DVI) $(srcdir)/sh-utils.texi
  3268.  
  3269.  installdirs:
  3270. -    $(srcdir)/../mkinstalldirs $(infodir)
  3271. +    $(srcdir)/../mkinstalldirs $(infodir) $(guidedir)
  3272.  
  3273.  install: all installdirs
  3274. -    cd $(srcdir) && for file in sh-utils.info; do \
  3275. +    for file in sh-utils.info*; do \
  3276.        $(INSTALL_DATA) $$file $(infodir)/$$file; \
  3277.      done
  3278. +    for file in sh-utils.guide; do \
  3279. +      $(INSTALL_DATA) $$file $(guidedir)/$$file; \
  3280. +    done
  3281.  
  3282.  uninstall:
  3283. -    rm -f $(infodir)/sh-utils.info
  3284. +    rm -f $(infodir)/sh-utils.info* $(guidedir)/sh-utils.guide
  3285.  
  3286.  check:
  3287.  
  3288. @@ -77,7 +86,7 @@ distclean: clean
  3289.      rm -f Makefile
  3290.  
  3291.  realclean: distclean
  3292. -    rm -f sh-utils.info version.texi
  3293. +    rm -f sh-utils.info sh-utils.guide version.texi
  3294.  
  3295.  distdir = ../`cat ../distname`/$(subdir)
  3296.  dist: $(DISTFILES)
  3297. diff -rup --new-file baseline/fsf/sh-utils/doc/sh-utils.info amiga/fsf/sh-utils/doc/sh-utils.info
  3298. --- baseline/fsf/sh-utils/doc/sh-utils.info    Sat Nov  5 06:31:47 1994
  3299. +++ amiga/fsf/sh-utils/doc/sh-utils.info    Wed Dec 31 17:00:00 1969
  3300. @@ -1,2760 +0,0 @@
  3301. -This is Info file sh-utils.info, produced by Makeinfo-1.55 from the
  3302. -input file sh-utils.texi.
  3303. -
  3304. -START-INFO-DIR-ENTRY
  3305. -* Shell utilities: (sh-utils).        GNU shell utilities.
  3306. -* basename: (sh-utils)basename invocation.    Strip directory and suffix.
  3307. -* date: (sh-utils)date invocation.        Print/set system date and time.
  3308. -* dirname: (sh-utils)dirname invocation.    Strip non-directory suffix.
  3309. -* echo: (sh-utils)echo invocation.        Print a line of text.
  3310. -* env: (sh-utils)env invocation.        Modify the environment.
  3311. -* expr: (sh-utils)expr invocation.        Evaluate expressions.
  3312. -* false: (sh-utils)false invocation.        Do nothing, unsuccessfully.
  3313. -* groups: (sh-utils)groups invocation.        Print group names a user is in.
  3314. -* hostname: (sh-utils)hostname invocation.    Print or set system name.
  3315. -* id: (sh-utils)id invocation.            Print real/effective uid/gid.
  3316. -* logname: (sh-utils)logname invocation.    Print current login name.
  3317. -* nice: (sh-utils)nice invocation.        Modify scheduling priority.
  3318. -* pathchk: (sh-utils)pathchk invocation.    Check file name portability.
  3319. -* printenv: (sh-utils)printenv invocation.    Print environment variables.
  3320. -* printf: (sh-utils)printf invocation.            Format and print data.
  3321. -* pwd: (sh-utils)pwd invocation.            Print working directory.
  3322. -* sleep: (sh-utils)sleep invocation.            Delay for a specified time.
  3323. -* stty: (sh-utils)stty invocation.            Print/change terminal settings.
  3324. -* su: (sh-utils)su invocation.                    Modify user and group id.
  3325. -* tee: (sh-utils)tee invocation.            Redirect to multiple files.
  3326. -* test: (sh-utils)test invocation.            File/string tests.
  3327. -* true: (sh-utils)true invocation.            Do nothing, successfully.
  3328. -* tty: (sh-utils)tty invocation.            Print terminal name.
  3329. -* uname: (sh-utils)uname invocation.            Print system information.
  3330. -* users: (sh-utils)users invocation.            Print current user names.
  3331. -* who: (sh-utils)who invocation.            Print who is logged in.
  3332. -* whoami: (sh-utils)whoami invocation.        Print effective user id.
  3333. -* yes: (sh-utils)yes invocation.        Print a string indefinitely.
  3334. -END-INFO-DIR-ENTRY
  3335. -
  3336. -   This file documents the GNU shell utilities.
  3337. -
  3338. -   Copyright (C) 1994 Free Software Foundation, Inc.
  3339. -
  3340. -   Permission is granted to make and distribute verbatim copies of this
  3341. -manual provided the copyright notice and this permission notice are
  3342. -preserved on all copies.
  3343. -
  3344. -   Permission is granted to copy and distribute modified versions of
  3345. -this manual under the conditions for verbatim copying, provided that
  3346. -the entire resulting derived work is distributed under the terms of a
  3347. -permission notice identical to this one.
  3348. -
  3349. -   Permission is granted to copy and distribute translations of this
  3350. -manual into another language, under the above conditions for modified
  3351. -versions, except that this permission notice may be stated in a
  3352. -translation approved by the Foundation.
  3353. -
  3354. -
  3355. -File: sh-utils.info,  Node: Top,  Next: Introduction,  Prev: (DIR),  Up: (DIR)
  3356. -
  3357. -GNU shell utilities
  3358. -*******************
  3359. -
  3360. -   This manual minimally documents version GNU sh-utils 1.12 of the GNU
  3361. -shell utilities.
  3362. -
  3363. -* Menu:
  3364. -
  3365. -* Introduction::        Caveats, overview, and authors.
  3366. -* Common options::              Common options.
  3367. -* Printing text::               echo printf yes
  3368. -* Conditions::                  false true test expr
  3369. -* Redirection::                 tee
  3370. -* File name manipulation::      dirname basename pathchk
  3371. -* Working context information:: pwd stty printenv tty
  3372. -* User information::            id logname whoami groups users who
  3373. -* System context::              date uname hostname
  3374. -* Modified command invocation:: env nice nohup su
  3375. -* Delaying::                    sleep
  3376. -* Index::                       General index.
  3377. -
  3378. -
  3379. -File: sh-utils.info,  Node: Introduction,  Next: Common options,  Prev: Top,  Up: Top
  3380. -
  3381. -Introduction
  3382. -************
  3383. -
  3384. -   First of all, this manual is incomplete.  The `stty' section, in
  3385. -particular, needs substantial reorganization and additional explanatory
  3386. -text before it will be up to the standard of other GNU manuals.
  3387. -Explanatory text in general is lacking; the manual presently assumes you
  3388. -pretty much know what to do, and just need to be reminded of how.  Thus,
  3389. -if you are interested, please get involved in improving this manual.
  3390. -The entire GNU community will benefit.
  3391. -
  3392. -   Some of these programs are useful only when writing shell scripts;
  3393. -utilities like these are, in fact, the "language" of shell scripts (to
  3394. -a great extent).  Others are occasionally useful interactively.
  3395. -
  3396. -   The GNU shell utilities are mostly compatible with the POSIX.2
  3397. -standard.
  3398. -
  3399. -   Please report bugs to `bug-gnu-utils@prep.ai.mit.edu'.  Remember to
  3400. -include the version number, machine architecture, input files, and any
  3401. -other information needed to reproduce the bug.  *Note Bugs: (gcc)Bugs.
  3402. -
  3403. -   This manual is based on the Unix man pages in the distribution, which
  3404. -were originally written by David MacKenzie and updated by Jim Meyering.
  3405. -Franc,ois Pinard did the initial conversion to Texinfo format.  Karl
  3406. -Berry did the indexing, some reorganization, and editing of the results.
  3407. -Richard Stallman contributed his usual invaluable insights to the
  3408. -overall process.
  3409. -
  3410. -
  3411. -File: sh-utils.info,  Node: Common options,  Next: Printing text,  Prev: Introduction,  Up: Top
  3412. -
  3413. -Common options
  3414. -**************
  3415. -
  3416. -   Certain options are available in all these programs.  Rather than
  3417. -writing identical descriptions for each of the programs, they are
  3418. -described here.  (In fact, every GNU program accepts (or should accept)
  3419. -these options.)
  3420. -
  3421. -   Many of these programs take arbitrary strings as arguments.  In those
  3422. -cases, `--help' and `--version' are taken as these options only if
  3423. -there is one and exactly one command line argument.
  3424. -
  3425. -`--help'
  3426. -     Print a usage message listing all available options, then exit
  3427. -     successfully.
  3428. -
  3429. -`--version'
  3430. -     Print the version number, then exit successfully.
  3431. -
  3432. -
  3433. -File: sh-utils.info,  Node: Printing text,  Next: Conditions,  Prev: Common options,  Up: Top
  3434. -
  3435. -Printing text
  3436. -*************
  3437. -
  3438. -   This section describes commands that display text strings.
  3439. -
  3440. -* Menu:
  3441. -
  3442. -* echo invocation::             Print a line of text.
  3443. -* printf invocation::           Format and print data.
  3444. -* yes invocation::              Print a string until interrupted.
  3445. -
  3446. -
  3447. -File: sh-utils.info,  Node: echo invocation,  Next: printf invocation,  Up: Printing text
  3448. -
  3449. -`echo': Print a line of text
  3450. -============================
  3451. -
  3452. -   Synopsis:
  3453. -
  3454. -     echo [ OPTION ]... [ STRING ]...
  3455. -
  3456. -   `echo' writes each given STRING to standard output, with a space
  3457. -between each and a newline after the last one.
  3458. -
  3459. -   The program accepts the following options.  Also see *Note Common
  3460. -options::.
  3461. -
  3462. -`-n'
  3463. -     Do not output the trailing newline.
  3464. -
  3465. -`-e'
  3466. -     Enable interpretation of the following backslash-escaped
  3467. -     characters in each STRING:
  3468. -
  3469. -    `\a'
  3470. -          alert (bell)
  3471. -
  3472. -    `\b'
  3473. -          backspace
  3474. -
  3475. -    `\c'
  3476. -          suppress trailing newline
  3477. -
  3478. -    `\f'
  3479. -          form feed
  3480. -
  3481. -    `\n'
  3482. -          new line
  3483. -
  3484. -    `\r'
  3485. -          carriage return
  3486. -
  3487. -    `\t'
  3488. -          horizontal tab
  3489. -
  3490. -    `\v'
  3491. -          vertical tab
  3492. -
  3493. -    `\\'
  3494. -          backslash
  3495. -
  3496. -    `\NNN'
  3497. -          the character whose ASCII code is NNN (octal); if NNN is not
  3498. -          a valid octal number, it is printed literally.
  3499. -
  3500. -
  3501. -File: sh-utils.info,  Node: printf invocation,  Next: yes invocation,  Prev: echo invocation,  Up: Printing text
  3502. -
  3503. -`printf': Format and print data
  3504. -===============================
  3505. -
  3506. -   Synopsis:
  3507. -
  3508. -     printf FORMAT [ ARGUMENT ]...
  3509. -
  3510. -   `printf' prints the FORMAT string, interpreting `%' directives and
  3511. -`\' escapes in the same way as the C `printf' function.  The FORMAT
  3512. -argument is re-used as necessary to convert all of the given ARGUMENTs.
  3513. -
  3514. -   `printf' has one additional directive, `%b', which prints its
  3515. -argument string with `\' escapes interpreted in the same way as in the
  3516. -FORMAT string.
  3517. -
  3518. -   `printf' interprets `\0ooo' in FORMAT as an octal number (if OOO is
  3519. -0 to 3 octal digits) specifying a character to print, and `\xhhh' as a
  3520. -hexadecimal number (if HHH is 1 to 3 hex digits) specifying a character
  3521. -to print.
  3522. -
  3523. -   An additional escape, `\c', causes `printf' to produce no further
  3524. -output.
  3525. -
  3526. -   The only options are a lone `--help' or `--version'.  *Note Common
  3527. -options::.
  3528. -
  3529. -
  3530. -File: sh-utils.info,  Node: yes invocation,  Prev: printf invocation,  Up: Printing text
  3531. -
  3532. -`yes': Print a string until interrupted
  3533. -=======================================
  3534. -
  3535. -   `yes' prints the command line arguments, separated by spaces and
  3536. -followed by a newline, forever until it is killed.  If no arguments are
  3537. -given, it prints `y' followed by a newline forever until killed.
  3538. -
  3539. -   The only options are a lone `--help' or `--version'.  *Note Common
  3540. -options::.
  3541. -
  3542. -
  3543. -File: sh-utils.info,  Node: Conditions,  Next: Redirection,  Prev: Printing text,  Up: Top
  3544. -
  3545. -Conditions
  3546. -**********
  3547. -
  3548. -   This section describes commands that are primarily useful for their
  3549. -exit status, rather than their output.  Thus, they are often used as the
  3550. -condition of shell `if' statements, or as the last command in a
  3551. -pipeline.
  3552. -
  3553. -* Menu:
  3554. -
  3555. -* false invocation::            Do nothing, unsuccessfully.
  3556. -* true invocation::             Do nothing, successfully.
  3557. -* test invocation::             Check file types and compare values.
  3558. -* expr invocation::             Evaluate expressions.
  3559. -
  3560. -
  3561. -File: sh-utils.info,  Node: false invocation,  Next: true invocation,  Up: Conditions
  3562. -
  3563. -`false': Do nothing, unsuccessfully
  3564. -===================================
  3565. -
  3566. -   `false' does nothing except return an exit status of 1, meaning
  3567. -"failure".  It can be used as a place holder in shell scripts where an
  3568. -unsuccessful command is needed.
  3569. -
  3570. -   Any arguments are ignored, except for a lone `--help' or `--version'
  3571. -(*note Common options::.).
  3572. -
  3573. -
  3574. -File: sh-utils.info,  Node: true invocation,  Next: test invocation,  Prev: false invocation,  Up: Conditions
  3575. -
  3576. -`true': Do nothing, successfully
  3577. -================================
  3578. -
  3579. -   `true' does nothing except return an exit status of 0, meaning
  3580. -"success".  It can be used as a place holder in shell scripts where a
  3581. -successful command is needed, although the shell built-in command `:'
  3582. -(colon) may be faster.
  3583. -
  3584. -   Any arguments are ignored, except for a lone `--help' or `--version'
  3585. -(*note Common options::.).
  3586. -
  3587. -
  3588. -File: sh-utils.info,  Node: test invocation,  Next: expr invocation,  Prev: true invocation,  Up: Conditions
  3589. -
  3590. -`test': Check file types and compare values
  3591. -===========================================
  3592. -
  3593. -   `test' returns a status of 0 (true) or 1 (false) depending on the
  3594. -evaluation of the conditional expression EXPR.  Each part of the
  3595. -expression must be a separate argument.
  3596. -
  3597. -   `test' has file status checks, string operators, and numeric
  3598. -comparison operators.
  3599. -
  3600. -   Because most shells have a built-in command by the same name, using
  3601. -the unadorned command name in a script or interactively may get you
  3602. -different functionality than that described here.
  3603. -
  3604. -   Besides the options below, `test' accepts a lone `--help' or
  3605. -`--version'.  *Note Common options::.  A single non-option argument is
  3606. -also allowed: `test' returns true if the argument is not null.
  3607. -
  3608. -* Menu:
  3609. -
  3610. -* File type tests::             -[bcdfhLpSt]
  3611. -* Access permission tests::     -[gkruwxOG]
  3612. -* File characteristics tests::  -e -s -nt -ot -ef
  3613. -* String tests::                -z -n = !=
  3614. -* Numeric tests::               -eq -ne -lt -le -gt -ge
  3615. -* Connectives for test::        ! -a -o
  3616. -
  3617. -
  3618. -File: sh-utils.info,  Node: File type tests,  Next: Access permission tests,  Up: test invocation
  3619. -
  3620. -File type tests
  3621. ----------------
  3622. -
  3623. -   These options test for particular types of files.  (Everything's a
  3624. -file, but not all files are the same!)
  3625. -
  3626. -`-b FILE'
  3627. -     True if FILE exists and is a block special device.
  3628. -
  3629. -`-c FILE'
  3630. -     True if FILE exists and is a character special device.
  3631. -
  3632. -`-d FILE'
  3633. -     True if FILE exists and is a directory.
  3634. -
  3635. -`-f FILE'
  3636. -     True if FILE exists and is a regular file.
  3637. -
  3638. -`-h FILE'
  3639. -`-L FILE'
  3640. -     True if FILE exists and is a symbolic link.
  3641. -
  3642. -`-p FILE'
  3643. -     True if FILE exists and is a named pipe.
  3644. -
  3645. -`-S FILE'
  3646. -     True if FILE exists and is a socket.
  3647. -
  3648. -`-t [ FD ]'
  3649. -     True if FD is opened on a terminal.  If FD is omitted, it defaults
  3650. -     to 1 (standard output).
  3651. -
  3652. -
  3653. -File: sh-utils.info,  Node: Access permission tests,  Next: File characteristics tests,  Prev: File type tests,  Up: test invocation
  3654. -
  3655. -Access permission tests
  3656. ------------------------
  3657. -
  3658. -   These options test for particular access permissions.
  3659. -
  3660. -`-g FILE'
  3661. -     True if FILE exists and has its set-group-id bit set.
  3662. -
  3663. -`-k FILE'
  3664. -     True if FILE has its "sticky" bit set.
  3665. -
  3666. -`-r FILE'
  3667. -     True if FILE exists and is readable.
  3668. -
  3669. -`-u FILE'
  3670. -     True if FILE exists and has its set-user-id bit set.
  3671. -
  3672. -`-w FILE'
  3673. -     True if FILE exists and is writable.
  3674. -
  3675. -`-x FILE'
  3676. -     True if FILE exists and is executable.
  3677. -
  3678. -`-O FILE'
  3679. -     True if FILE exists and is owned by the current effective user id.
  3680. -
  3681. -`-G FILE'
  3682. -     True if FILE exists and is owned by the current effective group id.
  3683. -
  3684. -
  3685. -File: sh-utils.info,  Node: File characteristics tests,  Next: String tests,  Prev: Access permission tests,  Up: test invocation
  3686. -
  3687. -File characteristics tests
  3688. ---------------------------
  3689. -
  3690. -   These options test other file characteristics.
  3691. -
  3692. -`-e FILE'
  3693. -     True if FILE exists.
  3694. -
  3695. -`-s FILE'
  3696. -     True if FILE exists and has a size greater than zero.
  3697. -
  3698. -`FILE1 -nt FILE2'
  3699. -     True if FILE1 is newer (according to modification date) than FILE2.
  3700. -
  3701. -`FILE1 -ot FILE2'
  3702. -     True if FILE1 is older (according to modification date) than FILE2.
  3703. -
  3704. -`FILE1 -ef FILE2'
  3705. -     True if FILE1 and FILE2 have the same device and inode numbers,
  3706. -     i.e., if they are hard links to each other.
  3707. -
  3708. -
  3709. -File: sh-utils.info,  Node: String tests,  Next: Numeric tests,  Prev: File characteristics tests,  Up: test invocation
  3710. -
  3711. -String tests
  3712. -------------
  3713. -
  3714. -   These options test string characteristics.  Strings are not quoted
  3715. -for `test', though you may need to quote them to protect characters
  3716. -with special meaning to the shell, e.g., spaces.
  3717. -
  3718. -`-z STRING'
  3719. -     True if the length of STRING is zero.
  3720. -
  3721. -`-n STRING'
  3722. -`STRING'
  3723. -     True if the length of STRING is non-zero.
  3724. -
  3725. -`STRING1 = STRING2'
  3726. -     True if the strings are equal.
  3727. -
  3728. -`STRING1 != STRING2'
  3729. -     True if the strings are not equal.
  3730. -
  3731. -
  3732. -File: sh-utils.info,  Node: Numeric tests,  Next: Connectives for test,  Prev: String tests,  Up: test invocation
  3733. -
  3734. -Numeric tests
  3735. --------------
  3736. -
  3737. -   Numeric relationals.  The arguments must be entirely numeric
  3738. -(possibly negative), or the special expression `-l STRING', which
  3739. -evaluates to the length of STRING.
  3740. -
  3741. -`ARG1 -eq ARG2'
  3742. -`ARG1 -ne ARG2'
  3743. -`ARG1 -lt ARG2'
  3744. -`ARG1 -le ARG2'
  3745. -`ARG1 -gt ARG2'
  3746. -`ARG1 -ge ARG2'
  3747. -     These arithmetic binary operators return true if ARG1 is equal,
  3748. -     not-equal, less-than, less-than-or-equal, greater-than, or
  3749. -     greater-than-or-equal than ARG2, respectively.
  3750. -
  3751. -   For example:
  3752. -
  3753. -     test -1 -gt -2 && echo yes
  3754. -     => yes
  3755. -     test -l abc -gt 1 && echo yes
  3756. -     => yes
  3757. -     test 0x100 -eq 1
  3758. -     error--> test: integer expression expected before -eq
  3759. -
  3760. -
  3761. -File: sh-utils.info,  Node: Connectives for test,  Prev: Numeric tests,  Up: test invocation
  3762. -
  3763. -Connectives for `test'
  3764. -----------------------
  3765. -
  3766. -   The usual logical connectives.
  3767. -
  3768. -`! EXPR'
  3769. -     True if EXPR is false.
  3770. -
  3771. -`EXPR1 -a EXPR2'
  3772. -     True if both EXPR1 and EXPR2 are true.
  3773. -
  3774. -`EXPR1 -o EXPR2'
  3775. -     True if either EXPR1 or EXPR2 is true.
  3776. -
  3777. -
  3778. -File: sh-utils.info,  Node: expr invocation,  Prev: test invocation,  Up: Conditions
  3779. -
  3780. -`expr': Evaluate expressions
  3781. -============================
  3782. -
  3783. -   `expr' evaluates an expression and writes the result on standard
  3784. -output.  Each token of the expression must be a separate argument.
  3785. -
  3786. -   Operands are either numbers or strings.  `expr' coerces anything
  3787. -appearing in an operand position to an integer or a string depending on
  3788. -the operation being applied to it.
  3789. -
  3790. -   Strings are not quoted for `expr', though you may need to quote them
  3791. -to protect characters with special meaning to the shell, e.g., spaces.
  3792. -
  3793. -   Operators may given as infix symbols or prefix keywords.  Parentheses
  3794. -may be used for grouping in the usual manner (you must quote parentheses
  3795. -to avoid the shell evaluating them, however).
  3796. -
  3797. -   Exit status:
  3798. -
  3799. -     0 if the expression is neither null nor 0,
  3800. -     1 if the expression is null or 0,
  3801. -     2 for invalid expressions.
  3802. -
  3803. -* Menu:
  3804. -
  3805. -* Relations for expr::          | & < <= = == != >= >
  3806. -* Numeric expressions::         + - * / %
  3807. -* String expressions::          : match substr index length
  3808. -* Examples of expr::            Examples.
  3809. -
  3810. -
  3811. -File: sh-utils.info,  Node: Relations for expr,  Next: Numeric expressions,  Up: expr invocation
  3812. -
  3813. -Relations for `expr'
  3814. ---------------------
  3815. -
  3816. -   The usual logical connectives and relations, in order of precedence.
  3817. -
  3818. -`|'
  3819. -     Yields its first argument if it is neither null nor 0, otherwise
  3820. -     its second argument.
  3821. -
  3822. -`&'
  3823. -     Yields its first argument if neither argument is null or 0,
  3824. -     otherwise 0.
  3825. -
  3826. -`< <= = == != >= >'
  3827. -     Compare the arguments and return 1 if the relation is true, 0
  3828. -     otherwise.  `==' is a synonym for `='.  `expr' first tries to
  3829. -     coerce both arguments to numbers and do a numeric comparison; if
  3830. -     either coercion fails, it does a lexicographic comparison.
  3831. -
  3832. -
  3833. -File: sh-utils.info,  Node: Numeric expressions,  Next: String expressions,  Prev: Relations for expr,  Up: expr invocation
  3834. -
  3835. -Numeric expressions
  3836. --------------------
  3837. -
  3838. -   Numeric operators, in order of increasing precedence.  The
  3839. -connectives (previous section) have higher precedence, the string
  3840. -operators (following section) have lower.
  3841. -
  3842. -`+ -'
  3843. -     Addition and subtraction.  Both arguments are coerced to numbers;
  3844. -     an error occurs if this cannot be done.
  3845. -
  3846. -`* / %'
  3847. -     Multiplication, division, remainder.  Both arguments are coerced to
  3848. -     numbers; an error occurs if this cannot be done.
  3849. -
  3850. -
  3851. -File: sh-utils.info,  Node: String expressions,  Next: Examples of expr,  Prev: Numeric expressions,  Up: expr invocation
  3852. -
  3853. -String expressions
  3854. -------------------
  3855. -
  3856. -   String operators.  These have lowest precedence.
  3857. -
  3858. -`STRING : REGEX'
  3859. -     Perform pattern matching.  The arguments are coerced to strings
  3860. -     and the second is considered to be a (basic, a la `grep') regular
  3861. -     expression, with a `^' implicitly prepended.  The first argument is
  3862. -     then matched against this regular expression.
  3863. -
  3864. -     If the match succeeds and REGEX uses `\(' and `\)', the `:'
  3865. -     expression returns the part of STRING that matched the
  3866. -     subexpression; otherwise, it returns the number of characters
  3867. -     matched.
  3868. -
  3869. -     If the match fails, the `:' operator returns the null string if
  3870. -     `\(' and `\)' are used in REGEX, otherwise 0.
  3871. -
  3872. -     Only the first `\( ... \)' pair is relevant to the return value;
  3873. -     additional pairs are meaningful only for grouping the regular
  3874. -     expression operators.
  3875. -
  3876. -     *Note Regular Expression Library: (regex)Top, for details of
  3877. -     regular expression syntax.
  3878. -
  3879. -`match STRING REGEX'
  3880. -     An alternative way to do pattern matching.  This is the same as
  3881. -     `STRING : REGEX'.
  3882. -
  3883. -`substr STRING POSITION LENGTH'
  3884. -     Returns the substring of STRING beginning at POSITION with length
  3885. -     at most LENGTH.  If either POSITION or LENGTH is negative or
  3886. -     non-numeric, returns the null string.
  3887. -
  3888. -`index STRING CHARACTER-CLASS'
  3889. -     Returns the first position in STRING where the first character in
  3890. -     CHARSET was found.  If no character in CHARSET is found in STRING,
  3891. -     return 0.
  3892. -
  3893. -`length STRING'
  3894. -     Returns the length of STRING.
  3895. -
  3896. -   The keywords cannot be used as strings.
  3897. -
  3898. -
  3899. -File: sh-utils.info,  Node: Examples of expr,  Prev: String expressions,  Up: expr invocation
  3900. -
  3901. -Examples of `expr'
  3902. -------------------
  3903. -
  3904. -   Here are a few examples, including quoting for shell metacharacters.
  3905. -
  3906. -   To add 1 to the shell variable `foo', in Bourne-compatible shells:
  3907. -     foo=`expr $foo + 1`
  3908. -
  3909. -   To print the non-directory part of the file name stored in `$fname',
  3910. -which need not contain a `/'.
  3911. -     expr $fname : '.*/\(^.*\)' '^|' $fname
  3912. -
  3913. -     expr abc : 'a\(.\)c'
  3914. -     => b
  3915. -     expr index abcdef cz
  3916. -     => 3
  3917. -     expr index index a
  3918. -     error--> expr: syntax error
  3919. -
  3920. -
  3921. -File: sh-utils.info,  Node: Redirection,  Next: File name manipulation,  Prev: Conditions,  Up: Top
  3922. -
  3923. -Redirection
  3924. -***********
  3925. -
  3926. -   Unix shells commonly provide several forms of "redirection"--ways to
  3927. -change the input source or output destination of a command.  But one
  3928. -useful redirection is performed by a separate command, not by the shell;
  3929. -it's described here.
  3930. -
  3931. -* Menu:
  3932. -
  3933. -* tee invocation::              Redirect output to multiple files.
  3934. -
  3935. -
  3936. -File: sh-utils.info,  Node: tee invocation,  Up: Redirection
  3937. -
  3938. -`tee': Redirect output to multiple files
  3939. -========================================
  3940. -
  3941. -   The `tee' command copies standard input to standard output and also
  3942. -to any files given as arguments.  This is useful when you want not only
  3943. -to send some data down a pipe, but also to save a copy.
  3944. -
  3945. -   Synopsis:
  3946. -
  3947. -     tee [ OPTION ]... [ FILE ]...
  3948. -
  3949. -   If a file being written to does not already exist, it is created.
  3950. -If a file being written to already exists, the data it previously
  3951. -contained is overwritten unless the `-a' option is used.
  3952. -
  3953. -   The program accepts the following options.  Also see *Note Common
  3954. -options::.
  3955. -
  3956. -`-a'
  3957. -`--append'
  3958. -     Append standard input to the given files rather than overwriting
  3959. -     them.
  3960. -
  3961. -`-i'
  3962. -`--ignore-interrupts'
  3963. -     Ignore interrupt signals.
  3964. -
  3965. -
  3966. -File: sh-utils.info,  Node: File name manipulation,  Next: Working context information,  Prev: Redirection,  Up: Top
  3967. -
  3968. -File name manipulation
  3969. -**********************
  3970. -
  3971. -   This section describes commands that manipulate file names.
  3972. -
  3973. -* Menu:
  3974. -
  3975. -* basename invocation::         Strip directory and suffix from a file name.
  3976. -* dirname invocation::          Strip non-directory suffix from a file name.
  3977. -* pathchk invocation::          Check file name portability.
  3978. -
  3979. -
  3980. -File: sh-utils.info,  Node: basename invocation,  Next: dirname invocation,  Up: File name manipulation
  3981. -
  3982. -`basename': Strip directory and suffix from a file name
  3983. -=======================================================
  3984. -
  3985. -   Synopsis:
  3986. -
  3987. -     basename NAME [ SUFFIX ]
  3988. -
  3989. -   The `basename' command removes any leading directory components from
  3990. -NAME.  If SUFFIX is specified and is identical to the end of NAME, it
  3991. -is removed from NAME as well.  `basename' prints the result on standard
  3992. -output.
  3993. -
  3994. -   The only options are `--help' and `--version'.  *Note Common
  3995. -options::.
  3996. -
  3997. -
  3998. -File: sh-utils.info,  Node: dirname invocation,  Next: pathchk invocation,  Prev: basename invocation,  Up: File name manipulation
  3999. -
  4000. -`dirname': Strip non-directory suffix from a file name
  4001. -======================================================
  4002. -
  4003. -   Synopsis:
  4004. -
  4005. -     dirname NAME
  4006. -
  4007. -   `dirname' prints all but the final slash-delimited component of
  4008. -NAME.  If NAME is a single component, `dirname' prints `.' (meaning the
  4009. -current directory).
  4010. -
  4011. -   The only options are `--help' and `--version'.  *Note Common
  4012. -options::.
  4013. -
  4014. -
  4015. -File: sh-utils.info,  Node: pathchk invocation,  Prev: dirname invocation,  Up: File name manipulation
  4016. -
  4017. -`pathchk': Check file name portability
  4018. -======================================
  4019. -
  4020. -   Synopsis:
  4021. -
  4022. -     pathchk [ OPTION ]... NAME...
  4023. -
  4024. -   For each NAME, `pathchk' prints a message if any of these conditions
  4025. -is true:
  4026. -  1. one of the existing directories in NAME does not have search
  4027. -     (execute) permission,
  4028. -
  4029. -  2. the length of NAME is larger than its filesystem's maximum file
  4030. -     name length,
  4031. -
  4032. -  3. the length of one component of NAME, corresponding to an existing
  4033. -     directory name, is larger than its filesystem's maximum length for
  4034. -     a file name component.
  4035. -
  4036. -   The program accepts the following option.  Also see *Note Common
  4037. -options::.
  4038. -
  4039. -`-p'
  4040. -`--portability'
  4041. -     Instead of performing length checks on the underlying filesystem,
  4042. -     test the length of each file name and its components against the
  4043. -     POSIX.1 minimum limits for portability.  Also check that the file
  4044. -     name contains no characters not in the portable file name
  4045. -     character set.
  4046. -
  4047. -   Exit status:
  4048. -
  4049. -     0 if all specified file names passed all of the tests,
  4050. -     1 otherwise.
  4051. -
  4052. -
  4053. -File: sh-utils.info,  Node: Working context information,  Next: User information,  Prev: File name manipulation,  Up: Top
  4054. -
  4055. -Working context information
  4056. -***************************
  4057. -
  4058. -   This section describes commands that display or alter the context in
  4059. -which you are working: the current directory, the terminal settings, and
  4060. -so forth.  See also the user-related commands in the next section.
  4061. -
  4062. -* Menu:
  4063. -
  4064. -* pwd invocation::              Print working directory.
  4065. -* stty invocation::             Print or change terminal characteristics.
  4066. -* printenv invocation::         Print environment variables.
  4067. -* tty invocation::              Print file name of terminal on standard input.
  4068. -
  4069. -
  4070. -File: sh-utils.info,  Node: pwd invocation,  Next: stty invocation,  Up: Working context information
  4071. -
  4072. -`pwd': Print working directory
  4073. -==============================
  4074. -
  4075. -   `pwd' prints the fully resolved name of the current directory.  That
  4076. -is, all components of the printed name will be actual directory
  4077. -names--none will be symbolic links.
  4078. -
  4079. -   Because most shells have a built-in command by the same name, using
  4080. -the unadorned command name in a script or interactively may get you
  4081. -different functionality than that described here.
  4082. -
  4083. -   The only options are a lone `--help' or `--version'.  *Note Common
  4084. -options::.
  4085. -
  4086. -
  4087. -File: sh-utils.info,  Node: stty invocation,  Next: printenv invocation,  Prev: pwd invocation,  Up: Working context information
  4088. -
  4089. -`stty': Print or change terminal characteristics
  4090. -================================================
  4091. -
  4092. -   If given no arguments, `stty' prints the baud rate, line discipline
  4093. -number (on systems that support it), and line settings that have been
  4094. -changed from the values set by `stty sane'.  Mode reading and setting
  4095. -are performed on the tty line connected to standard input.
  4096. -
  4097. -   `stty' accepts many non-option arguments that change aspects of the
  4098. -terminal line operation, as described below.
  4099. -
  4100. -   Synopses:
  4101. -
  4102. -     stty [ SETTING ]...
  4103. -     stty [ OPTION ]
  4104. -
  4105. -   The program accepts the following options.  Also see *Note Common
  4106. -options::.
  4107. -
  4108. -`-a'
  4109. -`--all'
  4110. -     Print all current settings in human-readable form.
  4111. -
  4112. -`-g'
  4113. -`--save'
  4114. -     Print all current settings in a form that can be used as an
  4115. -     argument to another `stty' command to restore the current settings.
  4116. -
  4117. -   Many settings can be turned off by preceding them with a `-'.  Such
  4118. -arguments are marked below with "May be negated" in their description.
  4119. -The descriptions themselves refer to the positive case, that is, when
  4120. -*not* negated (unless stated otherwise, of course).
  4121. -
  4122. -   Some settings are not available on all POSIX systems, since they use
  4123. -extensions.  Such arguments are marked below with "Non-POSIX" in their
  4124. -description.  On non-POSIX systems, those or other settings also may not
  4125. -be available, but it's not feasible to document all the variations: just
  4126. -try it and see.
  4127. -
  4128. -* Menu:
  4129. -
  4130. -* Control::                     Control settings
  4131. -* Input::                       Input settings
  4132. -* Output::                      Output settings
  4133. -* Local::                       Local settings
  4134. -* Combination::                 Combination settings
  4135. -* Characters::                  Special characters
  4136. -* Special::                     Special settings
  4137. -
  4138. -
  4139. -File: sh-utils.info,  Node: Control,  Next: Input,  Up: stty invocation
  4140. -
  4141. -Control settings
  4142. -----------------
  4143. -
  4144. -   Control settings:
  4145. -
  4146. -`parenb'
  4147. -     Generate parity bit in output and expect parity bit in input.  May
  4148. -     be negated.
  4149. -
  4150. -`parodd'
  4151. -     Set odd parity (even if negated).  May be negated.
  4152. -
  4153. -`cs5'
  4154. -`cs6'
  4155. -`cs7'
  4156. -`cs8'
  4157. -     Set character size to 5, 6, 7, or 8 bits.
  4158. -
  4159. -`hup'
  4160. -`hupcl'
  4161. -     Send a hangup signal when the last process closes the tty.  May be
  4162. -     negated.
  4163. -
  4164. -`cstopb'
  4165. -     Use two stop bits per character (one if negated).  May be negated.
  4166. -
  4167. -`cread'
  4168. -     Allow input to be received.  May be negated.
  4169. -
  4170. -`clocal'
  4171. -     Disable modem control signals.  May be negated.
  4172. -
  4173. -`crtscts'
  4174. -     Enable RTS/CTS flow control.  Non-POSIX.  May be negated.
  4175. -
  4176. -
  4177. -File: sh-utils.info,  Node: Input,  Next: Output,  Prev: Control,  Up: stty invocation
  4178. -
  4179. -Input settings
  4180. ---------------
  4181. -
  4182. -`ignbrk'
  4183. -     Ignore breaks.  May be negated.
  4184. -
  4185. -`brkint'
  4186. -     Make breaks cause an interrupt signal.  May be negated.
  4187. -
  4188. -`ignpar'
  4189. -     Ignore parity errors.  May be negated.
  4190. -
  4191. -`parmrk'
  4192. -     Mark parity errors (with a 255-0-character sequence).  May be
  4193. -     negated.
  4194. -
  4195. -`inpck'
  4196. -     Enable input parity checking.  May be negated.
  4197. -
  4198. -`istrip'
  4199. -     Clear high (8th) bit of input characters.  May be negated.
  4200. -
  4201. -`inlcr'
  4202. -     Translate newline to carriage return.  May be negated.
  4203. -
  4204. -`igncr'
  4205. -     Ignore carriage return.  May be negated.
  4206. -
  4207. -`icrnl'
  4208. -     Translate carriage return to newline.  May be negated.
  4209. -
  4210. -`ixon'
  4211. -     Enable XON/XOFF flow control (that is, CTRL-s/CTRL-Q).  May be
  4212. -     negated.
  4213. -
  4214. -`ixoff'
  4215. -`tandem'
  4216. -     Enable sending of `stop' character when the system input buffer is
  4217. -     almost full, and `start' character when it becomes almost empty
  4218. -     again.  May be negated.
  4219. -
  4220. -`iuclc'
  4221. -     Translate uppercase characters to lowercase.  Non-POSIX.  May be
  4222. -     negated.
  4223. -
  4224. -`ixany'
  4225. -     Allow any character to restart output (only the start character if
  4226. -     negated).  Non-POSIX.  May be negated.
  4227. -
  4228. -`imaxbel'
  4229. -     Enable beeping and not flushing input buffer if a character arrives
  4230. -     when the input buffer is full.  Non-POSIX.  May be negated.
  4231. -
  4232. -
  4233. -File: sh-utils.info,  Node: Output,  Next: Local,  Prev: Input,  Up: stty invocation
  4234. -
  4235. -Output settings
  4236. ----------------
  4237. -
  4238. -   These arguments specify output-related operations.
  4239. -
  4240. -`opost'
  4241. -     Postprocess output.  May be negated.
  4242. -
  4243. -`olcuc'
  4244. -     Translate lowercase characters to uppercase.  Non-POSIX.  May be
  4245. -     negated.
  4246. -
  4247. -`ocrnl'
  4248. -     Translate carriage return to newline.  Non-POSIX.  May be negated.
  4249. -
  4250. -`onlcr'
  4251. -     Translate newline to carriage return-newline.  Non-POSIX.  May be
  4252. -     negated.
  4253. -
  4254. -`onocr'
  4255. -     Do not print carriage returns in the first column.  Non-POSIX.
  4256. -     May be negated.
  4257. -
  4258. -`onlret'
  4259. -     Newline performs a carriage return.  Non-POSIX.  May be negated.
  4260. -
  4261. -`ofill'
  4262. -     Use fill (padding) characters instead of timing for delays.
  4263. -     Non-POSIX.  May be negated.
  4264. -
  4265. -`ofdel'
  4266. -     Use delete characters for fill instead of null characters.
  4267. -     Non-POSIX.  May be negated.
  4268. -
  4269. -`nl1'
  4270. -`nl0'
  4271. -     Newline delay style.  Non-POSIX.
  4272. -
  4273. -`cr3'
  4274. -`cr2'
  4275. -`cr1'
  4276. -`cr0'
  4277. -     Carriage return delay style.  Non-POSIX.
  4278. -
  4279. -`tab3'
  4280. -`tab2'
  4281. -`tab1'
  4282. -`tab0'
  4283. -     Horizontal tab delay style.  Non-POSIX.
  4284. -
  4285. -`bs1'
  4286. -`bs0'
  4287. -     Backspace delay style.  Non-POSIX.
  4288. -
  4289. -`vt1'
  4290. -`vt0'
  4291. -     Vertical tab delay style.  Non-POSIX.
  4292. -
  4293. -`ff1'
  4294. -`ff0'
  4295. -     Form feed delay style.  Non-POSIX.
  4296. -
  4297. -
  4298. -File: sh-utils.info,  Node: Local,  Next: Combination,  Prev: Output,  Up: stty invocation
  4299. -
  4300. -Local settings
  4301. ---------------
  4302. -
  4303. -`isig'
  4304. -     Enable `interrupt', `quit', and `suspend' special characters.  May
  4305. -     be negated.
  4306. -
  4307. -`icanon'
  4308. -     Enable `erase', `kill', `werase', and `rprnt' special characters.
  4309. -     May be negated.
  4310. -
  4311. -`iexten'
  4312. -     Enable non-POSIX special characters.  May be negated.
  4313. -
  4314. -`echo'
  4315. -     Echo input characters.  May be negated.
  4316. -
  4317. -`echoe'
  4318. -`crterase'
  4319. -     Echo `erase' characters as backspace-space-backspace.  May be
  4320. -     negated.
  4321. -
  4322. -`echok'
  4323. -     Echo a newline after a `kill' character.  May be negated.
  4324. -
  4325. -`echonl'
  4326. -     Echo newline even if not echoing other characters.  May be negated.
  4327. -
  4328. -`noflsh'
  4329. -     Disable flushing after `interrupt' and `quit' special characters.
  4330. -     May be negated.
  4331. -
  4332. -`xcase'
  4333. -     Enable input and output of uppercase characters by preceding their
  4334. -     lowercase equivalents with `\', when `icanon' is set.  Non-POSIX.
  4335. -     May be negated.
  4336. -
  4337. -`tostop'
  4338. -     Stop background jobs that try to write to the terminal.  Non-POSIX.
  4339. -     May be negated.
  4340. -
  4341. -`echoprt'
  4342. -`prterase'
  4343. -     Echo erased characters backward, between `\' and `/'.  Non-POSIX.
  4344. -     May be negated.
  4345. -
  4346. -`echoctl'
  4347. -`ctlecho'
  4348. -     Echo control characters in hat notation (`^C') instead of
  4349. -     literally.  Non-POSIX.  May be negated.
  4350. -
  4351. -`echoke'
  4352. -`crtkill'
  4353. -     Echo the `kill' special character by erasing each character on the
  4354. -     line as indicated by the `echoprt' and `echoe' settings, instead
  4355. -     of by the `echoctl' and `echok' settings.  Non-POSIX.  May be
  4356. -     negated.
  4357. -
  4358. -
  4359. -File: sh-utils.info,  Node: Combination,  Next: Characters,  Prev: Local,  Up: stty invocation
  4360. -
  4361. -Combination settings
  4362. ---------------------
  4363. -
  4364. -   Combination settings:
  4365. -
  4366. -`evenp'
  4367. -`parity'
  4368. -     Same as `parenb -parodd cs7'.  May be negated.  If negated, same
  4369. -     as `-parenb cs8'.
  4370. -
  4371. -`oddp'
  4372. -     Same as `parenb parodd cs7'.  May be negated.  If negated, same as
  4373. -     `-parenb cs8'.
  4374. -
  4375. -`nl'
  4376. -     Same as `-icrnl -onlcr'.  May be negated.  If negated, same as
  4377. -     `icrnl -inlcr -igncr onlcr -ocrnl -onlret'.
  4378. -
  4379. -`ek'
  4380. -     Reset the `erase' and `kill' special characters to their default
  4381. -     values.
  4382. -
  4383. -`sane'
  4384. -     Same as:
  4385. -          cread -ignbrk brkint -inlcr -igncr icrnl -ixoff -iuclc -ixany
  4386. -          imaxbel opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel
  4387. -          nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl
  4388. -          -noflsh -xcase -tostop -echoprt echoctl echoke
  4389. -      and also sets all special characters to their default values.
  4390. -
  4391. -`cooked'
  4392. -     Same as `brkint ignpar istrip icrnl ixon opost isig icanon', plus
  4393. -     sets the `eof' and `eol' characters to their default values if
  4394. -     they are the same as the `min' and `time' characters.  May be
  4395. -     negated.  If negated, same as `raw'.
  4396. -
  4397. -`raw'
  4398. -     Same as:
  4399. -          -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr
  4400. -          -icrnl -ixon -ixoff -iuclc -ixany -imaxbel -opost -isig -icanon
  4401. -          -xcase min 1 time 0
  4402. -      May be negated.  If negated, same as `cooked'.
  4403. -
  4404. -`cbreak'
  4405. -     Same as `-icanon'.  May be negated.  If negated, same as `icanon'.
  4406. -
  4407. -`pass8'
  4408. -     Same as `-parenb -istrip cs8'.  May be negated.  If negated, same
  4409. -     as `parenb istrip cs7'.
  4410. -
  4411. -`litout'
  4412. -     Same as `-parenb -istrip -opost cs8'.  May be negated.  If
  4413. -     negated, same as `parenb istrip opost cs7'.
  4414. -
  4415. -`decctlq'
  4416. -     Same as `-ixany'.  Non-POSIX.  May be negated.
  4417. -
  4418. -`tabs'
  4419. -     Same as `tab0'.  Non-POSIX.  May be negated.  If negated, same as
  4420. -     `tab3'.
  4421. -
  4422. -`lcase'
  4423. -`LCASE'
  4424. -     Same as `xcase iuclc olcuc'.  Non-POSIX.  May be negated.
  4425. -
  4426. -`crt'
  4427. -     Same as `echoe echoctl echoke'.
  4428. -
  4429. -`dec'
  4430. -     Same as `echoe echoctl echoke -ixany intr ^C erase ^? kill C-u'.
  4431. -
  4432. -
  4433. -File: sh-utils.info,  Node: Characters,  Next: Special,  Prev: Combination,  Up: stty invocation
  4434. -
  4435. -Special characters
  4436. -------------------
  4437. -
  4438. -   The special characters' default values vary from system to system.
  4439. -They are set with the syntax `name value', where the names are listed
  4440. -below and the value can be given either literally, in hat notation
  4441. -(`^C'), or as an integer which may start with `0x' to indicate
  4442. -hexadecimal, `0' to indicate octal, or any other digit to indicate
  4443. -decimal.
  4444. -
  4445. -   For GNU stty, giving a value of `^-' or `undef' disables that
  4446. -special character.  (This is incompatible with Ultrix `stty', which
  4447. -uses  a value of `u' to disable a special character.  GNU `stty' treats
  4448. -a value `u' like any other, namely to set that special character to u.)
  4449. -
  4450. -`intr'
  4451. -     Send an interrupt signal.
  4452. -
  4453. -`quit'
  4454. -     Send a quit signal.
  4455. -
  4456. -`erase'
  4457. -     Erase the last character typed.
  4458. -
  4459. -`kill'
  4460. -     Erase the current line.
  4461. -
  4462. -`eof'
  4463. -     Send an end of file (terminate the input).
  4464. -
  4465. -`eol'
  4466. -     End the line.
  4467. -
  4468. -`eol2'
  4469. -     Alternate character to end the line.  Non-POSIX.
  4470. -
  4471. -`swtch'
  4472. -     Switch to a different shell layer.  Non-POSIX.
  4473. -
  4474. -`start'
  4475. -     Restart the output after stopping it.
  4476. -
  4477. -`stop'
  4478. -     Stop the output.
  4479. -
  4480. -`susp'
  4481. -     Send a terminal stop signal.
  4482. -
  4483. -`dsusp'
  4484. -     Send a terminal stop signal after flushing the input.  Non-POSIX.
  4485. -
  4486. -`rprnt'
  4487. -     Redraw the current line.  Non-POSIX.
  4488. -
  4489. -`werase'
  4490. -     Erase the last word typed.  Non-POSIX.
  4491. -
  4492. -`lnext'
  4493. -     Enter the next character typed literally, even if it is a special
  4494. -     character.  Non-POSIX.
  4495. -
  4496. -
  4497. -File: sh-utils.info,  Node: Special,  Prev: Characters,  Up: stty invocation
  4498. -
  4499. -Special settings
  4500. -----------------
  4501. -
  4502. -`min N'
  4503. -     Set the minimum number of characters that will satisfy a read until
  4504. -     the time value has expired, when `-icanon' is set.
  4505. -
  4506. -`time N'
  4507. -     Set the number of tenths of a second before reads time out if the
  4508. -     min number of characters have not been read, when `-icanon' is set.
  4509. -
  4510. -`ispeed N'
  4511. -     Set the input speed to N.
  4512. -
  4513. -`ospeed N'
  4514. -     Set the output speed to N.
  4515. -
  4516. -`rows N'
  4517. -     Tell the tty kernel driver that the terminal has N rows.
  4518. -     Non-POSIX.
  4519. -
  4520. -`cols N'
  4521. -`columns N'
  4522. -     Tell the kernel that the terminal has N columns.  Non-POSIX.
  4523. -
  4524. -`size'
  4525. -     Print the number of rows and columns that the kernel thinks the
  4526. -     terminal has.  (Systems that don't support rows and cols in the
  4527. -     kernel typically use the environment variables `LINES' and
  4528. -     `COLUMNS' instead; however, GNU `stty' does not know anything
  4529. -     about them.) Non-POSIX.
  4530. -
  4531. -`line N'
  4532. -     Use line discipline N.  Non-POSIX.
  4533. -
  4534. -`speed'
  4535. -     Print the terminal speed.
  4536. -
  4537. -`N'
  4538. -     Set the input and output speeds to N.  N can be one of: 0 50 75
  4539. -     110 134 134.5 150 200 300 600 1200 1800 2400 4800 9600 19200 38400
  4540. -     `exta' `extb'.  `exta' is the same as 19200; `extb' is the same as
  4541. -     38400.  0 hangs up the line if `-clocal' is set.
  4542. -
  4543. -
  4544. -File: sh-utils.info,  Node: printenv invocation,  Next: tty invocation,  Prev: stty invocation,  Up: Working context information
  4545. -
  4546. -`printenv': Print all or some environment variables
  4547. -===================================================
  4548. -
  4549. -   Synopsis:
  4550. -
  4551. -     printenv [ OPTION ] [ VARIABLE ]...
  4552. -
  4553. -   If no VARIABLEs are specified, `printenv' prints the value of every
  4554. -environment variable.  Otherwise, it prints the value of each VARIABLE
  4555. -that is set, and nothing for those that are not set.
  4556. -
  4557. -   The only options are a lone `--help' or `--version'.  *Note Common
  4558. -options::.
  4559. -
  4560. -   Exit status:
  4561. -
  4562. -     0 if all variables specified were found
  4563. -     1 if at least one specified variable was not found
  4564. -     2 if a write error occurred
  4565. -
  4566. -
  4567. -File: sh-utils.info,  Node: tty invocation,  Prev: printenv invocation,  Up: Working context information
  4568. -
  4569. -`tty': Print file name of terminal on standard input
  4570. -====================================================
  4571. -
  4572. -   `tty' prints the file name of the tty connected to its standard
  4573. -input.  It prints `not a tty' if standard input is not a tty.
  4574. -
  4575. -   Synopsis:
  4576. -
  4577. -     tty [ OPTION ]...
  4578. -
  4579. -   The program accepts the following option.  Also see *Note Common
  4580. -options::.
  4581. -
  4582. -`-s'
  4583. -`--silent'
  4584. -`--quiet'
  4585. -     Print nothing; only return an exit status.
  4586. -
  4587. -   Exit status:
  4588. -
  4589. -     0 if standard input is a tty
  4590. -     1 if standard input is not a tty
  4591. -     2 if given incorrect arguments
  4592. -     3 if a write error occurs
  4593. -
  4594. -
  4595. -File: sh-utils.info,  Node: User information,  Next: System context,  Prev: Working context information,  Up: Top
  4596. -
  4597. -User information
  4598. -****************
  4599. -
  4600. -   This section describes commands that print user-related information:
  4601. -logins, groups, and so forth.
  4602. -
  4603. -* Menu:
  4604. -
  4605. -* id invocation::               Print real and effective uid and gid.
  4606. -* logname invocation::          Print current login name.
  4607. -* whoami invocation::           Print effective user id.
  4608. -* groups invocation::           Print group names a user is in.
  4609. -* users invocation::            Print login names of users currently logged in.
  4610. -* who invocation::              Print who is currently logged in.
  4611. -
  4612. -
  4613. -File: sh-utils.info,  Node: id invocation,  Next: logname invocation,  Up: User information
  4614. -
  4615. -`id': Print real and effective uid and gid
  4616. -==========================================
  4617. -
  4618. -`id' prints information about the given user, or the process running it
  4619. -if no user is specified.
  4620. -
  4621. -   Synopsis:
  4622. -
  4623. -     id [ OPTION ]... [ USERNAME ]
  4624. -
  4625. -   By default, it prints the real user id, real group id, effective
  4626. -user id if different from the real user id, effective group id if
  4627. -different from the real group id, and supplemental group ids.
  4628. -
  4629. -   Each of these numeric values is preceded by an identifying string and
  4630. -followed by the corresponding user or group name in parentheses.
  4631. -
  4632. -   The options cause `id' to print only part of the above information.
  4633. -Also see *Note Common options::.
  4634. -
  4635. -`-g'
  4636. -`--group'
  4637. -     Print only the group id.
  4638. -
  4639. -`-G'
  4640. -`--groups'
  4641. -     Print only the supplementary groups.
  4642. -
  4643. -`-n'
  4644. -`--name'
  4645. -     Print the user or group name instead of the ID number.  Requires
  4646. -     `-u', `-g', or `-G'.
  4647. -
  4648. -`-r'
  4649. -`--real'
  4650. -     Print the real, instead of effective, user or group id.  Requires
  4651. -     `-u', `-g', or `-G'.
  4652. -
  4653. -`-u'
  4654. -`--user'
  4655. -     Print only the user id.
  4656. -
  4657. -
  4658. -File: sh-utils.info,  Node: logname invocation,  Next: whoami invocation,  Prev: id invocation,  Up: User information
  4659. -
  4660. -`logname': Print current login name
  4661. -===================================
  4662. -
  4663. -   `logname' prints the calling user's name, as found in the file
  4664. -`/etc/utmp', and exits with a status of 0.  If there is no `/etc/utmp'
  4665. -entry for the calling process, `logname' prints an error message and
  4666. -exits with a status of 1.
  4667. -
  4668. -   The only options are `--help' and `--version'.  *Note Common
  4669. -options::.
  4670. -
  4671. -
  4672. -File: sh-utils.info,  Node: whoami invocation,  Next: groups invocation,  Prev: logname invocation,  Up: User information
  4673. -
  4674. -`whoami': Print effective user id
  4675. -=================================
  4676. -
  4677. -   `whoami' prints the user name associated with the current effective
  4678. -user id.  It is equivalent to the command `id -un'.
  4679. -
  4680. -   The only options are `--help' and `--version'.  *Note Common
  4681. -options::.
  4682. -
  4683. -
  4684. -File: sh-utils.info,  Node: groups invocation,  Next: users invocation,  Prev: whoami invocation,  Up: User information
  4685. -
  4686. -`groups': Print group names a user is in
  4687. -========================================
  4688. -
  4689. -   `groups' prints the names of the primary and any supplementary
  4690. -groups that each given USERNAME, or the current process if none are
  4691. -given, is in.  If user names are given, the name of each user is
  4692. -printed before the list of that user's groups.
  4693. -
  4694. -   Synopsis:
  4695. -
  4696. -     groups [ USERNAME ]...
  4697. -
  4698. -   The group lists are equivalent to the output of the command `id -Gn'.
  4699. -
  4700. -   The only options are `--help' and `--version'.  *Note Common
  4701. -options::.
  4702. -
  4703. -
  4704. -File: sh-utils.info,  Node: users invocation,  Next: who invocation,  Prev: groups invocation,  Up: User information
  4705. -
  4706. -`users': Print login names of users currently logged in
  4707. -=======================================================
  4708. -
  4709. -   `users' prints on a single line a blank-separated list of user names
  4710. -of users currently logged in to the current host.  Each user name
  4711. -corresponds to a login session, so if a user has more than one login
  4712. -session, that user's name will appear the same number of times in the
  4713. -output.
  4714. -
  4715. -   Synopsis:
  4716. -
  4717. -     users [ FILE ]
  4718. -
  4719. -   With no FILE argument, `users' extracts its information from the
  4720. -file `/etc/utmp'.  If a file argument is given, `users' uses that file
  4721. -instead.  A common choice is `/etc/wtmp'.
  4722. -
  4723. -   The only options are `--help' and `--version'.  *Note Common
  4724. -options::.
  4725. -
  4726. -
  4727. -File: sh-utils.info,  Node: who invocation,  Prev: users invocation,  Up: User information
  4728. -
  4729. -`who': Print who is currently logged in
  4730. -=======================================
  4731. -
  4732. -   Synopsis:
  4733. -
  4734. -     `who' [ OPTION ] [ FILE ] [ am i ]
  4735. -
  4736. -   If given no non-option arguments, `who' prints the following
  4737. -information for each user currently logged on: login name, terminal
  4738. -line, login time, and remote hostname or X display.
  4739. -
  4740. -   If given one non-option argument, `who' uses that instead of
  4741. -`/etc/utmp' as the name of the file containing the record of users
  4742. -logged on.  `/etc/wtmp' is commonly given as an argument to `who' to
  4743. -look at who has previously logged on.
  4744. -
  4745. -   If given two non-option arguments, `who' prints only the entry for
  4746. -the user running it (determined from its standard input), preceded by
  4747. -the hostname.  Traditionally, the two arguments given are `am i', as in
  4748. -`who am i'.
  4749. -
  4750. -   The program accepts the following options.  Also see *Note Common
  4751. -options::.
  4752. -
  4753. -`-m'
  4754. -     Same as `who am i'.
  4755. -
  4756. -`-q'
  4757. -`--count'
  4758. -     Print only the login names and the number of users logged on.
  4759. -     Overrides all other options.
  4760. -
  4761. -`-s'
  4762. -     Ignored; for compatibility with other versions of `who'.
  4763. -
  4764. -`-i'
  4765. -`-u'
  4766. -`--idle'
  4767. -     After the login time, print the number of hours and minutes that
  4768. -     the user has been idle.  `.' means the user was active in last
  4769. -     minute.  `old' means the user was idle for more than 24 hours.
  4770. -
  4771. -`-H'
  4772. -`--heading'
  4773. -     Print a line of column headings.
  4774. -
  4775. -`-w'
  4776. -`-T'
  4777. -`--mesg'
  4778. -`--message'
  4779. -`--writable'
  4780. -     After each login name print a character indicating the user's
  4781. -     message status:
  4782. -
  4783. -          `+' allowing `write' messages
  4784. -          `-' disallowing `write' messages
  4785. -          `?' cannot find terminal device
  4786. -
  4787. -
  4788. -File: sh-utils.info,  Node: System context,  Next: Modified command invocation,  Prev: User information,  Up: Top
  4789. -
  4790. -System context
  4791. -**************
  4792. -
  4793. -   This section describes commands that print or change system-wide
  4794. -information.
  4795. -
  4796. -* Menu:
  4797. -
  4798. -* date invocation::             Print or set system date and time.
  4799. -* uname invocation::            Print system information.
  4800. -* hostname invocation::         Print or set system name.
  4801. -
  4802. -
  4803. -File: sh-utils.info,  Node: date invocation,  Next: uname invocation,  Up: System context
  4804. -
  4805. -`date': Print or set system date and time
  4806. -=========================================
  4807. -
  4808. -   `date' with no arguments prints the current time and date, in the
  4809. -format of the `%c' directive (described below).
  4810. -
  4811. -   Synopses:
  4812. -
  4813. -     date [ OPTION ]... [ +FORMAT ]
  4814. -     date [ -u|--utc|--universal ] [ MMDDHHMM[[CC]YY][.SS] ]
  4815. -
  4816. -   If given an argument that starts with a `+', `date' prints the
  4817. -current time and date (or the time and date specified by the `--date'
  4818. -option, see below) in the format defined by that argument, which is the
  4819. -same as in the `strftime' function.  Except for directives, which start
  4820. -with `%', characters in the format string are printed unchanged.  The
  4821. -directives are described below.
  4822. -
  4823. -   By default, `date' pads numeric fields with zeroes.  GNU `date'
  4824. -recognizes the following numeric modifiers between the `%' and the
  4825. -directive.  These are GNU extensions.
  4826. -
  4827. -`-'
  4828. -     (hyphen) do not pad the field
  4829. -
  4830. -`_'
  4831. -     (underscore) pad the field with spaces
  4832. -
  4833. -* Menu:
  4834. -
  4835. -* Time directives::             %[HIklMprsSTXZ]
  4836. -* Date directives::             %[aAbBcdDhjmUwWxyY]
  4837. -* Literal directives::          %[%nt]
  4838. -* Setting the time::            Changing the system clock.
  4839. -* Options for date::            Instead of the current time.
  4840. -* Examples of date::            Examples.
  4841. -
  4842. -
  4843. -File: sh-utils.info,  Node: Time directives,  Next: Date directives,  Up: date invocation
  4844. -
  4845. -Time directives
  4846. ----------------
  4847. -
  4848. -   `date' directives related to times.
  4849. -
  4850. -`%H'
  4851. -     hour (00...23)
  4852. -
  4853. -`%I'
  4854. -     hour (01...12)
  4855. -
  4856. -`%k'
  4857. -     hour ( 0...23)
  4858. -
  4859. -`%l'
  4860. -     hour ( 1...12)
  4861. -
  4862. -`%M'
  4863. -     minute (00...59)
  4864. -
  4865. -`%p'
  4866. -     locale's AM or PM
  4867. -
  4868. -`%r'
  4869. -     time, 12-hour (hh:mm:ss [AP]M)
  4870. -
  4871. -`%s'
  4872. -     seconds since the epoch, i.e., 1 January 1970 00:00:00 UTC (a GNU
  4873. -     extension)
  4874. -
  4875. -`%S'
  4876. -     second (00...61)
  4877. -
  4878. -`%T'
  4879. -     time, 24-hour (hh:mm:ss)
  4880. -
  4881. -`%X'
  4882. -     locale's time representation (%H:%M:%S)
  4883. -
  4884. -`%Z'
  4885. -     time zone (e.g., EDT), or nothing if no time zone is determinable
  4886. -
  4887. -
  4888. -File: sh-utils.info,  Node: Date directives,  Next: Literal directives,  Prev: Time directives,  Up: date invocation
  4889. -
  4890. -Date directives
  4891. ----------------
  4892. -
  4893. -   `date' directives related to dates.
  4894. -
  4895. -`%a'
  4896. -     locale's abbreviated weekday name (Sun...Sat)
  4897. -
  4898. -`%A'
  4899. -     locale's full weekday name, variable length (Sunday...Saturday)
  4900. -
  4901. -`%b'
  4902. -     locale's abbreviated month name (Jan...Dec)
  4903. -
  4904. -`%B'
  4905. -     locale's full month name, variable length (January...December)
  4906. -
  4907. -`%c'
  4908. -     locale's date and time (Sat Nov 04 12:02:33 EST 1989)
  4909. -
  4910. -`%d'
  4911. -     day of month (01...31)
  4912. -
  4913. -`%D'
  4914. -     date (mm/dd/yy)
  4915. -
  4916. -`%h'
  4917. -     same as %b
  4918. -
  4919. -`%j'
  4920. -     day of year (001...366)
  4921. -
  4922. -`%m'
  4923. -     month (01...12)
  4924. -
  4925. -`%U'
  4926. -     week number of year with Sunday as first day of week (00...53)
  4927. -
  4928. -`%w'
  4929. -     day of week (0...6) with 0 corresponding to Sunday
  4930. -
  4931. -`%W'
  4932. -     week number of year with Monday as first day of week (00...53)
  4933. -
  4934. -`%x'
  4935. -     locale's date representation (mm/dd/yy)
  4936. -
  4937. -`%y'
  4938. -     last two digits of year (00...99)
  4939. -
  4940. -`%Y'
  4941. -     year (1970....)
  4942. -
  4943. -
  4944. -File: sh-utils.info,  Node: Literal directives,  Next: Setting the time,  Prev: Date directives,  Up: date invocation
  4945. -
  4946. -Literal directives
  4947. -------------------
  4948. -
  4949. -   `date' directives that produce literal strings.
  4950. -
  4951. -`%%'
  4952. -     a literal %
  4953. -
  4954. -`%n'
  4955. -     a newline
  4956. -
  4957. -`%t'
  4958. -     a horizontal tab
  4959. -
  4960. -
  4961. -File: sh-utils.info,  Node: Setting the time,  Next: Options for date,  Prev: Literal directives,  Up: date invocation
  4962. -
  4963. -Setting the time
  4964. -----------------
  4965. -
  4966. -   If given an argument that does not start with `+', `date' sets the
  4967. -system clock to the time and date specified by that argument (as
  4968. -described below).  You must have appropriate privileges to set the
  4969. -system clock.  The `--date' and `--set' options may not be used with
  4970. -such an argument.  The `--universal' option may be used with such an
  4971. -argument to indicate that the specified time and date are relative to
  4972. -Coordinated Universal Time rather than to the local time zone.
  4973. -
  4974. -   The argument must consist entirely of digits, which have the
  4975. -following meaning:
  4976. -
  4977. -MM
  4978. -     month
  4979. -
  4980. -DD
  4981. -     day within month
  4982. -
  4983. -HH
  4984. -     hour
  4985. -
  4986. -MM
  4987. -     minute
  4988. -
  4989. -CC
  4990. -     first two digits of year (optional)
  4991. -
  4992. -YY
  4993. -     last two digits of year (optional)
  4994. -
  4995. -SS
  4996. -     second (optional)
  4997. -
  4998. -   The `--set' option also sets the system clock; see the next section.
  4999. -
  5000. -
  5001. -File: sh-utils.info,  Node: Options for date,  Next: Examples of date,  Prev: Setting the time,  Up: date invocation
  5002. -
  5003. -Options for `date'
  5004. -------------------
  5005. -
  5006. -   The program accepts the following options.  Also see *Note Common
  5007. -options::.
  5008. -
  5009. -`-d DATESTR'
  5010. -`--date=DATESTR'
  5011. -     Display the time and date specified in DATESTR instead of the
  5012. -     current time and date.  DATESTR can be in almost any common
  5013. -     format.  It can contain month names, timezones, `am' and `pm',
  5014. -     `yesterday', `ago', `next', etc.  The source file `getdate.y'
  5015. -     implements this parsing for all GNU routines; we need precise
  5016. -     documentation!
  5017. -
  5018. -`-f DATEFILE'
  5019. -`--file=DATEFILE'
  5020. -     Parse each line in DATEFILE as with `-d' and display the resulting
  5021. -     time and date.  If DATEFILE is `-', use standard input.  This is
  5022. -     useful when you have many dates to process, because the system
  5023. -     overhead of starting up the `date' executable many times can be
  5024. -     considerable.
  5025. -
  5026. -`-s DATESTR'
  5027. -`--set=DATESTR'
  5028. -     Set the time and date to DATESTR,  See `-d' above.
  5029. -
  5030. -`-u'
  5031. -`--utc'
  5032. -`--universal'
  5033. -     Print or set the time and date in Universal Coordinated Time
  5034. -     instead of in local (wall clock) time.
  5035. -
  5036. -
  5037. -File: sh-utils.info,  Node: Examples of date,  Prev: Options for date,  Up: date invocation
  5038. -
  5039. -Examples of `date'
  5040. -------------------
  5041. -
  5042. -   Here are a few examples.  Also see the documentation for the `-d'
  5043. -option in the previous section.
  5044. -
  5045. -   * To print the date of the day before yesterday:
  5046. -
  5047. -          date --date='2 days ago'
  5048. -
  5049. -   * To print the date of the day three months and one day hence:
  5050. -          date --date='3 months 1 day'
  5051. -
  5052. -   * To print the day of year of Christmas in the current year:
  5053. -          date --date='25 Dec' +%j
  5054. -
  5055. -   * To print the current full month name and the day of the month:
  5056. -          date '+%B %d'
  5057. -
  5058. -     But this may not be what you want because for the first nine days
  5059. -     of the month, the `%d' expands to a zero-padded two-digit field,
  5060. -     for example `date -d 1may '+%B %d'' will print `May 01'.
  5061. -
  5062. -   * To print a date without the leading zero for one-digit days of the
  5063. -     month, you can use the (GNU extension) `-' modifier to suppress
  5064. -     the padding altogether.
  5065. -          date -d=1may '+%B %-d'
  5066. -
  5067. -   * To print the current date and time in the format required by many
  5068. -     non-GNU versions of `date' when setting the system clock:
  5069. -          date +%m%d%H%M%Y.%S
  5070. -
  5071. -   * To set the system clock forward by two minutes:
  5072. -          date --set='+2 minutes'
  5073. -
  5074. -
  5075. -File: sh-utils.info,  Node: uname invocation,  Next: hostname invocation,  Prev: date invocation,  Up: System context
  5076. -
  5077. -`uname': Print system information
  5078. -=================================
  5079. -
  5080. -   `uname' prints information about the machine and operating system it
  5081. -is run on.  If no options are given, `uname' acts as if the `-s' option
  5082. -were given.
  5083. -
  5084. -   Synopsis:
  5085. -
  5086. -     uname [ OPTION ]...
  5087. -
  5088. -   If multiple options or `-a' are given, the selected information is
  5089. -printed in this order:
  5090. -
  5091. -     SYSNAME NODENAME RELEASE OSVERSION MACHINE
  5092. -
  5093. -   The OSVERSION, at least, may well be multiple words.  For example:
  5094. -
  5095. -     bash$ uname -a
  5096. -     => Linux hayley 1.0.4 #3 Thu May 12 18:06:34 1994 i486
  5097. -
  5098. -   The program accepts the following options.  Also see *Note Common
  5099. -options::.
  5100. -
  5101. -`-a'
  5102. -`--all'
  5103. -     Print all of the below information.
  5104. -
  5105. -`-m'
  5106. -`--machine'
  5107. -     Print the machine (hardware) type.
  5108. -
  5109. -`-n'
  5110. -`--nodename'
  5111. -     Print the machine's network node hostname.
  5112. -
  5113. -`-r'
  5114. -`--release'
  5115. -     Print the operating system release.
  5116. -
  5117. -`-s'
  5118. -`--sysname'
  5119. -     Print the operating system name.
  5120. -
  5121. -`-v'
  5122. -     Print the operating system version.
  5123. -
  5124. -
  5125. -File: sh-utils.info,  Node: hostname invocation,  Prev: uname invocation,  Up: System context
  5126. -
  5127. -`hostname': Print or set system name
  5128. -====================================
  5129. -
  5130. -   With no arguments, `hostname' prints the name of the current host
  5131. -system.  With one argument, it sets the current host name to the
  5132. -specified string.  You must have appropriate privileges to set the host
  5133. -name.
  5134. -
  5135. -   Synopsis:
  5136. -
  5137. -     hostname [ NAME ]
  5138. -
  5139. -   The only options are `--help' and `--version'.  *Note Common
  5140. -options::.
  5141. -
  5142. -
  5143. -File: sh-utils.info,  Node: Modified command invocation,  Next: Delaying,  Prev: System context,  Up: Top
  5144. -
  5145. -Modified command invocation
  5146. -***************************
  5147. -
  5148. -   This section describes commands that run other commands in some
  5149. -context different than the current one: a modified environment, as a
  5150. -different user, etc.
  5151. -
  5152. -* Menu:
  5153. -
  5154. -* env invocation::              Modify environment variables.
  5155. -* nice invocation::             Modify scheduling priority.
  5156. -* nohup invocation::            Immunize to hangups.
  5157. -* su invocation::               Modify user and group id.
  5158. -
  5159. -
  5160. -File: sh-utils.info,  Node: env invocation,  Next: nice invocation,  Up: Modified command invocation
  5161. -
  5162. -`env': Run a command in a modified environment
  5163. -==============================================
  5164. -
  5165. -   `env' runs a command with an environment modified as specified by
  5166. -the command line arguments.
  5167. -
  5168. -   Synopses:
  5169. -
  5170. -     env [ OPTION ]... [ NAME=VALUE ]... [ COMMAND [ ARGS ]... ]
  5171. -     env
  5172. -
  5173. -   Arguments of the form `VARIABLE=VALUE' set the environment variable
  5174. -VARIABLE to value VALUE.  VALUE may be empty (`VARIABLE=').  Setting a
  5175. -variable to an empty value is different from unsetting it.
  5176. -
  5177. -   The first remaining argument specifies the program name to invoke;
  5178. -it is searched for according to the `PATH' environment variable.  Any
  5179. -remaining arguments are passed as arguments to that program.
  5180. -
  5181. -   If no command name is specified following the environment
  5182. -specifications, the resulting environment is printed.  This is like
  5183. -specifying a command name of `printenv'.
  5184. -
  5185. -   The program accepts the following options.  Also see *Note Common
  5186. -options::.
  5187. -
  5188. -`-u NAME'
  5189. -`--unset=NAME'
  5190. -     Remove variable NAME from the environment, if it was in the
  5191. -     environment.
  5192. -
  5193. -`-'
  5194. -`-i'
  5195. -`--ignore-environment'
  5196. -     Start with an empty environment, ignoring the inherited
  5197. -     environment.
  5198. -
  5199. -
  5200. -File: sh-utils.info,  Node: nice invocation,  Next: nohup invocation,  Prev: env invocation,  Up: Modified command invocation
  5201. -
  5202. -`nice': Run a command with modified scheduling priority
  5203. -=======================================================
  5204. -
  5205. -   If no arguments are given, `nice' prints the current scheduling
  5206. -priority, which it inherited.  Otherwise, `nice' runs the given COMMAND
  5207. -with its scheduling priority adjusted.  If no ADJUSTMENT is given, the
  5208. -priority of the command is incremented by 10.  You must have
  5209. -appropriate privileges to specify a negative adjustment.  The priority
  5210. -can be adjusted by `nice' over the range of -20 (the highest priority)
  5211. -to 19 (the lowest).
  5212. -
  5213. -   Synopsis:
  5214. -
  5215. -     nice [ OPTION ]... [ COMMAND [ ARG ]... ]
  5216. -
  5217. -   Because most shells have a built-in command by the same name, using
  5218. -the unadorned command name in a script or interactively may get you
  5219. -different functionality than that described here.
  5220. -
  5221. -   The program accepts the following option.  Also see *Note Common
  5222. -options::.
  5223. -
  5224. -`-n ADJUSTMENT'
  5225. -`-ADJUSTMENT'
  5226. -`--adjustment=ADJUSTMENT'
  5227. -     Add ADJUSTMENT instead of 10 to the command's priority.
  5228. -
  5229. -
  5230. -File: sh-utils.info,  Node: nohup invocation,  Next: su invocation,  Prev: nice invocation,  Up: Modified command invocation
  5231. -
  5232. -`nohup': Run a command immune to hangups
  5233. -========================================
  5234. -
  5235. -   `nohup' runs the given COMMAND with hangup signals ignored, so that
  5236. -the command can continue running in the background after you log out.
  5237. -
  5238. -   Synopsis:
  5239. -
  5240. -     nohup COMMAND [ ARG ]...
  5241. -
  5242. -   Also, the scheduling priority is increased by 5.  If standard output
  5243. -is a tty, it and standard error are redirected so that they are
  5244. -appended to the file `nohup.out'; if that cannot be written to, they are
  5245. -appended to the file `$HOME/nohup.out'.  If that cannot be written to,
  5246. -the command is not run.
  5247. -
  5248. -   If `nohup' creates either `nohup.out' or `$HOME/nohup.out', it
  5249. -creates it with no "group" or "other" access permissions.  It does not
  5250. -change the permissions if the output file already existed.
  5251. -
  5252. -   `nohup' does not automatically put the command it runs in the
  5253. -background; you must do that explicitly, by ending the command line
  5254. -with an `&'.
  5255. -
  5256. -   The only options are `--help' and `--version'.  *Note Common
  5257. -options::.
  5258. -
  5259. -
  5260. -File: sh-utils.info,  Node: su invocation,  Prev: nohup invocation,  Up: Modified command invocation
  5261. -
  5262. -`su': Run a command with substitute user and group id
  5263. -=====================================================
  5264. -
  5265. -   `su' allows one user to temporarily become another user.  It runs a
  5266. -command (often an interactive shell) with the real and effective user
  5267. -id, group id, and supplemental groups of a given USER.
  5268. -
  5269. -   Synopsis:
  5270. -
  5271. -     su [ OPTION ]... [ USER [ ARG ]... ]
  5272. -
  5273. -   If no USER is given, the default is `root', the super-user.  The
  5274. -shell to use is taken from USER's `passwd' entry, or `/bin/sh' if none
  5275. -is specified there.  If USER has a password, `su' prompts for the
  5276. -password unless run by a user with effective user id of zero (the
  5277. -super-user).
  5278. -
  5279. -   By default, `su' does not change the current directory.  It sets the
  5280. -environment variables `HOME' and `SHELL' from the password entry for
  5281. -USER, and if USER is not the super-user, sets `USER' and `LOGNAME' to
  5282. -USER.  By default, the shell is not a login shell.
  5283. -
  5284. -   Any additional ARGs are passed as additional arguments to the shell.
  5285. -
  5286. -   GNU `su' does not treat `/bin/sh' or any other shells specially
  5287. -(e.g., by setting `argv[0]' to `-su', passing `-c' only to certain
  5288. -shells, etc.).
  5289. -
  5290. -   `su' can optionally be compiled to use `syslog' to report failed,
  5291. -and optionally successful, `su' attempts.  (If the system supports
  5292. -`syslog'.)  However, GNU `su' does not check if the user is a member of
  5293. -the `wheel' group; see below.
  5294. -
  5295. -   The program accepts the following options.  Also see *Note Common
  5296. -options::.
  5297. -
  5298. -`-c COMMAND'
  5299. -`--command=COMMAND'
  5300. -     Pass COMMAND, a single command line to run, to the shell with a
  5301. -     `-c' option instead of starting an interactive shell.
  5302. -
  5303. -`-f'
  5304. -`--fast'
  5305. -     Pass the `-f' option to the shell.  This probably only makes sense
  5306. -     if the shell run is `csh' or `tcsh', for which the `-f' option
  5307. -     prevents reading the startup file (`.cshrc').  With Bourne-like
  5308. -     shells, the `-f' option disables file name pattern expansion
  5309. -     (globbing), which is not likely to be useful.
  5310. -
  5311. -`-'
  5312. -`-l'
  5313. -`--login'
  5314. -     Make the shell a login shell.  This means the following.  Unset all
  5315. -     environment variables except `TERM', `HOME', and `SHELL' (which
  5316. -     are set as described above), and `USER' and `LOGNAME' (which are
  5317. -     set, even for the super-user, as described above), and set `PATH'
  5318. -     to a compiled-in default value.  Change to USER's home directory.
  5319. -     Prepend `-' to the shell's name, intended to make it read its
  5320. -     login startup file(s).
  5321. -
  5322. -`-m'
  5323. -`-p'
  5324. -`--preserve-environment'
  5325. -     Do not change the environment variables `HOME', `USER', `LOGNAME',
  5326. -     or `SHELL'.  Run the shell given in the environment variable
  5327. -     `SHELL' instead of the shell from USER's passwd entry, unless the
  5328. -     user running `su' is not the superuser and USER's shell is
  5329. -     restricted.  A "restricted shell" is one that is not listed in the
  5330. -     file `/etc/shells', or in a compiled-in list if that file does not
  5331. -     exist.  Parts of what this option does can be overridden by
  5332. -     `--login' and `--shell'.
  5333. -
  5334. -`-s SHELL'
  5335. -`--shell=SHELL'
  5336. -     Run SHELL instead of the shell from USER's passwd entry, unless
  5337. -     the user running `su' is not the superuser and USER's shell is
  5338. -     restricted (see `-m' just above).
  5339. -
  5340. -Why GNU `su' does not support the `wheel' group
  5341. -===============================================
  5342. -
  5343. -   (This section is by Richard Stallman.)
  5344. -
  5345. -   Sometimes a few of the users try to hold total power over all the
  5346. -rest.  For example, in 1984, a few users at the MIT AI lab decided to
  5347. -seize power by changing the operator password on the Twenex system and
  5348. -keeping it secret from everyone else.  (I was able to thwart this coup
  5349. -and give power back to the users by patching the kernel, but I wouldn't
  5350. -know how to do that in Unix.)
  5351. -
  5352. -   However, occasionally the rulers do tell someone.  Under the usual
  5353. -`su' mechanism, once someone learns the root password who sympathizes
  5354. -with the ordinary users, he or she can tell the rest.  The "wheel
  5355. -group" feature would make this impossible, and thus cement the power of
  5356. -the rulers.
  5357. -
  5358. -   I'm on the side of the masses, not that of the rulers.  If you are
  5359. -used to supporting the bosses and sysadmins in whatever they do, you
  5360. -might find this idea strange at first.
  5361. -
  5362. -
  5363. -File: sh-utils.info,  Node: Delaying,  Next: Index,  Prev: Modified command invocation,  Up: Top
  5364. -
  5365. -Delaying
  5366. -********
  5367. -
  5368. -   Perhaps `wait' or other commands should be described here also?
  5369. -
  5370. -* Menu:
  5371. -
  5372. -* sleep invocation::            Delay for a specified time.
  5373. -
  5374. -
  5375. -File: sh-utils.info,  Node: sleep invocation,  Up: Delaying
  5376. -
  5377. -`sleep': Delay for a specified time
  5378. -===================================
  5379. -
  5380. -   `sleep' pauses for an amount of time specified by the sum of the
  5381. -values of the command line arguments.
  5382. -
  5383. -   Synopsis:
  5384. -
  5385. -     sleep [ NUMBER[smhd] ]...
  5386. -
  5387. -   Each argument is a number followed by an optional unit; the default
  5388. -is seconds.  The units are:
  5389. -
  5390. -`s'
  5391. -     seconds
  5392. -
  5393. -`m'
  5394. -     minutes
  5395. -
  5396. -`h'
  5397. -     hours
  5398. -
  5399. -`d'
  5400. -     days
  5401. -
  5402. -   The only options are `--help' and `--version'.  *Note Common
  5403. -options::.
  5404. -
  5405. -
  5406. -File: sh-utils.info,  Node: Index,  Prev: Delaying,  Up: Top
  5407. -
  5408. -Index
  5409. -*****
  5410. -
  5411. -* Menu:
  5412. -
  5413. -* !:                                    Connectives for test.
  5414. -* !=:                                   String tests.
  5415. -* %:                                    Numeric expressions.
  5416. -* &:                                    Relations for expr.
  5417. -* *:                                    Numeric expressions.
  5418. -* +:                                    Numeric expressions.
  5419. -* -:                                    Numeric expressions.
  5420. -* -:                                    env invocation.
  5421. -* -:                                    su invocation.
  5422. -* -adjustment:                          nice invocation.
  5423. -* -all:                                 stty invocation.
  5424. -* -all:                                 uname invocation.
  5425. -* -append:                              tee invocation.
  5426. -* -command:                             su invocation.
  5427. -* -count:                               who invocation.
  5428. -* -date:                                Options for date.
  5429. -* -fast:                                su invocation.
  5430. -* -file:                                Options for date.
  5431. -* -group:                               id invocation.
  5432. -* -groups:                              id invocation.
  5433. -* -heading:                             who invocation.
  5434. -* -help:                                Common options.
  5435. -* -idle:                                who invocation.
  5436. -* -ignore-environment:                  env invocation.
  5437. -* -ignore-interrupts:                   tee invocation.
  5438. -* -login:                               su invocation.
  5439. -* -machine:                             uname invocation.
  5440. -* -mesg:                                who invocation.
  5441. -* -message:                             who invocation.
  5442. -* -name:                                id invocation.
  5443. -* -nodename:                            uname invocation.
  5444. -* -portability:                         pathchk invocation.
  5445. -* -preserve-environment:                su invocation.
  5446. -* -quiet:                               tty invocation.
  5447. -* -real:                                id invocation.
  5448. -* -release:                             uname invocation.
  5449. -* -save:                                stty invocation.
  5450. -* -set:                                 Options for date.
  5451. -* -shell:                               su invocation.
  5452. -* -silent:                              tty invocation.
  5453. -* -sysname:                             uname invocation.
  5454. -* -universal:                           Options for date.
  5455. -* -user:                                id invocation.
  5456. -* -utc:                                 Options for date.
  5457. -* -version:                             Common options.
  5458. -* -writable:                            who invocation.
  5459. -* -ADJUSTMENT:                          nice invocation.
  5460. -* -a:                                   uname invocation.
  5461. -* -a:                                   tee invocation.
  5462. -* -a:                                   Connectives for test.
  5463. -* -a:                                   stty invocation.
  5464. -* -b:                                   File type tests.
  5465. -* -c:                                   File type tests.
  5466. -* -c:                                   su invocation.
  5467. -* -d:                                   Options for date.
  5468. -* -d:                                   File type tests.
  5469. -* -e:                                   File characteristics tests.
  5470. -* -e:                                   echo invocation.
  5471. -* -ef:                                  File characteristics tests.
  5472. -* -eq:                                  Numeric tests.
  5473. -* -f:                                   Options for date.
  5474. -* -f:                                   su invocation.
  5475. -* -f:                                   File type tests.
  5476. -* -g:                                   Access permission tests.
  5477. -* -G:                                   id invocation.
  5478. -* -G:                                   Access permission tests.
  5479. -* -g:                                   id invocation.
  5480. -* -g:                                   stty invocation.
  5481. -* -ge:                                  Numeric tests.
  5482. -* -gt:                                  Numeric tests.
  5483. -* -h:                                   File type tests.
  5484. -* -H:                                   who invocation.
  5485. -* -i:                                   tee invocation.
  5486. -* -i:                                   who invocation.
  5487. -* -i:                                   env invocation.
  5488. -* -k:                                   Access permission tests.
  5489. -* -L:                                   File type tests.
  5490. -* -l:                                   su invocation.
  5491. -* -le:                                  Numeric tests.
  5492. -* -lt:                                  Numeric tests.
  5493. -* -m:                                   su invocation.
  5494. -* -m:                                   who invocation.
  5495. -* -m:                                   uname invocation.
  5496. -* -n:                                   String tests.
  5497. -* -n:                                   echo invocation.
  5498. -* -n:                                   id invocation.
  5499. -* -n:                                   uname invocation.
  5500. -* -n:                                   nice invocation.
  5501. -* -ne:                                  Numeric tests.
  5502. -* -nt:                                  File characteristics tests.
  5503. -* -O:                                   Access permission tests.
  5504. -* -o:                                   Connectives for test.
  5505. -* -ot:                                  File characteristics tests.
  5506. -* -p:                                   su invocation.
  5507. -* -p:                                   File type tests.
  5508. -* -p:                                   pathchk invocation.
  5509. -* -q:                                   who invocation.
  5510. -* -r:                                   id invocation.
  5511. -* -r:                                   Access permission tests.
  5512. -* -r:                                   uname invocation.
  5513. -* -s:                                   File characteristics tests.
  5514. -* -s:                                   who invocation.
  5515. -* -S:                                   File type tests.
  5516. -* -s:                                   uname invocation.
  5517. -* -s:                                   Options for date.
  5518. -* -s:                                   su invocation.
  5519. -* -s:                                   tty invocation.
  5520. -* -t:                                   File type tests.
  5521. -* -T:                                   who invocation.
  5522. -* -u:                                   Options for date.
  5523. -* -u:                                   env invocation.
  5524. -* -u:                                   Access permission tests.
  5525. -* -u:                                   who invocation.
  5526. -* -u:                                   id invocation.
  5527. -* -unset:                               env invocation.
  5528. -* -v:                                   uname invocation.
  5529. -* -w:                                   who invocation.
  5530. -* -w:                                   Access permission tests.
  5531. -* -x:                                   Access permission tests.
  5532. -* -z:                                   String tests.
  5533. -* .cshrc:                               su invocation.
  5534. -* /:                                    Numeric expressions.
  5535. -* /bin/sh:                              su invocation.
  5536. -* /etc/passwd:                          su invocation.
  5537. -* /etc/shells:                          su invocation.
  5538. -* /etc/utmp:                            who invocation.
  5539. -* /etc/utmp:                            users invocation.
  5540. -* /etc/utmp:                            logname invocation.
  5541. -* /etc/wtmp:                            users invocation.
  5542. -* /etc/wtmp:                            who invocation.
  5543. -* <:                                    Relations for expr.
  5544. -* <=:                                   Relations for expr.
  5545. -* =:                                    String tests.
  5546. -* =:                                    Relations for expr.
  5547. -* ==:                                   Relations for expr.
  5548. -* >:                                    Relations for expr.
  5549. -* >=:                                   Relations for expr.
  5550. -* date options:                         Options for date.
  5551. -* -su:                                  su invocation.
  5552. -* access permission tests:              Access permission tests.
  5553. -* addition:                             Numeric expressions.
  5554. -* am i:                                 who invocation.
  5555. -* and operator:                         Connectives for test.
  5556. -* and operator:                         Relations for expr.
  5557. -* appropriate privileges:               hostname invocation.
  5558. -* appropriate privileges:               nice invocation.
  5559. -* appropriate privileges:               Setting the time.
  5560. -* arbitrary date strings, parsing:      Options for date.
  5561. -* arbitrary text, displaying:           echo invocation.
  5562. -* arithmetic tests:                     Numeric tests.
  5563. -* background jobs, stopping at terminal write: Local.
  5564. -* backslash escapes:                    echo invocation.
  5565. -* basename:                             basename invocation.
  5566. -* baud rate, setting:                   Special.
  5567. -* beeping at input buffer full:         Input.
  5568. -* beginning of time:                    Time directives.
  5569. -* block special check:                  File type tests.
  5570. -* breaks, cause interrupts:             Input.
  5571. -* breaks, ignoring:                     Input.
  5572. -* brkint:                               Input.
  5573. -* bsN:                                  Output.
  5574. -* bugs, reporting:                      Introduction.
  5575. -* built-in shell commands, conflicts with: nice invocation.
  5576. -* built-in shell commands, conflicts with: pwd invocation.
  5577. -* built-in shell commands, conflicts with: test invocation.
  5578. -* C-s/C-q flow control:                 Input.
  5579. -* case translation:                     Local.
  5580. -* cbreak:                               Combination.
  5581. -* change or print terminal settings:    stty invocation.
  5582. -* character size:                       Control.
  5583. -* character special check:              File type tests.
  5584. -* characters, special:                  Characters.
  5585. -* check file types:                     test invocation.
  5586. -* clocal:                               Control.
  5587. -* cols:                                 Special.
  5588. -* columns:                              Special.
  5589. -* COLUMNS:                              Special.
  5590. -* combination settings:                 Combination.
  5591. -* commands for delaying:                Delaying.
  5592. -* commands for exit status:             Conditions.
  5593. -* commands for file name manipulation:  File name manipulation.
  5594. -* commands for invoking other commands: Modified command invocation.
  5595. -* commands for printing text:           Printing text.
  5596. -* commands for printing the working context: Working context information.
  5597. -* commands for printing user information: User information.
  5598. -* commands for redirection:             Redirection.
  5599. -* commands for system context:          System context.
  5600. -* common options:                       Common options.
  5601. -* compare values:                       test invocation.
  5602. -* comparison operators:                 Relations for expr.
  5603. -* conditions:                           Conditions.
  5604. -* conflicts with shell built-ins:       nice invocation.
  5605. -* conflicts with shell built-ins:       pwd invocation.
  5606. -* conflicts with shell built-ins:       test invocation.
  5607. -* connectives, logical:                 Relations for expr.
  5608. -* connectives, logical:                 Connectives for test.
  5609. -* context, system:                      System context.
  5610. -* control characters, using ^C:         Local.
  5611. -* control settings:                     Control.
  5612. -* cooked:                               Combination.
  5613. -* coordinated universal time:           Options for date.
  5614. -* crN:                                  Output.
  5615. -* cread:                                Control.
  5616. -* crt:                                  Combination.
  5617. -* crterase:                             Local.
  5618. -* crtkill:                              Local.
  5619. -* crtscts:                              Control.
  5620. -* csN:                                  Control.
  5621. -* cstopb:                               Control.
  5622. -* ctlecho:                              Local.
  5623. -* current working directory, printing:  pwd invocation.
  5624. -* date:                                 date invocation.
  5625. -* date directives:                      Date directives.
  5626. -* date strings, parsing:                Options for date.
  5627. -* dec:                                  Combination.
  5628. -* decctlq:                              Combination.
  5629. -* delay for a specified time:           sleep invocation.
  5630. -* delaying commands:                    Delaying.
  5631. -* destinations, multiple output:        tee invocation.
  5632. -* directives, date:                     Date directives.
  5633. -* directives, literal:                  Literal directives.
  5634. -* directives, time:                     Time directives.
  5635. -* directory check:                      File type tests.
  5636. -* directory components, printing:       dirname invocation.
  5637. -* directory, stripping from file names: basename invocation.
  5638. -* dirname:                              dirname invocation.
  5639. -* disabling special characters:         Characters.
  5640. -* displaying text:                      echo invocation.
  5641. -* division:                             Numeric expressions.
  5642. -* do nothing, successfully:             true invocation.
  5643. -* dsusp:                                Characters.
  5644. -* echo:                                 Local.
  5645. -* echo:                                 echo invocation.
  5646. -* echoctl:                              Local.
  5647. -* echoe:                                Local.
  5648. -* echok:                                Local.
  5649. -* echoke:                               Local.
  5650. -* echonl:                               Local.
  5651. -* echoprt:                              Local.
  5652. -* effective uid and gid, printing:      id invocation.
  5653. -* effective UID, printing:              whoami invocation.
  5654. -* eight-bit characters:                 Combination.
  5655. -* eight-bit characters:                 Control.
  5656. -* eight-bit input:                      Input.
  5657. -* ek:                                   Combination.
  5658. -* env:                                  env invocation.
  5659. -* environment variables, printing:      printenv invocation.
  5660. -* environment, preserving:              su invocation.
  5661. -* environment, printing:                env invocation.
  5662. -* environment, running a program in a modified: env invocation.
  5663. -* eof:                                  Characters.
  5664. -* eol:                                  Characters.
  5665. -* eol2:                                 Characters.
  5666. -* epoch, seconds since:                 Time directives.
  5667. -* equal string check:                   String tests.
  5668. -* erase:                                Characters.
  5669. -* evaluation of expressions:            expr invocation.
  5670. -* even parity:                          Control.
  5671. -* evenp:                                Combination.
  5672. -* examples of date:                     Examples of date.
  5673. -* examples of expr:                     Examples of expr.
  5674. -* executable file check:                Access permission tests.
  5675. -* existence-of-file check:              File characteristics tests.
  5676. -* exit status commands:                 Conditions.
  5677. -* exit status of expr:                  expr invocation.
  5678. -* exit status of pathchk:               pathchk invocation.
  5679. -* exit status of printenv:              printenv invocation.
  5680. -* exit status of true:                  true invocation.
  5681. -* exit status of true:                  false invocation.
  5682. -* exit status of tty:                   tty invocation.
  5683. -* expr:                                 expr invocation.
  5684. -* expression evaluation:                test invocation.
  5685. -* expression evaluation:                expr invocation.
  5686. -* expressions, numeric:                 Numeric expressions.
  5687. -* expressions, string:                  String expressions.
  5688. -* failure exit status:                  false invocation.
  5689. -* false:                                false invocation.
  5690. -* fascism:                              su invocation.
  5691. -* ffN:                                  Output.
  5692. -* fields, padding numeric:              date invocation.
  5693. -* file characteristics tests:           File characteristics tests.
  5694. -* file name manipulation:               File name manipulation.
  5695. -* file name pattern expansion, disabled: su invocation.
  5696. -* file names, checking validity and portability: pathchk invocation.
  5697. -* file names, stripping directory and suffix: basename invocation.
  5698. -* file type tests:                      File type tests.
  5699. -* flow control, hardware:               Control.
  5700. -* flow control, software:               Input.
  5701. -* flushing, disabling:                  Local.
  5702. -* formatting times:                     date invocation.
  5703. -* getdate.y:                            Options for date.
  5704. -* globbing, disabled:                   su invocation.
  5705. -* Greenwich Mean Time:                  Options for date.
  5706. -* group wheel, not supported:           su invocation.
  5707. -* groups:                               groups invocation.
  5708. -* hangups, immunity to:                 nohup invocation.
  5709. -* hard link check:                      File characteristics tests.
  5710. -* hardware flow control:                Control.
  5711. -* hardware type:                        uname invocation.
  5712. -* hat notation for control characters:  Local.
  5713. -* help, online:                         Common options.
  5714. -* history:                              Introduction.
  5715. -* HOME:                                 su invocation.
  5716. -* hostname:                             hostname invocation.
  5717. -* hostname:                             uname invocation.
  5718. -* hup[cl]:                              Control.
  5719. -* icanon:                               Local.
  5720. -* icrnl:                                Input.
  5721. -* id:                                   id invocation.
  5722. -* idle time:                            who invocation.
  5723. -* iexten:                               Local.
  5724. -* ignbrk:                               Input.
  5725. -* igncr:                                Input.
  5726. -* ignpar:                               Input.
  5727. -* imaxbel:                              Input.
  5728. -* immunity to hangups:                  nohup invocation.
  5729. -* index:                                String expressions.
  5730. -* information, about current users:     who invocation.
  5731. -* inlcr:                                Input.
  5732. -* inpck:                                Input.
  5733. -* input settings:                       Input.
  5734. -* intr:                                 Characters.
  5735. -* introduction:                         Introduction.
  5736. -* invocation of commands, modified:     Modified command invocation.
  5737. -* isig:                                 Local.
  5738. -* ispeed:                               Special.
  5739. -* istrip:                               Input.
  5740. -* iuclc:                                Input.
  5741. -* ixany:                                Input.
  5742. -* ixoff:                                Input.
  5743. -* ixon:                                 Input.
  5744. -* kill:                                 Characters.
  5745. -* last DAY:                             Options for date.
  5746. -* LCASE:                                Combination.
  5747. -* lcase:                                Combination.
  5748. -* leading directory components, stripping: basename invocation.
  5749. -* length:                               String expressions.
  5750. -* line:                                 Special.
  5751. -* line settings of terminal:            stty invocation.
  5752. -* LINES:                                Special.
  5753. -* literal directives:                   Literal directives.
  5754. -* litout:                               Combination.
  5755. -* lnext:                                Characters.
  5756. -* local settings:                       Local.
  5757. -* logical and operator:                 Relations for expr.
  5758. -* logical and operator:                 Connectives for test.
  5759. -* logical connectives:                  Relations for expr.
  5760. -* logical connectives:                  Connectives for test.
  5761. -* logical or operator:                  Relations for expr.
  5762. -* logical or operator:                  Connectives for test.
  5763. -* login name, printing:                 logname invocation.
  5764. -* login sessions, printing users with:  users invocation.
  5765. -* login shell:                          su invocation.
  5766. -* login shell, creating:                su invocation.
  5767. -* login time:                           who invocation.
  5768. -* logname:                              logname invocation.
  5769. -* LOGNAME:                              su invocation.
  5770. -* lowercase, translating to output:     Output.
  5771. -* machine type:                         uname invocation.
  5772. -* machine-readable stty output:         stty invocation.
  5773. -* manipulation of file names:           File name manipulation.
  5774. -* match:                                String expressions.
  5775. -* matching patterns:                    String expressions.
  5776. -* message status:                       who invocation.
  5777. -* min:                                  Special.
  5778. -* MIT AI lab:                           su invocation.
  5779. -* modem control:                        Control.
  5780. -* modified command invocation:          Modified command invocation.
  5781. -* modified environment, running a program in: env invocation.
  5782. -* modifying scheduling priority:        nice invocation.
  5783. -* multiplication:                       Numeric expressions.
  5784. -* name of operating system:             uname invocation.
  5785. -* named pipe check:                     File type tests.
  5786. -* network node name:                    uname invocation.
  5787. -* newer-than file check:                File characteristics tests.
  5788. -* newline echoing after kill:           Local.
  5789. -* newline, echoing:                     Local.
  5790. -* newline, translating to crlf:         Output.
  5791. -* newline, translating to return:       Input.
  5792. -* next DAY:                             Options for date.
  5793. -* nice:                                 nice invocation.
  5794. -* nl:                                   Combination.
  5795. -* nlN:                                  Output.
  5796. -* no-op:                                true invocation.
  5797. -* node name:                            uname invocation.
  5798. -* noflsh:                               Local.
  5799. -* nohup:                                nohup invocation.
  5800. -* nohup.out:                            nohup invocation.
  5801. -* nohup.out:                            nohup invocation.
  5802. -* non-directory suffix, stripping:      dirname invocation.
  5803. -* nonempty file check:                  File characteristics tests.
  5804. -* nonzero-length string check:          String tests.
  5805. -* not-equal string check:               String tests.
  5806. -* numeric expressions:                  Numeric expressions.
  5807. -* numeric field padding:                date invocation.
  5808. -* numeric tests:                        Numeric tests.
  5809. -* ocrnl:                                Output.
  5810. -* odd parity:                           Control.
  5811. -* oddp:                                 Combination.
  5812. -* ofdel:                                Output.
  5813. -* ofill:                                Output.
  5814. -* olcuc:                                Output.
  5815. -* older-than file check:                File characteristics tests.
  5816. -* onlcr:                                Output.
  5817. -* onlret:                               Output.
  5818. -* onocr:                                Output.
  5819. -* operating system name:                uname invocation.
  5820. -* operating system release:             uname invocation.
  5821. -* operating system version:             uname invocation.
  5822. -* opost:                                Output.
  5823. -* options for date:                     Options for date.
  5824. -* or operator:                          Relations for expr.
  5825. -* or operator:                          Connectives for test.
  5826. -* ospeed:                               Special.
  5827. -* output settings:                      Output.
  5828. -* owned by effective gid check:         Access permission tests.
  5829. -* owned by effective uid check:         Access permission tests.
  5830. -* pad character:                        Output.
  5831. -* pad instead of timing for delaying:   Output.
  5832. -* padding of numeric fields:            date invocation.
  5833. -* parenb:                               Control.
  5834. -* parentheses for grouping:             expr invocation.
  5835. -* parity:                               Combination.
  5836. -* parity errors, marking:               Input.
  5837. -* parity, ignoring:                     Input.
  5838. -* parmrk:                               Input.
  5839. -* parodd:                               Control.
  5840. -* parsing date strings:                 Options for date.
  5841. -* pass8:                                Combination.
  5842. -* passwd entry, and su shell:           su invocation.
  5843. -* PATH:                                 env invocation.
  5844. -* PATH:                                 su invocation.
  5845. -* pathchk:                              pathchk invocation.
  5846. -* pattern matching:                     String expressions.
  5847. -* permission tests:                     Access permission tests.
  5848. -* pipe fitting:                         tee invocation.
  5849. -* portable file names, checking for:    pathchk invocation.
  5850. -* POSIX.2:                              Introduction.
  5851. -* print name of current directory:      pwd invocation.
  5852. -* print system information:             uname invocation.
  5853. -* print terminal file name:             tty invocation.
  5854. -* printenv:                             printenv invocation.
  5855. -* printf:                               printf invocation.
  5856. -* printing all or some environment variables: printenv invocation.
  5857. -* printing current user information:    who invocation.
  5858. -* printing current usernames:           users invocation.
  5859. -* printing groups a user is in:         groups invocation.
  5860. -* printing real and effective uid and gid: id invocation.
  5861. -* printing text:                        echo invocation.
  5862. -* printing text, commands for:          Printing text.
  5863. -* printing the current time:            date invocation.
  5864. -* printing the effective UID:           whoami invocation.
  5865. -* printing the hostname:                hostname invocation.
  5866. -* printing user's login name:           logname invocation.
  5867. -* priority, modifying:                  nice invocation.
  5868. -* prterase:                             Local.
  5869. -* pwd:                                  pwd invocation.
  5870. -* quit:                                 Characters.
  5871. -* raw:                                  Combination.
  5872. -* read from stdin and write to stdout and files: tee invocation.
  5873. -* readable file check:                  Access permission tests.
  5874. -* real uid and gid, printing:           id invocation.
  5875. -* redirection:                          Redirection.
  5876. -* regular expression matching:          String expressions.
  5877. -* regular file check:                   File type tests.
  5878. -* relations, numeric or string:         Relations for expr.
  5879. -* release of operating system:          uname invocation.
  5880. -* remainder:                            Numeric expressions.
  5881. -* remote hostname:                      who invocation.
  5882. -* repeated output of a string:          yes invocation.
  5883. -* restricted shell:                     su invocation.
  5884. -* return, ignoring:                     Input.
  5885. -* return, translating to newline:       Output.
  5886. -* return, translating to newline:       Input.
  5887. -* root, becoming:                       su invocation.
  5888. -* rows:                                 Special.
  5889. -* rprnt:                                Characters.
  5890. -* RTS/CTS flow control:                 Control.
  5891. -* same file check:                      File characteristics tests.
  5892. -* sane:                                 Combination.
  5893. -* scheduling priority, modifying:       nice invocation.
  5894. -* seconds since the epoch:              Time directives.
  5895. -* set-group-id check:                   Access permission tests.
  5896. -* set-user-id check:                    Access permission tests.
  5897. -* setting the hostname:                 hostname invocation.
  5898. -* setting the time:                     Setting the time.
  5899. -* SHELL:                                su invocation.
  5900. -* shell utilities:                      Top.
  5901. -* size:                                 Special.
  5902. -* sleep:                                sleep invocation.
  5903. -* socket check:                         File type tests.
  5904. -* software flow control:                Input.
  5905. -* special characters:                   Characters.
  5906. -* special settings:                     Special.
  5907. -* speed:                                Special.
  5908. -* start:                                Characters.
  5909. -* sticky bit check:                     Access permission tests.
  5910. -* stop:                                 Characters.
  5911. -* stop bits:                            Control.
  5912. -* strftime and date:                    date invocation.
  5913. -* string expressions:                   String expressions.
  5914. -* string tests:                         String tests.
  5915. -* strip directory and suffix from file names: basename invocation.
  5916. -* stripping non-directory suffix:       dirname invocation.
  5917. -* stty:                                 stty invocation.
  5918. -* su:                                   su invocation.
  5919. -* substitute user and group ids:        su invocation.
  5920. -* substr:                               String expressions.
  5921. -* subtraction:                          Numeric expressions.
  5922. -* successful exit:                      true invocation.
  5923. -* suffix, stripping from file names:    basename invocation.
  5924. -* super-user, becoming:                 su invocation.
  5925. -* supplementary groups, printing:       groups invocation.
  5926. -* susp:                                 Characters.
  5927. -* swtch:                                Characters.
  5928. -* symbolic link check:                  File type tests.
  5929. -* symbolic links and pwd:               pwd invocation.
  5930. -* syslog:                               su invocation.
  5931. -* system context:                       System context.
  5932. -* system information, printing:         uname invocation.
  5933. -* system name, printing:                hostname invocation.
  5934. -* tabN:                                 Output.
  5935. -* tabs:                                 Combination.
  5936. -* tandem:                               Input.
  5937. -* tee:                                  tee invocation.
  5938. -* TERM:                                 su invocation.
  5939. -* terminal check:                       File type tests.
  5940. -* terminal file name, printing:         tty invocation.
  5941. -* terminal lines, currently used:       who invocation.
  5942. -* terminal settings:                    stty invocation.
  5943. -* test:                                 test invocation.
  5944. -* text, displaying:                     echo invocation.
  5945. -* time:                                 Special.
  5946. -* time directives:                      Time directives.
  5947. -* time formats:                         date invocation.
  5948. -* time setting:                         Setting the time.
  5949. -* time units:                           sleep invocation.
  5950. -* time, printing or setting:            date invocation.
  5951. -* tomorrow:                             Options for date.
  5952. -* tostop:                               Local.
  5953. -* true:                                 true invocation.
  5954. -* tty:                                  tty invocation.
  5955. -* Twenex:                               su invocation.
  5956. -* two-way parity:                       Control.
  5957. -* u, and disabling special characters:  Characters.
  5958. -* uname:                                uname invocation.
  5959. -* uppercase, translating to lowercase:  Input.
  5960. -* USER:                                 su invocation.
  5961. -* user id, switching:                   su invocation.
  5962. -* user information, commands for:       User information.
  5963. -* user name, printing:                  logname invocation.
  5964. -* usernames, printing current:          users invocation.
  5965. -* users:                                users invocation.
  5966. -* utilities for shell programming:      Top.
  5967. -* utmp:                                 logname invocation.
  5968. -* valid file names, checking for:       pathchk invocation.
  5969. -* version number, finding:              Common options.
  5970. -* version of operating system:          uname invocation.
  5971. -* vtN:                                  Output.
  5972. -* werase:                               Characters.
  5973. -* wheel group, not supported:           su invocation.
  5974. -* who:                                  who invocation.
  5975. -* who am i:                             who invocation.
  5976. -* whoami:                               whoami invocation.
  5977. -* working context:                      Working context information.
  5978. -* working directory, printing:          pwd invocation.
  5979. -* writable file check:                  Access permission tests.
  5980. -* write, allowed:                       who invocation.
  5981. -* xcase:                                Local.
  5982. -* XON/XOFF flow control:                Input.
  5983. -* yes:                                  yes invocation.
  5984. -* yesterday:                            Options for date.
  5985. -* zero-length string check:             String tests.
  5986. -* \0ooo:                                printf invocation.
  5987. -* \0xhhh:                               printf invocation.
  5988. -* \c:                                   printf invocation.
  5989. -* |:                                    Relations for expr.
  5990. -
  5991. -
  5992. -
  5993. -Tag Table:
  5994. -Node: Top2831
  5995. -Node: Introduction3654
  5996. -Node: Common options5097
  5997. -Node: Printing text5809
  5998. -Node: echo invocation6183
  5999. -Node: printf invocation7174
  6000. -Node: yes invocation8153
  6001. -Node: Conditions8614
  6002. -Node: false invocation9201
  6003. -Node: true invocation9634
  6004. -Node: test invocation10144
  6005. -Node: File type tests11284
  6006. -Node: Access permission tests12075
  6007. -Node: File characteristics tests12840
  6008. -Node: String tests13507
  6009. -Node: Numeric tests14089
  6010. -Node: Connectives for test14873
  6011. -Node: expr invocation15213
  6012. -Node: Relations for expr16354
  6013. -Node: Numeric expressions17048
  6014. -Node: String expressions17646
  6015. -Node: Examples of expr19350
  6016. -Node: Redirection19932
  6017. -Node: tee invocation20373
  6018. -Node: File name manipulation21201
  6019. -Node: basename invocation21657
  6020. -Node: dirname invocation22221
  6021. -Node: pathchk invocation22735
  6022. -Node: Working context information23898
  6023. -Node: pwd invocation24574
  6024. -Node: stty invocation25186
  6025. -Node: Control27095
  6026. -Node: Input27843
  6027. -Node: Output29200
  6028. -Node: Local30444
  6029. -Node: Combination32011
  6030. -Node: Characters34149
  6031. -Node: Special35689
  6032. -Node: printenv invocation37027
  6033. -Node: tty invocation37750
  6034. -Node: User information38445
  6035. -Node: id invocation39105
  6036. -Node: logname invocation40248
  6037. -Node: whoami invocation40751
  6038. -Node: groups invocation41145
  6039. -Node: users invocation41791
  6040. -Node: who invocation42603
  6041. -Node: System context44320
  6042. -Node: date invocation44743
  6043. -Node: Time directives46107
  6044. -Node: Date directives46761
  6045. -Node: Literal directives47758
  6046. -Node: Setting the time48042
  6047. -Node: Options for date49017
  6048. -Node: Examples of date50197
  6049. -Node: uname invocation51482
  6050. -Node: hostname invocation52587
  6051. -Node: Modified command invocation53086
  6052. -Node: env invocation53653
  6053. -Node: nice invocation54916
  6054. -Node: nohup invocation56042
  6055. -Node: su invocation57165
  6056. -Node: Delaying61441
  6057. -Node: sleep invocation61698
  6058. -Node: Index62230
  6059. -
  6060. -End Tag Table
  6061. diff -rup --new-file baseline/fsf/sh-utils/doc/version.texi amiga/fsf/sh-utils/doc/version.texi
  6062. --- baseline/fsf/sh-utils/doc/version.texi    Sat Nov  5 06:31:34 1994
  6063. +++ amiga/fsf/sh-utils/doc/version.texi    Sat Sep 28 00:00:00 1996
  6064. @@ -1,2 +1,2 @@
  6065.  @set VERSION GNU sh-utils 1.12
  6066. -@set RELEASEDATE Sat 05 Nov 1994 08:31:34
  6067. +@set RELEASEDATE May 1996
  6068. diff -rup --new-file baseline/fsf/sh-utils/lib/getusershell.c amiga/fsf/sh-utils/lib/getusershell.c
  6069. --- baseline/fsf/sh-utils/lib/getusershell.c    Mon Sep 26 14:55:54 1994
  6070. +++ amiga/fsf/sh-utils/lib/getusershell.c    Sat Sep 28 00:00:00 1996
  6071. @@ -43,7 +43,7 @@ static int readname ();
  6072.  /* List of shells to use if the shells file is missing. */
  6073.  static char const* const default_shells[] =
  6074.  {
  6075. -  "/bin/sh", "/bin/csh", "/usr/bin/sh", "/usr/bin/csh", NULL
  6076. +  "/bin/sh", "/bin/ksh", "/bin/bash", NULL
  6077.  };
  6078.  
  6079.  /* Index of the next shell in `default_shells' to return.
  6080. diff -rup --new-file baseline/fsf/sh-utils/manifests/bin amiga/fsf/sh-utils/manifests/bin
  6081. --- baseline/fsf/sh-utils/manifests/bin    Wed Dec 31 17:00:00 1969
  6082. +++ amiga/fsf/sh-utils/manifests/bin    Wed Oct  9 23:32:31 1996
  6083. @@ -0,0 +1,59 @@
  6084. +COPYING
  6085. +COPYING.info
  6086. +bin/[
  6087. +bin/basename
  6088. +bin/date
  6089. +bin/dirname
  6090. +bin/echo
  6091. +bin/env
  6092. +bin/expr
  6093. +bin/false
  6094. +bin/groups
  6095. +bin/hostname
  6096. +bin/id
  6097. +bin/logname
  6098. +bin/nice
  6099. +bin/nohup
  6100. +bin/pathchk
  6101. +bin/printenv
  6102. +bin/printf
  6103. +bin/pwd
  6104. +bin/sleep
  6105. +bin/stty
  6106. +bin/tee
  6107. +bin/test
  6108. +bin/true
  6109. +bin/uname
  6110. +bin/users
  6111. +bin/whoami
  6112. +bin/yes
  6113. +guide/sh-utils.guide
  6114. +info/sh-utils.info
  6115. +man/man1/basename.1
  6116. +man/man1/date.1
  6117. +man/man1/dirname.1
  6118. +man/man1/echo.1
  6119. +man/man1/env.1
  6120. +man/man1/expr.1
  6121. +man/man1/false.1
  6122. +man/man1/groups.1
  6123. +man/man1/hostname.1
  6124. +man/man1/id.1
  6125. +man/man1/logname.1
  6126. +man/man1/nice.1
  6127. +man/man1/nohup.1
  6128. +man/man1/pathchk.1
  6129. +man/man1/printenv.1
  6130. +man/man1/printf.1
  6131. +man/man1/pwd.1
  6132. +man/man1/sleep.1
  6133. +man/man1/stty.1
  6134. +man/man1/tee.1
  6135. +man/man1/test.1
  6136. +man/man1/true.1
  6137. +man/man1/tty.1
  6138. +man/man1/uname.1
  6139. +man/man1/users.1
  6140. +man/man1/who.1
  6141. +man/man1/whoami.1
  6142. +man/man1/yes.1
  6143. diff -rup --new-file baseline/fsf/sh-utils/manifests/src amiga/fsf/sh-utils/manifests/src
  6144. --- baseline/fsf/sh-utils/manifests/src    Wed Dec 31 17:00:00 1969
  6145. +++ amiga/fsf/sh-utils/manifests/src    Sat Sep 28 00:00:00 1996
  6146. @@ -0,0 +1,124 @@
  6147. +fsf/sh-utils/COPYING
  6148. +fsf/sh-utils/COPYING.LIB
  6149. +fsf/sh-utils/ChangeLog
  6150. +fsf/sh-utils/INSTALL
  6151. +fsf/sh-utils/Makefile.in
  6152. +fsf/sh-utils/NEWS
  6153. +fsf/sh-utils/Product-Info
  6154. +fsf/sh-utils/README
  6155. +fsf/sh-utils/acconfig.h
  6156. +fsf/sh-utils/config.h.in
  6157. +fsf/sh-utils/configure
  6158. +fsf/sh-utils/configure.in
  6159. +fsf/sh-utils/doc/Makefile.in
  6160. +fsf/sh-utils/doc/sh-utils.texi
  6161. +fsf/sh-utils/doc/texinfo.tex
  6162. +fsf/sh-utils/doc/version.texi
  6163. +fsf/sh-utils/install-sh
  6164. +fsf/sh-utils/lib/Makefile.in
  6165. +fsf/sh-utils/lib/alloca.c
  6166. +fsf/sh-utils/lib/basename.c
  6167. +fsf/sh-utils/lib/error.c
  6168. +fsf/sh-utils/lib/full-write.c
  6169. +fsf/sh-utils/lib/getdate.c
  6170. +fsf/sh-utils/lib/getdate.y
  6171. +fsf/sh-utils/lib/gethostname.c
  6172. +fsf/sh-utils/lib/getline.c
  6173. +fsf/sh-utils/lib/getline.h
  6174. +fsf/sh-utils/lib/getopt.c
  6175. +fsf/sh-utils/lib/getopt.h
  6176. +fsf/sh-utils/lib/getopt1.c
  6177. +fsf/sh-utils/lib/getugroups.c
  6178. +fsf/sh-utils/lib/getusershell.c
  6179. +fsf/sh-utils/lib/group-member.c
  6180. +fsf/sh-utils/lib/group-member.h
  6181. +fsf/sh-utils/lib/long-options.c
  6182. +fsf/sh-utils/lib/long-options.h
  6183. +fsf/sh-utils/lib/memcmp.c
  6184. +fsf/sh-utils/lib/mktime.c
  6185. +fsf/sh-utils/lib/pathmax.h
  6186. +fsf/sh-utils/lib/posixtm.c
  6187. +fsf/sh-utils/lib/posixtm.y
  6188. +fsf/sh-utils/lib/putenv.c
  6189. +fsf/sh-utils/lib/regex.c
  6190. +fsf/sh-utils/lib/regex.h
  6191. +fsf/sh-utils/lib/safe-xstat.cin
  6192. +fsf/sh-utils/lib/safe-xstat.hin
  6193. +fsf/sh-utils/lib/stime.c
  6194. +fsf/sh-utils/lib/strcspn.c
  6195. +fsf/sh-utils/lib/strftime.c
  6196. +fsf/sh-utils/lib/stripslash.c
  6197. +fsf/sh-utils/lib/strstr.c
  6198. +fsf/sh-utils/lib/strtod.c
  6199. +fsf/sh-utils/lib/strtol.c
  6200. +fsf/sh-utils/lib/strtoul.c
  6201. +fsf/sh-utils/lib/xgetcwd.c
  6202. +fsf/sh-utils/lib/xgethostname.c
  6203. +fsf/sh-utils/lib/xmalloc.c
  6204. +fsf/sh-utils/lib/xstrdup.c
  6205. +fsf/sh-utils/man/Makefile.in
  6206. +fsf/sh-utils/man/basename.1
  6207. +fsf/sh-utils/man/date.1
  6208. +fsf/sh-utils/man/dirname.1
  6209. +fsf/sh-utils/man/echo.1
  6210. +fsf/sh-utils/man/env.1
  6211. +fsf/sh-utils/man/expr.1
  6212. +fsf/sh-utils/man/false.1
  6213. +fsf/sh-utils/man/groups.1
  6214. +fsf/sh-utils/man/hostname.1
  6215. +fsf/sh-utils/man/id.1
  6216. +fsf/sh-utils/man/logname.1
  6217. +fsf/sh-utils/man/nice.1
  6218. +fsf/sh-utils/man/nohup.1
  6219. +fsf/sh-utils/man/pathchk.1
  6220. +fsf/sh-utils/man/printenv.1
  6221. +fsf/sh-utils/man/printf.1
  6222. +fsf/sh-utils/man/pwd.1
  6223. +fsf/sh-utils/man/sleep.1
  6224. +fsf/sh-utils/man/stty.1
  6225. +fsf/sh-utils/man/su.1
  6226. +fsf/sh-utils/man/tee.1
  6227. +fsf/sh-utils/man/test.1
  6228. +fsf/sh-utils/man/true.1
  6229. +fsf/sh-utils/man/tty.1
  6230. +fsf/sh-utils/man/uname.1
  6231. +fsf/sh-utils/man/users.1
  6232. +fsf/sh-utils/man/who.1
  6233. +fsf/sh-utils/man/whoami.1
  6234. +fsf/sh-utils/man/yes.1
  6235. +fsf/sh-utils/manifests/bin
  6236. +fsf/sh-utils/manifests/src
  6237. +fsf/sh-utils/mkinstalldirs
  6238. +fsf/sh-utils/src/Makefile.in
  6239. +fsf/sh-utils/src/basename.c
  6240. +fsf/sh-utils/src/date.c
  6241. +fsf/sh-utils/src/dirname.c
  6242. +fsf/sh-utils/src/echo.c
  6243. +fsf/sh-utils/src/env.c
  6244. +fsf/sh-utils/src/expr.c
  6245. +fsf/sh-utils/src/false.sh
  6246. +fsf/sh-utils/src/groups.sh
  6247. +fsf/sh-utils/src/hostname.c
  6248. +fsf/sh-utils/src/id.c
  6249. +fsf/sh-utils/src/logname.c
  6250. +fsf/sh-utils/src/nice.c
  6251. +fsf/sh-utils/src/nohup.sh
  6252. +fsf/sh-utils/src/pathchk.c
  6253. +fsf/sh-utils/src/printenv.c
  6254. +fsf/sh-utils/src/printf.c
  6255. +fsf/sh-utils/src/pwd.c
  6256. +fsf/sh-utils/src/sleep.c
  6257. +fsf/sh-utils/src/stty.c
  6258. +fsf/sh-utils/src/su.c
  6259. +fsf/sh-utils/src/system.h
  6260. +fsf/sh-utils/src/tee.c
  6261. +fsf/sh-utils/src/test.c
  6262. +fsf/sh-utils/src/true.sh
  6263. +fsf/sh-utils/src/tty.c
  6264. +fsf/sh-utils/src/uname.c
  6265. +fsf/sh-utils/src/version.c
  6266. +fsf/sh-utils/src/version.h
  6267. +fsf/sh-utils/src/who.c
  6268. +fsf/sh-utils/src/whoami.c
  6269. +fsf/sh-utils/src/yes.c
  6270. +fsf/sh-utils/stamp-h.in
  6271. diff -rup --new-file baseline/fsf/sh-utils/src/Makefile.in amiga/fsf/sh-utils/src/Makefile.in
  6272. --- baseline/fsf/sh-utils/src/Makefile.in    Thu Nov  3 23:53:32 1994
  6273. +++ amiga/fsf/sh-utils/src/Makefile.in    Sat Sep 28 00:00:00 1996
  6274. @@ -46,12 +46,14 @@ version.o
  6275.  DISTFILES = Makefile.in system.h $(SOURCES) groups.sh nohup.sh \
  6276.  false.sh true.sh version.h
  6277.  
  6278. +# Amiga hacks - remove tty and who, since they need ttyname().
  6279.  PROGS = basename date dirname echo env expr false groups hostname id logname \
  6280. -pathchk printenv printf pwd sleep tee test true tty users who whoami yes @PROGS@
  6281. +pathchk printenv printf pwd sleep tee test true users whoami yes @PROGS@
  6282.  
  6283.  LIBPROGS =
  6284.  
  6285. -all: $(PROGS) su $(LIBPROGS)
  6286. +# Amiga hack - remove su since it needs getpass().
  6287. +all: $(PROGS) $(LIBPROGS)
  6288.  
  6289.  .SUFFIXES:
  6290.  .SUFFIXES: .c .o
  6291. @@ -74,7 +76,7 @@ install: all installdirs
  6292.            $(bindir)/`echo $$f|sed '$(transform)'`; \
  6293.      done
  6294.      $(RM) -f $(bindir)/'['; ln $(bindir)/$(binprefix)test $(bindir)/'['
  6295. -    @if test `./id -u` = 0; then \
  6296. +    @if false; then \
  6297.      echo you are root, so installing su; \
  6298.      $(INSTALL_PROGRAM) su $(bindir)/$(binprefix)su; \
  6299.      chown root $(bindir)/$(binprefix)su; \
  6300. @@ -149,7 +151,8 @@ false: false.sh .version
  6301.  
  6302.  groups: groups.sh .version
  6303.      $(RM) -f $@ $@-t
  6304. -    sed -e "s,@bindir@,$(bindir),g" \
  6305. +    # Amiga hack - avoid autoconf substitutions of @bindir@
  6306. +    sed -e "s,@bin.*dir@,$(bindir),g" \
  6307.          -e "s/@VERSION@/`cat .version`/" $(srcdir)/groups.sh \
  6308.          > $@-t
  6309.      mv $@-t $@
  6310. @@ -166,7 +169,8 @@ logname: logname.o
  6311.  
  6312.  nohup: nohup.sh .version
  6313.      $(RM) -f $@ $@-t
  6314. -    sed -e "s,@bindir@,$(bindir),g" \
  6315. +    # Amiga hack - avoid autoconf substitutions of @bindir@
  6316. +    sed -e "s,@bin.*dir@,$(bindir),g" \
  6317.          -e "s/@VERSION@/`cat .version`/" $(srcdir)/nohup.sh \
  6318.          > $@-t
  6319.      mv $@-t $@
  6320. diff -rup --new-file baseline/fsf/sh-utils/src/basename.c amiga/fsf/sh-utils/src/basename.c
  6321. --- baseline/fsf/sh-utils/src/basename.c    Thu Oct 20 21:59:41 1994
  6322. +++ amiga/fsf/sh-utils/src/basename.c    Sat Sep 28 00:00:00 1996
  6323. @@ -65,7 +65,6 @@ Usage: %s PATH [SUFFIX]\n\
  6324.    exit (status);
  6325.  }
  6326.  
  6327. -void
  6328.  main (argc, argv)
  6329.       int argc;
  6330.       char **argv;
  6331. diff -rup --new-file baseline/fsf/sh-utils/src/date.c amiga/fsf/sh-utils/src/date.c
  6332. --- baseline/fsf/sh-utils/src/date.c    Sat Oct  1 11:06:08 1994
  6333. +++ amiga/fsf/sh-utils/src/date.c    Sat Sep 28 00:00:00 1996
  6334. @@ -139,7 +139,6 @@ batch_convert (input_filename, format)
  6335.    return status;
  6336.  }
  6337.  
  6338. -void
  6339.  main (argc, argv)
  6340.       int argc;
  6341.       char **argv;
  6342. diff -rup --new-file baseline/fsf/sh-utils/src/dirname.c amiga/fsf/sh-utils/src/dirname.c
  6343. --- baseline/fsf/sh-utils/src/dirname.c    Thu Oct 20 21:59:42 1994
  6344. +++ amiga/fsf/sh-utils/src/dirname.c    Sat Sep 28 00:00:00 1996
  6345. @@ -54,7 +54,6 @@ Usage: %s PATH\n\
  6346.    exit (status);
  6347.  }
  6348.  
  6349. -void
  6350.  main (argc, argv)
  6351.       int argc;
  6352.       char **argv;
  6353. diff -rup --new-file baseline/fsf/sh-utils/src/echo.c amiga/fsf/sh-utils/src/echo.c
  6354. --- baseline/fsf/sh-utils/src/echo.c    Fri Sep 30 19:41:10 1994
  6355. +++ amiga/fsf/sh-utils/src/echo.c    Sat Sep 28 00:00:00 1996
  6356. @@ -101,7 +101,7 @@ Without -E, the following sequences are 
  6357.  /* Print the words in LIST to standard output.  If the first word is
  6358.     `-n', then don't print a trailing newline.  We also support the
  6359.     echo syntax from Version 9 unix systems. */
  6360. -void
  6361. +
  6362.  main (argc, argv)
  6363.       int argc;
  6364.       char **argv;
  6365. diff -rup --new-file baseline/fsf/sh-utils/src/env.c amiga/fsf/sh-utils/src/env.c
  6366. --- baseline/fsf/sh-utils/src/env.c    Fri Sep 30 19:41:11 1994
  6367. +++ amiga/fsf/sh-utils/src/env.c    Sat Sep 28 00:00:00 1996
  6368. @@ -111,7 +111,6 @@ static struct option const longopts[] =
  6369.    {NULL, 0, NULL, 0}
  6370.  };
  6371.  
  6372. -void
  6373.  main (argc, argv, envp)
  6374.       register int argc;
  6375.       register char **argv;
  6376. diff -rup --new-file baseline/fsf/sh-utils/src/expr.c amiga/fsf/sh-utils/src/expr.c
  6377. --- baseline/fsf/sh-utils/src/expr.c    Thu Oct 20 21:59:43 1994
  6378. +++ amiga/fsf/sh-utils/src/expr.c    Sat Sep 28 00:00:00 1996
  6379. @@ -150,7 +150,6 @@ Pattern matches return the string matche
  6380.    exit (status);
  6381.  }
  6382.  
  6383. -void
  6384.  main (argc, argv)
  6385.       int argc;
  6386.       char **argv;
  6387. diff -rup --new-file baseline/fsf/sh-utils/src/hostname.c amiga/fsf/sh-utils/src/hostname.c
  6388. --- baseline/fsf/sh-utils/src/hostname.c    Fri Sep 30 19:41:13 1994
  6389. +++ amiga/fsf/sh-utils/src/hostname.c    Sat Sep 28 00:00:00 1996
  6390. @@ -73,7 +73,6 @@ Usage: %s [NAME]\n\
  6391.    exit (status);
  6392.  }
  6393.  
  6394. -void
  6395.  main (argc, argv)
  6396.       int argc;
  6397.       char **argv;
  6398. diff -rup --new-file baseline/fsf/sh-utils/src/id.c amiga/fsf/sh-utils/src/id.c
  6399. --- baseline/fsf/sh-utils/src/id.c    Mon Oct 10 18:47:01 1994
  6400. +++ amiga/fsf/sh-utils/src/id.c    Sat Sep 28 00:00:00 1996
  6401. @@ -102,7 +102,6 @@ static struct option const longopts[] =
  6402.    {NULL, 0, NULL, 0}
  6403.  };
  6404.  
  6405. -void
  6406.  main (argc, argv)
  6407.       int argc;
  6408.       char **argv;
  6409. diff -rup --new-file baseline/fsf/sh-utils/src/logname.c amiga/fsf/sh-utils/src/logname.c
  6410. --- baseline/fsf/sh-utils/src/logname.c    Fri Sep 30 19:41:15 1994
  6411. +++ amiga/fsf/sh-utils/src/logname.c    Sat Sep 28 00:00:00 1996
  6412. @@ -58,7 +58,6 @@ usage (status)
  6413.    exit (status);
  6414.  }
  6415.  
  6416. -void
  6417.  main (argc, argv)
  6418.       int argc;
  6419.       char **argv;
  6420. diff -rup --new-file baseline/fsf/sh-utils/src/nice.c amiga/fsf/sh-utils/src/nice.c
  6421. --- baseline/fsf/sh-utils/src/nice.c    Fri Sep 30 19:41:16 1994
  6422. +++ amiga/fsf/sh-utils/src/nice.c    Sat Sep 28 00:00:00 1996
  6423. @@ -54,7 +54,6 @@ static struct option const longopts[] =
  6424.    {NULL, 0, NULL, 0}
  6425.  };
  6426.  
  6427. -void
  6428.  main (argc, argv)
  6429.       int argc;
  6430.       char **argv;
  6431. diff -rup --new-file baseline/fsf/sh-utils/src/pathchk.c amiga/fsf/sh-utils/src/pathchk.c
  6432. --- baseline/fsf/sh-utils/src/pathchk.c    Thu Oct 20 21:59:44 1994
  6433. +++ amiga/fsf/sh-utils/src/pathchk.c    Sat Sep 28 00:00:00 1996
  6434. @@ -114,7 +114,6 @@ static struct option const longopts[] =
  6435.    {NULL, 0, NULL, 0}
  6436.  };
  6437.  
  6438. -void
  6439.  main (argc, argv)
  6440.       int argc;
  6441.       char **argv;
  6442. diff -rup --new-file baseline/fsf/sh-utils/src/printenv.c amiga/fsf/sh-utils/src/printenv.c
  6443. --- baseline/fsf/sh-utils/src/printenv.c    Fri Sep 30 19:41:18 1994
  6444. +++ amiga/fsf/sh-utils/src/printenv.c    Sat Sep 28 00:00:00 1996
  6445. @@ -76,7 +76,6 @@ If no VARIABLE, print them all.\n\
  6446.    exit (status);
  6447.  }
  6448.  
  6449. -void
  6450.  main (argc, argv)
  6451.       int argc;
  6452.       char **argv;
  6453. diff -rup --new-file baseline/fsf/sh-utils/src/printf.c amiga/fsf/sh-utils/src/printf.c
  6454. --- baseline/fsf/sh-utils/src/printf.c    Fri Sep 30 19:41:19 1994
  6455. +++ amiga/fsf/sh-utils/src/printf.c    Sat Sep 28 00:00:00 1996
  6456. @@ -125,7 +125,6 @@ ARGUMENTs converted to proper type first
  6457.    exit (status);
  6458.  }
  6459.  
  6460. -void
  6461.  main (argc, argv)
  6462.       int argc;
  6463.       char **argv;
  6464. diff -rup --new-file baseline/fsf/sh-utils/src/pwd.c amiga/fsf/sh-utils/src/pwd.c
  6465. --- baseline/fsf/sh-utils/src/pwd.c    Fri Sep 30 19:41:20 1994
  6466. +++ amiga/fsf/sh-utils/src/pwd.c    Sat Sep 28 00:00:00 1996
  6467. @@ -50,7 +50,6 @@ usage (status)
  6468.    exit (status);
  6469.  }
  6470.  
  6471. -void
  6472.  main (argc, argv)
  6473.       int argc;
  6474.       char **argv;
  6475. diff -rup --new-file baseline/fsf/sh-utils/src/sleep.c amiga/fsf/sh-utils/src/sleep.c
  6476. --- baseline/fsf/sh-utils/src/sleep.c    Thu Oct 20 21:59:45 1994
  6477. +++ amiga/fsf/sh-utils/src/sleep.c    Sat Sep 28 00:00:00 1996
  6478. @@ -64,7 +64,6 @@ SUFFIX may be s for seconds, m for minut
  6479.    exit (status);
  6480.  }
  6481.  
  6482. -void
  6483.  main (argc, argv)
  6484.       int argc;
  6485.       char **argv;
  6486. diff -rup --new-file baseline/fsf/sh-utils/src/stty.c amiga/fsf/sh-utils/src/stty.c
  6487. --- baseline/fsf/sh-utils/src/stty.c    Fri Sep 30 19:41:23 1994
  6488. +++ amiga/fsf/sh-utils/src/stty.c    Sat Sep 28 00:00:00 1996
  6489. @@ -623,7 +623,6 @@ settings, CHAR is taken literally, or co
  6490.    exit (status);
  6491.  }
  6492.  
  6493. -void
  6494.  main (argc, argv)
  6495.       int argc;
  6496.       char **argv;
  6497. diff -rup --new-file baseline/fsf/sh-utils/src/su.c amiga/fsf/sh-utils/src/su.c
  6498. --- baseline/fsf/sh-utils/src/su.c    Mon Oct 10 18:47:02 1994
  6499. +++ amiga/fsf/sh-utils/src/su.c    Sat Sep 28 00:00:00 1996
  6500. @@ -123,10 +123,10 @@ uid_t getuid ();
  6501.  #include "version.h"
  6502.  
  6503.  /* The default PATH for simulated logins to non-superuser accounts.  */
  6504. -#define DEFAULT_LOGIN_PATH ":/usr/ucb:/bin:/usr/bin"
  6505. +#define DEFAULT_LOGIN_PATH ":/bin"
  6506.  
  6507.  /* The default PATH for simulated logins to superuser accounts.  */
  6508. -#define DEFAULT_ROOT_LOGIN_PATH "/usr/ucb:/bin:/usr/bin:/etc"
  6509. +#define DEFAULT_ROOT_LOGIN_PATH "/ade"
  6510.  
  6511.  /* The shell to run if none is given in the user's passwd entry.  */
  6512.  #define DEFAULT_SHELL "/bin/sh"
  6513. @@ -188,7 +188,6 @@ static struct option const longopts[] =
  6514.    {0, 0, 0, 0}
  6515.  };
  6516.  
  6517. -void
  6518.  main (argc, argv)
  6519.       int argc;
  6520.       char **argv;
  6521. diff -rup --new-file baseline/fsf/sh-utils/src/tee.c amiga/fsf/sh-utils/src/tee.c
  6522. --- baseline/fsf/sh-utils/src/tee.c    Fri Sep 30 19:41:25 1994
  6523. +++ amiga/fsf/sh-utils/src/tee.c    Sat Sep 28 00:00:00 1996
  6524. @@ -77,7 +77,6 @@ usage (status)
  6525.    exit (status);
  6526.  }
  6527.  
  6528. -void
  6529.  main (argc, argv)
  6530.       int argc;
  6531.       char **argv;
  6532. diff -rup --new-file baseline/fsf/sh-utils/src/tty.c amiga/fsf/sh-utils/src/tty.c
  6533. --- baseline/fsf/sh-utils/src/tty.c    Fri Sep 30 19:41:27 1994
  6534. +++ amiga/fsf/sh-utils/src/tty.c    Sat Sep 28 00:00:00 1996
  6535. @@ -55,7 +55,6 @@ static struct option const longopts[] =
  6536.    {NULL, 0, NULL, 0}
  6537.  };
  6538.  
  6539. -void
  6540.  main (argc, argv)
  6541.       int argc;
  6542.       char **argv;
  6543. diff -rup --new-file baseline/fsf/sh-utils/src/uname.c amiga/fsf/sh-utils/src/uname.c
  6544. --- baseline/fsf/sh-utils/src/uname.c    Fri Sep 30 19:41:28 1994
  6545. +++ amiga/fsf/sh-utils/src/uname.c    Sat Sep 28 00:00:00 1996
  6546. @@ -82,7 +82,6 @@ static struct option const long_options[
  6547.    {NULL, 0, NULL, 0}
  6548.  };
  6549.  
  6550. -void
  6551.  main (argc, argv)
  6552.       int argc;
  6553.       char **argv;
  6554. diff -rup --new-file baseline/fsf/sh-utils/src/who.c amiga/fsf/sh-utils/src/who.c
  6555. --- baseline/fsf/sh-utils/src/who.c    Fri Sep 30 19:41:29 1994
  6556. +++ amiga/fsf/sh-utils/src/who.c    Sat Sep 28 00:00:00 1996
  6557. @@ -146,7 +146,6 @@ static struct option const longopts[] =
  6558.    {NULL, 0, NULL, 0}
  6559.  };
  6560.  
  6561. -void
  6562.  main (argc, argv)
  6563.       int argc;
  6564.       char **argv;
  6565. diff -rup --new-file baseline/fsf/sh-utils/src/whoami.c amiga/fsf/sh-utils/src/whoami.c
  6566. --- baseline/fsf/sh-utils/src/whoami.c    Fri Sep 30 19:41:30 1994
  6567. +++ amiga/fsf/sh-utils/src/whoami.c    Sat Sep 28 00:00:00 1996
  6568. @@ -64,7 +64,6 @@ Same as id -un.\n\
  6569.    exit (status);
  6570.  }
  6571.  
  6572. -void
  6573.  main (argc, argv)
  6574.       int argc;
  6575.       char *argv[];
  6576. diff -rup --new-file baseline/fsf/sh-utils/src/yes.c amiga/fsf/sh-utils/src/yes.c
  6577. --- baseline/fsf/sh-utils/src/yes.c    Fri Sep 30 19:41:31 1994
  6578. +++ amiga/fsf/sh-utils/src/yes.c    Sat Sep 28 00:00:00 1996
  6579. @@ -48,7 +48,6 @@ Without any STRING, assume `y'.\n\
  6580.    exit (status);
  6581.  }
  6582.  
  6583. -void
  6584.  main (argc, argv)
  6585.       int argc;
  6586.       char **argv;
  6587.