home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / less-321-diffs.gz / less-321-diffs
Text File  |  1996-10-13  |  38KB  |  1,166 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/less/Product-Info amiga/fsf/less/Product-Info
  12. --- baseline/fsf/less/Product-Info    Wed Dec 31 17:00:00 1969
  13. +++ amiga/fsf/less/Product-Info    Sat Sep 28 00:00:00 1996
  14. @@ -0,0 +1,29 @@
  15. +.name
  16. +less
  17. +.type
  18. +Programmer Tool
  19. +.short
  20. +Viewer program similar to 'more'.
  21. +.description
  22. +Less is a program similar to more (1), but which allows backward
  23. +movement in the file as well as forward movement.  Also, less does not
  24. +have to read the entire input file before starting, so with large
  25. +input files it starts up faster than text editors like vi (1).  Less
  26. +uses termcap (or terminfo on some systems), so it can run on a variety
  27. +of terminals.  There is even limited support for hardcopy terminals.
  28. +(On a hardcopy terminal, lines which should be printed at the top of
  29. +the screen are prefixed with a caret.)
  30. +
  31. +Commands are based on both more and vi.  Commands may be preceded by a
  32. +decimal number, called N in the descriptions below.  The number is
  33. +used by some commands, as indicated.
  34. +.version
  35. +321
  36. +.author
  37. +Mark Nudelman et al.
  38. +.requirements
  39. +Amiga binaries require ixemul.library.
  40. +.distribution
  41. +Freely distributable.
  42. +.described-by
  43. +Fred Fish (fnf@ninemoons.com)
  44. diff -rup --new-file baseline/fsf/less/charset.c amiga/fsf/less/charset.c
  45. --- baseline/fsf/less/charset.c    Thu May 30 14:40:04 1996
  46. +++ amiga/fsf/less/charset.c    Sat Sep 28 00:00:00 1996
  47. @@ -238,7 +238,11 @@ init_charset()
  48.      /*
  49.       * Default to "ascii".
  50.       */
  51. +#ifdef __amigaos__    /* Should be machine configurable? */
  52. +    (void) icharset("latin1");
  53. +#else
  54.      (void) icharset("ascii");
  55. +#endif
  56.  #endif
  57.  }
  58.  
  59. diff -rup --new-file baseline/fsf/less/configure amiga/fsf/less/configure
  60. --- baseline/fsf/less/configure    Fri May  3 13:22:17 1996
  61. +++ amiga/fsf/less/configure    Mon Sep 30 22:46:45 1996
  62. @@ -1,7 +1,7 @@
  63.  #! /bin/sh
  64.  
  65.  # Guess values for system-dependent variables and create Makefiles.
  66. -# Generated automatically using autoconf version 2.9 
  67. +# Generated automatically using autoconf version 2.10 
  68.  # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  69.  #
  70.  # This configure script is free software; the Free Software Foundation
  71. @@ -44,6 +44,9 @@ libdir='${exec_prefix}/lib'
  72.  includedir='${prefix}/include'
  73.  oldincludedir='/usr/include'
  74.  infodir='${prefix}/info'
  75. +guidedir='${prefix}/guide'
  76. +psdir='${prefix}/ps'
  77. +dvidir='${prefix}/dvi'
  78.  mandir='${prefix}/man'
  79.  
  80.  # Initialize some other variables.
  81. @@ -158,6 +161,9 @@ Directory and file names:
  82.    --includedir=DIR        C header files in DIR [PREFIX/include]
  83.    --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  84.    --infodir=DIR           info documentation in DIR [PREFIX/info]
  85. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  86. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  87. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  88.    --mandir=DIR            man documentation in DIR [PREFIX/man]
  89.    --srcdir=DIR            find the sources in DIR [configure dir or ..]
  90.    --program-prefix=PREFIX prepend PREFIX to installed program names
  91. @@ -200,6 +206,18 @@ EOF
  92.    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  93.      infodir="$ac_optarg" ;;
  94.  
  95. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  96. +   ac_prev=guidedir ;;
  97. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  98. +
  99. + -psdir | --psdir | --psdi | --psd | --ps)
  100. +   ac_prev=psdir ;;
  101. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  102. +
  103. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  104. +   ac_prev=dvidir ;;
  105. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  106. +
  107.    -libdir | --libdir | --libdi | --libd)
  108.      ac_prev=libdir ;;
  109.    -libdir=* | --libdir=* | --libdi=* | --libd=*)
  110. @@ -330,7 +348,7 @@ EOF
  111.      verbose=yes ;;
  112.  
  113.    -version | --version | --versio | --versi | --vers)
  114. -    echo "configure generated by autoconf version 2.9"
  115. +    echo "configure generated by autoconf version 2.10"
  116.      exit 0 ;;
  117.  
  118.    -with-* | --with-*)
  119. @@ -600,7 +618,7 @@ else
  120.    yes;
  121.  #endif
  122.  EOF
  123. -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  124. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  125.    ac_cv_prog_gcc=yes
  126.  else
  127.    ac_cv_prog_gcc=no
  128. @@ -627,9 +645,9 @@ fi
  129.  
  130.  echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  131.      if test $ac_cv_prog_gcc_g = yes; then
  132. -      CFLAGS="-g -O"
  133. +      CFLAGS="-g -O2"
  134.      else
  135. -      CFLAGS="-O"
  136. +      CFLAGS="-O2"
  137.      fi
  138.    fi
  139.  else
  140. @@ -672,13 +690,13 @@ else
  141.    # On the NeXT, cc -E runs the code through the compiler's parser,
  142.    # not just through cpp.
  143.    cat > conftest.$ac_ext <<EOF
  144. -#line 676 "configure"
  145. +#line 694 "configure"
  146.  #include "confdefs.h"
  147.  #include <assert.h>
  148.  Syntax Error
  149.  EOF
  150.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  151. -{ (eval echo configure:682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  152. +{ (eval echo configure:700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  153.  ac_err=`grep -v '^ *+' conftest.out`
  154.  if test -z "$ac_err"; then
  155.    :
  156. @@ -687,13 +705,13 @@ else
  157.    rm -rf conftest*
  158.    CPP="${CC-cc} -E -traditional-cpp"
  159.    cat > conftest.$ac_ext <<EOF
  160. -#line 691 "configure"
  161. +#line 709 "configure"
  162.  #include "confdefs.h"
  163.  #include <assert.h>
  164.  Syntax Error
  165.  EOF
  166.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  167. -{ (eval echo configure:697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  168. +{ (eval echo configure:715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  169.  ac_err=`grep -v '^ *+' conftest.out`
  170.  if test -z "$ac_err"; then
  171.    :
  172. @@ -720,7 +738,7 @@ if eval "test \"`echo '$''{'ac_cv_prog_g
  173.  else
  174.      ac_pattern="Autoconf.*'x'"
  175.    cat > conftest.$ac_ext <<EOF
  176. -#line 724 "configure"
  177. +#line 742 "configure"
  178.  #include "confdefs.h"
  179.  #include <sgtty.h>
  180.  Autoconf TIOCGETP
  181. @@ -738,7 +756,7 @@ rm -f conftest*
  182.  
  183.    if test $ac_cv_prog_gcc_traditional = no; then
  184.      cat > conftest.$ac_ext <<EOF
  185. -#line 742 "configure"
  186. +#line 760 "configure"
  187.  #include "confdefs.h"
  188.  #include <termio.h>
  189.  Autoconf TCGETA
  190. @@ -785,6 +803,7 @@ ac_configure=$ac_aux_dir/configure # Thi
  191.  # SunOS /usr/etc/install
  192.  # IRIX /sbin/install
  193.  # AIX /bin/install
  194. +# AmigaOS /c/install
  195.  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  196.  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  197.  # ./install, which can be erroneously created by make from ./install.sh.
  198. @@ -797,7 +816,7 @@ else
  199.    for ac_dir in $PATH; do
  200.      # Account for people who put trailing slashes in PATH elements.
  201.      case "$ac_dir/" in
  202. -    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  203. +    /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  204.      *)
  205.        # OSF1 and SCO ODT 3.0 have their own names for install.
  206.        for ac_prog in ginstall installbsd scoinst install; do
  207. @@ -840,24 +859,26 @@ test -z "$INSTALL_DATA" && INSTALL_DATA=
  208.  
  209.  TERMLIBS=
  210.  echo $ac_n "checking for -lncurses""... $ac_c" 1>&6
  211. -ac_lib_var=`echo ncurses_initscr | tr '.-/+' '___p'`
  212. +ac_lib_var=`echo ncurses'_'initscr | tr './+\055' '__p_'`
  213.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  214.    echo $ac_n "(cached) $ac_c" 1>&6
  215.  else
  216.    ac_save_LIBS="$LIBS"
  217.  LIBS="-lncurses  $LIBS"
  218.  cat > conftest.$ac_ext <<EOF
  219. -#line 851 "configure"
  220. +#line 870 "configure"
  221.  #include "confdefs.h"
  222.  /* Override any gcc2 internal prototype to avoid an error.  */
  223. +/* We use char because int might match the return type of a gcc2
  224. +    builtin and then its argument prototype would still apply.  */
  225.  char initscr();
  226.  
  227. -int main() { return 0; }
  228. +int main() { t(); return 0; }
  229.  int t() {
  230.  initscr()
  231.  ; return 0; }
  232.  EOF
  233. -if { (eval echo configure:861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  234. +if { (eval echo configure:882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  235.    rm -rf conftest*
  236.    eval "ac_cv_lib_$ac_lib_var=yes"
  237.  else
  238. @@ -876,24 +897,26 @@ else
  239.  fi
  240.  
  241.  echo $ac_n "checking for -lcurses""... $ac_c" 1>&6
  242. -ac_lib_var=`echo curses_initscr | tr '.-/+' '___p'`
  243. +ac_lib_var=`echo curses'_'initscr | tr './+\055' '__p_'`
  244.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  245.    echo $ac_n "(cached) $ac_c" 1>&6
  246.  else
  247.    ac_save_LIBS="$LIBS"
  248.  LIBS="-lcurses  $LIBS"
  249.  cat > conftest.$ac_ext <<EOF
  250. -#line 887 "configure"
  251. +#line 908 "configure"
  252.  #include "confdefs.h"
  253.  /* Override any gcc2 internal prototype to avoid an error.  */
  254. +/* We use char because int might match the return type of a gcc2
  255. +    builtin and then its argument prototype would still apply.  */
  256.  char initscr();
  257.  
  258. -int main() { return 0; }
  259. +int main() { t(); return 0; }
  260.  int t() {
  261.  initscr()
  262.  ; return 0; }
  263.  EOF
  264. -if { (eval echo configure:897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  265. +if { (eval echo configure:920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  266.    rm -rf conftest*
  267.    eval "ac_cv_lib_$ac_lib_var=yes"
  268.  else
  269. @@ -912,24 +935,26 @@ else
  270.  fi
  271.  
  272.  echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6
  273. -ac_lib_var=`echo termcap_tgetent | tr '.-/+' '___p'`
  274. +ac_lib_var=`echo termcap'_'tgetent | tr './+\055' '__p_'`
  275.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  276.    echo $ac_n "(cached) $ac_c" 1>&6
  277.  else
  278.    ac_save_LIBS="$LIBS"
  279.  LIBS="-ltermcap  $LIBS"
  280.  cat > conftest.$ac_ext <<EOF
  281. -#line 923 "configure"
  282. +#line 946 "configure"
  283.  #include "confdefs.h"
  284.  /* Override any gcc2 internal prototype to avoid an error.  */
  285. +/* We use char because int might match the return type of a gcc2
  286. +    builtin and then its argument prototype would still apply.  */
  287.  char tgetent();
  288.  
  289. -int main() { return 0; }
  290. +int main() { t(); return 0; }
  291.  int t() {
  292.  tgetent()
  293.  ; return 0; }
  294.  EOF
  295. -if { (eval echo configure:933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  296. +if { (eval echo configure:958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  297.    rm -rf conftest*
  298.    eval "ac_cv_lib_$ac_lib_var=yes"
  299.  else
  300. @@ -948,24 +973,26 @@ else
  301.  fi
  302.  
  303.  echo $ac_n "checking for -ltermlib""... $ac_c" 1>&6
  304. -ac_lib_var=`echo termlib_tgetent | tr '.-/+' '___p'`
  305. +ac_lib_var=`echo termlib'_'tgetent | tr './+\055' '__p_'`
  306.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  307.    echo $ac_n "(cached) $ac_c" 1>&6
  308.  else
  309.    ac_save_LIBS="$LIBS"
  310.  LIBS="-ltermlib  $LIBS"
  311.  cat > conftest.$ac_ext <<EOF
  312. -#line 959 "configure"
  313. +#line 984 "configure"
  314.  #include "confdefs.h"
  315.  /* Override any gcc2 internal prototype to avoid an error.  */
  316. +/* We use char because int might match the return type of a gcc2
  317. +    builtin and then its argument prototype would still apply.  */
  318.  char tgetent();
  319.  
  320. -int main() { return 0; }
  321. +int main() { t(); return 0; }
  322.  int t() {
  323.  tgetent()
  324.  ; return 0; }
  325.  EOF
  326. -if { (eval echo configure:969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  327. +if { (eval echo configure:996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  328.    rm -rf conftest*
  329.    eval "ac_cv_lib_$ac_lib_var=yes"
  330.  else
  331. @@ -985,24 +1012,26 @@ have_termlib=no
  332.  fi
  333.  
  334.  echo $ac_n "checking for -lgen""... $ac_c" 1>&6
  335. -ac_lib_var=`echo gen_regcmp | tr '.-/+' '___p'`
  336. +ac_lib_var=`echo gen'_'regcmp | tr './+\055' '__p_'`
  337.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  338.    echo $ac_n "(cached) $ac_c" 1>&6
  339.  else
  340.    ac_save_LIBS="$LIBS"
  341.  LIBS="-lgen  $LIBS"
  342.  cat > conftest.$ac_ext <<EOF
  343. -#line 996 "configure"
  344. +#line 1023 "configure"
  345.  #include "confdefs.h"
  346.  /* Override any gcc2 internal prototype to avoid an error.  */
  347. +/* We use char because int might match the return type of a gcc2
  348. +    builtin and then its argument prototype would still apply.  */
  349.  char regcmp();
  350.  
  351. -int main() { return 0; }
  352. +int main() { t(); return 0; }
  353.  int t() {
  354.  regcmp()
  355.  ; return 0; }
  356.  EOF
  357. -if { (eval echo configure:1006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  358. +if { (eval echo configure:1035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  359.    rm -rf conftest*
  360.    eval "ac_cv_lib_$ac_lib_var=yes"
  361.  else
  362. @@ -1015,7 +1044,7 @@ LIBS="$ac_save_LIBS"
  363.  fi
  364.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  365.    echo "$ac_t""yes" 1>&6
  366. -    ac_tr_lib=HAVE_LIB`echo gen | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  367. +    ac_tr_lib=HAVE_LIB`echo gen | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  368.    cat >> confdefs.h <<EOF
  369.  #define $ac_tr_lib 1
  370.  EOF
  371. @@ -1027,24 +1056,26 @@ else
  372.  fi
  373.  
  374.  echo $ac_n "checking for -lintl""... $ac_c" 1>&6
  375. -ac_lib_var=`echo intl_regcmp | tr '.-/+' '___p'`
  376. +ac_lib_var=`echo intl'_'regcmp | tr './+\055' '__p_'`
  377.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  378.    echo $ac_n "(cached) $ac_c" 1>&6
  379.  else
  380.    ac_save_LIBS="$LIBS"
  381.  LIBS="-lintl  $LIBS"
  382.  cat > conftest.$ac_ext <<EOF
  383. -#line 1038 "configure"
  384. +#line 1067 "configure"
  385.  #include "confdefs.h"
  386.  /* Override any gcc2 internal prototype to avoid an error.  */
  387. +/* We use char because int might match the return type of a gcc2
  388. +    builtin and then its argument prototype would still apply.  */
  389.  char regcmp();
  390.  
  391. -int main() { return 0; }
  392. +int main() { t(); return 0; }
  393.  int t() {
  394.  regcmp()
  395.  ; return 0; }
  396.  EOF
  397. -if { (eval echo configure:1048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  398. +if { (eval echo configure:1079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  399.    rm -rf conftest*
  400.    eval "ac_cv_lib_$ac_lib_var=yes"
  401.  else
  402. @@ -1057,7 +1088,7 @@ LIBS="$ac_save_LIBS"
  403.  fi
  404.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  405.    echo "$ac_t""yes" 1>&6
  406. -    ac_tr_lib=HAVE_LIB`echo intl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  407. +    ac_tr_lib=HAVE_LIB`echo intl | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  408.    cat >> confdefs.h <<EOF
  409.  #define $ac_tr_lib 1
  410.  EOF
  411. @@ -1069,24 +1100,26 @@ else
  412.  fi
  413.  
  414.  echo $ac_n "checking for -lPW""... $ac_c" 1>&6
  415. -ac_lib_var=`echo PW_regcmp | tr '.-/+' '___p'`
  416. +ac_lib_var=`echo PW'_'regcmp | tr './+\055' '__p_'`
  417.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  418.    echo $ac_n "(cached) $ac_c" 1>&6
  419.  else
  420.    ac_save_LIBS="$LIBS"
  421.  LIBS="-lPW  $LIBS"
  422.  cat > conftest.$ac_ext <<EOF
  423. -#line 1080 "configure"
  424. +#line 1111 "configure"
  425.  #include "confdefs.h"
  426.  /* Override any gcc2 internal prototype to avoid an error.  */
  427. +/* We use char because int might match the return type of a gcc2
  428. +    builtin and then its argument prototype would still apply.  */
  429.  char regcmp();
  430.  
  431. -int main() { return 0; }
  432. +int main() { t(); return 0; }
  433.  int t() {
  434.  regcmp()
  435.  ; return 0; }
  436.  EOF
  437. -if { (eval echo configure:1090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  438. +if { (eval echo configure:1123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  439.    rm -rf conftest*
  440.    eval "ac_cv_lib_$ac_lib_var=yes"
  441.  else
  442. @@ -1099,7 +1132,7 @@ LIBS="$ac_save_LIBS"
  443.  fi
  444.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  445.    echo "$ac_t""yes" 1>&6
  446. -    ac_tr_lib=HAVE_LIB`echo PW | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  447. +    ac_tr_lib=HAVE_LIB`echo PW | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  448.    cat >> confdefs.h <<EOF
  449.  #define $ac_tr_lib 1
  450.  EOF
  451. @@ -1115,15 +1148,15 @@ echo $ac_n "checking for working termina
  452.  SAVE_LIBS=$LIBS
  453.  LIBS="$LIBS $TERMLIBS"
  454.  cat > conftest.$ac_ext <<EOF
  455. -#line 1119 "configure"
  456. +#line 1152 "configure"
  457.  #include "confdefs.h"
  458.  
  459. -int main() { return 0; }
  460. +int main() { t(); return 0; }
  461.  int t() {
  462.  tgetent(0); tgetflag(0); tgetnum(0); tgetstr(0);
  463.  ; return 0; }
  464.  EOF
  465. -if { (eval echo configure:1127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  466. +if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  467.    rm -rf conftest*
  468.    termok=yes
  469.  else
  470. @@ -1154,11 +1187,11 @@ else
  471.    ac_cv_c_cross=yes
  472.  else
  473.  cat > conftest.$ac_ext <<EOF
  474. -#line 1158 "configure"
  475. +#line 1191 "configure"
  476.  #include "confdefs.h"
  477.  main(){return(0);}
  478.  EOF
  479. -{ (eval echo configure:1162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  480. +{ (eval echo configure:1195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  481.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  482.    ac_cv_c_cross=no
  483.  else
  484. @@ -1176,7 +1209,7 @@ if eval "test \"`echo '$''{'ac_cv_header
  485.    echo $ac_n "(cached) $ac_c" 1>&6
  486.  else
  487.    cat > conftest.$ac_ext <<EOF
  488. -#line 1180 "configure"
  489. +#line 1213 "configure"
  490.  #include "confdefs.h"
  491.  #include <stdlib.h>
  492.  #include <stdarg.h>
  493. @@ -1184,7 +1217,7 @@ else
  494.  #include <float.h>
  495.  EOF
  496.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  497. -{ (eval echo configure:1188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  498. +{ (eval echo configure:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  499.  ac_err=`grep -v '^ *+' conftest.out`
  500.  if test -z "$ac_err"; then
  501.    rm -rf conftest*
  502. @@ -1199,7 +1232,7 @@ rm -f conftest*
  503.  if test $ac_cv_header_stdc = yes; then
  504.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  505.  cat > conftest.$ac_ext <<EOF
  506. -#line 1203 "configure"
  507. +#line 1236 "configure"
  508.  #include "confdefs.h"
  509.  #include <string.h>
  510.  EOF
  511. @@ -1217,7 +1250,7 @@ fi
  512.  if test $ac_cv_header_stdc = yes; then
  513.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  514.  cat > conftest.$ac_ext <<EOF
  515. -#line 1221 "configure"
  516. +#line 1254 "configure"
  517.  #include "confdefs.h"
  518.  #include <stdlib.h>
  519.  EOF
  520. @@ -1238,7 +1271,7 @@ if test "$cross_compiling" = yes; then
  521.    :
  522.  else
  523.  cat > conftest.$ac_ext <<EOF
  524. -#line 1242 "configure"
  525. +#line 1275 "configure"
  526.  #include "confdefs.h"
  527.  #include <ctype.h>
  528.  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  529. @@ -1249,7 +1282,7 @@ if (XOR (islower (i), ISLOWER (i)) || to
  530.  exit (0); }
  531.  
  532.  EOF
  533. -{ (eval echo configure:1253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  534. +{ (eval echo configure:1286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  535.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  536.    :
  537.  else
  538. @@ -1276,12 +1309,12 @@ if eval "test \"`echo '$''{'ac_cv_header
  539.    echo $ac_n "(cached) $ac_c" 1>&6
  540.  else
  541.    cat > conftest.$ac_ext <<EOF
  542. -#line 1280 "configure"
  543. +#line 1313 "configure"
  544.  #include "confdefs.h"
  545.  #include <$ac_hdr>
  546.  EOF
  547.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  548. -{ (eval echo configure:1285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  549. +{ (eval echo configure:1318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  550.  ac_err=`grep -v '^ *+' conftest.out`
  551.  if test -z "$ac_err"; then
  552.    rm -rf conftest*
  553. @@ -1311,7 +1344,7 @@ if eval "test \"`echo '$''{'ac_cv_type_o
  554.    echo $ac_n "(cached) $ac_c" 1>&6
  555.  else
  556.    cat > conftest.$ac_ext <<EOF
  557. -#line 1315 "configure"
  558. +#line 1348 "configure"
  559.  #include "confdefs.h"
  560.  #include <sys/types.h>
  561.  #if STDC_HEADERS
  562. @@ -1339,7 +1372,7 @@ fi
  563.  
  564.  echo $ac_n "checking for void""... $ac_c" 1>&6
  565.  cat > conftest.$ac_ext <<EOF
  566. -#line 1343 "configure"
  567. +#line 1376 "configure"
  568.  #include "confdefs.h"
  569.  
  570.  int main() { return 0; }
  571. @@ -1347,7 +1380,7 @@ int t() {
  572.  void *foo = 0;
  573.  ; return 0; }
  574.  EOF
  575. -if { (eval echo configure:1351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  576. +if { (eval echo configure:1384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  577.    rm -rf conftest*
  578.    echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  579.  #define HAVE_VOID 1
  580. @@ -1361,7 +1394,7 @@ rm -f conftest*
  581.  
  582.  echo $ac_n "checking for const""... $ac_c" 1>&6
  583.  cat > conftest.$ac_ext <<EOF
  584. -#line 1365 "configure"
  585. +#line 1398 "configure"
  586.  #include "confdefs.h"
  587.  
  588.  int main() { return 0; }
  589. @@ -1369,7 +1402,7 @@ int t() {
  590.  const int foo = 0;
  591.  ; return 0; }
  592.  EOF
  593. -if { (eval echo configure:1373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  594. +if { (eval echo configure:1406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  595.    rm -rf conftest*
  596.    echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  597.  #define HAVE_CONST 1
  598. @@ -1383,7 +1416,7 @@ rm -f conftest*
  599.  
  600.  echo $ac_n "checking for time_t""... $ac_c" 1>&6
  601.  cat > conftest.$ac_ext <<EOF
  602. -#line 1387 "configure"
  603. +#line 1420 "configure"
  604.  #include "confdefs.h"
  605.  #include <time.h>
  606.  int main() { return 0; }
  607. @@ -1391,7 +1424,7 @@ int t() {
  608.  time_t t = 0;
  609.  ; return 0; }
  610.  EOF
  611. -if { (eval echo configure:1395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  612. +if { (eval echo configure:1428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  613.    rm -rf conftest*
  614.    echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  615.  #define HAVE_TIME_T 1
  616. @@ -1409,7 +1442,7 @@ if eval "test \"`echo '$''{'ac_cv_type_s
  617.    echo $ac_n "(cached) $ac_c" 1>&6
  618.  else
  619.    cat > conftest.$ac_ext <<EOF
  620. -#line 1413 "configure"
  621. +#line 1446 "configure"
  622.  #include "confdefs.h"
  623.  #include <sys/types.h>
  624.  #include <signal.h>
  625. @@ -1427,7 +1460,7 @@ int t() {
  626.  int i;
  627.  ; return 0; }
  628.  EOF
  629. -if { (eval echo configure:1431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  630. +if { (eval echo configure:1464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  631.    rm -rf conftest*
  632.    ac_cv_type_signal=void
  633.  else
  634. @@ -1451,15 +1484,17 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  635.    echo $ac_n "(cached) $ac_c" 1>&6
  636.  else
  637.    cat > conftest.$ac_ext <<EOF
  638. -#line 1455 "configure"
  639. +#line 1488 "configure"
  640.  #include "confdefs.h"
  641.  /* System header to define __stub macros and hopefully few prototypes,
  642.      which can conflict with char $ac_func(); below.  */
  643.  #include <assert.h>
  644.  /* Override any gcc2 internal prototype to avoid an error.  */
  645. +/* We use char because int might match the return type of a gcc2
  646. +    builtin and then its argument prototype would still apply.  */
  647.  char $ac_func();
  648.  
  649. -int main() { return 0; }
  650. +int main() { t(); return 0; }
  651.  int t() {
  652.  
  653.  /* The GNU C library defines this for functions which it implements
  654. @@ -1473,7 +1508,7 @@ $ac_func();
  655.  
  656.  ; return 0; }
  657.  EOF
  658. -if { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  659. +if { (eval echo configure:1512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  660.    rm -rf conftest*
  661.    eval "ac_cv_func_$ac_func=yes"
  662.  else
  663. @@ -1501,15 +1536,17 @@ if eval "test \"`echo '$''{'ac_cv_func_t
  664.    echo $ac_n "(cached) $ac_c" 1>&6
  665.  else
  666.    cat > conftest.$ac_ext <<EOF
  667. -#line 1505 "configure"
  668. +#line 1540 "configure"
  669.  #include "confdefs.h"
  670.  /* System header to define __stub macros and hopefully few prototypes,
  671.      which can conflict with char tcgetattr(); below.  */
  672.  #include <assert.h>
  673.  /* Override any gcc2 internal prototype to avoid an error.  */
  674. +/* We use char because int might match the return type of a gcc2
  675. +    builtin and then its argument prototype would still apply.  */
  676.  char tcgetattr();
  677.  
  678. -int main() { return 0; }
  679. +int main() { t(); return 0; }
  680.  int t() {
  681.  
  682.  /* The GNU C library defines this for functions which it implements
  683. @@ -1523,7 +1560,7 @@ tcgetattr();
  684.  
  685.  ; return 0; }
  686.  EOF
  687. -if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  688. +if { (eval echo configure:1564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  689.    rm -rf conftest*
  690.    eval "ac_cv_func_tcgetattr=yes"
  691.  else
  692. @@ -1546,18 +1583,18 @@ fi
  693.  
  694.  echo $ac_n "checking for fileno""... $ac_c" 1>&6
  695.  cat > conftest.$ac_ext <<EOF
  696. -#line 1550 "configure"
  697. +#line 1587 "configure"
  698.  #include "confdefs.h"
  699.  
  700.  #if HAVE_STDIO_H
  701.  #include <stdio.h>
  702.  #endif
  703. -int main() { return 0; }
  704. +int main() { t(); return 0; }
  705.  int t() {
  706.  static int x; x = fileno(stdin);
  707.  ; return 0; }
  708.  EOF
  709. -if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  710. +if { (eval echo configure:1598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  711.    rm -rf conftest*
  712.    echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  713.  #define HAVE_FILENO 1
  714. @@ -1572,7 +1609,7 @@ rm -f conftest*
  715.  
  716.  echo $ac_n "checking for strerror""... $ac_c" 1>&6
  717.  cat > conftest.$ac_ext <<EOF
  718. -#line 1576 "configure"
  719. +#line 1613 "configure"
  720.  #include "confdefs.h"
  721.  
  722.  #if HAVE_STDIO_H
  723. @@ -1584,12 +1621,12 @@ cat > conftest.$ac_ext <<EOF
  724.  #if HAVE_ERRNO_H
  725.  #include <errno.h>
  726.  #endif
  727. -int main() { return 0; }
  728. +int main() { t(); return 0; }
  729.  int t() {
  730.  static char *x; x = strerror(0);
  731.  ; return 0; }
  732.  EOF
  733. -if { (eval echo configure:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  734. +if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  735.    rm -rf conftest*
  736.    echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  737.  #define HAVE_STRERROR 1
  738. @@ -1604,15 +1641,15 @@ rm -f conftest*
  739.  
  740.  echo $ac_n "checking for sys_errlist""... $ac_c" 1>&6
  741.  cat > conftest.$ac_ext <<EOF
  742. -#line 1608 "configure"
  743. +#line 1645 "configure"
  744.  #include "confdefs.h"
  745.  
  746. -int main() { return 0; }
  747. +int main() { t(); return 0; }
  748.  int t() {
  749.  extern char *sys_errlist[]; static char **x; x = sys_errlist;
  750.  ; return 0; }
  751.  EOF
  752. -if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  753. +if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  754.    rm -rf conftest*
  755.    echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  756.  #define HAVE_SYS_ERRLIST 1
  757. @@ -1628,18 +1665,18 @@ rm -f conftest*
  758.  have_errno=no
  759.  echo $ac_n "checking for errno""... $ac_c" 1>&6
  760.  cat > conftest.$ac_ext <<EOF
  761. -#line 1632 "configure"
  762. +#line 1669 "configure"
  763.  #include "confdefs.h"
  764.  
  765.  #if HAVE_ERRNO_H
  766.  #include <errno.h>
  767.  #endif
  768. -int main() { return 0; }
  769. +int main() { t(); return 0; }
  770.  int t() {
  771.  static int x; x = errno;
  772.  ; return 0; }
  773.  EOF
  774. -if { (eval echo configure:1643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  775. +if { (eval echo configure:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  776.    rm -rf conftest*
  777.    echo "$ac_t""yes - in errno.h" 1>&6; cat >> confdefs.h <<\EOF
  778.  #define HAVE_ERRNO 1
  779. @@ -1650,18 +1687,18 @@ rm -f conftest*
  780.  
  781.  if test $have_errno = no; then
  782.  cat > conftest.$ac_ext <<EOF
  783. -#line 1654 "configure"
  784. +#line 1691 "configure"
  785.  #include "confdefs.h"
  786.  
  787.  #if HAVE_ERRNO_H
  788.  #include <errno.h>
  789.  #endif
  790. -int main() { return 0; }
  791. +int main() { t(); return 0; }
  792.  int t() {
  793.  extern int errno; static int x; x = errno;
  794.  ; return 0; }
  795.  EOF
  796. -if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  797. +if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  798.    rm -rf conftest*
  799.    echo "$ac_t""yes - must define" 1>&6; cat >> confdefs.h <<\EOF
  800.  #define HAVE_ERRNO 1
  801. @@ -1680,16 +1717,16 @@ fi
  802.  
  803.  echo $ac_n "checking for locale""... $ac_c" 1>&6
  804.  cat > conftest.$ac_ext <<EOF
  805. -#line 1684 "configure"
  806. +#line 1721 "configure"
  807.  #include "confdefs.h"
  808.  #include <locale.h>
  809.  #include <ctype.h>
  810. -int main() { return 0; }
  811. +int main() { t(); return 0; }
  812.  int t() {
  813.  setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
  814.  ; return 0; }
  815.  EOF
  816. -if { (eval echo configure:1693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  817. +if { (eval echo configure:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  818.    rm -rf conftest*
  819.    echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  820.  #define HAVE_LOCALE 1
  821. @@ -1703,18 +1740,18 @@ rm -f conftest*
  822.  
  823.  echo $ac_n "checking for ctype functions""... $ac_c" 1>&6
  824.  cat > conftest.$ac_ext <<EOF
  825. -#line 1707 "configure"
  826. +#line 1744 "configure"
  827.  #include "confdefs.h"
  828.  
  829.  #if HAVE_CTYPE_H
  830.  #include <ctype.h>
  831.  #endif
  832. -int main() { return 0; }
  833. +int main() { t(); return 0; }
  834.  int t() {
  835.  static int x; x = isupper(x); x = tolower(x); x = toupper(x);
  836.  ; return 0; }
  837.  EOF
  838. -if { (eval echo configure:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  839. +if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  840.    rm -rf conftest*
  841.    echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  842.  #define HAVE_UPPER_LOWER 1
  843. @@ -1730,7 +1767,7 @@ rm -f conftest*
  844.  have_ospeed=no
  845.  echo $ac_n "checking termcap for ospeed""... $ac_c" 1>&6
  846.  cat > conftest.$ac_ext <<EOF
  847. -#line 1734 "configure"
  848. +#line 1771 "configure"
  849.  #include "confdefs.h"
  850.  
  851.  #include <sys/types.h>
  852. @@ -1740,12 +1777,12 @@ cat > conftest.$ac_ext <<EOF
  853.  #if HAVE_TERMCAP_H
  854.  #include <termcap.h>
  855.  #endif
  856. -int main() { return 0; }
  857. +int main() { t(); return 0; }
  858.  int t() {
  859.  ospeed = 0;
  860.  ; return 0; }
  861.  EOF
  862. -if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  863. +if { (eval echo configure:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  864.    rm -rf conftest*
  865.    echo "$ac_t""yes - in termcap.h" 1>&6; cat >> confdefs.h <<\EOF
  866.  #define HAVE_OSPEED 1
  867. @@ -1756,15 +1793,15 @@ rm -f conftest*
  868.  
  869.  if test $have_ospeed = no; then
  870.  cat > conftest.$ac_ext <<EOF
  871. -#line 1760 "configure"
  872. +#line 1797 "configure"
  873.  #include "confdefs.h"
  874.  
  875. -int main() { return 0; }
  876. +int main() { t(); return 0; }
  877.  int t() {
  878.  extern short ospeed; ospeed = 0;
  879.  ; return 0; }
  880.  EOF
  881. -if { (eval echo configure:1768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  882. +if { (eval echo configure:1805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  883.    rm -rf conftest*
  884.    echo "$ac_t""yes - must define" 1>&6; cat >> confdefs.h <<\EOF
  885.  #define HAVE_OSPEED 1
  886. @@ -1788,7 +1825,7 @@ if test "$cross_compiling" = yes; then
  887.    have_posix_regex=unknown
  888.  else
  889.  cat > conftest.$ac_ext <<EOF
  890. -#line 1792 "configure"
  891. +#line 1829 "configure"
  892.  #include "confdefs.h"
  893.  
  894.  #include <sys/types.h>
  895. @@ -1798,7 +1835,7 @@ if (regcomp(&r, "abc", 0)) exit(1);
  896.  if (regexec(&r, "xabcy", 1, &rm, 0)) exit(1);
  897.  exit(0); }
  898.  EOF
  899. -{ (eval echo configure:1802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  900. +{ (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  901.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  902.    have_posix_regex=yes
  903.  else
  904. @@ -1815,17 +1852,17 @@ EOF
  905.    have_regex=yes
  906.  elif test $have_posix_regex = unknown; then
  907.    cat > conftest.$ac_ext <<EOF
  908. -#line 1819 "configure"
  909. +#line 1856 "configure"
  910.  #include "confdefs.h"
  911.  
  912.  #include <sys/types.h>
  913.  #include <regex.h>
  914. -int main() { return 0; }
  915. +int main() { t(); return 0; }
  916.  int t() {
  917.  regex_t *r; regfree(r);
  918.  ; return 0; }
  919.  EOF
  920. -if { (eval echo configure:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  921. +if { (eval echo configure:1866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  922.    rm -rf conftest*
  923.    echo "$ac_t""using POSIX regcomp" 1>&6
  924.    cat >> confdefs.h <<\EOF
  925. @@ -1842,15 +1879,17 @@ if eval "test \"`echo '$''{'ac_cv_func_r
  926.    echo $ac_n "(cached) $ac_c" 1>&6
  927.  else
  928.    cat > conftest.$ac_ext <<EOF
  929. -#line 1846 "configure"
  930. +#line 1883 "configure"
  931.  #include "confdefs.h"
  932.  /* System header to define __stub macros and hopefully few prototypes,
  933.      which can conflict with char regcmp(); below.  */
  934.  #include <assert.h>
  935.  /* Override any gcc2 internal prototype to avoid an error.  */
  936. +/* We use char because int might match the return type of a gcc2
  937. +    builtin and then its argument prototype would still apply.  */
  938.  char regcmp();
  939.  
  940. -int main() { return 0; }
  941. +int main() { t(); return 0; }
  942.  int t() {
  943.  
  944.  /* The GNU C library defines this for functions which it implements
  945. @@ -1864,7 +1903,7 @@ regcmp();
  946.  
  947.  ; return 0; }
  948.  EOF
  949. -if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  950. +if { (eval echo configure:1907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  951.    rm -rf conftest*
  952.    eval "ac_cv_func_regcmp=yes"
  953.  else
  954. @@ -1887,16 +1926,16 @@ fi
  955.  fi
  956.  if test $have_regex = no; then
  957.  cat > conftest.$ac_ext <<EOF
  958. -#line 1891 "configure"
  959. +#line 1930 "configure"
  960.  #include "confdefs.h"
  961.  
  962.  #include "regexp.h"
  963. -int main() { return 0; }
  964. +int main() { t(); return 0; }
  965.  int t() {
  966.  regcomp("");
  967.  ; return 0; }
  968.  EOF
  969. -if { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  970. +if { (eval echo configure:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  971.    rm -rf conftest*
  972.    echo "$ac_t""using V8 regcomp" 1>&6; cat >> confdefs.h <<\EOF
  973.  #define HAVE_V8_REGCOMP 1
  974. @@ -1924,15 +1963,17 @@ if eval "test \"`echo '$''{'ac_cv_func_r
  975.    echo $ac_n "(cached) $ac_c" 1>&6
  976.  else
  977.    cat > conftest.$ac_ext <<EOF
  978. -#line 1928 "configure"
  979. +#line 1967 "configure"
  980.  #include "confdefs.h"
  981.  /* System header to define __stub macros and hopefully few prototypes,
  982.      which can conflict with char re_comp(); below.  */
  983.  #include <assert.h>
  984.  /* Override any gcc2 internal prototype to avoid an error.  */
  985. +/* We use char because int might match the return type of a gcc2
  986. +    builtin and then its argument prototype would still apply.  */
  987.  char re_comp();
  988.  
  989. -int main() { return 0; }
  990. +int main() { t(); return 0; }
  991.  int t() {
  992.  
  993.  /* The GNU C library defines this for functions which it implements
  994. @@ -1946,7 +1987,7 @@ re_comp();
  995.  
  996.  ; return 0; }
  997.  EOF
  998. -if { (eval echo configure:1950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  999. +if { (eval echo configure:1991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1000.    rm -rf conftest*
  1001.    eval "ac_cv_func_re_comp=yes"
  1002.  else
  1003. @@ -2029,7 +2070,9 @@ DEFS=-DHAVE_CONFIG_H
  1004.  : ${CONFIG_STATUS=./config.status}
  1005.  
  1006.  echo creating $CONFIG_STATUS
  1007. -rm -f $CONFIG_STATUS
  1008. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  1009. +# being executed, so just move it out of the way instead.
  1010. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1011.  cat > $CONFIG_STATUS <<EOF
  1012.  #! /bin/sh
  1013.  # Generated automatically by configure.
  1014. @@ -2050,7 +2093,7 @@ do
  1015.      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1016.      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1017.    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1018. -    echo "$CONFIG_STATUS generated by autoconf version 2.9"
  1019. +    echo "$CONFIG_STATUS generated by autoconf version 2.10"
  1020.      exit 0 ;;
  1021.    -help | --help | --hel | --he | --h)
  1022.      echo "\$ac_cs_usage"; exit 0 ;;
  1023. @@ -2090,6 +2133,9 @@ s%@libdir@%$libdir%g
  1024.  s%@includedir@%$includedir%g
  1025.  s%@oldincludedir@%$oldincludedir%g
  1026.  s%@infodir@%$infodir%g
  1027. +s%@guidedir@%$guidedir%g
  1028. +s%@psdir@%$psdir%g
  1029. +s%@dvidir@%$dvidir%g
  1030.  s%@mandir@%$mandir%g
  1031.  s%@CC@%$CC%g
  1032.  s%@CPP@%$CPP%g
  1033. @@ -2248,6 +2294,12 @@ cat >> $CONFIG_STATUS <<\EOF
  1034.      echo "$ac_file is unchanged"
  1035.      rm -f conftest.h
  1036.    else
  1037. +    # Remove last slash and all that follows it.  Not all systems have dirname.
  1038. +      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1039. +      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1040. +      # The file is in a subdirectory.
  1041. +      test ! -d "$ac_dir" && mkdir "$ac_dir"
  1042. +    fi
  1043.      rm -f $ac_file
  1044.      mv conftest.h $ac_file
  1045.    fi
  1046. @@ -2258,6 +2310,7 @@ fi; done
  1047.  exit 0
  1048.  EOF
  1049.  chmod +x $CONFIG_STATUS
  1050. +rm -f CONFIG.STATUS.old
  1051.  rm -fr confdefs* $ac_clean_files
  1052.  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1053.  
  1054. diff -rup --new-file baseline/fsf/less/less.h amiga/fsf/less/less.h
  1055. --- baseline/fsf/less/less.h    Tue Jul 16 14:59:34 1996
  1056. +++ amiga/fsf/less/less.h    Sat Sep 28 00:00:00 1996
  1057. @@ -176,7 +176,11 @@ typedef long        POSITION;
  1058.  #if MSDOS_COMPILER || OS2
  1059.  #define    OPEN_TTYIN()    open("CON", OPEN_READ)
  1060.  #else
  1061. +#ifdef __amigaos__
  1062. +#define OPEN_TTYIN()    2   /* FIXME: should be something like open("con:", OPEN_READ) */
  1063. +#else
  1064.  #define    OPEN_TTYIN()    open("/dev/tty", OPEN_READ)
  1065. +#endif
  1066.  #endif
  1067.  
  1068.  #if MSDOS_COMPILER || OS2 || _OSK
  1069. diff -rup --new-file baseline/fsf/less/manifests/bin amiga/fsf/less/manifests/bin
  1070. --- baseline/fsf/less/manifests/bin    Wed Dec 31 17:00:00 1969
  1071. +++ amiga/fsf/less/manifests/bin    Sat Sep 28 00:00:00 1996
  1072. @@ -0,0 +1,6 @@
  1073. +COPYING
  1074. +COPYING.info
  1075. +bin/less
  1076. +bin/lesskey
  1077. +man/man1/less.1
  1078. +man/man1/lesskey.1
  1079. diff -rup --new-file baseline/fsf/less/manifests/src amiga/fsf/less/manifests/src
  1080. --- baseline/fsf/less/manifests/src    Wed Dec 31 17:00:00 1969
  1081. +++ amiga/fsf/less/manifests/src    Sat Sep 28 00:00:00 1996
  1082. @@ -0,0 +1,72 @@
  1083. +fsf/less/INSTALL
  1084. +fsf/less/Makefile.aut
  1085. +fsf/less/Makefile.bcc
  1086. +fsf/less/Makefile.dos
  1087. +fsf/less/Makefile.in
  1088. +fsf/less/Makefile.o9c
  1089. +fsf/less/Makefile.o9u
  1090. +fsf/less/Makefile.os2
  1091. +fsf/less/Makefile.w32
  1092. +fsf/less/NEWS
  1093. +fsf/less/Product-Info
  1094. +fsf/less/README
  1095. +fsf/less/acconfig.h
  1096. +fsf/less/brac.c
  1097. +fsf/less/ch.c
  1098. +fsf/less/charset.c
  1099. +fsf/less/cmd.h
  1100. +fsf/less/cmdbuf.c
  1101. +fsf/less/command.c
  1102. +fsf/less/configure
  1103. +fsf/less/configure.in
  1104. +fsf/less/decode.c
  1105. +fsf/less/defines.dos
  1106. +fsf/less/defines.h.in
  1107. +fsf/less/defines.h.top
  1108. +fsf/less/defines.o9
  1109. +fsf/less/defines.os2
  1110. +fsf/less/defines.w32
  1111. +fsf/less/edit.c
  1112. +fsf/less/filename.c
  1113. +fsf/less/forwback.c
  1114. +fsf/less/funcs.h
  1115. +fsf/less/help.c
  1116. +fsf/less/ifile.c
  1117. +fsf/less/input.c
  1118. +fsf/less/install.sh
  1119. +fsf/less/jump.c
  1120. +fsf/less/less.h
  1121. +fsf/less/less.hlp
  1122. +fsf/less/less.man
  1123. +fsf/less/less.nro
  1124. +fsf/less/lesskey.c
  1125. +fsf/less/lesskey.h
  1126. +fsf/less/lesskey.man
  1127. +fsf/less/lesskey.nro
  1128. +fsf/less/line.c
  1129. +fsf/less/linenum.c
  1130. +fsf/less/lsystem.c
  1131. +fsf/less/main.c
  1132. +fsf/less/manifests/bin
  1133. +fsf/less/manifests/src
  1134. +fsf/less/mark.c
  1135. +fsf/less/mkfuncs.awk
  1136. +fsf/less/mkhelp.c
  1137. +fsf/less/mkinstalldirs
  1138. +fsf/less/optfunc.c
  1139. +fsf/less/option.c
  1140. +fsf/less/option.h
  1141. +fsf/less/opttbl.c
  1142. +fsf/less/os.c
  1143. +fsf/less/output.c
  1144. +fsf/less/position.c
  1145. +fsf/less/position.h
  1146. +fsf/less/prompt.c
  1147. +fsf/less/regexp.c
  1148. +fsf/less/regexp.h
  1149. +fsf/less/screen.c
  1150. +fsf/less/search.c
  1151. +fsf/less/signal.c
  1152. +fsf/less/tags.c
  1153. +fsf/less/ttyin.c
  1154. +fsf/less/version.c
  1155. diff -rup --new-file baseline/fsf/less/os.c amiga/fsf/less/os.c
  1156. --- baseline/fsf/less/os.c    Mon Jun 10 10:01:43 1996
  1157. +++ amiga/fsf/less/os.c    Sat Sep 28 00:00:00 1996
  1158. @@ -187,6 +187,7 @@ errno_message(filename)
  1159.  #if MUST_DEFINE_ERRNO
  1160.      extern int errno;
  1161.  #endif
  1162. +    extern char *strerror (int); /* FIXME - use MUST_DEFINE_STRERROR? */
  1163.      p = strerror(errno);
  1164.  #else
  1165.      p = "cannot open";
  1166.