home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / sharutils-4.1-diffs.gz / sharutils-4.1-diffs
Text File  |  1996-10-13  |  71KB  |  2,265 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/sharutils/Product-Info amiga/fsf/sharutils/Product-Info
  12. --- baseline/fsf/sharutils/Product-Info    Wed Dec 31 17:00:00 1969
  13. +++ amiga/fsf/sharutils/Product-Info    Sat Sep 28 00:00:00 1996
  14. @@ -0,0 +1,34 @@
  15. +.name
  16. +sharutils
  17. +.fullname
  18. +Shell Archive Utilities
  19. +.type
  20. +Programmer Tool
  21. +.short
  22. +Shell archive utils and uuencode/decode.
  23. +.description
  24. +`shar' makes so-called shell archives out of many files, preparing
  25. +them for transmission by electronic mail services.  `unshar' helps
  26. +unpacking shell archives after reception.  The core of both programs
  27. +is initially derived from public domain.  Some modules and other
  28. +code sections are freely borrowed from other GNU distributions,
  29. +bringing `shar' under the terms of the GNU General Public License.
  30. +
  31. +`uuencode' prepares a file for transmission over an electronic
  32. +channel which ignores or otherwise mangles the eight bit (high
  33. +order bit) of bytes.  `uudecode' does the converse transformation.
  34. +They are derived from the BSD NET/2 distribution.  If you have more
  35. +powerful `uuencode' and `uudecode' already available, you may want
  36. +to use `./configure --disable-uucode' to prevent their installation.
  37. +.version
  38. +4.1
  39. +.author
  40. +Free Software Foundation
  41. +.distribution
  42. +GNU Public License
  43. +.docs
  44. +README
  45. +.described-by
  46. +Fred Fish (fnf@fishpond.cygnus.com)
  47. +.submittal
  48. +Downloaded via ftp from prep.ai.mit.edu:pub/gnu.
  49. diff -rup --new-file baseline/fsf/sharutils/configure amiga/fsf/sharutils/configure
  50. --- baseline/fsf/sharutils/configure    Sun Nov  6 00:00:00 1994
  51. +++ amiga/fsf/sharutils/configure    Mon Sep 30 22:49:50 1996
  52. @@ -1,8 +1,8 @@
  53. -#!/bin/sh
  54. +#! /bin/sh
  55.  
  56.  # Guess values for system-dependent variables and create Makefiles.
  57. -# Generated automatically using autoconf version 2.1 
  58. -# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  59. +# Generated automatically using autoconf version 2.10 
  60. +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  61.  #
  62.  # This configure script is free software; the Free Software Foundation
  63.  # gives unlimited permission to copy, distribute and modify it.
  64. @@ -38,9 +38,25 @@ target=NONE
  65.  verbose=
  66.  x_includes=NONE
  67.  x_libraries=NONE
  68. +bindir='${exec_prefix}/bin'
  69. +sbindir='${exec_prefix}/sbin'
  70. +libexecdir='${exec_prefix}/libexec'
  71. +datadir='${prefix}/share'
  72. +sysconfdir='${prefix}/etc'
  73. +sharedstatedir='${prefix}/com'
  74. +localstatedir='${prefix}/var'
  75. +libdir='${exec_prefix}/lib'
  76. +includedir='${prefix}/include'
  77. +oldincludedir='/usr/include'
  78. +infodir='${prefix}/info'
  79. +guidedir='${prefix}/guide'
  80. +psdir='${prefix}/ps'
  81. +dvidir='${prefix}/dvi'
  82. +mandir='${prefix}/man'
  83.  
  84.  # Initialize some other variables.
  85.  subdirs=
  86. +MFLAGS= MAKEFLAGS=
  87.  
  88.  ac_prev=
  89.  for ac_option
  90. @@ -62,9 +78,14 @@ do
  91.  
  92.    case "$ac_option" in
  93.  
  94. -  -build | --build | --buil | --bui | --bu | --b)
  95. +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  96. +    ac_prev=bindir ;;
  97. +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  98. +    bindir="$ac_optarg" ;;
  99. +
  100. +  -build | --build | --buil | --bui | --bu)
  101.      ac_prev=build ;;
  102. -  -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  103. +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  104.      build="$ac_optarg" ;;
  105.  
  106.    -cache-file | --cache-file | --cache-fil | --cache-fi \
  107. @@ -74,6 +95,12 @@ do
  108.    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  109.      cache_file="$ac_optarg" ;;
  110.  
  111. +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  112. +    ac_prev=datadir ;;
  113. +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  114. +  | --da=*)
  115. +    datadir="$ac_optarg" ;;
  116. +
  117.    -disable-* | --disable-*)
  118.      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  119.      # Reject names that are not valid shell variable names.
  120. @@ -124,12 +151,32 @@ Configuration:
  121.  Directory and file names:
  122.    --prefix=PREFIX         install architecture-independent files in PREFIX
  123.                            [$ac_default_prefix]
  124. -  --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  125. +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  126.                            [same as prefix]
  127. +  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  128. +  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  129. +  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  130. +  --datadir=DIR           read-only architecture-independent data in DIR
  131. +                          [PREFIX/share]
  132. +  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  133. +  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  134. +                          [PREFIX/com]
  135. +  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  136. +  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  137. +  --includedir=DIR        C header files in DIR [PREFIX/include]
  138. +  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  139. +  --infodir=DIR           info documentation in DIR [PREFIX/info]
  140. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  141. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  142. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  143. +  --mandir=DIR            man documentation in DIR [PREFIX/man]
  144.    --srcdir=DIR            find the sources in DIR [configure dir or ..]
  145.    --program-prefix=PREFIX prepend PREFIX to installed program names
  146.    --program-suffix=SUFFIX append SUFFIX to installed program names
  147. -  --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  148. +  --program-transform-name=PROGRAM
  149. +                          run sed PROGRAM on installed program names
  150. +EOF
  151. +    cat << EOF
  152.  Host type:
  153.    --build=BUILD           configure for building on BUILD [BUILD=HOST]
  154.    --host=HOST             configure for HOST [guessed]
  155. @@ -141,8 +188,10 @@ Features and packages:
  156.    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  157.    --x-includes=DIR        X include files are in DIR
  158.    --x-libraries=DIR       X library files are in DIR
  159. ---enable and --with options recognized:$ac_help
  160.  EOF
  161. +    if test -n "$ac_help"; then
  162. +      echo "--enable and --with options recognized:$ac_help"
  163. +    fi
  164.      exit 0 ;;
  165.  
  166.    -host | --host | --hos | --ho)
  167. @@ -150,6 +199,56 @@ EOF
  168.    -host=* | --host=* | --hos=* | --ho=*)
  169.      host="$ac_optarg" ;;
  170.  
  171. +  -includedir | --includedir | --includedi | --included | --include \
  172. +  | --includ | --inclu | --incl | --inc)
  173. +    ac_prev=includedir ;;
  174. +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  175. +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  176. +    includedir="$ac_optarg" ;;
  177. +
  178. +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  179. +    ac_prev=infodir ;;
  180. +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  181. +    infodir="$ac_optarg" ;;
  182. +
  183. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  184. +   ac_prev=guidedir ;;
  185. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  186. +
  187. + -psdir | --psdir | --psdi | --psd | --ps)
  188. +   ac_prev=psdir ;;
  189. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  190. +
  191. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  192. +   ac_prev=dvidir ;;
  193. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  194. +
  195. +  -libdir | --libdir | --libdi | --libd)
  196. +    ac_prev=libdir ;;
  197. +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  198. +    libdir="$ac_optarg" ;;
  199. +
  200. +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  201. +  | --libexe | --libex | --libe)
  202. +    ac_prev=libexecdir ;;
  203. +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  204. +  | --libexe=* | --libex=* | --libe=*)
  205. +    libexecdir="$ac_optarg" ;;
  206. +
  207. +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  208. +  | --localstate | --localstat | --localsta | --localst \
  209. +  | --locals | --local | --loca | --loc | --lo)
  210. +    ac_prev=localstatedir ;;
  211. +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  212. +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  213. +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  214. +    localstatedir="$ac_optarg" ;;
  215. +
  216. +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  217. +    ac_prev=mandir ;;
  218. +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  219. +    mandir="$ac_optarg" ;;
  220. +
  221.    -nfp | --nfp | --nf)
  222.      # Obsolete; use --without-fp.
  223.      with_fp=no ;;
  224. @@ -162,6 +261,15 @@ EOF
  225.    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  226.      no_recursion=yes ;;
  227.  
  228. +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  229. +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  230. +  | --oldin | --oldi | --old | --ol | --o)
  231. +    ac_prev=oldincludedir ;;
  232. +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  233. +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  234. +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  235. +    oldincludedir="$ac_optarg" ;;
  236. +
  237.    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  238.      ac_prev=prefix ;;
  239.    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  240. @@ -202,6 +310,23 @@ EOF
  241.    | -silent | --silent | --silen | --sile | --sil)
  242.      silent=yes ;;
  243.  
  244. +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  245. +    ac_prev=sbindir ;;
  246. +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  247. +  | --sbi=* | --sb=*)
  248. +    sbindir="$ac_optarg" ;;
  249. +
  250. +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  251. +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  252. +  | --sharedst | --shareds | --shared | --share | --shar \
  253. +  | --sha | --sh)
  254. +    ac_prev=sharedstatedir ;;
  255. +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  256. +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  257. +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  258. +  | --sha=* | --sh=*)
  259. +    sharedstatedir="$ac_optarg" ;;
  260. +
  261.    -site | --site | --sit)
  262.      ac_prev=site ;;
  263.    -site=* | --site=* | --sit=*)
  264. @@ -212,6 +337,13 @@ EOF
  265.    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  266.      srcdir="$ac_optarg" ;;
  267.  
  268. +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  269. +  | --syscon | --sysco | --sysc | --sys | --sy)
  270. +    ac_prev=sysconfdir ;;
  271. +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  272. +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  273. +    sysconfdir="$ac_optarg" ;;
  274. +
  275.    -target | --target | --targe | --targ | --tar | --ta | --t)
  276.      ac_prev=target ;;
  277.    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  278. @@ -221,7 +353,7 @@ EOF
  279.      verbose=yes ;;
  280.  
  281.    -version | --version | --versio | --versi | --vers)
  282. -    echo "configure generated by autoconf version 2.1"
  283. +    echo "configure generated by autoconf version 2.10"
  284.      exit 0 ;;
  285.  
  286.    -with-* | --with-*)
  287. @@ -267,7 +399,7 @@ EOF
  288.    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  289.      ;;
  290.  
  291. -  *) 
  292. +  *)
  293.      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  294.        echo "configure: warning: $ac_option: invalid host type" 1>&2
  295.      fi
  296. @@ -284,19 +416,20 @@ if test -n "$ac_prev"; then
  297.    { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  298.  fi
  299.  
  300. -trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  301. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  302.  
  303.  # File descriptor usage:
  304. -# 0 unused; standard input
  305. +# 0 standard input
  306.  # 1 file creation
  307.  # 2 errors and warnings
  308. -# 3 unused; some systems may open it to /dev/tty
  309. -# 4 checking for... messages and results
  310. +# 3 some systems may open it to /dev/tty
  311. +# 4 used on the Kubota Titan
  312. +# 6 checking for... messages and results
  313.  # 5 compiler messages saved in config.log
  314.  if test "$silent" = yes; then
  315. -  exec 4>/dev/null
  316. +  exec 6>/dev/null
  317.  else
  318. -  exec 4>&1
  319. +  exec 6>&1
  320.  fi
  321.  exec 5>./config.log
  322.  
  323. @@ -386,8 +519,8 @@ fi
  324.  ac_ext=c
  325.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  326.  ac_cpp='$CPP $CPPFLAGS'
  327. -ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
  328. -ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  329. +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  330. +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  331.  
  332.  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  333.    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  334. @@ -406,8 +539,10 @@ fi
  335.  if test "$program_transform_name" = s,x,x,; then
  336.    program_transform_name=
  337.  else
  338. -  # Double any \ or $.
  339. -  echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
  340. +  # Double any \ or $.  echo might interpret backslashes.
  341. +  cat <<\EOF_SED > conftestsed
  342. +s,\\,\\\\,g; s,\$,$$,g
  343. +EOF_SED
  344.    program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  345.    rm -f conftestsed
  346.  fi
  347. @@ -438,9 +573,9 @@ EOF
  348.  
  349.  # Extract the first word of "gcc", so it can be a program name with args.
  350.  set dummy gcc; ac_word=$2
  351. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  352. -if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  353. -  echo $ac_n "(cached) $ac_c" 1>&4
  354. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  355. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  356. +  echo $ac_n "(cached) $ac_c" 1>&6
  357.  else
  358.    if test -n "$CC"; then
  359.    ac_cv_prog_CC="$CC" # Let the user override the test.
  360. @@ -454,39 +589,88 @@ else
  361.      fi
  362.    done
  363.    IFS="$ac_save_ifs"
  364. -  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  365.  fi
  366.  fi
  367.  CC="$ac_cv_prog_CC"
  368.  if test -n "$CC"; then
  369. -  echo "$ac_t""$CC" 1>&4
  370. +  echo "$ac_t""$CC" 1>&6
  371.  else
  372. -  echo "$ac_t""no" 1>&4
  373. +  echo "$ac_t""no" 1>&6
  374.  fi
  375.  
  376. +if test -z "$CC"; then
  377. +  # Extract the first word of "cc", so it can be a program name with args.
  378. +set dummy cc; ac_word=$2
  379. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  380. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  381. +  echo $ac_n "(cached) $ac_c" 1>&6
  382. +else
  383. +  if test -n "$CC"; then
  384. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  385. +else
  386. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  387. +  ac_prog_rejected=no
  388. +  for ac_dir in $PATH; do
  389. +    test -z "$ac_dir" && ac_dir=.
  390. +    if test -f $ac_dir/$ac_word; then
  391. +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  392. +        ac_prog_rejected=yes
  393. +    continue
  394. +      fi
  395. +      ac_cv_prog_CC="cc"
  396. +      break
  397. +    fi
  398. +  done
  399. +  IFS="$ac_save_ifs"
  400. +if test $ac_prog_rejected = yes; then
  401. +  # We found a bogon in the path, so make sure we never use it.
  402. +  set dummy $ac_cv_prog_CC
  403. +  shift
  404. +  if test $# -gt 0; then
  405. +    # We chose a different compiler from the bogus one.
  406. +    # However, it has the same basename, so the bogon will be chosen
  407. +    # first if we set CC to just the basename; use the full file name.
  408. +    shift
  409. +    set dummy "$ac_dir/$ac_word" "$@"
  410. +    shift
  411. +    ac_cv_prog_CC="$@"
  412. +  fi
  413. +fi
  414. +fi
  415. +fi
  416. +CC="$ac_cv_prog_CC"
  417. +if test -n "$CC"; then
  418. +  echo "$ac_t""$CC" 1>&6
  419. +else
  420. +  echo "$ac_t""no" 1>&6
  421. +fi
  422.  
  423. -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
  424. -if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  425. -  echo $ac_n "(cached) $ac_c" 1>&4
  426. +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  427. +fi
  428. +
  429. +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  430. +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  431. +  echo $ac_n "(cached) $ac_c" 1>&6
  432.  else
  433.    cat > conftest.c <<EOF
  434.  #ifdef __GNUC__
  435.    yes;
  436.  #endif
  437.  EOF
  438. -if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  439. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  440.    ac_cv_prog_gcc=yes
  441.  else
  442.    ac_cv_prog_gcc=no
  443.  fi
  444.  fi
  445. -echo "$ac_t""$ac_cv_prog_gcc" 1>&4
  446. +
  447. +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  448.  if test $ac_cv_prog_gcc = yes; then
  449.    GCC=yes
  450.    if test "${CFLAGS+set}" != set; then
  451. -    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
  452. -if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  453. -  echo $ac_n "(cached) $ac_c" 1>&4
  454. +    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  455. +if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  456. +  echo $ac_n "(cached) $ac_c" 1>&6
  457.  else
  458.    echo 'void f(){}' > conftest.c
  459.  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  460. @@ -497,11 +681,12 @@ fi
  461.  rm -f conftest*
  462.  
  463.  fi
  464. -    echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
  465. +
  466. +echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  467.      if test $ac_cv_prog_gcc_g = yes; then
  468. -      CFLAGS="-g -O"
  469. +      CFLAGS="-g -O2"
  470.      else
  471. -      CFLAGS="-O"
  472. +      CFLAGS="-O2"
  473.      fi
  474.    fi
  475.  else
  476. @@ -535,18 +720,20 @@ ac_configure=$ac_aux_dir/configure # Thi
  477.  # SunOS /usr/etc/install
  478.  # IRIX /sbin/install
  479.  # AIX /bin/install
  480. +# AmigaOS /c/install
  481.  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  482.  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  483.  # ./install, which can be erroneously created by make from ./install.sh.
  484. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  485. +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  486.  if test -z "$INSTALL"; then
  487. -if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  488. -  echo $ac_n "(cached) $ac_c" 1>&4
  489. +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  490. +  echo $ac_n "(cached) $ac_c" 1>&6
  491.  else
  492.      IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  493.    for ac_dir in $PATH; do
  494. -    case "$ac_dir" in
  495. -    ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
  496. +    # Account for people who put trailing slashes in PATH elements.
  497. +    case "$ac_dir/" in
  498. +    /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  499.      *)
  500.        # OSF1 and SCO ODT 3.0 have their own names for install.
  501.        for ac_prog in ginstall installbsd scoinst install; do
  502. @@ -566,12 +753,19 @@ else
  503.      esac
  504.    done
  505.    IFS="$ac_save_ifs"
  506. -  # As a last resort, use the slow shell script.
  507. -  test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  508. +
  509.  fi
  510. -  INSTALL="$ac_cv_path_install"
  511. +  if test "${ac_cv_path_install+set}" = set; then
  512. +    INSTALL="$ac_cv_path_install"
  513. +  else
  514. +    # As a last resort, use the slow shell script.  We don't cache a
  515. +    # path for INSTALL within a source directory, because that will
  516. +    # break other packages using the cache if that directory is
  517. +    # removed, or if the path is relative.
  518. +    INSTALL="$ac_install_sh"
  519. +  fi
  520.  fi
  521. -echo "$ac_t""$INSTALL" 1>&4
  522. +echo "$ac_t""$INSTALL" 1>&6
  523.  
  524.  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  525.  # It thinks the first close brace ends the variable substitution.
  526. @@ -581,9 +775,9 @@ test -z "$INSTALL_DATA" && INSTALL_DATA=
  527.  
  528.  # Extract the first word of "ranlib", so it can be a program name with args.
  529.  set dummy ranlib; ac_word=$2
  530. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  531. -if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  532. -  echo $ac_n "(cached) $ac_c" 1>&4
  533. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  534. +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  535. +  echo $ac_n "(cached) $ac_c" 1>&6
  536.  else
  537.    if test -n "$RANLIB"; then
  538.    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  539. @@ -602,20 +796,20 @@ fi
  540.  fi
  541.  RANLIB="$ac_cv_prog_RANLIB"
  542.  if test -n "$RANLIB"; then
  543. -  echo "$ac_t""$RANLIB" 1>&4
  544. +  echo "$ac_t""$RANLIB" 1>&6
  545.  else
  546. -  echo "$ac_t""no" 1>&4
  547. +  echo "$ac_t""no" 1>&6
  548.  fi
  549.  
  550.  
  551. -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
  552. +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  553.  # On Suns, sometimes $CPP names a directory.
  554.  if test -n "$CPP" && test -d "$CPP"; then
  555.    CPP=
  556.  fi
  557.  if test -z "$CPP"; then
  558. -if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  559. -  echo $ac_n "(cached) $ac_c" 1>&4
  560. +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  561. +  echo $ac_n "(cached) $ac_c" 1>&6
  562.  else
  563.      # This must be in double quotes, not single quotes, because CPP may get
  564.    # substituted into the Makefile and "${CC-cc}" will confuse make.
  565. @@ -623,12 +817,13 @@ else
  566.    # On the NeXT, cc -E runs the code through the compiler's parser,
  567.    # not just through cpp.
  568.    cat > conftest.$ac_ext <<EOF
  569. -#line 627 "configure"
  570. +#line 821 "configure"
  571.  #include "confdefs.h"
  572.  #include <assert.h>
  573.  Syntax Error
  574.  EOF
  575. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  576. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  577. +{ (eval echo configure:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  578.  ac_err=`grep -v '^ *+' conftest.out`
  579.  if test -z "$ac_err"; then
  580.    :
  581. @@ -637,12 +832,13 @@ else
  582.    rm -rf conftest*
  583.    CPP="${CC-cc} -E -traditional-cpp"
  584.    cat > conftest.$ac_ext <<EOF
  585. -#line 641 "configure"
  586. +#line 836 "configure"
  587.  #include "confdefs.h"
  588.  #include <assert.h>
  589.  Syntax Error
  590.  EOF
  591. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  592. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  593. +{ (eval echo configure:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  594.  ac_err=`grep -v '^ *+' conftest.out`
  595.  if test -z "$ac_err"; then
  596.    :
  597. @@ -656,13 +852,15 @@ fi
  598.  rm -f conftest*
  599.    ac_cv_prog_CPP="$CPP"
  600.  fi
  601. +  CPP="$ac_cv_prog_CPP"
  602. +else
  603. +  ac_cv_prog_CPP="$CPP"
  604.  fi
  605. -CPP="$ac_cv_prog_CPP"
  606. -echo "$ac_t""$CPP" 1>&4
  607. +echo "$ac_t""$CPP" 1>&6
  608.  
  609. -echo $ac_n "checking for AIX""... $ac_c" 1>&4
  610. +echo $ac_n "checking for AIX""... $ac_c" 1>&6
  611.  cat > conftest.$ac_ext <<EOF
  612. -#line 666 "configure"
  613. +#line 864 "configure"
  614.  #include "confdefs.h"
  615.  #ifdef _AIX
  616.    yes
  617. @@ -672,22 +870,22 @@ EOF
  618.  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  619.    egrep "yes" >/dev/null 2>&1; then
  620.    rm -rf conftest*
  621. -  echo "$ac_t""yes" 1>&4; cat >> confdefs.h <<\EOF
  622. +  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  623.  #define _ALL_SOURCE 1
  624.  EOF
  625.  
  626.  else
  627.    rm -rf conftest*
  628. -  echo "$ac_t""no" 1>&4
  629. +  echo "$ac_t""no" 1>&6
  630.  fi
  631.  rm -f conftest*
  632.  
  633.  
  634. -echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&4
  635. +echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  636.  if test -d /etc/conf/kconfig.d &&
  637.    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  638.  then
  639. -  echo "$ac_t""yes" 1>&4
  640. +  echo "$ac_t""yes" 1>&6
  641.    ISC=yes # If later tests want to check for ISC.
  642.    cat >> confdefs.h <<\EOF
  643.  #define _POSIX_SOURCE 1
  644. @@ -699,21 +897,22 @@ EOF
  645.      CC="$CC -Xp"
  646.    fi
  647.  else
  648. -  echo "$ac_t""no" 1>&4
  649. +  echo "$ac_t""no" 1>&6
  650.    ISC=
  651.  fi
  652.  
  653.  ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  654. -echo $ac_n "checking for minix/config.h""... $ac_c" 1>&4
  655. -if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  656. -  echo $ac_n "(cached) $ac_c" 1>&4
  657. +echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  658. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  659. +  echo $ac_n "(cached) $ac_c" 1>&6
  660.  else
  661.    cat > conftest.$ac_ext <<EOF
  662. -#line 713 "configure"
  663. +#line 911 "configure"
  664.  #include "confdefs.h"
  665.  #include <minix/config.h>
  666.  EOF
  667. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  668. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  669. +{ (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  670.  ac_err=`grep -v '^ *+' conftest.out`
  671.  if test -z "$ac_err"; then
  672.    rm -rf conftest*
  673. @@ -726,10 +925,10 @@ fi
  674.  rm -f conftest*
  675.  fi
  676.  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  677. -  echo "$ac_t""yes" 1>&4
  678. +  echo "$ac_t""yes" 1>&6
  679.    MINIX=yes
  680.  else
  681. -  echo "$ac_t""no" 1>&4
  682. +  echo "$ac_t""no" 1>&6
  683.  MINIX=
  684.  fi
  685.  
  686. @@ -749,19 +948,19 @@ EOF
  687.  fi
  688.  
  689.  # If we cannot run a trivial program, we must be cross compiling.
  690. -echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  691. -if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  692. -  echo $ac_n "(cached) $ac_c" 1>&4
  693. +echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  694. +if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  695. +  echo $ac_n "(cached) $ac_c" 1>&6
  696.  else
  697.    if test "$cross_compiling" = yes; then
  698. -  ac_cv_cross=yes
  699. +  ac_cv_c_cross=yes
  700.  else
  701.  cat > conftest.$ac_ext <<EOF
  702. -#line 761 "configure"
  703. +#line 960 "configure"
  704.  #include "confdefs.h"
  705.  main(){return(0);}
  706.  EOF
  707. -eval $ac_link
  708. +{ (eval echo configure:964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  709.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  710.    ac_cv_c_cross=no
  711.  else
  712. @@ -770,18 +969,19 @@ fi
  713.  fi
  714.  rm -fr conftest*
  715.  fi
  716. +
  717. +echo "$ac_t""$ac_cv_c_cross" 1>&6
  718.  cross_compiling=$ac_cv_c_cross
  719. -echo "$ac_t""$ac_cv_c_cross" 1>&4
  720.  
  721.  if test $cross_compiling = no; then
  722. -  echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&4
  723. -if eval "test \"`echo '${'ac_cv_c_char_unsigned'+set}'`\" = set"; then
  724. -  echo $ac_n "(cached) $ac_c" 1>&4
  725. +  echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
  726. +if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
  727. +  echo $ac_n "(cached) $ac_c" 1>&6
  728.  else
  729.    if test "$GCC" = yes; then
  730.    # GCC predefines this symbol on systems where it applies.
  731.  cat > conftest.$ac_ext <<EOF
  732. -#line 785 "configure"
  733. +#line 985 "configure"
  734.  #include "confdefs.h"
  735.  #ifdef __CHAR_UNSIGNED__
  736.    yes
  737. @@ -803,7 +1003,7 @@ if test "$cross_compiling" = yes; then
  738.      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  739.  else
  740.  cat > conftest.$ac_ext <<EOF
  741. -#line 807 "configure"
  742. +#line 1007 "configure"
  743.  #include "confdefs.h"
  744.  /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  745.  #if !defined(__STDC__) || __STDC__ != 1
  746. @@ -813,7 +1013,7 @@ main() {
  747.    volatile char c = 255; exit(c < 0);
  748.  }
  749.  EOF
  750. -eval $ac_link
  751. +{ (eval echo configure:1017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  752.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  753.    ac_cv_c_char_unsigned=yes
  754.  else
  755. @@ -823,7 +1023,8 @@ fi
  756.  rm -fr conftest*
  757.  fi
  758.  fi
  759. -echo "$ac_t""$ac_cv_c_char_unsigned" 1>&4
  760. +
  761. +echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
  762.  if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  763.    cat >> confdefs.h <<\EOF
  764.  #define __CHAR_UNSIGNED__ 1
  765. @@ -832,9 +1033,9 @@ EOF
  766.  fi
  767.  
  768.  fi
  769. -echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&4
  770. -if eval "test \"`echo '${'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
  771. -  echo $ac_n "(cached) $ac_c" 1>&4
  772. +echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  773. +if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
  774. +  echo $ac_n "(cached) $ac_c" 1>&6
  775.  else
  776.    ac_cv_prog_cc_stdc=no
  777.  ac_save_CFLAGS="$CFLAGS"
  778. @@ -848,7 +1049,7 @@ for ac_arg in "" -qlanglvl=ansi -std1 "-
  779.  do
  780.    CFLAGS="$ac_save_CFLAGS $ac_arg"
  781.    cat > conftest.$ac_ext <<EOF
  782. -#line 852 "configure"
  783. +#line 1053 "configure"
  784.  #include "confdefs.h"
  785.  #if !defined(__STDC__) || __STDC__ != 1
  786.  choke me
  787. @@ -861,7 +1062,7 @@ struct s1 {int (*f) (int a);};
  788.  struct s2 {int (*f) (double a);};
  789.  ; return 0; }
  790.  EOF
  791. -if eval $ac_compile; then
  792. +if { (eval echo configure:1066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  793.    rm -rf conftest*
  794.    ac_cv_prog_cc_stdc="$ac_arg"; break
  795.  fi
  796. @@ -872,32 +1073,32 @@ CFLAGS="$ac_save_CFLAGS"
  797.  
  798.  fi
  799.  
  800. -echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&4
  801. +echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
  802.  case "x$ac_cv_prog_cc_stdc" in
  803.    x|xno) ;;
  804.    *) CC="$CC $ac_cv_prog_cc_stdc" ;;
  805.  esac
  806.  
  807.  
  808. -echo $ac_n "checking for function prototypes""... $ac_c" 1>&4
  809. +echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
  810.  if test "$ac_cv_prog_cc_stdc" != no; then
  811. -  echo "$ac_t""yes" 1>&4
  812. +  echo "$ac_t""yes" 1>&6
  813.    cat >> confdefs.h <<\EOF
  814.  #define PROTOTYPES 1
  815.  EOF
  816.  
  817.    U= ANSI2KNR=
  818.  else
  819. -  echo "$ac_t""no" 1>&4
  820. +  echo "$ac_t""no" 1>&6
  821.    U=_ ANSI2KNR=ansi2knr
  822.  fi
  823.  
  824. -echo $ac_n "checking for working const""... $ac_c" 1>&4
  825. -if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
  826. -  echo $ac_n "(cached) $ac_c" 1>&4
  827. +echo $ac_n "checking for working const""... $ac_c" 1>&6
  828. +if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  829. +  echo $ac_n "(cached) $ac_c" 1>&6
  830.  else
  831.    cat > conftest.$ac_ext <<EOF
  832. -#line 901 "configure"
  833. +#line 1102 "configure"
  834.  #include "confdefs.h"
  835.  
  836.  int main() { return 0; }
  837. @@ -910,7 +1111,7 @@ char const *const *ccp;
  838.  char **p;
  839.  /* NEC SVR4.0.2 mips cc rejects this.  */
  840.  struct point {int x, y;};
  841. -static struct point const zero;
  842. +static struct point const zero = {0,0};
  843.  /* AIX XL C 1.02.0.0 rejects this.
  844.     It does not let you subtract one const X* pointer from another in an arm
  845.     of an if-expression whose if-part is not a constant expression */
  846. @@ -947,7 +1148,7 @@ ccp = (char const *const *) p;
  847.  
  848.  ; return 0; }
  849.  EOF
  850. -if eval $ac_compile; then
  851. +if { (eval echo configure:1152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  852.    rm -rf conftest*
  853.    ac_cv_c_const=yes
  854.  else
  855. @@ -957,7 +1158,8 @@ fi
  856.  rm -f conftest*
  857.  
  858.  fi
  859. -echo "$ac_t""$ac_cv_c_const" 1>&4
  860. +
  861. +echo "$ac_t""$ac_cv_c_const" 1>&6
  862.  if test $ac_cv_c_const = no; then
  863.    cat >> confdefs.h <<\EOF
  864.  #define const 
  865. @@ -969,16 +1171,17 @@ fi
  866.  for ac_hdr in limits.h memory.h string.h sys/wait.h unistd.h
  867.  do
  868.  ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  869. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  870. -if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  871. -  echo $ac_n "(cached) $ac_c" 1>&4
  872. +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  873. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  874. +  echo $ac_n "(cached) $ac_c" 1>&6
  875.  else
  876.    cat > conftest.$ac_ext <<EOF
  877. -#line 978 "configure"
  878. +#line 1180 "configure"
  879.  #include "confdefs.h"
  880.  #include <$ac_hdr>
  881.  EOF
  882. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  883. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  884. +{ (eval echo configure:1185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  885.  ac_err=`grep -v '^ *+' conftest.out`
  886.  if test -z "$ac_err"; then
  887.    rm -rf conftest*
  888. @@ -991,14 +1194,14 @@ fi
  889.  rm -f conftest*
  890.  fi
  891.  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  892. -  echo "$ac_t""yes" 1>&4
  893. -    ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  894. +  echo "$ac_t""yes" 1>&6
  895. +    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  896.    cat >> confdefs.h <<EOF
  897.  #define $ac_tr_hdr 1
  898.  EOF
  899.   
  900.  else
  901. -  echo "$ac_t""no" 1>&4
  902. +  echo "$ac_t""no" 1>&6
  903.  fi
  904.  done
  905.  
  906. @@ -1006,12 +1209,12 @@ ac_header_dirent=no
  907.  for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  908.  do
  909.  ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  910. -echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&4
  911. -if eval "test \"`echo '${'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  912. -  echo $ac_n "(cached) $ac_c" 1>&4
  913. +echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  914. +if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  915. +  echo $ac_n "(cached) $ac_c" 1>&6
  916.  else
  917.    cat > conftest.$ac_ext <<EOF
  918. -#line 1015 "configure"
  919. +#line 1218 "configure"
  920.  #include "confdefs.h"
  921.  #include <sys/types.h>
  922.  #include <$ac_hdr>
  923. @@ -1020,7 +1223,7 @@ int t() {
  924.  DIR *dirp = 0;
  925.  ; return 0; }
  926.  EOF
  927. -if eval $ac_compile; then
  928. +if { (eval echo configure:1227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  929.    rm -rf conftest*
  930.    eval "ac_cv_header_dirent_$ac_safe=yes"
  931.  else
  932. @@ -1031,114 +1234,126 @@ rm -f conftest*
  933.  
  934.  fi
  935.  if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  936. -  echo "$ac_t""yes" 1>&4
  937. -    ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  938. +  echo "$ac_t""yes" 1>&6
  939. +    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
  940.    cat >> confdefs.h <<EOF
  941.  #define $ac_tr_hdr 1
  942.  EOF
  943.   ac_header_dirent=$ac_hdr; break
  944.  else
  945. -  echo "$ac_t""no" 1>&4
  946. +  echo "$ac_t""no" 1>&6
  947.  fi
  948.  done
  949.  # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  950.  if test $ac_header_dirent = dirent.h; then
  951. -echo $ac_n "checking for -ldir""... $ac_c" 1>&4
  952. -if eval "test \"`echo '${'ac_cv_lib_dir'+set}'`\" = set"; then
  953. -  echo $ac_n "(cached) $ac_c" 1>&4
  954. +echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  955. +ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
  956. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  957. +  echo $ac_n "(cached) $ac_c" 1>&6
  958.  else
  959.    ac_save_LIBS="$LIBS"
  960. -LIBS="$LIBS -ldir "
  961. +LIBS="-ldir  $LIBS"
  962.  cat > conftest.$ac_ext <<EOF
  963. -#line 1054 "configure"
  964. +#line 1258 "configure"
  965.  #include "confdefs.h"
  966. +/* Override any gcc2 internal prototype to avoid an error.  */
  967. +/* We use char because int might match the return type of a gcc2
  968. +    builtin and then its argument prototype would still apply.  */
  969. +char opendir();
  970.  
  971. -int main() { return 0; }
  972. +int main() { t(); return 0; }
  973.  int t() {
  974.  opendir()
  975.  ; return 0; }
  976.  EOF
  977. -if eval $ac_link; then
  978. +if { (eval echo configure:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  979.    rm -rf conftest*
  980. -  eval "ac_cv_lib_dir=yes"
  981. +  eval "ac_cv_lib_$ac_lib_var=yes"
  982.  else
  983.    rm -rf conftest*
  984. -  eval "ac_cv_lib_dir=no"
  985. +  eval "ac_cv_lib_$ac_lib_var=no"
  986.  fi
  987.  rm -f conftest*
  988.  LIBS="$ac_save_LIBS"
  989.  
  990.  fi
  991. -if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then
  992. -  echo "$ac_t""yes" 1>&4
  993. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  994. +  echo "$ac_t""yes" 1>&6
  995.    LIBS="$LIBS -ldir"
  996.  else
  997. -  echo "$ac_t""no" 1>&4
  998. +  echo "$ac_t""no" 1>&6
  999.  fi
  1000.  
  1001.  else
  1002. -echo $ac_n "checking for -lx""... $ac_c" 1>&4
  1003. -if eval "test \"`echo '${'ac_cv_lib_x'+set}'`\" = set"; then
  1004. -  echo $ac_n "(cached) $ac_c" 1>&4
  1005. +echo $ac_n "checking for -lx""... $ac_c" 1>&6
  1006. +ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
  1007. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1008. +  echo $ac_n "(cached) $ac_c" 1>&6
  1009.  else
  1010.    ac_save_LIBS="$LIBS"
  1011. -LIBS="$LIBS -lx "
  1012. +LIBS="-lx  $LIBS"
  1013.  cat > conftest.$ac_ext <<EOF
  1014. -#line 1088 "configure"
  1015. +#line 1297 "configure"
  1016.  #include "confdefs.h"
  1017. +/* Override any gcc2 internal prototype to avoid an error.  */
  1018. +/* We use char because int might match the return type of a gcc2
  1019. +    builtin and then its argument prototype would still apply.  */
  1020. +char opendir();
  1021.  
  1022. -int main() { return 0; }
  1023. +int main() { t(); return 0; }
  1024.  int t() {
  1025.  opendir()
  1026.  ; return 0; }
  1027.  EOF
  1028. -if eval $ac_link; then
  1029. +if { (eval echo configure:1309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1030.    rm -rf conftest*
  1031. -  eval "ac_cv_lib_x=yes"
  1032. +  eval "ac_cv_lib_$ac_lib_var=yes"
  1033.  else
  1034.    rm -rf conftest*
  1035. -  eval "ac_cv_lib_x=no"
  1036. +  eval "ac_cv_lib_$ac_lib_var=no"
  1037.  fi
  1038.  rm -f conftest*
  1039.  LIBS="$ac_save_LIBS"
  1040.  
  1041.  fi
  1042. -if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then
  1043. -  echo "$ac_t""yes" 1>&4
  1044. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1045. +  echo "$ac_t""yes" 1>&6
  1046.    LIBS="$LIBS -lx"
  1047.  else
  1048. -  echo "$ac_t""no" 1>&4
  1049. +  echo "$ac_t""no" 1>&6
  1050.  fi
  1051.  
  1052.  fi
  1053.  
  1054. -echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&4
  1055. -if eval "test \"`echo '${'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1056. -  echo $ac_n "(cached) $ac_c" 1>&4
  1057. +echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  1058. +if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1059. +  echo $ac_n "(cached) $ac_c" 1>&6
  1060.  else
  1061.    cat > conftest.$ac_ext <<EOF
  1062. -#line 1121 "configure"
  1063. +#line 1334 "configure"
  1064.  #include "confdefs.h"
  1065.  #include <sys/types.h>
  1066.  #include <sys/stat.h>
  1067. -#ifdef S_ISBLK
  1068. +
  1069. +#if defined(S_ISBLK) && defined(S_IFDIR)
  1070.  # if S_ISBLK (S_IFDIR)
  1071.  You lose.
  1072.  # endif
  1073. -# ifdef S_IFCHR
  1074. -#  if S_ISBLK (S_IFCHR)
  1075. +#endif
  1076. +
  1077. +#if defined(S_ISBLK) && defined(S_IFCHR)
  1078. +# if S_ISBLK (S_IFCHR)
  1079.  You lose.
  1080. -#  endif
  1081.  # endif
  1082.  #endif
  1083.  
  1084. -#ifdef S_ISLNK
  1085. +#if defined(S_ISLNK) && defined(S_IFREG)
  1086.  # if S_ISLNK (S_IFREG)
  1087.  You lose.
  1088.  # endif
  1089.  #endif
  1090.  
  1091. -#ifdef S_ISSOCK
  1092. +#if defined(S_ISSOCK) && defined(S_IFREG)
  1093.  # if S_ISSOCK (S_IFREG)
  1094.  You lose.
  1095.  # endif
  1096. @@ -1156,7 +1371,8 @@ fi
  1097.  rm -f conftest*
  1098.  
  1099.  fi
  1100. -echo "$ac_t""$ac_cv_header_stat_broken" 1>&4
  1101. +
  1102. +echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  1103.  if test $ac_cv_header_stat_broken = yes; then
  1104.    cat >> confdefs.h <<\EOF
  1105.  #define STAT_MACROS_BROKEN 1
  1106. @@ -1164,19 +1380,20 @@ EOF
  1107.  
  1108.  fi
  1109.  
  1110. -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
  1111. -if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  1112. -  echo $ac_n "(cached) $ac_c" 1>&4
  1113. +echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1114. +if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1115. +  echo $ac_n "(cached) $ac_c" 1>&6
  1116.  else
  1117.    cat > conftest.$ac_ext <<EOF
  1118. -#line 1173 "configure"
  1119. +#line 1389 "configure"
  1120.  #include "confdefs.h"
  1121.  #include <stdlib.h>
  1122.  #include <stdarg.h>
  1123.  #include <string.h>
  1124.  #include <float.h>
  1125.  EOF
  1126. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1127. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1128. +{ (eval echo configure:1397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1129.  ac_err=`grep -v '^ *+' conftest.out`
  1130.  if test -z "$ac_err"; then
  1131.    rm -rf conftest*
  1132. @@ -1191,7 +1408,7 @@ rm -f conftest*
  1133.  if test $ac_cv_header_stdc = yes; then
  1134.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1135.  cat > conftest.$ac_ext <<EOF
  1136. -#line 1195 "configure"
  1137. +#line 1412 "configure"
  1138.  #include "confdefs.h"
  1139.  #include <string.h>
  1140.  EOF
  1141. @@ -1209,7 +1426,7 @@ fi
  1142.  if test $ac_cv_header_stdc = yes; then
  1143.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1144.  cat > conftest.$ac_ext <<EOF
  1145. -#line 1213 "configure"
  1146. +#line 1430 "configure"
  1147.  #include "confdefs.h"
  1148.  #include <stdlib.h>
  1149.  EOF
  1150. @@ -1227,10 +1444,10 @@ fi
  1151.  if test $ac_cv_header_stdc = yes; then
  1152.    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1153.  if test "$cross_compiling" = yes; then
  1154. -  ac_cv_header_stdc=no
  1155. +  :
  1156.  else
  1157.  cat > conftest.$ac_ext <<EOF
  1158. -#line 1234 "configure"
  1159. +#line 1451 "configure"
  1160.  #include "confdefs.h"
  1161.  #include <ctype.h>
  1162.  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1163. @@ -1241,7 +1458,7 @@ if (XOR (islower (i), ISLOWER (i)) || to
  1164.  exit (0); }
  1165.  
  1166.  EOF
  1167. -eval $ac_link
  1168. +{ (eval echo configure:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1169.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1170.    :
  1171.  else
  1172. @@ -1251,7 +1468,8 @@ fi
  1173.  rm -fr conftest*
  1174.  fi
  1175.  fi
  1176. -echo "$ac_t""$ac_cv_header_stdc" 1>&4
  1177. +
  1178. +echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1179.  if test $ac_cv_header_stdc = yes; then
  1180.    cat >> confdefs.h <<\EOF
  1181.  #define STDC_HEADERS 1
  1182. @@ -1259,12 +1477,12 @@ EOF
  1183.  
  1184.  fi
  1185.  
  1186. -echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&4
  1187. -if eval "test \"`echo '${'ac_cv_struct_tm'+set}'`\" = set"; then
  1188. -  echo $ac_n "(cached) $ac_c" 1>&4
  1189. +echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  1190. +if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  1191. +  echo $ac_n "(cached) $ac_c" 1>&6
  1192.  else
  1193.    cat > conftest.$ac_ext <<EOF
  1194. -#line 1268 "configure"
  1195. +#line 1486 "configure"
  1196.  #include "confdefs.h"
  1197.  #include <sys/types.h>
  1198.  #include <time.h>
  1199. @@ -1273,7 +1491,7 @@ int t() {
  1200.  struct tm *tp; tp->tm_sec;
  1201.  ; return 0; }
  1202.  EOF
  1203. -if eval $ac_compile; then
  1204. +if { (eval echo configure:1495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1205.    rm -rf conftest*
  1206.    ac_cv_struct_tm=time.h
  1207.  else
  1208. @@ -1283,7 +1501,8 @@ fi
  1209.  rm -f conftest*
  1210.  
  1211.  fi
  1212. -echo "$ac_t""$ac_cv_struct_tm" 1>&4
  1213. +
  1214. +echo "$ac_t""$ac_cv_struct_tm" 1>&6
  1215.  if test $ac_cv_struct_tm = sys/time.h; then
  1216.    cat >> confdefs.h <<\EOF
  1217.  #define TM_IN_SYS_TIME 1
  1218. @@ -1291,12 +1510,12 @@ EOF
  1219.  
  1220.  fi
  1221.  
  1222. -echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&4
  1223. -if eval "test \"`echo '${'ac_cv_struct_tm_zone'+set}'`\" = set"; then
  1224. -  echo $ac_n "(cached) $ac_c" 1>&4
  1225. +echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
  1226. +if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
  1227. +  echo $ac_n "(cached) $ac_c" 1>&6
  1228.  else
  1229.    cat > conftest.$ac_ext <<EOF
  1230. -#line 1300 "configure"
  1231. +#line 1519 "configure"
  1232.  #include "confdefs.h"
  1233.  #include <sys/types.h>
  1234.  #include <$ac_cv_struct_tm>
  1235. @@ -1305,7 +1524,7 @@ int t() {
  1236.  struct tm tm; tm.tm_zone;
  1237.  ; return 0; }
  1238.  EOF
  1239. -if eval $ac_compile; then
  1240. +if { (eval echo configure:1528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1241.    rm -rf conftest*
  1242.    ac_cv_struct_tm_zone=yes
  1243.  else
  1244. @@ -1315,30 +1534,31 @@ fi
  1245.  rm -f conftest*
  1246.  
  1247.  fi
  1248. -echo "$ac_t""$ac_cv_struct_tm_zone" 1>&4
  1249. +
  1250. +echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
  1251.  if test "$ac_cv_struct_tm_zone" = yes; then
  1252.    cat >> confdefs.h <<\EOF
  1253.  #define HAVE_TM_ZONE 1
  1254.  EOF
  1255.  
  1256.  else
  1257. -  echo $ac_n "checking for tzname""... $ac_c" 1>&4
  1258. -if eval "test \"`echo '${'ac_cv_var_tzname'+set}'`\" = set"; then
  1259. -  echo $ac_n "(cached) $ac_c" 1>&4
  1260. +  echo $ac_n "checking for tzname""... $ac_c" 1>&6
  1261. +if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
  1262. +  echo $ac_n "(cached) $ac_c" 1>&6
  1263.  else
  1264.    cat > conftest.$ac_ext <<EOF
  1265. -#line 1331 "configure"
  1266. +#line 1551 "configure"
  1267.  #include "confdefs.h"
  1268.  #include <time.h>
  1269.  #ifndef tzname /* For SGI.  */
  1270.  extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
  1271.  #endif
  1272. -int main() { return 0; }
  1273. +int main() { t(); return 0; }
  1274.  int t() {
  1275.  atoi(*tzname);
  1276.  ; return 0; }
  1277.  EOF
  1278. -if eval $ac_link; then
  1279. +if { (eval echo configure:1562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1280.    rm -rf conftest*
  1281.    ac_cv_var_tzname=yes
  1282.  else
  1283. @@ -1348,7 +1568,8 @@ fi
  1284.  rm -f conftest*
  1285.  
  1286.  fi
  1287. -  echo "$ac_t""$ac_cv_var_tzname" 1>&4
  1288. +
  1289. +echo "$ac_t""$ac_cv_var_tzname" 1>&6
  1290.    if test $ac_cv_var_tzname = yes; then
  1291.      cat >> confdefs.h <<\EOF
  1292.  #define HAVE_TZNAME 1
  1293. @@ -1357,12 +1578,12 @@ EOF
  1294.    fi
  1295.  fi
  1296.  
  1297. -echo $ac_n "checking for size_t""... $ac_c" 1>&4
  1298. -if eval "test \"`echo '${'ac_cv_type_size_t'+set}'`\" = set"; then
  1299. -  echo $ac_n "(cached) $ac_c" 1>&4
  1300. +echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1301. +if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1302. +  echo $ac_n "(cached) $ac_c" 1>&6
  1303.  else
  1304.    cat > conftest.$ac_ext <<EOF
  1305. -#line 1366 "configure"
  1306. +#line 1587 "configure"
  1307.  #include "confdefs.h"
  1308.  #include <sys/types.h>
  1309.  #if STDC_HEADERS
  1310. @@ -1380,7 +1601,7 @@ fi
  1311.  rm -f conftest*
  1312.  
  1313.  fi
  1314. -echo "$ac_t""$ac_cv_type_size_t" 1>&4
  1315. +echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1316.  if test $ac_cv_type_size_t = no; then
  1317.    cat >> confdefs.h <<\EOF
  1318.  #define size_t unsigned
  1319. @@ -1391,18 +1612,22 @@ fi
  1320.  
  1321.  for ac_func in basename fchmod getcwd memcpy strchr strerror uname
  1322.  do
  1323. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1324. -if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1325. -  echo $ac_n "(cached) $ac_c" 1>&4
  1326. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1327. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1328. +  echo $ac_n "(cached) $ac_c" 1>&6
  1329.  else
  1330.    cat > conftest.$ac_ext <<EOF
  1331. -#line 1400 "configure"
  1332. +#line 1621 "configure"
  1333.  #include "confdefs.h"
  1334. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1335. +/* System header to define __stub macros and hopefully few prototypes,
  1336. +    which can conflict with char $ac_func(); below.  */
  1337. +#include <assert.h>
  1338.  /* Override any gcc2 internal prototype to avoid an error.  */
  1339. -char $ac_func(); 
  1340. +/* We use char because int might match the return type of a gcc2
  1341. +    builtin and then its argument prototype would still apply.  */
  1342. +char $ac_func();
  1343.  
  1344. -int main() { return 0; }
  1345. +int main() { t(); return 0; }
  1346.  int t() {
  1347.  
  1348.  /* The GNU C library defines this for functions which it implements
  1349. @@ -1416,7 +1641,7 @@ $ac_func();
  1350.  
  1351.  ; return 0; }
  1352.  EOF
  1353. -if eval $ac_link; then
  1354. +if { (eval echo configure:1645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1355.    rm -rf conftest*
  1356.    eval "ac_cv_func_$ac_func=yes"
  1357.  else
  1358. @@ -1427,33 +1652,33 @@ rm -f conftest*
  1359.  
  1360.  fi
  1361.  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1362. -  echo "$ac_t""yes" 1>&4
  1363. -    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1364. +  echo "$ac_t""yes" 1>&6
  1365. +    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1366.    cat >> confdefs.h <<EOF
  1367.  #define $ac_tr_func 1
  1368.  EOF
  1369.   
  1370.  else
  1371. -  echo "$ac_t""no" 1>&4
  1372. +  echo "$ac_t""no" 1>&6
  1373.  fi
  1374.  done
  1375.  
  1376.  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1377.  # for constant arguments.  Useless!
  1378. -echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
  1379. -if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1380. -  echo $ac_n "(cached) $ac_c" 1>&4
  1381. +echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1382. +if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1383. +  echo $ac_n "(cached) $ac_c" 1>&6
  1384.  else
  1385.    cat > conftest.$ac_ext <<EOF
  1386. -#line 1449 "configure"
  1387. +#line 1674 "configure"
  1388.  #include "confdefs.h"
  1389.  #include <alloca.h>
  1390. -int main() { return 0; }
  1391. +int main() { t(); return 0; }
  1392.  int t() {
  1393.  char *p = alloca(2 * sizeof(int));
  1394.  ; return 0; }
  1395.  EOF
  1396. -if eval $ac_link; then
  1397. +if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1398.    rm -rf conftest*
  1399.    ac_cv_header_alloca_h=yes
  1400.  else
  1401. @@ -1463,7 +1688,8 @@ fi
  1402.  rm -f conftest*
  1403.  
  1404.  fi
  1405. -echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
  1406. +
  1407. +echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  1408.  if test $ac_cv_header_alloca_h = yes; then
  1409.    cat >> confdefs.h <<\EOF
  1410.  #define HAVE_ALLOCA_H 1
  1411. @@ -1471,12 +1697,12 @@ EOF
  1412.  
  1413.  fi
  1414.  
  1415. -echo $ac_n "checking for alloca""... $ac_c" 1>&4
  1416. -if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
  1417. -  echo $ac_n "(cached) $ac_c" 1>&4
  1418. +echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1419. +if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  1420. +  echo $ac_n "(cached) $ac_c" 1>&6
  1421.  else
  1422.    cat > conftest.$ac_ext <<EOF
  1423. -#line 1480 "configure"
  1424. +#line 1706 "configure"
  1425.  #include "confdefs.h"
  1426.  
  1427.  #ifdef __GNUC__
  1428. @@ -1495,12 +1721,12 @@ char *alloca ();
  1429.  # endif
  1430.  #endif
  1431.  
  1432. -int main() { return 0; }
  1433. +int main() { t(); return 0; }
  1434.  int t() {
  1435.  char *p = (char *) alloca(1);
  1436.  ; return 0; }
  1437.  EOF
  1438. -if eval $ac_link; then
  1439. +if { (eval echo configure:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1440.    rm -rf conftest*
  1441.    ac_cv_func_alloca=yes
  1442.  else
  1443. @@ -1510,7 +1736,8 @@ fi
  1444.  rm -f conftest*
  1445.  
  1446.  fi
  1447. -echo "$ac_t""$ac_cv_func_alloca" 1>&4
  1448. +
  1449. +echo "$ac_t""$ac_cv_func_alloca" 1>&6
  1450.  if test $ac_cv_func_alloca = yes; then
  1451.    cat >> confdefs.h <<\EOF
  1452.  #define HAVE_ALLOCA 1
  1453. @@ -1529,12 +1756,12 @@ if test $ac_cv_func_alloca = no; then
  1454.  EOF
  1455.  
  1456.  
  1457. -echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
  1458. -if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
  1459. -  echo $ac_n "(cached) $ac_c" 1>&4
  1460. +echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  1461. +if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  1462. +  echo $ac_n "(cached) $ac_c" 1>&6
  1463.  else
  1464.    cat > conftest.$ac_ext <<EOF
  1465. -#line 1538 "configure"
  1466. +#line 1765 "configure"
  1467.  #include "confdefs.h"
  1468.  #if defined(CRAY) && ! defined(CRAY2)
  1469.  webecray
  1470. @@ -1554,154 +1781,72 @@ fi
  1471.  rm -f conftest*
  1472.  
  1473.  fi
  1474. -echo "$ac_t""$ac_cv_os_cray" 1>&4
  1475. -if test $ac_cv_os_cray = yes; then
  1476. -echo $ac_n "checking for _getb67""... $ac_c" 1>&4
  1477. -if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
  1478. -  echo $ac_n "(cached) $ac_c" 1>&4
  1479. -else
  1480. -  cat > conftest.$ac_ext <<EOF
  1481. -#line 1565 "configure"
  1482. -#include "confdefs.h"
  1483. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1484. -/* Override any gcc2 internal prototype to avoid an error.  */
  1485. -char _getb67(); 
  1486.  
  1487. -int main() { return 0; }
  1488. -int t() {
  1489. -
  1490. -/* The GNU C library defines this for functions which it implements
  1491. -    to always fail with ENOSYS.  Some functions are actually named
  1492. -    something starting with __ and the normal name is an alias.  */
  1493. -#if defined (__stub__getb67) || defined (__stub____getb67)
  1494. -choke me
  1495. -#else
  1496. -_getb67();
  1497. -#endif
  1498. -
  1499. -; return 0; }
  1500. -EOF
  1501. -if eval $ac_link; then
  1502. -  rm -rf conftest*
  1503. -  eval "ac_cv_func__getb67=yes"
  1504. -else
  1505. -  rm -rf conftest*
  1506. -  eval "ac_cv_func__getb67=no"
  1507. -fi
  1508. -rm -f conftest*
  1509. -
  1510. -fi
  1511. -if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
  1512. -  echo "$ac_t""yes" 1>&4
  1513. -  cat >> confdefs.h <<\EOF
  1514. -#define CRAY_STACKSEG_END _getb67
  1515. -EOF
  1516. -
  1517. -else
  1518. -  echo "$ac_t""no" 1>&4
  1519. -echo $ac_n "checking for GETB67""... $ac_c" 1>&4
  1520. -if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
  1521. -  echo $ac_n "(cached) $ac_c" 1>&4
  1522. -else
  1523. -  cat > conftest.$ac_ext <<EOF
  1524. -#line 1608 "configure"
  1525. -#include "confdefs.h"
  1526. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1527. -/* Override any gcc2 internal prototype to avoid an error.  */
  1528. -char GETB67(); 
  1529. -
  1530. -int main() { return 0; }
  1531. -int t() {
  1532. -
  1533. -/* The GNU C library defines this for functions which it implements
  1534. -    to always fail with ENOSYS.  Some functions are actually named
  1535. -    something starting with __ and the normal name is an alias.  */
  1536. -#if defined (__stub_GETB67) || defined (__stub___GETB67)
  1537. -choke me
  1538. -#else
  1539. -GETB67();
  1540. -#endif
  1541. -
  1542. -; return 0; }
  1543. -EOF
  1544. -if eval $ac_link; then
  1545. -  rm -rf conftest*
  1546. -  eval "ac_cv_func_GETB67=yes"
  1547. -else
  1548. -  rm -rf conftest*
  1549. -  eval "ac_cv_func_GETB67=no"
  1550. -fi
  1551. -rm -f conftest*
  1552. -
  1553. -fi
  1554. -if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
  1555. -  echo "$ac_t""yes" 1>&4
  1556. -  cat >> confdefs.h <<\EOF
  1557. -#define CRAY_STACKSEG_END GETB67
  1558. -EOF
  1559. -
  1560. -else
  1561. -  echo "$ac_t""no" 1>&4
  1562. -echo $ac_n "checking for getb67""... $ac_c" 1>&4
  1563. -if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
  1564. -  echo $ac_n "(cached) $ac_c" 1>&4
  1565. +echo "$ac_t""$ac_cv_os_cray" 1>&6
  1566. +if test $ac_cv_os_cray = yes; then
  1567. +for ac_func in _getb67 GETB67 getb67; do
  1568. +  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1569. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1570. +  echo $ac_n "(cached) $ac_c" 1>&6
  1571.  else
  1572.    cat > conftest.$ac_ext <<EOF
  1573. -#line 1651 "configure"
  1574. +#line 1794 "configure"
  1575.  #include "confdefs.h"
  1576. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1577. +/* System header to define __stub macros and hopefully few prototypes,
  1578. +    which can conflict with char $ac_func(); below.  */
  1579. +#include <assert.h>
  1580.  /* Override any gcc2 internal prototype to avoid an error.  */
  1581. -char getb67(); 
  1582. +/* We use char because int might match the return type of a gcc2
  1583. +    builtin and then its argument prototype would still apply.  */
  1584. +char $ac_func();
  1585.  
  1586. -int main() { return 0; }
  1587. +int main() { t(); return 0; }
  1588.  int t() {
  1589.  
  1590.  /* The GNU C library defines this for functions which it implements
  1591.      to always fail with ENOSYS.  Some functions are actually named
  1592.      something starting with __ and the normal name is an alias.  */
  1593. -#if defined (__stub_getb67) || defined (__stub___getb67)
  1594. +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1595.  choke me
  1596.  #else
  1597. -getb67();
  1598. +$ac_func();
  1599.  #endif
  1600.  
  1601.  ; return 0; }
  1602.  EOF
  1603. -if eval $ac_link; then
  1604. +if { (eval echo configure:1818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1605.    rm -rf conftest*
  1606. -  eval "ac_cv_func_getb67=yes"
  1607. +  eval "ac_cv_func_$ac_func=yes"
  1608.  else
  1609.    rm -rf conftest*
  1610. -  eval "ac_cv_func_getb67=no"
  1611. +  eval "ac_cv_func_$ac_func=no"
  1612.  fi
  1613.  rm -f conftest*
  1614.  
  1615.  fi
  1616. -if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
  1617. -  echo "$ac_t""yes" 1>&4
  1618. -  cat >> confdefs.h <<\EOF
  1619. -#define CRAY_STACKSEG_END getb67
  1620. +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1621. +  echo "$ac_t""yes" 1>&6
  1622. +  cat >> confdefs.h <<EOF
  1623. +#define CRAY_STACKSEG_END $ac_func
  1624.  EOF
  1625.  
  1626. +  break
  1627.  else
  1628. -  echo "$ac_t""no" 1>&4
  1629. -fi
  1630. -
  1631. -fi
  1632. -
  1633. +  echo "$ac_t""no" 1>&6
  1634.  fi
  1635.  
  1636. +done
  1637.  fi
  1638.  
  1639. -echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
  1640. -if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1641. -  echo $ac_n "(cached) $ac_c" 1>&4
  1642. +echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  1643. +if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1644. +  echo $ac_n "(cached) $ac_c" 1>&6
  1645.  else
  1646.    if test "$cross_compiling" = yes; then
  1647.    ac_cv_c_stack_direction=0
  1648.  else
  1649.  cat > conftest.$ac_ext <<EOF
  1650. -#line 1705 "configure"
  1651. +#line 1850 "configure"
  1652.  #include "confdefs.h"
  1653.  find_stack_direction ()
  1654.  {
  1655. @@ -1720,7 +1865,7 @@ main ()
  1656.    exit (find_stack_direction() < 0);
  1657.  }
  1658.  EOF
  1659. -eval $ac_link
  1660. +{ (eval echo configure:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1661.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1662.    ac_cv_c_stack_direction=1
  1663.  else
  1664. @@ -1729,28 +1874,29 @@ fi
  1665.  fi
  1666.  rm -fr conftest*
  1667.  fi
  1668. -echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
  1669. +
  1670. +echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  1671.  cat >> confdefs.h <<EOF
  1672.  #define STACK_DIRECTION $ac_cv_c_stack_direction
  1673.  EOF
  1674.  
  1675.  fi
  1676.  
  1677. -echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&4
  1678. -if eval "test \"`echo '${'ac_cv_func_closedir_void'+set}'`\" = set"; then
  1679. -  echo $ac_n "(cached) $ac_c" 1>&4
  1680. +echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
  1681. +if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
  1682. +  echo $ac_n "(cached) $ac_c" 1>&6
  1683.  else
  1684.    if test "$cross_compiling" = yes; then
  1685. -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1686. +  ac_cv_func_closedir_void=yes
  1687.  else
  1688.  cat > conftest.$ac_ext <<EOF
  1689. -#line 1748 "configure"
  1690. +#line 1894 "configure"
  1691.  #include "confdefs.h"
  1692.  #include <sys/types.h>
  1693.  #include <$ac_header_dirent>
  1694.  int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1695.  EOF
  1696. -eval $ac_link
  1697. +{ (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1698.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1699.    ac_cv_func_closedir_void=no
  1700.  else
  1701. @@ -1759,7 +1905,8 @@ fi
  1702.  fi
  1703.  rm -fr conftest*
  1704.  fi
  1705. -echo "$ac_t""$ac_cv_func_closedir_void" 1>&4
  1706. +
  1707. +echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
  1708.  if test $ac_cv_func_closedir_void = yes; then
  1709.    cat >> confdefs.h <<\EOF
  1710.  #define CLOSEDIR_VOID 1
  1711. @@ -1768,51 +1915,60 @@ EOF
  1712.  fi
  1713.  
  1714.  # strftime is in -lintl on SCO UNIX.
  1715. -echo $ac_n "checking for -lintl""... $ac_c" 1>&4
  1716. -if eval "test \"`echo '${'ac_cv_lib_intl'+set}'`\" = set"; then
  1717. -  echo $ac_n "(cached) $ac_c" 1>&4
  1718. +echo $ac_n "checking for -lintl""... $ac_c" 1>&6
  1719. +ac_lib_var=`echo intl'_'strftime | tr './+\055' '__p_'`
  1720. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1721. +  echo $ac_n "(cached) $ac_c" 1>&6
  1722.  else
  1723.    ac_save_LIBS="$LIBS"
  1724. -LIBS="$LIBS -lintl "
  1725. +LIBS="-lintl  $LIBS"
  1726.  cat > conftest.$ac_ext <<EOF
  1727. -#line 1779 "configure"
  1728. +#line 1927 "configure"
  1729.  #include "confdefs.h"
  1730. +/* Override any gcc2 internal prototype to avoid an error.  */
  1731. +/* We use char because int might match the return type of a gcc2
  1732. +    builtin and then its argument prototype would still apply.  */
  1733. +char strftime();
  1734.  
  1735. -int main() { return 0; }
  1736. +int main() { t(); return 0; }
  1737.  int t() {
  1738.  strftime()
  1739.  ; return 0; }
  1740.  EOF
  1741. -if eval $ac_link; then
  1742. +if { (eval echo configure:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1743.    rm -rf conftest*
  1744. -  eval "ac_cv_lib_intl=yes"
  1745. +  eval "ac_cv_lib_$ac_lib_var=yes"
  1746.  else
  1747.    rm -rf conftest*
  1748. -  eval "ac_cv_lib_intl=no"
  1749. +  eval "ac_cv_lib_$ac_lib_var=no"
  1750.  fi
  1751.  rm -f conftest*
  1752.  LIBS="$ac_save_LIBS"
  1753.  
  1754.  fi
  1755. -if eval "test \"`echo '$ac_cv_lib_'intl`\" = yes"; then
  1756. -  echo "$ac_t""yes" 1>&4
  1757. -  LIBS="$LIBS -lintl"
  1758. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1759. +  echo "$ac_t""yes" 1>&6
  1760. +  LIBS="-lintl $LIBS"
  1761.  else
  1762. -  echo "$ac_t""no" 1>&4
  1763. +  echo "$ac_t""no" 1>&6
  1764.  fi
  1765.  
  1766. -echo $ac_n "checking for strftime""... $ac_c" 1>&4
  1767. -if eval "test \"`echo '${'ac_cv_func_strftime'+set}'`\" = set"; then
  1768. -  echo $ac_n "(cached) $ac_c" 1>&4
  1769. +echo $ac_n "checking for strftime""... $ac_c" 1>&6
  1770. +if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
  1771. +  echo $ac_n "(cached) $ac_c" 1>&6
  1772.  else
  1773.    cat > conftest.$ac_ext <<EOF
  1774. -#line 1810 "configure"
  1775. +#line 1962 "configure"
  1776.  #include "confdefs.h"
  1777. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1778. +/* System header to define __stub macros and hopefully few prototypes,
  1779. +    which can conflict with char strftime(); below.  */
  1780. +#include <assert.h>
  1781.  /* Override any gcc2 internal prototype to avoid an error.  */
  1782. -char strftime(); 
  1783. +/* We use char because int might match the return type of a gcc2
  1784. +    builtin and then its argument prototype would still apply.  */
  1785. +char strftime();
  1786.  
  1787. -int main() { return 0; }
  1788. +int main() { t(); return 0; }
  1789.  int t() {
  1790.  
  1791.  /* The GNU C library defines this for functions which it implements
  1792. @@ -1826,7 +1982,7 @@ strftime();
  1793.  
  1794.  ; return 0; }
  1795.  EOF
  1796. -if eval $ac_link; then
  1797. +if { (eval echo configure:1986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1798.    rm -rf conftest*
  1799.    eval "ac_cv_func_strftime=yes"
  1800.  else
  1801. @@ -1837,27 +1993,31 @@ rm -f conftest*
  1802.  
  1803.  fi
  1804.  if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
  1805. -  echo "$ac_t""yes" 1>&4
  1806. +  echo "$ac_t""yes" 1>&6
  1807.    cat >> confdefs.h <<\EOF
  1808.  #define HAVE_STRFTIME 1
  1809.  EOF
  1810.  
  1811.  else
  1812. -  echo "$ac_t""no" 1>&4
  1813. +  echo "$ac_t""no" 1>&6
  1814.  fi
  1815.  
  1816. -echo $ac_n "checking for vprintf""... $ac_c" 1>&4
  1817. -if eval "test \"`echo '${'ac_cv_func_vprintf'+set}'`\" = set"; then
  1818. -  echo $ac_n "(cached) $ac_c" 1>&4
  1819. +echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  1820. +if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  1821. +  echo $ac_n "(cached) $ac_c" 1>&6
  1822.  else
  1823.    cat > conftest.$ac_ext <<EOF
  1824. -#line 1855 "configure"
  1825. +#line 2011 "configure"
  1826.  #include "confdefs.h"
  1827. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1828. +/* System header to define __stub macros and hopefully few prototypes,
  1829. +    which can conflict with char vprintf(); below.  */
  1830. +#include <assert.h>
  1831.  /* Override any gcc2 internal prototype to avoid an error.  */
  1832. -char vprintf(); 
  1833. +/* We use char because int might match the return type of a gcc2
  1834. +    builtin and then its argument prototype would still apply.  */
  1835. +char vprintf();
  1836.  
  1837. -int main() { return 0; }
  1838. +int main() { t(); return 0; }
  1839.  int t() {
  1840.  
  1841.  /* The GNU C library defines this for functions which it implements
  1842. @@ -1871,7 +2031,7 @@ vprintf();
  1843.  
  1844.  ; return 0; }
  1845.  EOF
  1846. -if eval $ac_link; then
  1847. +if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1848.    rm -rf conftest*
  1849.    eval "ac_cv_func_vprintf=yes"
  1850.  else
  1851. @@ -1882,28 +2042,32 @@ rm -f conftest*
  1852.  
  1853.  fi
  1854.  if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  1855. -  echo "$ac_t""yes" 1>&4
  1856. +  echo "$ac_t""yes" 1>&6
  1857.    cat >> confdefs.h <<\EOF
  1858.  #define HAVE_VPRINTF 1
  1859.  EOF
  1860.  
  1861.  else
  1862. -  echo "$ac_t""no" 1>&4
  1863. +  echo "$ac_t""no" 1>&6
  1864.  fi
  1865.  
  1866.  if test "$ac_cv_func_vprintf" != yes; then
  1867. -echo $ac_n "checking for _doprnt""... $ac_c" 1>&4
  1868. -if eval "test \"`echo '${'ac_cv_func__doprnt'+set}'`\" = set"; then
  1869. -  echo $ac_n "(cached) $ac_c" 1>&4
  1870. +echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  1871. +if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  1872. +  echo $ac_n "(cached) $ac_c" 1>&6
  1873.  else
  1874.    cat > conftest.$ac_ext <<EOF
  1875. -#line 1901 "configure"
  1876. +#line 2061 "configure"
  1877.  #include "confdefs.h"
  1878. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1879. +/* System header to define __stub macros and hopefully few prototypes,
  1880. +    which can conflict with char _doprnt(); below.  */
  1881. +#include <assert.h>
  1882.  /* Override any gcc2 internal prototype to avoid an error.  */
  1883. -char _doprnt(); 
  1884. +/* We use char because int might match the return type of a gcc2
  1885. +    builtin and then its argument prototype would still apply.  */
  1886. +char _doprnt();
  1887.  
  1888. -int main() { return 0; }
  1889. +int main() { t(); return 0; }
  1890.  int t() {
  1891.  
  1892.  /* The GNU C library defines this for functions which it implements
  1893. @@ -1917,7 +2081,7 @@ _doprnt();
  1894.  
  1895.  ; return 0; }
  1896.  EOF
  1897. -if eval $ac_link; then
  1898. +if { (eval echo configure:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1899.    rm -rf conftest*
  1900.    eval "ac_cv_func__doprnt=yes"
  1901.  else
  1902. @@ -1928,31 +2092,35 @@ rm -f conftest*
  1903.  
  1904.  fi
  1905.  if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  1906. -  echo "$ac_t""yes" 1>&4
  1907. +  echo "$ac_t""yes" 1>&6
  1908.    cat >> confdefs.h <<\EOF
  1909.  #define HAVE_DOPRNT 1
  1910.  EOF
  1911.  
  1912.  else
  1913. -  echo "$ac_t""no" 1>&4
  1914. +  echo "$ac_t""no" 1>&6
  1915.  fi
  1916.  
  1917.  fi
  1918.  
  1919.  for ac_func in memset mktime strftime
  1920.  do
  1921. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1922. -if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1923. -  echo $ac_n "(cached) $ac_c" 1>&4
  1924. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1925. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1926. +  echo $ac_n "(cached) $ac_c" 1>&6
  1927.  else
  1928.    cat > conftest.$ac_ext <<EOF
  1929. -#line 1950 "configure"
  1930. +#line 2114 "configure"
  1931.  #include "confdefs.h"
  1932. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1933. +/* System header to define __stub macros and hopefully few prototypes,
  1934. +    which can conflict with char $ac_func(); below.  */
  1935. +#include <assert.h>
  1936.  /* Override any gcc2 internal prototype to avoid an error.  */
  1937. -char $ac_func(); 
  1938. +/* We use char because int might match the return type of a gcc2
  1939. +    builtin and then its argument prototype would still apply.  */
  1940. +char $ac_func();
  1941.  
  1942. -int main() { return 0; }
  1943. +int main() { t(); return 0; }
  1944.  int t() {
  1945.  
  1946.  /* The GNU C library defines this for functions which it implements
  1947. @@ -1966,7 +2134,7 @@ $ac_func();
  1948.  
  1949.  ; return 0; }
  1950.  EOF
  1951. -if eval $ac_link; then
  1952. +if { (eval echo configure:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1953.    rm -rf conftest*
  1954.    eval "ac_cv_func_$ac_func=yes"
  1955.  else
  1956. @@ -1977,10 +2145,10 @@ rm -f conftest*
  1957.  
  1958.  fi
  1959.  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1960. -  echo "$ac_t""yes" 1>&4
  1961. +  echo "$ac_t""yes" 1>&6
  1962.    :
  1963.  else
  1964. -  echo "$ac_t""no" 1>&4
  1965. +  echo "$ac_t""no" 1>&6
  1966.  LIBOBJS="$LIBOBJS ${ac_func}.o"
  1967.  fi
  1968.  
  1969. @@ -1988,41 +2156,41 @@ done
  1970.  
  1971.  test "$ac_cv_func_basename" = yes || LIBOBJS="$LIBOBJS basename.o"
  1972.  
  1973. -echo $ac_n "checking for /etc/systemid""... $ac_c" 1>&4
  1974. +echo $ac_n "checking for /etc/systemid""... $ac_c" 1>&6
  1975.  if test -f /etc/systemid; then
  1976. -  echo "$ac_t""yes" 1>&4
  1977. +  echo "$ac_t""yes" 1>&6
  1978.    cat >> confdefs.h <<\EOF
  1979.  #define HAVE_ETC_SYSTEMID 1
  1980.  EOF
  1981.  
  1982.  else
  1983. -  echo "$ac_t""no" 1>&4
  1984. +  echo "$ac_t""no" 1>&6
  1985.  fi
  1986.  
  1987. -echo $ac_n "checking if uuencode and uudecode are wanted""... $ac_c" 1>&4
  1988. +echo $ac_n "checking if uuencode and uudecode are wanted""... $ac_c" 1>&6
  1989.  # Check whether --enable-uucode or --disable-uucode was given.
  1990. -enableval="$enable_uucode"
  1991. -if test -n "$enableval"; then
  1992. +if test "${enable_uucode+set}" = set; then
  1993. +  enableval="$enable_uucode"
  1994.    if test "$enableval" = yes; then
  1995. -  echo "$ac_t""yes" 1>&4
  1996. +  echo "$ac_t""yes" 1>&6
  1997.    PROGRAMS="$PROGRAMS uudecode uuencode"
  1998.  else
  1999. -  echo "$ac_t""no" 1>&4
  2000. +  echo "$ac_t""no" 1>&6
  2001.  fi
  2002.  else
  2003.    
  2004. -  echo "$ac_t""yes" 1>&4
  2005. +  echo "$ac_t""yes" 1>&6
  2006.    PROGRAMS="$PROGRAMS uudecode uuencode"
  2007.  
  2008.  fi
  2009.  
  2010.  
  2011. -echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&4
  2012. +echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
  2013.  # Check whether --with-dmalloc or --without-dmalloc was given.
  2014. -withval="$with_dmalloc"
  2015. -if test -n "$withval"; then
  2016. +if test "${with_dmalloc+set}" = set; then
  2017. +  withval="$with_dmalloc"
  2018.    if test "$withval" = yes; then
  2019. -  echo "$ac_t""yes" 1>&4
  2020. +  echo "$ac_t""yes" 1>&6
  2021.    cat >> confdefs.h <<\EOF
  2022.  #define WITH_DMALLOC 1
  2023.  EOF
  2024. @@ -2030,17 +2198,15 @@ EOF
  2025.    LIBS="$LIBS -ldmalloc"
  2026.    LDFLAGS="$LDFLAGS -g"
  2027.  else
  2028. -  echo "$ac_t""no" 1>&4
  2029. +  echo "$ac_t""no" 1>&6
  2030.  fi
  2031.  else
  2032. -  echo "$ac_t""no" 1>&4
  2033. +  echo "$ac_t""no" 1>&6
  2034.  fi
  2035.  
  2036.  
  2037.  trap '' 1 2 15
  2038. -if test -w $cache_file; then
  2039. -echo "updating cache $cache_file"
  2040. -cat > $cache_file <<\EOF
  2041. +cat > confcache <<\EOF
  2042.  # This file is a shell script that caches the results of configure
  2043.  # tests run on this system so they can be shared between configure
  2044.  # scripts and configure runs.  It is not useful on other systems.
  2045. @@ -2056,15 +2222,24 @@ cat > $cache_file <<\EOF
  2046.  # --recheck option to rerun configure.
  2047.  #
  2048.  EOF
  2049. -# Ultrix sh set writes to stderr and can't be redirected directly.
  2050. +# Ultrix sh set writes to stderr and can't be redirected directly,
  2051. +# and sets the high bit in the cache file unless we assign to the vars.
  2052.  (set) 2>&1 |
  2053. -  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
  2054. -  >> $cache_file
  2055. +  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2056. +  >> confcache
  2057. +if cmp -s $cache_file confcache; then
  2058. +  :
  2059.  else
  2060. -echo "not updating unwritable cache $cache_file"
  2061. +  if test -w $cache_file; then
  2062. +    echo "updating cache $cache_file"
  2063. +    cat confcache > $cache_file
  2064. +  else
  2065. +    echo "not updating unwritable cache $cache_file"
  2066. +  fi
  2067.  fi
  2068. +rm -f confcache
  2069.  
  2070. -trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  2071. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2072.  
  2073.  test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2074.  # Let make expand exec_prefix.
  2075. @@ -2085,9 +2260,11 @@ DEFS=-DHAVE_CONFIG_H
  2076.  : ${CONFIG_STATUS=./config.status}
  2077.  
  2078.  echo creating $CONFIG_STATUS
  2079. -rm -f $CONFIG_STATUS
  2080. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  2081. +# being executed, so just move it out of the way instead.
  2082. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2083.  cat > $CONFIG_STATUS <<EOF
  2084. -#!/bin/sh
  2085. +#! /bin/sh
  2086.  # Generated automatically by configure.
  2087.  # Run this file to recreate the current configuration.
  2088.  # This directory was configured as follows,
  2089. @@ -2106,7 +2283,7 @@ do
  2090.      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2091.      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2092.    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2093. -    echo "$CONFIG_STATUS generated by autoconf version 2.1"
  2094. +    echo "$CONFIG_STATUS generated by autoconf version 2.10"
  2095.      exit 0 ;;
  2096.    -help | --help | --hel | --he | --h)
  2097.      echo "\$ac_cs_usage"; exit 0 ;;
  2098. @@ -2117,11 +2294,13 @@ done
  2099.  ac_given_srcdir=$srcdir
  2100.  ac_given_INSTALL="$INSTALL"
  2101.  
  2102. -trap 'rm -fr Makefile config.h conftest*; exit 1' 1 2 15
  2103. +trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2104. +EOF
  2105. +cat >> $CONFIG_STATUS <<EOF
  2106.  
  2107. -# Protect against being on the right side of a sed subst in config.status. 
  2108. -sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  2109. - s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  2110. +# Protect against being on the right side of a sed subst in config.status.
  2111. +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2112. + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2113.  $ac_vpsub
  2114.  $extrasub
  2115.  s%@CFLAGS@%$CFLAGS%g
  2116. @@ -2133,6 +2312,21 @@ s%@LIBS@%$LIBS%g
  2117.  s%@exec_prefix@%$exec_prefix%g
  2118.  s%@prefix@%$prefix%g
  2119.  s%@program_transform_name@%$program_transform_name%g
  2120. +s%@bindir@%$bindir%g
  2121. +s%@sbindir@%$sbindir%g
  2122. +s%@libexecdir@%$libexecdir%g
  2123. +s%@datadir@%$datadir%g
  2124. +s%@sysconfdir@%$sysconfdir%g
  2125. +s%@sharedstatedir@%$sharedstatedir%g
  2126. +s%@localstatedir@%$localstatedir%g
  2127. +s%@libdir@%$libdir%g
  2128. +s%@includedir@%$includedir%g
  2129. +s%@oldincludedir@%$oldincludedir%g
  2130. +s%@infodir@%$infodir%g
  2131. +s%@guidedir@%$guidedir%g
  2132. +s%@psdir@%$psdir%g
  2133. +s%@dvidir@%$dvidir%g
  2134. +s%@mandir@%$mandir%g
  2135.  s%@PRODUCT@%$PRODUCT%g
  2136.  s%@VERSION@%$VERSION%g
  2137.  s%@PROGRAMS@%$PROGRAMS%g
  2138. @@ -2168,7 +2362,7 @@ for ac_file in .. $CONFIG_FILES; do if t
  2139.    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2140.      # The file is in a subdirectory.
  2141.      test ! -d "$ac_dir" && mkdir "$ac_dir"
  2142. -    ac_dir_suffix="/$ac_dir"
  2143. +    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2144.      # A "../" for each directory in $ac_dir_suffix.
  2145.      ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2146.    else
  2147. @@ -2243,13 +2437,13 @@ EOF
  2148.  
  2149.  # Transform confdefs.h into a sed script conftest.vals that substitutes
  2150.  # the proper values into config.h.in to produce config.h.  And first:
  2151. -# Protect against being on the right side of a sed subst in config.status. 
  2152. +# Protect against being on the right side of a sed subst in config.status.
  2153.  # Protect against being in an unquoted here document in config.status.
  2154.  rm -f conftest.vals
  2155.  cat > conftest.hdr <<\EOF
  2156.  s/[\\&%]/\\&/g
  2157.  s%[\\$`]%\\&%g
  2158. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2159. +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2160.  s%ac_d%ac_u%gp
  2161.  s%ac_u%ac_e%gp
  2162.  EOF
  2163. @@ -2297,6 +2491,12 @@ cat >> $CONFIG_STATUS <<\EOF
  2164.      echo "$ac_file is unchanged"
  2165.      rm -f conftest.h
  2166.    else
  2167. +    # Remove last slash and all that follows it.  Not all systems have dirname.
  2168. +      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2169. +      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2170. +      # The file is in a subdirectory.
  2171. +      test ! -d "$ac_dir" && mkdir "$ac_dir"
  2172. +    fi
  2173.      rm -f $ac_file
  2174.      mv conftest.h $ac_file
  2175.    fi
  2176. @@ -2307,6 +2507,7 @@ test -z "$CONFIG_HEADERS" || date > stam
  2177.  exit 0
  2178.  EOF
  2179.  chmod +x $CONFIG_STATUS
  2180. +rm -f CONFIG.STATUS.old
  2181.  rm -fr confdefs* $ac_clean_files
  2182. -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
  2183. +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2184.  
  2185. diff -rup --new-file baseline/fsf/sharutils/manifests/bin amiga/fsf/sharutils/manifests/bin
  2186. --- baseline/fsf/sharutils/manifests/bin    Wed Dec 31 17:00:00 1969
  2187. +++ amiga/fsf/sharutils/manifests/bin    Sat Sep 28 00:00:00 1996
  2188. @@ -0,0 +1,7 @@
  2189. +COPYING
  2190. +COPYING.info
  2191. +bin/shar
  2192. +bin/unshar
  2193. +bin/uudecode
  2194. +bin/uuencode
  2195. +info/sharutils.info
  2196. diff -rup --new-file baseline/fsf/sharutils/manifests/src amiga/fsf/sharutils/manifests/src
  2197. --- baseline/fsf/sharutils/manifests/src    Wed Dec 31 17:00:00 1969
  2198. +++ amiga/fsf/sharutils/manifests/src    Sat Sep 28 00:00:00 1996
  2199. @@ -0,0 +1,56 @@
  2200. +fsf/sharutils/BACKLOG
  2201. +fsf/sharutils/COPYING
  2202. +fsf/sharutils/ChangeLog
  2203. +fsf/sharutils/ChangeLog.OLD
  2204. +fsf/sharutils/INSTALL
  2205. +fsf/sharutils/Makefile.in
  2206. +fsf/sharutils/NEWS
  2207. +fsf/sharutils/Product-Info
  2208. +fsf/sharutils/README
  2209. +fsf/sharutils/README.OLD
  2210. +fsf/sharutils/TAGS
  2211. +fsf/sharutils/THANKS
  2212. +fsf/sharutils/TODO
  2213. +fsf/sharutils/acconfig.h
  2214. +fsf/sharutils/aclocal.m4
  2215. +fsf/sharutils/alloca.c
  2216. +fsf/sharutils/ansi2knr.1
  2217. +fsf/sharutils/ansi2knr.c
  2218. +fsf/sharutils/basename.c
  2219. +fsf/sharutils/c-boxes.el
  2220. +fsf/sharutils/config.h.in
  2221. +fsf/sharutils/configure
  2222. +fsf/sharutils/configure.in
  2223. +fsf/sharutils/encode.c
  2224. +fsf/sharutils/error.c
  2225. +fsf/sharutils/getopt.c
  2226. +fsf/sharutils/getopt.h
  2227. +fsf/sharutils/getopt1.c
  2228. +fsf/sharutils/install-sh
  2229. +fsf/sharutils/manifests/bin
  2230. +fsf/sharutils/manifests/src
  2231. +fsf/sharutils/memset.c
  2232. +fsf/sharutils/mkinstalldirs
  2233. +fsf/sharutils/mktime.c
  2234. +fsf/sharutils/pathmax.h
  2235. +fsf/sharutils/shar.1
  2236. +fsf/sharutils/shar.c
  2237. +fsf/sharutils/sharutils.info
  2238. +fsf/sharutils/sharutils.texi
  2239. +fsf/sharutils/stamp-h.in
  2240. +fsf/sharutils/stamp-vti
  2241. +fsf/sharutils/strftime.c
  2242. +fsf/sharutils/system.h
  2243. +fsf/sharutils/testdata
  2244. +fsf/sharutils/texinfo.tex
  2245. +fsf/sharutils/unshar.1
  2246. +fsf/sharutils/unshar.c
  2247. +fsf/sharutils/uudecode.c
  2248. +fsf/sharutils/uuencode.1
  2249. +fsf/sharutils/uuencode.5
  2250. +fsf/sharutils/uuencode.c
  2251. +fsf/sharutils/version.texi
  2252. +fsf/sharutils/whoami.c
  2253. +fsf/sharutils/xgetcwd.c
  2254. +fsf/sharutils/xmalloc.c
  2255. +fsf/sharutils/xstrdup.c
  2256. diff -rup --new-file baseline/fsf/sharutils/sharutils.info amiga/fsf/sharutils/sharutils.info
  2257. --- baseline/fsf/sharutils/sharutils.info    Sun Nov  6 00:01:25 1994
  2258. +++ amiga/fsf/sharutils/sharutils.info    Sat Sep 28 00:00:00 1996
  2259. @@ -1,4 +1,4 @@
  2260. -This is Info file sharutils.info, produced by Makeinfo-1.55 from the
  2261. +This is Info file sharutils.info, produced by Makeinfo-1.63 from the
  2262.  input file sharutils.texi.
  2263.  
  2264.  START-INFO-DIR-ENTRY
  2265.