home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / src / diffs / less-252.diffs < prev    next >
Encoding:
Text File  |  1995-01-21  |  92.8 KB  |  3,291 lines

  1. diff -rc --new-file less-252/Makefile.in /gnu/src/amiga/less-252/Makefile.in
  2. *** less-252/Makefile.in    Mon Nov  7 00:04:04 1994
  3. --- /gnu/src/amiga/less-252/Makefile.in    Thu Jan  5 12:08:00 1995
  4. ***************
  5. *** 10,18 ****
  6.   INSTALL_PROGRAM = @INSTALL_PROGRAM@
  7.   INSTALL_DATA = @INSTALL_DATA@
  8.   
  9. ! CFLAGS = -O
  10.   CFLAGS_COMPILE_ONLY = -c
  11. ! LDFLAGS = 
  12.   O=o
  13.   
  14.   LIBS = @LIBS@
  15. --- 10,18 ----
  16.   INSTALL_PROGRAM = @INSTALL_PROGRAM@
  17.   INSTALL_DATA = @INSTALL_DATA@
  18.   
  19. ! CFLAGS = @CFLAGS@
  20.   CFLAGS_COMPILE_ONLY = -c
  21. ! LDFLAGS = @LDFLAGS@
  22.   O=o
  23.   
  24.   LIBS = @LIBS@
  25. diff -rc --new-file less-252/Product-Info /gnu/src/amiga/less-252/Product-Info
  26. *** less-252/Product-Info    Thu Jan  1 00:00:00 1970
  27. --- /gnu/src/amiga/less-252/Product-Info    Thu Jan  5 12:35:43 1995
  28. ***************
  29. *** 0 ****
  30. --- 1,29 ----
  31. + .name
  32. + less
  33. + .type
  34. + Programmer Tool
  35. + .short
  36. + Viewer program similar to "more".
  37. + .description
  38. + Less is a program similar to more (1), but which allows backward
  39. + movement in the file as well as forward movement.  Also, less does not
  40. + have to read the entire input file before starting, so with large
  41. + input files it starts up faster than text editors like vi (1).  Less
  42. + uses termcap (or terminfo on some systems), so it can run on a variety
  43. + of terminals.  There is even limited support for hardcopy terminals.
  44. + (On a hardcopy terminal, lines which should be printed at the top of
  45. + the screen are prefixed with a caret.)
  46. + Commands are based on both more and vi.  Commands may be preceded by a
  47. + decimal number, called N in the descriptions below.  The number is
  48. + used by some commands, as indicated.
  49. + .version
  50. + 252
  51. + .author
  52. + Mark Nudelman et al.
  53. + .requirements
  54. + Amiga binaries require ixemul.library.
  55. + .distribution
  56. + Freely distributable.
  57. + .described-by
  58. + Fred Fish (fnf@amigalib.com)
  59. diff -rc --new-file less-252/charset.c /gnu/src/amiga/less-252/charset.c
  60. *** less-252/charset.c    Sat Oct 15 07:16:44 1994
  61. --- /gnu/src/amiga/less-252/charset.c    Thu Jan  5 13:48:22 1995
  62. ***************
  63. *** 237,243 ****
  64. --- 237,247 ----
  65.       /*
  66.        * Default to "ascii".
  67.        */
  68. + #ifdef __amigados    /* Should be machine configurable? */
  69. +     (void) icharset("latin1");
  70. + #else
  71.       (void) icharset("ascii");
  72. + #endif
  73.   #endif
  74.   }
  75.   
  76. diff -rc --new-file less-252/configure /gnu/src/amiga/less-252/configure
  77. *** less-252/configure    Wed Nov 16 19:24:58 1994
  78. --- /gnu/src/amiga/less-252/configure    Thu Jan  5 11:53:54 1995
  79. ***************
  80. *** 1,64 ****
  81.   #!/bin/sh
  82. - # Guess values for system-dependent variables and create Makefiles.
  83. - # Generated automatically using autoconf version 1.11 
  84. - # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  85.   
  86. ! # This configure script is free software; you can redistribute it and/or
  87. ! # modify it under the terms of the GNU General Public License as published
  88. ! # by the Free Software Foundation; either version 2, or (at your option)
  89. ! # any later version.
  90. ! # This script is distributed in the hope that it will be useful, but
  91. ! # WITHOUT ANY WARRANTY; without even the implied warranty of
  92. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  93. ! # Public License for more details.
  94. ! # You should have received a copy of the GNU General Public License
  95. ! # along with this program; if not, write to the Free Software
  96. ! # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  97.   
  98. ! # Save the original args to write them into config.status later.
  99. ! configure_args="$*"
  100. ! # Only options that might do something get documented.
  101. ! ac_usage="Usage: configure [options] [host]
  102. ! Options: [defaults in brackets after descriptions]
  103. ! --build=BUILD        configure for building on BUILD [BUILD=HOST]
  104. ! --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  105. ! --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  106. ! --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  107. ! --help            print this message
  108. ! --host=HOST        configure for HOST [guessed]
  109. ! --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  110. ! --quiet, --silent    do not print \`checking for...' messages
  111. ! --srcdir=DIR        find the sources in DIR [configure dir or ..]
  112. ! --target=TARGET        configure for TARGET [TARGET=HOST]
  113. ! --verbose        print results of checks
  114. ! --version        print the version of autoconf that created configure
  115. ! --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  116. ! --without-PACKAGE    do not use PACKAGE (same as --with-PACKAGE=no)
  117. ! --x-includes=DIR    X include files are in DIR
  118. ! --x-libraries=DIR    X library files are in DIR"
  119.   
  120.   # Initialize some variables set by options.
  121.   # The variables have the same names as the options, with
  122.   # dashes changed to underlines.
  123.   build=NONE
  124. ! exec_prefix=
  125.   host=NONE
  126.   no_create=
  127.   nonopt=NONE
  128. ! norecursion=
  129. ! prefix=
  130. ! program_prefix=
  131. ! program_suffix=
  132. ! program_transform_name=
  133.   silent=
  134.   srcdir=
  135.   target=NONE
  136.   verbose=
  137. ! x_includes=
  138. ! x_libraries=
  139.   
  140.   ac_prev=
  141.   for ac_option
  142. --- 1,41 ----
  143.   #!/bin/sh
  144.   
  145. ! # Guess values for system-dependent variables and create Makefiles.
  146. ! # Generated automatically using autoconf version 2.1 
  147. ! # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  148. ! #
  149. ! # This configure script is free software; the Free Software Foundation
  150. ! # gives unlimited permission to copy, distribute and modify it.
  151.   
  152. ! # Defaults:
  153. ! ac_help=
  154. ! ac_default_prefix=/gnu
  155. ! # Any additions from configure.in:
  156.   
  157.   # Initialize some variables set by options.
  158.   # The variables have the same names as the options, with
  159.   # dashes changed to underlines.
  160.   build=NONE
  161. ! cache_file=./config.cache
  162. ! exec_prefix=NONE
  163.   host=NONE
  164.   no_create=
  165.   nonopt=NONE
  166. ! no_recursion=
  167. ! prefix=NONE
  168. ! program_prefix=NONE
  169. ! program_suffix=NONE
  170. ! program_transform_name=s,x,x,
  171.   silent=
  172. + site=
  173.   srcdir=
  174.   target=NONE
  175.   verbose=
  176. ! x_includes=NONE
  177. ! x_libraries=NONE
  178. ! # Initialize some other variables.
  179. ! subdirs=
  180.   
  181.   ac_prev=
  182.   for ac_option
  183. ***************
  184. *** 71,84 ****
  185.       continue
  186.     fi
  187.   
  188. -   # Accept (but ignore some of) the important Cygnus configure
  189. -   # options, so we can diagnose typos.
  190.     case "$ac_option" in
  191. !   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  192.     *) ac_optarg= ;;
  193.     esac
  194.   
  195.     case "$ac_option" in
  196.   
  197.     -build | --build | --buil | --bui | --bu | --b)
  198. --- 48,60 ----
  199.       continue
  200.     fi
  201.   
  202.     case "$ac_option" in
  203. !   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  204.     *) ac_optarg= ;;
  205.     esac
  206.   
  207. +   # Accept the important Cygnus configure options, so we can diagnose typos.
  208.     case "$ac_option" in
  209.   
  210.     -build | --build | --buil | --bui | --bu | --b)
  211. ***************
  212. *** 86,114 ****
  213.     -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  214.       build="$ac_optarg" ;;
  215.   
  216.     -disable-* | --disable-*)
  217. !     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  218. !     # Reject names that aren't valid shell variable names.
  219. !     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  220. !       echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  221.       fi
  222. !     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  223.       eval "enable_${ac_feature}=no" ;;
  224.   
  225.     -enable-* | --enable-*)
  226. !     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  227. !     # Reject names that aren't valid shell variable names.
  228. !     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  229. !       echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  230.       fi
  231. !     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  232.       case "$ac_option" in
  233.         *=*) ;;
  234.         *) ac_optarg=yes ;;
  235.       esac
  236.       eval "enable_${ac_feature}='$ac_optarg'" ;;
  237.   
  238. -   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  239.     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  240.     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  241.     | --exec | --exe | --ex)
  242. --- 62,96 ----
  243.     -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  244.       build="$ac_optarg" ;;
  245.   
  246. +   -cache-file | --cache-file | --cache-fil | --cache-fi \
  247. +   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  248. +     ac_prev=cache_file ;;
  249. +   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  250. +   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  251. +     cache_file="$ac_optarg" ;;
  252.     -disable-* | --disable-*)
  253. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  254. !     # Reject names that are not valid shell variable names.
  255. !     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  256. !       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  257.       fi
  258. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  259.       eval "enable_${ac_feature}=no" ;;
  260.   
  261.     -enable-* | --enable-*)
  262. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  263. !     # Reject names that are not valid shell variable names.
  264. !     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  265. !       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  266.       fi
  267. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  268.       case "$ac_option" in
  269.         *=*) ;;
  270.         *) ac_optarg=yes ;;
  271.       esac
  272.       eval "enable_${ac_feature}='$ac_optarg'" ;;
  273.   
  274.     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  275.     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  276.     | --exec | --exe | --ex)
  277. ***************
  278. *** 119,129 ****
  279.       exec_prefix="$ac_optarg" ;;
  280.   
  281.     -gas | --gas | --ga | --g)
  282. !     with_gas=yes ;; # Obsolete; use --with-gas.
  283.   
  284.     -help | --help | --hel | --he)
  285.       cat << EOF
  286. ! $ac_usage
  287.   EOF
  288.       exit 0 ;;
  289.   
  290. --- 101,142 ----
  291.       exec_prefix="$ac_optarg" ;;
  292.   
  293.     -gas | --gas | --ga | --g)
  294. !     # Obsolete; use --with-gas.
  295. !     with_gas=yes ;;
  296.   
  297.     -help | --help | --hel | --he)
  298. +     # Omit some internal or obsolete options to make the list less imposing.
  299. +     # This message is too long to be a string in the A/UX 3.1 sh.
  300.       cat << EOF
  301. ! Usage: configure [options] [host]
  302. ! Options: [defaults in brackets after descriptions]
  303. ! Configuration:
  304. !   --cache-file=FILE       cache test results in FILE
  305. !   --help                  print this message
  306. !   --no-create             do not create output files
  307. !   --quiet, --silent       do not print \`checking...' messages
  308. !   --version               print the version of autoconf that created configure
  309. ! Directory and file names:
  310. !   --prefix=PREFIX         install architecture-independent files in PREFIX
  311. !                           [$ac_default_prefix]
  312. !   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  313. !                           [same as prefix]
  314. !   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  315. !   --program-prefix=PREFIX prepend PREFIX to installed program names
  316. !   --program-suffix=SUFFIX append SUFFIX to installed program names
  317. !   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  318. ! Host type:
  319. !   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  320. !   --host=HOST             configure for HOST [guessed]
  321. !   --target=TARGET         configure for TARGET [TARGET=HOST]
  322. ! Features and packages:
  323. !   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  324. !   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  325. !   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  326. !   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  327. !   --x-includes=DIR        X include files are in DIR
  328. !   --x-libraries=DIR       X library files are in DIR
  329. ! --enable and --with options recognized:$ac_help
  330.   EOF
  331.       exit 0 ;;
  332.   
  333. ***************
  334. *** 133,147 ****
  335.       host="$ac_optarg" ;;
  336.   
  337.     -nfp | --nfp | --nf)
  338. !     with_fp=no ;; # Obsolete; use --without-fp.
  339.   
  340.     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  341.     | --no-cr | --no-c)
  342.       no_create=yes ;;
  343.   
  344. !   -norecursion | --norecursion | --norecursio | --norecursi \
  345. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  346. !     norecursion=yes ;;
  347.   
  348.     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  349.       ac_prev=prefix ;;
  350. --- 146,161 ----
  351.       host="$ac_optarg" ;;
  352.   
  353.     -nfp | --nfp | --nf)
  354. !     # Obsolete; use --without-fp.
  355. !     with_fp=no ;;
  356.   
  357.     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  358.     | --no-cr | --no-c)
  359.       no_create=yes ;;
  360.   
  361. !   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  362. !   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  363. !     no_recursion=yes ;;
  364.   
  365.     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  366.       ac_prev=prefix ;;
  367. ***************
  368. *** 183,188 ****
  369. --- 197,207 ----
  370.     | -silent | --silent | --silen | --sile | --sil)
  371.       silent=yes ;;
  372.   
  373. +   -site | --site | --sit)
  374. +     ac_prev=site ;;
  375. +   -site=* | --site=* | --sit=*)
  376. +     site="$ac_optarg" ;;
  377.     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  378.       ac_prev=srcdir ;;
  379.     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  380. ***************
  381. *** 197,212 ****
  382.       verbose=yes ;;
  383.   
  384.     -version | --version | --versio | --versi | --vers)
  385. !     echo "configure generated by autoconf version 1.11"
  386.       exit 0 ;;
  387.   
  388.     -with-* | --with-*)
  389. !     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  390. !     # Reject names that aren't valid shell variable names.
  391. !     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  392. !       echo "configure: $ac_package: invalid package name" >&2; exit 1
  393.       fi
  394. !     ac_package=`echo $ac_package| sed 's/-/_/g'`
  395.       case "$ac_option" in
  396.         *=*) ;;
  397.         *) ac_optarg=yes ;;
  398. --- 216,231 ----
  399.       verbose=yes ;;
  400.   
  401.     -version | --version | --versio | --versi | --vers)
  402. !     echo "configure generated by autoconf version 2.1"
  403.       exit 0 ;;
  404.   
  405.     -with-* | --with-*)
  406. !     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  407. !     # Reject names that are not valid shell variable names.
  408. !     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  409. !       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  410.       fi
  411. !     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  412.       case "$ac_option" in
  413.         *=*) ;;
  414.         *) ac_optarg=yes ;;
  415. ***************
  416. *** 214,228 ****
  417.       eval "with_${ac_package}='$ac_optarg'" ;;
  418.   
  419.     -without-* | --without-*)
  420. !     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  421. !     # Reject names that aren't valid shell variable names.
  422. !     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  423. !       echo "configure: $ac_package: invalid package name" >&2; exit 1
  424.       fi
  425. !     ac_package=`echo $ac_package| sed 's/-/_/g'`
  426.       eval "with_${ac_package}=no" ;;
  427.   
  428. !   --x) with_x=yes ;; # Obsolete; use --with-x.
  429.   
  430.     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  431.     | --x-incl | --x-inc | --x-in | --x-i)
  432. --- 233,249 ----
  433.       eval "with_${ac_package}='$ac_optarg'" ;;
  434.   
  435.     -without-* | --without-*)
  436. !     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  437. !     # Reject names that are not valid shell variable names.
  438. !     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  439. !       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  440.       fi
  441. !     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  442.       eval "with_${ac_package}=no" ;;
  443.   
  444. !   --x)
  445. !     # Obsolete; use --with-x.
  446. !     with_x=yes ;;
  447.   
  448.     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  449.     | --x-incl | --x-inc | --x-in | --x-i)
  450. ***************
  451. *** 238,252 ****
  452.     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  453.       x_libraries="$ac_optarg" ;;
  454.   
  455. !   -*) echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  456.       ;;
  457.   
  458.     *) 
  459. !     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  460. !       echo "configure: warning: $ac_option: invalid host type" >&2
  461.       fi
  462.       if test "x$nonopt" != xNONE; then
  463. !       echo "configure: can only configure for one host and one target at a time" >&2; exit 1
  464.       fi
  465.       nonopt="$ac_option"
  466.       ;;
  467. --- 259,273 ----
  468.     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  469.       x_libraries="$ac_optarg" ;;
  470.   
  471. !   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  472.       ;;
  473.   
  474.     *) 
  475. !     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  476. !       echo "configure: warning: $ac_option: invalid host type" 1>&2
  477.       fi
  478.       if test "x$nonopt" != xNONE; then
  479. !       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  480.       fi
  481.       nonopt="$ac_option"
  482.       ;;
  483. ***************
  484. *** 255,290 ****
  485.   done
  486.   
  487.   if test -n "$ac_prev"; then
  488. !   echo "configure: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  489.   fi
  490.   
  491.   trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  492. - trap 'rm -fr confdefs* $ac_clean_files' 0
  493.   
  494. ! # Save the original args if we used an alternate arg parser.
  495. ! ac_configure_temp="${configure_args-$*}"
  496. ! # Strip out --no-create and --norecursion so they don't pile up.
  497. ! configure_args=
  498. ! for ac_arg in $ac_configure_temp; do
  499.     case "$ac_arg" in
  500.     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  501.     | --no-cr | --no-c) ;;
  502. !   -norecursion | --norecursion | --norecursio | --norecursi \
  503. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  504. !   *) configure_args="$configure_args $ac_arg" ;;
  505.     esac
  506.   done
  507.   
  508.   # NLS nuisances.
  509.   # These must not be set unconditionally because not all systems understand
  510.   # e.g. LANG=C (notably SCO).
  511. ! if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  512. ! if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  513.   
  514.   # confdefs.h avoids OS command line length limits that DEFS can exceed.
  515.   rm -rf conftest* confdefs.h
  516.   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  517. ! echo > confdefs.h
  518.   
  519.   # A filename unique to this package, relative to the directory that
  520.   # configure is in, which we can look for to find out if srcdir is correct.
  521. --- 276,332 ----
  522.   done
  523.   
  524.   if test -n "$ac_prev"; then
  525. !   { echo "configure: error: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  526.   fi
  527.   
  528.   trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  529.   
  530. ! # File descriptor usage:
  531. ! # 0 unused; standard input
  532. ! # 1 file creation
  533. ! # 2 errors and warnings
  534. ! # 3 unused; some systems may open it to /dev/tty
  535. ! # 4 checking for... messages and results
  536. ! # 5 compiler messages saved in config.log
  537. ! if test "$silent" = yes; then
  538. !   exec 4>/dev/null
  539. ! else
  540. !   exec 4>&1
  541. ! fi
  542. ! exec 5>./config.log
  543. ! echo "\
  544. ! This file contains any messages produced by compilers while
  545. ! running configure, to aid debugging if configure makes a mistake.
  546. ! " 1>&5
  547. ! # Strip out --no-create and --no-recursion so they do not pile up.
  548. ! # Also quote any args containing shell metacharacters.
  549. ! ac_configure_args=
  550. ! for ac_arg
  551. ! do
  552.     case "$ac_arg" in
  553.     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  554.     | --no-cr | --no-c) ;;
  555. !   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  556. !   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  557. !   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  558. !   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  559. !   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  560.     esac
  561.   done
  562.   
  563.   # NLS nuisances.
  564. + # Only set LANG and LC_ALL to C if already set.
  565.   # These must not be set unconditionally because not all systems understand
  566.   # e.g. LANG=C (notably SCO).
  567. ! if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  568. ! if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  569.   
  570.   # confdefs.h avoids OS command line length limits that DEFS can exceed.
  571.   rm -rf conftest* confdefs.h
  572.   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  573. ! /bin/echo > confdefs.h
  574.   
  575.   # A filename unique to this package, relative to the directory that
  576.   # configure is in, which we can look for to find out if srcdir is correct.
  577. ***************
  578. *** 293,452 ****
  579.   # Find the source files, if location was not specified.
  580.   if test -z "$srcdir"; then
  581.     ac_srcdir_defaulted=yes
  582. !   # Try the directory containing this script, then `..'.
  583.     ac_prog=$0
  584. !   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  585.     test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  586.     srcdir=$ac_confdir
  587.     if test ! -r $srcdir/$ac_unique_file; then
  588.       srcdir=..
  589.     fi
  590.   fi
  591.   if test ! -r $srcdir/$ac_unique_file; then
  592. !   if test x$ac_srcdir_defaulted = xyes; then
  593. !     echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  594.     else
  595. !     echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  596.     fi
  597.   fi
  598.   ac_ext=c
  599.   # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  600. ! ac_cpp='${CPP}'
  601. ! ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  602.   
  603.   
  604.   
  605.   
  606. ! if test -z "$CC"; then
  607. !   # Extract the first word of `gcc', so it can be a program name with args.
  608. !   set ac_dummy gcc; ac_word=$2
  609. !   test -n "$silent" || echo "checking for $ac_word"
  610.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  611.     for ac_dir in $PATH; do
  612.       test -z "$ac_dir" && ac_dir=.
  613.       if test -f $ac_dir/$ac_word; then
  614. !       CC="gcc"
  615.         break
  616.       fi
  617.     done
  618.     IFS="$ac_save_ifs"
  619.   fi
  620. - test -z "$CC" && CC="cc"
  621. - test -n "$CC" && test -n "$verbose" && echo "    setting CC to $CC"
  622.   
  623. ! # Find out if we are using GNU C, under whatever name.
  624. ! cat > conftest.c <<EOF
  625.   #ifdef __GNUC__
  626. !   yes
  627.   #endif
  628.   EOF
  629. ! ${CC-cc} -E conftest.c > conftest.out 2>&1
  630. ! if egrep yes conftest.out >/dev/null 2>&1; then
  631. !   GCC=1 # For later tests.
  632.   fi
  633.   rm -f conftest*
  634.   
  635. ! test -n "$silent" || echo "checking how to run the C preprocessor"
  636.   if test -z "$CPP"; then
  637. !   # This must be in double quotes, not single quotes, because CPP may get
  638. !   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  639. !   # make.  It must be expanded now.
  640.     CPP="${CC-cc} -E"
  641. !   cat > conftest.${ac_ext} <<EOF
  642.   #include "confdefs.h"
  643. ! #include <stdio.h>
  644.   Syntax Error
  645.   EOF
  646. ! # Some shells (Coherent) do redirections in the wrong order, so need
  647. ! # the parens.
  648. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  649.   if test -z "$ac_err"; then
  650.     :
  651.   else
  652.     rm -rf conftest*
  653.     CPP="${CC-cc} -E -traditional-cpp"
  654. !   cat > conftest.${ac_ext} <<EOF
  655.   #include "confdefs.h"
  656. ! #include <stdio.h>
  657.   Syntax Error
  658.   EOF
  659. ! # Some shells (Coherent) do redirections in the wrong order, so need
  660. ! # the parens.
  661. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  662.   if test -z "$ac_err"; then
  663.     :
  664.   else
  665.     rm -rf conftest*
  666.     CPP=/lib/cpp
  667.   fi
  668.   rm -f conftest*
  669.   fi
  670.   rm -f conftest*
  671.   fi
  672. ! test -n "$verbose" && echo "    setting CPP to $CPP"
  673.   
  674. ! if test -n "$GCC"; then
  675. !   test -n "$silent" || echo "checking whether -traditional is needed"
  676. !   ac_pattern="Autoconf.*'x'"
  677. !   ac_prog='#include <sgtty.h>
  678. ! Autoconf TIOCGETP'
  679. !   cat > conftest.${ac_ext} <<EOF
  680.   #include "confdefs.h"
  681. ! $ac_prog
  682.   EOF
  683. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  684. ! if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
  685.     rm -rf conftest*
  686. !   ac_need_trad=1
  687.   fi
  688.   rm -f conftest*
  689.   
  690.   
  691. !   if test -z "$ac_need_trad"; then
  692. !     ac_prog='#include <termio.h>
  693. ! Autoconf TCGETA'
  694. !     cat > conftest.${ac_ext} <<EOF
  695.   #include "confdefs.h"
  696. ! $ac_prog
  697.   EOF
  698. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  699. ! if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
  700.     rm -rf conftest*
  701. !   ac_need_trad=1
  702.   fi
  703.   rm -f conftest*
  704.   
  705.     fi
  706. !   test -n "$ac_need_trad" && CC="$CC -traditional"
  707.   fi
  708.   
  709. ! # Make sure to not get the incompatible SysV /etc/install and
  710. ! # /usr/sbin/install, which might be in PATH before a BSD-like install,
  711. ! # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  712. ! # or the AFS install, which mishandles nonexistent args, or
  713. ! # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  714. ! # `staff', or /sbin/install on IRIX which has incompatible command-line
  715. ! # syntax.  Sigh.
  716. ! #
  717. ! #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  718. ! #     anyway.
  719. ! # This turns out not to be true, so the mere pathname isn't an indication
  720. ! # of whether the program works.  What we really need is a set of tests for
  721. ! # the install program to see if it actually works in all the required ways.
  722. ! #
  723. ! # Avoid using ./install, which might have been erroneously created
  724. ! # by make from ./install.sh.
  725. ! if test -z "${INSTALL}"; then
  726. !   test -n "$silent" || echo "checking for a BSD compatible install"
  727. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  728.     for ac_dir in $PATH; do
  729.       case "$ac_dir" in
  730. !     ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  731.       *)
  732.         # OSF1 and SCO ODT 3.0 have their own names for install.
  733. !       for ac_prog in installbsd scoinst install; do
  734.           if test -f $ac_dir/$ac_prog; then
  735.         if test $ac_prog = install &&
  736.               grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  737. --- 335,617 ----
  738.   # Find the source files, if location was not specified.
  739.   if test -z "$srcdir"; then
  740.     ac_srcdir_defaulted=yes
  741. !   # Try the directory containing this script, then its parent.
  742.     ac_prog=$0
  743. !   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  744.     test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  745.     srcdir=$ac_confdir
  746.     if test ! -r $srcdir/$ac_unique_file; then
  747.       srcdir=..
  748.     fi
  749. + else
  750. +   ac_srcdir_defaulted=no
  751.   fi
  752.   if test ! -r $srcdir/$ac_unique_file; then
  753. !   if test "$ac_srcdir_defaulted" = yes; then
  754. !     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  755. !   else
  756. !     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  757. !   fi
  758. ! fi
  759. ! srcdir=`/bin/echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  760. ! # Prefer explicitly selected file to automatically selected ones.
  761. ! if test -z "$CONFIG_SITE"; then
  762. !   if test "x$prefix" != xNONE; then
  763. !     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  764.     else
  765. !     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  766. !   fi
  767. ! fi
  768. ! for ac_site_file in $CONFIG_SITE; do
  769. !   if test -r "$ac_site_file"; then
  770. !     echo "loading site script $ac_site_file"
  771. !     . "$ac_site_file"
  772.     fi
  773. + done
  774. + if test -r "$cache_file"; then
  775. +   echo "loading cache $cache_file"
  776. +   . $cache_file
  777. + else
  778. +   echo "creating cache $cache_file"
  779. +   > $cache_file
  780.   fi
  781.   ac_ext=c
  782.   # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  783. ! ac_cpp='$CPP $CPPFLAGS'
  784. ! ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
  785. ! ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  786. ! if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  787. !   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  788. !   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  789. !     ac_n= ac_c='
  790. ! ' ac_t='    '
  791. !   else
  792. !     ac_n=-n ac_c= ac_t=
  793. !   fi
  794. ! else
  795. !   ac_n= ac_c='\c' ac_t=
  796. ! fi
  797.   
  798.   
  799.   
  800.   
  801. ! # Extract the first word of "gcc", so it can be a program name with args.
  802. ! set dummy gcc; ac_word=$2
  803. ! /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  804. ! if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  805. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  806. ! else
  807. !   if test -n "$CC"; then
  808. !   ac_cv_prog_CC="$CC" # Let the user override the test.
  809. ! else
  810.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  811.     for ac_dir in $PATH; do
  812.       test -z "$ac_dir" && ac_dir=.
  813.       if test -f $ac_dir/$ac_word; then
  814. !       ac_cv_prog_CC="gcc"
  815.         break
  816.       fi
  817.     done
  818.     IFS="$ac_save_ifs"
  819. +   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  820. + fi
  821. + fi
  822. + CC="$ac_cv_prog_CC"
  823. + if test -n "$CC"; then
  824. +   /bin/echo "$ac_t""$CC" 1>&4
  825. + else
  826. +   /bin/echo "$ac_t""no" 1>&4
  827.   fi
  828.   
  829. ! /bin/echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
  830. ! if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  831. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  832. ! else
  833. !   cat > conftest.c <<EOF
  834.   #ifdef __GNUC__
  835. !   yes;
  836.   #endif
  837.   EOF
  838. ! if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  839. !   ac_cv_prog_gcc=yes
  840. ! else
  841. !   ac_cv_prog_gcc=no
  842. ! fi
  843. ! fi
  844. ! /bin/echo "$ac_t""$ac_cv_prog_gcc" 1>&4
  845. ! if test $ac_cv_prog_gcc = yes; then
  846. !   GCC=yes
  847. !   if test "${CFLAGS+set}" != set; then
  848. !     /bin/echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
  849. ! if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  850. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  851. ! else
  852. !   echo 'void f(){}' > conftest.c
  853. ! if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  854. !   ac_cv_prog_gcc_g=yes
  855. ! else
  856. !   ac_cv_prog_gcc_g=no
  857.   fi
  858.   rm -f conftest*
  859.   
  860. ! fi
  861. !     /bin/echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
  862. !     if test $ac_cv_prog_gcc_g = yes; then
  863. !       # Amiga hack - suppress automatically using -g for now
  864. !       # Also default to using -O2
  865. !       CFLAGS="-O2"
  866. !     else
  867. !       CFLAGS="-O2"
  868. !     fi
  869. !   fi
  870. ! else
  871. !   GCC=
  872. !   test "${CFLAGS+set}" = set || CFLAGS="-g"
  873. ! fi
  874. ! /bin/echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
  875. ! # On Suns, sometimes $CPP names a directory.
  876. ! if test -n "$CPP" && test -d "$CPP"; then
  877. !   CPP=
  878. ! fi
  879.   if test -z "$CPP"; then
  880. ! if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  881. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  882. ! else
  883. !     # This must be in double quotes, not single quotes, because CPP may get
  884. !   # substituted into the Makefile and "${CC-cc}" will confuse make.
  885.     CPP="${CC-cc} -E"
  886. !   # On the NeXT, cc -E runs the code through the compiler's parser,
  887. !   # not just through cpp.
  888. !   cat > conftest.$ac_ext <<EOF
  889. ! #line 493 "configure"
  890.   #include "confdefs.h"
  891. ! #include <assert.h>
  892.   Syntax Error
  893.   EOF
  894. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  895. ! ac_err=`grep -v '^ *+' conftest.out`
  896.   if test -z "$ac_err"; then
  897.     :
  898.   else
  899. +   /bin/echo "$ac_err" >&5
  900.     rm -rf conftest*
  901.     CPP="${CC-cc} -E -traditional-cpp"
  902. !   cat > conftest.$ac_ext <<EOF
  903. ! #line 507 "configure"
  904.   #include "confdefs.h"
  905. ! #include <assert.h>
  906.   Syntax Error
  907.   EOF
  908. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  909. ! ac_err=`grep -v '^ *+' conftest.out`
  910.   if test -z "$ac_err"; then
  911.     :
  912.   else
  913. +   /bin/echo "$ac_err" >&5
  914.     rm -rf conftest*
  915.     CPP=/lib/cpp
  916.   fi
  917.   rm -f conftest*
  918.   fi
  919.   rm -f conftest*
  920. +   ac_cv_prog_CPP="$CPP"
  921.   fi
  922. ! fi
  923. ! CPP="$ac_cv_prog_CPP"
  924. ! /bin/echo "$ac_t""$CPP" 1>&4
  925.   
  926. ! if test $ac_cv_prog_gcc = yes; then
  927. !   /bin/echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&4
  928. ! if eval "test \"`echo '${'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  929. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  930. ! else
  931. !     ac_pattern="Autoconf.*'x'"
  932. !   cat > conftest.$ac_ext <<EOF
  933. ! #line 537 "configure"
  934.   #include "confdefs.h"
  935. ! #include <sgtty.h>
  936. ! Autoconf TIOCGETP
  937.   EOF
  938. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  939. !   egrep "$ac_pattern" >/dev/null 2>&1; then
  940.     rm -rf conftest*
  941. !   ac_cv_prog_gcc_traditional=yes
  942. ! else
  943. !   rm -rf conftest*
  944. !   ac_cv_prog_gcc_traditional=no
  945.   fi
  946.   rm -f conftest*
  947.   
  948.   
  949. !   if test $ac_cv_prog_gcc_traditional = no; then
  950. !     cat > conftest.$ac_ext <<EOF
  951. ! #line 555 "configure"
  952.   #include "confdefs.h"
  953. ! #include <termio.h>
  954. ! Autoconf TCGETA
  955.   EOF
  956. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  957. !   egrep "$ac_pattern" >/dev/null 2>&1; then
  958.     rm -rf conftest*
  959. !   ac_cv_prog_gcc_traditional=yes
  960.   fi
  961.   rm -f conftest*
  962.   
  963.     fi
  964. ! fi
  965. !   /bin/echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&4
  966. !   if test $ac_cv_prog_gcc_traditional = yes; then
  967. !     CC="$CC -traditional"
  968. !   fi
  969.   fi
  970.   
  971. ! ac_aux_dir=
  972. ! for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  973. !   if test -f $ac_dir/install-sh; then
  974. !     ac_aux_dir=$ac_dir
  975. !     ac_install_sh="$ac_aux_dir/install-sh -c"
  976. !     break
  977. !   elif test -f $ac_dir/install.sh; then
  978. !     ac_aux_dir=$ac_dir
  979. !     ac_install_sh="$ac_aux_dir/install.sh -c"
  980. !     break
  981. !   fi
  982. ! done
  983. ! if test -z "$ac_aux_dir"; then
  984. !   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  985. ! fi
  986. ! ac_config_guess=$ac_aux_dir/config.guess
  987. ! ac_config_sub=$ac_aux_dir/config.sub
  988. ! ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  989. ! # Find a good install program.  We prefer a C program (faster),
  990. ! # so one script is as good as another.  But avoid the broken or
  991. ! # incompatible versions:
  992. ! # SysV /etc/install, /usr/sbin/install
  993. ! # SunOS /usr/etc/install
  994. ! # IRIX /sbin/install
  995. ! # AIX /bin/install
  996. ! # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  997. ! # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  998. ! # ./install, which can be erroneously created by make from ./install.sh.
  999. ! /bin/echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  1000. ! if test -z "$INSTALL"; then
  1001. ! if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  1002. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1003. ! else
  1004. !     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1005.     for ac_dir in $PATH; do
  1006.       case "$ac_dir" in
  1007. !     ''|.|/gnu/etc) ;;
  1008.       *)
  1009.         # OSF1 and SCO ODT 3.0 have their own names for install.
  1010. !       for ac_prog in ginstall installbsd scoinst install; do
  1011.           if test -f $ac_dir/$ac_prog; then
  1012.         if test $ac_prog = install &&
  1013.               grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1014. ***************
  1015. *** 454,460 ****
  1016.           # OSF/1 installbsd also uses dspmsg, but is usable.
  1017.           :
  1018.         else
  1019. !         INSTALL="$ac_dir/$ac_prog -c"
  1020.           break 2
  1021.         fi
  1022.       fi
  1023. --- 619,625 ----
  1024.           # OSF/1 installbsd also uses dspmsg, but is usable.
  1025.           :
  1026.         else
  1027. !         ac_cv_path_install="$ac_dir/$ac_prog -c"
  1028.           break 2
  1029.         fi
  1030.       fi
  1031. ***************
  1032. *** 463,622 ****
  1033.       esac
  1034.     done
  1035.     IFS="$ac_save_ifs"
  1036. - fi
  1037. - if test -z "$INSTALL"; then
  1038.     # As a last resort, use the slow shell script.
  1039. !   for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do
  1040. !     if test -f $ac_dir/install.sh; then
  1041. !       INSTALL="$ac_dir/install.sh -c"; break
  1042. !     fi
  1043. !   done
  1044.   fi
  1045. ! if test -z "$INSTALL"; then
  1046. !   echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1
  1047.   fi
  1048. ! test -n "$verbose" && echo "    setting INSTALL to $INSTALL"
  1049.   
  1050. ! # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  1051.   # It thinks the first close brace ends the variable substitution.
  1052.   test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1053. - test -n "$verbose" && echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  1054.   
  1055.   test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1056. - test -n "$verbose" && echo "    setting INSTALL_DATA to $INSTALL_DATA"
  1057.   
  1058.   
  1059.   TERMLIBS=
  1060. ! ac_save_LIBS="${LIBS}"
  1061. ! LIBS="${LIBS} -lcurses"
  1062. ! ac_have_lib=""
  1063. ! test -n "$silent" || echo "checking for -lcurses"
  1064. ! cat > conftest.${ac_ext} <<EOF
  1065.   #include "confdefs.h"
  1066.   
  1067.   int main() { return 0; }
  1068. ! int t() { main();; return 0; }
  1069.   EOF
  1070. ! if eval $ac_compile; then
  1071.     rm -rf conftest*
  1072. !   ac_have_lib="1"
  1073.   fi
  1074.   rm -f conftest*
  1075. ! LIBS="${ac_save_LIBS}"
  1076. ! if test -n "${ac_have_lib}"; then
  1077. !    :; TERMLIBS="$TERMLIBS -lcurses"
  1078. ! else
  1079. !    :; 
  1080.   fi
  1081.   
  1082. ! ac_save_LIBS="${LIBS}"
  1083. ! LIBS="${LIBS} -ltermcap"
  1084. ! ac_have_lib=""
  1085. ! test -n "$silent" || echo "checking for -ltermcap"
  1086. ! cat > conftest.${ac_ext} <<EOF
  1087.   #include "confdefs.h"
  1088.   
  1089.   int main() { return 0; }
  1090. ! int t() { main();; return 0; }
  1091.   EOF
  1092. ! if eval $ac_compile; then
  1093.     rm -rf conftest*
  1094. !   ac_have_lib="1"
  1095.   fi
  1096.   rm -f conftest*
  1097. ! LIBS="${ac_save_LIBS}"
  1098. ! if test -n "${ac_have_lib}"; then
  1099. !    :; TERMLIBS="$TERMLIBS -ltermcap"
  1100. ! else
  1101. !    :; 
  1102.   fi
  1103.   
  1104. ! ac_save_LIBS="${LIBS}"
  1105. ! LIBS="${LIBS} -ltermlib"
  1106. ! ac_have_lib=""
  1107. ! test -n "$silent" || echo "checking for -ltermlib"
  1108. ! cat > conftest.${ac_ext} <<EOF
  1109.   #include "confdefs.h"
  1110.   
  1111.   int main() { return 0; }
  1112. ! int t() { main();; return 0; }
  1113.   EOF
  1114. ! if eval $ac_compile; then
  1115.     rm -rf conftest*
  1116. !   ac_have_lib="1"
  1117.   fi
  1118.   rm -f conftest*
  1119. ! LIBS="${ac_save_LIBS}"
  1120. ! if test -n "${ac_have_lib}"; then
  1121. !    :; have_termlib=yes
  1122.   else
  1123. !    :; have_termlib=no
  1124.   fi
  1125.   
  1126. ! ac_save_LIBS="${LIBS}"
  1127. ! LIBS="${LIBS} -lgen"
  1128. ! ac_have_lib=""
  1129. ! test -n "$silent" || echo "checking for -lgen"
  1130. ! cat > conftest.${ac_ext} <<EOF
  1131.   #include "confdefs.h"
  1132.   
  1133.   int main() { return 0; }
  1134. ! int t() { main();; return 0; }
  1135.   EOF
  1136. ! if eval $ac_compile; then
  1137.     rm -rf conftest*
  1138. !   ac_have_lib="1"
  1139.   fi
  1140.   rm -f conftest*
  1141. ! LIBS="${ac_save_LIBS}"
  1142. ! if test -n "${ac_have_lib}"; then
  1143. !    :; LIBS="$LIBS -lgen"
  1144. ! else
  1145. !    :; 
  1146.   fi
  1147.   
  1148. ! ac_save_LIBS="${LIBS}"
  1149. ! LIBS="${LIBS} -lintl"
  1150. ! ac_have_lib=""
  1151. ! test -n "$silent" || echo "checking for -lintl"
  1152. ! cat > conftest.${ac_ext} <<EOF
  1153.   #include "confdefs.h"
  1154.   
  1155.   int main() { return 0; }
  1156. ! int t() { main();; return 0; }
  1157.   EOF
  1158. ! if eval $ac_compile; then
  1159.     rm -rf conftest*
  1160. !   ac_have_lib="1"
  1161.   fi
  1162.   rm -f conftest*
  1163. ! LIBS="${ac_save_LIBS}"
  1164. ! if test -n "${ac_have_lib}"; then
  1165. !    :; LIBS="$LIBS -lintl"
  1166. ! else
  1167. !    :; 
  1168.   fi
  1169.   
  1170.   
  1171. ! test -n "$silent" || echo "checking termlib"
  1172.   SAVE_LIBS=$LIBS
  1173.   LIBS="$LIBS $TERMLIBS"
  1174. ! cat > conftest.${ac_ext} <<EOF
  1175.   #include "confdefs.h"
  1176.   
  1177.   int main() { return 0; }
  1178. ! int t() { tgetent(0); tgetflag(0); tgetnum(0); tgetstr(0);; return 0; }
  1179.   EOF
  1180. ! if eval $ac_compile; then
  1181.     rm -rf conftest*
  1182.     termok=yes
  1183.   else
  1184.     rm -rf conftest*
  1185.     termok=no
  1186. --- 628,821 ----
  1187.       esac
  1188.     done
  1189.     IFS="$ac_save_ifs"
  1190.     # As a last resort, use the slow shell script.
  1191. !   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  1192.   fi
  1193. !   INSTALL="$ac_cv_path_install"
  1194.   fi
  1195. ! /bin/echo "$ac_t""$INSTALL" 1>&4
  1196.   
  1197. ! # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1198.   # It thinks the first close brace ends the variable substitution.
  1199.   test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1200.   
  1201.   test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1202.   
  1203.   
  1204.   TERMLIBS=
  1205. ! /bin/echo $ac_n "checking for -lcurses""... $ac_c" 1>&4
  1206. ! if eval "test \"`echo '${'ac_cv_lib_curses'+set}'`\" = set"; then
  1207. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1208. ! else
  1209. !   ac_save_LIBS="$LIBS"
  1210. ! LIBS="$LIBS -lcurses "
  1211. ! cat > conftest.$ac_ext <<EOF
  1212. ! #line 654 "configure"
  1213.   #include "confdefs.h"
  1214.   
  1215.   int main() { return 0; }
  1216. ! int t() {
  1217. ! main()
  1218. ! ; return 0; }
  1219.   EOF
  1220. ! if eval $ac_link; then
  1221.     rm -rf conftest*
  1222. !   ac_cv_lib_curses=yes
  1223. ! else
  1224. !   rm -rf conftest*
  1225. !   ac_cv_lib_curses=no
  1226.   fi
  1227.   rm -f conftest*
  1228. ! LIBS="$ac_save_LIBS"
  1229. ! fi
  1230. ! /bin/echo "$ac_t""$ac_cv_lib_curses" 1>&4
  1231. ! if test "$ac_cv_lib_curses" = yes; then
  1232. !   TERMLIBS="$TERMLIBS -lcurses"
  1233.   fi
  1234.   
  1235. ! /bin/echo $ac_n "checking for -ltermcap""... $ac_c" 1>&4
  1236. ! if eval "test \"`echo '${'ac_cv_lib_termcap'+set}'`\" = set"; then
  1237. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1238. ! else
  1239. !   ac_save_LIBS="$LIBS"
  1240. ! LIBS="$LIBS -ltermcap "
  1241. ! cat > conftest.$ac_ext <<EOF
  1242. ! #line 685 "configure"
  1243.   #include "confdefs.h"
  1244.   
  1245.   int main() { return 0; }
  1246. ! int t() {
  1247. ! main()
  1248. ! ; return 0; }
  1249.   EOF
  1250. ! if eval $ac_link; then
  1251.     rm -rf conftest*
  1252. !   ac_cv_lib_termcap=yes
  1253. ! else
  1254. !   rm -rf conftest*
  1255. !   ac_cv_lib_termcap=no
  1256.   fi
  1257.   rm -f conftest*
  1258. ! LIBS="$ac_save_LIBS"
  1259. ! fi
  1260. ! /bin/echo "$ac_t""$ac_cv_lib_termcap" 1>&4
  1261. ! if test "$ac_cv_lib_termcap" = yes; then
  1262. !   TERMLIBS="$TERMLIBS -ltermcap"
  1263.   fi
  1264.   
  1265. ! /bin/echo $ac_n "checking for -ltermlib""... $ac_c" 1>&4
  1266. ! if eval "test \"`echo '${'ac_cv_lib_termlib'+set}'`\" = set"; then
  1267. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1268. ! else
  1269. !   ac_save_LIBS="$LIBS"
  1270. ! LIBS="$LIBS -ltermlib "
  1271. ! cat > conftest.$ac_ext <<EOF
  1272. ! #line 716 "configure"
  1273.   #include "confdefs.h"
  1274.   
  1275.   int main() { return 0; }
  1276. ! int t() {
  1277. ! main()
  1278. ! ; return 0; }
  1279.   EOF
  1280. ! if eval $ac_link; then
  1281.     rm -rf conftest*
  1282. !   ac_cv_lib_termlib=yes
  1283. ! else
  1284. !   rm -rf conftest*
  1285. !   ac_cv_lib_termlib=no
  1286.   fi
  1287.   rm -f conftest*
  1288. ! LIBS="$ac_save_LIBS"
  1289. ! fi
  1290. ! /bin/echo "$ac_t""$ac_cv_lib_termlib" 1>&4
  1291. ! if test "$ac_cv_lib_termlib" = yes; then
  1292. !   have_termlib=yes
  1293.   else
  1294. !   have_termlib=no
  1295.   fi
  1296.   
  1297. ! /bin/echo $ac_n "checking for -lgen""... $ac_c" 1>&4
  1298. ! if eval "test \"`echo '${'ac_cv_lib_gen'+set}'`\" = set"; then
  1299. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1300. ! else
  1301. !   ac_save_LIBS="$LIBS"
  1302. ! LIBS="$LIBS -lgen "
  1303. ! cat > conftest.$ac_ext <<EOF
  1304. ! #line 749 "configure"
  1305.   #include "confdefs.h"
  1306.   
  1307.   int main() { return 0; }
  1308. ! int t() {
  1309. ! main()
  1310. ! ; return 0; }
  1311.   EOF
  1312. ! if eval $ac_link; then
  1313.     rm -rf conftest*
  1314. !   ac_cv_lib_gen=yes
  1315. ! else
  1316. !   rm -rf conftest*
  1317. !   ac_cv_lib_gen=no
  1318.   fi
  1319.   rm -f conftest*
  1320. ! LIBS="$ac_save_LIBS"
  1321. ! fi
  1322. ! /bin/echo "$ac_t""$ac_cv_lib_gen" 1>&4
  1323. ! if test "$ac_cv_lib_gen" = yes; then
  1324. !   LIBS="$LIBS -lgen"
  1325.   fi
  1326.   
  1327. ! /bin/echo $ac_n "checking for -lintl""... $ac_c" 1>&4
  1328. ! if eval "test \"`echo '${'ac_cv_lib_intl'+set}'`\" = set"; then
  1329. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1330. ! else
  1331. !   ac_save_LIBS="$LIBS"
  1332. ! LIBS="$LIBS -lintl "
  1333. ! cat > conftest.$ac_ext <<EOF
  1334. ! #line 780 "configure"
  1335.   #include "confdefs.h"
  1336.   
  1337.   int main() { return 0; }
  1338. ! int t() {
  1339. ! main()
  1340. ! ; return 0; }
  1341.   EOF
  1342. ! if eval $ac_link; then
  1343.     rm -rf conftest*
  1344. !   ac_cv_lib_intl=yes
  1345. ! else
  1346. !   rm -rf conftest*
  1347. !   ac_cv_lib_intl=no
  1348.   fi
  1349.   rm -f conftest*
  1350. ! LIBS="$ac_save_LIBS"
  1351. ! fi
  1352. ! /bin/echo "$ac_t""$ac_cv_lib_intl" 1>&4
  1353. ! if test "$ac_cv_lib_intl" = yes; then
  1354. !   LIBS="$LIBS -lintl"
  1355.   fi
  1356.   
  1357.   
  1358. ! echo "checking termlib" 1>&4
  1359.   SAVE_LIBS=$LIBS
  1360.   LIBS="$LIBS $TERMLIBS"
  1361. ! cat > conftest.$ac_ext <<EOF
  1362. ! #line 809 "configure"
  1363.   #include "confdefs.h"
  1364.   
  1365.   int main() { return 0; }
  1366. ! int t() {
  1367. ! tgetent(0); tgetflag(0); tgetnum(0); tgetstr(0);
  1368. ! ; return 0; }
  1369.   EOF
  1370. ! if eval $ac_link; then
  1371.     rm -rf conftest*
  1372.     termok=yes
  1373.   else
  1374.     rm -rf conftest*
  1375.     termok=no
  1376. ***************
  1377. *** 630,808 ****
  1378.     fi
  1379.   fi
  1380.   
  1381. ! test -n "$silent" || echo "checking for ANSI C header files"
  1382. ! cat > conftest.${ac_ext} <<EOF
  1383.   #include "confdefs.h"
  1384.   #include <stdlib.h>
  1385.   #include <stdarg.h>
  1386.   #include <string.h>
  1387.   #include <float.h>
  1388.   EOF
  1389. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1390. ! # the parens.
  1391. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1392.   if test -z "$ac_err"; then
  1393.     rm -rf conftest*
  1394.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1395. ! echo '#include "confdefs.h"
  1396. ! #include <string.h>' > conftest.${ac_ext}
  1397. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1398. ! if egrep "memchr" conftest.out >/dev/null 2>&1; then
  1399.     rm -rf conftest*
  1400. !   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1401. ! cat > conftest.${ac_ext} <<EOF
  1402.   #include "confdefs.h"
  1403.   #include <ctype.h>
  1404.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1405.   #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1406. ! #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  1407.   int main () { int i; for (i = 0; i < 256; i++)
  1408.   if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1409.   exit (0); }
  1410.   
  1411.   EOF
  1412. ! eval $ac_compile
  1413.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1414. !   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1415. ! echo '#include "confdefs.h"
  1416. ! #include <stdlib.h>' > conftest.${ac_ext}
  1417. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1418. ! if egrep "free" conftest.out >/dev/null 2>&1; then
  1419. !   rm -rf conftest*
  1420. !   
  1421. ! {
  1422. ! test -n "$verbose" && \
  1423. ! echo "    defining STDC_HEADERS"
  1424. ! echo "#define" STDC_HEADERS "1" >> confdefs.h
  1425. ! DEFS="$DEFS -DSTDC_HEADERS=1"
  1426. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD}
  1427. ! \${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
  1428. ! \${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
  1429. ! "
  1430. ! }
  1431.   fi
  1432. - rm -f conftest*
  1433.   fi
  1434.   rm -fr conftest*
  1435.   fi
  1436. ! rm -f conftest*
  1437.   
  1438.   fi
  1439. - rm -f conftest*
  1440.   
  1441.   for ac_hdr in ctype.h errno.h fcntl.h stdio.h termcap.h termio.h termios.h time.h unistd.h values.h sys/ioctl.h sys/stream.h sys/ptem.h
  1442.   do
  1443. ! ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  1444. ! test -n "$silent" || echo "checking for ${ac_hdr}"
  1445. ! cat > conftest.${ac_ext} <<EOF
  1446. ! #include "confdefs.h"
  1447. ! #include <${ac_hdr}>
  1448. ! EOF
  1449. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1450. ! # the parens.
  1451. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1452.   if test -z "$ac_err"; then
  1453.     rm -rf conftest*
  1454. !   
  1455. ! {
  1456. ! test -n "$verbose" && \
  1457. ! echo "    defining ${ac_tr_hdr}"
  1458. ! echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  1459. ! DEFS="$DEFS -D${ac_tr_hdr}=1"
  1460. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
  1461. ! \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
  1462. ! \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
  1463. ! "
  1464. ! }
  1465.   fi
  1466.   rm -f conftest*
  1467.   done
  1468.   
  1469.   
  1470. ! test -n "$silent" || echo "checking for off_t in sys/types.h"
  1471. ! echo '#include "confdefs.h"
  1472. ! #include <sys/types.h>' > conftest.${ac_ext}
  1473. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1474. ! if egrep "off_t" conftest.out >/dev/null 2>&1; then
  1475. !   :
  1476.   else
  1477.     rm -rf conftest*
  1478. !   
  1479. ! {
  1480. ! test -n "$verbose" && \
  1481. ! echo "    defining" off_t to be "long"
  1482. ! echo "#define" off_t "long" >> confdefs.h
  1483. ! DEFS="$DEFS -Doff_t=long"
  1484. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}off_t\${ac_dB}off_t\${ac_dC}long\${ac_dD}
  1485. ! \${ac_uA}off_t\${ac_uB}off_t\${ac_uC}long\${ac_uD}
  1486. ! \${ac_eA}off_t\${ac_eB}off_t\${ac_eC}long\${ac_eD}
  1487. ! "
  1488. ! }
  1489.   fi
  1490.   rm -f conftest*
  1491.   
  1492. ! test -n "$silent" || echo "checking for void"
  1493. ! cat > conftest.${ac_ext} <<EOF
  1494.   #include "confdefs.h"
  1495.   
  1496.   int main() { return 0; }
  1497. ! int t() { void *foo = 0;; return 0; }
  1498.   EOF
  1499. ! if eval $ac_compile; then
  1500.     rm -rf conftest*
  1501. !   
  1502. ! {
  1503. ! test -n "$verbose" && \
  1504. ! echo "    defining HAVE_VOID"
  1505. ! echo "#define" HAVE_VOID "1" >> confdefs.h
  1506. ! DEFS="$DEFS -DHAVE_VOID=1"
  1507. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_VOID\${ac_dB}HAVE_VOID\${ac_dC}1\${ac_dD}
  1508. ! \${ac_uA}HAVE_VOID\${ac_uB}HAVE_VOID\${ac_uC}1\${ac_uD}
  1509. ! \${ac_eA}HAVE_VOID\${ac_eB}HAVE_VOID\${ac_eC}1\${ac_eD}
  1510. ! "
  1511. ! }
  1512.   
  1513.   fi
  1514.   rm -f conftest*
  1515.   
  1516. ! test -n "$silent" || echo "checking for time_t"
  1517. ! cat > conftest.${ac_ext} <<EOF
  1518.   #include "confdefs.h"
  1519.   #include <time.h>
  1520.   int main() { return 0; }
  1521. ! int t() { time_t t = 0;; return 0; }
  1522.   EOF
  1523. ! if eval $ac_compile; then
  1524.     rm -rf conftest*
  1525. !   
  1526. ! {
  1527. ! test -n "$verbose" && \
  1528. ! echo "    defining HAVE_TIME_T"
  1529. ! echo "#define" HAVE_TIME_T "1" >> confdefs.h
  1530. ! DEFS="$DEFS -DHAVE_TIME_T=1"
  1531. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TIME_T\${ac_dB}HAVE_TIME_T\${ac_dC}1\${ac_dD}
  1532. ! \${ac_uA}HAVE_TIME_T\${ac_uB}HAVE_TIME_T\${ac_uC}1\${ac_uD}
  1533. ! \${ac_eA}HAVE_TIME_T\${ac_eB}HAVE_TIME_T\${ac_eC}1\${ac_eD}
  1534. ! "
  1535. ! }
  1536.   
  1537.   fi
  1538.   rm -f conftest*
  1539.   
  1540.   
  1541. ! test -n "$silent" || echo "checking for return type of signal handlers"
  1542. ! cat > conftest.${ac_ext} <<EOF
  1543.   #include "confdefs.h"
  1544.   #include <sys/types.h>
  1545.   #include <signal.h>
  1546. --- 829,1067 ----
  1547.     fi
  1548.   fi
  1549.   
  1550. ! # If we cannot run a trivial program, we must be cross compiling.
  1551. ! /bin/echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  1552. ! if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  1553. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1554. ! else
  1555. !   if test "$cross_compiling" = yes; then
  1556. !   ac_cv_cross=yes
  1557. ! else
  1558. ! cat > conftest.$ac_ext <<EOF
  1559. ! #line 842 "configure"
  1560. ! #include "confdefs.h"
  1561. ! main(){return(0);}
  1562. ! EOF
  1563. ! eval $ac_link
  1564. ! if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1565. !   ac_cv_c_cross=no
  1566. ! else
  1567. !   ac_cv_c_cross=yes
  1568. ! fi
  1569. ! fi
  1570. ! rm -fr conftest*
  1571. ! fi
  1572. ! cross_compiling=$ac_cv_c_cross
  1573. ! /bin/echo "$ac_t""$ac_cv_c_cross" 1>&4
  1574. ! /bin/echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
  1575. ! if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  1576. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1577. ! else
  1578. !   cat > conftest.$ac_ext <<EOF
  1579. ! #line 863 "configure"
  1580.   #include "confdefs.h"
  1581.   #include <stdlib.h>
  1582.   #include <stdarg.h>
  1583.   #include <string.h>
  1584.   #include <float.h>
  1585.   EOF
  1586. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1587. ! ac_err=`grep -v '^ *+' conftest.out`
  1588.   if test -z "$ac_err"; then
  1589.     rm -rf conftest*
  1590. +   ac_cv_header_stdc=yes
  1591. + else
  1592. +   /bin/echo "$ac_err" >&5
  1593. +   rm -rf conftest*
  1594. +   ac_cv_header_stdc=no
  1595. + fi
  1596. + rm -f conftest*
  1597. + if test $ac_cv_header_stdc = yes; then
  1598.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1599. ! cat > conftest.$ac_ext <<EOF
  1600. ! #line 885 "configure"
  1601. ! #include "confdefs.h"
  1602. ! #include <string.h>
  1603. ! EOF
  1604. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1605. !   egrep "memchr" >/dev/null 2>&1; then
  1606. !   :
  1607. ! else
  1608. !   rm -rf conftest*
  1609. !   ac_cv_header_stdc=no
  1610. ! fi
  1611. ! rm -f conftest*
  1612. ! fi
  1613. ! if test $ac_cv_header_stdc = yes; then
  1614. !   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1615. ! cat > conftest.$ac_ext <<EOF
  1616. ! #line 903 "configure"
  1617. ! #include "confdefs.h"
  1618. ! #include <stdlib.h>
  1619. ! EOF
  1620. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1621. !   egrep "free" >/dev/null 2>&1; then
  1622. !   :
  1623. ! else
  1624.     rm -rf conftest*
  1625. !   ac_cv_header_stdc=no
  1626. ! fi
  1627. ! rm -f conftest*
  1628. ! fi
  1629. ! if test $ac_cv_header_stdc = yes; then
  1630. !   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1631. ! if test "$cross_compiling" = yes; then
  1632. !   ac_cv_header_stdc=no
  1633. ! else
  1634. ! cat > conftest.$ac_ext <<EOF
  1635. ! #line 924 "configure"
  1636.   #include "confdefs.h"
  1637.   #include <ctype.h>
  1638.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1639.   #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1640. ! #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1641.   int main () { int i; for (i = 0; i < 256; i++)
  1642.   if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1643.   exit (0); }
  1644.   
  1645.   EOF
  1646. ! eval $ac_link
  1647.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1648. !   :
  1649. ! else
  1650. !   ac_cv_header_stdc=no
  1651.   fi
  1652.   fi
  1653.   rm -fr conftest*
  1654.   fi
  1655. ! fi
  1656. ! /bin/echo "$ac_t""$ac_cv_header_stdc" 1>&4
  1657. ! if test $ac_cv_header_stdc = yes; then
  1658. !   cat >> confdefs.h <<\EOF
  1659. ! #define STDC_HEADERS 1
  1660. ! EOF
  1661.   
  1662.   fi
  1663.   
  1664.   for ac_hdr in ctype.h errno.h fcntl.h stdio.h termcap.h termio.h termios.h time.h unistd.h values.h sys/ioctl.h sys/stream.h sys/ptem.h
  1665.   do
  1666. ! ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  1667. ! /bin/echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  1668. ! if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1669. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1670. ! else
  1671. !   cat > conftest.$ac_ext <<EOF
  1672. ! #line 961 "configure"
  1673. ! #include "confdefs.h"
  1674. ! #include <$ac_hdr>
  1675. ! EOF
  1676. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1677. ! ac_err=`grep -v '^ *+' conftest.out`
  1678.   if test -z "$ac_err"; then
  1679.     rm -rf conftest*
  1680. !   eval "ac_cv_header_$ac_safe=yes"
  1681. ! else
  1682. !   /bin/echo "$ac_err" >&5
  1683. !   rm -rf conftest*
  1684. !   eval "ac_cv_header_$ac_safe=no"
  1685.   fi
  1686.   rm -f conftest*
  1687. + fi
  1688. + if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1689. +   /bin/echo "$ac_t""yes" 1>&4
  1690. +     ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1691. +   cat >> confdefs.h <<EOF
  1692. + #define $ac_tr_hdr 1
  1693. + EOF
  1694. +  
  1695. + else
  1696. +   /bin/echo "$ac_t""no" 1>&4
  1697. + fi
  1698.   done
  1699.   
  1700.   
  1701. ! /bin/echo $ac_n "checking for off_t""... $ac_c" 1>&4
  1702. ! if eval "test \"`echo '${'ac_cv_type_off_t'+set}'`\" = set"; then
  1703. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1704. ! else
  1705. !   cat > conftest.$ac_ext <<EOF
  1706. ! #line 995 "configure"
  1707. ! #include "confdefs.h"
  1708. ! #include <sys/types.h>
  1709. ! #if STDC_HEADERS
  1710. ! #include <stdlib.h>
  1711. ! #endif
  1712. ! EOF
  1713. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1714. !   egrep "off_t" >/dev/null 2>&1; then
  1715. !   rm -rf conftest*
  1716. !   ac_cv_type_off_t=yes
  1717.   else
  1718.     rm -rf conftest*
  1719. !   ac_cv_type_off_t=no
  1720.   fi
  1721.   rm -f conftest*
  1722.   
  1723. ! fi
  1724. ! /bin/echo "$ac_t""$ac_cv_type_off_t" 1>&4
  1725. ! if test $ac_cv_type_off_t = no; then
  1726. !   cat >> confdefs.h <<\EOF
  1727. ! #define off_t long
  1728. ! EOF
  1729. ! fi
  1730. ! echo "checking for void" 1>&4
  1731. ! cat > conftest.$ac_ext <<EOF
  1732. ! #line 1023 "configure"
  1733.   #include "confdefs.h"
  1734.   
  1735.   int main() { return 0; }
  1736. ! int t() {
  1737. ! void *foo = 0;
  1738. ! ; return 0; }
  1739.   EOF
  1740. ! if eval $ac_link; then
  1741.     rm -rf conftest*
  1742. !   cat >> confdefs.h <<\EOF
  1743. ! #define HAVE_VOID 1
  1744. ! EOF
  1745.   
  1746.   fi
  1747.   rm -f conftest*
  1748.   
  1749. ! echo "checking for time_t" 1>&4
  1750. ! cat > conftest.$ac_ext <<EOF
  1751. ! #line 1042 "configure"
  1752.   #include "confdefs.h"
  1753.   #include <time.h>
  1754.   int main() { return 0; }
  1755. ! int t() {
  1756. ! time_t t = 0;
  1757. ! ; return 0; }
  1758.   EOF
  1759. ! if eval $ac_link; then
  1760.     rm -rf conftest*
  1761. !   cat >> confdefs.h <<\EOF
  1762. ! #define HAVE_TIME_T 1
  1763. ! EOF
  1764.   
  1765.   fi
  1766.   rm -f conftest*
  1767.   
  1768.   
  1769. ! /bin/echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&4
  1770. ! if eval "test \"`echo '${'ac_cv_type_signal'+set}'`\" = set"; then
  1771. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1772. ! else
  1773. !   cat > conftest.$ac_ext <<EOF
  1774. ! #line 1065 "configure"
  1775.   #include "confdefs.h"
  1776.   #include <sys/types.h>
  1777.   #include <signal.h>
  1778. ***************
  1779. *** 811,925 ****
  1780.   #endif
  1781.   extern void (*signal ()) ();
  1782.   int main() { return 0; }
  1783. ! int t() { int i;; return 0; }
  1784.   EOF
  1785.   if eval $ac_compile; then
  1786.     rm -rf conftest*
  1787. !   
  1788. ! {
  1789. ! test -n "$verbose" && \
  1790. ! echo "    defining" RETSIGTYPE to be "void"
  1791. ! echo "#define" RETSIGTYPE "void" >> confdefs.h
  1792. ! DEFS="$DEFS -DRETSIGTYPE=void"
  1793. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD}
  1794. ! \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
  1795. ! \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
  1796. ! "
  1797. ! }
  1798.   else
  1799.     rm -rf conftest*
  1800. !   
  1801. ! {
  1802. ! test -n "$verbose" && \
  1803. ! echo "    defining" RETSIGTYPE to be "int"
  1804. ! echo "#define" RETSIGTYPE "int" >> confdefs.h
  1805. ! DEFS="$DEFS -DRETSIGTYPE=int"
  1806. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
  1807. ! \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
  1808. ! \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
  1809. ! "
  1810. ! }
  1811.   fi
  1812.   rm -f conftest*
  1813.   
  1814.   
  1815.   for ac_func in _setjmp system sigsetmask memcpy strchr
  1816.   do
  1817. ! ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1818. ! test -n "$silent" || echo "checking for ${ac_func}"
  1819. ! cat > conftest.${ac_ext} <<EOF
  1820.   #include "confdefs.h"
  1821. ! #include <ctype.h>
  1822.   int main() { return 0; }
  1823. ! int t() { 
  1824.   /* The GNU C library defines this for functions which it implements
  1825.       to always fail with ENOSYS.  Some functions are actually named
  1826.       something starting with __ and the normal name is an alias.  */
  1827. ! #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  1828.   choke me
  1829.   #else
  1830. ! /* Override any gcc2 internal prototype to avoid an error.  */
  1831. ! extern char ${ac_func}(); ${ac_func}();
  1832.   #endif
  1833.   ; return 0; }
  1834.   EOF
  1835. ! if eval $ac_compile; then
  1836.     rm -rf conftest*
  1837. !   {
  1838. ! test -n "$verbose" && \
  1839. ! echo "    defining ${ac_tr_func}"
  1840. ! echo "#define" ${ac_tr_func} "1" >> confdefs.h
  1841. ! DEFS="$DEFS -D${ac_tr_func}=1"
  1842. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
  1843. ! \${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
  1844. ! \${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
  1845. ! "
  1846. ! }
  1847.   fi
  1848.   rm -f conftest*
  1849.   done
  1850.   
  1851. ! test -n "$silent" || echo "checking for tcgetattr"
  1852. ! cat > conftest.${ac_ext} <<EOF
  1853.   #include "confdefs.h"
  1854. ! #include <ctype.h>
  1855.   int main() { return 0; }
  1856. ! int t() { 
  1857.   /* The GNU C library defines this for functions which it implements
  1858.       to always fail with ENOSYS.  Some functions are actually named
  1859.       something starting with __ and the normal name is an alias.  */
  1860.   #if defined (__stub_tcgetattr) || defined (__stub___tcgetattr)
  1861.   choke me
  1862.   #else
  1863. ! /* Override any gcc2 internal prototype to avoid an error.  */
  1864. ! extern char tcgetattr(); tcgetattr();
  1865.   #endif
  1866.   ; return 0; }
  1867.   EOF
  1868. ! if eval $ac_compile; then
  1869.     rm -rf conftest*
  1870. !   {
  1871. ! test -n "$verbose" && \
  1872. ! echo "    defining HAVE_TERMIOS_FUNCS"
  1873. ! echo "#define" HAVE_TERMIOS_FUNCS "1" >> confdefs.h
  1874. ! DEFS="$DEFS -DHAVE_TERMIOS_FUNCS=1"
  1875. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERMIOS_FUNCS\${ac_dB}HAVE_TERMIOS_FUNCS\${ac_dC}1\${ac_dD}
  1876. ! \${ac_uA}HAVE_TERMIOS_FUNCS\${ac_uB}HAVE_TERMIOS_FUNCS\${ac_uC}1\${ac_uD}
  1877. ! \${ac_eA}HAVE_TERMIOS_FUNCS\${ac_eB}HAVE_TERMIOS_FUNCS\${ac_eC}1\${ac_eD}
  1878. ! "
  1879. ! }
  1880.   
  1881.   
  1882.   fi
  1883. - rm -f conftest*
  1884.   
  1885. ! test -n "$silent" || echo "checking for strerror"
  1886. ! cat > conftest.${ac_ext} <<EOF
  1887.   #include "confdefs.h"
  1888.   
  1889.   #if HAVE_STDIO_H
  1890. --- 1070,1192 ----
  1891.   #endif
  1892.   extern void (*signal ()) ();
  1893.   int main() { return 0; }
  1894. ! int t() {
  1895. ! int i;
  1896. ! ; return 0; }
  1897.   EOF
  1898.   if eval $ac_compile; then
  1899.     rm -rf conftest*
  1900. !   ac_cv_type_signal=void
  1901.   else
  1902.     rm -rf conftest*
  1903. !   ac_cv_type_signal=int
  1904.   fi
  1905.   rm -f conftest*
  1906.   
  1907. + fi
  1908. + /bin/echo "$ac_t""$ac_cv_type_signal" 1>&4
  1909. + cat >> confdefs.h <<EOF
  1910. + #define RETSIGTYPE $ac_cv_type_signal
  1911. + EOF
  1912.   
  1913.   for ac_func in _setjmp system sigsetmask memcpy strchr
  1914.   do
  1915. ! /bin/echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1916. ! if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1917. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1918. ! else
  1919. !   cat > conftest.$ac_ext <<EOF
  1920. ! #line 1101 "configure"
  1921.   #include "confdefs.h"
  1922. ! #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1923. ! /* Override any gcc2 internal prototype to avoid an error.  */
  1924. ! char $ac_func(); 
  1925.   int main() { return 0; }
  1926. ! int t() {
  1927.   /* The GNU C library defines this for functions which it implements
  1928.       to always fail with ENOSYS.  Some functions are actually named
  1929.       something starting with __ and the normal name is an alias.  */
  1930. ! #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1931.   choke me
  1932.   #else
  1933. ! $ac_func();
  1934.   #endif
  1935.   ; return 0; }
  1936.   EOF
  1937. ! if eval $ac_link; then
  1938.     rm -rf conftest*
  1939. !   eval "ac_cv_func_$ac_func=yes"
  1940. ! else
  1941. !   rm -rf conftest*
  1942. !   eval "ac_cv_func_$ac_func=no"
  1943.   fi
  1944.   rm -f conftest*
  1945. + fi
  1946. + if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1947. +   /bin/echo "$ac_t""yes" 1>&4
  1948. +     ac_tr_func=HAVE_`/bin/echo $ac_func | tr '[a-z]' '[A-Z]'`
  1949. +   cat >> confdefs.h <<EOF
  1950. + #define $ac_tr_func 1
  1951. + EOF
  1952. +  
  1953. + else
  1954. +   /bin/echo "$ac_t""no" 1>&4
  1955. + fi
  1956.   done
  1957.   
  1958. ! /bin/echo $ac_n "checking for tcgetattr""... $ac_c" 1>&4
  1959. ! if eval "test \"`echo '${'ac_cv_func_tcgetattr'+set}'`\" = set"; then
  1960. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1961. ! else
  1962. !   cat > conftest.$ac_ext <<EOF
  1963. ! #line 1148 "configure"
  1964.   #include "confdefs.h"
  1965. ! #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1966. ! /* Override any gcc2 internal prototype to avoid an error.  */
  1967. ! char tcgetattr(); 
  1968.   int main() { return 0; }
  1969. ! int t() {
  1970.   /* The GNU C library defines this for functions which it implements
  1971.       to always fail with ENOSYS.  Some functions are actually named
  1972.       something starting with __ and the normal name is an alias.  */
  1973.   #if defined (__stub_tcgetattr) || defined (__stub___tcgetattr)
  1974.   choke me
  1975.   #else
  1976. ! tcgetattr();
  1977.   #endif
  1978.   ; return 0; }
  1979.   EOF
  1980. ! if eval $ac_link; then
  1981.     rm -rf conftest*
  1982. !   eval "ac_cv_func_tcgetattr=yes"
  1983. ! else
  1984. !   rm -rf conftest*
  1985. !   eval "ac_cv_func_tcgetattr=no"
  1986. ! fi
  1987. ! rm -f conftest*
  1988.   
  1989. + fi
  1990. + if eval "test \"`echo '$ac_cv_func_'tcgetattr`\" = yes"; then
  1991. +   /bin/echo "$ac_t""yes" 1>&4
  1992. +   cat >> confdefs.h <<\EOF
  1993. + #define HAVE_TERMIOS_FUNCS 1
  1994. + EOF
  1995.   
  1996. + else
  1997. +   /bin/echo "$ac_t""no" 1>&4
  1998.   fi
  1999.   
  2000. ! echo "checking for strerror" 1>&4
  2001. ! cat > conftest.$ac_ext <<EOF
  2002. ! #line 1190 "configure"
  2003.   #include "confdefs.h"
  2004.   
  2005.   #if HAVE_STDIO_H
  2006. ***************
  2007. *** 932,1063 ****
  2008.   #include <errno.h>
  2009.   #endif
  2010.   int main() { return 0; }
  2011. ! int t() { static char *x; x = strerror(0);; return 0; }
  2012.   EOF
  2013. ! if eval $ac_compile; then
  2014.     rm -rf conftest*
  2015. !   
  2016. ! {
  2017. ! test -n "$verbose" && \
  2018. ! echo "    defining HAVE_STRERROR"
  2019. ! echo "#define" HAVE_STRERROR "1" >> confdefs.h
  2020. ! DEFS="$DEFS -DHAVE_STRERROR=1"
  2021. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STRERROR\${ac_dB}HAVE_STRERROR\${ac_dC}1\${ac_dD}
  2022. ! \${ac_uA}HAVE_STRERROR\${ac_uB}HAVE_STRERROR\${ac_uC}1\${ac_uD}
  2023. ! \${ac_eA}HAVE_STRERROR\${ac_eB}HAVE_STRERROR\${ac_eC}1\${ac_eD}
  2024. ! "
  2025. ! }
  2026.   
  2027.   fi
  2028.   rm -f conftest*
  2029.   
  2030. ! cat > conftest.${ac_ext} <<EOF
  2031.   #include "confdefs.h"
  2032.   
  2033.   int main() { return 0; }
  2034. ! int t() { extern int sys_errlist; static int x; x = sys_errlist;; return 0; }
  2035.   EOF
  2036. ! if eval $ac_compile; then
  2037.     rm -rf conftest*
  2038. !   
  2039. ! {
  2040. ! test -n "$verbose" && \
  2041. ! echo "    defining HAVE_SYS_ERRLIST"
  2042. ! echo "#define" HAVE_SYS_ERRLIST "1" >> confdefs.h
  2043. ! DEFS="$DEFS -DHAVE_SYS_ERRLIST=1"
  2044. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SYS_ERRLIST\${ac_dB}HAVE_SYS_ERRLIST\${ac_dC}1\${ac_dD}
  2045. ! \${ac_uA}HAVE_SYS_ERRLIST\${ac_uB}HAVE_SYS_ERRLIST\${ac_uC}1\${ac_uD}
  2046. ! \${ac_eA}HAVE_SYS_ERRLIST\${ac_eB}HAVE_SYS_ERRLIST\${ac_eC}1\${ac_eD}
  2047. ! "
  2048. ! }
  2049.   
  2050.   fi
  2051.   rm -f conftest*
  2052.   
  2053. ! cat > conftest.${ac_ext} <<EOF
  2054.   #include "confdefs.h"
  2055.   
  2056.   int main() { return 0; }
  2057. ! int t() { extern int errno; static int x; x = errno;; return 0; }
  2058.   EOF
  2059. ! if eval $ac_compile; then
  2060.     rm -rf conftest*
  2061. !   
  2062. ! {
  2063. ! test -n "$verbose" && \
  2064. ! echo "    defining HAVE_ERRNO"
  2065. ! echo "#define" HAVE_ERRNO "1" >> confdefs.h
  2066. ! DEFS="$DEFS -DHAVE_ERRNO=1"
  2067. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ERRNO\${ac_dB}HAVE_ERRNO\${ac_dC}1\${ac_dD}
  2068. ! \${ac_uA}HAVE_ERRNO\${ac_uB}HAVE_ERRNO\${ac_uC}1\${ac_uD}
  2069. ! \${ac_eA}HAVE_ERRNO\${ac_eB}HAVE_ERRNO\${ac_eC}1\${ac_eD}
  2070. ! "
  2071. ! }
  2072.   
  2073.   fi
  2074.   rm -f conftest*
  2075.   
  2076. ! test -n "$silent" || echo "checking for locale"
  2077. ! cat > conftest.${ac_ext} <<EOF
  2078.   #include "confdefs.h"
  2079.   #include <locale.h>
  2080.   #include <ctype.h>
  2081.   int main() { return 0; }
  2082. ! int t() { setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);; return 0; }
  2083.   EOF
  2084. ! if eval $ac_compile; then
  2085.     rm -rf conftest*
  2086. !   
  2087. ! {
  2088. ! test -n "$verbose" && \
  2089. ! echo "    defining HAVE_LOCALE"
  2090. ! echo "#define" HAVE_LOCALE "1" >> confdefs.h
  2091. ! DEFS="$DEFS -DHAVE_LOCALE=1"
  2092. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LOCALE\${ac_dB}HAVE_LOCALE\${ac_dC}1\${ac_dD}
  2093. ! \${ac_uA}HAVE_LOCALE\${ac_uB}HAVE_LOCALE\${ac_uC}1\${ac_uD}
  2094. ! \${ac_eA}HAVE_LOCALE\${ac_eB}HAVE_LOCALE\${ac_eC}1\${ac_eD}
  2095. ! "
  2096. ! }
  2097.   
  2098.   fi
  2099.   rm -f conftest*
  2100.   
  2101. ! test -n "$silent" || echo "checking for ctype"
  2102. ! cat > conftest.${ac_ext} <<EOF
  2103.   #include "confdefs.h"
  2104.   
  2105.   #if HAVE_CTYPE_H
  2106.   #include <ctype.h>
  2107.   #endif
  2108.   int main() { return 0; }
  2109. ! int t() { static int x; x = isupper(x); x = tolower(x); x = toupper(x);; return 0; }
  2110.   EOF
  2111. ! if eval $ac_compile; then
  2112.     rm -rf conftest*
  2113. !   
  2114. ! {
  2115. ! test -n "$verbose" && \
  2116. ! echo "    defining HAVE_UPPER_LOWER"
  2117. ! echo "#define" HAVE_UPPER_LOWER "1" >> confdefs.h
  2118. ! DEFS="$DEFS -DHAVE_UPPER_LOWER=1"
  2119. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_UPPER_LOWER\${ac_dB}HAVE_UPPER_LOWER\${ac_dC}1\${ac_dD}
  2120. ! \${ac_uA}HAVE_UPPER_LOWER\${ac_uB}HAVE_UPPER_LOWER\${ac_uC}1\${ac_uD}
  2121. ! \${ac_eA}HAVE_UPPER_LOWER\${ac_eB}HAVE_UPPER_LOWER\${ac_eC}1\${ac_eD}
  2122. ! "
  2123. ! }
  2124.   
  2125.   fi
  2126.   rm -f conftest*
  2127.   
  2128.   
  2129.   have_ospeed=no
  2130. ! test -n "$silent" || echo "checking termcap for ospeed"
  2131. ! cat > conftest.${ac_ext} <<EOF
  2132.   #include "confdefs.h"
  2133.   
  2134.   #include <sys/types.h>
  2135. --- 1199,1300 ----
  2136.   #include <errno.h>
  2137.   #endif
  2138.   int main() { return 0; }
  2139. ! int t() {
  2140. ! static char *x; x = strerror(0);
  2141. ! ; return 0; }
  2142.   EOF
  2143. ! if eval $ac_link; then
  2144.     rm -rf conftest*
  2145. !   cat >> confdefs.h <<\EOF
  2146. ! #define HAVE_STRERROR 1
  2147. ! EOF
  2148.   
  2149.   fi
  2150.   rm -f conftest*
  2151.   
  2152. ! cat > conftest.$ac_ext <<EOF
  2153. ! #line 1217 "configure"
  2154.   #include "confdefs.h"
  2155.   
  2156.   int main() { return 0; }
  2157. ! int t() {
  2158. ! extern int sys_errlist; static int x; x = sys_errlist;
  2159. ! ; return 0; }
  2160.   EOF
  2161. ! if eval $ac_link; then
  2162.     rm -rf conftest*
  2163. !   cat >> confdefs.h <<\EOF
  2164. ! #define HAVE_SYS_ERRLIST 1
  2165. ! EOF
  2166.   
  2167.   fi
  2168.   rm -f conftest*
  2169.   
  2170. ! cat > conftest.$ac_ext <<EOF
  2171. ! #line 1235 "configure"
  2172.   #include "confdefs.h"
  2173.   
  2174.   int main() { return 0; }
  2175. ! int t() {
  2176. ! extern int errno; static int x; x = errno;
  2177. ! ; return 0; }
  2178.   EOF
  2179. ! if eval $ac_link; then
  2180.     rm -rf conftest*
  2181. !   cat >> confdefs.h <<\EOF
  2182. ! #define HAVE_ERRNO 1
  2183. ! EOF
  2184.   
  2185.   fi
  2186.   rm -f conftest*
  2187.   
  2188. ! echo "checking for locale" 1>&4
  2189. ! cat > conftest.$ac_ext <<EOF
  2190. ! #line 1254 "configure"
  2191.   #include "confdefs.h"
  2192.   #include <locale.h>
  2193.   #include <ctype.h>
  2194.   int main() { return 0; }
  2195. ! int t() {
  2196. ! setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
  2197. ! ; return 0; }
  2198.   EOF
  2199. ! if eval $ac_link; then
  2200.     rm -rf conftest*
  2201. !   cat >> confdefs.h <<\EOF
  2202. ! #define HAVE_LOCALE 1
  2203. ! EOF
  2204.   
  2205.   fi
  2206.   rm -f conftest*
  2207.   
  2208. ! echo "checking for ctype" 1>&4
  2209. ! cat > conftest.$ac_ext <<EOF
  2210. ! #line 1274 "configure"
  2211.   #include "confdefs.h"
  2212.   
  2213.   #if HAVE_CTYPE_H
  2214.   #include <ctype.h>
  2215.   #endif
  2216.   int main() { return 0; }
  2217. ! int t() {
  2218. ! static int x; x = isupper(x); x = tolower(x); x = toupper(x);
  2219. ! ; return 0; }
  2220.   EOF
  2221. ! if eval $ac_link; then
  2222.     rm -rf conftest*
  2223. !   cat >> confdefs.h <<\EOF
  2224. ! #define HAVE_UPPER_LOWER 1
  2225. ! EOF
  2226.   
  2227.   fi
  2228.   rm -f conftest*
  2229.   
  2230.   
  2231.   have_ospeed=no
  2232. ! echo "checking termcap for ospeed" 1>&4
  2233. ! cat > conftest.$ac_ext <<EOF
  2234. ! #line 1298 "configure"
  2235.   #include "confdefs.h"
  2236.   
  2237.   #include <sys/types.h>
  2238. ***************
  2239. *** 1068,1125 ****
  2240.   #include <termcap.h>
  2241.   #endif
  2242.   int main() { return 0; }
  2243. ! int t() { ospeed = 0;; return 0; }
  2244.   EOF
  2245. ! if eval $ac_compile; then
  2246.     rm -rf conftest*
  2247. !   
  2248. ! {
  2249. ! test -n "$verbose" && \
  2250. ! echo "    defining HAVE_OSPEED"
  2251. ! echo "#define" HAVE_OSPEED "1" >> confdefs.h
  2252. ! DEFS="$DEFS -DHAVE_OSPEED=1"
  2253. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_OSPEED\${ac_dB}HAVE_OSPEED\${ac_dC}1\${ac_dD}
  2254. ! \${ac_uA}HAVE_OSPEED\${ac_uB}HAVE_OSPEED\${ac_uC}1\${ac_uD}
  2255. ! \${ac_eA}HAVE_OSPEED\${ac_eB}HAVE_OSPEED\${ac_eC}1\${ac_eD}
  2256. ! "
  2257. ! }
  2258.    have_ospeed=yes
  2259.   fi
  2260.   rm -f conftest*
  2261.   
  2262.   if test $have_ospeed = no; then
  2263. ! cat > conftest.${ac_ext} <<EOF
  2264.   #include "confdefs.h"
  2265.   
  2266.   int main() { return 0; }
  2267. ! int t() { extern short ospeed; ospeed = 0;; return 0; }
  2268.   EOF
  2269. ! if eval $ac_compile; then
  2270.     rm -rf conftest*
  2271. !   
  2272. ! {
  2273. ! test -n "$verbose" && \
  2274. ! echo "    defining HAVE_OSPEED"
  2275. ! echo "#define" HAVE_OSPEED "1" >> confdefs.h
  2276. ! DEFS="$DEFS -DHAVE_OSPEED=1"
  2277. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_OSPEED\${ac_dB}HAVE_OSPEED\${ac_dC}1\${ac_dD}
  2278. ! \${ac_uA}HAVE_OSPEED\${ac_uB}HAVE_OSPEED\${ac_uC}1\${ac_uD}
  2279. ! \${ac_eA}HAVE_OSPEED\${ac_eB}HAVE_OSPEED\${ac_eC}1\${ac_eD}
  2280. ! "
  2281. ! }
  2282. !  
  2283. ! {
  2284. ! test -n "$verbose" && \
  2285. ! echo "    defining MUST_DEFINE_OSPEED"
  2286. ! echo "#define" MUST_DEFINE_OSPEED "1" >> confdefs.h
  2287. ! DEFS="$DEFS -DMUST_DEFINE_OSPEED=1"
  2288. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}MUST_DEFINE_OSPEED\${ac_dB}MUST_DEFINE_OSPEED\${ac_dC}1\${ac_dD}
  2289. ! \${ac_uA}MUST_DEFINE_OSPEED\${ac_uB}MUST_DEFINE_OSPEED\${ac_uC}1\${ac_uD}
  2290. ! \${ac_eA}MUST_DEFINE_OSPEED\${ac_eB}MUST_DEFINE_OSPEED\${ac_eC}1\${ac_eD}
  2291. ! "
  2292. ! }
  2293.   
  2294.   fi
  2295.   rm -f conftest*
  2296. --- 1305,1341 ----
  2297.   #include <termcap.h>
  2298.   #endif
  2299.   int main() { return 0; }
  2300. ! int t() {
  2301. ! ospeed = 0;
  2302. ! ; return 0; }
  2303.   EOF
  2304. ! if eval $ac_link; then
  2305.     rm -rf conftest*
  2306. !   cat >> confdefs.h <<\EOF
  2307. ! #define HAVE_OSPEED 1
  2308. ! EOF
  2309.    have_ospeed=yes
  2310.   fi
  2311.   rm -f conftest*
  2312.   
  2313.   if test $have_ospeed = no; then
  2314. ! cat > conftest.$ac_ext <<EOF
  2315. ! #line 1324 "configure"
  2316.   #include "confdefs.h"
  2317.   
  2318.   int main() { return 0; }
  2319. ! int t() {
  2320. ! extern short ospeed; ospeed = 0;
  2321. ! ; return 0; }
  2322.   EOF
  2323. ! if eval $ac_link; then
  2324.     rm -rf conftest*
  2325. !   cat >> confdefs.h <<\EOF
  2326. ! #define HAVE_OSPEED 1
  2327. ! EOF
  2328. !  cat >> confdefs.h <<\EOF
  2329. ! #define MUST_DEFINE_OSPEED 1
  2330. ! EOF
  2331.   
  2332.   fi
  2333.   rm -f conftest*
  2334. ***************
  2335. *** 1128,1314 ****
  2336.   
  2337.   
  2338.   have_regex=no
  2339. ! test -n "$silent" || echo "checking for POSIX regex.h"
  2340. ! cat > conftest.${ac_ext} <<EOF
  2341.   #include "confdefs.h"
  2342.   #include <sys/types.h>
  2343.   #include <regex.h>
  2344.   int main() { return 0; }
  2345. ! int t() { regex_t *r; regfree(r);; return 0; }
  2346.   EOF
  2347. ! if eval $ac_compile; then
  2348.     rm -rf conftest*
  2349. !   
  2350. ! {
  2351. ! test -n "$verbose" && \
  2352. ! echo "    defining HAVE_POSIX_REGCOMP"
  2353. ! echo "#define" HAVE_POSIX_REGCOMP "1" >> confdefs.h
  2354. ! DEFS="$DEFS -DHAVE_POSIX_REGCOMP=1"
  2355. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_POSIX_REGCOMP\${ac_dB}HAVE_POSIX_REGCOMP\${ac_dC}1\${ac_dD}
  2356. ! \${ac_uA}HAVE_POSIX_REGCOMP\${ac_uB}HAVE_POSIX_REGCOMP\${ac_uC}1\${ac_uD}
  2357. ! \${ac_eA}HAVE_POSIX_REGCOMP\${ac_eB}HAVE_POSIX_REGCOMP\${ac_eC}1\${ac_eD}
  2358. ! "
  2359. ! }
  2360.    have_regex=yes
  2361.   fi
  2362.   rm -f conftest*
  2363.   
  2364.   if test $have_regex = no; then
  2365. ! test -n "$silent" || echo "checking for regcmp"
  2366. ! cat > conftest.${ac_ext} <<EOF
  2367.   #include "confdefs.h"
  2368. ! #include <ctype.h>
  2369.   int main() { return 0; }
  2370. ! int t() { 
  2371.   /* The GNU C library defines this for functions which it implements
  2372.       to always fail with ENOSYS.  Some functions are actually named
  2373.       something starting with __ and the normal name is an alias.  */
  2374.   #if defined (__stub_regcmp) || defined (__stub___regcmp)
  2375.   choke me
  2376.   #else
  2377. ! /* Override any gcc2 internal prototype to avoid an error.  */
  2378. ! extern char regcmp(); regcmp();
  2379.   #endif
  2380.   ; return 0; }
  2381.   EOF
  2382. ! if eval $ac_compile; then
  2383.     rm -rf conftest*
  2384. !   {
  2385. ! test -n "$verbose" && \
  2386. ! echo "    defining HAVE_REGCMP"
  2387. ! echo "#define" HAVE_REGCMP "1" >> confdefs.h
  2388. ! DEFS="$DEFS -DHAVE_REGCMP=1"
  2389. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_REGCMP\${ac_dB}HAVE_REGCMP\${ac_dC}1\${ac_dD}
  2390. ! \${ac_uA}HAVE_REGCMP\${ac_uB}HAVE_REGCMP\${ac_uC}1\${ac_uD}
  2391. ! \${ac_eA}HAVE_REGCMP\${ac_eB}HAVE_REGCMP\${ac_eC}1\${ac_eD}
  2392. ! "
  2393. ! }
  2394. !  have_regex=yes
  2395.   fi
  2396.   rm -f conftest*
  2397.   
  2398.   fi
  2399.   if test $have_regex = no; then
  2400. ! cat > conftest.${ac_ext} <<EOF
  2401.   #include "confdefs.h"
  2402.   #include "regexp.h"
  2403.   int main() { return 0; }
  2404. ! int t() { regcomp("");; return 0; }
  2405.   EOF
  2406. ! if eval $ac_compile; then
  2407.     rm -rf conftest*
  2408. !   
  2409. ! {
  2410. ! test -n "$verbose" && \
  2411. ! echo "    defining HAVE_V8_REGCOMP"
  2412. ! echo "#define" HAVE_V8_REGCOMP "1" >> confdefs.h
  2413. ! DEFS="$DEFS -DHAVE_V8_REGCOMP=1"
  2414. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_V8_REGCOMP\${ac_dB}HAVE_V8_REGCOMP\${ac_dC}1\${ac_dD}
  2415. ! \${ac_uA}HAVE_V8_REGCOMP\${ac_uB}HAVE_V8_REGCOMP\${ac_uC}1\${ac_uD}
  2416. ! \${ac_eA}HAVE_V8_REGCOMP\${ac_eB}HAVE_V8_REGCOMP\${ac_eC}1\${ac_eD}
  2417. ! "
  2418. ! }
  2419.    have_regex=yes
  2420.   fi
  2421.   rm -f conftest*
  2422.   
  2423.   fi
  2424.   if test $have_regex = no && test -f ${srcdir}/regex.c; then
  2425. ! {
  2426. ! test -n "$verbose" && \
  2427. ! echo "    defining HAVE_POSIX_REGCOMP"
  2428. ! echo "#define" HAVE_POSIX_REGCOMP "1" >> confdefs.h
  2429. ! DEFS="$DEFS -DHAVE_POSIX_REGCOMP=1"
  2430. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_POSIX_REGCOMP\${ac_dB}HAVE_POSIX_REGCOMP\${ac_dC}1\${ac_dD}
  2431. ! \${ac_uA}HAVE_POSIX_REGCOMP\${ac_uB}HAVE_POSIX_REGCOMP\${ac_uC}1\${ac_uD}
  2432. ! \${ac_eA}HAVE_POSIX_REGCOMP\${ac_eB}HAVE_POSIX_REGCOMP\${ac_eC}1\${ac_eD}
  2433. ! "
  2434. ! }
  2435.    REGEX_O='regex.$(O)'  have_regex=yes
  2436.   fi
  2437.   if test $have_regex = no && test -f ${srcdir}/regexp.c; then
  2438. ! {
  2439. ! test -n "$verbose" && \
  2440. ! echo "    defining HAVE_V8_REGCOMP"
  2441. ! echo "#define" HAVE_V8_REGCOMP "1" >> confdefs.h
  2442. ! DEFS="$DEFS -DHAVE_V8_REGCOMP=1"
  2443. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_V8_REGCOMP\${ac_dB}HAVE_V8_REGCOMP\${ac_dC}1\${ac_dD}
  2444. ! \${ac_uA}HAVE_V8_REGCOMP\${ac_uB}HAVE_V8_REGCOMP\${ac_uC}1\${ac_uD}
  2445. ! \${ac_eA}HAVE_V8_REGCOMP\${ac_eB}HAVE_V8_REGCOMP\${ac_eC}1\${ac_eD}
  2446. ! "
  2447. ! }
  2448.    REGEX_O='regexp.$(O)'  have_regex=yes
  2449.   fi
  2450.   if test $have_regex = no; then
  2451. ! test -n "$silent" || echo "checking for re_comp"
  2452. ! cat > conftest.${ac_ext} <<EOF
  2453.   #include "confdefs.h"
  2454. ! #include <ctype.h>
  2455.   int main() { return 0; }
  2456. ! int t() { 
  2457.   /* The GNU C library defines this for functions which it implements
  2458.       to always fail with ENOSYS.  Some functions are actually named
  2459.       something starting with __ and the normal name is an alias.  */
  2460.   #if defined (__stub_re_comp) || defined (__stub___re_comp)
  2461.   choke me
  2462.   #else
  2463. ! /* Override any gcc2 internal prototype to avoid an error.  */
  2464. ! extern char re_comp(); re_comp();
  2465.   #endif
  2466.   ; return 0; }
  2467.   EOF
  2468. ! if eval $ac_compile; then
  2469.     rm -rf conftest*
  2470. !   {
  2471. ! test -n "$verbose" && \
  2472. ! echo "    defining HAVE_RE_COMP"
  2473. ! echo "#define" HAVE_RE_COMP "1" >> confdefs.h
  2474. ! DEFS="$DEFS -DHAVE_RE_COMP=1"
  2475. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_RE_COMP\${ac_dB}HAVE_RE_COMP\${ac_dC}1\${ac_dD}
  2476. ! \${ac_uA}HAVE_RE_COMP\${ac_uB}HAVE_RE_COMP\${ac_uC}1\${ac_uD}
  2477. ! \${ac_eA}HAVE_RE_COMP\${ac_eB}HAVE_RE_COMP\${ac_eC}1\${ac_eD}
  2478. ! "
  2479. ! }
  2480. !  have_regex=yes
  2481.   fi
  2482.   rm -f conftest*
  2483.   
  2484.   fi
  2485. ! if test $have_regex = no; then
  2486. ! {
  2487. ! test -n "$verbose" && \
  2488. ! echo "    defining NO_REGEX"
  2489. ! echo "#define" NO_REGEX "1" >> confdefs.h
  2490. ! DEFS="$DEFS -DNO_REGEX=1"
  2491. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_REGEX\${ac_dB}NO_REGEX\${ac_dC}1\${ac_dD}
  2492. ! \${ac_uA}NO_REGEX\${ac_uB}NO_REGEX\${ac_uC}1\${ac_uD}
  2493. ! \${ac_eA}NO_REGEX\${ac_eB}NO_REGEX\${ac_eC}1\${ac_eD}
  2494. ! "
  2495. ! }
  2496.   fi
  2497.   
  2498.   
  2499. - # The preferred way to propogate these variables is regular @ substitutions.
  2500. - if test -n "$prefix"; then
  2501. -   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  2502. - else
  2503. -   prefix=/usr/local
  2504.   fi
  2505. ! if test -n "$exec_prefix"; then
  2506. !   ac_prsub="$ac_prsub
  2507. ! s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  2508.   else
  2509. !   exec_prefix='${prefix}' # Let make expand it.
  2510.   fi
  2511.   
  2512.   # Any assignment to VPATH causes Sun make to only execute
  2513.   # the first set of double-colon rules, so remove it if not needed.
  2514.   # If there is a colon in the path, we need to keep it.
  2515. --- 1344,1535 ----
  2516.   
  2517.   
  2518.   have_regex=no
  2519. ! echo "checking for POSIX regex.h" 1>&4
  2520. ! cat > conftest.$ac_ext <<EOF
  2521. ! #line 1350 "configure"
  2522.   #include "confdefs.h"
  2523.   #include <sys/types.h>
  2524.   #include <regex.h>
  2525.   int main() { return 0; }
  2526. ! int t() {
  2527. ! regex_t *r; regfree(r);
  2528. ! ; return 0; }
  2529.   EOF
  2530. ! if eval $ac_link; then
  2531.     rm -rf conftest*
  2532. !   cat >> confdefs.h <<\EOF
  2533. ! #define HAVE_POSIX_REGCOMP 1
  2534. ! EOF
  2535.    have_regex=yes
  2536.   fi
  2537.   rm -f conftest*
  2538.   
  2539.   if test $have_regex = no; then
  2540. ! /bin/echo $ac_n "checking for regcmp""... $ac_c" 1>&4
  2541. ! if eval "test \"`echo '${'ac_cv_func_regcmp'+set}'`\" = set"; then
  2542. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2543. ! else
  2544. !   cat > conftest.$ac_ext <<EOF
  2545. ! #line 1374 "configure"
  2546.   #include "confdefs.h"
  2547. ! #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2548. ! /* Override any gcc2 internal prototype to avoid an error.  */
  2549. ! char regcmp(); 
  2550.   int main() { return 0; }
  2551. ! int t() {
  2552.   /* The GNU C library defines this for functions which it implements
  2553.       to always fail with ENOSYS.  Some functions are actually named
  2554.       something starting with __ and the normal name is an alias.  */
  2555.   #if defined (__stub_regcmp) || defined (__stub___regcmp)
  2556.   choke me
  2557.   #else
  2558. ! regcmp();
  2559.   #endif
  2560.   ; return 0; }
  2561.   EOF
  2562. ! if eval $ac_link; then
  2563.     rm -rf conftest*
  2564. !   eval "ac_cv_func_regcmp=yes"
  2565. ! else
  2566. !   rm -rf conftest*
  2567. !   eval "ac_cv_func_regcmp=no"
  2568.   fi
  2569.   rm -f conftest*
  2570.   
  2571.   fi
  2572. + if eval "test \"`echo '$ac_cv_func_'regcmp`\" = yes"; then
  2573. +   /bin/echo "$ac_t""yes" 1>&4
  2574. +   cat >> confdefs.h <<\EOF
  2575. + #define HAVE_REGCMP 1
  2576. + EOF
  2577. +  have_regex=yes
  2578. + else
  2579. +   /bin/echo "$ac_t""no" 1>&4
  2580. + fi
  2581. + fi
  2582.   if test $have_regex = no; then
  2583. ! cat > conftest.$ac_ext <<EOF
  2584. ! #line 1417 "configure"
  2585.   #include "confdefs.h"
  2586.   #include "regexp.h"
  2587.   int main() { return 0; }
  2588. ! int t() {
  2589. ! regcomp("");
  2590. ! ; return 0; }
  2591.   EOF
  2592. ! if eval $ac_link; then
  2593.     rm -rf conftest*
  2594. !   cat >> confdefs.h <<\EOF
  2595. ! #define HAVE_V8_REGCOMP 1
  2596. ! EOF
  2597.    have_regex=yes
  2598.   fi
  2599.   rm -f conftest*
  2600.   
  2601.   fi
  2602.   if test $have_regex = no && test -f ${srcdir}/regex.c; then
  2603. ! cat >> confdefs.h <<\EOF
  2604. ! #define HAVE_POSIX_REGCOMP 1
  2605. ! EOF
  2606.    REGEX_O='regex.$(O)'  have_regex=yes
  2607.   fi
  2608.   if test $have_regex = no && test -f ${srcdir}/regexp.c; then
  2609. ! cat >> confdefs.h <<\EOF
  2610. ! #define HAVE_V8_REGCOMP 1
  2611. ! EOF
  2612.    REGEX_O='regexp.$(O)'  have_regex=yes
  2613.   fi
  2614.   if test $have_regex = no; then
  2615. ! /bin/echo $ac_n "checking for re_comp""... $ac_c" 1>&4
  2616. ! if eval "test \"`echo '${'ac_cv_func_re_comp'+set}'`\" = set"; then
  2617. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2618. ! else
  2619. !   cat > conftest.$ac_ext <<EOF
  2620. ! #line 1453 "configure"
  2621.   #include "confdefs.h"
  2622. ! #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2623. ! /* Override any gcc2 internal prototype to avoid an error.  */
  2624. ! char re_comp(); 
  2625.   int main() { return 0; }
  2626. ! int t() {
  2627.   /* The GNU C library defines this for functions which it implements
  2628.       to always fail with ENOSYS.  Some functions are actually named
  2629.       something starting with __ and the normal name is an alias.  */
  2630.   #if defined (__stub_re_comp) || defined (__stub___re_comp)
  2631.   choke me
  2632.   #else
  2633. ! re_comp();
  2634.   #endif
  2635.   ; return 0; }
  2636.   EOF
  2637. ! if eval $ac_link; then
  2638.     rm -rf conftest*
  2639. !   eval "ac_cv_func_re_comp=yes"
  2640. ! else
  2641. !   rm -rf conftest*
  2642. !   eval "ac_cv_func_re_comp=no"
  2643.   fi
  2644.   rm -f conftest*
  2645.   
  2646.   fi
  2647. ! if eval "test \"`echo '$ac_cv_func_'re_comp`\" = yes"; then
  2648. !   /bin/echo "$ac_t""yes" 1>&4
  2649. !   cat >> confdefs.h <<\EOF
  2650. ! #define HAVE_RE_COMP 1
  2651. ! EOF
  2652. !  have_regex=yes
  2653. ! else
  2654. !   /bin/echo "$ac_t""no" 1>&4
  2655.   fi
  2656.   
  2657. + fi
  2658. + if test $have_regex = no; then
  2659. + cat >> confdefs.h <<\EOF
  2660. + #define NO_REGEX 1
  2661. + EOF
  2662.   
  2663.   fi
  2664. ! trap '' 1 2 15
  2665. ! if test -w $cache_file; then
  2666. ! echo "updating cache $cache_file"
  2667. ! cat > $cache_file <<\EOF
  2668. ! # This file is a shell script that caches the results of configure
  2669. ! # tests run on this system so they can be shared between configure
  2670. ! # scripts and configure runs.  It is not useful on other systems.
  2671. ! # If it contains results you don't want to keep, you may remove or edit it.
  2672. ! #
  2673. ! # By default, configure uses ./config.cache as the cache file,
  2674. ! # creating it if it does not exist already.  You can give configure
  2675. ! # the --cache-file=FILE option to use a different cache file; that is
  2676. ! # what configure does when it calls configure scripts in
  2677. ! # subdirectories, so they share the cache.
  2678. ! # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2679. ! # config.status only pays attention to the cache file if you give it the
  2680. ! # --recheck option to rerun configure.
  2681. ! #
  2682. ! EOF
  2683. ! # Ultrix sh set writes to stderr and can't be redirected directly.
  2684. ! (set) 2>&1 |
  2685. !   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
  2686. !   >> $cache_file
  2687.   else
  2688. ! echo "not updating unwritable cache $cache_file"
  2689.   fi
  2690.   
  2691. + trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  2692. + test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2693. + # Let make expand exec_prefix.
  2694. + test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2695.   # Any assignment to VPATH causes Sun make to only execute
  2696.   # the first set of double-colon rules, so remove it if not needed.
  2697.   # If there is a colon in the path, we need to keep it.
  2698. ***************
  2699. *** 1316,1351 ****
  2700.     ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2701.   fi
  2702.   
  2703. ! # Quote sed substitution magic chars in DEFS.
  2704. ! cat >conftest.def <<EOF
  2705. ! $DEFS
  2706. ! EOF
  2707. ! ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  2708. ! DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  2709. ! rm -f conftest.def
  2710. ! # Substitute for predefined variables.
  2711. ! trap 'rm -f config.status; exit 1' 1 2 15
  2712. ! echo creating config.status
  2713. ! rm -f config.status
  2714. ! cat > config.status <<EOF
  2715.   #!/bin/sh
  2716.   # Generated automatically by configure.
  2717.   # Run this file to recreate the current configuration.
  2718.   # This directory was configured as follows,
  2719.   # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2720.   #
  2721. ! # $0 $configure_args
  2722.   
  2723. ! ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  2724.   for ac_option
  2725.   do
  2726.     case "\$ac_option" in
  2727.     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2728. !     echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  2729. !     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  2730.     -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2731. !     echo "config.status generated by autoconf version 1.11"
  2732.       exit 0 ;;
  2733.     -help | --help | --hel | --he | --h)
  2734.       echo "\$ac_cs_usage"; exit 0 ;;
  2735. --- 1537,1574 ----
  2736.     ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2737.   fi
  2738.   
  2739. ! trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2740. ! DEFS=-DHAVE_CONFIG_H
  2741. ! # Without the "./", some shells look in PATH for config.status.
  2742. ! : ${CONFIG_STATUS=./config.status}
  2743. ! echo creating $CONFIG_STATUS
  2744. ! # Some systems, like AmigaDOS, won't allow you to remove a script that is
  2745. ! # being executed, so just move it out of the way instead.
  2746. ! if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2747. ! cat > $CONFIG_STATUS <<EOF
  2748.   #!/bin/sh
  2749.   # Generated automatically by configure.
  2750.   # Run this file to recreate the current configuration.
  2751.   # This directory was configured as follows,
  2752.   # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2753.   #
  2754. ! # $0 $ac_configure_args
  2755. ! #
  2756. ! # Compiler output produced by configure, useful for debugging
  2757. ! # configure, is in ./config.log if it exists.
  2758.   
  2759. ! ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2760.   for ac_option
  2761.   do
  2762.     case "\$ac_option" in
  2763.     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2764. !     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2765. !     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2766.     -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2767. !     /bin/echo "$CONFIG_STATUS generated by autoconf version 2.1"
  2768.       exit 0 ;;
  2769.     -help | --help | --hel | --he | --h)
  2770.       echo "\$ac_cs_usage"; exit 0 ;;
  2771. ***************
  2772. *** 1353,1532 ****
  2773.     esac
  2774.   done
  2775.   
  2776.   trap 'rm -fr Makefile defines.h conftest*; exit 1' 1 2 15
  2777. ! CC='$CC'
  2778. ! CPP='$CPP'
  2779. ! INSTALL='$INSTALL'
  2780. ! INSTALL_PROGRAM='$INSTALL_PROGRAM'
  2781. ! INSTALL_DATA='$INSTALL_DATA'
  2782. ! REGEX_O='$REGEX_O'
  2783. ! LIBS='$LIBS'
  2784. ! srcdir='$srcdir'
  2785. ! top_srcdir='$top_srcdir'
  2786. ! prefix='$prefix'
  2787. ! exec_prefix='$exec_prefix'
  2788. ! ac_prsub='$ac_prsub'
  2789. ! ac_vpsub='$ac_vpsub'
  2790. ! extrasub='$extrasub'
  2791.   EOF
  2792. ! cat >> config.status <<\EOF
  2793.   
  2794. ! ac_given_srcdir=$srcdir
  2795.   
  2796. - CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  2797. - for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  2798.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2799. !   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2800.     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2801.       # The file is in a subdirectory.
  2802.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  2803.       ac_dir_suffix="/$ac_dir"
  2804.     else
  2805. !     ac_dir_suffix=
  2806.     fi
  2807.   
  2808. -   # A "../" for each directory in $ac_dir_suffix.
  2809. -   ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2810.     case "$ac_given_srcdir" in
  2811.     .)  srcdir=.
  2812. !       if test -z "$ac_dir_suffix"; then top_srcdir=.
  2813. !       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2814.     /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2815.     *) # Relative path.
  2816.       srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2817.       top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2818.     esac
  2819.   
  2820.     echo creating "$ac_file"
  2821.     rm -f "$ac_file"
  2822. !   comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
  2823.     case "$ac_file" in
  2824. !     *.c | *.h | *.C | *.cc | *.m )  echo "/* $comment_str */" > "$ac_file" ;;
  2825. !     * )          echo "# $comment_str"     > "$ac_file" ;;
  2826.     esac
  2827. !   sed -e "
  2828. ! $ac_prsub
  2829. ! $ac_vpsub
  2830. ! $extrasub
  2831. ! s%@CC@%$CC%g
  2832. ! s%@CPP@%$CPP%g
  2833. ! s%@INSTALL@%$INSTALL%g
  2834. ! s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2835. ! s%@INSTALL_DATA@%$INSTALL_DATA%g
  2836. ! s%@REGEX_O@%$REGEX_O%g
  2837. ! s%@LIBS@%$LIBS%g
  2838.   s%@srcdir@%$srcdir%g
  2839.   s%@top_srcdir@%$top_srcdir%g
  2840. ! s%@prefix@%$prefix%g
  2841. ! s%@exec_prefix@%$exec_prefix%g
  2842. ! s%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
  2843.   fi; done
  2844.   
  2845. ! # These sed commands are put into ac_sed_defs when defining a macro.
  2846. ! # They are broken into pieces to make the sed script easier to manage.
  2847. ! # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  2848. ! # is the cpp macro being defined and VALUE is the value it is being given.
  2849. ! # Each defining turns into a single global substitution command.
  2850. ! # Hopefully no one uses "!" as a variable value.
  2851. ! # Other candidates for the sed separators, like , and @, do get used.
  2852.   #
  2853.   # ac_d sets the value in "#define NAME VALUE" lines.
  2854. ! ac_dA='s!^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2855. ! ac_dB='\([     ][     ]*\)[^     ]*!\1#\2'
  2856.   ac_dC='\3'
  2857. ! ac_dD='!g'
  2858.   # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2859. ! ac_uA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2860. ! ac_uB='\([     ]\)!\1#\2define\3'
  2861.   ac_uC=' '
  2862. ! ac_uD='\4!g'
  2863.   # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2864. ! ac_eA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2865. ! ac_eB='$!\1#\2define\3'
  2866.   ac_eC=' '
  2867. ! ac_eD='!g'
  2868. ! rm -f conftest.sed
  2869.   EOF
  2870. ! # Turn off quoting long enough to insert the sed commands.
  2871. ! rm -f conftest.sh
  2872. ! cat > conftest.sh <<EOF
  2873. ! $ac_sed_defs
  2874.   EOF
  2875.   
  2876. ! # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
  2877. ! # on the size of here documents.
  2878.   
  2879.   # Maximum number of lines to put in a single here document.
  2880. ! ac_max_sh_lines=9
  2881.   
  2882.   while :
  2883.   do
  2884. !   # wc gives bogus results for an empty file on some AIX systems.
  2885. !   ac_lines=`grep -c . conftest.sh`
  2886.     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2887. !   rm -f conftest.s1 conftest.s2
  2888. !   sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9.
  2889. !   sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10.
  2890. !   # Write a limited-size here document to append to conftest.sed.
  2891. !   echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  2892. !   cat conftest.s1 >> config.status
  2893. !   echo 'CONFEOF' >> config.status
  2894. !   rm -f conftest.s1 conftest.sh
  2895. !   mv conftest.s2 conftest.sh
  2896.   done
  2897. ! rm -f conftest.sh
  2898.   
  2899. ! # Now back to your regularly scheduled config.status.
  2900. ! cat >> config.status <<\EOF
  2901. ! # This sed command replaces #undef's with comments.  This is necessary, for
  2902. ! # example, in the case of _POSIX_SOURCE, which is predefined and required
  2903. ! # on some systems where configure will not decide to define it in
  2904. ! # defines.h.
  2905. ! cat >> conftest.sed <<\CONFEOF
  2906. ! s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  2907. ! CONFEOF
  2908. ! rm -f conftest.h
  2909. ! # Break up the sed commands because old seds have small limits.
  2910. ! ac_max_sed_lines=20
  2911. ! CONFIG_HEADERS=${CONFIG_HEADERS-"defines.h"}
  2912. ! for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
  2913. !   echo creating $ac_file
  2914. !   cp $ac_given_srcdir/$ac_file.in conftest.h1
  2915. !   cp conftest.sed conftest.stm
  2916. !   while :
  2917. !   do
  2918. !     ac_lines=`grep -c . conftest.stm`
  2919. !     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2920. !     rm -f conftest.s1 conftest.s2 conftest.h2
  2921. !     sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
  2922. !     sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21.
  2923. !     sed -f conftest.s1 < conftest.h1 > conftest.h2
  2924. !     rm -f conftest.s1 conftest.h1 conftest.stm
  2925. !     mv conftest.h2 conftest.h1
  2926. !     mv conftest.s2 conftest.stm
  2927. !   done
  2928. !   rm -f conftest.stm conftest.h
  2929.     echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2930. !   cat conftest.h1 >> conftest.h
  2931. !   rm -f conftest.h1
  2932.     if cmp -s $ac_file conftest.h 2>/dev/null; then
  2933. !     # The file exists and we would not be changing it.
  2934. !     echo "$ac_file is unchanged"
  2935.       rm -f conftest.h
  2936.     else
  2937.       rm -f $ac_file
  2938.       mv conftest.h $ac_file
  2939.     fi
  2940.   fi; done
  2941. - rm -f conftest.sed
  2942.   
  2943.   
  2944.   
  2945.   exit 0
  2946.   EOF
  2947. ! chmod +x config.status
  2948. ! # Some shells look in PATH for config.status without the "./".
  2949. ! test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
  2950.   
  2951. --- 1576,1767 ----
  2952.     esac
  2953.   done
  2954.   
  2955. + ac_given_srcdir=$srcdir
  2956. + ac_given_INSTALL="$INSTALL"
  2957.   trap 'rm -fr Makefile defines.h conftest*; exit 1' 1 2 15
  2958. ! # Protect against being on the right side of a sed subst in config.status. 
  2959. ! sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  2960. !  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  2961. ! $ac_vpsub
  2962. ! $extrasub
  2963. ! s%@CFLAGS@%$CFLAGS%g
  2964. ! s%@CPPFLAGS@%$CPPFLAGS%g
  2965. ! s%@CXXFLAGS@%$CXXFLAGS%g
  2966. ! s%@DEFS@%$DEFS%g
  2967. ! s%@LDFLAGS@%$LDFLAGS%g
  2968. ! s%@LIBS@%$LIBS%g
  2969. ! s%@exec_prefix@%$exec_prefix%g
  2970. ! s%@prefix@%$prefix%g
  2971. ! s%@program_transform_name@%$program_transform_name%g
  2972. ! s%@CC@%$CC%g
  2973. ! s%@CPP@%$CPP%g
  2974. ! s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2975. ! s%@INSTALL_DATA@%$INSTALL_DATA%g
  2976. ! s%@REGEX_O@%$REGEX_O%g
  2977. ! CEOF
  2978.   EOF
  2979. ! cat >> $CONFIG_STATUS <<EOF
  2980.   
  2981. ! CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2982. ! EOF
  2983. ! cat >> $CONFIG_STATUS <<\EOF
  2984. ! for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2985. !   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2986. !   case "$ac_file" in
  2987. !   *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
  2988. !        ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
  2989. !   *) ac_file_in="${ac_file}.in" ;;
  2990. !   esac
  2991. !   # Adjust relative srcdir, etc. for subdirectories.
  2992.   
  2993.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2994. !   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2995.     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2996.       # The file is in a subdirectory.
  2997.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  2998.       ac_dir_suffix="/$ac_dir"
  2999. +     # A "../" for each directory in $ac_dir_suffix.
  3000. +     ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3001.     else
  3002. !     ac_dir_suffix= ac_dots=
  3003.     fi
  3004.   
  3005.     case "$ac_given_srcdir" in
  3006.     .)  srcdir=.
  3007. !       if test -z "$ac_dots"; then top_srcdir=.
  3008. !       else top_srcdir=`/bin/echo $ac_dots|sed 's%/$%%'`; fi ;;
  3009.     /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3010.     *) # Relative path.
  3011.       srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3012.       top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3013.     esac
  3014.   
  3015. +   case "$ac_given_INSTALL" in
  3016. +   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3017. +   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3018. +   esac
  3019.     echo creating "$ac_file"
  3020.     rm -f "$ac_file"
  3021. !   configure_input="Generated automatically from `/bin/echo $ac_file_in|sed 's%.*/%%'` by configure."
  3022.     case "$ac_file" in
  3023. !   *Makefile*) ac_comsub="1i\\
  3024. ! # $configure_input" ;;
  3025. !   *) ac_comsub= ;;
  3026.     esac
  3027. !   sed -e "$ac_comsub
  3028. ! s%@configure_input@%$configure_input%g
  3029.   s%@srcdir@%$srcdir%g
  3030.   s%@top_srcdir@%$top_srcdir%g
  3031. ! s%@INSTALL@%$INSTALL%g
  3032. ! " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  3033.   fi; done
  3034. + rm -f conftest.subs
  3035.   
  3036. ! # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3037. ! # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3038.   #
  3039.   # ac_d sets the value in "#define NAME VALUE" lines.
  3040. ! ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3041. ! ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  3042.   ac_dC='\3'
  3043. ! ac_dD='%g'
  3044.   # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3045. ! ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3046. ! ac_uB='\([     ]\)%\1#\2define\3'
  3047.   ac_uC=' '
  3048. ! ac_uD='\4%g'
  3049.   # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3050. ! ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3051. ! ac_eB='$%\1#\2define\3'
  3052.   ac_eC=' '
  3053. ! ac_eD='%g'
  3054. ! CONFIG_HEADERS=${CONFIG_HEADERS-"defines.h"}
  3055. ! for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3056. !   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3057. !   case "$ac_file" in
  3058. !   *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
  3059. !        ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
  3060. !   *) ac_file_in="${ac_file}.in" ;;
  3061. !   esac
  3062. !   echo creating $ac_file
  3063. !   rm -f conftest.frag conftest.in conftest.out
  3064. !   cp $ac_given_srcdir/$ac_file_in conftest.in
  3065.   EOF
  3066. ! # Transform confdefs.h into a sed script conftest.vals that substitutes
  3067. ! # the proper values into config.h.in to produce config.h.  And first:
  3068. ! # Protect against being on the right side of a sed subst in config.status. 
  3069. ! # Protect against being in an unquoted here document in config.status.
  3070. ! rm -f conftest.vals
  3071. ! cat > conftest.hdr <<\EOF
  3072. ! s/[\\&%]/\\&/g
  3073. ! s%[\\$`]%\\&%g
  3074. ! s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3075. ! s%ac_d%ac_u%gp
  3076. ! s%ac_u%ac_e%gp
  3077.   EOF
  3078. + sed -n -f conftest.hdr confdefs.h > conftest.vals
  3079. + rm -f conftest.hdr
  3080.   
  3081. ! # This sed command replaces #undef with comments.  This is necessary, for
  3082. ! # example, in the case of _POSIX_SOURCE, which is predefined and required
  3083. ! # on some systems where configure will not decide to define it.
  3084. ! cat >> conftest.vals <<\EOF
  3085. ! s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  3086. ! EOF
  3087.   
  3088. + # Break up conftest.vals because some shells have a limit on
  3089. + # the size of here documents, and old seds have small limits too.
  3090.   # Maximum number of lines to put in a single here document.
  3091. ! ac_max_here_lines=12
  3092.   
  3093. + rm -f conftest.tail
  3094.   while :
  3095.   do
  3096. !   ac_lines=`grep -c . conftest.vals`
  3097. !   # grep -c gives empty output for an empty file on some AIX systems.
  3098.     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3099. !   # Write a limited-size here document to conftest.frag.
  3100. !   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  3101. !   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  3102. !   echo 'CEOF
  3103. !   sed -f conftest.frag conftest.in > conftest.out
  3104. !   rm -f conftest.in
  3105. !   mv conftest.out conftest.in
  3106. ! ' >> $CONFIG_STATUS
  3107. !   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  3108. !   rm -f conftest.vals
  3109. !   mv conftest.tail conftest.vals
  3110.   done
  3111. ! rm -f conftest.vals
  3112.   
  3113. ! cat >> $CONFIG_STATUS <<\EOF
  3114. !   rm -f conftest.frag conftest.h
  3115.     echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  3116. !   cat conftest.in >> conftest.h
  3117. !   rm -f conftest.in
  3118.     if cmp -s $ac_file conftest.h 2>/dev/null; then
  3119. !     /bin/echo "$ac_file is unchanged"
  3120.       rm -f conftest.h
  3121.     else
  3122.       rm -f $ac_file
  3123.       mv conftest.h $ac_file
  3124.     fi
  3125.   fi; done
  3126.   
  3127.   
  3128.   
  3129.   exit 0
  3130.   EOF
  3131. ! chmod +x $CONFIG_STATUS
  3132. ! rm -fr confdefs* $ac_clean_files
  3133. ! test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
  3134.   
  3135. diff -rc --new-file less-252/os.c /gnu/src/amiga/less-252/os.c
  3136. *** less-252/os.c    Sat Oct 15 07:16:48 1994
  3137. --- /gnu/src/amiga/less-252/os.c    Thu Jan  5 12:11:15 1995
  3138. ***************
  3139. *** 178,183 ****
  3140. --- 178,184 ----
  3141.       register char *m;
  3142.   #if HAVE_ERRNO
  3143.       extern int errno;
  3144. +     extern char *strerror (int);
  3145.       p = strerror(errno);
  3146.   #else
  3147.       p = "cannot open";
  3148. diff -rc --new-file less-252/screen.c /gnu/src/amiga/less-252/screen.c
  3149. *** less-252/screen.c    Wed Nov  9 17:41:22 1994
  3150. --- /gnu/src/amiga/less-252/screen.c    Thu Jan  5 13:54:45 1995
  3151. ***************
  3152. *** 586,592 ****
  3153. --- 586,599 ----
  3154.        * Find out what kind of terminal this is.
  3155.        */
  3156.        if ((term = getenv("TERM")) == NULL)
  3157. + #ifdef __amigados__
  3158. +       /* A configured machine default would be more sensible
  3159. +          for those machines that have a "native terminal".
  3160. +          -fnf */
  3161. +         term = "amiga";
  3162. + #else
  3163.            term = "unknown";
  3164. + #endif
  3165.        if (tgetent(termbuf, term) <= 0)
  3166.            strcpy(termbuf, "dumb:hc:");
  3167.   
  3168. diff -rc --new-file less-252/ttyin.c /gnu/src/amiga/less-252/ttyin.c
  3169. *** less-252/ttyin.c    Sat Oct 15 07:16:49 1994
  3170. --- /gnu/src/amiga/less-252/ttyin.c    Thu Jan  5 12:28:16 1995
  3171. ***************
  3172. *** 58,66 ****
  3173. --- 58,70 ----
  3174.        * which in Unix is usually attached to the screen,
  3175.        * but also usually lets you read from the keyboard.
  3176.        */
  3177. + #ifndef __amigados__
  3178.       tty = open("/dev/tty", 0);
  3179.       if (tty < 0)
  3180.           tty = 2;
  3181. + #else
  3182. +     tty = 2;
  3183. + #endif
  3184.   #endif
  3185.   }
  3186.   
  3187.