home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / src / diffs / termcap-1.2.diffs < prev    next >
Encoding:
Text File  |  1995-01-21  |  58.2 KB  |  1,893 lines

  1. diff -rc --new-file termcap-1.2/INSTALL /gnu/src/amiga/termcap-1.2/INSTALL
  2. *** termcap-1.2/INSTALL    Fri Jan 22 17:16:53 1993
  3. --- /gnu/src/amiga/termcap-1.2/INSTALL    Thu Feb 24 15:08:26 1994
  4. ***************
  5. *** 33,40 ****
  6.   DIR is the directory that contains the source code.
  7.   
  8.   By default, `make install' will install the package's files in
  9. ! /usr/local/bin, /usr/local/lib, /usr/local/man, etc.  You can specify
  10. ! an installation prefix other than /usr/local by giving `configure' the
  11.   option `--prefix=PATH'.  Alternately, you can do so by giving a value
  12.   for the `prefix' variable when you run `make', e.g.,
  13.       make prefix=/usr/gnu
  14. --- 33,40 ----
  15.   DIR is the directory that contains the source code.
  16.   
  17.   By default, `make install' will install the package's files in
  18. ! /gnu/bin, /gnu/lib, /gnu/man, etc.  You can specify
  19. ! an installation prefix other than /gnu by giving `configure' the
  20.   option `--prefix=PATH'.  Alternately, you can do so by giving a value
  21.   for the `prefix' variable when you run `make', e.g.,
  22.       make prefix=/usr/gnu
  23. diff -rc --new-file termcap-1.2/Makefile.in /gnu/src/amiga/termcap-1.2/Makefile.in
  24. *** termcap-1.2/Makefile.in    Mon Apr 12 18:42:15 1993
  25. --- /gnu/src/amiga/termcap-1.2/Makefile.in    Wed Jan 11 12:11:39 1995
  26. ***************
  27. *** 37,45 ****
  28.   
  29.   DEFS = @DEFS@ -DNO_ARG_ARRAY
  30.   
  31. ! CFLAGS = -g
  32.   
  33. ! prefix = /usr/local
  34.   exec_prefix = $(prefix)
  35.   
  36.   # Directory in which to install libtermcap.a.
  37. --- 37,45 ----
  38.   
  39.   DEFS = @DEFS@ -DNO_ARG_ARRAY
  40.   
  41. ! CFLAGS = -O2
  42.   
  43. ! prefix = /gnu
  44.   exec_prefix = $(prefix)
  45.   
  46.   # Directory in which to install libtermcap.a.
  47. ***************
  48. *** 52,58 ****
  49.   # so compilers besides gcc can find it by default.
  50.   # If it is empty or not defined, termcap.h will only be installed in
  51.   # includedir. 
  52. ! oldincludedir = /usr/include
  53.   
  54.   # Directory in which to install the documentation info files.
  55.   infodir = $(prefix)/info
  56. --- 52,58 ----
  57.   # so compilers besides gcc can find it by default.
  58.   # If it is empty or not defined, termcap.h will only be installed in
  59.   # includedir. 
  60. ! oldincludedir = /gnu/include
  61.   
  62.   # Directory in which to install the documentation info files.
  63.   infodir = $(prefix)/info
  64. ***************
  65. *** 69,74 ****
  66. --- 69,75 ----
  67.   texinfo.tex Makefile.in configure configure.in
  68.   
  69.   all:    libtermcap.a termcap.info
  70. +     (cd tests; make all)
  71.   
  72.   .c.o:
  73.       $(CC) -c $(CPPFLAGS) $(DEFS) -I$(srcdir) $(CFLAGS) $<
  74. diff -rc --new-file termcap-1.2/Product-Info /gnu/src/amiga/termcap-1.2/Product-Info
  75. *** termcap-1.2/Product-Info    Thu Jan  1 00:00:00 1970
  76. --- /gnu/src/amiga/termcap-1.2/Product-Info    Tue Jul 12 17:47:14 1994
  77. ***************
  78. *** 0 ****
  79. --- 1,22 ----
  80. + .name
  81. + termcap
  82. + .fullname
  83. + GNU termcap library
  84. + .type
  85. + Library
  86. + .short
  87. + GNU termcap library.
  88. + .description
  89. + This is the GNU termcap library, a library of C functions that enable
  90. + programs to send control strings to terminals in a way independent of
  91. + the terminal type.  Most of this package is also distributed with GNU
  92. + Emacs, but it is available in this separate distribution to make it
  93. + easier to install as -ltermcap.
  94. + .version
  95. + 1.2
  96. + .author
  97. + Free Software Foundation
  98. + .distribution
  99. + GNU Public License
  100. + .described-by
  101. + Fred Fish (fnf@amigalib.com)
  102. diff -rc --new-file termcap-1.2/configure /gnu/src/amiga/termcap-1.2/configure
  103. *** termcap-1.2/configure    Thu Apr 15 16:38:37 1993
  104. --- /gnu/src/amiga/termcap-1.2/configure    Wed Jan 11 11:59:44 1995
  105. ***************
  106. *** 1,346 ****
  107.   #!/bin/sh
  108.   # Guess values for system-dependent variables and create Makefiles.
  109. ! # Generated automatically using autoconf.
  110. ! # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  111.   
  112. ! # This program is free software; you can redistribute it and/or modify
  113. ! # it under the terms of the GNU General Public License as published by
  114. ! # the Free Software Foundation; either version 2, or (at your option)
  115. ! # any later version.
  116. ! # This program is distributed in the hope that it will be useful,
  117. ! # but WITHOUT ANY WARRANTY; without even the implied warranty of
  118. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  119. ! # GNU General Public License for more details.
  120. ! # You should have received a copy of the GNU General Public License
  121. ! # along with this program; if not, write to the Free Software
  122. ! # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  123. ! # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp] [--no-create]
  124. ! #        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE] [TARGET]
  125. ! # Ignores all args except --srcdir, --prefix, --exec-prefix, --no-create, and
  126. ! # --with-PACKAGE unless this script has special code to handle it.
  127.   
  128.   
  129. ! for arg
  130.   do
  131. -   # Handle --exec-prefix with a space before the argument.
  132. -   if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  133. -   # Handle --host with a space before the argument.
  134. -   elif test x$next_host = xyes; then next_host=
  135. -   # Handle --prefix with a space before the argument.
  136. -   elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  137. -   # Handle --srcdir with a space before the argument.
  138. -   elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  139. -   else
  140. -     case $arg in
  141. -      # For backward compatibility, also recognize exact --exec_prefix.
  142. -      -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  143. -     exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  144. -      -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  145. -     next_exec_prefix=yes ;;
  146. -      -gas | --gas | --ga | --g) ;;
  147. -      -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  148. -      -host | --host | --hos | --ho | --h)
  149. -     next_host=yes ;;
  150. -      -nfp | --nfp | --nf) ;;
  151. -      -no-create | --no-create | --no-creat | --no-crea | --no-cre | --no-cr | --no-c | --no- | --no)
  152. -         no_create=1 ;;
  153. -      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  154. -     prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  155. -      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  156. -     next_prefix=yes ;;
  157. -      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  158. -     srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  159. -      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  160. -     next_srcdir=yes ;;
  161. -      -with-* | --with-*)
  162. -        package=`echo $arg|sed 's/-*with-//'`
  163. -        # Delete all the valid chars; see if any are left.
  164. -        if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then
  165. -          echo "configure: $package: invalid package name" >&2; exit 1
  166. -        fi
  167. -        eval "with_`echo $package|sed s/-/_/g`=1" ;;
  168.   
  169. !      -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
  170. !        verbose=yes ;;
  171.   
  172. !      *) ;;
  173.       esac
  174. !   fi
  175.   done
  176.   
  177. ! trap 'rm -f conftest* core; exit 1' 1 3 15
  178.   
  179. ! rm -f conftest*
  180. ! compile='${CC-cc} $CFLAGS $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  181.   
  182.   # A filename unique to this package, relative to the directory that
  183.   # configure is in, which we can look for to find out if srcdir is correct.
  184. ! unique_file=termcap.h
  185.   
  186.   # Find the source files, if location was not specified.
  187.   if test -z "$srcdir"; then
  188. !   srcdirdefaulted=yes
  189. !   # Try the directory containing this script, then `..'.
  190. !   prog=$0
  191. !   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  192. !   test "X$confdir" = "X$prog" && confdir=.
  193. !   srcdir=$confdir
  194. !   if test ! -r $srcdir/$unique_file; then
  195.       srcdir=..
  196.     fi
  197.   fi
  198. ! if test ! -r $srcdir/$unique_file; then
  199. !   if test x$srcdirdefaulted = xyes; then
  200. !     echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  201.     else
  202. !     echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  203.     fi
  204. -   exit 1
  205.   fi
  206. ! # Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  207. ! # But we can't avoid them for `..', to make subdirectories work.
  208. ! case $srcdir in
  209. !   .|/*|~*) ;;
  210. !   *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  211. ! esac
  212. ! if test -z "$CC"; then
  213. !   echo checking for gcc
  214. !   saveifs="$IFS"; IFS="${IFS}:"
  215. !   for dir in $PATH; do
  216. !     test -z "$dir" && dir=.
  217. !     if test -f $dir/gcc; then
  218. !       CC="gcc"
  219.         break
  220.       fi
  221.     done
  222. !   IFS="$saveifs"
  223.   fi
  224. - test -z "$CC" && CC="cc"
  225.   
  226. ! # Find out if we are using GNU C, under whatever name.
  227. ! cat > conftest.c <<EOF
  228.   #ifdef __GNUC__
  229. !   yes
  230.   #endif
  231.   EOF
  232. ! ${CC-cc} -E conftest.c > conftest.out 2>&1
  233. ! if egrep yes conftest.out >/dev/null 2>&1; then
  234. !   GCC=1 # For later tests.
  235.   fi
  236.   rm -f conftest*
  237.   
  238. ! echo checking how to run the C preprocessor
  239.   if test -z "$CPP"; then
  240. !   CPP='${CC-cc} -E'
  241. !   cat > conftest.c <<EOF
  242. ! #include <stdio.h>
  243.   EOF
  244. ! err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  245. ! if test -z "$err"; then
  246.     :
  247.   else
  248.     CPP=/lib/cpp
  249.   fi
  250.   rm -f conftest*
  251.   fi
  252.   
  253. ! # Make sure to not get the incompatible SysV /etc/install and
  254. ! # /usr/sbin/install, which might be in PATH before a BSD-like install,
  255. ! # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  256. ! # or the AFS install, which mishandles nonexistent args.  (Sigh.)
  257.   if test -z "$INSTALL"; then
  258. !   echo checking for install
  259. !   saveifs="$IFS"; IFS="${IFS}:"
  260. !   for dir in $PATH; do
  261. !     test -z "$dir" && dir=.
  262. !     case $dir in
  263. !     /etc|/usr/sbin|/usr/etc|/usr/afsws/bin) ;;
  264.       *)
  265. !       if test -f $dir/installbsd; then
  266. !     INSTALL="$dir/installbsd -c" # OSF1
  267. !     INSTALL_PROGRAM='$(INSTALL)'
  268. !     INSTALL_DATA='$(INSTALL) -m 644'
  269. !     break
  270. !       fi
  271. !       if test -f $dir/install; then
  272. !     if grep dspmsg $dir/install >/dev/null 2>&1; then
  273. !       : # AIX
  274. !     else
  275. !       INSTALL="$dir/install -c"
  276. !       INSTALL_PROGRAM='$(INSTALL)'
  277. !       INSTALL_DATA='$(INSTALL) -m 644'
  278. !       break
  279.       fi
  280. !       fi
  281.         ;;
  282.       esac
  283.     done
  284. !   IFS="$saveifs"
  285.   fi
  286. ! INSTALL=${INSTALL-cp}
  287. ! INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  288. ! INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  289.   
  290. ! for hdr in string.h
  291. ! do
  292. ! trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  293. ! echo checking for ${hdr}
  294. ! cat > conftest.c <<EOF
  295. ! #include <${hdr}>
  296. ! EOF
  297. ! err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  298. ! if test -z "$err"; then
  299. !   {
  300. ! test -n "$verbose" && \
  301. ! echo '    defining' ${trhdr}
  302. ! DEFS="$DEFS -D${trhdr}=1"
  303. ! }
  304.   
  305.   fi
  306.   rm -f conftest*
  307.   done
  308.   
  309. ! echo checking for unistd.h
  310. ! cat > conftest.c <<EOF
  311. ! #include <unistd.h>
  312. ! EOF
  313. ! err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  314. ! if test -z "$err"; then
  315. !   {
  316. ! test -n "$verbose" && \
  317. ! echo '    defining' HAVE_UNISTD_H
  318. ! DEFS="$DEFS -DHAVE_UNISTD_H=1"
  319. ! }
  320.   fi
  321.   rm -f conftest*
  322.   
  323. ! echo checking for ANSI C header files
  324. ! cat > conftest.c <<EOF
  325.   #include <stdlib.h>
  326.   #include <stdarg.h>
  327.   #include <string.h>
  328.   #include <float.h>
  329.   EOF
  330. ! err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  331. ! if test -z "$err"; then
  332.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  333. ! echo '#include <string.h>' > conftest.c
  334. ! eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  335. ! if egrep "memchr" conftest.out >/dev/null 2>&1; then
  336. !   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  337. ! cat > conftest.c <<EOF
  338.   #include <ctype.h>
  339.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  340.   #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  341. ! #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  342.   int main () { int i; for (i = 0; i < 256; i++)
  343.   if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  344.   exit (0); }
  345.   
  346.   EOF
  347. ! eval $compile
  348.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  349. !   {
  350. ! test -n "$verbose" && \
  351. ! echo '    defining' STDC_HEADERS
  352. ! DEFS="$DEFS -DSTDC_HEADERS=1"
  353. ! }
  354.   fi
  355. - rm -f conftest*
  356.   fi
  357. ! rm -f conftest*
  358.   
  359.   fi
  360. - rm -f conftest*
  361.   
  362. ! if test -n "$prefix"; then
  363. !   test -z "$exec_prefix" && exec_prefix='${prefix}'
  364. !   prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  365. ! fi
  366. ! if test -n "$exec_prefix"; then
  367. !   prsub="$prsub
  368. ! s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%\
  369. ! exec_prefix\\1=\\2$exec_prefix%"
  370.   fi
  371.   
  372. ! trap 'rm -f config.status; exit 1' 1 3 15
  373. ! echo creating config.status
  374. ! rm -f config.status
  375. ! cat > config.status <<EOF
  376.   #!/bin/sh
  377.   # Generated automatically by configure.
  378.   # Run this file to recreate the current configuration.
  379.   # This directory was configured as follows,
  380.   # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  381.   #
  382. ! # $0 $*
  383.   
  384. ! for arg
  385.   do
  386. !   case "\$arg" in
  387. !     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  388. !     exec /bin/sh $0 $* ;;
  389. !     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  390.     esac
  391.   done
  392.   
  393. ! trap 'rm -f Makefile; exit 1' 1 3 15
  394. ! PROGS='$PROGS'
  395. ! CC='$CC'
  396. ! CPP='$CPP'
  397. ! INSTALL='$INSTALL'
  398. ! INSTALL_PROGRAM='$INSTALL_PROGRAM'
  399. ! INSTALL_DATA='$INSTALL_DATA'
  400. ! LIBS='$LIBS'
  401. ! srcdir='$srcdir'
  402. ! DEFS='$DEFS'
  403. ! prefix='$prefix'
  404. ! exec_prefix='$exec_prefix'
  405. ! prsub='$prsub'
  406. ! EOF
  407. ! cat >> config.status <<\EOF
  408. ! top_srcdir=$srcdir
  409. ! for file in .. Makefile; do if [ "x$file" != "x.." ]; then
  410. !   srcdir=$top_srcdir
  411. !   # Remove last slash and all that follows it.  Not all systems have dirname.
  412. !   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  413. !   if test "$dir" != "$file"; then
  414. !     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  415. !     test ! -d $dir && mkdir $dir
  416. !   fi
  417. !   echo creating $file
  418. !   rm -f $file
  419. !   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  420. !   sed -e "
  421. ! $prsub
  422.   s%@PROGS@%$PROGS%g
  423.   s%@CC@%$CC%g
  424.   s%@CPP@%$CPP%g
  425. - s%@INSTALL@%$INSTALL%g
  426.   s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  427.   s%@INSTALL_DATA@%$INSTALL_DATA%g
  428. ! s%@LIBS@%$LIBS%g
  429.   s%@srcdir@%$srcdir%g
  430. ! s%@DEFS@%$DEFS%
  431. ! " $top_srcdir/${file}.in >> $file
  432.   fi; done
  433.   
  434.   exit 0
  435.   EOF
  436. ! chmod +x config.status
  437. ! test -n "$no_create" || ./config.status
  438.   
  439. --- 1,972 ----
  440.   #!/bin/sh
  441.   # Guess values for system-dependent variables and create Makefiles.
  442. ! # Generated automatically using autoconf version 2.1 
  443. ! # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  444. ! #
  445. ! # This configure script is free software; the Free Software Foundation
  446. ! # gives unlimited permission to copy, distribute and modify it.
  447.   
  448. ! # Defaults:
  449. ! ac_help=
  450. ! ac_default_prefix=/gnu
  451. ! # Any additions from configure.in:
  452. ! # Initialize some variables set by options.
  453. ! # The variables have the same names as the options, with
  454. ! # dashes changed to underlines.
  455. ! build=NONE
  456. ! cache_file=./config.cache
  457. ! exec_prefix=NONE
  458. ! host=NONE
  459. ! no_create=
  460. ! nonopt=NONE
  461. ! no_recursion=
  462. ! prefix=NONE
  463. ! program_prefix=NONE
  464. ! program_suffix=NONE
  465. ! program_transform_name=s,x,x,
  466. ! silent=
  467. ! site=
  468. ! srcdir=
  469. ! target=NONE
  470. ! verbose=
  471. ! x_includes=NONE
  472. ! x_libraries=NONE
  473.   
  474. + # Initialize some other variables.
  475. + subdirs=
  476.   
  477. ! ac_prev=
  478. ! for ac_option
  479.   do
  480.   
  481. !   # If the previous option needs an argument, assign it.
  482. !   if test -n "$ac_prev"; then
  483. !     eval "$ac_prev=\$ac_option"
  484. !     ac_prev=
  485. !     continue
  486. !   fi
  487. !   case "$ac_option" in
  488. !   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  489. !   *) ac_optarg= ;;
  490. !   esac
  491. !   # Accept the important Cygnus configure options, so we can diagnose typos.
  492. !   case "$ac_option" in
  493. !   -build | --build | --buil | --bui | --bu | --b)
  494. !     ac_prev=build ;;
  495. !   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  496. !     build="$ac_optarg" ;;
  497. !   -cache-file | --cache-file | --cache-fil | --cache-fi \
  498. !   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  499. !     ac_prev=cache_file ;;
  500. !   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  501. !   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  502. !     cache_file="$ac_optarg" ;;
  503. !   -disable-* | --disable-*)
  504. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  505. !     # Reject names that are not valid shell variable names.
  506. !     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  507. !       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  508. !     fi
  509. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  510. !     eval "enable_${ac_feature}=no" ;;
  511.   
  512. !   -enable-* | --enable-*)
  513. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  514. !     # Reject names that are not valid shell variable names.
  515. !     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  516. !       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  517. !     fi
  518. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  519. !     case "$ac_option" in
  520. !       *=*) ;;
  521. !       *) ac_optarg=yes ;;
  522.       esac
  523. !     eval "enable_${ac_feature}='$ac_optarg'" ;;
  524. !   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  525. !   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  526. !   | --exec | --exe | --ex)
  527. !     ac_prev=exec_prefix ;;
  528. !   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  529. !   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  530. !   | --exec=* | --exe=* | --ex=*)
  531. !     exec_prefix="$ac_optarg" ;;
  532. !   -gas | --gas | --ga | --g)
  533. !     # Obsolete; use --with-gas.
  534. !     with_gas=yes ;;
  535. !   -help | --help | --hel | --he)
  536. !     # Omit some internal or obsolete options to make the list less imposing.
  537. !     # This message is too long to be a string in the A/UX 3.1 sh.
  538. !     cat << EOF
  539. ! Usage: configure [options] [host]
  540. ! Options: [defaults in brackets after descriptions]
  541. ! Configuration:
  542. !   --cache-file=FILE       cache test results in FILE
  543. !   --help                  print this message
  544. !   --no-create             do not create output files
  545. !   --quiet, --silent       do not print \`checking...' messages
  546. !   --version               print the version of autoconf that created configure
  547. ! Directory and file names:
  548. !   --prefix=PREFIX         install architecture-independent files in PREFIX
  549. !                           [$ac_default_prefix]
  550. !   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  551. !                           [same as prefix]
  552. !   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  553. !   --program-prefix=PREFIX prepend PREFIX to installed program names
  554. !   --program-suffix=SUFFIX append SUFFIX to installed program names
  555. !   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  556. ! Host type:
  557. !   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  558. !   --host=HOST             configure for HOST [guessed]
  559. !   --target=TARGET         configure for TARGET [TARGET=HOST]
  560. ! Features and packages:
  561. !   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  562. !   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  563. !   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  564. !   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  565. !   --x-includes=DIR        X include files are in DIR
  566. !   --x-libraries=DIR       X library files are in DIR
  567. ! --enable and --with options recognized:$ac_help
  568. ! EOF
  569. !     exit 0 ;;
  570. !   -host | --host | --hos | --ho)
  571. !     ac_prev=host ;;
  572. !   -host=* | --host=* | --hos=* | --ho=*)
  573. !     host="$ac_optarg" ;;
  574. !   -nfp | --nfp | --nf)
  575. !     # Obsolete; use --without-fp.
  576. !     with_fp=no ;;
  577. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  578. !   | --no-cr | --no-c)
  579. !     no_create=yes ;;
  580. !   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  581. !   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  582. !     no_recursion=yes ;;
  583. !   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  584. !     ac_prev=prefix ;;
  585. !   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  586. !     prefix="$ac_optarg" ;;
  587. !   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  588. !   | --program-pre | --program-pr | --program-p)
  589. !     ac_prev=program_prefix ;;
  590. !   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  591. !   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  592. !     program_prefix="$ac_optarg" ;;
  593. !   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  594. !   | --program-suf | --program-su | --program-s)
  595. !     ac_prev=program_suffix ;;
  596. !   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  597. !   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  598. !     program_suffix="$ac_optarg" ;;
  599. !   -program-transform-name | --program-transform-name \
  600. !   | --program-transform-nam | --program-transform-na \
  601. !   | --program-transform-n | --program-transform- \
  602. !   | --program-transform | --program-transfor \
  603. !   | --program-transfo | --program-transf \
  604. !   | --program-trans | --program-tran \
  605. !   | --progr-tra | --program-tr | --program-t)
  606. !     ac_prev=program_transform_name ;;
  607. !   -program-transform-name=* | --program-transform-name=* \
  608. !   | --program-transform-nam=* | --program-transform-na=* \
  609. !   | --program-transform-n=* | --program-transform-=* \
  610. !   | --program-transform=* | --program-transfor=* \
  611. !   | --program-transfo=* | --program-transf=* \
  612. !   | --program-trans=* | --program-tran=* \
  613. !   | --progr-tra=* | --program-tr=* | --program-t=*)
  614. !     program_transform_name="$ac_optarg" ;;
  615. !   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  616. !   | -silent | --silent | --silen | --sile | --sil)
  617. !     silent=yes ;;
  618. !   -site | --site | --sit)
  619. !     ac_prev=site ;;
  620. !   -site=* | --site=* | --sit=*)
  621. !     site="$ac_optarg" ;;
  622. !   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  623. !     ac_prev=srcdir ;;
  624. !   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  625. !     srcdir="$ac_optarg" ;;
  626. !   -target | --target | --targe | --targ | --tar | --ta | --t)
  627. !     ac_prev=target ;;
  628. !   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  629. !     target="$ac_optarg" ;;
  630. !   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  631. !     verbose=yes ;;
  632. !   -version | --version | --versio | --versi | --vers)
  633. !     echo "configure generated by autoconf version 2.1"
  634. !     exit 0 ;;
  635. !   -with-* | --with-*)
  636. !     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  637. !     # Reject names that are not valid shell variable names.
  638. !     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  639. !       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  640. !     fi
  641. !     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  642. !     case "$ac_option" in
  643. !       *=*) ;;
  644. !       *) ac_optarg=yes ;;
  645. !     esac
  646. !     eval "with_${ac_package}='$ac_optarg'" ;;
  647. !   -without-* | --without-*)
  648. !     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  649. !     # Reject names that are not valid shell variable names.
  650. !     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  651. !       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  652. !     fi
  653. !     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  654. !     eval "with_${ac_package}=no" ;;
  655. !   --x)
  656. !     # Obsolete; use --with-x.
  657. !     with_x=yes ;;
  658. !   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  659. !   | --x-incl | --x-inc | --x-in | --x-i)
  660. !     ac_prev=x_includes ;;
  661. !   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  662. !   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  663. !     x_includes="$ac_optarg" ;;
  664. !   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  665. !   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  666. !     ac_prev=x_libraries ;;
  667. !   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  668. !   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  669. !     x_libraries="$ac_optarg" ;;
  670. !   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  671. !     ;;
  672. !   *) 
  673. !     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  674. !       echo "configure: warning: $ac_option: invalid host type" 1>&2
  675. !     fi
  676. !     if test "x$nonopt" != xNONE; then
  677. !       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  678. !     fi
  679. !     nonopt="$ac_option"
  680. !     ;;
  681. !   esac
  682.   done
  683.   
  684. ! if test -n "$ac_prev"; then
  685. !   { echo "configure: error: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  686. ! fi
  687.   
  688. ! trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  689. ! # File descriptor usage:
  690. ! # 0 unused; standard input
  691. ! # 1 file creation
  692. ! # 2 errors and warnings
  693. ! # 3 unused; some systems may open it to /dev/tty
  694. ! # 4 checking for... messages and results
  695. ! # 5 compiler messages saved in config.log
  696. ! if test "$silent" = yes; then
  697. !   exec 4>/dev/null
  698. ! else
  699. !   exec 4>&1
  700. ! fi
  701. ! exec 5>./config.log
  702. ! echo "\
  703. ! This file contains any messages produced by compilers while
  704. ! running configure, to aid debugging if configure makes a mistake.
  705. ! " 1>&5
  706. ! # Strip out --no-create and --no-recursion so they do not pile up.
  707. ! # Also quote any args containing shell metacharacters.
  708. ! ac_configure_args=
  709. ! for ac_arg
  710. ! do
  711. !   case "$ac_arg" in
  712. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  713. !   | --no-cr | --no-c) ;;
  714. !   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  715. !   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  716. !   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  717. !   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  718. !   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  719. !   esac
  720. ! done
  721. ! # NLS nuisances.
  722. ! # Only set LANG and LC_ALL to C if already set.
  723. ! # These must not be set unconditionally because not all systems understand
  724. ! # e.g. LANG=C (notably SCO).
  725. ! if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  726. ! if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  727. ! # confdefs.h avoids OS command line length limits that DEFS can exceed.
  728. ! rm -rf conftest* confdefs.h
  729. ! # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  730. ! /bin/echo > confdefs.h
  731.   
  732.   # A filename unique to this package, relative to the directory that
  733.   # configure is in, which we can look for to find out if srcdir is correct.
  734. ! ac_unique_file=termcap.h
  735.   
  736.   # Find the source files, if location was not specified.
  737.   if test -z "$srcdir"; then
  738. !   ac_srcdir_defaulted=yes
  739. !   # Try the directory containing this script, then its parent.
  740. !   ac_prog=$0
  741. !   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  742. !   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  743. !   srcdir=$ac_confdir
  744. !   if test ! -r $srcdir/$ac_unique_file; then
  745.       srcdir=..
  746.     fi
  747. + else
  748. +   ac_srcdir_defaulted=no
  749.   fi
  750. ! if test ! -r $srcdir/$ac_unique_file; then
  751. !   if test "$ac_srcdir_defaulted" = yes; then
  752. !     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  753.     else
  754. !     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  755.     fi
  756.   fi
  757. ! srcdir=`/bin/echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  758. ! # Prefer explicitly selected file to automatically selected ones.
  759. ! if test -z "$CONFIG_SITE"; then
  760. !   if test "x$prefix" != xNONE; then
  761. !     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  762. !   else
  763. !     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  764. !   fi
  765. ! fi
  766. ! for ac_site_file in $CONFIG_SITE; do
  767. !   if test -r "$ac_site_file"; then
  768. !     echo "loading site script $ac_site_file"
  769. !     . "$ac_site_file"
  770. !   fi
  771. ! done
  772. ! if test -r "$cache_file"; then
  773. !   echo "loading cache $cache_file"
  774. !   . $cache_file
  775. ! else
  776. !   echo "creating cache $cache_file"
  777. !   > $cache_file
  778. ! fi
  779. ! ac_ext=c
  780. ! # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  781. ! ac_cpp='$CPP $CPPFLAGS'
  782. ! ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
  783. ! ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  784. ! if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  785. !   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  786. !   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  787. !     ac_n= ac_c='
  788. ! ' ac_t='    '
  789. !   else
  790. !     ac_n=-n ac_c= ac_t=
  791. !   fi
  792. ! else
  793. !   ac_n= ac_c='\c' ac_t=
  794. ! fi
  795. ! # Extract the first word of "gcc", so it can be a program name with args.
  796. ! set dummy gcc; ac_word=$2
  797. ! /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  798. ! if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  799. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  800. ! else
  801. !   if test -n "$CC"; then
  802. !   ac_cv_prog_CC="$CC" # Let the user override the test.
  803. ! else
  804. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  805. !   for ac_dir in $PATH; do
  806. !     test -z "$ac_dir" && ac_dir=.
  807. !     if test -f $ac_dir/$ac_word; then
  808. !       ac_cv_prog_CC="gcc"
  809.         break
  810.       fi
  811.     done
  812. !   IFS="$ac_save_ifs"
  813. !   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  814. ! fi
  815. ! fi
  816. ! CC="$ac_cv_prog_CC"
  817. ! if test -n "$CC"; then
  818. !   /bin/echo "$ac_t""$CC" 1>&4
  819. ! else
  820. !   /bin/echo "$ac_t""no" 1>&4
  821.   fi
  822.   
  823. ! /bin/echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
  824. ! if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  825. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  826. ! else
  827. !   cat > conftest.c <<EOF
  828.   #ifdef __GNUC__
  829. !   yes;
  830.   #endif
  831.   EOF
  832. ! if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  833. !   ac_cv_prog_gcc=yes
  834. ! else
  835. !   ac_cv_prog_gcc=no
  836. ! fi
  837. ! fi
  838. ! /bin/echo "$ac_t""$ac_cv_prog_gcc" 1>&4
  839. ! if test $ac_cv_prog_gcc = yes; then
  840. !   GCC=yes
  841. !   if test "${CFLAGS+set}" != set; then
  842. !     /bin/echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
  843. ! if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  844. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  845. ! else
  846. !   echo 'void f(){}' > conftest.c
  847. ! if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  848. !   ac_cv_prog_gcc_g=yes
  849. ! else
  850. !   ac_cv_prog_gcc_g=no
  851.   fi
  852.   rm -f conftest*
  853.   
  854. ! fi
  855. !     /bin/echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
  856. !     if test $ac_cv_prog_gcc_g = yes; then
  857. !       # Amiga hack - suppress automatically using -g for now
  858. !       # Also default to using -O2
  859. !       CFLAGS="-O2"
  860. !     else
  861. !       CFLAGS="-O2"
  862. !     fi
  863. !   fi
  864. ! else
  865. !   GCC=
  866. !   test "${CFLAGS+set}" = set || CFLAGS="-g"
  867. ! fi
  868. ! /bin/echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
  869. ! # On Suns, sometimes $CPP names a directory.
  870. ! if test -n "$CPP" && test -d "$CPP"; then
  871. !   CPP=
  872. ! fi
  873.   if test -z "$CPP"; then
  874. ! if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  875. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  876. ! else
  877. !     # This must be in double quotes, not single quotes, because CPP may get
  878. !   # substituted into the Makefile and "${CC-cc}" will confuse make.
  879. !   CPP="${CC-cc} -E"
  880. !   # On the NeXT, cc -E runs the code through the compiler's parser,
  881. !   # not just through cpp.
  882. !   cat > conftest.$ac_ext <<EOF
  883. ! #line 491 "configure"
  884. ! #include "confdefs.h"
  885. ! #include <assert.h>
  886. ! Syntax Error
  887. ! EOF
  888. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  889. ! ac_err=`grep -v '^ *+' conftest.out`
  890. ! if test -z "$ac_err"; then
  891. !   :
  892. ! else
  893. !   /bin/echo "$ac_err" >&5
  894. !   rm -rf conftest*
  895. !   CPP="${CC-cc} -E -traditional-cpp"
  896. !   cat > conftest.$ac_ext <<EOF
  897. ! #line 505 "configure"
  898. ! #include "confdefs.h"
  899. ! #include <assert.h>
  900. ! Syntax Error
  901.   EOF
  902. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  903. ! ac_err=`grep -v '^ *+' conftest.out`
  904. ! if test -z "$ac_err"; then
  905.     :
  906.   else
  907. +   /bin/echo "$ac_err" >&5
  908. +   rm -rf conftest*
  909.     CPP=/lib/cpp
  910.   fi
  911.   rm -f conftest*
  912.   fi
  913. + rm -f conftest*
  914. +   ac_cv_prog_CPP="$CPP"
  915. + fi
  916. + fi
  917. + CPP="$ac_cv_prog_CPP"
  918. + /bin/echo "$ac_t""$CPP" 1>&4
  919.   
  920. ! ac_aux_dir=
  921. ! for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  922. !   if test -f $ac_dir/install-sh; then
  923. !     ac_aux_dir=$ac_dir
  924. !     ac_install_sh="$ac_aux_dir/install-sh -c"
  925. !     break
  926. !   elif test -f $ac_dir/install.sh; then
  927. !     ac_aux_dir=$ac_dir
  928. !     ac_install_sh="$ac_aux_dir/install.sh -c"
  929. !     break
  930. !   fi
  931. ! done
  932. ! if test -z "$ac_aux_dir"; then
  933. !   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  934. ! fi
  935. ! ac_config_guess=$ac_aux_dir/config.guess
  936. ! ac_config_sub=$ac_aux_dir/config.sub
  937. ! ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  938. ! # Find a good install program.  We prefer a C program (faster),
  939. ! # so one script is as good as another.  But avoid the broken or
  940. ! # incompatible versions:
  941. ! # SysV /etc/install, /usr/sbin/install
  942. ! # SunOS /usr/etc/install
  943. ! # IRIX /sbin/install
  944. ! # AIX /bin/install
  945. ! # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  946. ! # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  947. ! # ./install, which can be erroneously created by make from ./install.sh.
  948. ! /bin/echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  949.   if test -z "$INSTALL"; then
  950. ! if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  951. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  952. ! else
  953. !     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  954. !   for ac_dir in $PATH; do
  955. !     case "$ac_dir" in
  956. !     ''|.|/gnu/etc) ;;
  957.       *)
  958. !       # OSF1 and SCO ODT 3.0 have their own names for install.
  959. !       for ac_prog in ginstall installbsd scoinst install; do
  960. !         if test -f $ac_dir/$ac_prog; then
  961. !       if test $ac_prog = install &&
  962. !             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  963. !         # AIX install.  It has an incompatible calling convention.
  964. !         # OSF/1 installbsd also uses dspmsg, but is usable.
  965. !         :
  966. !       else
  967. !         ac_cv_path_install="$ac_dir/$ac_prog -c"
  968. !         break 2
  969. !       fi
  970.       fi
  971. !       done
  972.         ;;
  973.       esac
  974.     done
  975. !   IFS="$ac_save_ifs"
  976. !   # As a last resort, use the slow shell script.
  977. !   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  978. ! fi
  979. !   INSTALL="$ac_cv_path_install"
  980.   fi
  981. ! /bin/echo "$ac_t""$INSTALL" 1>&4
  982.   
  983. ! # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  984. ! # It thinks the first close brace ends the variable substitution.
  985. ! test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  986.   
  987. + test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  988. + for ac_hdr in string.h
  989. + do
  990. + ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  991. + /bin/echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  992. + if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  993. +   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  994. + else
  995. +   cat > conftest.$ac_ext <<EOF
  996. + #line 606 "configure"
  997. + #include "confdefs.h"
  998. + #include <$ac_hdr>
  999. + EOF
  1000. + eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1001. + ac_err=`grep -v '^ *+' conftest.out`
  1002. + if test -z "$ac_err"; then
  1003. +   rm -rf conftest*
  1004. +   eval "ac_cv_header_$ac_safe=yes"
  1005. + else
  1006. +   /bin/echo "$ac_err" >&5
  1007. +   rm -rf conftest*
  1008. +   eval "ac_cv_header_$ac_safe=no"
  1009.   fi
  1010.   rm -f conftest*
  1011. + fi
  1012. + if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1013. +   /bin/echo "$ac_t""yes" 1>&4
  1014. +     ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1015. +   cat >> confdefs.h <<EOF
  1016. + #define $ac_tr_hdr 1
  1017. + EOF
  1018. +  
  1019. + else
  1020. +   /bin/echo "$ac_t""no" 1>&4
  1021. + fi
  1022.   done
  1023.   
  1024. ! for ac_hdr in unistd.h
  1025. ! do
  1026. ! ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  1027. ! /bin/echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  1028. ! if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1029. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1030. ! else
  1031. !   cat > conftest.$ac_ext <<EOF
  1032. ! #line 642 "configure"
  1033. ! #include "confdefs.h"
  1034. ! #include <$ac_hdr>
  1035. ! EOF
  1036. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1037. ! ac_err=`grep -v '^ *+' conftest.out`
  1038. ! if test -z "$ac_err"; then
  1039. !   rm -rf conftest*
  1040. !   eval "ac_cv_header_$ac_safe=yes"
  1041. ! else
  1042. !   /bin/echo "$ac_err" >&5
  1043. !   rm -rf conftest*
  1044. !   eval "ac_cv_header_$ac_safe=no"
  1045.   fi
  1046.   rm -f conftest*
  1047. + fi
  1048. + if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1049. +   /bin/echo "$ac_t""yes" 1>&4
  1050. +     ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1051. +   cat >> confdefs.h <<EOF
  1052. + #define $ac_tr_hdr 1
  1053. + EOF
  1054. +  
  1055. + else
  1056. +   /bin/echo "$ac_t""no" 1>&4
  1057. + fi
  1058. + done
  1059.   
  1060. ! # If we cannot run a trivial program, we must be cross compiling.
  1061. ! /bin/echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  1062. ! if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  1063. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1064. ! else
  1065. !   if test "$cross_compiling" = yes; then
  1066. !   ac_cv_cross=yes
  1067. ! else
  1068. ! cat > conftest.$ac_ext <<EOF
  1069. ! #line 679 "configure"
  1070. ! #include "confdefs.h"
  1071. ! main(){return(0);}
  1072. ! EOF
  1073. ! eval $ac_link
  1074. ! if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1075. !   ac_cv_c_cross=no
  1076. ! else
  1077. !   ac_cv_c_cross=yes
  1078. ! fi
  1079. ! fi
  1080. ! rm -fr conftest*
  1081. ! fi
  1082. ! cross_compiling=$ac_cv_c_cross
  1083. ! /bin/echo "$ac_t""$ac_cv_c_cross" 1>&4
  1084. ! /bin/echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
  1085. ! if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  1086. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1087. ! else
  1088. !   cat > conftest.$ac_ext <<EOF
  1089. ! #line 700 "configure"
  1090. ! #include "confdefs.h"
  1091.   #include <stdlib.h>
  1092.   #include <stdarg.h>
  1093.   #include <string.h>
  1094.   #include <float.h>
  1095.   EOF
  1096. ! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1097. ! ac_err=`grep -v '^ *+' conftest.out`
  1098. ! if test -z "$ac_err"; then
  1099. !   rm -rf conftest*
  1100. !   ac_cv_header_stdc=yes
  1101. ! else
  1102. !   /bin/echo "$ac_err" >&5
  1103. !   rm -rf conftest*
  1104. !   ac_cv_header_stdc=no
  1105. ! fi
  1106. ! rm -f conftest*
  1107. ! if test $ac_cv_header_stdc = yes; then
  1108.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1109. ! cat > conftest.$ac_ext <<EOF
  1110. ! #line 722 "configure"
  1111. ! #include "confdefs.h"
  1112. ! #include <string.h>
  1113. ! EOF
  1114. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1115. !   egrep "memchr" >/dev/null 2>&1; then
  1116. !   :
  1117. ! else
  1118. !   rm -rf conftest*
  1119. !   ac_cv_header_stdc=no
  1120. ! fi
  1121. ! rm -f conftest*
  1122. ! fi
  1123. ! if test $ac_cv_header_stdc = yes; then
  1124. !   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1125. ! cat > conftest.$ac_ext <<EOF
  1126. ! #line 740 "configure"
  1127. ! #include "confdefs.h"
  1128. ! #include <stdlib.h>
  1129. ! EOF
  1130. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1131. !   egrep "free" >/dev/null 2>&1; then
  1132. !   :
  1133. ! else
  1134. !   rm -rf conftest*
  1135. !   ac_cv_header_stdc=no
  1136. ! fi
  1137. ! rm -f conftest*
  1138. ! fi
  1139. ! if test $ac_cv_header_stdc = yes; then
  1140. !   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1141. ! if test "$cross_compiling" = yes; then
  1142. !   ac_cv_header_stdc=no
  1143. ! else
  1144. ! cat > conftest.$ac_ext <<EOF
  1145. ! #line 761 "configure"
  1146. ! #include "confdefs.h"
  1147.   #include <ctype.h>
  1148.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1149.   #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1150. ! #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1151.   int main () { int i; for (i = 0; i < 256; i++)
  1152.   if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1153.   exit (0); }
  1154.   
  1155.   EOF
  1156. ! eval $ac_link
  1157.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1158. !   :
  1159. ! else
  1160. !   ac_cv_header_stdc=no
  1161.   fi
  1162.   fi
  1163. ! rm -fr conftest*
  1164. ! fi
  1165. ! fi
  1166. ! /bin/echo "$ac_t""$ac_cv_header_stdc" 1>&4
  1167. ! if test $ac_cv_header_stdc = yes; then
  1168. !   cat >> confdefs.h <<\EOF
  1169. ! #define STDC_HEADERS 1
  1170. ! EOF
  1171.   
  1172.   fi
  1173.   
  1174. ! trap '' 1 2 15
  1175. ! if test -w $cache_file; then
  1176. ! echo "updating cache $cache_file"
  1177. ! cat > $cache_file <<\EOF
  1178. ! # This file is a shell script that caches the results of configure
  1179. ! # tests run on this system so they can be shared between configure
  1180. ! # scripts and configure runs.  It is not useful on other systems.
  1181. ! # If it contains results you don't want to keep, you may remove or edit it.
  1182. ! #
  1183. ! # By default, configure uses ./config.cache as the cache file,
  1184. ! # creating it if it does not exist already.  You can give configure
  1185. ! # the --cache-file=FILE option to use a different cache file; that is
  1186. ! # what configure does when it calls configure scripts in
  1187. ! # subdirectories, so they share the cache.
  1188. ! # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1189. ! # config.status only pays attention to the cache file if you give it the
  1190. ! # --recheck option to rerun configure.
  1191. ! #
  1192. ! EOF
  1193. ! # Ultrix sh set writes to stderr and can't be redirected directly.
  1194. ! (set) 2>&1 |
  1195. !   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
  1196. !   >> $cache_file
  1197. ! else
  1198. ! echo "not updating unwritable cache $cache_file"
  1199.   fi
  1200.   
  1201. ! trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  1202. ! test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1203. ! # Let make expand exec_prefix.
  1204. ! test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1205. ! # Any assignment to VPATH causes Sun make to only execute
  1206. ! # the first set of double-colon rules, so remove it if not needed.
  1207. ! # If there is a colon in the path, we need to keep it.
  1208. ! if test "x$srcdir" = x.; then
  1209. !   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1210. ! fi
  1211. ! trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1212. ! # Transform confdefs.h into DEFS.
  1213. ! # Protect against shell expansion while executing Makefile rules.
  1214. ! # Protect against Makefile macro expansion.
  1215. ! cat > conftest.defs <<\EOF
  1216. ! s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  1217. ! s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  1218. ! s%\[%\\&%g
  1219. ! s%\]%\\&%g
  1220. ! s%\$%$$%g
  1221. ! EOF
  1222. ! DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1223. ! rm -f conftest.defs
  1224. ! # Without the "./", some shells look in PATH for config.status.
  1225. ! : ${CONFIG_STATUS=./config.status}
  1226. ! echo creating $CONFIG_STATUS
  1227. ! # Some systems, like AmigaDOS, won't allow you to remove a script that is
  1228. ! # being executed, so just move it out of the way instead.
  1229. ! if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1230. ! cat > $CONFIG_STATUS <<EOF
  1231.   #!/bin/sh
  1232.   # Generated automatically by configure.
  1233.   # Run this file to recreate the current configuration.
  1234.   # This directory was configured as follows,
  1235.   # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1236.   #
  1237. ! # $0 $ac_configure_args
  1238. ! #
  1239. ! # Compiler output produced by configure, useful for debugging
  1240. ! # configure, is in ./config.log if it exists.
  1241.   
  1242. ! ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1243. ! for ac_option
  1244.   do
  1245. !   case "\$ac_option" in
  1246. !   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1247. !     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1248. !     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1249. !   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1250. !     /bin/echo "$CONFIG_STATUS generated by autoconf version 2.1"
  1251. !     exit 0 ;;
  1252. !   -help | --help | --hel | --he | --h)
  1253. !     echo "\$ac_cs_usage"; exit 0 ;;
  1254. !   *) echo "\$ac_cs_usage"; exit 1 ;;
  1255.     esac
  1256.   done
  1257.   
  1258. ! ac_given_srcdir=$srcdir
  1259. ! ac_given_INSTALL="$INSTALL"
  1260. ! trap 'rm -f Makefile tests/Makefile; exit 1' 1 2 15
  1261. ! # Protect against being on the right side of a sed subst in config.status. 
  1262. ! sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  1263. !  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  1264. ! $ac_vpsub
  1265. ! $extrasub
  1266. ! s%@CFLAGS@%$CFLAGS%g
  1267. ! s%@CPPFLAGS@%$CPPFLAGS%g
  1268. ! s%@CXXFLAGS@%$CXXFLAGS%g
  1269. ! s%@DEFS@%$DEFS%g
  1270. ! s%@LDFLAGS@%$LDFLAGS%g
  1271. ! s%@LIBS@%$LIBS%g
  1272. ! s%@exec_prefix@%$exec_prefix%g
  1273. ! s%@prefix@%$prefix%g
  1274. ! s%@program_transform_name@%$program_transform_name%g
  1275.   s%@PROGS@%$PROGS%g
  1276.   s%@CC@%$CC%g
  1277.   s%@CPP@%$CPP%g
  1278.   s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1279.   s%@INSTALL_DATA@%$INSTALL_DATA%g
  1280. ! CEOF
  1281. ! EOF
  1282. ! cat >> $CONFIG_STATUS <<EOF
  1283. ! CONFIG_FILES=\${CONFIG_FILES-"Makefile tests/Makefile"}
  1284. ! EOF
  1285. ! cat >> $CONFIG_STATUS <<\EOF
  1286. ! for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1287. !   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1288. !   case "$ac_file" in
  1289. !   *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
  1290. !        ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
  1291. !   *) ac_file_in="${ac_file}.in" ;;
  1292. !   esac
  1293. !   # Adjust relative srcdir, etc. for subdirectories.
  1294. !   # Remove last slash and all that follows it.  Not all systems have dirname.
  1295. !   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1296. !   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1297. !     # The file is in a subdirectory.
  1298. !     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1299. !     ac_dir_suffix="/$ac_dir"
  1300. !     # A "../" for each directory in $ac_dir_suffix.
  1301. !     ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1302. !   else
  1303. !     ac_dir_suffix= ac_dots=
  1304. !   fi
  1305. !   case "$ac_given_srcdir" in
  1306. !   .)  srcdir=.
  1307. !       if test -z "$ac_dots"; then top_srcdir=.
  1308. !       else top_srcdir=`/bin/echo $ac_dots|sed 's%/$%%'`; fi ;;
  1309. !   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1310. !   *) # Relative path.
  1311. !     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1312. !     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1313. !   esac
  1314. !   case "$ac_given_INSTALL" in
  1315. !   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1316. !   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1317. !   esac
  1318. !   echo creating "$ac_file"
  1319. !   rm -f "$ac_file"
  1320. !   configure_input="Generated automatically from `/bin/echo $ac_file_in|sed 's%.*/%%'` by configure."
  1321. !   case "$ac_file" in
  1322. !   *Makefile*) ac_comsub="1i\\
  1323. ! # $configure_input" ;;
  1324. !   *) ac_comsub= ;;
  1325. !   esac
  1326. !   sed -e "$ac_comsub
  1327. ! s%@configure_input@%$configure_input%g
  1328.   s%@srcdir@%$srcdir%g
  1329. ! s%@top_srcdir@%$top_srcdir%g
  1330. ! s%@INSTALL@%$INSTALL%g
  1331. ! " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1332.   fi; done
  1333. + rm -f conftest.subs
  1334.   
  1335.   exit 0
  1336.   EOF
  1337. ! chmod +x $CONFIG_STATUS
  1338. ! rm -fr confdefs* $ac_clean_files
  1339. ! test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
  1340.   
  1341. diff -rc --new-file termcap-1.2/configure.in /gnu/src/amiga/termcap-1.2/configure.in
  1342. *** termcap-1.2/configure.in    Wed Dec  9 02:57:13 1992
  1343. --- /gnu/src/amiga/termcap-1.2/configure.in    Wed Jan 11 11:57:17 1995
  1344. ***************
  1345. *** 5,10 ****
  1346.   AC_PROG_CPP
  1347.   AC_PROG_INSTALL
  1348.   AC_HAVE_HEADERS(string.h)
  1349. ! AC_UNISTD_H
  1350.   AC_STDC_HEADERS
  1351. ! AC_OUTPUT(Makefile)
  1352. --- 5,10 ----
  1353.   AC_PROG_CPP
  1354.   AC_PROG_INSTALL
  1355.   AC_HAVE_HEADERS(string.h)
  1356. ! AC_HAVE_HEADERS(unistd.h)
  1357.   AC_STDC_HEADERS
  1358. ! AC_OUTPUT(Makefile tests/Makefile)
  1359. diff -rc --new-file termcap-1.2/install.sh /gnu/src/amiga/termcap-1.2/install.sh
  1360. *** termcap-1.2/install.sh    Thu Jan  1 00:00:00 1970
  1361. --- /gnu/src/amiga/termcap-1.2/install.sh    Wed Jan 11 12:01:21 1995
  1362. ***************
  1363. *** 0 ****
  1364. --- 1,119 ----
  1365. + #!/bin/sh
  1366. + #
  1367. + # install - install a program, script, or datafile
  1368. + # This comes from X11R5; it is not part of GNU.
  1369. + #
  1370. + # $XConsortium: install.sh,v 1.2 89/12/18 14:47:22 jim Exp $
  1371. + #
  1372. + # This script is compatible with the BSD install script, but was written
  1373. + # from scratch.
  1374. + #
  1375. + # set DOITPROG to echo to test this script
  1376. + # Don't use :- since 4.3BSD and earlier shells don't like it.
  1377. + doit="${DOITPROG-}"
  1378. + # put in absolute paths if you don't have them in your path; or use env. vars.
  1379. + mvprog="${MVPROG-mv}"
  1380. + cpprog="${CPPROG-cp}"
  1381. + chmodprog="${CHMODPROG-chmod}"
  1382. + chownprog="${CHOWNPROG-chown}"
  1383. + chgrpprog="${CHGRPPROG-chgrp}"
  1384. + stripprog="${STRIPPROG-strip}"
  1385. + rmprog="${RMPROG-rm}"
  1386. + instcmd="$mvprog"
  1387. + chmodcmd=""
  1388. + chowncmd=""
  1389. + chgrpcmd=""
  1390. + stripcmd=""
  1391. + rmcmd="$rmprog -f"
  1392. + mvcmd="$mvprog"
  1393. + src=""
  1394. + dst=""
  1395. + while [ x"$1" != x ]; do
  1396. +     case $1 in
  1397. +     -c) instcmd="$cpprog"
  1398. +         shift
  1399. +         continue;;
  1400. +     -m) chmodcmd="$chmodprog $2"
  1401. +         shift
  1402. +         shift
  1403. +         continue;;
  1404. +     -o) chowncmd="$chownprog $2"
  1405. +         shift
  1406. +         shift
  1407. +         continue;;
  1408. +     -g) chgrpcmd="$chgrpprog $2"
  1409. +         shift
  1410. +         shift
  1411. +         continue;;
  1412. +     -s) stripcmd="$stripprog"
  1413. +         shift
  1414. +         continue;;
  1415. +     *)  if [ x"$src" = x ]
  1416. +         then
  1417. +         src=$1
  1418. +         else
  1419. +         dst=$1
  1420. +         fi
  1421. +         shift
  1422. +         continue;;
  1423. +     esac
  1424. + done
  1425. + if [ x"$src" = x ]
  1426. + then
  1427. +     echo "install:  no input file specified"
  1428. +     exit 1
  1429. + fi
  1430. + if [ x"$dst" = x ]
  1431. + then
  1432. +     echo "install:  no destination specified"
  1433. +     exit 1
  1434. + fi
  1435. + # If destination is a directory, append the input filename; if your system
  1436. + # does not like double slashes in filenames, you may need to add some logic
  1437. + if [ -d $dst ]
  1438. + then
  1439. +     dst="$dst"/`basename $src`
  1440. + fi
  1441. + # Make a temp file name in the proper directory.
  1442. + dstdir=`dirname $dst`
  1443. + dsttmp=$dstdir/#inst.$$#
  1444. + # Move or copy the file name to the temp name
  1445. + $doit $instcmd $src $dsttmp
  1446. + # and set any options; do chmod last to preserve setuid bits
  1447. + if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; fi
  1448. + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; fi
  1449. + if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; fi
  1450. + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; fi
  1451. + # Now rename the file to the real destination.
  1452. + $doit $rmcmd $dst
  1453. + $doit $mvcmd $dsttmp $dst
  1454. + exit 0
  1455. diff -rc --new-file termcap-1.2/tests/Makefile.in /gnu/src/amiga/termcap-1.2/tests/Makefile.in
  1456. *** termcap-1.2/tests/Makefile.in    Thu Jan  1 00:00:00 1970
  1457. --- /gnu/src/amiga/termcap-1.2/tests/Makefile.in    Wed Jan 11 11:56:38 1995
  1458. ***************
  1459. *** 0 ****
  1460. --- 1,35 ----
  1461. + #### Start of system configuration section. ####
  1462. + srcdir =    @srcdir@
  1463. + VPATH =        @srcdir@
  1464. + CC =        @CC@
  1465. + CFLAGS =    @CFLAGS@
  1466. + #### End system configuration section ####
  1467. + OTHER_CFLAGS =    -I$(srcdir)
  1468. + ALL_CFLAGS =    $(OTHER_CFLAGS) $(CFLAGS)
  1469. + .c.o:
  1470. +         $(CC) -c $(ALL_CFLAGS) $<
  1471. + all :        tc1 tc2 tc3
  1472. + tc1 :        tc1.o
  1473. +         $(CC) -o tc1 tc1.o ../libtermcap.a
  1474. + tc2 :        tc2.o
  1475. +         $(CC) -o tc2 tc2.o ../libtermcap.a
  1476. + tc3 :        tc3.o
  1477. +         $(CC) -o tc3 tc3.o ../libtermcap.a
  1478. + clean:
  1479. +         rm -f *! *~
  1480. + clobber:    clean
  1481. +         rm -f tc1 tc2 tc3 *.o
  1482. diff -rc --new-file termcap-1.2/tests/tc1.c /gnu/src/amiga/termcap-1.2/tests/tc1.c
  1483. *** termcap-1.2/tests/tc1.c    Thu Jan  1 00:00:00 1970
  1484. --- /gnu/src/amiga/termcap-1.2/tests/tc1.c    Wed Jan 11 11:56:38 1995
  1485. ***************
  1486. *** 0 ****
  1487. --- 1,63 ----
  1488. + /*-
  1489. +  * Copyright (c) 1983, 1993
  1490. +  *    The Regents of the University of California.  All rights reserved.
  1491. +  *
  1492. +  * Redistribution and use in source and binary forms, with or without
  1493. +  * modification, are permitted provided that the following conditions
  1494. +  * are met:
  1495. +  * 1. Redistributions of source code must retain the above copyright
  1496. +  *    notice, this list of conditions and the following disclaimer.
  1497. +  * 2. Redistributions in binary form must reproduce the above copyright
  1498. +  *    notice, this list of conditions and the following disclaimer in the
  1499. +  *    documentation and/or other materials provided with the distribution.
  1500. +  * 3. All advertising materials mentioning features or use of this software
  1501. +  *    must display the following acknowledgement:
  1502. +  *    This product includes software developed by the University of
  1503. +  *    California, Berkeley and its contributors.
  1504. +  * 4. Neither the name of the University nor the names of its contributors
  1505. +  *    may be used to endorse or promote products derived from this software
  1506. +  *    without specific prior written permission.
  1507. +  *
  1508. +  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1509. +  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1510. +  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1511. +  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1512. +  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1513. +  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1514. +  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1515. +  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1516. +  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1517. +  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1518. +  * SUCH DAMAGE.
  1519. +  */
  1520. + #ifndef lint
  1521. + static char copyright[] =
  1522. + "@(#) Copyright (c) 1983, 1993\n\
  1523. +     The Regents of the University of California.  All rights reserved.\n";
  1524. + #endif /* not lint */
  1525. + #ifndef lint
  1526. + static char sccsid[] = "@(#)tc1.c    8.1 (Berkeley) 6/4/93";
  1527. + #endif /* not lint */
  1528. + /*
  1529. +  * tc1 [term]
  1530. +  * dummy program to test termlib.
  1531. +  * gets entry, counts it, and prints it.
  1532. +  */
  1533. + #include <stdio.h>
  1534. + char buf[1024];
  1535. + char *getenv();
  1536. + main(argc, argv) char **argv; {
  1537. +     char *p;
  1538. +     int rc;
  1539. +     if (argc < 2)
  1540. +         p = getenv("TERM");
  1541. +     else
  1542. +         p = argv[1];
  1543. +     rc = tgetent(buf,p);
  1544. +     printf("tgetent returns %d, len=%d, text=\n'%s'\n",rc,strlen(buf),buf);
  1545. + }
  1546. diff -rc --new-file termcap-1.2/tests/tc2.c /gnu/src/amiga/termcap-1.2/tests/tc2.c
  1547. *** termcap-1.2/tests/tc2.c    Thu Jan  1 00:00:00 1970
  1548. --- /gnu/src/amiga/termcap-1.2/tests/tc2.c    Wed Jan 11 11:56:38 1995
  1549. ***************
  1550. *** 0 ****
  1551. --- 1,90 ----
  1552. + /*-
  1553. +  * Copyright (c) 1983, 1993
  1554. +  *    The Regents of the University of California.  All rights reserved.
  1555. +  *
  1556. +  * Redistribution and use in source and binary forms, with or without
  1557. +  * modification, are permitted provided that the following conditions
  1558. +  * are met:
  1559. +  * 1. Redistributions of source code must retain the above copyright
  1560. +  *    notice, this list of conditions and the following disclaimer.
  1561. +  * 2. Redistributions in binary form must reproduce the above copyright
  1562. +  *    notice, this list of conditions and the following disclaimer in the
  1563. +  *    documentation and/or other materials provided with the distribution.
  1564. +  * 3. All advertising materials mentioning features or use of this software
  1565. +  *    must display the following acknowledgement:
  1566. +  *    This product includes software developed by the University of
  1567. +  *    California, Berkeley and its contributors.
  1568. +  * 4. Neither the name of the University nor the names of its contributors
  1569. +  *    may be used to endorse or promote products derived from this software
  1570. +  *    without specific prior written permission.
  1571. +  *
  1572. +  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1573. +  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1574. +  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1575. +  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1576. +  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1577. +  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1578. +  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1579. +  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1580. +  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1581. +  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1582. +  * SUCH DAMAGE.
  1583. +  */
  1584. + #ifndef lint
  1585. + static char copyright[] =
  1586. + "@(#) Copyright (c) 1983, 1993\n\
  1587. +     The Regents of the University of California.  All rights reserved.\n";
  1588. + #endif /* not lint */
  1589. + #ifndef lint
  1590. + static char sccsid[] = "@(#)tc2.c    8.1 (Berkeley) 6/4/93";
  1591. + #endif /* not lint */
  1592. + /*
  1593. +  * tc2 [term]
  1594. +  * Dummy program to test out termlib.
  1595. +  * Commands are "tcc\n" where t is type (s for string, f for flag,
  1596. +  * or n for number) and cc is the name of the capability.
  1597. +  */
  1598. + #include <stdio.h>
  1599. + char buf[1024];
  1600. + char *getenv(), *tgetstr();
  1601. + main(argc, argv) char **argv; {
  1602. +     char *p, *q;
  1603. +     int rc;
  1604. +     char b[3], c;
  1605. +     char area[200];
  1606. +     if (argc < 2)
  1607. +         p = getenv("TERM");
  1608. +     else
  1609. +         p = argv[1];
  1610. +     rc = tgetent(buf,p);
  1611. +     for (;;) {
  1612. +         c = getchar();
  1613. +         if (c < 0)
  1614. +             exit(0);
  1615. +         b[0] = getchar();
  1616. +         if (b[0] < ' ')
  1617. +             exit(0);
  1618. +         b[1] = getchar();
  1619. +         b[2] = 0;
  1620. +         getchar();
  1621. +         switch(c) {
  1622. +             case 'f':
  1623. +                 printf("%s: %d\n",b,tgetflag(b));
  1624. +                 break;
  1625. +             case 'n':
  1626. +                 printf("%s: %d\n",b,tgetnum(b));
  1627. +                 break;
  1628. +             case 's':
  1629. +                 q = area;
  1630. +                 printf("%s: %s\n",b,tgetstr(b,&q));
  1631. +                 break;
  1632. +             default:
  1633. +                 exit(0);
  1634. +         }
  1635. +     }
  1636. + }
  1637. diff -rc --new-file termcap-1.2/tests/tc3.c /gnu/src/amiga/termcap-1.2/tests/tc3.c
  1638. *** termcap-1.2/tests/tc3.c    Thu Jan  1 00:00:00 1970
  1639. --- /gnu/src/amiga/termcap-1.2/tests/tc3.c    Wed Jan 11 11:56:38 1995
  1640. ***************
  1641. *** 0 ****
  1642. --- 1,112 ----
  1643. + /*-
  1644. +  * Copyright (c) 1983, 1993
  1645. +  *    The Regents of the University of California.  All rights reserved.
  1646. +  *
  1647. +  * Redistribution and use in source and binary forms, with or without
  1648. +  * modification, are permitted provided that the following conditions
  1649. +  * are met:
  1650. +  * 1. Redistributions of source code must retain the above copyright
  1651. +  *    notice, this list of conditions and the following disclaimer.
  1652. +  * 2. Redistributions in binary form must reproduce the above copyright
  1653. +  *    notice, this list of conditions and the following disclaimer in the
  1654. +  *    documentation and/or other materials provided with the distribution.
  1655. +  * 3. All advertising materials mentioning features or use of this software
  1656. +  *    must display the following acknowledgement:
  1657. +  *    This product includes software developed by the University of
  1658. +  *    California, Berkeley and its contributors.
  1659. +  * 4. Neither the name of the University nor the names of its contributors
  1660. +  *    may be used to endorse or promote products derived from this software
  1661. +  *    without specific prior written permission.
  1662. +  *
  1663. +  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1664. +  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1665. +  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1666. +  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1667. +  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1668. +  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1669. +  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1670. +  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1671. +  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1672. +  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1673. +  * SUCH DAMAGE.
  1674. +  */
  1675. + #ifndef lint
  1676. + static char copyright[] =
  1677. + "@(#) Copyright (c) 1983, 1993\n\
  1678. +     The Regents of the University of California.  All rights reserved.\n";
  1679. + #endif /* not lint */
  1680. + #ifndef lint
  1681. + static char sccsid[] = "@(#)tc3.c    8.1 (Berkeley) 6/4/93";
  1682. + #endif /* not lint */
  1683. + /*
  1684. +  * tc3 [term]
  1685. +  * Dummy program to test out termlib.  Input two numbers (row and col)
  1686. +  * and it prints out the tgoto string generated.
  1687. +  */
  1688. + #include <stdio.h>
  1689. + char buf[1024];
  1690. + char *getenv(), *tgetstr();
  1691. + char *rdchar();
  1692. + char *tgoto();
  1693. + char *CM;
  1694. + char cmbuff[30];
  1695. + char *x;
  1696. + char *UP;
  1697. + char *tgout;
  1698. + main(argc, argv) char **argv; {
  1699. +     char *p;
  1700. +     int rc;
  1701. +     int row, col;
  1702. +     if (argc < 2)
  1703. +         p = getenv("TERM");
  1704. +     else
  1705. +         p = argv[1];
  1706. +     rc = tgetent(buf,p);
  1707. +     x = cmbuff;
  1708. +     UP = tgetstr("up", &x);
  1709. +     printf("UP = %x = ", UP); pr(UP); printf("\n");
  1710. +     if (UP && *UP==0)
  1711. +         UP = 0;
  1712. +     CM = tgetstr("cm", &x);
  1713. +     printf("CM = "); pr(CM); printf("\n");
  1714. +     for (;;) {
  1715. +         if (scanf("%d %d", &row, &col) < 2)
  1716. +             exit(0);
  1717. +         tgout = tgoto(CM, col, row);
  1718. +         pr(tgout);
  1719. +         printf("\n");
  1720. +     }
  1721. + }
  1722. + pr(p)
  1723. + register char *p;
  1724. + {
  1725. +     for (; *p; p++)
  1726. +         printf("%s", rdchar(*p));
  1727. + }
  1728. + /*
  1729. +  * rdchar() returns a readable representation of an ASCII character
  1730. +  * using ^ for control, ' for meta.
  1731. +  */
  1732. + #include <ctype.h>
  1733. + char *rdchar(c)
  1734. + char c;
  1735. + {
  1736. +     static char ret[4];
  1737. +     register char *p = ret;
  1738. +     if ((c&0377) > 0177)
  1739. +         *p++ = '\'';
  1740. +     c &= 0177;
  1741. +     if (!isprint(c))
  1742. +         *p++ = '^';
  1743. +     *p++ = (isprint(c) ?  c  : c^0100);
  1744. +     *p = 0;
  1745. +     return (ret);
  1746. + }
  1747.