head	1.2;
access;
symbols
	RELENG_8_4:1.2.0.18
	RELENG_9_1_0_RELEASE:1.2
	RELENG_9_1:1.2.0.16
	RELENG_9_1_BP:1.2
	RELENG_8_3_0_RELEASE:1.2
	RELENG_8_3:1.2.0.14
	RELENG_8_3_BP:1.2
	RELENG_9_0_0_RELEASE:1.2
	RELENG_9_0:1.2.0.12
	RELENG_9_0_BP:1.2
	RELENG_9:1.2.0.10
	RELENG_9_BP:1.2
	RELENG_7_4_0_RELEASE:1.1.1.8.2.1
	RELENG_8_2_0_RELEASE:1.2
	RELENG_7_4:1.1.1.8.2.1.0.8
	RELENG_7_4_BP:1.1.1.8.2.1
	RELENG_8_2:1.2.0.8
	RELENG_8_2_BP:1.2
	RELENG_8_1_0_RELEASE:1.2
	RELENG_8_1:1.2.0.6
	RELENG_8_1_BP:1.2
	RELENG_7_3_0_RELEASE:1.1.1.8.2.1
	RELENG_7_3:1.1.1.8.2.1.0.6
	RELENG_7_3_BP:1.1.1.8.2.1
	RELENG_8_0_0_RELEASE:1.2
	RELENG_8_0:1.2.0.4
	RELENG_8_0_BP:1.2
	RELENG_8:1.2.0.2
	RELENG_8_BP:1.2
	RELENG_7_2_0_RELEASE:1.1.1.8.2.1
	RELENG_7_2:1.1.1.8.2.1.0.4
	RELENG_7_2_BP:1.1.1.8.2.1
	RELENG_7_1_0_RELEASE:1.1.1.8.2.1
	RELENG_6_4_0_RELEASE:1.1.1.7.14.2
	RELENG_7_1:1.1.1.8.2.1.0.2
	RELENG_7_1_BP:1.1.1.8.2.1
	RELENG_6_4:1.1.1.7.14.2.0.2
	RELENG_6_4_BP:1.1.1.7.14.2
	v5_6_20080503:1.1.1.10
	RELENG_7_0_0_RELEASE:1.1.1.8
	v5_6_20080209:1.1.1.9
	RELENG_6_3_0_RELEASE:1.1.1.7.14.1
	v5_6_20071222:1.1.1.9
	RELENG_7_0:1.1.1.8.0.4
	RELENG_7_0_BP:1.1.1.8
	RELENG_6_3:1.1.1.7.14.1.0.2
	RELENG_6_3_BP:1.1.1.7.14.1
	RELENG_7:1.1.1.8.0.2
	RELENG_7_BP:1.1.1.8
	v5_6_20061217:1.1.1.8
	RELENG_6_2_0_RELEASE:1.1.1.7
	RELENG_6_2:1.1.1.7.0.22
	RELENG_6_2_BP:1.1.1.7
	RELENG_5_5_0_RELEASE:1.1.1.7
	RELENG_5_5:1.1.1.7.0.20
	RELENG_5_5_BP:1.1.1.7
	RELENG_6_1_0_RELEASE:1.1.1.7
	RELENG_6_1:1.1.1.7.0.18
	RELENG_6_1_BP:1.1.1.7
	RELENG_6_0_0_RELEASE:1.1.1.7
	RELENG_6_0:1.1.1.7.0.16
	RELENG_6_0_BP:1.1.1.7
	RELENG_6:1.1.1.7.0.14
	RELENG_6_BP:1.1.1.7
	RELENG_5_4_0_RELEASE:1.1.1.7
	RELENG_5_4:1.1.1.7.0.12
	RELENG_5_4_BP:1.1.1.7
	RELENG_4_11_0_RELEASE:1.1.1.2.2.2
	RELENG_4_11:1.1.1.2.2.2.0.18
	RELENG_4_11_BP:1.1.1.2.2.2
	RELENG_5_3_0_RELEASE:1.1.1.7
	RELENG_5_3:1.1.1.7.0.10
	RELENG_5_3_BP:1.1.1.7
	RELENG_5:1.1.1.7.0.8
	RELENG_5_BP:1.1.1.7
	RELENG_4_10_0_RELEASE:1.1.1.2.2.2
	RELENG_4_10:1.1.1.2.2.2.0.16
	RELENG_4_10_BP:1.1.1.2.2.2
	RELENG_5_2_1_RELEASE:1.1.1.7
	RELENG_5_2_0_RELEASE:1.1.1.7
	RELENG_5_2:1.1.1.7.0.6
	RELENG_5_2_BP:1.1.1.7
	RELENG_4_9_0_RELEASE:1.1.1.2.2.2
	RELENG_4_9:1.1.1.2.2.2.0.14
	RELENG_4_9_BP:1.1.1.2.2.2
	RELENG_5_1_0_RELEASE:1.1.1.7
	RELENG_5_1:1.1.1.7.0.4
	RELENG_5_1_BP:1.1.1.7
	RELENG_4_8_0_RELEASE:1.1.1.2.2.2
	RELENG_4_8:1.1.1.2.2.2.0.12
	RELENG_4_8_BP:1.1.1.2.2.2
	RELENG_5_0_0_RELEASE:1.1.1.7
	RELENG_5_0:1.1.1.7.0.2
	RELENG_5_0_BP:1.1.1.7
	RELENG_4_7_0_RELEASE:1.1.1.2.2.2
	RELENG_4_7:1.1.1.2.2.2.0.10
	RELENG_4_7_BP:1.1.1.2.2.2
	RELENG_4_6_2_RELEASE:1.1.1.2.2.2
	RELENG_4_6_1_RELEASE:1.1.1.2.2.2
	v5_2_20020615:1.1.1.7
	RELENG_4_6_0_RELEASE:1.1.1.2.2.2
	RELENG_4_6:1.1.1.2.2.2.0.8
	RELENG_4_6_BP:1.1.1.2.2.2
	v5_2_20020518:1.1.1.6
	RELENG_4_5_0_RELEASE:1.1.1.2.2.2
	RELENG_4_5:1.1.1.2.2.2.0.6
	RELENG_4_5_BP:1.1.1.2.2.2
	RELENG_4_4_0_RELEASE:1.1.1.2.2.2
	RELENG_4_4:1.1.1.2.2.2.0.4
	RELENG_4_4_BP:1.1.1.2.2.2
	v5_2_20010512:1.1.1.5
	RELENG_4_3_0_RELEASE:1.1.1.2.2.2
	RELENG_4_3:1.1.1.2.2.2.0.2
	RELENG_4_3_BP:1.1.1.2.2.2
	RELENG_4_2_0_RELEASE:1.1.1.2.2.2
	v5_1_20001009:1.1.1.4
	RELENG_4_1_1_RELEASE:1.1.1.2.2.1
	PRE_SMPNG:1.1.1.3
	RELENG_4_1_0_RELEASE:1.1.1.2.2.1
	v5_1_20000701:1.1.1.3
	RELENG_4_0_0_RELEASE:1.1.1.2
	RELENG_4:1.1.1.2.0.2
	RELENG_4_BP:1.1.1.2
	v5_0:1.1.1.2
	v5_0_990821:1.1.1.1
	NCURSES:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2008.11.15.09.23.48;	author rafan;	state Exp;
branches
	1.2.18.1;
next	1.1;

1.1
date	99.08.24.01.06.35;	author peter;	state Exp;
branches
	1.1.1.1;
next	;

1.2.18.1
date	2008.11.15.09.23.48;	author svnexp;	state dead;
branches;
next	1.2.18.2;

1.2.18.2
date	2013.03.28.13.01.39;	author svnexp;	state Exp;
branches;
next	;

1.1.1.1
date	99.08.24.01.06.35;	author peter;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2000.01.26.16.35.26;	author peter;	state Exp;
branches
	1.1.1.2.2.1;
next	1.1.1.3;

1.1.1.3
date	2000.07.03.09.22.50;	author peter;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2000.10.11.07.28.58;	author peter;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2001.05.17.08.21.01;	author peter;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2002.05.21.05.26.25;	author peter;	state Exp;
branches;
next	1.1.1.7;

1.1.1.7
date	2002.06.20.19.42.23;	author peter;	state Exp;
branches
	1.1.1.7.14.1;
next	1.1.1.8;

1.1.1.8
date	2007.01.20.07.31.59;	author rafan;	state Exp;
branches
	1.1.1.8.2.1;
next	1.1.1.9;

1.1.1.9
date	2007.12.30.11.08.11;	author rafan;	state Exp;
branches;
next	1.1.1.10;

1.1.1.10
date	2008.05.09.02.28.10;	author rafan;	state Exp;
branches;
next	;

1.1.1.2.2.1
date	2000.07.10.09.54.15;	author ps;	state Exp;
branches;
next	1.1.1.2.2.2;

1.1.1.2.2.2
date	2000.10.12.18.40.34;	author peter;	state Exp;
branches;
next	;

1.1.1.7.14.1
date	2007.04.06.17.49.45;	author rafan;	state Exp;
branches;
next	1.1.1.7.14.2;

1.1.1.7.14.2
date	2008.07.01.09.28.27;	author rafan;	state Exp;
branches;
next	;

1.1.1.8.2.1
date	2008.06.04.07.42.51;	author rafan;	state Exp;
branches;
next	;


desc
@@


1.2
log
@SVN rev 184989 on 2008-11-15 09:23:48Z by rafan

- Update ncurses to 5.7-20081102 (5.7 release) and build glue
- This also removes $FreeBSD$ from two now unmodifed source files
  ncurses/tinfo/lib_raw.c and ncurses/tinfo/lib_baudrate.c

MFC after:	2 months (after 7.1 and 6.4 are released)
@
text
@#! /bin/sh
# From configure.in Revision: 1.454 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by Autoconf 2.52.20080325.
#
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Name of the executable.
as_me=`echo "$0" |sed 's,.*[\\/],,'`

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

as_executable_p="test -f"

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

# NLS nuisances.
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }

# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }

# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

exec 6>&1

#
# Initializations.
#
ac_default_prefix=/usr/local
cross_compiling=no
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}

# Maximum number of lines to put in a shell here document.
# This variable seems obsolete.  It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}

ac_unique_file="ncurses/base/lib_initscr.c"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"

# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'

# Identity of this package.
PACKAGE_NAME=
PACKAGE_TARNAME=
PACKAGE_VERSION=
PACKAGE_STRING=
PACKAGE_BUGREPORT=

ac_prev=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval "$ac_prev=\$ac_option"
    ac_prev=
    continue
  fi

  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case $ac_option in

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
    datadir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    eval "enable_$ac_feature=no" ;;

  -enable-* | --enable-*)
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
      *) ac_optarg=yes ;;
    esac
    eval "enable_$ac_feature='$ac_optarg'" ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
      *) ac_optarg=yes ;;
    esac
    eval "with_$ac_package='$ac_optarg'" ;;

  -without-* | --without-*)
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
    ac_package=`echo $ac_package | sed 's/-/_/g'`
    eval "with_$ac_package=no" ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; }
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   { (exit 1); exit 1; }; }
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    eval "$ac_envvar='$ac_optarg'"
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  { echo "$as_me: error: missing argument to $ac_option" >&2
   { (exit 1); exit 1; }; }
fi

# Be sure to have absolute paths.
for ac_var in exec_prefix prefix
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
  esac
done

# Be sure to have absolute paths.
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
              localstatedir libdir includedir oldincludedir infodir mandir
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* ) ;;
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
  esac
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: should be removed in autoconf 3.0.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null

# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then its parent.
  ac_prog=$0
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  srcdir=$ac_confdir
  if test ! -r $srcdir/$ac_unique_file; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
  if test "$ac_srcdir_defaulted" = yes; then
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
   { (exit 1); exit 1; }; }
  else
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
   { (exit 1); exit 1; }; }
  fi
fi
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
ac_env_build_alias_set=${build_alias+set}
ac_env_build_alias_value=$build_alias
ac_cv_env_build_alias_set=${build_alias+set}
ac_cv_env_build_alias_value=$build_alias
ac_env_host_alias_set=${host_alias+set}
ac_env_host_alias_value=$host_alias
ac_cv_env_host_alias_set=${host_alias+set}
ac_cv_env_host_alias_value=$host_alias
ac_env_target_alias_set=${target_alias+set}
ac_env_target_alias_value=$target_alias
ac_cv_env_target_alias_set=${target_alias+set}
ac_cv_env_target_alias_value=$target_alias
ac_env_CC_set=${CC+set}
ac_env_CC_value=$CC
ac_cv_env_CC_set=${CC+set}
ac_cv_env_CC_value=$CC
ac_env_CFLAGS_set=${CFLAGS+set}
ac_env_CFLAGS_value=$CFLAGS
ac_cv_env_CFLAGS_set=${CFLAGS+set}
ac_cv_env_CFLAGS_value=$CFLAGS
ac_env_LDFLAGS_set=${LDFLAGS+set}
ac_env_LDFLAGS_value=$LDFLAGS
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
ac_cv_env_LDFLAGS_value=$LDFLAGS
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_env_CPPFLAGS_value=$CPPFLAGS
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
ac_env_CPP_set=${CPP+set}
ac_env_CPP_value=$CPP
ac_cv_env_CPP_set=${CPP+set}
ac_cv_env_CPP_value=$CPP
ac_env_CXX_set=${CXX+set}
ac_env_CXX_value=$CXX
ac_cv_env_CXX_set=${CXX+set}
ac_cv_env_CXX_value=$CXX
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_env_CXXFLAGS_value=$CXXFLAGS
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
ac_env_CXXCPP_set=${CXXCPP+set}
ac_env_CXXCPP_value=$CXXCPP
ac_cv_env_CXXCPP_set=${CXXCPP+set}
ac_cv_env_CXXCPP_value=$CXXCPP

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<EOF
\`configure' configures this package to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

EOF

  cat <<EOF
Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --infodir=DIR           info documentation [PREFIX/info]
  --mandir=DIR            man documentation [PREFIX/man]
EOF

  cat <<\EOF

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD           configure for building on BUILD [guessed]
  --host=HOST       build programs to run on HOST [BUILD]
  --target=TARGET   configure for building compilers for TARGET [HOST]
EOF
fi

if test -n "$ac_init_help"; then

  cat <<\EOF

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)

Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]

  --with-rel-version=XXX  override derived release version
  --with-abi-version=XXX  override derived ABI version
  --with-system-type=XXX  test: override derived host system-type
  --without-cxx           do not adjust ncurses bool to match C++
  --without-cxx-binding   do not build C++ binding and demo
  --without-ada           suppress check for Ada95, don't build demo
  --without-progs         suppress build with programs (e.g., tic)
  --without-curses-h      install curses.h as ncurses.h only
  --enable-mixed-case     tic should assume mixed-case filenames
  --with-install-prefix   prefixes actual install-location ($DESTDIR)
Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
  --with-build-cc=XXX     the build C compiler ($BUILD_CC)
  --with-build-cpp=XXX    the build C preprocessor ($BUILD_CPP)
  --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
  --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
  --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
  --with-build-libs=XXX   the build libraries (${BUILD_LIBS})
Options to Specify the Libraries Built/Used:
  --with-libtool          generate libraries with libtool
  --with-shared           generate shared-libraries
  --with-normal           generate normal-libraries (default)
  --with-debug            generate debug-libraries (default)
  --with-profile          generate profile-libraries
  --with-termlib          generate separate terminfo library
  --with-ticlib           generate separate tic library
  --with-gpm              use Alessandro Rubini's GPM library
  --without-dlsym         do not use dlsym() to load GPM dynamically
  --with-sysmouse         use sysmouse (FreeBSD console)
  --enable-rpath          use rpath option when generating shared libraries
  --disable-relink        relink shared libraries during install
  --with-shlib-version=X  Specify rel or abi version for shared libs
Fine-Tuning Your Configuration:
  --disable-overwrite     leave out the link to -lcurses
  --disable-database      do not use terminfo, only fallbacks/termcap
  --with-database=XXX     specify terminfo source to install
  --with-hashed-db        specify hashed-database library
  --with-fallbacks=XXX    specify list of fallback terminal descriptions
  --without-xterm-new     specify if xterm terminfo should be old version
  --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
  --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
  --disable-big-core      assume machine has little memory
  --disable-big-strings   assume compiler has only standard-size strings
  --enable-termcap        compile in termcap fallback support
  --with-termpath=XXX     specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
  --enable-getcap         fast termcap load, no xrefs to terminfo
  --enable-getcap-cache   cache translated termcaps in ~/.terminfo
  --disable-home-terminfo drop ~/.terminfo from terminfo search-path
  --disable-root-environ  restrict environment when running as root
  --enable-symlinks       make tic use symbolic links not hard links
  --enable-broken_linker  compile with broken-linker support code
  --enable-bsdpad         recognize BSD-style prefix padding
  --enable-widec          compile with wide-char/UTF-8 code
  --disable-lp64          allow chtype to be long (ignore _LP64)
  --disable-largefile     omit support for large files
  --disable-tparm-varargs compile tparm() without varargs interface
  --disable-tic-depends   link tic library without explicit dependency on ncurses library
  --with-bool=TYPE        override fallback type of bool variable
  --with-caps=alt         compile with alternate Caps file
  --with-chtype=TYPE      override type of chtype
  --with-ospeed=TYPE      override type of ospeed variable
  --with-mmask-t=TYPE     override type of mmask_t
  --with-rcs-ids          compile-in RCS identifiers
Options to Specify How Manpages are Installed:
  --with-manpage-format   specify manpage-format: gzip/compress/BSDI/normal and
                          optionally formatted/catonly, e.g., gzip,formatted
  --with-manpage-renames  specify manpage-renaming
  --with-manpage-aliases  specify manpage-aliases using .so
  --with-manpage-symlinks specify manpage-aliases using symlinks
  --with-manpage-tbl      specify manpage processing with tbl
Extensions:
  --disable-ext-funcs     disable function-extensions
  --enable-const          compile with extra/non-standard const
  --enable-ext-colors     compile for 256-color support
  --enable-ext-mouse      compile for extended mouse-encoding
  --enable-no-padding     compile with $NCURSES_NO_PADDING code
  --enable-signed-char    compile using signed Boolean's in term.h
  --enable-sigwinch       compile with SIGWINCH handler
  --enable-tcap-names     compile with user-definable terminal capabilities
Development Code:
  --without-develop       disable development options
  --enable-hard-tabs      compile with hard-tabs code
  --enable-xmc-glitch     compile with support for xmc (magic-cookie)
Experimental Code:
  --disable-assumed-color do not assume anything about default-colors
  --disable-hashmap       compile without hashmap scrolling-optimization
  --enable-colorfgbg      compile with $COLORFGBG code
  --with-pthread          use POSIX thread library
  --enable-weak-symbols   enable weak-symbols for pthreads
  --enable-reentrant      compile with experimental reentrant code
  --enable-safe-sprintf   compile with experimental safe-sprintf code
  --disable-scroll-hints  compile without scroll-hints code
  --enable-wgetch-events  compile with experimental wgetch-events code
Testing/development Options:
  --enable-echo           build: display "compiling" commands (default)
  --enable-warnings       build: turn on GCC compiler warnings
  --enable-assertions     test: turn on generation of assertion code
  --with-dmalloc          test: use Gray Watson's dmalloc library
  --with-dbmalloc         test: use Conor Cahill's dbmalloc library
  --with-valgrind         test: use valgrind
  --disable-leaks         test: free permanent memory, analyze leaks
  --enable-expanded       test: generate functions for certain macros
  --disable-macros        test: use functions rather than macros
  --with-trace            test: add trace() function to all models of ncurses
Ada95 Binding Options:
  --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
  --with-ada-include=DIR  Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
  --with-ada-objects=DIR  Ada objects are in DIR (default: PREFIX/lib/ada/adalib)

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
              headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      C++ preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

EOF
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  ac_popdir=`pwd`
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    cd $ac_subdir
    # A "../" for each directory in /$ac_subdir.
    ac_dots=`echo $ac_subdir |
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`

    case $srcdir in
    .) # No --srcdir option.  We are building in place.
      ac_sub_srcdir=$srcdir ;;
    [\\/]* | ?:[\\/]* ) # Absolute path.
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
    *) # Relative path.
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
    esac

    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f $ac_sub_srcdir/configure.gnu; then
      echo
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    elif test -f $ac_sub_srcdir/configure; then
      echo
      $SHELL $ac_sub_srcdir/configure  --help=recursive
    elif test -f $ac_sub_srcdir/configure.ac ||
           test -f $ac_sub_srcdir/configure.in; then
      echo
      $ac_configure --help
    else
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
    fi
    cd $ac_popdir
  done
fi

test -n "$ac_init_help" && exit 0
if $ac_init_version; then
  cat <<\EOF

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
EOF
  exit 0
fi
exec 5>config.log
cat >&5 <<EOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by $as_me, which was
generated by GNU Autoconf 2.52.20080325.  Invocation command line was

  $ $0 $@@

EOF
{
cat <<_ASUNAME
## ---------- ##
## Platform.  ##
## ---------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

PATH = $PATH

_ASUNAME
} >&5

cat >&5 <<EOF
## ------------ ##
## Core tests.  ##
## ------------ ##

EOF

# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell meta-characters.
ac_configure_args=
ac_sep=
for ac_arg
do
  case $ac_arg in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    ac_sep=" " ;;
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
     ac_sep=" " ;;
  esac
  # Get rid of the leading space.
done

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  echo >&5
  echo "## ----------------- ##" >&5
  echo "## Cache variables.  ##" >&5
  echo "## ----------------- ##" >&5
  echo >&5
  # The following way of writing the cache mishandles newlines in values,
{
  (set) 2>&1 |
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      sed -n \
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
      ;;
    *)
      sed -n \
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} >&5
  sed "/^$/d" confdefs.h >conftest.log
  if test -s conftest.log; then
    echo >&5
    echo "## ------------ ##" >&5
    echo "## confdefs.h.  ##" >&5
    echo "## ------------ ##" >&5
    echo >&5
    cat conftest.log >&5
  fi
  (echo; echo) >&5
  test "$ac_signal" != 0 &&
    echo "$as_me: caught signal $ac_signal" >&5
  echo "$as_me: exit $exit_status" >&5
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
    exit $exit_status
     ' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo >confdefs.h

# Let the site file select an alternate cache file if it wants to.
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    { echo "$as_me:997: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
    cat "$ac_site_file" >&5
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    { echo "$as_me:1008: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . $cache_file;;
      *)                      . ./$cache_file;;
    esac
  fi
else
  { echo "$as_me:1016: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in `(set) 2>&1 |
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  eval ac_new_val="\$ac_env_${ac_var}_value"
  case $ac_old_set,$ac_new_set in
    set,)
      { echo "$as_me:1032: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { echo "$as_me:1036: error: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
        { echo "$as_me:1042: error: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
        { echo "$as_me:1044:   former value:  $ac_old_val" >&5
echo "$as_me:   former value:  $ac_old_val" >&2;}
        { echo "$as_me:1046:   current value: $ac_new_val" >&5
echo "$as_me:   current value: $ac_new_val" >&2;}
        ac_cache_corrupted=:
      fi;;
  esac
  # Pass precious variables to config.status.  It doesn't matter if
  # we pass some twice (in addition to the command line arguments).
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
      ac_configure_args="$ac_configure_args '$ac_arg'"
      ;;
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
       ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { echo "$as_me:1065: error: changes in the environment can compromise the build" >&5
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  { { echo "$as_me:1067: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
echo "#! $SHELL" >conftest.sh
echo  "exit 0"   >>conftest.sh
chmod +x conftest.sh
if { (echo "$as_me:1088: PATH=\".;.\"; conftest.sh") >&5
  (PATH=".;."; conftest.sh) 2>&5
  ac_status=$?
  echo "$as_me:1091: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_path_separator=';'
else
  ac_path_separator=:
fi
PATH_SEPARATOR="$ac_path_separator"
rm -f conftest.sh

ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"

top_builddir=`pwd`

echo "$as_me:1104: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_prog_egrep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    then ac_cv_prog_egrep='grep -E'
    else ac_cv_prog_egrep='egrep'
    fi
fi
echo "$as_me:1114: result: $ac_cv_prog_egrep" >&5
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 EGREP=$ac_cv_prog_egrep

test -z "$EGREP" && { { echo "$as_me:1118: error: No egrep program found" >&5
echo "$as_me: error: No egrep program found" >&2;}
   { (exit 1); exit 1; }; }

NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ 	]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ 	]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ 	]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
cf_cv_abi_version=${NCURSES_MAJOR}
cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
cf_cv_timestamp=`date`
echo "$as_me:1128: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6

test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0

# Check whether --with-rel-version or --without-rel-version was given.
if test "${with_rel_version+set}" = set; then
  withval="$with_rel_version"
  { echo "$as_me:1136: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
 cf_cv_rel_version=$withval
fi;

 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`

if test -n "$NCURSES_MAJOR" ; then
  case $NCURSES_MAJOR in #(vi
  [0-9]*) #(vi
 	;;
  *)
	{ { echo "$as_me:1149: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
   { (exit 1); exit 1; }; }
 	;;
  esac
else
  { { echo "$as_me:1155: error: Release major-version value is empty" >&5
echo "$as_me: error: Release major-version value is empty" >&2;}
   { (exit 1); exit 1; }; }
fi

if test -n "$NCURSES_MINOR" ; then
  case $NCURSES_MINOR in #(vi
  [0-9]*) #(vi
 	;;
  *)
	{ { echo "$as_me:1165: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
   { (exit 1); exit 1; }; }
 	;;
  esac
else
  { { echo "$as_me:1171: error: Release minor-version value is empty" >&5
echo "$as_me: error: Release minor-version value is empty" >&2;}
   { (exit 1); exit 1; }; }
fi

test -z "$cf_cv_abi_version" && cf_cv_abi_version=0

# Check whether --with-abi-version or --without-abi-version was given.
if test "${with_abi_version+set}" = set; then
  withval="$with_abi_version"
  { echo "$as_me:1181: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
 cf_cv_abi_version=$withval
fi;

if test -n "$cf_cv_abi_version" ; then
  case $cf_cv_abi_version in #(vi
  [0-9]*) #(vi
 	;;
  *)
	{ { echo "$as_me:1191: error: ABI version is not a number: $cf_cv_abi_version" >&5
echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
   { (exit 1); exit 1; }; }
 	;;
  esac
else
  { { echo "$as_me:1197: error: ABI version value is empty" >&5
echo "$as_me: error: ABI version value is empty" >&2;}
   { (exit 1); exit 1; }; }
fi

ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f $ac_dir/shtool; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { { echo "$as_me:1219: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
   { (exit 1); exit 1; }; }
fi
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.

# Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 ||
  { { echo "$as_me:1229: error: cannot run $ac_config_sub" >&5
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   { (exit 1); exit 1; }; }

echo "$as_me:1233: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6
if test "${ac_cv_build+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_build_alias=$build_alias
test -z "$ac_cv_build_alias" &&
  ac_cv_build_alias=`$ac_config_guess`
test -z "$ac_cv_build_alias" &&
  { { echo "$as_me:1242: error: cannot guess build type; you must specify one" >&5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   { (exit 1); exit 1; }; }
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  { { echo "$as_me:1246: error: $ac_config_sub $ac_cv_build_alias failed." >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1251: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6
build=$ac_cv_build
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

echo "$as_me:1258: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6
if test "${ac_cv_host+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_host_alias=$host_alias
test -z "$ac_cv_host_alias" &&
  ac_cv_host_alias=$ac_cv_build_alias
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  { { echo "$as_me:1267: error: $ac_config_sub $ac_cv_host_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1272: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6
host=$ac_cv_host
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
	echo "$as_me:1280: checking target system type" >&5
echo $ECHO_N "checking target system type... $ECHO_C" >&6
if test "${ac_cv_target+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_target_alias=$target_alias
test "x$ac_cv_target_alias" = "x" &&
  ac_cv_target_alias=$ac_cv_host_alias
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  { { echo "$as_me:1289: error: $ac_config_sub $ac_cv_target_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1294: result: $ac_cv_target" >&5
echo "${ECHO_T}$ac_cv_target" >&6
target=$ac_cv_target
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
test -n "$target_alias" &&
  test "$program_prefix$program_suffix$program_transform_name" = \
    NONENONEs,x,x, &&
  program_prefix=${target_alias}-
	system_name="$host_os"
else
	system_name="`(uname -s -r) 2>/dev/null`"
	if test -z "$system_name" ; then
		system_name="`(hostname) 2>/dev/null`"
	fi
fi
test -n "$system_name" && cat >>confdefs.h <<EOF
#define SYSTEM_NAME "$system_name"
EOF

if test "${cf_cv_system_name+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cf_cv_system_name="$system_name"
fi

test -z "$system_name" && system_name="$cf_cv_system_name"
test -n "$cf_cv_system_name" && echo "$as_me:1325: result: Configuring for $cf_cv_system_name" >&5
echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6

if test ".$system_name" != ".$cf_cv_system_name" ; then
	echo "$as_me:1329: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
	{ { echo "$as_me:1331: error: \"Please remove config.cache and try again.\"" >&5
echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
   { (exit 1); exit 1; }; }
fi

# Check whether --with-system-type or --without-system-type was given.
if test "${with_system_type+set}" = set; then
  withval="$with_system_type"
  { echo "$as_me:1339: WARNING: overriding system type to $withval" >&5
echo "$as_me: WARNING: overriding system type to $withval" >&2;}
 cf_cv_system_name=$withval
fi;

###	Save the given $CFLAGS to allow user-override.
cf_user_CFLAGS="$CFLAGS"

###	Default install-location

echo "$as_me:1349: checking for prefix" >&5
echo $ECHO_N "checking for prefix... $ECHO_C" >&6
if test "x$prefix" = "xNONE" ; then
	case "$cf_cv_system_name" in
		# non-vendor systems don't have a conflict
	openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
		prefix=/usr
		;;
	*)	prefix=$ac_default_prefix
		;;
	esac
fi
echo "$as_me:1361: result: $prefix" >&5
echo "${ECHO_T}$prefix" >&6

if test "x$prefix" = "xNONE" ; then
echo "$as_me:1365: checking for default include-directory" >&5
echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
test -n "$verbose" && echo 1>&6
for cf_symbol in \
	$includedir \
	$includedir/ncurses \
	$prefix/include \
	$prefix/include/ncurses \
	/usr/local/include \
	/usr/local/include/ncurses \
	/usr/include \
	/usr/include/ncurses
do
	cf_dir=`eval echo $cf_symbol`
	if test -f $cf_dir/curses.h ; then
	if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
		includedir="$cf_symbol"
		test -n "$verbose"  && echo $ac_n "	found " 1>&6
		break
	fi
	fi
	test -n "$verbose"  && echo "	tested $cf_dir" 1>&6
done
echo "$as_me:1388: result: $includedir" >&5
echo "${ECHO_T}$includedir" >&6
fi

###	Checks for programs.
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo "$as_me:1402: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}gcc"
echo "$as_me:1417: found $ac_dir/$ac_word" >&5
break
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:1425: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:1428: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "$as_me:1437: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="gcc"
echo "$as_me:1452: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1460: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:1463: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
echo "$as_me:1476: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}cc"
echo "$as_me:1491: found $ac_dir/$ac_word" >&5
break
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:1499: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:1502: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:1511: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="cc"
echo "$as_me:1526: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1534: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:1537: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi

fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:1550: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  ac_prog_rejected=yes
  continue
fi
ac_cv_prog_CC="cc"
echo "$as_me:1570: found $ac_dir/$ac_word" >&5
break
done

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    set dummy "$ac_dir/$ac_word" ${1+"$@@"}
    shift
    ac_cv_prog_CC="$@@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:1592: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:1595: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:1606: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
echo "$as_me:1621: found $ac_dir/$ac_word" >&5
break
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:1629: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:1632: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:1645: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="$ac_prog"
echo "$as_me:1660: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1668: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:1671: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$ac_ct_CC" && break
done

  CC=$ac_ct_CC
fi

fi

test -z "$CC" && { { echo "$as_me:1683: error: no acceptable cc found in \$PATH" >&5
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }

# Provide some information about the compiler.
echo "$as_me:1688:" \
     "checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:1691: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:1694: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:1696: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:1699: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:1701: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:1704: \$? = $ac_status" >&5
  (exit $ac_status); }

cat >conftest.$ac_ext <<_ACEOF
#line 1708 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
echo "$as_me:1724: checking for C compiler default output" >&5
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
if { (eval echo "$as_me:1727: \"$ac_link_default\"") >&5
  (eval $ac_link_default) 2>&5
  ac_status=$?
  echo "$as_me:1730: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # Find the output, starting from the most likely.  This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort.
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
                ls a.out conftest 2>/dev/null;
                ls a.* conftest.* 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    a.out ) # We found the default executable, but exeext='' is most
            # certainly right.
            break;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:1753: error: C compiler cannot create executables" >&5
echo "$as_me: error: C compiler cannot create executables" >&2;}
   { (exit 77); exit 77; }; }
fi

ac_exeext=$ac_cv_exeext
echo "$as_me:1759: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6

# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:1764: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
  { (eval echo "$as_me:1770: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1773: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { echo "$as_me:1780: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&2;}
   { (exit 1); exit 1; }; }
    fi
  fi
fi
echo "$as_me:1788: result: yes" >&5
echo "${ECHO_T}yes" >&6

rm -f a.out a.exe conftest$ac_cv_exeext
ac_clean_files=$ac_clean_files_save
# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:1795: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "$as_me:1797: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6

echo "$as_me:1800: checking for executable suffix" >&5
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
if { (eval echo "$as_me:1802: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:1805: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
else
  { { echo "$as_me:1821: error: cannot compute EXEEXT: cannot compile and link" >&5
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest$ac_cv_exeext
echo "$as_me:1827: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
echo "$as_me:1833: checking for object suffix" >&5
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1839 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { (eval echo "$as_me:1851: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1854: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:1866: error: cannot compute OBJEXT: cannot compile" >&5
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
echo "$as_me:1873: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
echo "$as_me:1877: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
if test "${ac_cv_c_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1883 "configure"
#include "confdefs.h"

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1898: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1901: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1904: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1907: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:1919: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
CFLAGS="-g"
echo "$as_me:1925: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cc_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1931 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1943: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1946: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1949: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1952: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_g=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_prog_cc_g=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:1962: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
# Some people use a C++ compiler to compile C.  Since we use `exit',
# in C++ we need to declare it.  In case someone uses the same compiler
# for both compiling C and C++ we need to have the C++ compiler decide
# the declaration of exit, since it's the most demanding environment.
cat >conftest.$ac_ext <<_ACEOF
#ifndef __cplusplus
  choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1989: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1992: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1995: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1998: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line 2010 "configure"
#include "confdefs.h"
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2023: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2026: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2029: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2032: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 2042 "configure"
#include "confdefs.h"
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2054: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2057: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2060: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2063: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

GCC_VERSION=none
if test "$GCC" = yes ; then
	echo "$as_me:2093: checking version of $CC" >&5
echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
	GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
	test -z "$GCC_VERSION" && GCC_VERSION=unknown
	echo "$as_me:2097: result: $GCC_VERSION" >&5
echo "${ECHO_T}$GCC_VERSION" >&6
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return
echo "$as_me:2107: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 2128 "configure"
#include "confdefs.h"
#include <assert.h>
                     Syntax error
_ACEOF
if { (eval echo "$as_me:2133: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:2139: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 2162 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:2166: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:2172: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
echo "$as_me:2209: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 2219 "configure"
#include "confdefs.h"
#include <assert.h>
                     Syntax error
_ACEOF
if { (eval echo "$as_me:2224: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:2230: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 2253 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:2257: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:2263: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:2291: error: C preprocessor \"$CPP\" fails sanity check" >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

if test $ac_cv_c_compiler_gnu = yes; then
    echo "$as_me:2304: checking whether $CC needs -traditional" >&5
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
    ac_pattern="Autoconf.*'x'"
  cat >conftest.$ac_ext <<_ACEOF
#line 2311 "configure"
#include "confdefs.h"
#include <sgtty.h>
int Autoconf = TIOCGETP;
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "$ac_pattern" >/dev/null 2>&1; then
  ac_cv_prog_gcc_traditional=yes
else
  ac_cv_prog_gcc_traditional=no
fi
rm -f conftest*

  if test $ac_cv_prog_gcc_traditional = no; then
    cat >conftest.$ac_ext <<_ACEOF
#line 2326 "configure"
#include "confdefs.h"
#include <termio.h>
int Autoconf = TCGETA;
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "$ac_pattern" >/dev/null 2>&1; then
  ac_cv_prog_gcc_traditional=yes
fi
rm -f conftest*

  fi
fi
echo "$as_me:2339: result: $ac_cv_prog_gcc_traditional" >&5
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
fi

echo "$as_me:2346: checking whether $CC understands -c and -o together" >&5
echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
if test "${cf_cv_prog_CC_c_o+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat > conftest.$ac_ext <<CF_EOF
#include <stdio.h>
int main()
{
	${cf_cv_main_return:-return}(0);
}
CF_EOF
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
if { (eval echo "$as_me:2362: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2365: \$? = $ac_status" >&5
  (exit $ac_status); } &&
  test -f conftest2.$ac_objext && { (eval echo "$as_me:2367: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2370: \$? = $ac_status" >&5
  (exit $ac_status); };
then
  eval cf_cv_prog_CC_c_o=yes
else
  eval cf_cv_prog_CC_c_o=no
fi
rm -f conftest*

fi
if test $cf_cv_prog_CC_c_o = yes; then
  echo "$as_me:2381: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:2384: result: no" >&5
echo "${ECHO_T}no" >&6
fi

echo "$as_me:2388: checking for POSIXized ISC" >&5
echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
if test -d /etc/conf/kconfig.d &&
   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
then
  echo "$as_me:2393: result: yes" >&5
echo "${ECHO_T}yes" >&6
  ISC=yes # If later tests want to check for ISC.

cat >>confdefs.h <<\EOF
#define _POSIX_SOURCE 1
EOF

  if test "$GCC" = yes; then
    CC="$CC -posix"
  else
    CC="$CC -Xp"
  fi
else
  echo "$as_me:2407: result: no" >&5
echo "${ECHO_T}no" >&6
  ISC=
fi

echo "$as_me:2412: checking for ${CC-cc} option to accept ANSI C" >&5
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
if test "${cf_cv_ansi_cc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_ansi_cc=no
cf_save_CFLAGS="$CFLAGS"
cf_save_CPPFLAGS="$CPPFLAGS"
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX			-qlanglvl=ansi
# Ultrix and OSF/1	-std1
# HP-UX			-Aa -D_HPUX_SOURCE
# SVR4			-Xc
# UnixWare 1.2		(cannot use -Xc, since ANSI/POSIX clashes)
for cf_arg in "-DCC_HAS_PROTOS" \
	"" \
	-qlanglvl=ansi \
	-std1 \
	-Ae \
	"-Aa -D_HPUX_SOURCE" \
	-Xc
do

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in $cf_arg
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

	cat >conftest.$ac_ext <<_ACEOF
#line 2506 "configure"
#include "confdefs.h"

#ifndef CC_HAS_PROTOS
#if !defined(__STDC__) || (__STDC__ != 1)
choke me
#endif
#endif

int
main ()
{

	int test (int i, double x);
	struct s1 {int (*f) (int a);};
	struct s2 {int (*f) (double a);};
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2527: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2530: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2533: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2536: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_ansi_cc="$cf_arg"; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
CFLAGS="$cf_save_CFLAGS"
CPPFLAGS="$cf_save_CPPFLAGS"

fi
echo "$as_me:2549: result: $cf_cv_ansi_cc" >&5
echo "${ECHO_T}$cf_cv_ansi_cc" >&6

if test "$cf_cv_ansi_cc" != "no"; then
if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in $cf_cv_ansi_cc
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

else
	cat >>confdefs.h <<\EOF
#define CC_HAS_PROTOS 1
EOF

fi
fi

if test "$cf_cv_ansi_cc" = "no"; then
	{ { echo "$as_me:2632: error: Your compiler does not appear to recognize prototypes.
You have the following choices:
	a. adjust your compiler options
	b. get an up-to-date compiler
	c. use a wrapper such as unproto" >&5
echo "$as_me: error: Your compiler does not appear to recognize prototypes.
You have the following choices:
	a. adjust your compiler options
	b. get an up-to-date compiler
	c. use a wrapper such as unproto" >&2;}
   { (exit 1); exit 1; }; }
fi

case $cf_cv_system_name in
os2*)
    CFLAGS="$CFLAGS -Zmt"
    CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
    CXXFLAGS="$CXXFLAGS -Zmt"
    # autoconf's macro sets -Zexe and suffix both, which conflict:w
    LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
    ac_cv_exeext=.exe
    ;;
esac

PROG_EXT="$EXEEXT"

test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
#define PROG_EXT "$PROG_EXT"
EOF

if test "$cross_compiling" = yes ; then
  LDCONFIG=:
else
case "$cf_cv_system_name" in #(vi
freebsd*) #(vi
  test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
  ;;
*) LDPATH=$PATH:/sbin:/usr/sbin
  # Extract the first word of "ldconfig", so it can be a program name with args.
set dummy ldconfig; ac_word=$2
echo "$as_me:2672: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_LDCONFIG+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $LDCONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
  ;;
  *)
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$LDPATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
   echo "$as_me:2689: found $ac_dir/$ac_word" >&5
   break
fi
done

  ;;
esac
fi
LDCONFIG=$ac_cv_path_LDCONFIG

if test -n "$LDCONFIG"; then
  echo "$as_me:2700: result: $LDCONFIG" >&5
echo "${ECHO_T}$LDCONFIG" >&6
else
  echo "$as_me:2703: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  ;;
esac
fi

echo "$as_me:2711: checking if you want to ensure bool is consistent with C++" >&5
echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6

# Check whether --with-cxx or --without-cxx was given.
if test "${with_cxx+set}" = set; then
  withval="$with_cxx"
  cf_with_cxx=$withval
else
  cf_with_cxx=yes
fi;
echo "$as_me:2721: result: $cf_with_cxx" >&5
echo "${ECHO_T}$cf_with_cxx" >&6
if test "X$cf_with_cxx" = Xno ; then
	CXX=""
	GXX=""
else
	# with autoconf 2.13, we can change the error to a warning:
		ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return
if test -n "$ac_tool_prefix"; then
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:2739: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
echo "$as_me:2754: found $ac_dir/$ac_word" >&5
break
done

fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  echo "$as_me:2762: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6
else
  echo "$as_me:2765: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:2778: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CXX="$ac_prog"
echo "$as_me:2793: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  echo "$as_me:2801: result: $ac_ct_CXX" >&5
echo "${ECHO_T}$ac_ct_CXX" >&6
else
  echo "$as_me:2804: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$ac_ct_CXX" && break
done
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"

  CXX=$ac_ct_CXX
fi

# Provide some information about the compiler.
echo "$as_me:2816:" \
     "checking for C++ compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:2819: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:2822: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:2824: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:2827: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:2829: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:2832: \$? = $ac_status" >&5
  (exit $ac_status); }

echo "$as_me:2835: checking whether we are using the GNU C++ compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2841 "configure"
#include "confdefs.h"

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2856: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2859: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2862: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2865: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:2877: result: $ac_cv_cxx_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
GXX=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="-g"
echo "$as_me:2883: checking whether $CXX accepts -g" >&5
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cxx_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2889 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2901: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2904: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2907: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2910: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cxx_g=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_prog_cxx_g=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:2920: result: $ac_cv_prog_cxx_g" >&5
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line 2947 "configure"
#include "confdefs.h"
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2960: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2963: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2966: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2969: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 2979 "configure"
#include "confdefs.h"
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2991: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2994: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2997: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3000: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

		# autoconf 2.5x removed the error - by hardcoding it to g++.
	if test "$CXX" = "g++" ; then
		# Extract the first word of "g++", so it can be a program name with args.
set dummy g++; ac_word=$2
echo "$as_me:3027: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $CXX in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
  ;;
  *)
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_CXX="$ac_dir/$ac_word"
   echo "$as_me:3044: found $ac_dir/$ac_word" >&5
   break
fi
done

  ;;
esac
fi
CXX=$ac_cv_path_CXX

if test -n "$CXX"; then
  echo "$as_me:3055: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6
else
  echo "$as_me:3058: result: no" >&5
echo "${ECHO_T}no" >&6
fi

	fi
	if test "$CXX" = "g++" ; then
		{ echo "$as_me:3064: WARNING: ignoring hardcoded g++" >&5
echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
		cf_with_cxx=no; CXX=""; GXX="";
	fi
fi

GXX_VERSION=none
if test "$GXX" = yes; then
	echo "$as_me:3072: checking version of g++" >&5
echo $ECHO_N "checking version of g++... $ECHO_C" >&6
	GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
	test -z "$GXX_VERSION" && GXX_VERSION=unknown
	echo "$as_me:3076: result: $GXX_VERSION" >&5
echo "${ECHO_T}$GXX_VERSION" >&6
fi

case $GXX_VERSION in
1*|2.[0-6]*)
	# GXX=""; CXX=""; ac_cv_prog_gxx=no
	# cf_cxx_library=no
	{ echo "$as_me:3084: WARNING: templates do not work" >&5
echo "$as_me: WARNING: templates do not work" >&2;}
	;;
esac

echo "$as_me:3089: checking if you want to build C++ binding and demo" >&5
echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6

# Check whether --with-cxx-binding or --without-cxx-binding was given.
if test "${with_cxx_binding+set}" = set; then
  withval="$with_cxx_binding"
  cf_with_cxx_binding=$withval
else
  cf_with_cxx_binding=$cf_with_cxx
fi;
echo "$as_me:3099: result: $cf_with_cxx_binding" >&5
echo "${ECHO_T}$cf_with_cxx_binding" >&6

echo "$as_me:3102: checking if you want to build with Ada95" >&5
echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6

# Check whether --with-ada or --without-ada was given.
if test "${with_ada+set}" = set; then
  withval="$with_ada"
  cf_with_ada=$withval
else
  cf_with_ada=yes
fi;
echo "$as_me:3112: result: $cf_with_ada" >&5
echo "${ECHO_T}$cf_with_ada" >&6

echo "$as_me:3115: checking if you want to build programs such as tic" >&5
echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6

# Check whether --with-progs or --without-progs was given.
if test "${with_progs+set}" = set; then
  withval="$with_progs"
  cf_with_progs=$withval
else
  cf_with_progs=yes
fi;
echo "$as_me:3125: result: $cf_with_progs" >&5
echo "${ECHO_T}$cf_with_progs" >&6

echo "$as_me:3128: checking if you wish to install curses.h" >&5
echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6

# Check whether --with-curses-h or --without-curses-h was given.
if test "${with_curses_h+set}" = set; then
  withval="$with_curses_h"
  with_curses_h=$withval
else
  with_curses_h=yes
fi;
echo "$as_me:3138: result: $with_curses_h" >&5
echo "${ECHO_T}$with_curses_h" >&6

modules_to_build="ncurses"
if test "X$cf_with_progs" != Xno ; then
modules_to_build="$modules_to_build progs tack"
fi
modules_to_build="$modules_to_build panel menu form"

test "$program_prefix" != NONE &&
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
# Double any \ or $.  echo might interpret backslashes.
# By default was `s,x,x', remove it if useless.
cat <<\_ACEOF >conftest.sed
s/[\\$]/&&/g;s/;s,x,x,$//
_ACEOF
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
rm conftest.sed

for ac_prog in mawk gawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:3164: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_AWK="$ac_prog"
echo "$as_me:3179: found $ac_dir/$ac_word" >&5
break
done

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  echo "$as_me:3187: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
else
  echo "$as_me:3190: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$AWK" && break
done

test -z "$AWK" && { { echo "$as_me:3197: error: No awk program found" >&5
echo "$as_me: error: No awk program found" >&2;}
   { (exit 1); exit 1; }; }

echo "$as_me:3201: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_prog_egrep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    then ac_cv_prog_egrep='grep -E'
    else ac_cv_prog_egrep='egrep'
    fi
fi
echo "$as_me:3211: result: $ac_cv_prog_egrep" >&5
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 EGREP=$ac_cv_prog_egrep

test -z "$EGREP" && { { echo "$as_me:3215: error: No egrep program found" >&5
echo "$as_me: error: No egrep program found" >&2;}
   { (exit 1); exit 1; }; }

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo "$as_me:3231: checking for a BSD compatible install" >&5
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
    ac_save_IFS=$IFS; IFS=$ac_path_separator
  for ac_dir in $PATH; do
    IFS=$ac_save_IFS
    # Account for people who put trailing slashes in PATH elements.
    case $ac_dir/ in
    / | ./ | .// | /cC/* \
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
    | /usr/ucb/* ) ;;
    *)
      # OSF1 and SCO ODT 3.0 have their own names for install.
      # Don't use installbsd from OSF since it installs stuff as root
      # by default.
      for ac_prog in ginstall scoinst install; do
        if $as_executable_p "$ac_dir/$ac_prog"; then
	  if test $ac_prog = install &&
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
	    break 2
	  fi
	fi
      done
      ;;
    esac
  done

fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  We don't cache a
    # path for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the path is relative.
    INSTALL=$ac_install_sh
  fi
fi
echo "$as_me:3280: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

case $INSTALL in
/*)
  ;;
*)
  cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
  test -z "$cf_dir" && cf_dir=.
  INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
  ;;
esac

for ac_prog in tdlint lint alint
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:3305: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_LINT+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$LINT"; then
  ac_cv_prog_LINT="$LINT" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_LINT="$ac_prog"
echo "$as_me:3320: found $ac_dir/$ac_word" >&5
break
done

fi
fi
LINT=$ac_cv_prog_LINT
if test -n "$LINT"; then
  echo "$as_me:3328: result: $LINT" >&5
echo "${ECHO_T}$LINT" >&6
else
  echo "$as_me:3331: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$LINT" && break
done

echo "$as_me:3338: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  echo "$as_me:3342: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:3345: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6
fi

echo "$as_me:3349: checking for long file names" >&5
echo $ECHO_N "checking for long file names... $ECHO_C" >&6
if test "${ac_cv_sys_long_file_names+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_sys_long_file_names=yes
# Test for long file names in all the places we know might matter:
#      .		the current directory, where building will happen
#      $prefix/lib	where we will be installing things
#      $exec_prefix/lib	likewise
# eval it to expand exec_prefix.
#      $TMPDIR		if set, where it might want to write temporary files
# if $TMPDIR is not set:
#      /tmp		where it might want to write temporary files
#      /var/tmp		likewise
#      /usr/tmp		likewise
if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
  ac_tmpdirs=$TMPDIR
else
  ac_tmpdirs='/tmp /var/tmp /usr/tmp'
fi
for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
  test -d $ac_dir || continue
  test -w $ac_dir || continue # It is less confusing to not echo anything here.
  ac_xdir=$ac_dir/cf$$
  (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
  ac_tf1=$ac_xdir/conftest9012345
  ac_tf2=$ac_xdir/conftest9012346
  (echo 1 >$ac_tf1) 2>/dev/null
  (echo 2 >$ac_tf2) 2>/dev/null
  ac_val=`cat $ac_tf1 2>/dev/null`
  if test ! -f $ac_tf1 || test "$ac_val" != 1; then
    ac_cv_sys_long_file_names=no
    rm -rf $ac_xdir 2>/dev/null
    break
  fi
  rm -rf $ac_xdir 2>/dev/null
done
fi
echo "$as_me:3388: result: $ac_cv_sys_long_file_names" >&5
echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
if test $ac_cv_sys_long_file_names = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_LONG_FILE_NAMES 1
EOF

fi

echo "$as_me:3398: checking if we should assume mixed-case filenames" >&5
echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6

# Check whether --enable-mixed-case or --disable-mixed-case was given.
if test "${enable_mixed_case+set}" = set; then
  enableval="$enable_mixed_case"
  enable_mixedcase=$enableval
else
  enable_mixedcase=auto
fi;
echo "$as_me:3408: result: $enable_mixedcase" >&5
echo "${ECHO_T}$enable_mixedcase" >&6
if test "$enable_mixedcase" = "auto" ; then

echo "$as_me:3412: checking if filesystem supports mixed-case filenames" >&5
echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
if test "${cf_cv_mixedcase+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test "$cross_compiling" = yes ; then
	case $target_alias in #(vi
	*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
		cf_cv_mixedcase=no
		;;
	*)
		cf_cv_mixedcase=yes
		;;
	esac
else
	rm -f conftest CONFTEST
	echo test >conftest
	if test -f CONFTEST ; then
		cf_cv_mixedcase=no
	else
		cf_cv_mixedcase=yes
	fi
	rm -f conftest CONFTEST
fi

fi
echo "$as_me:3439: result: $cf_cv_mixedcase" >&5
echo "${ECHO_T}$cf_cv_mixedcase" >&6
test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
#define MIXEDCASE_FILENAMES 1
EOF

else
    cf_cv_mixedcase=$enable_mixedcase
    if test "$enable_mixedcase" = "yes" ; then
        cat >>confdefs.h <<\EOF
#define MIXEDCASE_FILENAMES 1
EOF

    fi
fi

# do this after mixed-case option (tags/TAGS is not as important as tic).
echo "$as_me:3456: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.make <<\EOF
all:
	@@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
else
  eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftest.make
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$as_me:3476: result: yes" >&5
echo "${ECHO_T}yes" >&6
  SET_MAKE=
else
  echo "$as_me:3480: result: no" >&5
echo "${ECHO_T}no" >&6
  SET_MAKE="MAKE=${MAKE-make}"
fi

# Extract the first word of "ctags", so it can be a program name with args.
set dummy ctags; ac_word=$2
echo "$as_me:3487: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$MAKE_LOWER_TAGS"; then
  ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_MAKE_LOWER_TAGS="yes"
echo "$as_me:3502: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
fi
fi
MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
if test -n "$MAKE_LOWER_TAGS"; then
  echo "$as_me:3511: result: $MAKE_LOWER_TAGS" >&5
echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
else
  echo "$as_me:3514: result: no" >&5
echo "${ECHO_T}no" >&6
fi

if test "$cf_cv_mixedcase" = yes ; then
	# Extract the first word of "etags", so it can be a program name with args.
set dummy etags; ac_word=$2
echo "$as_me:3521: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$MAKE_UPPER_TAGS"; then
  ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_MAKE_UPPER_TAGS="yes"
echo "$as_me:3536: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
fi
fi
MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
if test -n "$MAKE_UPPER_TAGS"; then
  echo "$as_me:3545: result: $MAKE_UPPER_TAGS" >&5
echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
else
  echo "$as_me:3548: result: no" >&5
echo "${ECHO_T}no" >&6
fi

else
	MAKE_UPPER_TAGS=no
fi

if test "$MAKE_UPPER_TAGS" = yes ; then
	MAKE_UPPER_TAGS=
else
	MAKE_UPPER_TAGS="#"
fi

if test "$MAKE_LOWER_TAGS" = yes ; then
	MAKE_LOWER_TAGS=
else
	MAKE_LOWER_TAGS="#"
fi

echo "$as_me:3568: checking for makeflags variable" >&5
echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
if test "${cf_cv_makeflags+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cf_cv_makeflags=''
	for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
	do
		cat >cf_makeflags.tmp <<CF_EOF
SHELL = /bin/sh
all :
	@@ echo '.$cf_option'
CF_EOF
		cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ 	]*$,,'`
		case "$cf_result" in
		.*k)
			cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
			case "$cf_result" in
			.*CC=*)	cf_cv_makeflags=
				;;
			*)	cf_cv_makeflags=$cf_option
				;;
			esac
			break
			;;
		.-)	;;
		*)	echo "given option \"$cf_option\", no match \"$cf_result\""
			;;
		esac
	done
	rm -f cf_makeflags.tmp

fi
echo "$as_me:3602: result: $cf_cv_makeflags" >&5
echo "${ECHO_T}$cf_cv_makeflags" >&6

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo "$as_me:3608: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
echo "$as_me:3623: found $ac_dir/$ac_word" >&5
break
done

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  echo "$as_me:3631: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
else
  echo "$as_me:3634: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo "$as_me:3643: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_RANLIB="ranlib"
echo "$as_me:3658: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  echo "$as_me:3667: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6
else
  echo "$as_me:3670: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  RANLIB=$ac_ct_RANLIB
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
set dummy ${ac_tool_prefix}ld; ac_word=$2
echo "$as_me:3682: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$LD"; then
  ac_cv_prog_LD="$LD" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_LD="${ac_tool_prefix}ld"
echo "$as_me:3697: found $ac_dir/$ac_word" >&5
break
done

fi
fi
LD=$ac_cv_prog_LD
if test -n "$LD"; then
  echo "$as_me:3705: result: $LD" >&5
echo "${ECHO_T}$LD" >&6
else
  echo "$as_me:3708: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_LD"; then
  ac_ct_LD=$LD
  # Extract the first word of "ld", so it can be a program name with args.
set dummy ld; ac_word=$2
echo "$as_me:3717: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_LD"; then
  ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_LD="ld"
echo "$as_me:3732: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
fi
fi
ac_ct_LD=$ac_cv_prog_ac_ct_LD
if test -n "$ac_ct_LD"; then
  echo "$as_me:3741: result: $ac_ct_LD" >&5
echo "${ECHO_T}$ac_ct_LD" >&6
else
  echo "$as_me:3744: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  LD=$ac_ct_LD
else
  LD="$ac_cv_prog_LD"
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
echo "$as_me:3756: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_AR="${ac_tool_prefix}ar"
echo "$as_me:3771: found $ac_dir/$ac_word" >&5
break
done

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  echo "$as_me:3779: result: $AR" >&5
echo "${ECHO_T}$AR" >&6
else
  echo "$as_me:3782: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_AR"; then
  ac_ct_AR=$AR
  # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
echo "$as_me:3791: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_AR="ar"
echo "$as_me:3806: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  echo "$as_me:3815: result: $ac_ct_AR" >&5
echo "${ECHO_T}$ac_ct_AR" >&6
else
  echo "$as_me:3818: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  AR=$ac_ct_AR
else
  AR="$ac_cv_prog_AR"
fi

if test "${cf_cv_subst_AR_OPTS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

echo "$as_me:3831: checking for archiver options (symbol AR_OPTS)" >&5
echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6

if test -z "$AR_OPTS" ; then
	AR_OPTS=rv

fi

cf_cv_subst_AR_OPTS=$AR_OPTS
echo "$as_me:3840: result: $AR_OPTS" >&5
echo "${ECHO_T}$AR_OPTS" >&6

fi

echo "$as_me:3845: checking if you have specified an install-prefix" >&5
echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6

# Check whether --with-install-prefix or --without-install-prefix was given.
if test "${with_install_prefix+set}" = set; then
  withval="$with_install_prefix"
  case "$withval" in #(vi
	yes|no) #(vi
		;;
	*)	DESTDIR="$withval"
		;;
	esac
fi;
echo "$as_me:3858: result: $DESTDIR" >&5
echo "${ECHO_T}$DESTDIR" >&6

###############################################################################

# If we're cross-compiling, allow the user to override the tools and their
# options.  The configure script is oriented toward identifying the host
# compiler, etc., but we need a build compiler to generate parts of the source.

if test "$cross_compiling" = yes ; then

	# defaults that we might want to override
	: ${BUILD_CFLAGS:=''}
	: ${BUILD_CPPFLAGS:=''}
	: ${BUILD_LDFLAGS:=''}
	: ${BUILD_LIBS:=''}
	: ${BUILD_EXEEXT:='$x'}
	: ${BUILD_OBJEXT:='o'}

# Check whether --with-build-cc or --without-build-cc was given.
if test "${with_build_cc+set}" = set; then
  withval="$with_build_cc"
  BUILD_CC="$withval"
else
  for ac_prog in gcc cc cl
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:3886: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_BUILD_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$BUILD_CC"; then
  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_BUILD_CC="$ac_prog"
echo "$as_me:3901: found $ac_dir/$ac_word" >&5
break
done

fi
fi
BUILD_CC=$ac_cv_prog_BUILD_CC
if test -n "$BUILD_CC"; then
  echo "$as_me:3909: result: $BUILD_CC" >&5
echo "${ECHO_T}$BUILD_CC" >&6
else
  echo "$as_me:3912: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$BUILD_CC" && break
done

fi;
	echo "$as_me:3920: checking for native build C compiler" >&5
echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
	echo "$as_me:3922: result: $BUILD_CC" >&5
echo "${ECHO_T}$BUILD_CC" >&6

	echo "$as_me:3925: checking for native build C preprocessor" >&5
echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6

# Check whether --with-build-cpp or --without-build-cpp was given.
if test "${with_build_cpp+set}" = set; then
  withval="$with_build_cpp"
  BUILD_CPP="$withval"
else
  BUILD_CPP='${BUILD_CC} -E'
fi;
	echo "$as_me:3935: result: $BUILD_CPP" >&5
echo "${ECHO_T}$BUILD_CPP" >&6

	echo "$as_me:3938: checking for native build C flags" >&5
echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6

# Check whether --with-build-cflags or --without-build-cflags was given.
if test "${with_build_cflags+set}" = set; then
  withval="$with_build_cflags"
  BUILD_CFLAGS="$withval"
fi;
	echo "$as_me:3946: result: $BUILD_CFLAGS" >&5
echo "${ECHO_T}$BUILD_CFLAGS" >&6

	echo "$as_me:3949: checking for native build C preprocessor-flags" >&5
echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6

# Check whether --with-build-cppflags or --without-build-cppflags was given.
if test "${with_build_cppflags+set}" = set; then
  withval="$with_build_cppflags"
  BUILD_CPPFLAGS="$withval"
fi;
	echo "$as_me:3957: result: $BUILD_CPPFLAGS" >&5
echo "${ECHO_T}$BUILD_CPPFLAGS" >&6

	echo "$as_me:3960: checking for native build linker-flags" >&5
echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6

# Check whether --with-build-ldflags or --without-build-ldflags was given.
if test "${with_build_ldflags+set}" = set; then
  withval="$with_build_ldflags"
  BUILD_LDFLAGS="$withval"
fi;
	echo "$as_me:3968: result: $BUILD_LDFLAGS" >&5
echo "${ECHO_T}$BUILD_LDFLAGS" >&6

	echo "$as_me:3971: checking for native build linker-libraries" >&5
echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6

# Check whether --with-build-libs or --without-build-libs was given.
if test "${with_build_libs+set}" = set; then
  withval="$with_build_libs"
  BUILD_LIBS="$withval"
fi;
	echo "$as_me:3979: result: $BUILD_LIBS" >&5
echo "${ECHO_T}$BUILD_LIBS" >&6

	# this assumes we're on Unix.
	BUILD_EXEEXT=
	BUILD_OBJEXT=o

	: ${BUILD_CC:='${CC}'}

	if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
		{ { echo "$as_me:3989: error: Cross-build requires two compilers.
Use --with-build-cc to specify the native compiler." >&5
echo "$as_me: error: Cross-build requires two compilers.
Use --with-build-cc to specify the native compiler." >&2;}
   { (exit 1); exit 1; }; }
	fi

else
	: ${BUILD_CC:='${CC}'}
	: ${BUILD_CPP:='${CPP}'}
	: ${BUILD_CFLAGS:='${CFLAGS}'}
	: ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
	: ${BUILD_LDFLAGS:='${LDFLAGS}'}
	: ${BUILD_LIBS:='${LIBS}'}
	: ${BUILD_EXEEXT:='$x'}
	: ${BUILD_OBJEXT:='o'}
fi

###############################################################################

### Options to allow the user to specify the set of libraries which are used.
### Use "--without-normal --with-shared" to allow the default model to be
### shared, for example.
cf_list_models=""

LIBTOOL=

# common library maintenance symbols that are convenient for libtool scripts:
LIB_CREATE='${AR} -cr'
LIB_OBJECT='${OBJECTS}'
LIB_SUFFIX=.a
LIB_PREP="$RANLIB"

# symbols used to prop libtool up to enable it to determine what it should be
# doing:
LIB_CLEAN=
LIB_COMPILE=
LIB_LINK='${CC}'
LIB_INSTALL=
LIB_UNINSTALL=

echo "$as_me:4030: checking if you want to build libraries with libtool" >&5
echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6

# Check whether --with-libtool or --without-libtool was given.
if test "${with_libtool+set}" = set; then
  withval="$with_libtool"
  with_libtool=$withval
else
  with_libtool=no
fi;
echo "$as_me:4040: result: $with_libtool" >&5
echo "${ECHO_T}$with_libtool" >&6
if test "$with_libtool" != "no"; then

 	if test "$with_libtool" != "yes" ; then

if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
fi

case ".$with_libtool" in #(vi
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
  ;;
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  ;;
.\${*prefix}*) #(vi
  eval with_libtool="$with_libtool"
  case ".$with_libtool" in #(vi
  .NONE/*)
    with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
    ;;
  esac
  ;; #(vi
.no|.NONE/*)
  with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
  ;;
*)
  { { echo "$as_me:4071: error: expected a pathname, not \"$with_libtool\"" >&5
echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
   { (exit 1); exit 1; }; }
  ;;
esac

		LIBTOOL=$with_libtool
	else
 		# Extract the first word of "libtool", so it can be a program name with args.
set dummy libtool; ac_word=$2
echo "$as_me:4081: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_LIBTOOL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $LIBTOOL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
  ;;
  *)
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
   echo "$as_me:4098: found $ac_dir/$ac_word" >&5
   break
fi
done

  ;;
esac
fi
LIBTOOL=$ac_cv_path_LIBTOOL

if test -n "$LIBTOOL"; then
  echo "$as_me:4109: result: $LIBTOOL" >&5
echo "${ECHO_T}$LIBTOOL" >&6
else
  echo "$as_me:4112: result: no" >&5
echo "${ECHO_T}no" >&6
fi

 	fi
 	if test -z "$LIBTOOL" ; then
 		{ { echo "$as_me:4118: error: Cannot find libtool" >&5
echo "$as_me: error: Cannot find libtool" >&2;}
   { (exit 1); exit 1; }; }
 	fi
	LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} -o'
	LIB_OBJECT='${OBJECTS:.o=.lo}'
	LIB_SUFFIX=.la
	LIB_CLEAN='${LIBTOOL} --mode=clean'
	LIB_COMPILE='${LIBTOOL} --mode=compile'
	LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
	LIB_INSTALL='${LIBTOOL} --mode=install'
	LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
	LIB_PREP=:

	# Show the version of libtool
	echo "$as_me:4133: checking version of libtool" >&5
echo $ECHO_N "checking version of libtool... $ECHO_C" >&6

	# Save the version in a cache variable - this is not entirely a good
	# thing, but the version string from libtool is very ugly, and for
	# bug reports it might be useful to have the original string.
	cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
	echo "$as_me:4140: result: $cf_cv_libtool_version" >&5
echo "${ECHO_T}$cf_cv_libtool_version" >&6
	if test -z "$cf_cv_libtool_version" ; then
		{ { echo "$as_me:4143: error: This is not GNU libtool" >&5
echo "$as_me: error: This is not GNU libtool" >&2;}
   { (exit 1); exit 1; }; }
	fi

	# special hack to add --tag option for C++ compiler
	case $cf_cv_libtool_version in
	1.[5-9]*|[2-9]*)
		LIBTOOL_CXX="$LIBTOOL --tag=CXX"
		LIBTOOL="$LIBTOOL --tag=CC"
		;;
	*)
		LIBTOOL_CXX="$LIBTOOL"
		;;
	esac
else
	LIBTOOL=""
	LIBTOOL_CXX=""
fi

test -z "$LIBTOOL" && ECHO_LT=

if test "$with_libtool" != "no" ; then

cf_list_models="$cf_list_models libtool"

else

echo "$as_me:4171: checking if you want to build shared libraries" >&5
echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6

# Check whether --with-shared or --without-shared was given.
if test "${with_shared+set}" = set; then
  withval="$with_shared"
  with_shared=$withval
else
  with_shared=no
fi;
echo "$as_me:4181: result: $with_shared" >&5
echo "${ECHO_T}$with_shared" >&6
test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"

echo "$as_me:4185: checking if you want to build static libraries" >&5
echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6

# Check whether --with-normal or --without-normal was given.
if test "${with_normal+set}" = set; then
  withval="$with_normal"
  with_normal=$withval
else
  with_normal=yes
fi;
echo "$as_me:4195: result: $with_normal" >&5
echo "${ECHO_T}$with_normal" >&6
test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"

echo "$as_me:4199: checking if you want to build debug libraries" >&5
echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6

# Check whether --with-debug or --without-debug was given.
if test "${with_debug+set}" = set; then
  withval="$with_debug"
  with_debug=$withval
else
  with_debug=yes
fi;
echo "$as_me:4209: result: $with_debug" >&5
echo "${ECHO_T}$with_debug" >&6
test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"

echo "$as_me:4213: checking if you want to build profiling libraries" >&5
echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6

# Check whether --with-profile or --without-profile was given.
if test "${with_profile+set}" = set; then
  withval="$with_profile"
  with_profile=$withval
else
  with_profile=no
fi;
echo "$as_me:4223: result: $with_profile" >&5
echo "${ECHO_T}$with_profile" >&6
test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"

fi

###############################################################################

echo "$as_me:4231: checking for specified models" >&5
echo $ECHO_N "checking for specified models... $ECHO_C" >&6
test -z "$cf_list_models" && cf_list_models=normal
test "$with_libtool" != "no" && cf_list_models=libtool
echo "$as_me:4235: result: $cf_list_models" >&5
echo "${ECHO_T}$cf_list_models" >&6

### Use the first model as the default, and save its suffix for use in building
### up test-applications.
echo "$as_me:4240: checking for default model" >&5
echo $ECHO_N "checking for default model... $ECHO_C" >&6
DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
echo "$as_me:4243: result: $DFT_LWR_MODEL" >&5
echo "${ECHO_T}$DFT_LWR_MODEL" >&6

DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`

TICS_NAME=tic

TINFO_NAME=tinfo

LIB_NAME=ncurses

LIB_DIR=../lib
LIB_2ND=../../lib

	case $cf_cv_system_name in #(vi
	OS/2*|os2*) #(vi
        LIB_PREFIX=''
        ;;
	*)	LIB_PREFIX='lib'
        ;;
	esac
cf_prefix=$LIB_PREFIX

LIB_PREFIX=$cf_prefix

LIB_SUFFIX=

###############################################################################

echo "$as_me:4272: checking if you want to build a separate terminfo library" >&5
echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6

# Check whether --with-termlib or --without-termlib was given.
if test "${with_termlib+set}" = set; then
  withval="$with_termlib"
  with_termlib=$withval
else
  with_termlib=no
fi;
echo "$as_me:4282: result: $with_termlib" >&5
echo "${ECHO_T}$with_termlib" >&6

echo "$as_me:4285: checking if you want to build a separate tic library" >&5
echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6

# Check whether --with-ticlib or --without-ticlib was given.
if test "${with_ticlib+set}" = set; then
  withval="$with_ticlib"
  with_ticlib=$withval
else
  with_ticlib=no
fi;
echo "$as_me:4295: result: $with_ticlib" >&5
echo "${ECHO_T}$with_ticlib" >&6

### Checks for special libraries, must be done up-front.
SHLIB_LIST=""

echo "$as_me:4301: checking if you want to link with the GPM mouse library" >&5
echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6

# Check whether --with-gpm or --without-gpm was given.
if test "${with_gpm+set}" = set; then
  withval="$with_gpm"
  with_gpm=$withval
else
  with_gpm=maybe
fi;
echo "$as_me:4311: result: $with_gpm" >&5
echo "${ECHO_T}$with_gpm" >&6

if test "$with_gpm" != no ; then
	echo "$as_me:4315: checking for gpm.h" >&5
echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
if test "${ac_cv_header_gpm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4321 "configure"
#include "confdefs.h"
#include <gpm.h>
_ACEOF
if { (eval echo "$as_me:4325: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:4331: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_gpm_h=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_gpm_h=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:4350: result: $ac_cv_header_gpm_h" >&5
echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
if test $ac_cv_header_gpm_h = yes; then

		cat >>confdefs.h <<\EOF
#define HAVE_GPM_H 1
EOF

		if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
			test -n "$verbose" && echo "	assuming we really have GPM library" 1>&6

echo "${as_me-configure}:4361: testing assuming we really have GPM library ..." 1>&5

			cat >>confdefs.h <<\EOF
#define HAVE_LIBGPM 1
EOF

		else
			echo "$as_me:4368: checking for Gpm_Open in -lgpm" >&5
echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgpm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 4376 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char Gpm_Open ();
int
main ()
{
Gpm_Open ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4395: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4398: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4401: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4404: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_gpm_Gpm_Open=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_gpm_Gpm_Open=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:4415: result: $ac_cv_lib_gpm_Gpm_Open" >&5
echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
if test $ac_cv_lib_gpm_Gpm_Open = yes; then
  :
else

				{ { echo "$as_me:4421: error: Cannot link with GPM library" >&5
echo "$as_me: error: Cannot link with GPM library" >&2;}
   { (exit 1); exit 1; }; }
		fi
		with_gpm=yes

fi

else

		test "$with_gpm" != maybe && { echo "$as_me:4431: WARNING: Cannot find GPM header" >&5
echo "$as_me: WARNING: Cannot find GPM header" >&2;}
		with_gpm=no

fi

fi

if test "$with_gpm" != no ; then
	echo "$as_me:4440: checking if you want to load GPM dynamically" >&5
echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6

# Check whether --with-dlsym or --without-dlsym was given.
if test "${with_dlsym+set}" = set; then
  withval="$with_dlsym"
  with_dlsym=$withval
else
  with_dlsym=yes
fi;
	echo "$as_me:4450: result: $with_dlsym" >&5
echo "${ECHO_T}$with_dlsym" >&6
	if test "$with_dlsym" = yes ; then

cf_have_dlsym=no
echo "$as_me:4455: checking for dlsym" >&5
echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
if test "${ac_cv_func_dlsym+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4461 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlsym (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlsym ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dlsym) || defined (__stub___dlsym)
choke me
#else
f = dlsym;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4492: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4495: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4498: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4501: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_dlsym=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_dlsym=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:4511: result: $ac_cv_func_dlsym" >&5
echo "${ECHO_T}$ac_cv_func_dlsym" >&6
if test $ac_cv_func_dlsym = yes; then
  cf_have_dlsym=yes
else

cf_have_libdl=no
echo "$as_me:4518: checking for dlsym in -ldl" >&5
echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlsym+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 4526 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlsym ();
int
main ()
{
dlsym ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4545: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4548: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4551: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4554: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlsym=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dl_dlsym=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:4565: result: $ac_cv_lib_dl_dlsym" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
if test $ac_cv_lib_dl_dlsym = yes; then

	cf_have_dlsym=yes
	cf_have_libdl=yes
fi

fi

if test "$cf_have_dlsym" = yes ; then
	test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"

	echo "$as_me:4578: checking whether able to link to dl*() functions" >&5
echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
	cat >conftest.$ac_ext <<_ACEOF
#line 4581 "configure"
#include "confdefs.h"
#include <dlfcn.h>
int
main ()
{

		void *obj;
		if ((obj = dlopen("filename", 0)) != 0) {
			if (dlsym(obj, "symbolname") == 0) {
			dlclose(obj);
			}
		}
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4599: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4602: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4605: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4608: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

		cat >>confdefs.h <<\EOF
#define HAVE_LIBDL 1
EOF

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

		{ { echo "$as_me:4619: error: Cannot link test program for libdl" >&5
echo "$as_me: error: Cannot link test program for libdl" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	echo "$as_me:4624: result: ok" >&5
echo "${ECHO_T}ok" >&6
else
	{ { echo "$as_me:4627: error: Cannot find dlsym function" >&5
echo "$as_me: error: Cannot find dlsym function" >&2;}
   { (exit 1); exit 1; }; }
fi

		if test "$with_gpm" != yes ; then
			test -n "$verbose" && echo "	assuming soname for gpm is $with_gpm" 1>&6

echo "${as_me-configure}:4635: testing assuming soname for gpm is $with_gpm ..." 1>&5

			cf_cv_gpm_soname="$with_gpm"
		else

echo "$as_me:4640: checking for soname of gpm library" >&5
echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
if test "${cf_cv_gpm_soname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_gpm_soname=unknown
if test "$cross_compiling" != yes ; then
cat >conftest.$ac_ext <<CF_EOF
#include <gpm.h>
int main()
{
if (Gpm_Open(0,0)) Gpm_Close();
	${cf_cv_main_return:-return}(0);
}
CF_EOF
cf_save_LIBS="$LIBS"
	LIBS="-lgpm $LIBS"
	if { (eval echo "$as_me:4658: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4661: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
		if { (eval echo "$as_me:4663: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4666: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
			cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
			test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
		fi
	fi
rm -f conftest*
LIBS="$cf_save_LIBS"
fi

fi
echo "$as_me:4677: result: $cf_cv_gpm_soname" >&5
echo "${ECHO_T}$cf_cv_gpm_soname" >&6

		fi
		test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
#define LIBGPM_SONAME "$cf_cv_gpm_soname"
EOF

		SHLIB_LIST="-ldl $SHLIB_LIST"
	else
		SHLIB_LIST="-lgpm $SHLIB_LIST"
	fi
	cat >>confdefs.h <<\EOF
#define HAVE_LIBGPM 1
EOF

echo "$as_me:4693: checking for Gpm_Wgetch in -lgpm" >&5
echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgpm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 4701 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char Gpm_Wgetch ();
int
main ()
{
Gpm_Wgetch ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4720: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4723: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4726: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4729: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_gpm_Gpm_Wgetch=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_gpm_Gpm_Wgetch=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:4740: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then

echo "$as_me:4744: checking if GPM is weakly bound to curses library" >&5
echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
if test "${cf_cv_check_gpm_wgetch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_check_gpm_wgetch=unknown
if test "$cross_compiling" != yes ; then

cat >conftest.$ac_ext <<CF_EOF
#include <gpm.h>
int main()
{
	Gpm_Wgetch();
	${cf_cv_main_return:-return}(0);
}
CF_EOF

	cf_save_LIBS="$LIBS"
	# This only works if we can look at the symbol table.  If a shared
	# library is stripped for install, we cannot use that.  So we're forced
	# to rely on the static library, noting that some packagers may not
	# include it.
	LIBS="-static -lgpm -dynamic $LIBS"
	if { (eval echo "$as_me:4768: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4771: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
		if { (eval echo "$as_me:4773: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4776: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
			cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
			test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
			test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
		fi
	fi
	rm -f conftest*
	LIBS="$cf_save_LIBS"
fi

fi
echo "$as_me:4788: result: $cf_cv_check_gpm_wgetch" >&5
echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6

if test "$cf_cv_check_gpm_wgetch" != yes ; then
	{ echo "$as_me:4792: WARNING: GPM library is already linked with curses - read the FAQ" >&5
echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
fi

fi

fi

# not everyone has "test -c"
if test -c /dev/sysmouse 2>/dev/null ; then
echo "$as_me:4802: checking if you want to use sysmouse" >&5
echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6

# Check whether --with-sysmouse or --without-sysmouse was given.
if test "${with_sysmouse+set}" = set; then
  withval="$with_sysmouse"
  cf_with_sysmouse=$withval
else
  cf_with_sysmouse=maybe
fi;
	if test "$cf_with_sysmouse" != no ; then
	cat >conftest.$ac_ext <<_ACEOF
#line 4814 "configure"
#include "confdefs.h"

#include <osreldate.h>
#if (__FreeBSD_version >= 400017)
#include <sys/consio.h>
#include <sys/fbio.h>
#else
#include <machine/console.h>
#endif

int
main ()
{

	struct mouse_info the_mouse;
	ioctl(0, CONS_MOUSECTL, &the_mouse);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4837: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4840: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4843: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4846: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_with_sysmouse=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_with_sysmouse=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	fi
echo "$as_me:4856: result: $cf_with_sysmouse" >&5
echo "${ECHO_T}$cf_with_sysmouse" >&6
test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
#define USE_SYSMOUSE 1
EOF

fi

if test X"$CC_G_OPT" = X"" ; then
	CC_G_OPT='-g'
	test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
fi

if test X"$CXX_G_OPT" = X"" ; then
	CXX_G_OPT='-g'
	test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
fi

echo "$as_me:4874: checking for default loader flags" >&5
echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
case $DFT_LWR_MODEL in
libtool) LD_MODEL=''   ;;
normal)  LD_MODEL=''   ;;
debug)   LD_MODEL=$CC_G_OPT ;;
profile) LD_MODEL='-pg';;
shared)  LD_MODEL=''   ;;
esac
echo "$as_me:4883: result: $LD_MODEL" >&5
echo "${ECHO_T}$LD_MODEL" >&6

case $DFT_LWR_MODEL in
shared)

echo "$as_me:4889: checking if rpath option should be used" >&5
echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6

# Check whether --enable-rpath or --disable-rpath was given.
if test "${enable_rpath+set}" = set; then
  enableval="$enable_rpath"
  cf_cv_ld_rpath=$enableval
else
  cf_cv_ld_rpath=no
fi;
echo "$as_me:4899: result: $cf_cv_ld_rpath" >&5
echo "${ECHO_T}$cf_cv_ld_rpath" >&6

echo "$as_me:4902: checking if shared libraries should be relinked during install" >&5
echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6

# Check whether --enable-relink or --disable-relink was given.
if test "${enable_relink+set}" = set; then
  enableval="$enable_relink"
  cf_cv_do_relink=$enableval
else
  cf_cv_do_relink=yes
fi;
echo "$as_me:4912: result: $cf_cv_do_relink" >&5
echo "${ECHO_T}$cf_cv_do_relink" >&6
	;;
esac

	LOCAL_LDFLAGS=
	LOCAL_LDFLAGS2=
	LD_SHARED_OPTS=
	INSTALL_LIB="-m 644"

	cf_cv_do_symlinks=no

	echo "$as_me:4924: checking if release/abi version should be used for shared libs" >&5
echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6

# Check whether --with-shlib-version or --without-shlib-version was given.
if test "${with_shlib_version+set}" = set; then
  withval="$with_shlib_version"
  test -z "$withval" && withval=auto
	case $withval in #(vi
	yes) #(vi
		cf_cv_shlib_version=auto
		;;
	rel|abi|auto|no) #(vi
		cf_cv_shlib_version=$withval
		;;
	*)
		{ { echo "$as_me:4939: error: option value must be one of: rel, abi, auto or no" >&5
echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
   { (exit 1); exit 1; }; }
		;;
	esac

else
  cf_cv_shlib_version=auto
fi;
	echo "$as_me:4948: result: $cf_cv_shlib_version" >&5
echo "${ECHO_T}$cf_cv_shlib_version" >&6

	cf_cv_rm_so_locs=no

	# Some less-capable ports of gcc support only -fpic
	CC_SHARED_OPTS=
	if test "$GCC" = yes
	then
		echo "$as_me:4957: checking which $CC option to use" >&5
echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
		cf_save_CFLAGS="$CFLAGS"
		for CC_SHARED_OPTS in -fPIC -fpic ''
		do
			CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
			cat >conftest.$ac_ext <<_ACEOF
#line 4964 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
int x = 1
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4976: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4979: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4982: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4985: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		done
		echo "$as_me:4994: result: $CC_SHARED_OPTS" >&5
echo "${ECHO_T}$CC_SHARED_OPTS" >&6
		CFLAGS="$cf_save_CFLAGS"
	fi

	cf_cv_shlib_version_infix=no

	case $cf_cv_system_name in
	beos*)
		MK_SHARED_LIB='${CC} ${CFLAGS} -o $@@ -Xlinker -soname=`basename $@@` -nostart -e 0'
		;;
	cygwin*)
		CC_SHARED_OPTS=
		MK_SHARED_LIB='sh ../mk_shared_lib.sh $@@ ${CC} ${CFLAGS}'
		cf_cv_shlib_version=cygdll
		cf_cv_shlib_version_infix=cygdll
		cat >mk_shared_lib.sh <<-CF_EOF
		#!/bin/sh
		SHARED_LIB=\$1
		IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
		shift
		cat <<-EOF
		Linking shared library
		** SHARED_LIB \$SHARED_LIB
		** IMPORT_LIB \$IMPORT_LIB
EOF
		exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
CF_EOF
		chmod +x mk_shared_lib.sh
		;;
	darwin*)
		EXTRA_CFLAGS="-no-cpp-precomp"
		CC_SHARED_OPTS="-dynamic"
		MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@@'
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
		cf_cv_shlib_version_infix=yes
		echo "$as_me:5030: checking if ld -search_paths_first works" >&5
echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

			cf_save_LDFLAGS=$LDFLAGS
			LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
			cat >conftest.$ac_ext <<_ACEOF
#line 5039 "configure"
#include "confdefs.h"

int
main ()
{
int i;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5051: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5054: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5057: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5060: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_ldflags_search_paths_first=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_ldflags_search_paths_first=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
				LDFLAGS=$cf_save_LDFLAGS
fi
echo "$as_me:5071: result: $cf_cv_ldflags_search_paths_first" >&5
echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
		if test $cf_cv_ldflags_search_paths_first = yes; then
			LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
		fi
		;;
	hpux*)
		# (tested with gcc 2.7.2 -- I don't have c89)
		if test "$GCC" = yes; then
			LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
		else
			CC_SHARED_OPTS='+Z'
			LD_SHARED_OPTS='-Wl,+b,${libdir}'
		fi
		MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@@'
		# HP-UX shared libraries must be executable, and should be
		# readonly to exploit a quirk in the memory manager.
		INSTALL_LIB="-m 555"
		;;
	irix*)
		if test "$cf_cv_ld_rpath" = yes ; then
			if test "$GCC" = yes; then
				cf_ld_rpath_opt="-Wl,-rpath,"
				EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
			else
				cf_ld_rpath_opt="-rpath "
				EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
			fi
		fi
		# tested with IRIX 5.2 and 'cc'.
		if test "$GCC" != yes; then
			CC_SHARED_OPTS='-KPIC'
			MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@@` -o $@@'
		else
			MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@@` -o $@@'
		fi
		cf_cv_rm_so_locs=yes
		;;
	linux*|gnu*|k*bsd*-gnu)
		if test "$DFT_LWR_MODEL" = "shared" ; then
			LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
		fi
		if test "$cf_cv_ld_rpath" = yes ; then
			cf_ld_rpath_opt="-Wl,-rpath,"
			EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
		fi

	test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
	if test "$cf_cv_shlib_version" = rel; then
		cf_cv_shared_soname='`basename $@@ .${REL_VERSION}`.${ABI_VERSION}'
	else
		cf_cv_shared_soname='`basename $@@`'
	fi

		MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@@'
		;;
	openbsd[2-9].*)
		if test "$DFT_LWR_MODEL" = "shared" ; then
			LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
		fi
		if test "$cf_cv_ld_rpath" = yes ; then
			cf_ld_rpath_opt="-Wl,-rpath,"
			EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
		fi
		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"

	test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
	if test "$cf_cv_shlib_version" = rel; then
		cf_cv_shared_soname='`basename $@@ .${REL_VERSION}`.${ABI_VERSION}'
	else
		cf_cv_shared_soname='`basename $@@`'
	fi

		MK_SHARED_LIB='${CC} ${CFLAGS} -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@@'
		;;
	nto-qnx*|openbsd*|freebsd[12].*)
		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
		MK_SHARED_LIB='${LD} -Bshareable -o $@@'
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
		;;
	freebsd*)
		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
		if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
			LOCAL_LDFLAGS="-rpath \$(LOCAL_LIBDIR)"
			LOCAL_LDFLAGS2="-rpath \${libdir} $LOCAL_LDFLAGS"
			cf_ld_rpath_opt="-rpath "
			EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
		fi

	test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
	if test "$cf_cv_shlib_version" = rel; then
		cf_cv_shared_soname='`basename $@@ .${REL_VERSION}`.${ABI_VERSION}'
	else
		cf_cv_shared_soname='`basename $@@`'
	fi

		MK_SHARED_LIB='${LD} -Bshareable -soname=`basename $@@` -o $@@'
		;;
	netbsd*)
		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
		test "$cf_cv_ld_rpath" = yes && cf_ld_rpath_opt="-Wl,-rpath,"
		if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
			LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
			EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
			if test "$cf_cv_shlib_version" = auto; then
			if test -f /usr/libexec/ld.elf_so; then
				cf_cv_shlib_version=abi
			else
				cf_cv_shlib_version=rel
			fi
			fi

	test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
	if test "$cf_cv_shlib_version" = rel; then
		cf_cv_shared_soname='`basename $@@ .${REL_VERSION}`.${ABI_VERSION}'
	else
		cf_cv_shared_soname='`basename $@@`'
	fi

			MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@@'
		else
			MK_SHARED_LIB='${LD} -Bshareable -o $@@'
		fi
		;;
	osf*|mls+*)
		# tested with OSF/1 V3.2 and 'cc'
		# tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
		# link with shared libs).
		MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@@`'
		case $host_os in
		osf4*)
			MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
			;;
		esac
		MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@@'
		if test "$DFT_LWR_MODEL" = "shared" ; then
			LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
		fi
		if test "$cf_cv_ld_rpath" = yes ; then
			cf_ld_rpath_opt="-rpath"
			# EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
		fi
		cf_cv_rm_so_locs=yes
		;;
	sco3.2v5*)  # (also uw2* and UW7) hops 13-Apr-98
		# tested with osr5.0.5
		if test "$GCC" != yes; then
			CC_SHARED_OPTS='-belf -KPIC'
		fi
		MK_SHARED_LIB='${LD} -dy -G -h `basename $@@ .${REL_VERSION}`.${ABI_VERSION} -o $@@'
		if test "$cf_cv_ld_rpath" = yes ; then
			# only way is to set LD_RUN_PATH but no switch for it
			RUN_PATH=$libdir
		fi
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
		LINK_PROGS='LD_RUN_PATH=${libdir}'
		LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
		;;
	sunos4*)
		# tested with SunOS 4.1.1 and gcc 2.7.0
		if test "$GCC" != yes; then
			CC_SHARED_OPTS='-KPIC'
		fi
		MK_SHARED_LIB='${LD} -assert pure-text -o $@@'
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
		;;
	solaris2*)
		# tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
		# tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
		if test "$DFT_LWR_MODEL" = "shared" ; then
			LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
		fi
		if test "$cf_cv_ld_rpath" = yes ; then
			cf_ld_rpath_opt="-R"
			EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
		fi

	test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
	if test "$cf_cv_shlib_version" = rel; then
		cf_cv_shared_soname='`basename $@@ .${REL_VERSION}`.${ABI_VERSION}'
	else
		cf_cv_shared_soname='`basename $@@`'
	fi

		if test "$GCC" != yes; then
			CC_SHARED_OPTS='-xcode=pic32'
			MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@@'
		else
			MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@@'
		fi
		;;
	sysv5uw7*|unix_sv*)
		# tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
		if test "$GCC" != yes; then
			CC_SHARED_OPTS='-KPIC'
		fi
		MK_SHARED_LIB='${LD} -d y -G -o $@@'
		;;
	*)
		CC_SHARED_OPTS='unknown'
		MK_SHARED_LIB='echo unknown'
		;;
	esac

	# This works if the last tokens in $MK_SHARED_LIB are the -o target.
	case "$cf_cv_shlib_version" in #(vi
	rel|abi)
		case "$MK_SHARED_LIB" in #(vi
		*'-o $@@')
			test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
			;;
		*)
			{ echo "$as_me:5288: WARNING: ignored --with-shlib-version" >&5
echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
			;;
		esac
		;;
	esac

	if test -n "$cf_ld_rpath_opt" ; then
		echo "$as_me:5296: checking if we need a space after rpath option" >&5
echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
		cf_save_LIBS="$LIBS"
		LIBS="$LIBS ${cf_ld_rpath_opt}$libdir"
		cat >conftest.$ac_ext <<_ACEOF
#line 5301 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5313: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5316: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5319: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5322: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_rpath_space=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_rpath_space=yes
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
		LIBS="$cf_save_LIBS"
		echo "$as_me:5332: result: $cf_rpath_space" >&5
echo "${ECHO_T}$cf_rpath_space" >&6
		test "$cf_rpath_space" = yes && cf_ld_rpath_opt="$cf_ld_rpath_opt "
		MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${libdir}"
	fi

if test "$CC_SHARED_OPTS" = "unknown"; then
	for model in $cf_list_models; do
		if test "$model" = "shared"; then
			{ { echo "$as_me:5341: error: Shared libraries are not supported in this version" >&5
echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
   { (exit 1); exit 1; }; }
		fi
	done
fi

###############################################################################

###	use option --disable-overwrite to leave out the link to -lcurses
echo "$as_me:5351: checking if you wish to install ncurses overwriting curses" >&5
echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6

# Check whether --enable-overwrite or --disable-overwrite was given.
if test "${enable_overwrite+set}" = set; then
  enableval="$enable_overwrite"
  with_overwrite=$enableval
else
  if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
fi;
echo "$as_me:5361: result: $with_overwrite" >&5
echo "${ECHO_T}$with_overwrite" >&6

echo "$as_me:5364: checking if external terminfo-database is used" >&5
echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6

# Check whether --enable-database or --disable-database was given.
if test "${enable_database+set}" = set; then
  enableval="$enable_database"
  use_database=$enableval
else
  use_database=yes
fi;
echo "$as_me:5374: result: $use_database" >&5
echo "${ECHO_T}$use_database" >&6

case $host_os in #(vi
os2*) #(vi
	TERMINFO_SRC='${top_srcdir}/misc/emx.src'
	;;
*) #(vi
	TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
	;;
esac

	case $cf_cv_system_name in
	os2*)	PATHSEP=';'  ;;
	*)	PATHSEP=':'  ;;
	esac

if test "$use_database" != no ; then
	cat >>confdefs.h <<\EOF
#define USE_DATABASE 1
EOF

	echo "$as_me:5396: checking which terminfo source-file will be installed" >&5
echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6

# Check whether --enable-database or --disable-database was given.
if test "${enable_database+set}" = set; then
  enableval="$enable_database"
  TERMINFO_SRC=$withval
fi;
	echo "$as_me:5404: result: $TERMINFO_SRC" >&5
echo "${ECHO_T}$TERMINFO_SRC" >&6

	echo "$as_me:5407: checking whether to use hashed database instead of directory/tree" >&5
echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6

# Check whether --with-hashed-db or --without-hashed-db was given.
if test "${with_hashed_db+set}" = set; then
  withval="$with_hashed_db"

else
  with_hashed_db=no
fi;
	echo "$as_me:5417: result: $with_hashed_db" >&5
echo "${ECHO_T}$with_hashed_db" >&6
else
	with_hashed_db=no
fi

echo "$as_me:5423: checking for list of fallback descriptions" >&5
echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6

# Check whether --with-fallbacks or --without-fallbacks was given.
if test "${with_fallbacks+set}" = set; then
  withval="$with_fallbacks"
  with_fallback=$withval
else
  with_fallback=
fi;
echo "$as_me:5433: result: $with_fallback" >&5
echo "${ECHO_T}$with_fallback" >&6
FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`

echo "$as_me:5437: checking if you want modern xterm or antique" >&5
echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6

# Check whether --with-xterm-new or --without-xterm-new was given.
if test "${with_xterm_new+set}" = set; then
  withval="$with_xterm_new"
  with_xterm_new=$withval
else
  with_xterm_new=yes
fi;
case $with_xterm_new in
no)	with_xterm_new=xterm-old;;
*)	with_xterm_new=xterm-new;;
esac
echo "$as_me:5451: result: $with_xterm_new" >&5
echo "${ECHO_T}$with_xterm_new" >&6
WHICH_XTERM=$with_xterm_new

MAKE_TERMINFO=
if test "$use_database" = no ; then
	TERMINFO="${datadir}/terminfo"
	MAKE_TERMINFO="#"
else

echo "$as_me:5461: checking for list of terminfo directories" >&5
echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6

# Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
if test "${with_terminfo_dirs+set}" = set; then
  withval="$with_terminfo_dirs"

else
  withval=${TERMINFO_DIRS-${datadir}/terminfo}
fi;
IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
cf_dst_path=
for cf_src_path in $withval
do

if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
fi

case ".$cf_src_path" in #(vi
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
  ;;
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  ;;
.\${*prefix}*) #(vi
  eval cf_src_path="$cf_src_path"
  case ".$cf_src_path" in #(vi
  .NONE/*)
    cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
    ;;
  esac
  ;; #(vi
.no|.NONE/*)
  cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
  ;;
*)
  { { echo "$as_me:5501: error: expected a pathname, not \"$cf_src_path\"" >&5
echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
   { (exit 1); exit 1; }; }
  ;;
esac

  test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
  cf_dst_path="${cf_dst_path}${cf_src_path}"
done
IFS="$ac_save_ifs"

eval 'TERMINFO_DIRS="$cf_dst_path"'

echo "$as_me:5514: result: $TERMINFO_DIRS" >&5
echo "${ECHO_T}$TERMINFO_DIRS" >&6
test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
#define TERMINFO_DIRS "$TERMINFO_DIRS"
EOF

echo "$as_me:5520: checking for default terminfo directory" >&5
echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6

# Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
if test "${with_default_terminfo_dir+set}" = set; then
  withval="$with_default_terminfo_dir"

else
  withval="${TERMINFO-${datadir}/terminfo}"
fi; if test -n "${datadir}/terminfo" ; then

if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
fi

case ".$withval" in #(vi
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
  ;;
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  ;;
.\${*prefix}*) #(vi
  eval withval="$withval"
  case ".$withval" in #(vi
  .NONE/*)
    withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
    ;;
  esac
  ;; #(vi
.no|.NONE/*)
  withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
  ;;
*)
  { { echo "$as_me:5556: error: expected a pathname, not \"$withval\"" >&5
echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
   { (exit 1); exit 1; }; }
  ;;
esac

fi
TERMINFO="$withval"

echo "$as_me:5565: result: $TERMINFO" >&5
echo "${ECHO_T}$TERMINFO" >&6
cat >>confdefs.h <<EOF
#define TERMINFO "$TERMINFO"
EOF

fi

###	use option --disable-big-core to make tic run on small machines
###	We need 4Mb, check if we can allocate 50% more than that.
echo "$as_me:5575: checking if big-core option selected" >&5
echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6

# Check whether --enable-big-core or --disable-big-core was given.
if test "${enable_big_core+set}" = set; then
  enableval="$enable_big_core"
  with_big_core=$enableval
else
  if test "$cross_compiling" = yes; then
  with_big_core=no
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5587 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <string.h>
int main() {
	unsigned long n = 6000000L;
	char *s = malloc(n);
	if (s != 0)
		s[0] = s[n-1] = 0;
	${cf_cv_main_return:-return}(s == 0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:5601: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5604: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:5606: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5609: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  with_big_core=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
with_big_core=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi;
echo "$as_me:5621: result: $with_big_core" >&5
echo "${ECHO_T}$with_big_core" >&6
test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
#define HAVE_BIG_CORE 1
EOF

### ISO C only guarantees 512-char strings, we have tables which load faster
### when constructed using "big" strings.  More than the C compiler, the awk
### program is a limit on most vendor UNIX systems.  Check that we can build.
echo "$as_me:5630: checking if big-strings option selected" >&5
echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6

# Check whether --enable-big-strings or --disable-big-strings was given.
if test "${enable_big_strings+set}" = set; then
  enableval="$enable_big_strings"
  with_big_strings=$enableval
else

    case x$AWK in #(vi
    x)
        eval with_big_strings=no
        ;;
    *) #(vi
        if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' \
            | $AWK '{ printf "%d\n", length($0); }' | $AWK 'BEGIN { eqls=0; recs=0; } { recs++; if ($0 == 12000) eqls++; } END { if (recs != 1 || eqls != 1) exit 1; }' 2>/dev/null >/dev/null ) ; then
            eval with_big_strings=yes
        else
            eval with_big_strings=no
        fi
        ;;
    esac

fi;
echo "$as_me:5654: result: $with_big_strings" >&5
echo "${ECHO_T}$with_big_strings" >&6

USE_BIG_STRINGS=0
test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1

###	use option --enable-termcap to compile in the termcap fallback support
echo "$as_me:5661: checking if you want termcap-fallback support" >&5
echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6

# Check whether --enable-termcap or --disable-termcap was given.
if test "${enable_termcap+set}" = set; then
  enableval="$enable_termcap"
  with_termcap=$enableval
else
  with_termcap=no
fi;
echo "$as_me:5671: result: $with_termcap" >&5
echo "${ECHO_T}$with_termcap" >&6

if test "$with_termcap" != "yes" ; then
	if test "$use_database" = no ; then
		if test -z "$with_fallback" ; then
			{ { echo "$as_me:5677: error: You have disabled the database w/o specifying fallbacks" >&5
echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
   { (exit 1); exit 1; }; }
		fi
	fi
	cat >>confdefs.h <<\EOF
#define PURE_TERMINFO 1
EOF

else

if test "$with_ticlib" != no ; then
	{ { echo "$as_me:5689: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
   { (exit 1); exit 1; }; }
fi

cat >>confdefs.h <<\EOF
#define USE_TERMCAP 1
EOF

echo "$as_me:5698: checking for list of termcap files" >&5
echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6

# Check whether --with-termpath or --without-termpath was given.
if test "${with_termpath+set}" = set; then
  withval="$with_termpath"

else
  withval=${TERMPATH-/etc/termcap:/usr/share/misc/termcap}
fi;
IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
cf_dst_path=
for cf_src_path in $withval
do

if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
fi

case ".$cf_src_path" in #(vi
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
  ;;
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  ;;
.\${*prefix}*) #(vi
  eval cf_src_path="$cf_src_path"
  case ".$cf_src_path" in #(vi
  .NONE/*)
    cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
    ;;
  esac
  ;; #(vi
.no|.NONE/*)
  cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
  ;;
*)
  { { echo "$as_me:5738: error: expected a pathname, not \"$cf_src_path\"" >&5
echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
   { (exit 1); exit 1; }; }
  ;;
esac

  test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
  cf_dst_path="${cf_dst_path}${cf_src_path}"
done
IFS="$ac_save_ifs"

eval 'TERMPATH="$cf_dst_path"'

echo "$as_me:5751: result: $TERMPATH" >&5
echo "${ECHO_T}$TERMPATH" >&6
test -n "$TERMPATH" && cat >>confdefs.h <<EOF
#define TERMPATH "$TERMPATH"
EOF

###	use option --enable-getcap to use a hacked getcap for reading termcaps
echo "$as_me:5758: checking if fast termcap-loader is needed" >&5
echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6

# Check whether --enable-getcap or --disable-getcap was given.
if test "${enable_getcap+set}" = set; then
  enableval="$enable_getcap"
  with_getcap=$enableval
else
  with_getcap=no
fi;
echo "$as_me:5768: result: $with_getcap" >&5
echo "${ECHO_T}$with_getcap" >&6
test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
#define USE_GETCAP 1
EOF

echo "$as_me:5774: checking if translated termcaps will be cached in ~/.terminfo" >&5
echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6

# Check whether --enable-getcap-cache or --disable-getcap-cache was given.
if test "${enable_getcap_cache+set}" = set; then
  enableval="$enable_getcap_cache"
  with_getcap_cache=$enableval
else
  with_getcap_cache=no
fi;
echo "$as_me:5784: result: $with_getcap_cache" >&5
echo "${ECHO_T}$with_getcap_cache" >&6
test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
#define USE_GETCAP_CACHE 1
EOF

fi

###   Use option --disable-home-terminfo to completely remove ~/.terminfo
echo "$as_me:5793: checking if ~/.terminfo is wanted" >&5
echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6

# Check whether --enable-home-terminfo or --disable-home-terminfo was given.
if test "${enable_home_terminfo+set}" = set; then
  enableval="$enable_home_terminfo"
  with_home_terminfo=$enableval
else
  with_home_terminfo=yes
fi;
echo "$as_me:5803: result: $with_home_terminfo" >&5
echo "${ECHO_T}$with_home_terminfo" >&6
test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
#define USE_HOME_TERMINFO 1
EOF

echo "$as_me:5809: checking if you want to use restricted environment when running as root" >&5
echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6

# Check whether --enable-root-environ or --disable-root-environ was given.
if test "${enable_root_environ+set}" = set; then
  enableval="$enable_root_environ"
  with_root_environ=$enableval
else
  with_root_environ=yes
fi;
echo "$as_me:5819: result: $with_root_environ" >&5
echo "${ECHO_T}$with_root_environ" >&6
test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
#define USE_ROOT_ENVIRON 1
EOF

###   Use option --enable-symlinks to make tic use symlinks, not hard links
###   to reduce storage requirements for the terminfo database.

for ac_func in \
	remove \
	unlink
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:5833: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5839 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5870: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5873: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5876: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5879: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:5889: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

if test "$cross_compiling" = yes ; then

for ac_func in \
		link \
		symlink
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:5906: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5912 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5943: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5946: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5949: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5952: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:5962: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

else
	echo "$as_me:5973: checking if link/symlink functions work" >&5
echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
if test "${cf_cv_link_funcs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

		cf_cv_link_funcs=
		for cf_func in link symlink ; do
			if test "$cross_compiling" = yes; then

			eval 'ac_cv_func_'$cf_func'=error'
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5986 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
int main()
{
	int fail = 0;
	char *src = "config.log";
	char *dst = "conftest.chk";
	struct stat src_sb;
	struct stat dst_sb;

	stat(src, &src_sb);
	fail = ($cf_func("config.log", "conftest.chk") < 0)
	    || (stat(dst, &dst_sb) < 0)
	    || (dst_sb.st_mtime != src_sb.st_mtime);
#ifdef HAVE_UNLINK
	unlink(dst);
#else
	remove(dst);
#endif
	${cf_cv_main_return:-return} (fail);
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:6016: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6019: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:6021: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6024: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

			cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
			eval 'ac_cv_func_'$cf_func'=yes'
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

			eval 'ac_cv_func_'$cf_func'=no'
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
		done
		test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no

fi
echo "$as_me:6042: result: $cf_cv_link_funcs" >&5
echo "${ECHO_T}$cf_cv_link_funcs" >&6
	test "$ac_cv_func_link"    = yes && cat >>confdefs.h <<\EOF
#define HAVE_LINK 1
EOF

	test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
#define HAVE_SYMLINK 1
EOF

fi

with_links=no
with_symlinks=no

# soft links (symbolic links) are useful for some systems where hard links do
# not work, or to make it simpler to copy terminfo trees around.
if test "$ac_cv_func_symlink" = yes ; then
    echo "$as_me:6060: checking if tic should use symbolic links" >&5
echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6

# Check whether --enable-symlinks or --disable-symlinks was given.
if test "${enable_symlinks+set}" = set; then
  enableval="$enable_symlinks"
  with_symlinks=$enableval
else
  with_symlinks=no
fi;
    echo "$as_me:6070: result: $with_symlinks" >&5
echo "${ECHO_T}$with_symlinks" >&6
fi

# If we have hard links and did not choose to use soft links instead, there is
# no reason to make this choice optional - use the hard links.
if test "$with_symlinks" = no ; then
    echo "$as_me:6077: checking if tic should use hard links" >&5
echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
    if test "$ac_cv_func_link" = yes ; then
	with_links=yes
    else
	with_links=no
    fi
    echo "$as_me:6084: result: $with_links" >&5
echo "${ECHO_T}$with_links" >&6
fi

test "$with_links" = yes && cat >>confdefs.h <<\EOF
#define USE_LINKS 1
EOF

test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
#define USE_SYMLINKS 1
EOF

###   use option --enable-broken-linker to force on use of broken-linker support
echo "$as_me:6097: checking if you want broken-linker support code" >&5
echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6

# Check whether --enable-broken_linker or --disable-broken_linker was given.
if test "${enable_broken_linker+set}" = set; then
  enableval="$enable_broken_linker"
  with_broken_linker=$enableval
else
  with_broken_linker=${BROKEN_LINKER-no}
fi;
echo "$as_me:6107: result: $with_broken_linker" >&5
echo "${ECHO_T}$with_broken_linker" >&6

BROKEN_LINKER=0
if test "$with_broken_linker" = yes ; then
	cat >>confdefs.h <<\EOF
#define BROKEN_LINKER 1
EOF

	BROKEN_LINKER=1
elif test "$DFT_LWR_MODEL" = shared ; then
	case $cf_cv_system_name in #(vi
	cygwin*)
		cat >>confdefs.h <<\EOF
#define BROKEN_LINKER 1
EOF

		BROKEN_LINKER=1
		test -n "$verbose" && echo "	cygwin linker is broken anyway" 1>&6

echo "${as_me-configure}:6127: testing cygwin linker is broken anyway ..." 1>&5

		;;
	esac
fi

###   use option --enable-bsdpad to have tputs process BSD-style prefix padding
echo "$as_me:6134: checking if tputs should process BSD-style prefix padding" >&5
echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6

# Check whether --enable-bsdpad or --disable-bsdpad was given.
if test "${enable_bsdpad+set}" = set; then
  enableval="$enable_bsdpad"
  with_bsdpad=$enableval
else
  with_bsdpad=no
fi;
echo "$as_me:6144: result: $with_bsdpad" >&5
echo "${ECHO_T}$with_bsdpad" >&6
test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
#define BSD_TPUTS 1
EOF

###   use option --enable-widec to turn on use of wide-character support
NCURSES_CH_T=chtype
NCURSES_LIBUTF8=0

NEED_WCHAR_H=0
NCURSES_MBSTATE_T=0
NCURSES_WCHAR_T=0
NCURSES_WINT_T=0

# Check to define _XOPEN_SOURCE "automatically"

echo "$as_me:6161: checking if $CC -U and -D options work together" >&5
echo $ECHO_N "checking if $CC -U and -D options work together... $ECHO_C" >&6
if test "${cf_cv_cc_u_d_options+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cf_save_CPPFLAGS="$CPPFLAGS"
	CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS"
	cat >conftest.$ac_ext <<_ACEOF
#line 6170 "configure"
#include "confdefs.h"

int
main ()
{

#ifndef U_D_OPTIONS
make an undefined-error
#endif
#ifdef  D_U_OPTIONS
make a defined-error
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6189: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6192: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6195: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6198: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

	cf_cv_cc_u_d_options=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

	cf_cv_cc_u_d_options=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	CPPFLAGS="$cf_save_CPPFLAGS"

fi
echo "$as_me:6212: result: $cf_cv_cc_u_d_options" >&5
echo "${ECHO_T}$cf_cv_cc_u_d_options" >&6

cf_XOPEN_SOURCE=500
cf_POSIX_C_SOURCE=199506L

case $host_os in #(vi
aix[45]*) #(vi
	CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE"
	;;
freebsd*|dragonfly*) #(vi
	# 5.x headers associate
	#	_XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
	#	_XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
	cf_POSIX_C_SOURCE=200112L
	cf_XOPEN_SOURCE=600
	CPPFLAGS="$CPPFLAGS -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
	;;
hpux*) #(vi
	CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
	;;
irix[56].*) #(vi
	CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
	;;
linux*|gnu*|k*bsd*-gnu) #(vi

echo "$as_me:6238: checking if we must define _GNU_SOURCE" >&5
echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
if test "${cf_cv_gnu_source+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 6245 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifndef _XOPEN_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6260: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6263: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6266: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6269: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_gnu_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_save="$CPPFLAGS"
	 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
	 cat >conftest.$ac_ext <<_ACEOF
#line 6278 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifdef _XOPEN_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6293: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6296: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6299: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6302: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_gnu_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_gnu_source=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	CPPFLAGS="$cf_save"

fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:6317: result: $cf_cv_gnu_source" >&5
echo "${ECHO_T}$cf_cv_gnu_source" >&6
test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"

	;;
mirbsd*) #(vi
	# setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
	;;
netbsd*) #(vi
	# setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
	;;
openbsd*) #(vi
	# setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
	;;
osf[45]*) #(vi
	CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE"
	;;
nto-qnx*) #(vi
	CPPFLAGS="$CPPFLAGS -D_QNX_SOURCE"
	;;
sco*) #(vi
	# setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
	;;
solaris*) #(vi
	CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
	;;
*)
	echo "$as_me:6344: checking if we should define _XOPEN_SOURCE" >&5
echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
if test "${cf_cv_xopen_source+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 6351 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifndef _XOPEN_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6366: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6369: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6372: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6375: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_xopen_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_save="$CPPFLAGS"
	 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
	 cat >conftest.$ac_ext <<_ACEOF
#line 6384 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifdef _XOPEN_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6399: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6402: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6405: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6408: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_xopen_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_xopen_source=$cf_XOPEN_SOURCE
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	CPPFLAGS="$cf_save"

fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:6423: result: $cf_cv_xopen_source" >&5
echo "${ECHO_T}$cf_cv_xopen_source" >&6
	if test "$cf_cv_xopen_source" != no ; then

# remove _XOPEN_SOURCE symbol from $CFLAGS
CFLAGS=`echo "$CFLAGS" | \
	sed	-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
		-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?$//g'`

# remove _XOPEN_SOURCE symbol from $CPPFLAGS
CPPFLAGS=`echo "$CPPFLAGS" | \
	sed	-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
		-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?$//g'`

		test "$cf_cv_cc_u_d_options" = yes && \
			CPPFLAGS="$CPPFLAGS -U_XOPEN_SOURCE"
		CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_cv_xopen_source"
	fi

cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE

cf_save_CFLAGS="$CFLAGS"
cf_save_CPPFLAGS="$CPPFLAGS"

# remove _POSIX_C_SOURCE symbol from $cf_save_CFLAGS
cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
	sed	-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
		-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?$//g'`

# remove _POSIX_C_SOURCE symbol from $cf_save_CPPFLAGS
cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
	sed	-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
		-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?$//g'`

echo "$as_me:6457: checking if we should define _POSIX_C_SOURCE" >&5
echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
if test "${cf_cv_posix_c_source+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

echo "${as_me-configure}:6463: testing if the symbol is already defined go no further ..." 1>&5

	cat >conftest.$ac_ext <<_ACEOF
#line 6466 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifndef _POSIX_C_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6481: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6484: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6487: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6490: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_posix_c_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_want_posix_source=no
	 case .$cf_POSIX_C_SOURCE in #(vi
	 .[12]??*) #(vi
		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
		;;
	 .2) #(vi
		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
		cf_want_posix_source=yes
		;;
	 .*)
		cf_want_posix_source=yes
		;;
	 esac
	 if test "$cf_want_posix_source" = yes ; then
		cat >conftest.$ac_ext <<_ACEOF
#line 6511 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifdef _POSIX_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6526: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6529: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6532: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6535: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	 fi

echo "${as_me-configure}:6546: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5

	 CFLAGS="$cf_trim_CFLAGS"
	 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"

echo "${as_me-configure}:6551: testing if the second compile does not leave our definition intact error ..." 1>&5

	 cat >conftest.$ac_ext <<_ACEOF
#line 6554 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifndef _POSIX_C_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6569: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6572: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6575: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6578: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_posix_c_source=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	 CFLAGS="$cf_save_CFLAGS"
	 CPPFLAGS="$cf_save_CPPFLAGS"

fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:6594: result: $cf_cv_posix_c_source" >&5
echo "${ECHO_T}$cf_cv_posix_c_source" >&6

if test "$cf_cv_posix_c_source" != no ; then
	CFLAGS="$cf_trim_CFLAGS"
	CPPFLAGS="$cf_trim_CPPFLAGS"
	if test "$cf_cv_cc_u_d_options" = yes ; then
		cf_temp_posix_c_source=`echo "$cf_cv_posix_c_source" | \
				sed -e 's/-D/-U/g' -e 's/=[^ 	]*//g'`
		CPPFLAGS="$CPPFLAGS $cf_temp_posix_c_source"
	fi
	CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source"
fi

	;;
esac

# Work around breakage on OS X

echo "$as_me:6613: checking if SIGWINCH is defined" >&5
echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
if test "${cf_cv_define_sigwinch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 6620 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/signal.h>

int
main ()
{
int x = SIGWINCH
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6635: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6638: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6641: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6644: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_define_sigwinch=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 6651 "configure"
#include "confdefs.h"

#undef _XOPEN_SOURCE
#undef _POSIX_SOURCE
#undef _POSIX_C_SOURCE
#include <sys/types.h>
#include <sys/signal.h>

int
main ()
{
int x = SIGWINCH
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6669: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6672: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6675: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6678: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_define_sigwinch=maybe
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_define_sigwinch=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:6692: result: $cf_cv_define_sigwinch" >&5
echo "${ECHO_T}$cf_cv_define_sigwinch" >&6

if test "$cf_cv_define_sigwinch" = maybe ; then
echo "$as_me:6696: checking for actual SIGWINCH definition" >&5
echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
if test "${cf_cv_fixup_sigwinch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_fixup_sigwinch=unknown
cf_sigwinch=32
while test $cf_sigwinch != 1
do
	cat >conftest.$ac_ext <<_ACEOF
#line 6707 "configure"
#include "confdefs.h"

#undef _XOPEN_SOURCE
#undef _POSIX_SOURCE
#undef _POSIX_C_SOURCE
#include <sys/types.h>
#include <sys/signal.h>

int
main ()
{

#if SIGWINCH != $cf_sigwinch
make an error
#endif
int x = SIGWINCH
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6729: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6732: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6735: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6738: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_fixup_sigwinch=$cf_sigwinch
	 break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext

cf_sigwinch=`expr $cf_sigwinch - 1`
done

fi
echo "$as_me:6752: result: $cf_cv_fixup_sigwinch" >&5
echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6

	if test "$cf_cv_fixup_sigwinch" != unknown ; then
		CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
	fi
fi

# Checks for CODESET support.

  echo "$as_me:6762: checking for nl_langinfo and CODESET" >&5
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
if test "${am_cv_langinfo_codeset+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6768 "configure"
#include "confdefs.h"
#include <langinfo.h>
int
main ()
{
char* cs = nl_langinfo(CODESET);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6780: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6783: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6786: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6789: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  am_cv_langinfo_codeset=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
am_cv_langinfo_codeset=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi
echo "$as_me:6800: result: $am_cv_langinfo_codeset" >&5
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
  if test $am_cv_langinfo_codeset = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_LANGINFO_CODESET 1
EOF

  fi

# use these variables to work around a defect in gcc's fixincludes.
NCURSES_OK_WCHAR_T=
NCURSES_OK_WINT_T=

echo "$as_me:6814: checking if you want wide-character code" >&5
echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6

# Check whether --enable-widec or --disable-widec was given.
if test "${enable_widec+set}" = set; then
  enableval="$enable_widec"
  with_widec=$enableval
else
  with_widec=no
fi;
echo "$as_me:6824: result: $with_widec" >&5
echo "${ECHO_T}$with_widec" >&6
if test "$with_widec" = yes ; then
	LIB_SUFFIX="w${LIB_SUFFIX}"
	cat >>confdefs.h <<\EOF
#define USE_WIDEC_SUPPORT 1
EOF

echo "$as_me:6832: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line 6835 "configure"
#include "confdefs.h"
#include <sys/types.h>

int
main ()
{

#ifndef _XOPEN_SOURCE_EXTENDED
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6851: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6854: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6857: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6860: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_result=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_result=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:6869: result: $cf_result" >&5
echo "${ECHO_T}$cf_result" >&6

if test "$cf_result" = yes ; then
	CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
elif test "x" != "x" ; then
	echo "$as_me:6875: checking checking for compatible value versus " >&5
echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
	cat >conftest.$ac_ext <<_ACEOF
#line 6878 "configure"
#include "confdefs.h"
#include <sys/types.h>

int
main ()
{

#if _XOPEN_SOURCE_EXTENDED- < 0
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6894: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6897: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6900: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6903: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_result=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_result=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	echo "$as_me:6912: result: $cf_result" >&5
echo "${ECHO_T}$cf_result" >&6
	if test "$cf_result" = no ; then
		# perhaps we can override it - try...
		CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
	fi
fi

	# with_overwrite=no
	NCURSES_CH_T=cchar_t

for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:6926: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6932 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6963: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6966: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6969: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6972: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:6982: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

	if test "$ac_cv_func_putwc" != yes ; then

echo "$as_me:6994: checking for multibyte character support" >&5
echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
if test "${cf_cv_utf8_lib+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cf_save_LIBS="$LIBS"
	cat >conftest.$ac_ext <<_ACEOF
#line 7002 "configure"
#include "confdefs.h"

#include <stdlib.h>
int
main ()
{
putwc(0,0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7015: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7018: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7021: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7024: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_utf8_lib=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
# will be set on completion of the AC_TRY_LINK below.
cf_cv_header_path_utf8=
cf_cv_library_path_utf8=

echo "${as_me-configure}:7036: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5

cat >conftest.$ac_ext <<_ACEOF
#line 7039 "configure"
#include "confdefs.h"

#include <libutf8.h>
int
main ()
{
putwc(0,0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7052: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7055: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7058: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7061: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_find_linkage_utf8=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

    cf_cv_find_linkage_utf8=no

echo "${as_me-configure}:7070: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5

    cf_save_CPPFLAGS="$CPPFLAGS"
    cf_test_CPPFLAGS="$CPPFLAGS"

    cf_search=""

test "/usr" != "$prefix" && \
test -d "/usr" && \
(test $prefix = NONE || test -d $prefix) && {
	test -n "$verbose" && echo "	... testing for include-directories under /usr"
	test -d /usr/include &&          cf_search="$cf_search /usr/include"
	test -d /usr/include/utf8 &&       cf_search="$cf_search /usr/include/utf8"
	test -d /usr/include/utf8/include &&    cf_search="$cf_search /usr/include/utf8/include"
	test -d /usr/utf8/include &&       cf_search="$cf_search /usr/utf8/include"
	test -d /usr/utf8/include/utf8 &&    cf_search="$cf_search /usr/utf8/include/utf8"
}

test "$prefix" != "NONE" && \
test -d "$prefix" && \
 {
	test -n "$verbose" && echo "	... testing for include-directories under $prefix"
	test -d $prefix/include &&          cf_search="$cf_search $prefix/include"
	test -d $prefix/include/utf8 &&       cf_search="$cf_search $prefix/include/utf8"
	test -d $prefix/include/utf8/include &&    cf_search="$cf_search $prefix/include/utf8/include"
	test -d $prefix/utf8/include &&       cf_search="$cf_search $prefix/utf8/include"
	test -d $prefix/utf8/include/utf8 &&    cf_search="$cf_search $prefix/utf8/include/utf8"
}

test "/usr/local" != "$prefix" && \
test -d "/usr/local" && \
(test $prefix = NONE || test -d $prefix) && {
	test -n "$verbose" && echo "	... testing for include-directories under /usr/local"
	test -d /usr/local/include &&          cf_search="$cf_search /usr/local/include"
	test -d /usr/local/include/utf8 &&       cf_search="$cf_search /usr/local/include/utf8"
	test -d /usr/local/include/utf8/include &&    cf_search="$cf_search /usr/local/include/utf8/include"
	test -d /usr/local/utf8/include &&       cf_search="$cf_search /usr/local/utf8/include"
	test -d /usr/local/utf8/include/utf8 &&    cf_search="$cf_search /usr/local/utf8/include/utf8"
}

test "/opt" != "$prefix" && \
test -d "/opt" && \
(test $prefix = NONE || test -d $prefix) && {
	test -n "$verbose" && echo "	... testing for include-directories under /opt"
	test -d /opt/include &&          cf_search="$cf_search /opt/include"
	test -d /opt/include/utf8 &&       cf_search="$cf_search /opt/include/utf8"
	test -d /opt/include/utf8/include &&    cf_search="$cf_search /opt/include/utf8/include"
	test -d /opt/utf8/include &&       cf_search="$cf_search /opt/utf8/include"
	test -d /opt/utf8/include/utf8 &&    cf_search="$cf_search /opt/utf8/include/utf8"
}

test "$HOME" != "$prefix" && \
test -d "$HOME" && \
(test $prefix = NONE || test -d $prefix) && {
	test -n "$verbose" && echo "	... testing for include-directories under $HOME"
	test -d $HOME/include &&          cf_search="$cf_search $HOME/include"
	test -d $HOME/include/utf8 &&       cf_search="$cf_search $HOME/include/utf8"
	test -d $HOME/include/utf8/include &&    cf_search="$cf_search $HOME/include/utf8/include"
	test -d $HOME/utf8/include &&       cf_search="$cf_search $HOME/utf8/include"
	test -d $HOME/utf8/include/utf8 &&    cf_search="$cf_search $HOME/utf8/include/utf8"
}

test "$includedir" != NONE && \
test "$includedir" != "/usr/include" && \
test -d "$includedir" && {
	test -d $includedir &&    cf_search="$cf_search $includedir"
	test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
}

test "$oldincludedir" != NONE && \
test "$oldincludedir" != "/usr/include" && \
test -d "$oldincludedir" && {
	test -d $oldincludedir    && cf_search="$cf_search $oldincludedir"
	test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
}

    for cf_cv_header_path_utf8 in $cf_search
    do
      if test -d $cf_cv_header_path_utf8 ; then
        test -n "$verbose" && echo "	... testing $cf_cv_header_path_utf8" 1>&6

echo "${as_me-configure}:7151: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5

        CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
        cat >conftest.$ac_ext <<_ACEOF
#line 7155 "configure"
#include "confdefs.h"

#include <libutf8.h>
int
main ()
{
putwc(0,0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7168: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7171: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7174: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7177: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

            test -n "$verbose" && echo "	... found utf8 headers in $cf_cv_header_path_utf8" 1>&6

echo "${as_me-configure}:7182: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5

            cf_cv_find_linkage_utf8=maybe
            cf_test_CPPFLAGS="$CPPFLAGS"
            break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

            CPPFLAGS="$cf_save_CPPFLAGS"

fi
rm -f conftest.$ac_objext conftest.$ac_ext
      fi
    done

    if test "$cf_cv_find_linkage_utf8" = maybe ; then

echo "${as_me-configure}:7200: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5

      cf_save_LIBS="$LIBS"
      cf_save_LDFLAGS="$LDFLAGS"

      if test "$cf_cv_find_linkage_utf8" != yes ; then
        cf_search=""

test "/usr" != "$prefix" && \
test -d "/usr" && \
(test $prefix = NONE || test -d $prefix) && {
	test -n "$verbose" && echo "	... testing for lib-directories under /usr"
	test -d /usr/lib &&          cf_search="$cf_search /usr/lib"
	test -d /usr/lib/utf8 &&       cf_search="$cf_search /usr/lib/utf8"
	test -d /usr/lib/utf8/lib &&    cf_search="$cf_search /usr/lib/utf8/lib"
	test -d /usr/utf8/lib &&       cf_search="$cf_search /usr/utf8/lib"
	test -d /usr/utf8/lib/utf8 &&    cf_search="$cf_search /usr/utf8/lib/utf8"
}

test "$prefix" != "NONE" && \
test -d "$prefix" && \
 {
	test -n "$verbose" && echo "	... testing for lib-directories under $prefix"
	test -d $prefix/lib &&          cf_search="$cf_search $prefix/lib"
	test -d $prefix/lib/utf8 &&       cf_search="$cf_search $prefix/lib/utf8"
	test -d $prefix/lib/utf8/lib &&    cf_search="$cf_search $prefix/lib/utf8/lib"
	test -d $prefix/utf8/lib &&       cf_search="$cf_search $prefix/utf8/lib"
	test -d $prefix/utf8/lib/utf8 &&    cf_search="$cf_search $prefix/utf8/lib/utf8"
}

test "/usr/local" != "$prefix" && \
test -d "/usr/local" && \
(test $prefix = NONE || test -d $prefix) && {
	test -n "$verbose" && echo "	... testing for lib-directories under /usr/local"
	test -d /usr/local/lib &&          cf_search="$cf_search /usr/local/lib"
	test -d /usr/local/lib/utf8 &&       cf_search="$cf_search /usr/local/lib/utf8"
	test -d /usr/local/lib/utf8/lib &&    cf_search="$cf_search /usr/local/lib/utf8/lib"
	test -d /usr/local/utf8/lib &&       cf_search="$cf_search /usr/local/utf8/lib"
	test -d /usr/local/utf8/lib/utf8 &&    cf_search="$cf_search /usr/local/utf8/lib/utf8"
}

test "/opt" != "$prefix" && \
test -d "/opt" && \
(test $prefix = NONE || test -d $prefix) && {
	test -n "$verbose" && echo "	... testing for lib-directories under /opt"
	test -d /opt/lib &&          cf_search="$cf_search /opt/lib"
	test -d /opt/lib/utf8 &&       cf_search="$cf_search /opt/lib/utf8"
	test -d /opt/lib/utf8/lib &&    cf_search="$cf_search /opt/lib/utf8/lib"
	test -d /opt/utf8/lib &&       cf_search="$cf_search /opt/utf8/lib"
	test -d /opt/utf8/lib/utf8 &&    cf_search="$cf_search /opt/utf8/lib/utf8"
}

test "$HOME" != "$prefix" && \
test -d "$HOME" && \
(test $prefix = NONE || test -d $prefix) && {
	test -n "$verbose" && echo "	... testing for lib-directories under $HOME"
	test -d $HOME/lib &&          cf_search="$cf_search $HOME/lib"
	test -d $HOME/lib/utf8 &&       cf_search="$cf_search $HOME/lib/utf8"
	test -d $HOME/lib/utf8/lib &&    cf_search="$cf_search $HOME/lib/utf8/lib"
	test -d $HOME/utf8/lib &&       cf_search="$cf_search $HOME/utf8/lib"
	test -d $HOME/utf8/lib/utf8 &&    cf_search="$cf_search $HOME/utf8/lib/utf8"
}

        for cf_cv_library_path_utf8 in $cf_search
        do
          if test -d $cf_cv_library_path_utf8 ; then
            test -n "$verbose" && echo "	... testing $cf_cv_library_path_utf8" 1>&6

echo "${as_me-configure}:7268: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5

            CPPFLAGS="$cf_test_CPPFLAGS"
            LIBS="-lutf8  $cf_save_LIBS"
            LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
            cat >conftest.$ac_ext <<_ACEOF
#line 7274 "configure"
#include "confdefs.h"

#include <libutf8.h>
int
main ()
{
putwc(0,0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7287: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7290: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7293: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7296: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

                test -n "$verbose" && echo "	... found utf8 library in $cf_cv_library_path_utf8" 1>&6

echo "${as_me-configure}:7301: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5

                cf_cv_find_linkage_utf8=yes
                cf_cv_library_file_utf8="-lutf8"
                break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

                CPPFLAGS="$cf_save_CPPFLAGS"
                LIBS="$cf_save_LIBS"
                LDFLAGS="$cf_save_LDFLAGS"

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
          fi
        done
        LIBS="$cf_save_LIBS"
        CPPFLAGS="$cf_save_CPPFLAGS"
        LDFLAGS="$cf_save_LDFLAGS"
      fi

    else
      cf_cv_find_linkage_utf8=no
    fi

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

if test "$cf_cv_find_linkage_utf8" = yes ; then
cf_cv_utf8_lib=add-on
else
cf_cv_utf8_lib=no
fi

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7339: result: $cf_cv_utf8_lib" >&5
echo "${ECHO_T}$cf_cv_utf8_lib" >&6

# HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
# ncurses/ncursesw:
if test "$cf_cv_utf8_lib" = "add-on" ; then
	cat >>confdefs.h <<\EOF
#define HAVE_LIBUTF8_H 1
EOF

if test -n "$cf_cv_header_path_utf8" ; then
  for cf_add_incdir in $cf_cv_header_path_utf8
  do
	while test $cf_add_incdir != /usr/include
	do
	  if test -d $cf_add_incdir
	  then
		cf_have_incdir=no
		if test -n "$CFLAGS$CPPFLAGS" ; then
		  # a loop is needed to ensure we can add subdirs of existing dirs
		  for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
			if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
			  cf_have_incdir=yes; break
			fi
		  done
		fi

		if test "$cf_have_incdir" = no ; then
          if test "$cf_add_incdir" = /usr/local/include ; then
			if test "$GCC" = yes
			then
			  cf_save_CPPFLAGS=$CPPFLAGS
			  CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
			  cat >conftest.$ac_ext <<_ACEOF
#line 7373 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
printf("Hello")
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7385: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7388: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7391: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7394: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_have_incdir=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
			  CPPFLAGS=$cf_save_CPPFLAGS
			fi
		  fi
		fi

		if test "$cf_have_incdir" = no ; then
		  test -n "$verbose" && echo "	adding $cf_add_incdir to include-path" 1>&6

echo "${as_me-configure}:7411: testing adding $cf_add_incdir to include-path ..." 1>&5

		  CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"

          cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
          test "$cf_top_incdir" = "$cf_add_incdir" && break
          cf_add_incdir="$cf_top_incdir"
		else
		  break
		fi
	  fi
	done
  done
fi

if test -n "$cf_cv_library_path_utf8" ; then
  for cf_add_libdir in $cf_cv_library_path_utf8
  do
    if test $cf_add_libdir = /usr/lib ; then
      :
    elif test -d $cf_add_libdir
    then
      cf_have_libdir=no
      if test -n "$LDFLAGS$LIBS" ; then
        # a loop is needed to ensure we can add subdirs of existing dirs
        for cf_test_libdir in $LDFLAGS $LIBS ; do
          if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
            cf_have_libdir=yes; break
          fi
        done
      fi
      if test "$cf_have_libdir" = no ; then
        test -n "$verbose" && echo "	adding $cf_add_libdir to library-path" 1>&6

echo "${as_me-configure}:7445: testing adding $cf_add_libdir to library-path ..." 1>&5

        LDFLAGS="-L$cf_add_libdir $LDFLAGS"
      fi
    fi
  done
fi

	LIBS="-lutf8 $LIBS"
fi

		if test "$cf_cv_utf8_lib" != no ; then
			NCURSES_LIBUTF8=1
		fi
	fi

# This is needed on Tru64 5.0 to declare mbstate_t
echo "$as_me:7462: checking if we must include wchar.h to declare mbstate_t" >&5
echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
if test "${cf_cv_mbstate_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 7469 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
mbstate_t state
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7487: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7490: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7493: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7496: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_mbstate_t=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 7503 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <wchar.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
mbstate_t value
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7522: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7525: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7528: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7531: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_mbstate_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_mbstate_t=unknown
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:7543: result: $cf_cv_mbstate_t" >&5
echo "${ECHO_T}$cf_cv_mbstate_t" >&6

if test "$cf_cv_mbstate_t" = yes ; then
	cat >>confdefs.h <<\EOF
#define NEED_WCHAR_H 1
EOF

	NEED_WCHAR_H=1
fi

# if we do not find mbstate_t in either place, use substitution to provide a fallback.
if test "$cf_cv_mbstate_t" = unknown ; then
	NCURSES_MBSTATE_T=1
fi

# This is needed on Tru64 5.0 to declare wchar_t
echo "$as_me:7560: checking if we must include wchar.h to declare wchar_t" >&5
echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
if test "${cf_cv_wchar_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 7567 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
wchar_t state
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7585: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7588: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7591: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7594: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_wchar_t=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 7601 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <wchar.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
wchar_t value
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7620: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7623: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7626: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7629: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_wchar_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_wchar_t=unknown
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:7641: result: $cf_cv_wchar_t" >&5
echo "${ECHO_T}$cf_cv_wchar_t" >&6

if test "$cf_cv_wchar_t" = yes ; then
	cat >>confdefs.h <<\EOF
#define NEED_WCHAR_H 1
EOF

	NEED_WCHAR_H=1
fi

# if we do not find wchar_t in either place, use substitution to provide a fallback.
if test "$cf_cv_wchar_t" = unknown ; then
	NCURSES_WCHAR_T=1
fi

# if we find wchar_t in either place, use substitution to provide a fallback.
if test "$cf_cv_wchar_t" != unknown ; then
	NCURSES_OK_WCHAR_T=1
fi

# This is needed on Tru64 5.0 to declare wint_t
echo "$as_me:7663: checking if we must include wchar.h to declare wint_t" >&5
echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
if test "${cf_cv_wint_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 7670 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
wint_t state
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7688: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7691: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7694: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7697: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_wint_t=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 7704 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <wchar.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
wint_t value
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7723: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7726: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7729: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7732: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_wint_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_wint_t=unknown
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:7744: result: $cf_cv_wint_t" >&5
echo "${ECHO_T}$cf_cv_wint_t" >&6

if test "$cf_cv_wint_t" = yes ; then
	cat >>confdefs.h <<\EOF
#define NEED_WCHAR_H 1
EOF

	NEED_WCHAR_H=1
fi

# if we do not find wint_t in either place, use substitution to provide a fallback.
if test "$cf_cv_wint_t" = unknown ; then
	NCURSES_WINT_T=1
fi

# if we find wint_t in either place, use substitution to provide a fallback.
if test "$cf_cv_wint_t" != unknown ; then
	NCURSES_OK_WINT_T=1
fi

	if test "$NCURSES_MBSTATE_T" != 0; then
		cat >>confdefs.h <<\EOF
#define NEED_MBSTATE_T_DEF 1
EOF

	fi
fi

###   use option --disable-lp64 to allow long chtype
case $cf_cv_abi_version in
[345]*)
	default_with_lp64=no
	;;
*)
	default_with_lp64=yes
	;;
esac

echo "$as_me:7783: checking whether to enable _LP64 definition in curses.h" >&5
echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6

# Check whether --enable-lp64 or --disable-lp64 was given.
if test "${enable_lp64+set}" = set; then
  enableval="$enable_lp64"
  with_lp64=$enableval
else
  with_lp64=$default_with_lp64
fi;
echo "$as_me:7793: result: $with_lp64" >&5
echo "${ECHO_T}$with_lp64" >&6

if test "$with_lp64" = yes ; then
	cf_cv_enable_lp64=1
else
	cf_cv_enable_lp64=0
fi

# Check whether --enable-largefile or --disable-largefile was given.
if test "${enable_largefile+set}" = set; then
  enableval="$enable_largefile"

fi;
if test "$enable_largefile" != no; then

  echo "$as_me:7809: checking for special C compiler options needed for large files" >&5
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_largefile_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_sys_largefile_CC=no
     if test "$GCC" != yes; then
       ac_save_CC=$CC
       while :; do
     	 # IRIX 6.2 and later do not support large files by default,
     	 # so use the C compiler's -n32 option if that helps.
         cat >conftest.$ac_ext <<_ACEOF
#line 7821 "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:7841: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7844: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7847: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7850: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
     	 CC="$CC -n32"
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:7860: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7863: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7866: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7869: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_largefile_CC=' -n32'; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
         break
       done
       CC=$ac_save_CC
       rm -f conftest.$ac_ext
    fi
fi
echo "$as_me:7883: result: $ac_cv_sys_largefile_CC" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  if test "$ac_cv_sys_largefile_CC" != no; then
    CC=$CC$ac_cv_sys_largefile_CC
  fi

  echo "$as_me:7889: checking for _FILE_OFFSET_BITS value needed for large files" >&5
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_file_offset_bits=no
  cat >conftest.$ac_ext <<_ACEOF
#line 7897 "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7917: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7920: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7923: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7926: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 7935 "configure"
#include "confdefs.h"
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7956: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7959: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7962: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7965: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_file_offset_bits=64; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
fi
echo "$as_me:7976: result: $ac_cv_sys_file_offset_bits" >&5
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
if test "$ac_cv_sys_file_offset_bits" != no; then

cat >>confdefs.h <<EOF
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
EOF

fi
rm -f conftest*
  echo "$as_me:7986: checking for _LARGE_FILES value needed for large files" >&5
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_large_files+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_large_files=no
  cat >conftest.$ac_ext <<_ACEOF
#line 7994 "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8014: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8017: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8020: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8023: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 8032 "configure"
#include "confdefs.h"
#define _LARGE_FILES 1
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8053: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8056: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8059: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8062: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_large_files=1; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
fi
echo "$as_me:8073: result: $ac_cv_sys_large_files" >&5
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
if test "$ac_cv_sys_large_files" != no; then

cat >>confdefs.h <<EOF
#define _LARGE_FILES $ac_cv_sys_large_files
EOF

fi
rm -f conftest*
fi

    if test "$enable_largefile" != no ; then
	echo "$as_me:8086: checking for _LARGEFILE_SOURCE value needed for large files" >&5
echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_largefile_source+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_largefile_source=no
  cat >conftest.$ac_ext <<_ACEOF
#line 8094 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
return !fseeko;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8106: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8109: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8112: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8115: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 8124 "configure"
#include "confdefs.h"
#define _LARGEFILE_SOURCE 1
#include <stdio.h>
int
main ()
{
return !fseeko;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8137: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8140: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8143: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8146: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_largefile_source=1; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
fi
echo "$as_me:8157: result: $ac_cv_sys_largefile_source" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
if test "$ac_cv_sys_largefile_source" != no; then

cat >>confdefs.h <<EOF
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
EOF

fi
rm -f conftest*

# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
# in glibc 2.1.3, but that breaks too many other things.
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
echo "$as_me:8171: checking for fseeko" >&5
echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
if test "${ac_cv_func_fseeko+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 8177 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
return fseeko && fseeko (stdin, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8189: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8192: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8195: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8198: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_fseeko=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_fseeko=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8208: result: $ac_cv_func_fseeko" >&5
echo "${ECHO_T}$ac_cv_func_fseeko" >&6
if test $ac_cv_func_fseeko = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_FSEEKO 1
EOF

fi

	# Normally we would collect these definitions in the config.h,
	# but (like _XOPEN_SOURCE), some environments rely on having these
	# defined before any of the system headers are included.  Another
	# case comes up with C++, e.g., on AIX the compiler compiles the
	# header files by themselves before looking at the body files it is
	# told to compile.  For ncurses, those header files do not include
	# the config.h
	test "$ac_cv_sys_large_files"      != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
	test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
	test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "

	echo "$as_me:8229: checking whether to use struct dirent64" >&5
echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
if test "${cf_cv_struct_dirent64+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

		cat >conftest.$ac_ext <<_ACEOF
#line 8236 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <dirent.h>

int
main ()
{

		/* if transitional largefile support is setup, this is true */
		extern struct dirent64 * readdir(DIR *);
		struct dirent64 *x = readdir((DIR *)0);
		struct dirent *y = readdir((DIR *)0);
		int z = x - y;

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8257: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8260: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8263: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8266: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_struct_dirent64=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_struct_dirent64=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:8277: result: $cf_cv_struct_dirent64" >&5
echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
	test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_DIRENT64 1
EOF

    fi

###   use option --disable-tparm-varargs to make tparm() conform to X/Open
echo "$as_me:8286: checking if you want tparm not to use X/Open fixed-parameter list" >&5
echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6

# Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
if test "${enable_tparm_varargs+set}" = set; then
  enableval="$enable_tparm_varargs"
  with_tparm_varargs=$enableval
else
  with_tparm_varargs=yes
fi;
echo "$as_me:8296: result: $with_tparm_varargs" >&5
echo "${ECHO_T}$with_tparm_varargs" >&6
NCURSES_TPARM_VARARGS=0
test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1

###   use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
if test "$with_ticlib" != no ; then
echo "$as_me:8303: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6

# Check whether --enable-tic-depends or --disable-tic-depends was given.
if test "${enable_tic_depends+set}" = set; then
  enableval="$enable_tic_depends"
  with_tic_depends=$enableval
else
  with_tic_depends=yes
fi;
echo "$as_me:8313: result: $with_tic_depends" >&5
echo "${ECHO_T}$with_tic_depends" >&6
else
	with_tic_depends=no
fi

###   use option --with-bool to override bool's type
echo "$as_me:8320: checking for type of bool" >&5
echo $ECHO_N "checking for type of bool... $ECHO_C" >&6

# Check whether --with-bool or --without-bool was given.
if test "${with_bool+set}" = set; then
  withval="$with_bool"
  NCURSES_BOOL="$withval"
else
  NCURSES_BOOL=auto
fi;
echo "$as_me:8330: result: $NCURSES_BOOL" >&5
echo "${ECHO_T}$NCURSES_BOOL" >&6

echo "$as_me:8333: checking for alternate terminal capabilities file" >&5
echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6

# Check whether --with-caps or --without-caps was given.
if test "${with_caps+set}" = set; then
  withval="$with_caps"
  TERMINFO_CAPS=Caps.$withval
else
  TERMINFO_CAPS=Caps
fi;
test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
echo "$as_me:8344: result: $TERMINFO_CAPS" >&5
echo "${ECHO_T}$TERMINFO_CAPS" >&6

###   use option --with-chtype to override chtype's type
echo "$as_me:8348: checking for type of chtype" >&5
echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6

# Check whether --with-chtype or --without-chtype was given.
if test "${with_chtype+set}" = set; then
  withval="$with_chtype"
  NCURSES_CHTYPE="$withval"
else
  NCURSES_CHTYPE=auto
fi;
echo "$as_me:8358: result: $NCURSES_CHTYPE" >&5
echo "${ECHO_T}$NCURSES_CHTYPE" >&6

###   use option --with-ospeed to override ospeed's type
echo "$as_me:8362: checking for type of ospeed" >&5
echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6

# Check whether --with-ospeed or --without-ospeed was given.
if test "${with_ospeed+set}" = set; then
  withval="$with_ospeed"
  NCURSES_OSPEED="$withval"
else
  NCURSES_OSPEED=short
fi;
echo "$as_me:8372: result: $NCURSES_OSPEED" >&5
echo "${ECHO_T}$NCURSES_OSPEED" >&6

###   use option --with-mmask-t to override mmask_t's type
echo "$as_me:8376: checking for type of mmask_t" >&5
echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6

# Check whether --with-mmask-t or --without-mmask-t was given.
if test "${with_mmask_t+set}" = set; then
  withval="$with_mmask_t"
  NCURSES_MMASK_T="$withval"
else
  NCURSES_MMASK_T=auto
fi;
echo "$as_me:8386: result: $NCURSES_MMASK_T" >&5
echo "${ECHO_T}$NCURSES_MMASK_T" >&6

### Enable compiling-in rcs id's
echo "$as_me:8390: checking if RCS identifiers should be compiled-in" >&5
echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6

# Check whether --with-rcs-ids or --without-rcs-ids was given.
if test "${with_rcs_ids+set}" = set; then
  withval="$with_rcs_ids"
  with_rcs_ids=$withval
else
  with_rcs_ids=no
fi;
echo "$as_me:8400: result: $with_rcs_ids" >&5
echo "${ECHO_T}$with_rcs_ids" >&6
test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
#define USE_RCS_IDS 1
EOF

###############################################################################

echo "$as_me:8408: checking format of man-pages" >&5
echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6

# Check whether --with-manpage-format or --without-manpage-format was given.
if test "${with_manpage_format+set}" = set; then
  withval="$with_manpage_format"
  MANPAGE_FORMAT=$withval
else
  MANPAGE_FORMAT=unknown
fi;

test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`

cf_unknown=

case $MANPAGE_FORMAT in
unknown)
  if test -z "$MANPATH" ; then
    MANPATH="/usr/man:/usr/share/man"
  fi

  # look for the 'date' man-page (it's most likely to be installed!)
  MANPAGE_FORMAT=
  cf_preform=no
  cf_catonly=yes
  cf_example=date

  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATHSEP}"
  for cf_dir in $MANPATH; do
    test -z "$cf_dir" && cf_dir=/usr/man
    for cf_name in $cf_dir/man*/$cf_example.[01]* $cf_dir/cat*/$cf_example.[01]* $cf_dir/man*/$cf_example $cf_dir/cat*/$cf_example
    do
      cf_test=`echo $cf_name | sed -e 's/*//'`
      if test "x$cf_test" = "x$cf_name" ; then

	case "$cf_name" in
	*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
	*.Z)  MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
	*.0)	MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
	*)    MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
	esac

	case "$cf_name" in
	$cf_dir/man*)
	  cf_catonly=no
	  ;;
	$cf_dir/cat*)
	  cf_preform=yes
	  ;;
	esac
	break
      fi

      # if we found a match in either man* or cat*, stop looking
      if test -n "$MANPAGE_FORMAT" ; then
	cf_found=no
	test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
	test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
	case "$cf_name" in
	$cf_dir/cat*)
	  cf_found=yes
	  ;;
	esac
	test $cf_found=yes && break
      fi
    done
    # only check the first directory in $MANPATH where we find manpages
    if test -n "$MANPAGE_FORMAT" ; then
       break
    fi
  done
  # if we did not find the example, just assume it is normal
  test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
  IFS="$ac_save_ifs"
  ;;
*)
  for cf_option in $MANPAGE_FORMAT; do
     case $cf_option in #(vi
     gzip|compress|BSDI|normal|formatted|catonly)
       ;;
     *)
       cf_unknown="$cf_unknown $cf_option"
       ;;
     esac
  done
  ;;
esac

echo "$as_me:8497: result: $MANPAGE_FORMAT" >&5
echo "${ECHO_T}$MANPAGE_FORMAT" >&6
if test -n "$cf_unknown" ; then
  { echo "$as_me:8500: WARNING: Unexpected manpage-format $cf_unknown" >&5
echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
fi

echo "$as_me:8504: checking for manpage renaming" >&5
echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6

# Check whether --with-manpage-renames or --without-manpage-renames was given.
if test "${with_manpage_renames+set}" = set; then
  withval="$with_manpage_renames"
  MANPAGE_RENAMES=$withval
else
  MANPAGE_RENAMES=yes
fi;

case ".$MANPAGE_RENAMES" in #(vi
.no) #(vi
  ;;
.|.yes)
  # Debian 'man' program?
  if test -f /etc/debian_version ; then
    MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
  else
    MANPAGE_RENAMES=no
  fi
  ;;
esac

if test "$MANPAGE_RENAMES" != no ; then
  if test -f $srcdir/man/$MANPAGE_RENAMES ; then
    MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
  elif test ! -f $MANPAGE_RENAMES ; then
    { { echo "$as_me:8532: error: not a filename: $MANPAGE_RENAMES" >&5
echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
   { (exit 1); exit 1; }; }
  fi

  test ! -d man && mkdir man

  # Construct a sed-script to perform renaming within man-pages
  if test -n "$MANPAGE_RENAMES" ; then
    test ! -d man && mkdir man
    sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
  fi
fi

echo "$as_me:8546: result: $MANPAGE_RENAMES" >&5
echo "${ECHO_T}$MANPAGE_RENAMES" >&6

echo "$as_me:8549: checking if manpage aliases will be installed" >&5
echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6

# Check whether --with-manpage-aliases or --without-manpage-aliases was given.
if test "${with_manpage_aliases+set}" = set; then
  withval="$with_manpage_aliases"
  MANPAGE_ALIASES=$withval
else
  MANPAGE_ALIASES=yes
fi;

echo "$as_me:8560: result: $MANPAGE_ALIASES" >&5
echo "${ECHO_T}$MANPAGE_ALIASES" >&6

if test "$LN_S" = "ln -s"; then
	cf_use_symlinks=yes
else
	cf_use_symlinks=no
fi

MANPAGE_SYMLINKS=no
if test "$MANPAGE_ALIASES" = yes ; then
echo "$as_me:8571: checking if manpage symlinks should be used" >&5
echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6

# Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
if test "${with_manpage_symlinks+set}" = set; then
  withval="$with_manpage_symlinks"
  MANPAGE_SYMLINKS=$withval
else
  MANPAGE_SYMLINKS=$cf_use_symlinks
fi;

if test "$$cf_use_symlinks" = no; then
if test "$MANPAGE_SYMLINKS" = yes ; then
	{ echo "$as_me:8584: WARNING: cannot make symlinks" >&5
echo "$as_me: WARNING: cannot make symlinks" >&2;}
	MANPAGE_SYMLINKS=no
fi
fi

echo "$as_me:8590: result: $MANPAGE_SYMLINKS" >&5
echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
fi

echo "$as_me:8594: checking for manpage tbl" >&5
echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6

# Check whether --with-manpage-tbl or --without-manpage-tbl was given.
if test "${with_manpage_tbl+set}" = set; then
  withval="$with_manpage_tbl"
  MANPAGE_TBL=$withval
else
  MANPAGE_TBL=no
fi;

echo "$as_me:8605: result: $MANPAGE_TBL" >&5
echo "${ECHO_T}$MANPAGE_TBL" >&6

  if test "$prefix" = "NONE" ; then
     cf_prefix="$ac_default_prefix"
  else
     cf_prefix="$prefix"
  fi

  case "$MANPAGE_FORMAT" in # (vi
  *catonly*) # (vi
    cf_format=yes
    cf_inboth=no
    ;;
  *formatted*) # (vi
    cf_format=yes
    cf_inboth=yes
    ;;
  *)
    cf_format=no
    cf_inboth=no
    ;;
  esac

test ! -d man && mkdir man

cf_so_strip=
cf_compress=
case "$MANPAGE_FORMAT" in #(vi
*compress*) #(vi
	cf_so_strip="Z"
	cf_compress=compress
  ;;
*gzip*) #(vi
	cf_so_strip="gz"
	cf_compress=gzip
  ;;
esac

cf_edit_man=./edit_man.sh
cf_man_alias=`pwd`/man_alias.sed

cat >$cf_edit_man <<CF_EOF
#! /bin/sh
# this script is generated by the configure-script CF_MAN_PAGES macro.

prefix="$cf_prefix"
datadir="$datadir"

NCURSES_MAJOR="$NCURSES_MAJOR"
NCURSES_MINOR="$NCURSES_MINOR"
NCURSES_PATCH="$NCURSES_PATCH"

NCURSES_OSPEED="$NCURSES_OSPEED"
TERMINFO="$TERMINFO"

MKDIRS="sh `cd $srcdir && pwd`/mkdirs.sh"

INSTALL="$INSTALL"
INSTALL_DATA="$INSTALL_DATA"

transform="$program_transform_name"

TMP=\${TMPDIR-/tmp}/man\$\$
trap "rm -f \$TMP" 0 1 2 5 15

form=\$1
shift || exit 1

verb=\$1
shift || exit 1

mandir=\$1
shift || exit 1

srcdir=\$1
top_srcdir=\$srcdir/..
shift || exit 1

if test "\$form" = normal ; then
	if test "$cf_format" = yes ; then
	if test "$cf_inboth" = no ; then
		sh \$0 format \$verb \$mandir \$srcdir \$*
		exit $?
	fi
	fi
	cf_subdir=\$mandir/man
	cf_tables=$MANPAGE_TBL
else
	cf_subdir=\$mandir/cat
	cf_tables=yes
fi

# process the list of source-files
for i in \$* ; do
case \$i in #(vi
*.orig|*.rej) ;; #(vi
*.[0-9]*)
	section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
	if test \$verb = installing ; then
	if test ! -d \$cf_subdir\${section} ; then
		\$MKDIRS \$cf_subdir\$section
	fi
	fi

	# replace variables in man page
	if test ! -f $cf_man_alias ; then
cat >>$cf_man_alias <<-CF_EOF2
		s,@@DATADIR@@,\$datadir,g
		s,@@TERMINFO@@,\$TERMINFO,g
		s,@@NCURSES_MAJOR@@,\$NCURSES_MAJOR,g
		s,@@NCURSES_MINOR@@,\$NCURSES_MINOR,g
		s,@@NCURSES_PATCH@@,\$NCURSES_PATCH,g
		s,@@NCURSES_OSPEED@@,\$NCURSES_OSPEED,g
CF_EOF

	for cf_name in  captoinfo clear infocmp infotocap tic toe tput
	do
		cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
		cf_name=`echo $cf_name|sed "$program_transform_name"`
cat >>$cf_edit_man <<-CF_EOF
		s,@@$cf_NAME@@,$cf_name,
CF_EOF
	done

cat >>$cf_edit_man <<CF_EOF
CF_EOF2
		echo "...made $cf_man_alias"
	fi

	aliases=
	cf_source=\`basename \$i\`
	inalias=\$cf_source
	test ! -f \$inalias && inalias="\$srcdir/\$inalias"
	if test ! -f \$inalias ; then
		echo .. skipped \$cf_source
		continue
	fi
CF_EOF

if test "$MANPAGE_ALIASES" != no ; then
cat >>$cf_edit_man <<CF_EOF
	aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u\`
CF_EOF
fi

if test "$MANPAGE_RENAMES" = no ; then
cat >>$cf_edit_man <<CF_EOF
	# perform program transformations for section 1 man pages
	if test \$section = 1 ; then
		cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
	else
		cf_target=\$cf_subdir\${section}/\$cf_source
	fi
CF_EOF
else
cat >>$cf_edit_man <<CF_EOF
	cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
	if test -z "\$cf_target" ; then
		echo '? missing rename for '\$cf_source
		cf_target="\$cf_source"
	fi
	cf_target="\$cf_subdir\${section}/\${cf_target}"

CF_EOF
fi

cat >>$cf_edit_man <<CF_EOF
	sed	-f $cf_man_alias \\
CF_EOF

if test -f $MANPAGE_RENAMES ; then
cat >>$cf_edit_man <<CF_EOF
		< \$i | sed -f `pwd`/edit_man.sed >\$TMP
CF_EOF
else
cat >>$cf_edit_man <<CF_EOF
		< \$i >\$TMP
CF_EOF
fi

cat >>$cf_edit_man <<CF_EOF
if test \$cf_tables = yes ; then
	tbl \$TMP >\$TMP.out
	mv \$TMP.out \$TMP
fi
CF_EOF

if test $with_curses_h != yes ; then
cat >>$cf_edit_man <<CF_EOF
	sed -e "/\#[    ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
	mv \$TMP.out \$TMP
CF_EOF
fi

cat >>$cf_edit_man <<CF_EOF
	if test \$form = format ; then
		nroff -man \$TMP >\$TMP.out
		mv \$TMP.out \$TMP
	fi
CF_EOF

if test -n "$cf_compress" ; then
cat >>$cf_edit_man <<CF_EOF
	if test \$verb = installing ; then
	if ( $cf_compress -f \$TMP )
	then
		mv \$TMP.$cf_so_strip \$TMP
	fi
	fi
	cf_target="\$cf_target.$cf_so_strip"
CF_EOF
fi

case "$MANPAGE_FORMAT" in #(vi
*BSDI*)
cat >>$cf_edit_man <<CF_EOF
	if test \$form = format ; then
		# BSDI installs only .0 suffixes in the cat directories
		cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
	fi
CF_EOF
  ;;
esac

cat >>$cf_edit_man <<CF_EOF
	suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
	if test \$verb = installing ; then
		echo \$verb \$cf_target
		\$INSTALL_DATA \$TMP \$cf_target
		test -d \$cf_subdir\${section} &&
		test -n "\$aliases" && (
			cd \$cf_subdir\${section} && (
				cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
				test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
				cf_target=\`basename \$cf_target\`
				for cf_alias in \$aliases
				do
					if test \$section = 1 ; then
						cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
					fi

					if test "$MANPAGE_SYMLINKS" = yes ; then
						if test -f \$cf_alias\${suffix} ; then
							if ( cmp -s \$cf_target \$cf_alias\${suffix} )
							then
								continue
							fi
						fi
						echo .. \$verb alias \$cf_alias\${suffix}
						rm -f \$cf_alias\${suffix}
						$LN_S \$cf_target \$cf_alias\${suffix}
					elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
						echo ".so \$cf_source" >\$TMP
CF_EOF
if test -n "$cf_compress" ; then
cat >>$cf_edit_man <<CF_EOF
						if test -n "$cf_so_strip" ; then
							$cf_compress -f \$TMP
							mv \$TMP.$cf_so_strip \$TMP
						fi
CF_EOF
fi
cat >>$cf_edit_man <<CF_EOF
						echo .. \$verb alias \$cf_alias\${suffix}
						rm -f \$cf_alias\${suffix}
						\$INSTALL_DATA \$TMP \$cf_alias\${suffix}
					fi
				done
			)
		)
	elif test \$verb = removing ; then
		test -f \$cf_target && (
			echo \$verb \$cf_target
			rm -f \$cf_target
		)
		test -d \$cf_subdir\${section} &&
		test -n "\$aliases" && (
			cd \$cf_subdir\${section} && (
				for cf_alias in \$aliases
				do
					if test \$section = 1 ; then
						cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
					fi

					echo .. \$verb alias \$cf_alias\${suffix}
					rm -f \$cf_alias\${suffix}
				done
			)
		)
	else
#		echo ".hy 0"
		cat \$TMP
	fi
	;;
esac
done

if test $cf_inboth = yes ; then
if test \$form != format ; then
	sh \$0 format \$verb \$mandir \$srcdir \$*
fi
fi

exit 0
CF_EOF
chmod 755 $cf_edit_man

###############################################################################

### Note that some functions (such as const) are normally disabled anyway.
echo "$as_me:8916: checking if you want to build with function extensions" >&5
echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6

# Check whether --enable-ext-funcs or --disable-ext-funcs was given.
if test "${enable_ext_funcs+set}" = set; then
  enableval="$enable_ext_funcs"
  with_ext_funcs=$enableval
else
  with_ext_funcs=yes
fi;
echo "$as_me:8926: result: $with_ext_funcs" >&5
echo "${ECHO_T}$with_ext_funcs" >&6
if test "$with_ext_funcs" = yes ; then
	NCURSES_EXT_FUNCS=1
	cat >>confdefs.h <<\EOF
#define HAVE_CURSES_VERSION 1
EOF

	cat >>confdefs.h <<\EOF
#define HAVE_HAS_KEY 1
EOF

	cat >>confdefs.h <<\EOF
#define HAVE_RESIZETERM 1
EOF

	cat >>confdefs.h <<\EOF
#define HAVE_RESIZE_TERM 1
EOF

	cat >>confdefs.h <<\EOF
#define HAVE_USE_DEFAULT_COLORS 1
EOF

	cat >>confdefs.h <<\EOF
#define HAVE_WRESIZE 1
EOF

	cat >>confdefs.h <<\EOF
#define NCURSES_EXT_FUNCS 1
EOF

else
	NCURSES_EXT_FUNCS=0
fi

###   use option --enable-const to turn on use of const beyond that in XSI.
echo "$as_me:8963: checking for extended use of const keyword" >&5
echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6

# Check whether --enable-const or --disable-const was given.
if test "${enable_const+set}" = set; then
  enableval="$enable_const"
  with_ext_const=$enableval
else
  with_ext_const=no
fi;
echo "$as_me:8973: result: $with_ext_const" >&5
echo "${ECHO_T}$with_ext_const" >&6
NCURSES_CONST='/*nothing*/'
if test "$with_ext_const" = yes ; then
	NCURSES_CONST=const
fi

###   use option --enable-ext-colors to turn on use of colors beyond 16.
echo "$as_me:8981: checking if you want to use extended colors" >&5
echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6

# Check whether --enable-ext-colors or --disable-ext-colors was given.
if test "${enable_ext_colors+set}" = set; then
  enableval="$enable_ext_colors"
  with_ext_colors=$enableval
else
  with_ext_colors=no
fi;
echo "$as_me:8991: result: $with_ext_colors" >&5
echo "${ECHO_T}$with_ext_colors" >&6
NCURSES_EXT_COLORS=0
if test "$with_ext_colors" = yes ; then
	if test "$with_widec" != yes ; then
		{ { echo "$as_me:8996: error: This option applies only to wide-character library" >&5
echo "$as_me: error: This option applies only to wide-character library" >&2;}
   { (exit 1); exit 1; }; }
	else
		# cannot be ABI 5 since it changes sizeof(cchar_t)

if test "${with_abi_version+set}" != set; then
	case $cf_cv_rel_version in
	5.*)
		cf_cv_rel_version=6.0
		cf_cv_abi_version=6
		{ echo "$as_me:9007: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
		;;
	esac
fi

	fi
	NCURSES_EXT_COLORS=1
	cat >>confdefs.h <<\EOF
#define NCURSES_EXT_COLORS 1
EOF

fi

###   use option --enable-ext-mouse to modify coding to support 5-button mice
echo "$as_me:9022: checking if you want to use extended mouse encoding" >&5
echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6

# Check whether --enable-ext-mouse or --disable-ext-mouse was given.
if test "${enable_ext_mouse+set}" = set; then
  enableval="$enable_ext_mouse"
  with_ext_mouse=$enableval
else
  with_ext_mouse=no
fi;
echo "$as_me:9032: result: $with_ext_mouse" >&5
echo "${ECHO_T}$with_ext_mouse" >&6
NCURSES_MOUSE_VERSION=1
if test "$with_ext_mouse" = yes ; then
	NCURSES_MOUSE_VERSION=2

if test "${with_abi_version+set}" != set; then
	case $cf_cv_rel_version in
	5.*)
		cf_cv_rel_version=6.0
		cf_cv_abi_version=6
		{ echo "$as_me:9043: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
		;;
	esac
fi

fi

echo "$as_me:9051: checking if you want \$NCURSES_NO_PADDING code" >&5
echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6

# Check whether --enable-no-padding or --disable-no-padding was given.
if test "${enable_no_padding+set}" = set; then
  enableval="$enable_no_padding"
  with_no_padding=$enableval
else
  with_no_padding=$with_ext_funcs
fi;
echo "$as_me:9061: result: $with_no_padding" >&5
echo "${ECHO_T}$with_no_padding" >&6
test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
#define NCURSES_NO_PADDING 1
EOF

echo "$as_me:9067: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9073 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

_ACEOF
if { (eval echo "$as_me:9081: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:9087: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_stdc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_stdc=no
fi
rm -f conftest.err conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 9109 "configure"
#include "confdefs.h"
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 9127 "configure"
#include "confdefs.h"
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9148 "configure"
#include "confdefs.h"
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      $ac_main_return(2);
  $ac_main_return (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:9174: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9177: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:9179: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9182: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
fi
echo "$as_me:9195: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.

for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                  inttypes.h stdint.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:9211: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9217 "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9223: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9226: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9229: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9232: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_Header=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9242: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF

fi
done

echo "$as_me:9252: checking for signed char" >&5
echo $ECHO_N "checking for signed char... $ECHO_C" >&6
if test "${ac_cv_type_signed_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9258 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((signed char *) 0)
  return 0;
if (sizeof (signed char))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9273: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9276: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9279: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9282: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_signed_char=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_signed_char=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9292: result: $ac_cv_type_signed_char" >&5
echo "${ECHO_T}$ac_cv_type_signed_char" >&6

echo "$as_me:9295: checking size of signed char" >&5
echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
if test "${ac_cv_sizeof_signed_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_signed_char" = yes; then
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line 9304 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9316: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9319: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9322: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9325: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line 9330 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9342: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9345: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9348: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9351: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line 9367 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9379: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9382: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9385: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9388: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line 9404 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9416: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9419: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9422: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9425: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
ac_cv_sizeof_signed_char=$ac_lo
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:9438: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9443 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (!f)
  $ac_main_return (1);
fprintf (f, "%d", (sizeof (signed char)));
fclose (f);
  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:9459: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9462: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:9464: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9467: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_signed_char=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_signed_char=0
fi
fi
echo "$as_me:9483: result: $ac_cv_sizeof_signed_char" >&5
echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
cat >>confdefs.h <<EOF
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
EOF

if test "$ac_cv_sizeof_signed_char" = 1 ; then
	NCURSES_SBOOL="signed char"
else
	NCURSES_SBOOL="char"
fi
echo "$as_me:9494: checking if you want to use signed Boolean array in term.h" >&5
echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6

# Check whether --enable-signed-char or --disable-signed-char was given.
if test "${enable_signed_char+set}" = set; then
  enableval="$enable_signed_char"
  with_signed_char=$enableval
else
  with_signed_char=no
fi;
echo "$as_me:9504: result: $with_signed_char" >&5
echo "${ECHO_T}$with_signed_char" >&6
test "$with_signed_char" != yes && NCURSES_SBOOL="char"

###   use option --enable-sigwinch to turn on use of SIGWINCH logic
echo "$as_me:9509: checking if you want SIGWINCH handler" >&5
echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6

# Check whether --enable-sigwinch or --disable-sigwinch was given.
if test "${enable_sigwinch+set}" = set; then
  enableval="$enable_sigwinch"
  with_sigwinch=$enableval
else
  with_sigwinch=$with_ext_funcs
fi;
echo "$as_me:9519: result: $with_sigwinch" >&5
echo "${ECHO_T}$with_sigwinch" >&6
test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
#define USE_SIGWINCH 1
EOF

###   use option --enable-tcap-names to allow user to define new capabilities
echo "$as_me:9526: checking if you want user-definable terminal capabilities like termcap" >&5
echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6

# Check whether --enable-tcap-names or --disable-tcap-names was given.
if test "${enable_tcap_names+set}" = set; then
  enableval="$enable_tcap_names"
  with_tcap_names=$enableval
else
  with_tcap_names=$with_ext_funcs
fi;
echo "$as_me:9536: result: $with_tcap_names" >&5
echo "${ECHO_T}$with_tcap_names" >&6
NCURSES_XNAMES=0
test "$with_tcap_names" = yes && NCURSES_XNAMES=1

###############################################################################
# These options are relatively safe to experiment with.

echo "$as_me:9544: checking if you want all development code" >&5
echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6

# Check whether --with-develop or --without-develop was given.
if test "${with_develop+set}" = set; then
  withval="$with_develop"
  with_develop=$withval
else
  with_develop=no
fi;
echo "$as_me:9554: result: $with_develop" >&5
echo "${ECHO_T}$with_develop" >&6

###   use option --enable-hard-tabs to turn on use of hard-tabs optimize
echo "$as_me:9558: checking if you want hard-tabs code" >&5
echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6

# Check whether --enable-hard-tabs or --disable-hard-tabs was given.
if test "${enable_hard_tabs+set}" = set; then
  enableval="$enable_hard_tabs"

else
  enable_hard_tabs=$with_develop
fi;
echo "$as_me:9568: result: $enable_hard_tabs" >&5
echo "${ECHO_T}$enable_hard_tabs" >&6
test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
#define USE_HARD_TABS 1
EOF

###   use option --enable-xmc-glitch to turn on use of magic-cookie optimize
echo "$as_me:9575: checking if you want limited support for xmc" >&5
echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6

# Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
if test "${enable_xmc_glitch+set}" = set; then
  enableval="$enable_xmc_glitch"

else
  enable_xmc_glitch=$with_develop
fi;
echo "$as_me:9585: result: $enable_xmc_glitch" >&5
echo "${ECHO_T}$enable_xmc_glitch" >&6
test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
#define USE_XMC_SUPPORT 1
EOF

###############################################################################
# These are just experimental, probably should not be in a package:

echo "$as_me:9594: checking if you do not want to assume colors are white-on-black" >&5
echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6

# Check whether --enable-assumed-color or --disable-assumed-color was given.
if test "${enable_assumed_color+set}" = set; then
  enableval="$enable_assumed_color"
  with_assumed_color=$enableval
else
  with_assumed_color=yes
fi;
echo "$as_me:9604: result: $with_assumed_color" >&5
echo "${ECHO_T}$with_assumed_color" >&6
test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
#define USE_ASSUMED_COLOR 1
EOF

###   use option --enable-hashmap to turn on use of hashmap scrolling logic
echo "$as_me:9611: checking if you want hashmap scrolling-optimization code" >&5
echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6

# Check whether --enable-hashmap or --disable-hashmap was given.
if test "${enable_hashmap+set}" = set; then
  enableval="$enable_hashmap"
  with_hashmap=$enableval
else
  with_hashmap=yes
fi;
echo "$as_me:9621: result: $with_hashmap" >&5
echo "${ECHO_T}$with_hashmap" >&6
test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
#define USE_HASHMAP 1
EOF

###   use option --enable-colorfgbg to turn on use of $COLORFGBG environment
echo "$as_me:9628: checking if you want colorfgbg code" >&5
echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6

# Check whether --enable-colorfgbg or --disable-colorfgbg was given.
if test "${enable_colorfgbg+set}" = set; then
  enableval="$enable_colorfgbg"
  with_colorfgbg=$enableval
else
  with_colorfgbg=no
fi;
echo "$as_me:9638: result: $with_colorfgbg" >&5
echo "${ECHO_T}$with_colorfgbg" >&6
test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
#define USE_COLORFGBG 1
EOF

# This is still experimental (20080329), but should ultimately be moved to
# the script-block --with-normal, etc.

echo "$as_me:9647: checking if you want to link with the pthread library" >&5
echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6

# Check whether --with-pthread or --without-pthread was given.
if test "${with_pthread+set}" = set; then
  withval="$with_pthread"
  with_pthread=$withval
else
  with_pthread=no
fi;
echo "$as_me:9657: result: $with_pthread" >&5
echo "${ECHO_T}$with_pthread" >&6

if test "$with_pthread" != no ; then
    echo "$as_me:9661: checking for pthread.h" >&5
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
if test "${ac_cv_header_pthread_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9667 "configure"
#include "confdefs.h"
#include <pthread.h>
_ACEOF
if { (eval echo "$as_me:9671: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:9677: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_pthread_h=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_pthread_h=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:9696: result: $ac_cv_header_pthread_h" >&5
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
if test $ac_cv_header_pthread_h = yes; then

        cat >>confdefs.h <<\EOF
#define HAVE_PTHREADS_H 1
EOF

        echo "$as_me:9704: checking if we can link with the pthread library" >&5
echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6
        cf_save_LIBS="$LIBS"
        LIBS="-lpthread $LIBS"
        cat >conftest.$ac_ext <<_ACEOF
#line 9709 "configure"
#include "confdefs.h"

#include <pthread.h>

int
main ()
{

        int rc = pthread_create(0,0,0,0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9725: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9728: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9731: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9734: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  with_pthread=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
with_pthread=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
        LIBS="$cf_save_LIBS"
        echo "$as_me:9744: result: $with_pthread" >&5
echo "${ECHO_T}$with_pthread" >&6

        if test "$with_pthread" = yes ; then
            LIBS="-lpthread $LIBS"
            cat >>confdefs.h <<\EOF
#define HAVE_LIBPTHREADS 1
EOF

        else
            { { echo "$as_me:9754: error: Cannot link with pthread library" >&5
echo "$as_me: error: Cannot link with pthread library" >&2;}
   { (exit 1); exit 1; }; }
        fi

fi

fi

echo "$as_me:9763: checking if you want to use weak-symbols for pthreads" >&5
echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6

# Check whether --enable-weak-symbols or --disable-weak-symbols was given.
if test "${enable_weak_symbols+set}" = set; then
  enableval="$enable_weak_symbols"
  use_weak_symbols=$withval
else
  use_weak_symbols=no
fi;
echo "$as_me:9773: result: $use_weak_symbols" >&5
echo "${ECHO_T}$use_weak_symbols" >&6
if test "$use_weak_symbols" = yes ; then

echo "$as_me:9777: checking if $CC supports weak symbols" >&5
echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
if test "${cf_cv_weak_symbols+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 9784 "configure"
#include "confdefs.h"

#include <stdio.h>
int
main ()
{

#if defined(__GNUC__)
#  if defined __USE_ISOC99
#    define _cat_pragma(exp)	_Pragma(#exp)
#    define _weak_pragma(exp)	_cat_pragma(weak name)
#  else
#    define _weak_pragma(exp)
#  endif
#  define _declare(name)	__extension__ extern __typeof__(name) name
#  define weak_symbol(name)	_weak_pragma(name) _declare(name) __attribute__((weak))
#endif

weak_symbol(fopen);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9810: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9813: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9816: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9819: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_weak_symbols=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_weak_symbols=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:9830: result: $cf_cv_weak_symbols" >&5
echo "${ECHO_T}$cf_cv_weak_symbols" >&6

else
    cf_cv_weak_symbols=no
fi

if test $cf_cv_weak_symbols = yes ; then
    cat >>confdefs.h <<\EOF
#define USE_WEAK_SYMBOLS 1
EOF

fi

PTHREAD=
if test "$with_pthread" = "yes" ; then
    cat >>confdefs.h <<\EOF
#define USE_PTHREADS 1
EOF

    enable_reentrant=yes
    if test $cf_cv_weak_symbols = yes ; then
        PTHREAD=-lpthread
    fi
fi

# Reentrant code has to be opaque; there's little advantage to making ncurses
# opaque outside of that, so there is no --enable-opaque option.  We can use
# this option without --with-pthreads, but this will be always set for
# pthreads.
echo "$as_me:9860: checking if you want experimental reentrant code" >&5
echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6

# Check whether --enable-reentrant or --disable-reentrant was given.
if test "${enable_reentrant+set}" = set; then
  enableval="$enable_reentrant"
  with_reentrant=$enableval
else
  with_reentrant=no
fi;
echo "$as_me:9870: result: $with_reentrant" >&5
echo "${ECHO_T}$with_reentrant" >&6
if test "$with_reentrant" = yes ; then
	cf_cv_enable_reentrant=1
	cf_cv_enable_opaque="NCURSES_INTERNALS"
	NCURSES_OPAQUE=1
	NCURSES_SIZE_T=int
    if test $cf_cv_weak_symbols = yes ; then

# remove pthread library from $LIBS
LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ 	]//g' -e 's/-lpthread$//'`

    else
        LIB_SUFFIX="t${LIB_SUFFIX}"
    fi
	cat >>confdefs.h <<\EOF
#define USE_REENTRANT 1
EOF

if test "${with_abi_version+set}" != set; then
	case $cf_cv_rel_version in
	5.*)
		cf_cv_rel_version=6.0
		cf_cv_abi_version=6
		{ echo "$as_me:9894: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
		;;
	esac
fi

else
	cf_cv_enable_reentrant=0
	cf_cv_enable_opaque="NCURSES_OPAQUE"
	NCURSES_OPAQUE=0
	NCURSES_SIZE_T=short
fi

echo "$as_me:9907: checking if you want experimental safe-sprintf code" >&5
echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6

# Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
if test "${enable_safe_sprintf+set}" = set; then
  enableval="$enable_safe_sprintf"
  with_safe_sprintf=$enableval
else
  with_safe_sprintf=no
fi;
echo "$as_me:9917: result: $with_safe_sprintf" >&5
echo "${ECHO_T}$with_safe_sprintf" >&6
test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
#define USE_SAFE_SPRINTF 1
EOF

###   use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
# when hashmap is used scroll hints are useless
if test "$with_hashmap" = no ; then
echo "$as_me:9926: checking if you want to experiment without scrolling-hints code" >&5
echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6

# Check whether --enable-scroll-hints or --disable-scroll-hints was given.
if test "${enable_scroll_hints+set}" = set; then
  enableval="$enable_scroll_hints"
  with_scroll_hints=$enableval
else
  with_scroll_hints=yes
fi;
echo "$as_me:9936: result: $with_scroll_hints" >&5
echo "${ECHO_T}$with_scroll_hints" >&6
test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
#define USE_SCROLL_HINTS 1
EOF

fi

echo "$as_me:9944: checking if you want experimental wgetch-events code" >&5
echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6

# Check whether --enable-wgetch-events or --disable-wgetch-events was given.
if test "${enable_wgetch_events+set}" = set; then
  enableval="$enable_wgetch_events"
  with_wgetch_events=$enableval
else
  with_wgetch_events=no
fi;
echo "$as_me:9954: result: $with_wgetch_events" >&5
echo "${ECHO_T}$with_wgetch_events" >&6
test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
#define NCURSES_WGETCH_EVENTS 1
EOF

###############################################################################

###	use option --disable-echo to suppress full display compiling commands
echo "$as_me:9963: checking if you want to display full commands during build" >&5
echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6

# Check whether --enable-echo or --disable-echo was given.
if test "${enable_echo+set}" = set; then
  enableval="$enable_echo"
  with_echo=$enableval
else
  with_echo=yes
fi;
if test "$with_echo" = yes; then
	ECHO_LINK=
else
	ECHO_LINK='@@ echo linking $@@ ... ;'
	test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
	test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
fi
echo "$as_me:9980: result: $with_echo" >&5
echo "${ECHO_T}$with_echo" >&6

###	use option --enable-warnings to turn on all gcc warnings
echo "$as_me:9984: checking if you want to see compiler warnings" >&5
echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6

# Check whether --enable-warnings or --disable-warnings was given.
if test "${enable_warnings+set}" = set; then
  enableval="$enable_warnings"
  with_warnings=$enableval
fi;
echo "$as_me:9992: result: $with_warnings" >&5
echo "${ECHO_T}$with_warnings" >&6

if test "x$with_warnings" = "xyes"; then
 	ADAFLAGS="$ADAFLAGS -gnatg"

INTEL_COMPILER=no

if test "$GCC" = yes ; then
	case $host_os in
	linux*|gnu*)
		echo "$as_me:10003: checking if this is really Intel C compiler" >&5
echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
		cf_save_CFLAGS="$CFLAGS"
		CFLAGS="$CFLAGS -no-gcc"
		cat >conftest.$ac_ext <<_ACEOF
#line 10008 "configure"
#include "confdefs.h"

int
main ()
{

#ifdef __INTEL_COMPILER
#else
make an error
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10025: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10028: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10031: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10034: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  INTEL_COMPILER=yes
cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		CFLAGS="$cf_save_CFLAGS"
		echo "$as_me:10045: result: $INTEL_COMPILER" >&5
echo "${ECHO_T}$INTEL_COMPILER" >&6
		;;
	esac
fi

cat > conftest.$ac_ext <<EOF
#line 10052 "${as_me-configure}"
int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
EOF

if test "$INTEL_COMPILER" = yes
then
# The "-wdXXX" options suppress warnings:
# remark #1419: external declaration in primary source file
# remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
# remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
# remark #193: zero used for undefined preprocessing identifier
# remark #593: variable "curs_sb_left_arrow" was set but never used
# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
# remark #869: parameter "tw" was never referenced
# remark #981: operands are evaluated in unspecified order
# warning #269: invalid format string conversion

	{ echo "$as_me:10070: checking for $CC warning options..." >&5
echo "$as_me: checking for $CC warning options..." >&6;}
	cf_save_CFLAGS="$CFLAGS"
	EXTRA_CFLAGS="-Wall"
	for cf_opt in \
		wd1419 \
		wd1682 \
		wd1683 \
		wd1684 \
		wd193 \
		wd279 \
		wd593 \
		wd810 \
		wd869 \
		wd981
	do
		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
		if { (eval echo "$as_me:10087: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10090: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:10092: result: ... -$cf_opt" >&5
echo "${ECHO_T}... -$cf_opt" >&6
			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
		fi
	done
	CFLAGS="$cf_save_CFLAGS"

elif test "$GCC" = yes
then
	{ echo "$as_me:10101: checking for $CC warning options..." >&5
echo "$as_me: checking for $CC warning options..." >&6;}
	cf_save_CFLAGS="$CFLAGS"
	EXTRA_CFLAGS="-W -Wall"
	cf_warn_CONST=""
	test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
	for cf_opt in \
		Wbad-function-cast \
		Wcast-align \
		Wcast-qual \
		Winline \
		Wmissing-declarations \
		Wmissing-prototypes \
		Wnested-externs \
		Wpointer-arith \
		Wshadow \
		Wstrict-prototypes \
		Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
	do
		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
		if { (eval echo "$as_me:10121: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10124: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:10126: result: ... -$cf_opt" >&5
echo "${ECHO_T}... -$cf_opt" >&6
			case $cf_opt in #(vi
			Wcast-qual) #(vi
				CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
				;;
			Winline) #(vi
				case $GCC_VERSION in
				[34].*)
					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6

echo "${as_me-configure}:10137: testing feature is broken in gcc $GCC_VERSION ..." 1>&5

					continue;;
				esac
				;;
			esac
			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
		fi
	done
	CFLAGS="$cf_save_CFLAGS"
fi
rm -f conftest*

	if test "$cf_with_cxx" = yes ; then

INTEL_CPLUSPLUS=no

if test "$GCC" = yes ; then
	case $host_os in
	linux*|gnu*)
		echo "$as_me:10157: checking if this is really Intel C++ compiler" >&5
echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
		cf_save_CFLAGS="$CXXFLAGS"
		CXXFLAGS="$CXXFLAGS -no-gcc"
		cat >conftest.$ac_ext <<_ACEOF
#line 10162 "configure"
#include "confdefs.h"

int
main ()
{

#ifdef __INTEL_COMPILER
#else
make an error
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10179: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10182: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10185: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10188: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  INTEL_CPLUSPLUS=yes
cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		CXXFLAGS="$cf_save_CFLAGS"
		echo "$as_me:10199: result: $INTEL_CPLUSPLUS" >&5
echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
		;;
	esac
fi

ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

cat > conftest.$ac_ext <<EOF
#line 10213 "configure"
int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
EOF

if test "$INTEL_CPLUSPLUS" = yes
then
# The "-wdXXX" options suppress warnings:
# remark #1419: external declaration in primary source file
# remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
# remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
# remark #193: zero used for undefined preprocessing identifier
# remark #593: variable "curs_sb_left_arrow" was set but never used
# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
# remark #869: parameter "tw" was never referenced
# remark #981: operands are evaluated in unspecified order
# warning #269: invalid format string conversion

	{ echo "$as_me:10231: checking for $CC warning options..." >&5
echo "$as_me: checking for $CC warning options..." >&6;}
	cf_save_CXXFLAGS="$CXXFLAGS"
	EXTRA_CXXFLAGS="-Wall"
	for cf_opt in \
		wd1419 \
		wd1682 \
		wd1683 \
		wd1684 \
		wd193 \
		wd279 \
		wd593 \
		wd810 \
		wd869 \
		wd981
	do
		CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
		if { (eval echo "$as_me:10248: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10251: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:10253: result: ... -$cf_opt" >&5
echo "${ECHO_T}... -$cf_opt" >&6
			EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
		fi
	done
	CXXFLAGS="$cf_save_CXXFLAGS"

elif test "$GXX" = yes
then
	{ echo "$as_me:10262: checking for $CXX warning options..." >&5
echo "$as_me: checking for $CXX warning options..." >&6;}
	cf_save_CXXFLAGS="$CXXFLAGS"
	EXTRA_CXXFLAGS="-W -Wall"
	cf_gxx_extra_warnings=""
	test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
	case "$GCC_VERSION" in
	[1-2].*)
		;;
	*)
		cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
		;;
	esac
	for cf_opt in \
		Wabi \
		fabi-version=0 \
		Woverloaded-virtual \
		Wsign-promo \
		Wsynth \
		Wold-style-cast \
		Wcast-align \
		Wcast-qual \
		Wmissing-prototypes \
		Wpointer-arith \
		Wshadow \
		Wstrict-prototypes \
		Wundef $cf_gxx_extra_warnings Wno-unused
	do
		CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
		if { (eval echo "$as_me:10291: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10294: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:10296: result: ... -$cf_opt" >&5
echo "${ECHO_T}... -$cf_opt" >&6
			EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
		else
			test -n "$verbose" && echo "$as_me:10300: result: ... no -$cf_opt" >&5
echo "${ECHO_T}... no -$cf_opt" >&6
		fi
	done
	CXXFLAGS="$cf_save_CXXFLAGS"
fi

rm -f conftest*
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

	fi
fi

if test "$GCC" = yes
then
cat > conftest.i <<EOF
#ifndef GCC_PRINTF
#define GCC_PRINTF 0
#endif
#ifndef GCC_SCANF
#define GCC_SCANF 0
#endif
#ifndef GCC_NORETURN
#define GCC_NORETURN /* nothing */
#endif
#ifndef GCC_UNUSED
#define GCC_UNUSED /* nothing */
#endif
EOF
if test "$GCC" = yes
then
	{ echo "$as_me:10336: checking for $CC __attribute__ directives..." >&5
echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
cat > conftest.$ac_ext <<EOF
#line 10339 "${as_me-configure}"
#include "confdefs.h"
#include "conftest.h"
#include "conftest.i"
#if	GCC_PRINTF
#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
#else
#define GCC_PRINTFLIKE(fmt,var) /*nothing*/
#endif
#if	GCC_SCANF
#define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
#else
#define GCC_SCANFLIKE(fmt,var)  /*nothing*/
#endif
extern void wow(char *,...) GCC_SCANFLIKE(1,2);
extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
extern void foo(void) GCC_NORETURN;
int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
EOF
	for cf_attribute in scanf printf unused noreturn
	do

cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`

		cf_directive="__attribute__(($cf_attribute))"
		echo "checking for $CC $cf_directive" 1>&5
		case $cf_attribute in
		scanf|printf)
		cat >conftest.h <<EOF
#define GCC_$cf_ATTRIBUTE 1
EOF
			;;
		*)
		cat >conftest.h <<EOF
#define GCC_$cf_ATTRIBUTE $cf_directive
EOF
			;;
		esac
		if { (eval echo "$as_me:10377: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10380: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:10382: result: ... $cf_attribute" >&5
echo "${ECHO_T}... $cf_attribute" >&6
			cat conftest.h >>confdefs.h
		fi
	done
else
	fgrep define conftest.i >>confdefs.h
fi
rm -rf conftest*
fi

###	use option --enable-assertions to turn on generation of assertion code
echo "$as_me:10394: checking if you want to enable runtime assertions" >&5
echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6

# Check whether --enable-assertions or --disable-assertions was given.
if test "${enable_assertions+set}" = set; then
  enableval="$enable_assertions"
  with_assertions=$enableval
else
  with_assertions=no
fi;
echo "$as_me:10404: result: $with_assertions" >&5
echo "${ECHO_T}$with_assertions" >&6
if test -n "$GCC"
then
	if test "$with_assertions" = no
	then
		cat >>confdefs.h <<\EOF
#define NDEBUG 1
EOF

		CPPFLAGS="$CPPFLAGS -DNDEBUG"
	else
		ADAFLAGS="$ADAFLAGS -gnata"
	fi
fi

###	use option --disable-leaks to suppress "permanent" leaks, for testing

echo "$as_me:10422: checking if you want to use dmalloc for testing" >&5
echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6

# Check whether --with-dmalloc or --without-dmalloc was given.
if test "${with_dmalloc+set}" = set; then
  withval="$with_dmalloc"
  cat >>confdefs.h <<\EOF
#define USE_DMALLOC 1
EOF

	: ${with_cflags:=-g}
	: ${with_no_leaks:=yes}
	 with_dmalloc=yes
else
  with_dmalloc=
fi;
echo "$as_me:10438: result: ${with_dmalloc:-no}" >&5
echo "${ECHO_T}${with_dmalloc:-no}" >&6

case .$with_cflags in #(vi
.*-g*)
	case .$CFLAGS in #(vi
	.*-g*) #(vi
		;;
	*)

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in -g
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

		;;
	esac
	;;
esac

if test "$with_dmalloc" = yes ; then
	echo "$as_me:10522: checking for dmalloc.h" >&5
echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
if test "${ac_cv_header_dmalloc_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10528 "configure"
#include "confdefs.h"
#include <dmalloc.h>
_ACEOF
if { (eval echo "$as_me:10532: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:10538: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_dmalloc_h=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_dmalloc_h=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:10557: result: $ac_cv_header_dmalloc_h" >&5
echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
if test $ac_cv_header_dmalloc_h = yes; then

echo "$as_me:10561: checking for dmalloc_debug in -ldmalloc" >&5
echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldmalloc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 10569 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dmalloc_debug ();
int
main ()
{
dmalloc_debug ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10588: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10591: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10594: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10597: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dmalloc_dmalloc_debug=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dmalloc_dmalloc_debug=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:10608: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
  cat >>confdefs.h <<EOF
#define HAVE_LIBDMALLOC 1
EOF

  LIBS="-ldmalloc $LIBS"

fi

fi

fi

echo "$as_me:10623: checking if you want to use dbmalloc for testing" >&5
echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6

# Check whether --with-dbmalloc or --without-dbmalloc was given.
if test "${with_dbmalloc+set}" = set; then
  withval="$with_dbmalloc"
  cat >>confdefs.h <<\EOF
#define USE_DBMALLOC 1
EOF

	: ${with_cflags:=-g}
	: ${with_no_leaks:=yes}
	 with_dbmalloc=yes
else
  with_dbmalloc=
fi;
echo "$as_me:10639: result: ${with_dbmalloc:-no}" >&5
echo "${ECHO_T}${with_dbmalloc:-no}" >&6

case .$with_cflags in #(vi
.*-g*)
	case .$CFLAGS in #(vi
	.*-g*) #(vi
		;;
	*)

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in -g
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

		;;
	esac
	;;
esac

if test "$with_dbmalloc" = yes ; then
	echo "$as_me:10723: checking for dbmalloc.h" >&5
echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
if test "${ac_cv_header_dbmalloc_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10729 "configure"
#include "confdefs.h"
#include <dbmalloc.h>
_ACEOF
if { (eval echo "$as_me:10733: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:10739: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_dbmalloc_h=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_dbmalloc_h=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:10758: result: $ac_cv_header_dbmalloc_h" >&5
echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
if test $ac_cv_header_dbmalloc_h = yes; then

echo "$as_me:10762: checking for debug_malloc in -ldbmalloc" >&5
echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldbmalloc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 10770 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char debug_malloc ();
int
main ()
{
debug_malloc ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10789: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10792: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10795: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10798: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dbmalloc_debug_malloc=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dbmalloc_debug_malloc=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:10809: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
  cat >>confdefs.h <<EOF
#define HAVE_LIBDBMALLOC 1
EOF

  LIBS="-ldbmalloc $LIBS"

fi

fi

fi

echo "$as_me:10824: checking if you want to use valgrind for testing" >&5
echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6

# Check whether --with-valgrind or --without-valgrind was given.
if test "${with_valgrind+set}" = set; then
  withval="$with_valgrind"
  cat >>confdefs.h <<\EOF
#define USE_VALGRIND 1
EOF

	: ${with_cflags:=-g}
	: ${with_no_leaks:=yes}
	 with_valgrind=yes
else
  with_valgrind=
fi;
echo "$as_me:10840: result: ${with_valgrind:-no}" >&5
echo "${ECHO_T}${with_valgrind:-no}" >&6

case .$with_cflags in #(vi
.*-g*)
	case .$CFLAGS in #(vi
	.*-g*) #(vi
		;;
	*)

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in -g
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

		;;
	esac
	;;
esac

echo "$as_me:10923: checking if you want to perform memory-leak testing" >&5
echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6

# Check whether --enable-leaks or --disable-leaks was given.
if test "${enable_leaks+set}" = set; then
  enableval="$enable_leaks"
  with_no_leaks=yes
else
  : ${with_no_leaks:=no}
fi;
echo "$as_me:10933: result: $with_no_leaks" >&5
echo "${ECHO_T}$with_no_leaks" >&6

if test "$with_no_leaks" = yes ; then
	cat >>confdefs.h <<\EOF
#define NO_LEAKS 1
EOF

fi

cat >>confdefs.h <<\EOF
#define HAVE_NC_ALLOC_H 1
EOF

###	use option --enable-expanded to generate certain macros as functions

# Check whether --enable-expanded or --disable-expanded was given.
if test "${enable_expanded+set}" = set; then
  enableval="$enable_expanded"
  test "$enableval" = yes && cat >>confdefs.h <<\EOF
#define NCURSES_EXPANDED 1
EOF

fi;

###	use option --disable-macros to suppress macros in favor of functions

# Check whether --enable-macros or --disable-macros was given.
if test "${enable_macros+set}" = set; then
  enableval="$enable_macros"
  test "$enableval" = no && cat >>confdefs.h <<\EOF
#define NCURSES_NOMACROS 1
EOF

fi;

# Normally we only add trace() to the debug-library.  Allow this to be
# extended to all models of the ncurses library:
cf_all_traces=no
case "$CFLAGS $CPPFLAGS" in
*-DTRACE*)
	cf_all_traces=yes
	;;
esac

echo "$as_me:10978: checking whether to add trace feature to all models" >&5
echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6

# Check whether --with-trace or --without-trace was given.
if test "${with_trace+set}" = set; then
  withval="$with_trace"
  cf_with_trace=$withval
else
  cf_with_trace=$cf_all_traces
fi;
echo "$as_me:10988: result: $cf_with_trace" >&5
echo "${ECHO_T}$cf_with_trace" >&6

if test "$cf_with_trace" = yes ; then
	LIB_TRACING=all
	ADA_TRACE=TRUE

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in -DTRACE
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

else
	LIB_TRACING=DEBUG
	ADA_TRACE=FALSE
fi

###	Checks for libraries.
echo "$as_me:11069: checking for gettimeofday" >&5
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
if test "${ac_cv_func_gettimeofday+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11075 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gettimeofday (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gettimeofday ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
choke me
#else
f = gettimeofday;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11106: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11109: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11112: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11115: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_gettimeofday=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_gettimeofday=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:11125: result: $ac_cv_func_gettimeofday" >&5
echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
if test $ac_cv_func_gettimeofday = yes; then
  cat >>confdefs.h <<\EOF
#define HAVE_GETTIMEOFDAY 1
EOF

else

echo "$as_me:11134: checking for gettimeofday in -lbsd" >&5
echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 11142 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gettimeofday ();
int
main ()
{
gettimeofday ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11161: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11164: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11167: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11170: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_bsd_gettimeofday=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_bsd_gettimeofday=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:11181: result: $ac_cv_lib_bsd_gettimeofday" >&5
echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
if test $ac_cv_lib_bsd_gettimeofday = yes; then
  cat >>confdefs.h <<\EOF
#define HAVE_GETTIMEOFDAY 1
EOF

	LIBS="$LIBS -lbsd"
fi

fi

echo "$as_me:11193: checking if -lm needed for math functions" >&5
echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
if test "${cf_cv_need_libm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 11200 "configure"
#include "confdefs.h"

	#include <stdio.h>
	#include <math.h>

int
main ()
{
double x = rand(); printf("result = %g\n", sin(x))
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11215: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11218: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11221: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11224: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_need_libm=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_need_libm=yes
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:11234: result: $cf_cv_need_libm" >&5
echo "${ECHO_T}$cf_cv_need_libm" >&6
if test "$cf_cv_need_libm" = yes
then
MATH_LIB=-lm
fi

###	Checks for header files.
echo "$as_me:11242: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11248 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

_ACEOF
if { (eval echo "$as_me:11256: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:11262: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_stdc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_stdc=no
fi
rm -f conftest.err conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 11284 "configure"
#include "confdefs.h"
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 11302 "configure"
#include "confdefs.h"
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11323 "configure"
#include "confdefs.h"
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      $ac_main_return(2);
  $ac_main_return (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11349: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11352: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11354: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11357: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
fi
echo "$as_me:11370: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF

fi

ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
echo "$as_me:11383: checking for $ac_hdr that defines DIR" >&5
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11389 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_hdr>

int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11404: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11407: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11410: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11413: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_Header=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11423: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
EOF

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  echo "$as_me:11436: checking for opendir in -ldir" >&5
echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
if test "${ac_cv_lib_dir_opendir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldir  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 11444 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char opendir ();
int
main ()
{
opendir ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11463: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11466: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11469: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11472: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dir_opendir=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dir_opendir=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:11483: result: $ac_cv_lib_dir_opendir" >&5
echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
if test $ac_cv_lib_dir_opendir = yes; then
  LIBS="$LIBS -ldir"
fi

else
  echo "$as_me:11490: checking for opendir in -lx" >&5
echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
if test "${ac_cv_lib_x_opendir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lx  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 11498 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char opendir ();
int
main ()
{
opendir ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11517: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11520: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11523: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11526: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_x_opendir=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_x_opendir=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:11537: result: $ac_cv_lib_x_opendir" >&5
echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
if test $ac_cv_lib_x_opendir = yes; then
  LIBS="$LIBS -lx"
fi

fi

echo "$as_me:11545: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11551 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11567: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11570: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11573: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11576: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_header_time=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_time=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11586: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then

cat >>confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF

fi

echo "$as_me:11596: checking for regular-expression headers" >&5
echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
if test "${cf_cv_regex+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 11603 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <regex.h>
int
main ()
{

	regex_t *p;
	int x = regcomp(p, "", 0);
	int y = regexec(p, "", 0, 0, 0);
	regfree(p);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11621: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11624: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11627: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11630: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_regex="regex.h"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
#line 11638 "configure"
#include "confdefs.h"
#include <regexp.h>
int
main ()
{

		char *p = compile("", "", "", 0);
		int x = step("", "");

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11653: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11656: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11659: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11662: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_regex="regexp.h"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

		cf_save_LIBS="$LIBS"
		LIBS="-lgen $LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 11672 "configure"
#include "confdefs.h"
#include <regexpr.h>
int
main ()
{

			char *p = compile("", "", "");
			int x = step("", "");

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11687: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11690: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11693: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11696: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_regex="regexpr.h"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
LIBS="$cf_save_LIBS"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi

echo "$as_me:11712: result: $cf_cv_regex" >&5
echo "${ECHO_T}$cf_cv_regex" >&6
case $cf_cv_regex in
	regex.h)   cat >>confdefs.h <<\EOF
#define HAVE_REGEX_H_FUNCS 1
EOF
 ;;
	regexp.h)  cat >>confdefs.h <<\EOF
#define HAVE_REGEXP_H_FUNCS 1
EOF
 ;;
	regexpr.h) cat >>confdefs.h <<\EOF
#define HAVE_REGEXPR_H_FUNCS 1
EOF
 ;;
esac

for ac_header in \
fcntl.h \
getopt.h \
limits.h \
locale.h \
poll.h \
sys/bsdtypes.h \
sys/ioctl.h \
sys/param.h \
sys/poll.h \
sys/select.h \
sys/time.h \
sys/times.h \
ttyent.h \
unistd.h \
wctype.h \

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:11748: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11754 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:11758: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:11764: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:11783: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF

fi
done

# check for ISC (this may also define _POSIX_SOURCE)
# Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
if test "$ISC" = yes ; then

echo "$as_me:11797: checking for main in -lcposix" >&5
echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
if test "${ac_cv_lib_cposix_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcposix  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 11805 "configure"
#include "confdefs.h"

int
main ()
{
main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11817: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11820: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11823: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11826: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_cposix_main=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_cposix_main=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:11837: result: $ac_cv_lib_cposix_main" >&5
echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
if test $ac_cv_lib_cposix_main = yes; then
  cat >>confdefs.h <<EOF
#define HAVE_LIBCPOSIX 1
EOF

  LIBS="-lcposix $LIBS"

fi

	echo "$as_me:11848: checking for bzero in -linet" >&5
echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
if test "${ac_cv_lib_inet_bzero+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-linet  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 11856 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char bzero ();
int
main ()
{
bzero ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11875: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11878: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11881: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11884: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_inet_bzero=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_inet_bzero=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:11895: result: $ac_cv_lib_inet_bzero" >&5
echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
if test $ac_cv_lib_inet_bzero = yes; then
  LIBS="$LIBS -linet"
fi
fi

echo "$as_me:11902: checking if sys/time.h works with sys/select.h" >&5
echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
if test "${cf_cv_sys_time_select+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 11909 "configure"
#include "confdefs.h"

#include <sys/types.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11929: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11932: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11935: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11938: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_sys_time_select=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_sys_time_select=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi

echo "$as_me:11950: result: $cf_cv_sys_time_select" >&5
echo "${ECHO_T}$cf_cv_sys_time_select" >&6
test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
#define HAVE_SYS_TIME_SELECT 1
EOF

###	checks for compiler characteristics
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

echo "$as_me:11964: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
if test "${ac_cv_prog_cc_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_prog_cc_stdc=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
#line 11972 "configure"
#include "confdefs.h"
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX			-qlanglvl=ansi
# Ultrix and OSF/1	-std1
# HP-UX 10.20 and later	-Ae
# HP-UX older versions	-Aa -D_HPUX_SOURCE
# SVR4			-Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
if { (eval echo "$as_me:12021: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12024: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12027: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12030: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_stdc=$ac_arg
break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
done
rm -f conftest.$ac_ext conftest.$ac_objext
CC=$ac_save_CC

fi

case "x$ac_cv_prog_cc_stdc" in
  x|xno)
    echo "$as_me:12047: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;;
  *)
    echo "$as_me:12050: result: $ac_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    CC="$CC $ac_cv_prog_cc_stdc" ;;
esac

echo "$as_me:12055: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12061 "configure"
#include "confdefs.h"

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12119: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12122: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12125: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12128: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_const=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_const=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:12138: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then

cat >>confdefs.h <<\EOF
#define const
EOF

fi

echo "$as_me:12148: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat >conftest.$ac_ext <<_ACEOF
#line 12156 "configure"
#include "confdefs.h"
#ifndef __cplusplus
static $ac_kw int static_foo () {return 0; }
$ac_kw int foo () {return 0; }
#endif

_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12165: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12168: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12171: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12174: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_inline=$ac_kw; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done

fi
echo "$as_me:12185: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
  inline | yes) ;;
  no)
cat >>confdefs.h <<\EOF
#define inline
EOF
 ;;
  *)  cat >>confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
 ;;
esac

NCURSES_INLINE=
if test "$ac_cv_c_inline" != no ; then
  NCURSES_INLINE=inline
  if test "$INTEL_COMPILER" = yes
  then
    :
  elif test "$GCC" = yes
  then
    echo "$as_me:12208: checking if gcc supports options to tune inlining" >&5
echo $ECHO_N "checking if gcc supports options to tune inlining... $ECHO_C" >&6
if test "${cf_cv_gcc_inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      cf_save_CFLAGS=$CFLAGS
      CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
      cat >conftest.$ac_ext <<_ACEOF
#line 12217 "configure"
#include "confdefs.h"
inline int foo(void) { return 1; }
int
main ()
{
${cf_cv_main_return:-return} foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12229: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12232: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12235: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12238: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_gcc_inline=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_gcc_inline=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
      CFLAGS=$cf_save_CFLAGS

fi
echo "$as_me:12250: result: $cf_cv_gcc_inline" >&5
echo "${ECHO_T}$cf_cv_gcc_inline" >&6
    if test "$cf_cv_gcc_inline" = yes ; then

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in --param max-inline-insns-single=1200
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

    fi
  fi
fi

echo "$as_me:12326: checking for signal global datatype" >&5
echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
if test "${cf_cv_sig_atomic_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	for cf_type in \
		"volatile sig_atomic_t" \
		"sig_atomic_t" \
		"int"
	do
	cat >conftest.$ac_ext <<_ACEOF
#line 12338 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <signal.h>
#include <stdio.h>

extern $cf_type x;
$cf_type x;
static void handler(int sig)
{
	x = 5;
}
int
main ()
{
signal(SIGINT, handler);
		 x = 1
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12361: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12364: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12367: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12370: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_sig_atomic_t=$cf_type
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_sig_atomic_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		test "$cf_cv_sig_atomic_t" != no && break
	done

fi

echo "$as_me:12384: result: $cf_cv_sig_atomic_t" >&5
echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
#define SIG_ATOMIC_T $cf_cv_sig_atomic_t
EOF

if test $NCURSES_CHTYPE = auto ; then

echo "$as_me:12392: checking for type of chtype" >&5
echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
if test "${cf_cv_typeof_chtype+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

		if test "$cross_compiling" = yes; then
  cf_cv_typeof_chtype=long
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12402 "configure"
#include "confdefs.h"

#define WANT_BITS 31
#include <stdio.h>
int main()
{
	FILE *fp = fopen("cf_test.out", "w");
	if (fp != 0) {
		char *result = "long";
		if (sizeof(unsigned long) > sizeof(unsigned int)) {
			int n;
			unsigned int x, y;
			for (n = 0; n < WANT_BITS; n++) {
				x = (1 << n);
				y = (x >> n);
				if (y != 1 || x == 0) {
					x = 0;
					break;
				}
			}
			/*
			 * If x is nonzero, an int is big enough for the bits
			 * that we want.
			 */
			result = (x != 0) ? "int" : "long";
		}
		fputs(result, fp);
		fclose(fp);
	}
	${cf_cv_main_return:-return}(0);
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12437: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12440: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12442: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12445: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_typeof_chtype=`cat cf_test.out`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_typeof_chtype=long
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
		rm -f cf_test.out

fi

echo "$as_me:12460: result: $cf_cv_typeof_chtype" >&5
echo "${ECHO_T}$cf_cv_typeof_chtype" >&6

cat >>confdefs.h <<EOF
#define TYPEOF_CHTYPE $cf_cv_typeof_chtype
EOF

else
	cf_cv_typeof_chtype=$NCURSES_CHTYPE
fi
test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""

echo "$as_me:12472: checking if unsigned literals are legal" >&5
echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
if test "${cf_cv_unsigned_literals+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 12479 "configure"
#include "confdefs.h"

int
main ()
{
long x = 1L + 1UL + 1U + 1
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12491: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12494: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12497: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12500: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_unsigned_literals=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_unsigned_literals=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi

echo "$as_me:12512: result: $cf_cv_unsigned_literals" >&5
echo "${ECHO_T}$cf_cv_unsigned_literals" >&6

cf_cv_1UL="1"
test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
test ".$cf_cv_typeof_chtype"    = .long && cf_cv_1UL="${cf_cv_1UL}L"

if test $NCURSES_MMASK_T = auto ; then
	cf_cv_typeof_mmask_t=long
else
	cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
fi
test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""

###	Checks for external-data

echo "$as_me:12528: checking if external errno is declared" >&5
echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
if test "${cf_cv_dcl_errno+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    cat >conftest.$ac_ext <<_ACEOF
#line 12535 "configure"
#include "confdefs.h"

#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include <stdio.h>
#include <sys/types.h>
#include <errno.h>
int
main ()
{
int x = (int) errno
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12553: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12556: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12559: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12562: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_dcl_errno=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_dcl_errno=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:12573: result: $cf_cv_dcl_errno" >&5
echo "${ECHO_T}$cf_cv_dcl_errno" >&6

if test "$cf_cv_dcl_errno" = no ; then

cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`

    cat >>confdefs.h <<EOF
#define $cf_result 1
EOF

fi

# It's possible (for near-UNIX clones) that the data doesn't exist

echo "$as_me:12588: checking if external errno exists" >&5
echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
if test "${cf_cv_have_errno+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    cat >conftest.$ac_ext <<_ACEOF
#line 12595 "configure"
#include "confdefs.h"

#undef errno
extern int errno;

int
main ()
{
errno = 2
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12610: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12613: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12616: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12619: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_have_errno=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_have_errno=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi
echo "$as_me:12630: result: $cf_cv_have_errno" >&5
echo "${ECHO_T}$cf_cv_have_errno" >&6

if test "$cf_cv_have_errno" = yes ; then

cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`

    cat >>confdefs.h <<EOF
#define $cf_result 1
EOF

fi

echo "$as_me:12643: checking if data-only library module links" >&5
echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
if test "${cf_cv_link_dataonly+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	rm -f conftest.a
	cat >conftest.$ac_ext <<EOF
#line 12651 "configure"
int	testdata[3] = { 123, 456, 789 };
EOF
	if { (eval echo "$as_me:12654: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12657: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
		mv conftest.o data.o && \
		( $AR $AR_OPTS conftest.a data.o ) 2>&5 1>/dev/null
	fi
	rm -f conftest.$ac_ext data.o
	cat >conftest.$ac_ext <<EOF
#line 12664 "configure"
int	testfunc()
{
#if defined(NeXT)
	${cf_cv_main_return:-return}(1);	/* I'm told this linker is broken */
#else
	extern int testdata[3];
	return testdata[0] == 123
	   &&  testdata[1] == 456
	   &&  testdata[2] == 789;
#endif
}
EOF
	if { (eval echo "$as_me:12677: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12680: \$? = $ac_status" >&5
  (exit $ac_status); }; then
		mv conftest.o func.o && \
		( $AR $AR_OPTS conftest.a func.o ) 2>&5 1>/dev/null
	fi
	rm -f conftest.$ac_ext func.o
	( eval $RANLIB conftest.a ) 2>&5 >/dev/null
	cf_saveLIBS="$LIBS"
	LIBS="conftest.a $LIBS"
	if test "$cross_compiling" = yes; then
  cf_cv_link_dataonly=unknown
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12693 "configure"
#include "confdefs.h"

	int main()
	{
		extern int testfunc();
		${cf_cv_main_return:-return} (!testfunc());
	}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12704: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12707: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12709: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12712: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_link_dataonly=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_link_dataonly=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
	LIBS="$cf_saveLIBS"

fi

echo "$as_me:12727: result: $cf_cv_link_dataonly" >&5
echo "${ECHO_T}$cf_cv_link_dataonly" >&6

if test "$cf_cv_link_dataonly" = no ; then
	cat >>confdefs.h <<\EOF
#define BROKEN_LINKER 1
EOF

	BROKEN_LINKER=1
fi

###	Checks for library functions.

for ac_func in \
getcwd \
getegid \
geteuid \
getttynam \
issetugid \
poll \
remove \
select \
setbuf \
setbuffer \
setvbuf \
sigaction \
sigvec \
strdup \
strstr \
tcgetpgrp \
times \
vsnprintf \

do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:12762: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12768 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12799: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12802: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12805: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12808: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12818: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

if test "$with_getcap" = "yes" ; then

echo "$as_me:12830: checking for terminal-capability database functions" >&5
echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
if test "${cf_cv_cgetent+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 12837 "configure"
#include "confdefs.h"

#include <stdlib.h>
int
main ()
{

	char temp[128];
	char *buf = temp;
	char *db_array = temp;
	cgetent(&buf, /* int *, */ &db_array, "vt100");
	cgetcap(buf, "tc", '=');
	cgetmatch(buf, "tc");

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12857: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12860: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12863: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12866: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_cgetent=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_cgetent=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi

echo "$as_me:12878: result: $cf_cv_cgetent" >&5
echo "${ECHO_T}$cf_cv_cgetent" >&6
test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
#define HAVE_BSD_CGETENT 1
EOF

fi

echo "$as_me:12886: checking for isascii" >&5
echo $ECHO_N "checking for isascii... $ECHO_C" >&6
if test "${cf_cv_have_isascii+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 12893 "configure"
#include "confdefs.h"
#include <ctype.h>
int
main ()
{
int x = isascii(' ')
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12905: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12908: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12911: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12914: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_have_isascii=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_have_isascii=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi
echo "$as_me:12925: result: $cf_cv_have_isascii" >&5
echo "${ECHO_T}$cf_cv_have_isascii" >&6
test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
#define HAVE_ISASCII 1
EOF

if test "$ac_cv_func_sigaction" = yes; then
echo "$as_me:12932: checking whether sigaction needs _POSIX_SOURCE" >&5
echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line 12935 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <signal.h>
int
main ()
{
struct sigaction act
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12949: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12952: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12955: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12958: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  sigact_bad=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line 12966 "configure"
#include "confdefs.h"

#define _POSIX_SOURCE
#include <sys/types.h>
#include <signal.h>
int
main ()
{
struct sigaction act
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12981: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12984: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12987: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12990: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  sigact_bad=yes
	 cat >>confdefs.h <<\EOF
#define SVR4_ACTION 1
EOF

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
sigact_bad=unknown
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:13005: result: $sigact_bad" >&5
echo "${ECHO_T}$sigact_bad" >&6
fi

echo "$as_me:13009: checking if nanosleep really works" >&5
echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
if test "${cf_cv_func_nanosleep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test "$cross_compiling" = yes; then
  cf_cv_func_nanosleep=unknown
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13019 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <errno.h>
#include <time.h>

#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif

int main() {
	struct timespec ts1, ts2;
	int code;
	ts1.tv_sec  = 0;
	ts1.tv_nsec = 750000000;
	ts2.tv_sec  = 0;
	ts2.tv_nsec = 0;
	errno = 0;
	code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
	${cf_cv_main_return:-return}(code != 0);
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:13044: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13047: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:13049: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13052: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_func_nanosleep=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_func_nanosleep=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:13064: result: $cf_cv_func_nanosleep" >&5
echo "${ECHO_T}$cf_cv_func_nanosleep" >&6

test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
#define HAVE_NANOSLEEP 1
EOF

for ac_header in \
termio.h \
termios.h \
unistd.h \

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:13078: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13084 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:13088: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:13094: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:13113: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF

fi
done

if test "$ISC" = yes ; then

for ac_header in sys/termio.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:13128: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13134 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:13138: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:13144: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:13163: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF

fi
done

fi
if test "$ac_cv_header_termios_h" = yes ; then
	case "$CFLAGS $CPPFLAGS" in
	*-D_POSIX_SOURCE*)
		termios_bad=dunno ;;
	*)	termios_bad=maybe ;;
	esac
	if test "$termios_bad" = maybe ; then
	echo "$as_me:13181: checking whether termios.h needs _POSIX_SOURCE" >&5
echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
	cat >conftest.$ac_ext <<_ACEOF
#line 13184 "configure"
#include "confdefs.h"
#include <termios.h>
int
main ()
{
struct termios foo; int x = foo.c_iflag
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13196: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13199: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13202: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13205: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  termios_bad=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

		cat >conftest.$ac_ext <<_ACEOF
#line 13213 "configure"
#include "confdefs.h"

#define _POSIX_SOURCE
#include <termios.h>
int
main ()
{
struct termios foo; int x = foo.c_iflag
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13227: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13230: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13233: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13236: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  termios_bad=unknown
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
termios_bad=yes cat >>confdefs.h <<\EOF
#define SVR4_TERMIO 1
EOF

fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
rm -f conftest.$ac_objext conftest.$ac_ext
	echo "$as_me:13251: result: $termios_bad" >&5
echo "${ECHO_T}$termios_bad" >&6
	fi
fi

echo "$as_me:13256: checking for tcgetattr" >&5
echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
if test "${cf_cv_have_tcgetattr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 13263 "configure"
#include "confdefs.h"

#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#define TTY struct termios
#else
#ifdef HAVE_TERMIO_H
#include <termio.h>
#define TTY struct termio
#endif
#endif

int
main ()
{

TTY foo;
tcgetattr(1, &foo);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13291: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13294: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13297: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13300: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_have_tcgetattr=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_have_tcgetattr=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13310: result: $cf_cv_have_tcgetattr" >&5
echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
#define HAVE_TCGETATTR 1
EOF

echo "$as_me:13316: checking for vsscanf function or workaround" >&5
echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
if test "${cf_cv_func_vsscanf+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 13323 "configure"
#include "confdefs.h"

#include <stdarg.h>
#include <stdio.h>
int
main ()
{

	va_list ap;
	vsscanf("from", "%d", ap)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13339: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13342: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13345: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13348: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_func_vsscanf=vsscanf
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line 13356 "configure"
#include "confdefs.h"

#include <stdarg.h>
#include <stdio.h>
int
main ()
{

    FILE strbuf;
    char *str = "from";

    strbuf._flag = _IOREAD;
    strbuf._ptr = strbuf._base = (unsigned char *) str;
    strbuf._cnt = strlen(str);
    strbuf._file = _NFILE;
    return (vfscanf(&strbuf, "%d", ap))
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13378: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13381: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13384: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13387: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_func_vsscanf=vfscanf
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line 13395 "configure"
#include "confdefs.h"

#include <stdarg.h>
#include <stdio.h>
int
main ()
{

    FILE strbuf;
    char *str = "from";

    strbuf._flag = _IOREAD;
    strbuf._ptr = strbuf._base = (unsigned char *) str;
    strbuf._cnt = strlen(str);
    strbuf._file = _NFILE;
    return (_doscan(&strbuf, "%d", ap))
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13417: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13420: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13423: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13426: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_func_vsscanf=_doscan
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

cf_cv_func_vsscanf=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13441: result: $cf_cv_func_vsscanf" >&5
echo "${ECHO_T}$cf_cv_func_vsscanf" >&6

case $cf_cv_func_vsscanf in #(vi
vsscanf) cat >>confdefs.h <<\EOF
#define HAVE_VSSCANF 1
EOF
;; #(vi
vfscanf) cat >>confdefs.h <<\EOF
#define HAVE_VFSCANF 1
EOF
;; #(vi
_doscan) cat >>confdefs.h <<\EOF
#define HAVE__DOSCAN 1
EOF
;;
esac

echo "$as_me:13459: checking for working mkstemp" >&5
echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
if test "${cf_cv_func_mkstemp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

rm -f conftest*
if test "$cross_compiling" = yes; then
  echo "$as_me:13467: checking for mkstemp" >&5
echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13473 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char mkstemp (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mkstemp ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
choke me
#else
f = mkstemp;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13504: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13507: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13510: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13513: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_mkstemp=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_mkstemp=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13523: result: $ac_cv_func_mkstemp" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp" >&6

else
  cat >conftest.$ac_ext <<_ACEOF
#line 13528 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
int main()
{
	char *tmpl = "conftestXXXXXX";
	char name[2][80];
	int n;
	int result = 0;
	int fd;
	struct stat sb;

	umask(077);
	for (n = 0; n < 2; ++n) {
		strcpy(name[n], tmpl);
		if ((fd = mkstemp(name[n])) >= 0) {
			if (!strcmp(name[n], tmpl)
			 || stat(name[n], &sb) != 0
			 || (sb.st_mode & S_IFMT) != S_IFREG
			 || (sb.st_mode & 077) != 0) {
				result = 1;
			}
			close(fd);
		}
	}
	if (result == 0
	 && !strcmp(name[0], name[1]))
		result = 1;
	${cf_cv_main_return:-return}(result);
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:13566: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13569: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:13571: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13574: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_func_mkstemp=yes

else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_func_mkstemp=no

fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

fi
echo "$as_me:13589: result: $cf_cv_func_mkstemp" >&5
echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
if test "$cf_cv_func_mkstemp" = yes ; then
	cat >>confdefs.h <<\EOF
#define HAVE_MKSTEMP 1
EOF

fi

# setup for prototype of fallback for vsscanf()

if test "$cf_cv_func_vsscanf" = vsscanf ; then
	HAVE_VSSCANF=1
else
	HAVE_VSSCANF=0
fi

if test "$cross_compiling" = yes ; then
	{ echo "$as_me:13607: WARNING: cross compiling: assume setvbuf params not reversed" >&5
echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
else
	echo "$as_me:13610: checking whether setvbuf arguments are reversed" >&5
echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:13616: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13621 "configure"
#include "confdefs.h"
#include <stdio.h>
/* If setvbuf has the reversed format, exit 0. */
int
main ()
{
  /* This call has the arguments reversed.
     A reversed system may check and see that the address of main
     is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
  if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
    $ac_main_return(1);
  putc('\r', stdout);
  $ac_main_return(0);			/* Non-reversed systems segv here.  */
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:13638: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13641: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:13643: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13646: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_setvbuf_reversed=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_setvbuf_reversed=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f core core.* *.core
fi
echo "$as_me:13659: result: $ac_cv_func_setvbuf_reversed" >&5
echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
if test $ac_cv_func_setvbuf_reversed = yes; then

cat >>confdefs.h <<\EOF
#define SETVBUF_REVERSED 1
EOF

fi

fi
echo "$as_me:13670: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13676 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
# undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

int
main ()
{
int i;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13698: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13701: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13704: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13707: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_signal=void
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_signal=int
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:13717: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6

cat >>confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF

echo "$as_me:13724: checking for type sigaction_t" >&5
echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
if test "${cf_cv_type_sigaction+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 13731 "configure"
#include "confdefs.h"

#include <signal.h>
int
main ()
{
sigaction_t x
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13744: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13747: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13750: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13753: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_type_sigaction=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_type_sigaction=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

echo "$as_me:13764: result: $cf_cv_type_sigaction" >&5
echo "${ECHO_T}$cf_cv_type_sigaction" >&6
test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
#define HAVE_TYPE_SIGACTION 1
EOF

echo "$as_me:13770: checking declaration of size-change" >&5
echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
if test "${cf_cv_sizechange+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    cf_cv_sizechange=unknown
    cf_save_CPPFLAGS="$CPPFLAGS"

for cf_opts in "" "NEED_PTEM_H"
do

    CPPFLAGS="$cf_save_CPPFLAGS"
    test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
    cat >conftest.$ac_ext <<_ACEOF
#line 13785 "configure"
#include "confdefs.h"
#include <sys/types.h>
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#else
#ifdef HAVE_TERMIO_H
#include <termio.h>
#endif
#endif
#ifdef NEED_PTEM_H
/* This is a workaround for SCO:  they neglected to define struct winsize in
 * termios.h -- it's only in termio.h and ptem.h
 */
#include        <sys/stream.h>
#include        <sys/ptem.h>
#endif
#if !defined(sun) || !defined(HAVE_TERMIOS_H)
#include <sys/ioctl.h>
#endif

int
main ()
{

#ifdef TIOCGSIZE
	struct ttysize win;	/* FIXME: what system is this? */
	int y = win.ts_lines;
	int x = win.ts_cols;
#else
#ifdef TIOCGWINSZ
	struct winsize win;
	int y = win.ws_row;
	int x = win.ws_col;
#else
	no TIOCGSIZE or TIOCGWINSZ
#endif /* TIOCGWINSZ */
#endif /* TIOCGSIZE */

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13829: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13832: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13835: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13838: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_sizechange=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_sizechange=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

	CPPFLAGS="$cf_save_CPPFLAGS"
	if test "$cf_cv_sizechange" = yes ; then
		echo "size-change succeeded ($cf_opts)" >&5
		test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
		break
	fi
done

fi
echo "$as_me:13857: result: $cf_cv_sizechange" >&5
echo "${ECHO_T}$cf_cv_sizechange" >&6
if test "$cf_cv_sizechange" != no ; then
	cat >>confdefs.h <<\EOF
#define HAVE_SIZECHANGE 1
EOF

	case $cf_cv_sizechange in #(vi
	NEED*)
		cat >>confdefs.h <<EOF
#define $cf_cv_sizechange  1
EOF

		;;
	esac
fi

echo "$as_me:13874: checking for memmove" >&5
echo $ECHO_N "checking for memmove... $ECHO_C" >&6
if test "${ac_cv_func_memmove+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13880 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char memmove (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char memmove ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_memmove) || defined (__stub___memmove)
choke me
#else
f = memmove;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13911: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13914: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13917: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13920: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_memmove=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_memmove=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13930: result: $ac_cv_func_memmove" >&5
echo "${ECHO_T}$ac_cv_func_memmove" >&6
if test $ac_cv_func_memmove = yes; then
  :
else

echo "$as_me:13936: checking for bcopy" >&5
echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
if test "${ac_cv_func_bcopy+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13942 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char bcopy (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char bcopy ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_bcopy) || defined (__stub___bcopy)
choke me
#else
f = bcopy;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13973: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13976: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13979: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13982: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_bcopy=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_bcopy=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13992: result: $ac_cv_func_bcopy" >&5
echo "${ECHO_T}$ac_cv_func_bcopy" >&6
if test $ac_cv_func_bcopy = yes; then

	echo "$as_me:13996: checking if bcopy does overlapping moves" >&5
echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
if test "${cf_cv_good_bcopy+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

		if test "$cross_compiling" = yes; then
  cf_cv_good_bcopy=unknown
else
  cat >conftest.$ac_ext <<_ACEOF
#line 14006 "configure"
#include "confdefs.h"

int main() {
	static char data[] = "abcdefghijklmnopqrstuwwxyz";
	char temp[40];
	bcopy(data, temp, sizeof(data));
	bcopy(temp+10, temp, 15);
	bcopy(temp+5, temp+15, 10);
	${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:14020: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14023: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:14025: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14028: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_good_bcopy=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_good_bcopy=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

fi
echo "$as_me:14041: result: $cf_cv_good_bcopy" >&5
echo "${ECHO_T}$cf_cv_good_bcopy" >&6

else
  cf_cv_good_bcopy=no
fi

	if test "$cf_cv_good_bcopy" = yes ; then
		cat >>confdefs.h <<\EOF
#define USE_OK_BCOPY 1
EOF

	else
		cat >>confdefs.h <<\EOF
#define USE_MY_MEMMOVE 1
EOF

	fi

fi

echo "$as_me:14062: checking if poll really works" >&5
echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
if test "${cf_cv_working_poll+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test "$cross_compiling" = yes; then
  cf_cv_working_poll=unknown
else
  cat >conftest.$ac_ext <<_ACEOF
#line 14072 "configure"
#include "confdefs.h"

#include <stdio.h>
#ifdef HAVE_POLL_H
#include <poll.h>
#else
#include <sys/poll.h>
#endif
int main() {
	struct pollfd myfds;
	int ret;

	myfds.fd = 0;
	myfds.events = POLLIN;

	ret = poll(&myfds, 1, 100);
	${cf_cv_main_return:-return}(ret != 0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:14093: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14096: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:14098: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14101: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_working_poll=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_working_poll=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:14113: result: $cf_cv_working_poll" >&5
echo "${ECHO_T}$cf_cv_working_poll" >&6
test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
#define HAVE_WORKING_POLL 1
EOF

# special check for test/ditto.c

echo "$as_me:14121: checking for openpty in -lutil" >&5
echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
if test "${ac_cv_lib_util_openpty+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lutil  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 14129 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char openpty ();
int
main ()
{
openpty ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14148: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14151: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14154: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14157: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_util_openpty=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_util_openpty=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:14168: result: $ac_cv_lib_util_openpty" >&5
echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
if test $ac_cv_lib_util_openpty = yes; then
  cf_cv_lib_util=yes
else
  cf_cv_lib_util=no
fi

echo "$as_me:14176: checking for openpty header" >&5
echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
if test "${cf_cv_func_openpty+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    cf_save_LIBS="$LIBS"
    test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
    for cf_header in pty.h libutil.h util.h
    do
    cat >conftest.$ac_ext <<_ACEOF
#line 14187 "configure"
#include "confdefs.h"

#include <$cf_header>

int
main ()
{

    int x = openpty((int *)0, (int *)0, (char *)0,
                   (struct termios *)0, (struct winsize *)0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14204: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14207: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14210: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14213: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

        cf_cv_func_openpty=$cf_header
        break

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

        cf_cv_func_openpty=no

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    done
    LIBS="$cf_save_LIBS"

fi
echo "$as_me:14231: result: $cf_cv_func_openpty" >&5
echo "${ECHO_T}$cf_cv_func_openpty" >&6

if test "$cf_cv_func_openpty" != no ; then
    cat >>confdefs.h <<EOF
#define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
EOF

    cat >>confdefs.h <<\EOF
#define USE_XTERM_PTY 1
EOF

    if test "$cf_cv_lib_util" = yes ; then
        TEST_LIBS="-lutil $TEST_LIBS"
    fi
fi

if test "$with_hashed_db" != no ; then
	cat >>confdefs.h <<\EOF
#define USE_HASHED_DB 1
EOF

case $with_hashed_db in #(vi
yes|*able*) #(vi
    ;;
*)
    if test -d "$with_hashed_db" ; then

if test -n "$with_hashed_db/include" ; then
  for cf_add_incdir in $with_hashed_db/include
  do
	while test $cf_add_incdir != /usr/include
	do
	  if test -d $cf_add_incdir
	  then
		cf_have_incdir=no
		if test -n "$CFLAGS$CPPFLAGS" ; then
		  # a loop is needed to ensure we can add subdirs of existing dirs
		  for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
			if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
			  cf_have_incdir=yes; break
			fi
		  done
		fi

		if test "$cf_have_incdir" = no ; then
          if test "$cf_add_incdir" = /usr/local/include ; then
			if test "$GCC" = yes
			then
			  cf_save_CPPFLAGS=$CPPFLAGS
			  CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
			  cat >conftest.$ac_ext <<_ACEOF
#line 14283 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
printf("Hello")
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14295: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14298: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14301: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14304: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_have_incdir=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
			  CPPFLAGS=$cf_save_CPPFLAGS
			fi
		  fi
		fi

		if test "$cf_have_incdir" = no ; then
		  test -n "$verbose" && echo "	adding $cf_add_incdir to include-path" 1>&6

echo "${as_me-configure}:14321: testing adding $cf_add_incdir to include-path ..." 1>&5

		  CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"

          cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
          test "$cf_top_incdir" = "$cf_add_incdir" && break
          cf_add_incdir="$cf_top_incdir"
		else
		  break
		fi
	  fi
	done
  done
fi

if test -n "$with_hashed_db/lib" ; then
  for cf_add_libdir in $with_hashed_db/lib
  do
    if test $cf_add_libdir = /usr/lib ; then
      :
    elif test -d $cf_add_libdir
    then
      cf_have_libdir=no
      if test -n "$LDFLAGS$LIBS" ; then
        # a loop is needed to ensure we can add subdirs of existing dirs
        for cf_test_libdir in $LDFLAGS $LIBS ; do
          if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
            cf_have_libdir=yes; break
          fi
        done
      fi
      if test "$cf_have_libdir" = no ; then
        test -n "$verbose" && echo "	adding $cf_add_libdir to library-path" 1>&6

echo "${as_me-configure}:14355: testing adding $cf_add_libdir to library-path ..." 1>&5

        LDFLAGS="-L$cf_add_libdir $LDFLAGS"
      fi
    fi
  done
fi

    fi
esac

echo "$as_me:14366: checking for db.h" >&5
echo $ECHO_N "checking for db.h... $ECHO_C" >&6
if test "${ac_cv_header_db_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 14372 "configure"
#include "confdefs.h"
#include <db.h>
_ACEOF
if { (eval echo "$as_me:14376: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:14382: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_db_h=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_db_h=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:14401: result: $ac_cv_header_db_h" >&5
echo "${ECHO_T}$ac_cv_header_db_h" >&6
if test $ac_cv_header_db_h = yes; then

echo "$as_me:14405: checking for version of db" >&5
echo $ECHO_N "checking for version of db... $ECHO_C" >&6
if test "${cf_cv_hashed_db_version+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_hashed_db_version=unknown

for cf_db_version in 1 2 3 4 5
do

echo "${as_me-configure}:14416: testing checking for db version $cf_db_version ..." 1>&5

	cat >conftest.$ac_ext <<_ACEOF
#line 14419 "configure"
#include "confdefs.h"

$ac_includes_default
#include <db.h>

#ifdef DB_VERSION_MAJOR
	/* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
#if $cf_db_version == DB_VERSION_MAJOR
	/* ok */
#else
	make an error
#endif
#else
#if $cf_db_version == 1
	/* ok: assuming this is DB 1.8.5 */
#else
	make an error
#endif
#endif

int
main ()
{
DBT *foo = 0
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14449: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14452: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14455: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14458: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

	cf_cv_hashed_db_version=$cf_db_version
	break

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done

fi
echo "$as_me:14472: result: $cf_cv_hashed_db_version" >&5
echo "${ECHO_T}$cf_cv_hashed_db_version" >&6

if test "$cf_cv_hashed_db_version" = unknown ; then
	{ { echo "$as_me:14476: error: Cannot determine version of db" >&5
echo "$as_me: error: Cannot determine version of db" >&2;}
   { (exit 1); exit 1; }; }
else

echo "$as_me:14481: checking for db libraries" >&5
echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
if test "${cf_cv_hashed_db_libs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_hashed_db_libs=unknown
for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
do
	cf_save_libs="$LIBS"
	if test -n "$cf_db_libs"; then
		LIBS="-l$cf_db_libs $LIBS"
	fi

echo "${as_me-configure}:14495: testing checking for library "$cf_db_libs" ..." 1>&5

	cat >conftest.$ac_ext <<_ACEOF
#line 14498 "configure"
#include "confdefs.h"

$ac_includes_default
#include <db.h>

int
main ()
{

	char *path = "/tmp/foo";
#ifdef DB_VERSION_MAJOR
#if DB_VERSION_MAJOR >= 4
	DB *result = 0;
	db_create(&result, NULL, 0);
	result->open(result,
		NULL,
		path,
		path,
		DB_HASH,
		DB_CREATE,
		0644);
#elif DB_VERSION_MAJOR >= 3
	DB *result = 0;
	db_create(&result, NULL, 0);
	result->open(result,
		path,
		path,
		DB_HASH,
		DB_CREATE,
		0644);
#elif DB_VERSION_MAJOR >= 2
	DB *result = 0;
	db_open(path,
		DB_HASH,
		DB_CREATE,
		0644,
		(DB_ENV *) 0,
		(DB_INFO *) 0,
		&result);
#endif /* DB_VERSION_MAJOR */
#else
	DB *result = dbopen(path,
		     2,
		     0644,
		     DB_HASH,
		     0);
#endif
	${cf_cv_main_return:-return}(result != 0)

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14553: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14556: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14559: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14562: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

	if test -n "$cf_db_libs" ; then
		cf_cv_hashed_db_libs=$cf_db_libs
	else
		cf_cv_hashed_db_libs=default
	fi
	LIBS="$cf_save_libs"
	break

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	LIBS="$cf_save_libs"
done

fi
echo "$as_me:14582: result: $cf_cv_hashed_db_libs" >&5
echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6

	if test "$cf_cv_hashed_db_libs" = unknown ; then
		{ { echo "$as_me:14586: error: Cannot determine library for db" >&5
echo "$as_me: error: Cannot determine library for db" >&2;}
   { (exit 1); exit 1; }; }
	elif test "$cf_cv_hashed_db_libs" != default ; then
		LIBS="-l$cf_cv_hashed_db_libs $LIBS"
	fi
fi

else

	{ { echo "$as_me:14596: error: Cannot find db.h" >&5
echo "$as_me: error: Cannot find db.h" >&2;}
   { (exit 1); exit 1; }; }

fi

fi

if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
	CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
	CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
fi

# Just in case, check if the C compiler has a bool type.

echo "$as_me:14611: checking if we should include stdbool.h" >&5
echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6

if test "${cf_cv_header_stdbool_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 14619 "configure"
#include "confdefs.h"

int
main ()
{
bool foo = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14631: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14634: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14637: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14640: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_header_stdbool_h=0
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 14647 "configure"
#include "confdefs.h"

#ifndef __BEOS__
#include <stdbool.h>
#endif

int
main ()
{
bool foo = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14663: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14666: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14669: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14672: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_header_stdbool_h=1
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_header_stdbool_h=0
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

if test "$cf_cv_header_stdbool_h" = 1
then	echo "$as_me:14686: result: yes" >&5
echo "${ECHO_T}yes" >&6
else	echo "$as_me:14688: result: no" >&5
echo "${ECHO_T}no" >&6
fi

echo "$as_me:14692: checking for builtin bool type" >&5
echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6

if test "${cf_cv_cc_bool_type+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 14700 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <sys/types.h>

int
main ()
{
bool x = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14715: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14718: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14721: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14724: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_cc_bool_type=1
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_cc_bool_type=0
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi

if test "$cf_cv_cc_bool_type" = 1
then	echo "$as_me:14737: result: yes" >&5
echo "${ECHO_T}yes" >&6
else	echo "$as_me:14739: result: no" >&5
echo "${ECHO_T}no" >&6
fi

# Check for C++ compiler characteristics (and ensure that it's there!)
if test -n "$CXX" ; then
	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

if test -n "$GXX" ; then
case $cf_cv_system_name in #(vi
os2*) #(vi
	cf_stdcpp_libname=stdcpp
	;;
*)
	cf_stdcpp_libname=stdc++
	;;
esac
echo "$as_me:14761: checking for library $cf_stdcpp_libname" >&5
echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
if test "${cf_cv_libstdcpp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cf_save="$LIBS"
	LIBS="$LIBS -l$cf_stdcpp_libname"
cat >conftest.$ac_ext <<_ACEOF
#line 14770 "configure"
#include "confdefs.h"

#include <strstream.h>
int
main ()
{

char buf[80];
strstreambuf foo(buf, sizeof(buf))

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14786: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14789: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14792: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14795: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_libstdcpp=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_libstdcpp=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	LIBS="$cf_save"

fi
echo "$as_me:14807: result: $cf_cv_libstdcpp" >&5
echo "${ECHO_T}$cf_cv_libstdcpp" >&6
test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
fi

	echo "$as_me:14812: checking whether $CXX understands -c and -o together" >&5
echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
if test "${cf_cv_prog_CXX_c_o+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat > conftest.$ac_ext <<CF_EOF
#include <stdio.h>
int main()
{
	${cf_cv_main_return:-return}(0);
}
CF_EOF
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
if { (eval echo "$as_me:14828: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14831: \$? = $ac_status" >&5
  (exit $ac_status); } &&
  test -f conftest2.$ac_objext && { (eval echo "$as_me:14833: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14836: \$? = $ac_status" >&5
  (exit $ac_status); };
then
  eval cf_cv_prog_CXX_c_o=yes
else
  eval cf_cv_prog_CXX_c_o=no
fi
rm -f conftest*

fi
if test $cf_cv_prog_CXX_c_o = yes; then
  echo "$as_me:14847: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:14850: result: no" >&5
echo "${ECHO_T}no" >&6
fi

	case $GXX_VERSION in
	1*|2.0-6*)
		cf_cxx_library=yes
		;;
	*-2.7*|2.7*)

cf_cxx_library=unknown
case $cf_cv_system_name in #(vi
os2*) #(vi
	cf_gpp_libname=gpp
	;;
*)
	cf_gpp_libname=g++
	;;
esac
if test "$GXX" = yes; then
	echo "$as_me:14870: checking for lib$cf_gpp_libname" >&5
echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
	cf_save="$LIBS"
	LIBS="$LIBS -l$cf_gpp_libname"
	cat >conftest.$ac_ext <<_ACEOF
#line 14875 "configure"
#include "confdefs.h"

#include <$cf_gpp_libname/builtin.h>

int
main ()
{
two_arg_error_handler_t foo2 = lib_error_handler
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14889: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14892: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14895: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14898: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cxx_library=yes
	 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
	 if test "$cf_gpp_libname" = cpp ; then
	    cat >>confdefs.h <<\EOF
#define HAVE_GPP_BUILTIN_H 1
EOF

	 else
	    cat >>confdefs.h <<\EOF
#define HAVE_GXX_BUILTIN_H 1
EOF

	 fi
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 14917 "configure"
#include "confdefs.h"

#include <builtin.h>

int
main ()
{
two_arg_error_handler_t foo2 = lib_error_handler
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14931: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14934: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14937: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14940: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cxx_library=yes
	 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
	 cat >>confdefs.h <<\EOF
#define HAVE_BUILTIN_H 1
EOF

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cxx_library=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	LIBS="$cf_save"
	echo "$as_me:14957: result: $cf_cxx_library" >&5
echo "${ECHO_T}$cf_cxx_library" >&6
fi

		;;
	*)
		cf_cxx_library=no
		;;
	esac

	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return
echo "$as_me:14973: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
if test -z "$CXXCPP"; then
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 14990 "configure"
#include "confdefs.h"
#include <assert.h>
                     Syntax error
_ACEOF
if { (eval echo "$as_me:14995: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:15001: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 15024 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:15028: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:15034: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
echo "$as_me:15071: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 15081 "configure"
#include "confdefs.h"
#include <assert.h>
                     Syntax error
_ACEOF
if { (eval echo "$as_me:15086: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:15092: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 15115 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:15119: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:15125: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:15153: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

for ac_header in iostream typeinfo
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:15168: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15174 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:15178: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:15184: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:15203: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF

fi
done

    if test x"$ac_cv_header_iostream" = xyes ; then
        echo "$as_me:15214: checking if iostream uses std-namespace" >&5
echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
        cat >conftest.$ac_ext <<_ACEOF
#line 15217 "configure"
#include "confdefs.h"

#include <iostream>
using std::endl;
using std::cerr;
int
main ()
{

cerr << "testing" << endl;

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15234: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15237: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:15240: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15243: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_iostream_namespace=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_iostream_namespace=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
        echo "$as_me:15252: result: $cf_iostream_namespace" >&5
echo "${ECHO_T}$cf_iostream_namespace" >&6
        if test "$cf_iostream_namespace" = yes ; then
            cat >>confdefs.h <<\EOF
#define IOSTREAM_NAMESPACE 1
EOF

        fi
    fi

echo "$as_me:15262: checking if we should include stdbool.h" >&5
echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6

if test "${cf_cv_header_stdbool_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 15270 "configure"
#include "confdefs.h"

int
main ()
{
bool foo = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15282: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15285: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:15288: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15291: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_header_stdbool_h=0
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 15298 "configure"
#include "confdefs.h"

#ifndef __BEOS__
#include <stdbool.h>
#endif

int
main ()
{
bool foo = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15314: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15317: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:15320: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15323: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_header_stdbool_h=1
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_header_stdbool_h=0
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

if test "$cf_cv_header_stdbool_h" = 1
then	echo "$as_me:15337: result: yes" >&5
echo "${ECHO_T}yes" >&6
else	echo "$as_me:15339: result: no" >&5
echo "${ECHO_T}no" >&6
fi

echo "$as_me:15343: checking for builtin bool type" >&5
echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6

if test "${cf_cv_builtin_bool+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 15351 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <sys/types.h>

int
main ()
{
bool x = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15366: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15369: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:15372: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15375: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_builtin_bool=1
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_builtin_bool=0
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi

if test "$cf_cv_builtin_bool" = 1
then	echo "$as_me:15388: result: yes" >&5
echo "${ECHO_T}yes" >&6
else	echo "$as_me:15390: result: no" >&5
echo "${ECHO_T}no" >&6
fi

echo "$as_me:15394: checking for size of bool" >&5
echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
if test "${cf_cv_type_of_bool+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	rm -f cf_test.out
	if test "$cross_compiling" = yes; then
  cf_cv_type_of_bool=unknown
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15405 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdio.h>

#if defined(__cplusplus)

#ifdef HAVE_GXX_BUILTIN_H
#include <g++/builtin.h>
#elif HAVE_GPP_BUILTIN_H
#include <gpp/builtin.h>
#elif HAVE_BUILTIN_H
#include <builtin.h>
#endif

#else

#if $cf_cv_header_stdbool_h
#include <stdbool.h>
#endif

#endif

main()
{
	FILE *fp = fopen("cf_test.out", "w");
	if (fp != 0) {
		bool x = true;
		if ((bool)(-x) >= 0)
			fputs("unsigned ", fp);
		if (sizeof(x) == sizeof(int))       fputs("int",  fp);
		else if (sizeof(x) == sizeof(char)) fputs("char", fp);
		else if (sizeof(x) == sizeof(short))fputs("short",fp);
		else if (sizeof(x) == sizeof(long)) fputs("long", fp);
		fclose(fp);
	}
	${cf_cv_main_return:-return}(0);
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:15447: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15450: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:15452: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15455: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_type_of_bool=`cat cf_test.out`
		 if test -z "$cf_cv_type_of_bool"; then
		   cf_cv_type_of_bool=unknown
		 fi
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_type_of_bool=unknown
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

fi

	rm -f cf_test.out
echo "$as_me:15473: result: $cf_cv_type_of_bool" >&5
echo "${ECHO_T}$cf_cv_type_of_bool" >&6
if test "$cf_cv_type_of_bool" = unknown ; then
	case .$NCURSES_BOOL in #(vi
	.auto|.) NCURSES_BOOL=unsigned;;
	esac
	{ echo "$as_me:15479: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
	cf_cv_type_of_bool=$NCURSES_BOOL
fi

echo "$as_me:15484: checking for special defines needed for etip.h" >&5
echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
cf_save_CXXFLAGS="$CXXFLAGS"
cf_result="none"
for cf_math in "" MATH_H
do
for cf_excp in "" MATH_EXCEPTION
do
	CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
	test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
	test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
cat >conftest.$ac_ext <<_ACEOF
#line 15496 "configure"
#include "confdefs.h"

#include <etip.h.in>

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15510: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15513: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:15516: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15519: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

	test -n "$cf_math" && cat >>confdefs.h <<EOF
#define ETIP_NEEDS_${cf_math} 1
EOF

	test -n "$cf_excp" && cat >>confdefs.h <<EOF
#define ETIP_NEEDS_${cf_excp} 1
EOF

	cf_result="$cf_math $cf_excp"
	break

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
done
echo "$as_me:15540: result: $cf_result" >&5
echo "${ECHO_T}$cf_result" >&6
CXXFLAGS="$cf_save_CXXFLAGS"

if test -n "$CXX"; then
echo "$as_me:15545: checking if $CXX accepts parameter initialization" >&5
echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
if test "${cf_cv_cpp_param_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

	if test "$cross_compiling" = yes; then
  cf_cv_cpp_param_init=unknown
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15562 "configure"
#include "confdefs.h"

class TEST {
private:
	int value;
public:
	TEST(int x = 1);
	~TEST();
};

TEST::TEST(int x = 1)	// some compilers do not like second initializer
{
	value = x;
}
void main() { }

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:15581: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15584: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:15586: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15589: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_cpp_param_init=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_cpp_param_init=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

fi
echo "$as_me:15608: result: $cf_cv_cpp_param_init" >&5
echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
fi
test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
#define CPP_HAS_PARAM_INIT 1
EOF

if test -n "$CXX"; then

echo "$as_me:15617: checking if $CXX accepts static_cast" >&5
echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
if test "${cf_cv_cpp_static_cast+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

	cat >conftest.$ac_ext <<_ACEOF
#line 15631 "configure"
#include "confdefs.h"

class NCursesPanel
{
public:
  NCursesPanel(int nlines,
	       int ncols,
	       int begin_y = 0,
	       int begin_x = 0)
  {
  }

  ~NCursesPanel();
};

template<class T> class NCursesUserPanel : public NCursesPanel
{
public:
  NCursesUserPanel (int nlines,
		    int ncols,
		    int begin_y = 0,
		    int begin_x = 0,
		    const T* p_UserData = static_cast<T*>(0))
    : NCursesPanel (nlines, ncols, begin_y, begin_x)
  {
  };
  NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
  {
  };

  virtual ~NCursesUserPanel() {};
};

int
main ()
{

	const char* p_UserData = static_cast<char*>(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15675: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15678: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:15681: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15684: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_cpp_static_cast=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_cpp_static_cast=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

fi
echo "$as_me:15702: result: $cf_cv_cpp_static_cast" >&5
echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6

fi

test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
#define CPP_HAS_STATIC_CAST 1
EOF

	CXX_AR='$(AR)'
	CXX_AR_OPTS='$(AR_OPTS)'
	case $cf_cv_system_name in #(vi
	irix*) #(vi
	    if test "$GXX" != yes ; then
		CXX_AR='$(CXX)'
		CXX_AR_OPTS='-ar -o'
	    fi
	    ;;
	sco3.2v5*) #(vi
	    CXXLDFLAGS="-u main"
	    ;;
	solaris2*)
	    if test "$GXX" != yes ; then
		CXX_AR='$(CXX)'
		CXX_AR_OPTS='-xar -o'
	    fi
	    ;;
	esac

else
	cf_cxx_library=no
	cf_cv_builtin_bool=1

	# Just because we are not configuring against C++ right now does not
	# mean that a user will not want to use C++.  Some distributors disable
	# the C++ portion of this configuration as a shortcut (or just to avoid
	# compiling the demo in the c++ directory).  So we need a reasonable
	# default for the 'bool' type.
	#
	# Caveat: since the storage of the bool type is not standardized, it
	# may change.

	if test "$NCURSES_BOOL" != auto ; then
		cf_cv_type_of_bool=$NCURSES_BOOL
		cf_cv_header_stdbool_h=0
	else
		if test "$cf_cv_header_stdbool_h" = 1 ; then

echo "$as_me:15750: checking for size of bool" >&5
echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
if test "${cf_cv_type_of_bool+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	rm -f cf_test.out
	if test "$cross_compiling" = yes; then
  cf_cv_type_of_bool=unknown
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15761 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdio.h>

#if defined(__cplusplus)

#ifdef HAVE_GXX_BUILTIN_H
#include <g++/builtin.h>
#elif HAVE_GPP_BUILTIN_H
#include <gpp/builtin.h>
#elif HAVE_BUILTIN_H
#include <builtin.h>
#endif

#else

#if $cf_cv_header_stdbool_h
#include <stdbool.h>
#endif

#endif

main()
{
	FILE *fp = fopen("cf_test.out", "w");
	if (fp != 0) {
		bool x = true;
		if ((bool)(-x) >= 0)
			fputs("unsigned ", fp);
		if (sizeof(x) == sizeof(int))       fputs("int",  fp);
		else if (sizeof(x) == sizeof(char)) fputs("char", fp);
		else if (sizeof(x) == sizeof(short))fputs("short",fp);
		else if (sizeof(x) == sizeof(long)) fputs("long", fp);
		fclose(fp);
	}
	${cf_cv_main_return:-return}(0);
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:15803: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15806: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:15808: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15811: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_type_of_bool=`cat cf_test.out`
		 if test -z "$cf_cv_type_of_bool"; then
		   cf_cv_type_of_bool=unknown
		 fi
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_type_of_bool=unknown
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

fi

	rm -f cf_test.out
echo "$as_me:15829: result: $cf_cv_type_of_bool" >&5
echo "${ECHO_T}$cf_cv_type_of_bool" >&6
if test "$cf_cv_type_of_bool" = unknown ; then
	case .$NCURSES_BOOL in #(vi
	.auto|.) NCURSES_BOOL=unsigned;;
	esac
	{ echo "$as_me:15835: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
	cf_cv_type_of_bool=$NCURSES_BOOL
fi

		else
			echo "$as_me:15841: checking for fallback type of bool" >&5
echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
			case "$host_cpu" in #(vi
			i?86)	cf_cv_type_of_bool=char	;; #(vi
			*)	cf_cv_type_of_bool=int	;;
			esac
			echo "$as_me:15847: result: $cf_cv_type_of_bool" >&5
echo "${ECHO_T}$cf_cv_type_of_bool" >&6
		fi
	fi
fi

# If the C compiler did not declare bool, and we did not determine that the C++
# compiler does not declare bool, turn on an ifdef in curses.h that makes the
# ncurses library use the same type as C++ bool.  Note that this allows one to
# specify the type of bool in a configure-script option and postpone
# integration with the C++ compiler provided that the types are compatible.
USE_CXX_BOOL=1
if test $cf_cv_cc_bool_type = 1
then
	# oops: C has a bool.  Unlikely, but C++ could differ.
	USE_CXX_BOOL=0
elif test $cf_cv_builtin_bool = 0
then
	# C++ has no bool
	USE_CXX_BOOL=0
else
	# this is the normal case
	USE_CXX_BOOL='defined(__cplusplus)'
fi

if test -f "${srcdir}/Ada95/Makefile.in" ; then

if test "$cf_with_ada" != "no" ; then
    if test "$with_libtool" != "no"; then
	{ echo "$as_me:15876: WARNING: libtool does not support Ada - disabling feature" >&5
echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
	cf_with_ada=no
    fi
fi

if test "$cf_with_ada" != "no" ; then
cf_ada_make=gnatmake
# Extract the first word of "$cf_ada_make", so it can be a program name with args.
set dummy $cf_ada_make; ac_word=$2
echo "$as_me:15886: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_gnat_exists+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$gnat_exists"; then
  ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_gnat_exists="yes"
echo "$as_me:15901: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
fi
fi
gnat_exists=$ac_cv_prog_gnat_exists
if test -n "$gnat_exists"; then
  echo "$as_me:15910: result: $gnat_exists" >&5
echo "${ECHO_T}$gnat_exists" >&6
else
  echo "$as_me:15913: result: no" >&5
echo "${ECHO_T}no" >&6
fi

if test "$ac_cv_prog_gnat_exists" = no; then
   cf_ada_make=
else

echo "$as_me:15921: checking for gnat version" >&5
echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
  sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
echo "$as_me:15925: result: $cf_gnat_version" >&5
echo "${ECHO_T}$cf_gnat_version" >&6

case $cf_gnat_version in
  3.1[1-9]*|3.[2-9]*|[4-9].*)
    cf_cv_prog_gnat_correct=yes
    ;;
  *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
     cf_cv_prog_gnat_correct=no
     ;;
esac
case $cf_gnat_version in
  3.[1-9]*|[4-9].*)
      cf_compile_generics=generics
      cf_generic_objects="\${GENOBJS}"
      ;;
  *)  cf_compile_generics=
      cf_generic_objects=
      ;;
esac

   # Extract the first word of "m4", so it can be a program name with args.
set dummy m4; ac_word=$2
echo "$as_me:15948: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_M4_exists+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$M4_exists"; then
  ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_M4_exists="yes"
echo "$as_me:15963: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
fi
fi
M4_exists=$ac_cv_prog_M4_exists
if test -n "$M4_exists"; then
  echo "$as_me:15972: result: $M4_exists" >&5
echo "${ECHO_T}$M4_exists" >&6
else
  echo "$as_me:15975: result: no" >&5
echo "${ECHO_T}no" >&6
fi

   if test "$ac_cv_prog_M4_exists" = no; then
      cf_cv_prog_gnat_correct=no
      echo Ada95 binding required program m4 not found. Ada95 binding disabled.
   fi
   if test "$cf_cv_prog_gnat_correct" = yes; then
      echo "$as_me:15984: checking if GNAT works" >&5
echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6

rm -f conftest*
cat >>conftest.ads <<CF_EOF
procedure conftest;
CF_EOF
cat >>conftest.adb <<CF_EOF
with Text_IO;
with GNAT.OS_Lib;
procedure conftest is
begin
   Text_IO.Put ("Hello World");
   Text_IO.New_Line;
   GNAT.OS_Lib.OS_Exit (0);
end conftest;
CF_EOF
if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
   if ( ./conftest 1>&5 2>&1 ) ; then
      cf_cv_prog_gnat_correct=yes
   else
      cf_cv_prog_gnat_correct=no
   fi
else
   cf_cv_prog_gnat_correct=no
fi
rm -f conftest*

      echo "$as_me:16012: result: $cf_cv_prog_gnat_correct" >&5
echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
   fi
fi
if test	"$cf_cv_prog_gnat_correct" = yes; then
   ADAFLAGS="-O3 -gnatpn $ADAFLAGS"

   echo "$as_me:16019: checking if GNAT pragma Unreferenced works" >&5
echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6

rm -f conftest*
cat >>conftest.ads <<CF_EOF
procedure conftest;
CF_EOF
cat >>conftest.adb <<CF_EOF
with Text_IO;
with GNAT.OS_Lib;
procedure conftest is
   test : Integer;
   pragma Unreferenced (test);
begin
   test := 1;
   Text_IO.Put ("Hello World");
   Text_IO.New_Line;
   GNAT.OS_Lib.OS_Exit (0);
end conftest;
CF_EOF
if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
      cf_cv_pragma_unreferenced=yes
else
   cf_cv_pragma_unreferenced=no
fi
rm -f conftest*

   echo "$as_me:16046: result: $cf_cv_pragma_unreferenced" >&5
echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6

   # if the pragma is supported, use it (needed in the Trace code).
   if test $cf_cv_pragma_unreferenced = yes ; then
      PRAGMA_UNREF=TRUE
   else
      PRAGMA_UNREF=FALSE
   fi

# Check whether --with-ada-compiler or --without-ada-compiler was given.
if test "${with_ada_compiler+set}" = set; then
  withval="$with_ada_compiler"
  cf_ada_compiler=$withval
else
  cf_ada_compiler=gnatmake
fi;

   cf_ada_package=terminal_interface

# Check whether --with-ada-include or --without-ada-include was given.
if test "${with_ada_include+set}" = set; then
  withval="$with_ada_include"

else
  withval="${ADA_INCLUDE-$prefix/lib/ada/adainclude}"
fi; if test -n "$prefix/lib/ada/adainclude" ; then

if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
fi

case ".$withval" in #(vi
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
  ;;
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  ;;
.\${*prefix}*) #(vi
  eval withval="$withval"
  case ".$withval" in #(vi
  .NONE/*)
    withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
    ;;
  esac
  ;; #(vi
.no|.NONE/*)
  withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
  ;;
*)
  { { echo "$as_me:16099: error: expected a pathname, not \"$withval\"" >&5
echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
   { (exit 1); exit 1; }; }
  ;;
esac

fi
ADA_INCLUDE="$withval"

# Check whether --with-ada-objects or --without-ada-objects was given.
if test "${with_ada_objects+set}" = set; then
  withval="$with_ada_objects"

else
  withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
fi; if test -n "$prefix/lib/ada/adalib" ; then

if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
fi

case ".$withval" in #(vi
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
  ;;
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  ;;
.\${*prefix}*) #(vi
  eval withval="$withval"
  case ".$withval" in #(vi
  .NONE/*)
    withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
    ;;
  esac
  ;; #(vi
.no|.NONE/*)
  withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
  ;;
*)
  { { echo "$as_me:16141: error: expected a pathname, not \"$withval\"" >&5
echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
   { (exit 1); exit 1; }; }
  ;;
esac

fi
ADA_OBJECTS="$withval"

fi
fi
else
   cf_with_ada=no
fi

### Construct the ncurses library-subsets, if any, from this set of keywords:
###	none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
###
### ticlib modules may be a separate library, otherwise contained in termlib.
### termlib modules may be a separate library, otherwise contained in ncurses.
###
### The of "+" or " " between the tokens controls the way the script
### chooses to split module lists into libraries.
###
### (see CF_LIB_RULES).
echo "$as_me:16166: checking for library subsets" >&5
echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
LIB_SUBSETS=

if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
	LIB_SUBSETS="${LIB_SUBSETS}ticlib"
	if test "$with_ticlib" != no ; then
		LIB_SUBSETS="${LIB_SUBSETS} "
	else
		LIB_SUBSETS="${LIB_SUBSETS}+"
	fi
fi

LIB_SUBSETS="${LIB_SUBSETS}termlib"
test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
if test "$with_termlib" != no ; then
	LIB_SUBSETS="${LIB_SUBSETS} "
else
	LIB_SUBSETS="${LIB_SUBSETS}+"
fi

LIB_SUBSETS="${LIB_SUBSETS}base"
test "$with_widec"     = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"

echo "$as_me:16191: result: $LIB_SUBSETS" >&5
echo "${ECHO_T}$LIB_SUBSETS" >&6

### Construct the list of include-directories to be generated

CPPFLAGS="-I. -I../include $CPPFLAGS"
if test "$srcdir" != "."; then
	CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
fi
if test "$GCC" != yes; then
	CPPFLAGS="$CPPFLAGS -I\${includedir}"
elif test "$includedir" != "/usr/include"; then
	if test "$includedir" = '${prefix}/include' ; then
		if test $prefix != /usr ; then
			CPPFLAGS="$CPPFLAGS -I\${includedir}"
		fi
	else
		CPPFLAGS="$CPPFLAGS -I\${includedir}"
	fi
fi

ACPPFLAGS="-I. -I../../include $ACPPFLAGS"
if test "$srcdir" != "."; then
	ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
fi
if test "$GCC" != yes; then
	ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
elif test "$includedir" != "/usr/include"; then
	if test "$includedir" = '${prefix}/include' ; then
		if test $prefix != /usr ; then
			ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
		fi
	else
		ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
	fi
fi

### Build up pieces for makefile rules
echo "$as_me:16229: checking default library suffix" >&5
echo $ECHO_N "checking default library suffix... $ECHO_C" >&6

	case $DFT_LWR_MODEL in
	libtool) DFT_ARG_SUFFIX=''   ;;
	normal)  DFT_ARG_SUFFIX=''   ;;
	debug)   DFT_ARG_SUFFIX='_g' ;;
	profile) DFT_ARG_SUFFIX='_p' ;;
	shared)  DFT_ARG_SUFFIX=''   ;;
	esac
	test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
echo "$as_me:16240: result: $DFT_ARG_SUFFIX" >&5
echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6

echo "$as_me:16243: checking default library-dependency suffix" >&5
echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6

	case $DFT_LWR_MODEL in
	libtool)
		DFT_LIB_SUFFIX='.la'
		DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
		;;
	normal)
		DFT_LIB_SUFFIX='.a'
		DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
		;;
	debug)
		DFT_LIB_SUFFIX='_g.a'
		DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
		;;
	profile)
		DFT_LIB_SUFFIX='_p.a'
		DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
		;;
	shared)
		case $cf_cv_system_name in
		cygwin*)
			DFT_LIB_SUFFIX='.dll'
			DFT_DEP_SUFFIX='.dll.a'
			;;
		darwin*)
			DFT_LIB_SUFFIX='.dylib'
			DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
			;;
		hpux*)
			case $target in
			ia64*)
				DFT_LIB_SUFFIX='.so'
				DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
				;;
			*)
				DFT_LIB_SUFFIX='.sl'
				DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
				;;
			esac
			;;
		*)	DFT_LIB_SUFFIX='.so'
			DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
			;;
		esac
	esac
	test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
	test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
echo "$as_me:16292: result: $DFT_DEP_SUFFIX" >&5
echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6

echo "$as_me:16295: checking default object directory" >&5
echo $ECHO_N "checking default object directory... $ECHO_C" >&6

	case $DFT_LWR_MODEL in
	libtool) DFT_OBJ_SUBDIR='obj_lo'  ;;
	normal)  DFT_OBJ_SUBDIR='objects' ;;
	debug)   DFT_OBJ_SUBDIR='obj_g' ;;
	profile) DFT_OBJ_SUBDIR='obj_p' ;;
	shared)
		case $cf_cv_system_name in #(vi
		cygwin) #(vi
			DFT_OBJ_SUBDIR='objects' ;;
		*)
			DFT_OBJ_SUBDIR='obj_s' ;;
		esac
	esac
echo "$as_me:16311: result: $DFT_OBJ_SUBDIR" >&5
echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6

# libtool thinks it can make c++ shared libraries (perhaps only g++)
if test "$cf_with_cxx" = yes ; then
echo "$as_me:16316: checking c++ library-dependency suffix" >&5
echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
if test "$with_libtool" != "no"; then
	CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
else

	case normal in
	libtool)
		CXX_LIB_SUFFIX='.la'
		CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
		;;
	normal)
		CXX_LIB_SUFFIX='.a'
		CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
		;;
	debug)
		CXX_LIB_SUFFIX='_g.a'
		CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
		;;
	profile)
		CXX_LIB_SUFFIX='_p.a'
		CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
		;;
	shared)
		case $cf_cv_system_name in
		cygwin*)
			CXX_LIB_SUFFIX='.dll'
			CXX_DEP_SUFFIX='.dll.a'
			;;
		darwin*)
			CXX_LIB_SUFFIX='.dylib'
			CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
			;;
		hpux*)
			case $target in
			ia64*)
				CXX_LIB_SUFFIX='.so'
				CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
				;;
			*)
				CXX_LIB_SUFFIX='.sl'
				CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
				;;
			esac
			;;
		*)	CXX_LIB_SUFFIX='.so'
			CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
			;;
		esac
	esac
	test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
	test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
fi
echo "$as_me:16369: result: $CXX_LIB_SUFFIX" >&5
echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6

fi

# do not want -ldl in build except as needed for -lncurses dependency
if test "$with_dlsym" = yes ; then
if test $DFT_LWR_MODEL = shared || \
   test $DFT_LWR_MODEL = libtool ; then

# remove dl library from $LIBS
LIBS=`echo "$LIBS" | sed -e 's/-ldl[ 	]//g' -e 's/-ldl$//'`

fi
fi
### Set up low-level terminfo dependencies for makefiles.

# TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
# do not need libdl
TICS_LIST=
if test "$with_dlsym" = yes ; then

# remove dl library from $SHLIB_LIST
TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ 	]//g' -e 's/-ldl$//'`

fi

if test "$with_ticlib" != no ; then

	if test "$with_ticlib" != yes ; then
		TICS_NAME=$with_ticlib
		TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TICS_LIB_SUFFIX="${with_ticlib}"
	else
		TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
		TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
		TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
	fi
	TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}"
else
	TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
fi

if test "$with_termlib" != no ; then

	if test "$with_termlib" != yes ; then
		TINFO_NAME=$with_termlib
		TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TINFO_LIB_SUFFIX="${with_termlib}"
	else
		TINFO_SUFFIX=${DFT_LIB_SUFFIX}
		TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
		TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
		TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
	fi

	TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
	TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
	if test "$DFT_LWR_MODEL" = "libtool"; then
		TEST_ARGS="${TEST_DEPS}"
		TEST_ARG2="${TEST_DEP2}"
		TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
	else
		TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
		TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
		TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
		TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
		SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
	fi
else
	# the next lines are needed for linking libtic over libncurses
	TINFO_NAME=${LIB_NAME}
	TINFO_SUFFIX=${DFT_LIB_SUFFIX}
	TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
	if test "$with_tic_depends" = yes ; then
		TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
	else
		TICS_LIST="$SHLIB_LIST"
	fi

	TINFO_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
fi

if test "$DFT_LWR_MODEL" = shared ; then
	case $cf_cv_system_name in #(vi
	cygwin*)
		# "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
		TINFO_SUFFIX=.dll
		;;
	esac
fi

if test "$with_dlsym" = yes ; then

# remove dl library from $TICS_LIST
TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ 	]//g' -e 's/-ldl$//'`

fi

if test "$DFT_LWR_MODEL" = "libtool"; then
    OBJEXT=lo
fi

# needed for Ada95
TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`

case $DFT_LWR_MODEL in
normal|debug|profile)

if test "$GCC" = yes ; then
	case $cf_cv_system_name in #(
	OS/2*|os2*|aix[45]*) 	#( vi
		LDFLAGS_STATIC=
		LDFLAGS_SHARED=
		;;
    *) 	#( normally, except when broken
        LDFLAGS_STATIC=-static
        LDFLAGS_SHARED=-dynamic
        ;;
    esac
else
	case $cf_cv_system_name in #(
	aix[45]*) 	#( from ld manpage
		LDFLAGS_STATIC=-bstatic
		LDFLAGS_SHARED=-bdynamic
		;;
	hpux*)		#( from ld manpage for hpux10.20, hpux11.11
		# We could also use just "archive" and "shared".
		LDFLAGS_STATIC=-Wl,-a,archive_shared
		LDFLAGS_SHARED=-Wl,-a,shared_archive
		;;
	irix*)		#( from ld manpage IRIX64
		LDFLAGS_STATIC=-Bstatic
		LDFLAGS_SHARED=-Bdynamic
		;;
	osf[45]*)	#( from ld manpage osf4.0d, osf5.1
		# alternative "-oldstyle_liblookup" (not in cc manpage)
		LDFLAGS_STATIC=-noso
		LDFLAGS_SHARED=-so_archive
		;;
	solaris2*)
		LDFLAGS_STATIC=-Bstatic
		LDFLAGS_SHARED=-Bdynamic
		;;
	esac
fi

	;;
esac

echo "$as_me:16522: checking where we will install curses.h" >&5
echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
test "$with_overwrite" = no && \
test "x$includedir" = 'x${prefix}/include' && \
	includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
echo "$as_me:16527: result: $includedir" >&5
echo "${ECHO_T}$includedir" >&6

### Resolve a conflict between normal and wide-curses by forcing applications
### that will need libutf8 to add it to their configure script.
if test "$with_overwrite" != no ; then
if test "$NCURSES_LIBUTF8" = 1 ; then
	NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
	{ echo "$as_me:16535: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
fi
fi

# used to separate tack out of the tree
NCURSES_TREE=

### predefined stuff for the test programs
cat >>confdefs.h <<\EOF
#define HAVE_SLK_COLOR 1
EOF

### Construct the list of subdirectories for which we'll customize makefiles
### with the appropriate compile-rules.

echo "$as_me:16551: checking for src modules" >&5
echo $ECHO_N "checking for src modules... $ECHO_C" >&6

# dependencies and linker-arguments for test-programs
TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
if test "$DFT_LWR_MODEL" = "libtool"; then
	TEST_ARGS="${TEST_DEPS}"
	TEST_ARG2="${TEST_DEP2}"
else
	TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
	TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
fi

cf_cv_src_modules=
for cf_dir in $modules_to_build
do
	if test -f $srcdir/$cf_dir/modules; then

		# We may/may not have tack in the distribution, though the
		# makefile is.
		if test $cf_dir = tack ; then
			if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
				continue
			fi
		fi

		if test -z "$cf_cv_src_modules"; then
			cf_cv_src_modules=$cf_dir
		else
			cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
		fi

		# Make the ncurses_cfg.h file record the library interface files as
		# well.  These are header files that are the same name as their
		# directory.  Ncurses is the only library that does not follow
		# that pattern.
		if test $cf_dir = tack ; then
			continue
		elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then

cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`

			cat >>confdefs.h <<EOF
#define HAVE_${cf_have_include}_H 1
EOF

			cat >>confdefs.h <<EOF
#define HAVE_LIB${cf_have_include} 1
EOF

			TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
			TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
			if test "$DFT_LWR_MODEL" = "libtool"; then
				TEST_ARGS="${TEST_DEPS}"
				TEST_ARG2="${TEST_DEP2}"
			else
				TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
				TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
			fi
		fi
	fi
done
echo "$as_me:16614: result: $cf_cv_src_modules" >&5
echo "${ECHO_T}$cf_cv_src_modules" >&6

TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"

SRC_SUBDIRS="man include"
for cf_dir in $cf_cv_src_modules
do
	SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
done
SRC_SUBDIRS="$SRC_SUBDIRS test"
test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"

ADA_SUBDIRS=
if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
   SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
   ADA_SUBDIRS="gen src samples"
fi

SUB_MAKEFILES=
for cf_dir in $SRC_SUBDIRS
do
	SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
done

if test -n "$ADA_SUBDIRS"; then
   for cf_dir in $ADA_SUBDIRS
   do
      SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
   done

fi

if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
   SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses-config"
fi

DIRS_TO_MAKE="lib"
for cf_item in $cf_list_models
do

	case $cf_item in
	libtool) cf_subdir='obj_lo'  ;;
	normal)  cf_subdir='objects' ;;
	debug)   cf_subdir='obj_g' ;;
	profile) cf_subdir='obj_p' ;;
	shared)
		case $cf_cv_system_name in #(vi
		cygwin) #(vi
			cf_subdir='objects' ;;
		*)
			cf_subdir='obj_s' ;;
		esac
	esac

	for cf_item2 in $DIRS_TO_MAKE
	do
		test $cf_item2 = $cf_subdir && break
	done
	test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
done
for cf_dir in $DIRS_TO_MAKE
do
	test ! -d $cf_dir && mkdir $cf_dir
done

cat >>confdefs.h <<EOF
#define NCURSES_PATHSEP '$PATHSEP'
EOF

cat >>confdefs.h <<EOF
#define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
EOF

### Now that we're done running tests, add the compiler-warnings, if any

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in $EXTRA_CFLAGS
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

### If we're building with rpath, try to link non-standard libs that way too.
if test "$DFT_LWR_MODEL" = "shared"; then

echo "$as_me:16763: checking for updated LDFLAGS" >&5
echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
if test -n "$LDFLAGS" ; then
echo "$as_me:16766: result: maybe" >&5
echo "${ECHO_T}maybe" >&6
test -n "$verbose" && echo "	...checking LDFLAGS $LDFLAGS" 1>&6

echo "${as_me-configure}:16770: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5

test -n "$verbose" && echo "	...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6

echo "${as_me-configure}:16774: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5

case "$EXTRA_LDFLAGS" in #(vi
-Wl,-rpath,*) #(vi
	cf_rpath_hack="-Wl,-rpath,"
	;;
-R\ *)
	cf_rpath_hack="-R "
	;;
-R*)
	cf_rpath_hack="-R"
	;;
*)
	cf_rpath_hack=
	;;
esac
if test -n "$cf_rpath_hack" ; then
	cf_rpath_dst=
	for cf_rpath_src in $LDFLAGS
	do
		test -n "$verbose" && echo "	Filtering $cf_rpath_src" 1>&6

echo "${as_me-configure}:16796: testing Filtering $cf_rpath_src ..." 1>&5

		case $cf_rpath_src in #(vi
		-L*) #(vi
			if test "$cf_rpath_hack" = "-R " ; then
				cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e 's%-L%-R %'`
			else
				cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e s%-L%$cf_rpath_hack%`
			fi
			test -n "$verbose" && echo "	...Filter $cf_rpath_tmp" 1>&6

echo "${as_me-configure}:16807: testing ...Filter $cf_rpath_tmp ..." 1>&5

			EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
			;;
		esac
		cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
	done
	LDFLAGS=$cf_rpath_dst
	test -n "$verbose" && echo "	...checked LDFLAGS $LDFLAGS" 1>&6

echo "${as_me-configure}:16817: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5

	test -n "$verbose" && echo "	...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6

echo "${as_me-configure}:16821: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5

fi
else
echo "$as_me:16825: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi

### Define substitutions for header files to avoid name-pollution

if test "$cf_cv_have_tcgetattr" = yes ; then
	HAVE_TCGETATTR=1
else
	HAVE_TCGETATTR=0
fi

if test "$ac_cv_header_termio_h" = yes ; then
	HAVE_TERMIO_H=1
else
	HAVE_TERMIO_H=0
fi

if test "$ac_cv_header_termios_h" = yes ; then
	HAVE_TERMIOS_H=1
else
	HAVE_TERMIOS_H=0
fi

################################################################################
test "$use_database" = yes && SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/termcap.h include/unctrl.h $SUB_MAKEFILES Makefile"
ac_config_commands="$ac_config_commands default"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overriden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
        "s/'/'\\\\''/g;
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if cmp -s $cache_file confcache; then :; else
  if test -w $cache_file; then
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @@srcdir@@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@@srcdir@@:*/:/;
s/^\([^=]*=[ 	]*\):*/\1/;
s/:*$//;
s/^[^=]*=[ 	]*$//;
}'
fi

DEFS=-DHAVE_CONFIG_H

: ${CONFIG_STATUS=./config.status}
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ echo "$as_me:16935: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
SHELL=\${CONFIG_SHELL-$SHELL}
ac_cs_invocation="\$0 \$@@"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Name of the executable.
as_me=`echo "$0" |sed 's,.*[\\/],,'`

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

as_executable_p="test -f"

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

# NLS nuisances.
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }

# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }

exec 6>&1

_ACEOF

# Files that config.status was made for.
if test -n "$ac_config_files"; then
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_headers"; then
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_links"; then
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_commands"; then
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
fi

cat >>$CONFIG_STATUS <<\EOF

ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.

Usage: $0 [OPTIONS] [FILE]...

  -h, --help       print this help, then exit
  -V, --version    print version number, then exit
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
  --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
  --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to <bug-autoconf@@gnu.org>."
EOF

cat >>$CONFIG_STATUS <<EOF
ac_cs_version="\\
config.status
configured by $0, generated by GNU Autoconf 2.52.20080325,
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
srcdir=$srcdir
INSTALL="$INSTALL"
EOF

cat >>$CONFIG_STATUS <<\EOF
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=*)
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    shift
    set dummy "$ac_option" "$ac_optarg" ${1+"$@@"}
    shift
    ;;
  -*);;
  *) # This is not an option, so the user has probably given explicit
     # arguments.
     ac_need_defaults=false;;
  esac

  case $1 in
  # Handling of the options.
EOF
cat >>$CONFIG_STATUS <<EOF
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
EOF
cat >>$CONFIG_STATUS <<\EOF
  --version | --vers* | -V )
    echo "$ac_cs_version"; exit 0 ;;
  --he | --h)
    # Conflict between --help and --header
    { { echo "$as_me:17111: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit 0 ;;
  --debug | --d* | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    shift
    CONFIG_FILES="$CONFIG_FILES $1"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    shift
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
    ac_need_defaults=false;;

  # This is an error.
  -*) { { echo "$as_me:17130: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; } ;;

  *) ac_config_targets="$ac_config_targets $1" ;;

  esac
  shift
done

exec 5>>config.log
cat >&5 << _ACEOF

## ----------------------- ##
## Running config.status.  ##
## ----------------------- ##

This file was extended by $as_me 2.52.20080325, executed with
  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  > $ac_cs_invocation
on `(hostname || uname -n) 2>/dev/null | sed 1q`

_ACEOF
EOF

cat >>$CONFIG_STATUS <<EOF
#
# INIT-COMMANDS section.
#

### Special initialization commands, used to pass information from the
### configuration-run into config.status

AWK="$AWK"
DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
DFT_LWR_MODEL="$DFT_LWR_MODEL"
ECHO_LINK="$ECHO_LINK"
LDCONFIG="$LDCONFIG"
LIB_NAME="$LIB_NAME"
LIB_SUBSETS="$LIB_SUBSETS"
LIB_SUFFIX="$LIB_SUFFIX"
LIB_TRACING="$LIB_TRACING"
MAKE_TERMINFO="$MAKE_TERMINFO"
NCURSES_MAJOR="$NCURSES_MAJOR"
NCURSES_MINOR="$NCURSES_MINOR"
NCURSES_OSPEED="$NCURSES_OSPEED"
NCURSES_PATCH="$NCURSES_PATCH"
SRC_SUBDIRS="$SRC_SUBDIRS"
TERMINFO="$TERMINFO"
TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
TINFO_NAME="$TINFO_NAME"
TINFO_SUFFIX="$TINFO_SUFFIX"
TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
TICS_NAME="$TICS_NAME"
WITH_CURSES_H="$with_curses_h"
WITH_ECHO="$with_echo"
WITH_OVERWRITE="$with_overwrite"
cf_LIST_MODELS="$cf_list_models"
cf_cv_abi_version="$cf_cv_abi_version"
cf_cv_do_relink="$cf_cv_do_relink"
cf_cv_do_symlinks="$cf_cv_do_symlinks"
cf_cv_enable_lp64="$cf_cv_enable_lp64"
cf_cv_enable_opaque="$cf_cv_enable_opaque"
cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
cf_cv_rel_version="$cf_cv_rel_version"
cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
cf_cv_shared_soname='$cf_cv_shared_soname'
cf_cv_shlib_version="$cf_cv_shlib_version"
cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
cf_cv_system_name="$cf_cv_system_name"
cf_with_cxx_binding="$cf_with_cxx_binding"
host="$host"
target="$target"

EOF

cat >>$CONFIG_STATUS <<\EOF
for ac_config_target in $ac_config_targets
do
  case "$ac_config_target" in
  # Handling of arguments.
  "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
  "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
  "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
  "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
  "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
  *) { { echo "$as_me:17227: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   { (exit 1); exit 1; }; };;
  esac
done

# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  trap '{ (exit 1); exit 1; }' 1 2 13 15
}

# Create a (secure) tmp directory for tmp files.
: ${TMPDIR=/tmp}
{
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=$TMPDIR/cs$$-$RANDOM
  (umask 077 && mkdir $tmp)
} ||
{
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   { (exit 1); exit 1; }
}

EOF

cat >>$CONFIG_STATUS <<EOF

#
# CONFIG_FILES section.
#

# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
  # Protect against being on the right side of a sed subst in config.status.
  sed 's/,@@/@@@@/; s/@@,/@@@@/; s/,;t t\$/@@;t t/; /@@;t t\$/s/[\\\\&,]/\\\\&/g;
   s/@@@@/,@@/; s/@@@@/@@,/; s/@@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@@SHELL@@,$SHELL,;t t
s,@@exec_prefix@@,$exec_prefix,;t t
s,@@prefix@@,$prefix,;t t
s,@@program_transform_name@@,$program_transform_name,;t t
s,@@bindir@@,$bindir,;t t
s,@@sbindir@@,$sbindir,;t t
s,@@libexecdir@@,$libexecdir,;t t
s,@@datadir@@,$datadir,;t t
s,@@sysconfdir@@,$sysconfdir,;t t
s,@@sharedstatedir@@,$sharedstatedir,;t t
s,@@localstatedir@@,$localstatedir,;t t
s,@@libdir@@,$libdir,;t t
s,@@includedir@@,$includedir,;t t
s,@@oldincludedir@@,$oldincludedir,;t t
s,@@infodir@@,$infodir,;t t
s,@@mandir@@,$mandir,;t t
s,@@PACKAGE_NAME@@,$PACKAGE_NAME,;t t
s,@@PACKAGE_TARNAME@@,$PACKAGE_TARNAME,;t t
s,@@PACKAGE_VERSION@@,$PACKAGE_VERSION,;t t
s,@@PACKAGE_STRING@@,$PACKAGE_STRING,;t t
s,@@PACKAGE_BUGREPORT@@,$PACKAGE_BUGREPORT,;t t
s,@@build_alias@@,$build_alias,;t t
s,@@host_alias@@,$host_alias,;t t
s,@@target_alias@@,$target_alias,;t t
s,@@ECHO_C@@,$ECHO_C,;t t
s,@@ECHO_N@@,$ECHO_N,;t t
s,@@ECHO_T@@,$ECHO_T,;t t
s,@@PATH_SEPARATOR@@,$PATH_SEPARATOR,;t t
s,@@DEFS@@,$DEFS,;t t
s,@@LIBS@@,$LIBS,;t t
s,@@top_builddir@@,$top_builddir,;t t
s,@@EGREP@@,$EGREP,;t t
s,@@NCURSES_MAJOR@@,$NCURSES_MAJOR,;t t
s,@@NCURSES_MINOR@@,$NCURSES_MINOR,;t t
s,@@NCURSES_PATCH@@,$NCURSES_PATCH,;t t
s,@@cf_cv_rel_version@@,$cf_cv_rel_version,;t t
s,@@cf_cv_abi_version@@,$cf_cv_abi_version,;t t
s,@@cf_cv_builtin_bool@@,$cf_cv_builtin_bool,;t t
s,@@cf_cv_header_stdbool_h@@,$cf_cv_header_stdbool_h,;t t
s,@@cf_cv_type_of_bool@@,$cf_cv_type_of_bool,;t t
s,@@build@@,$build,;t t
s,@@build_cpu@@,$build_cpu,;t t
s,@@build_vendor@@,$build_vendor,;t t
s,@@build_os@@,$build_os,;t t
s,@@host@@,$host,;t t
s,@@host_cpu@@,$host_cpu,;t t
s,@@host_vendor@@,$host_vendor,;t t
s,@@host_os@@,$host_os,;t t
s,@@target@@,$target,;t t
s,@@target_cpu@@,$target_cpu,;t t
s,@@target_vendor@@,$target_vendor,;t t
s,@@target_os@@,$target_os,;t t
s,@@CC@@,$CC,;t t
s,@@CFLAGS@@,$CFLAGS,;t t
s,@@LDFLAGS@@,$LDFLAGS,;t t
s,@@CPPFLAGS@@,$CPPFLAGS,;t t
s,@@ac_ct_CC@@,$ac_ct_CC,;t t
s,@@EXEEXT@@,$EXEEXT,;t t
s,@@OBJEXT@@,$OBJEXT,;t t
s,@@CPP@@,$CPP,;t t
s,@@EXTRA_CPPFLAGS@@,$EXTRA_CPPFLAGS,;t t
s,@@PROG_EXT@@,$PROG_EXT,;t t
s,@@LDCONFIG@@,$LDCONFIG,;t t
s,@@CXX@@,$CXX,;t t
s,@@CXXFLAGS@@,$CXXFLAGS,;t t
s,@@ac_ct_CXX@@,$ac_ct_CXX,;t t
s,@@AWK@@,$AWK,;t t
s,@@INSTALL_PROGRAM@@,$INSTALL_PROGRAM,;t t
s,@@INSTALL_SCRIPT@@,$INSTALL_SCRIPT,;t t
s,@@INSTALL_DATA@@,$INSTALL_DATA,;t t
s,@@LINT@@,$LINT,;t t
s,@@LINT_OPTS@@,$LINT_OPTS,;t t
s,@@LN_S@@,$LN_S,;t t
s,@@SET_MAKE@@,$SET_MAKE,;t t
s,@@MAKE_LOWER_TAGS@@,$MAKE_LOWER_TAGS,;t t
s,@@MAKE_UPPER_TAGS@@,$MAKE_UPPER_TAGS,;t t
s,@@cf_cv_makeflags@@,$cf_cv_makeflags,;t t
s,@@RANLIB@@,$RANLIB,;t t
s,@@ac_ct_RANLIB@@,$ac_ct_RANLIB,;t t
s,@@LD@@,$LD,;t t
s,@@ac_ct_LD@@,$ac_ct_LD,;t t
s,@@AR@@,$AR,;t t
s,@@ac_ct_AR@@,$ac_ct_AR,;t t
s,@@AR_OPTS@@,$AR_OPTS,;t t
s,@@DESTDIR@@,$DESTDIR,;t t
s,@@BUILD_CC@@,$BUILD_CC,;t t
s,@@BUILD_CPP@@,$BUILD_CPP,;t t
s,@@BUILD_CFLAGS@@,$BUILD_CFLAGS,;t t
s,@@BUILD_CPPFLAGS@@,$BUILD_CPPFLAGS,;t t
s,@@BUILD_LDFLAGS@@,$BUILD_LDFLAGS,;t t
s,@@BUILD_LIBS@@,$BUILD_LIBS,;t t
s,@@BUILD_EXEEXT@@,$BUILD_EXEEXT,;t t
s,@@BUILD_OBJEXT@@,$BUILD_OBJEXT,;t t
s,@@cf_list_models@@,$cf_list_models,;t t
s,@@LIBTOOL@@,$LIBTOOL,;t t
s,@@LIBTOOL_CXX@@,$LIBTOOL_CXX,;t t
s,@@LIBTOOL_OPTS@@,$LIBTOOL_OPTS,;t t
s,@@LIB_CREATE@@,$LIB_CREATE,;t t
s,@@LIB_OBJECT@@,$LIB_OBJECT,;t t
s,@@LIB_SUFFIX@@,$LIB_SUFFIX,;t t
s,@@LIB_PREP@@,$LIB_PREP,;t t
s,@@LIB_CLEAN@@,$LIB_CLEAN,;t t
s,@@LIB_COMPILE@@,$LIB_COMPILE,;t t
s,@@LIB_LINK@@,$LIB_LINK,;t t
s,@@LIB_INSTALL@@,$LIB_INSTALL,;t t
s,@@LIB_UNINSTALL@@,$LIB_UNINSTALL,;t t
s,@@DFT_LWR_MODEL@@,$DFT_LWR_MODEL,;t t
s,@@DFT_UPR_MODEL@@,$DFT_UPR_MODEL,;t t
s,@@TICS_NAME@@,$TICS_NAME,;t t
s,@@TINFO_NAME@@,$TINFO_NAME,;t t
s,@@LIB_NAME@@,$LIB_NAME,;t t
s,@@LIB_PREFIX@@,$LIB_PREFIX,;t t
s,@@CC_G_OPT@@,$CC_G_OPT,;t t
s,@@CXX_G_OPT@@,$CXX_G_OPT,;t t
s,@@LD_MODEL@@,$LD_MODEL,;t t
s,@@CC_SHARED_OPTS@@,$CC_SHARED_OPTS,;t t
s,@@LD_SHARED_OPTS@@,$LD_SHARED_OPTS,;t t
s,@@MK_SHARED_LIB@@,$MK_SHARED_LIB,;t t
s,@@LINK_PROGS@@,$LINK_PROGS,;t t
s,@@LINK_TESTS@@,$LINK_TESTS,;t t
s,@@EXTRA_LDFLAGS@@,$EXTRA_LDFLAGS,;t t
s,@@LOCAL_LDFLAGS@@,$LOCAL_LDFLAGS,;t t
s,@@LOCAL_LDFLAGS2@@,$LOCAL_LDFLAGS2,;t t
s,@@INSTALL_LIB@@,$INSTALL_LIB,;t t
s,@@TERMINFO_SRC@@,$TERMINFO_SRC,;t t
s,@@PATHSEP@@,$PATHSEP,;t t
s,@@FALLBACK_LIST@@,$FALLBACK_LIST,;t t
s,@@WHICH_XTERM@@,$WHICH_XTERM,;t t
s,@@TERMINFO_DIRS@@,$TERMINFO_DIRS,;t t
s,@@TERMINFO@@,$TERMINFO,;t t
s,@@MAKE_TERMINFO@@,$MAKE_TERMINFO,;t t
s,@@USE_BIG_STRINGS@@,$USE_BIG_STRINGS,;t t
s,@@TERMPATH@@,$TERMPATH,;t t
s,@@BROKEN_LINKER@@,$BROKEN_LINKER,;t t
s,@@NCURSES_CH_T@@,$NCURSES_CH_T,;t t
s,@@NCURSES_LIBUTF8@@,$NCURSES_LIBUTF8,;t t
s,@@NEED_WCHAR_H@@,$NEED_WCHAR_H,;t t
s,@@NCURSES_MBSTATE_T@@,$NCURSES_MBSTATE_T,;t t
s,@@NCURSES_WCHAR_T@@,$NCURSES_WCHAR_T,;t t
s,@@NCURSES_WINT_T@@,$NCURSES_WINT_T,;t t
s,@@NCURSES_OK_WCHAR_T@@,$NCURSES_OK_WCHAR_T,;t t
s,@@NCURSES_OK_WINT_T@@,$NCURSES_OK_WINT_T,;t t
s,@@cf_cv_enable_lp64@@,$cf_cv_enable_lp64,;t t
s,@@NCURSES_TPARM_VARARGS@@,$NCURSES_TPARM_VARARGS,;t t
s,@@NCURSES_BOOL@@,$NCURSES_BOOL,;t t
s,@@TERMINFO_CAPS@@,$TERMINFO_CAPS,;t t
s,@@NCURSES_OSPEED@@,$NCURSES_OSPEED,;t t
s,@@MANPAGE_RENAMES@@,$MANPAGE_RENAMES,;t t
s,@@NCURSES_EXT_FUNCS@@,$NCURSES_EXT_FUNCS,;t t
s,@@NCURSES_CONST@@,$NCURSES_CONST,;t t
s,@@NCURSES_EXT_COLORS@@,$NCURSES_EXT_COLORS,;t t
s,@@NCURSES_MOUSE_VERSION@@,$NCURSES_MOUSE_VERSION,;t t
s,@@NCURSES_SBOOL@@,$NCURSES_SBOOL,;t t
s,@@NCURSES_XNAMES@@,$NCURSES_XNAMES,;t t
s,@@PTHREAD@@,$PTHREAD,;t t
s,@@cf_cv_enable_reentrant@@,$cf_cv_enable_reentrant,;t t
s,@@cf_cv_enable_opaque@@,$cf_cv_enable_opaque,;t t
s,@@NCURSES_OPAQUE@@,$NCURSES_OPAQUE,;t t
s,@@NCURSES_SIZE_T@@,$NCURSES_SIZE_T,;t t
s,@@ECHO_LINK@@,$ECHO_LINK,;t t
s,@@EXTRA_CFLAGS@@,$EXTRA_CFLAGS,;t t
s,@@EXTRA_CXXFLAGS@@,$EXTRA_CXXFLAGS,;t t
s,@@ADA_TRACE@@,$ADA_TRACE,;t t
s,@@MATH_LIB@@,$MATH_LIB,;t t
s,@@NCURSES_INLINE@@,$NCURSES_INLINE,;t t
s,@@cf_cv_typeof_chtype@@,$cf_cv_typeof_chtype,;t t
s,@@cf_cv_1UL@@,$cf_cv_1UL,;t t
s,@@cf_cv_typeof_mmask_t@@,$cf_cv_typeof_mmask_t,;t t
s,@@HAVE_VSSCANF@@,$HAVE_VSSCANF,;t t
s,@@TEST_LIBS@@,$TEST_LIBS,;t t
s,@@CXXCPP@@,$CXXCPP,;t t
s,@@CXXLDFLAGS@@,$CXXLDFLAGS,;t t
s,@@CXX_AR@@,$CXX_AR,;t t
s,@@CXX_AR_OPTS@@,$CXX_AR_OPTS,;t t
s,@@CXXLIBS@@,$CXXLIBS,;t t
s,@@USE_CXX_BOOL@@,$USE_CXX_BOOL,;t t
s,@@gnat_exists@@,$gnat_exists,;t t
s,@@M4_exists@@,$M4_exists,;t t
s,@@cf_ada_make@@,$cf_ada_make,;t t
s,@@cf_ada_compiler@@,$cf_ada_compiler,;t t
s,@@cf_ada_package@@,$cf_ada_package,;t t
s,@@ADAFLAGS@@,$ADAFLAGS,;t t
s,@@cf_compile_generics@@,$cf_compile_generics,;t t
s,@@cf_generic_objects@@,$cf_generic_objects,;t t
s,@@PRAGMA_UNREF@@,$PRAGMA_UNREF,;t t
s,@@ADA_INCLUDE@@,$ADA_INCLUDE,;t t
s,@@ADA_OBJECTS@@,$ADA_OBJECTS,;t t
s,@@ACPPFLAGS@@,$ACPPFLAGS,;t t
s,@@DFT_ARG_SUFFIX@@,$DFT_ARG_SUFFIX,;t t
s,@@DFT_DEP_SUFFIX@@,$DFT_DEP_SUFFIX,;t t
s,@@DFT_OBJ_SUBDIR@@,$DFT_OBJ_SUBDIR,;t t
s,@@CXX_LIB_SUFFIX@@,$CXX_LIB_SUFFIX,;t t
s,@@TICS_ARG_SUFFIX@@,$TICS_ARG_SUFFIX,;t t
s,@@TICS_DEP_SUFFIX@@,$TICS_DEP_SUFFIX,;t t
s,@@TICS_LIB_SUFFIX@@,$TICS_LIB_SUFFIX,;t t
s,@@TICS_ARGS@@,$TICS_ARGS,;t t
s,@@TINFO_ARG_SUFFIX@@,$TINFO_ARG_SUFFIX,;t t
s,@@TINFO_DEP_SUFFIX@@,$TINFO_DEP_SUFFIX,;t t
s,@@TINFO_LIB_SUFFIX@@,$TINFO_LIB_SUFFIX,;t t
s,@@TINFO_ARGS@@,$TINFO_ARGS,;t t
s,@@TINFO_ARGS2@@,$TINFO_ARGS2,;t t
s,@@LDFLAGS_STATIC@@,$LDFLAGS_STATIC,;t t
s,@@LDFLAGS_SHARED@@,$LDFLAGS_SHARED,;t t
s,@@WITH_OVERWRITE@@,$WITH_OVERWRITE,;t t
s,@@TICS_LIST@@,$TICS_LIST,;t t
s,@@TINFO_LIST@@,$TINFO_LIST,;t t
s,@@SHLIB_LIST@@,$SHLIB_LIST,;t t
s,@@NCURSES_TREE@@,$NCURSES_TREE,;t t
s,@@TEST_ARGS@@,$TEST_ARGS,;t t
s,@@TEST_DEPS@@,$TEST_DEPS,;t t
s,@@TEST_ARG2@@,$TEST_ARG2,;t t
s,@@TEST_DEP2@@,$TEST_DEP2,;t t
s,@@ADA_SUBDIRS@@,$ADA_SUBDIRS,;t t
s,@@DIRS_TO_MAKE@@,$DIRS_TO_MAKE,;t t
s,@@HAVE_TCGETATTR@@,$HAVE_TCGETATTR,;t t
s,@@HAVE_TERMIO_H@@,$HAVE_TERMIO_H,;t t
s,@@HAVE_TERMIOS_H@@,$HAVE_TERMIOS_H,;t t
CEOF

EOF

  cat >>$CONFIG_STATUS <<\EOF
  # Split the substitutions into bite-sized pieces for seds with
  # small command number limits, like on Digital OSF/1 and HP-UX.
  ac_max_sed_lines=48
  ac_sed_frag=1 # Number of current file.
  ac_beg=1 # First line for current file.
  ac_end=$ac_max_sed_lines # Line after last line for current file.
  ac_more_lines=:
  ac_sed_cmds=
  while $ac_more_lines; do
    if test $ac_beg -gt 1; then
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    else
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    fi
    if test ! -s $tmp/subs.frag; then
      ac_more_lines=false
    else
      # The purpose of the label and of the branching condition is to
      # speed up the sed processing (if there are no `@@' at all, there
      # is no need to browse any of the substitutions).
      # These are the two extra sed commands mentioned above.
      (echo ':t
  /@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
      if test -z "$ac_sed_cmds"; then
  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
      else
  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
      fi
      ac_sed_frag=`expr $ac_sed_frag + 1`
      ac_beg=$ac_end
      ac_end=`expr $ac_end + $ac_max_sed_lines`
    fi
  done
  if test -z "$ac_sed_cmds"; then
    ac_sed_cmds=cat
  fi
fi # test -n "$CONFIG_FILES"

EOF
cat >>$CONFIG_STATUS <<\EOF
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
  esac

  # Compute @@srcdir@@, @@top_srcdir@@, and @@INSTALL@@ for subdirectories.
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done; }

    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
    # A "../" for each directory in $ac_dir_suffix.
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
  else
    ac_dir_suffix= ac_dots=
  fi

  case $srcdir in
  .)  ac_srcdir=.
      if test -z "$ac_dots"; then
         ac_top_srcdir=.
      else
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
      fi ;;
  [\\/]* | ?:[\\/]* )
      ac_srcdir=$srcdir$ac_dir_suffix;
      ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_dots$srcdir ;;
  esac

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_dots$INSTALL ;;
  esac

  if test x"$ac_file" != x-; then
    { echo "$as_me:17610: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    rm -f "$ac_file"
  fi
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated automatically by config.status.  */
  configure_input="Generated automatically from `echo $ac_file_in |
                                                 sed 's,.*/,,'` by configure."

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:17628: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:17641: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
EOF
cat >>$CONFIG_STATUS <<EOF
  sed "$ac_vpsub
$extrasub
EOF
cat >>$CONFIG_STATUS <<\EOF
:t
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
s,@@configure_input@@,$configure_input,;t t
s,@@srcdir@@,$ac_srcdir,;t t
s,@@top_srcdir@@,$ac_top_srcdir,;t t
s,@@INSTALL@@,$ac_INSTALL,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  rm -f $tmp/stdin
  if test x"$ac_file" != x-; then
    mv $tmp/out $ac_file
  else
    cat $tmp/out
    rm -f $tmp/out
  fi

done
EOF
cat >>$CONFIG_STATUS <<\EOF

#
# CONFIG_HEADER section.
#

# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='[ 	].*$,\1#\2'
ac_dC=' '
ac_dD=',;t'
# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_iA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_iB='\([ 	]\),\1#\2define\3'
ac_iC=' '
ac_iD='\4,;t'
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='$,\1#\2define\3'
ac_uC=' '
ac_uD=',;t'

for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
  esac

  test x"$ac_file" != x- && { echo "$as_me:17707: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:17718: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:17731: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
  # Remove the trailing spaces.
  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in

EOF

# Transform confdefs.h into a list of #define's.  We won't use it as a sed
# script, but as data to insert where we see @@DEFS@@.  We expect AC_SAVE_DEFS to
# be either 'cat' or 'sort'.
cat confdefs.h | uniq >conftest.vals

# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.

rm -f conftest.tail
echo '  rm -f conftest.frag' >> $CONFIG_STATUS
while grep . conftest.vals >/dev/null
do
  # Write chunks of a limited-size here document to conftest.frag.
  echo '  cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
  echo 'CEOF' >> $CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  rm -f conftest.vals
  mv conftest.tail conftest.vals
done
rm -f conftest.vals

# Run sed to substitute the contents of conftest.frag into $tmp/in at the
# marker @@DEFS@@.
echo '  cat >> conftest.edit <<CEOF
/@@DEFS@@/r conftest.frag
/@@DEFS@@/d
CEOF
sed -f conftest.edit $tmp/in > $tmp/out
rm -f $tmp/in
mv $tmp/out $tmp/in
rm -f conftest.edit conftest.frag
' >> $CONFIG_STATUS

cat >>$CONFIG_STATUS <<\EOF
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated automatically by config.status.  */
  if test x"$ac_file" = x-; then
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
  else
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
  fi
  cat $tmp/in >>$tmp/config.h
  rm -f $tmp/in
  if test x"$ac_file" != x-; then
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
      { echo "$as_me:17789: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
    else
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
        { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done; }

      fi
      rm -f $ac_file
      mv $tmp/config.h $ac_file
    fi
  else
    cat $tmp/config.h
    rm -f $tmp/config.h
  fi
done
EOF
cat >>$CONFIG_STATUS <<\EOF

#
# CONFIG_COMMANDS section.
#
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`

  case $ac_dest in
    default )

for cf_dir in test
do
	if test ! -d $srcdir/$cf_dir; then
		continue
	elif test -f $srcdir/$cf_dir/programs; then
		$AWK -f $srcdir/test/mk-test.awk ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
	fi
done

	case $cf_cv_system_name in #(vi
	OS/2*|os2*) #(vi
        LIB_PREFIX=''
        ;;
	*)	LIB_PREFIX='lib'
        ;;
	esac
cf_prefix=$LIB_PREFIX

if test $cf_cv_shlib_version = cygdll ; then
	TINFO_NAME=$TINFO_ARG_SUFFIX
	TINFO_SUFFIX=.dll
fi

for cf_dir in $SRC_SUBDIRS
do
	if test ! -d $srcdir/$cf_dir ; then
		continue
	elif test -f $srcdir/$cf_dir/modules; then

		SHARED_LIB=
		LIBS_TO_MAKE=
		for cf_item in $cf_LIST_MODELS
		do

	case $cf_item in
	libtool)
		cf_suffix='.la'
		cf_depsuf=$cf_suffix
		;;
	normal)
		cf_suffix='.a'
		cf_depsuf=$cf_suffix
		;;
	debug)
		cf_suffix='_g.a'
		cf_depsuf=$cf_suffix
		;;
	profile)
		cf_suffix='_p.a'
		cf_depsuf=$cf_suffix
		;;
	shared)
		case $cf_cv_system_name in
		cygwin*)
			cf_suffix='.dll'
			cf_depsuf='.dll.a'
			;;
		darwin*)
			cf_suffix='.dylib'
			cf_depsuf=$cf_suffix
			;;
		hpux*)
			case $target in
			ia64*)
				cf_suffix='.so'
				cf_depsuf=$cf_suffix
				;;
			*)
				cf_suffix='.sl'
				cf_depsuf=$cf_suffix
				;;
			esac
			;;
		*)	cf_suffix='.so'
			cf_depsuf=$cf_suffix
			;;
		esac
	esac
	test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
	test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"

			if test $cf_item = shared ; then
			if test "$cf_cv_do_symlinks" = yes ; then
				case "$cf_cv_shlib_version" in #(vi
				rel) #(vi
					case "$cf_cv_system_name" in #(vi
					darwin*)
					case .${LIB_SUFFIX} in
					.w*)
						cf_suffix=`echo $cf_suffix | sed 's/^w//'`
						cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
						;;
					*)
						cf_suffix='.${REL_VERSION}'"$cf_suffix"
						;;
					esac
					;; #(vi
					*) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
					esac
					;;
				abi)
					case "$cf_cv_system_name" in #(vi
					darwin*)
					case .${LIB_SUFFIX} in
					.w*)
						cf_suffix=`echo $cf_suffix | sed 's/^w//'`
						cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
						;;
					*)
						cf_suffix='.${ABI_VERSION}'"$cf_suffix"
						;;
					esac
					;; #(vi
					*) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
					esac
					;;
				esac
			fi
			# cygwin needs import library, and has unique naming convention
			# use autodetected ${cf_prefix} for import lib and static lib, but
			# use 'cyg' prefix for shared lib.
			if test $cf_cv_shlib_version = cygdll ; then
				cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
				LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}"
				continue
			fi
			fi
			LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
		done

		if test $cf_dir = ncurses ; then
			cf_subsets="$LIB_SUBSETS"
			cf_r_parts="$cf_subsets"
			cf_liblist="$LIBS_TO_MAKE"

			while test -n "$cf_r_parts"
			do
				cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
				cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
				if test "$cf_l_parts" != "$cf_r_parts" ; then
					cf_item=
					case $cf_l_parts in #(vi
					*termlib*) #(vi
						cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
						;;
					*ticlib*)
						cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
						;;
					*)
						break
						;;
					esac
					if test -n "$cf_item"; then
						LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
					fi
				else
					break
				fi
			done
		else
			cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
		fi

		sed -e "s%@@LIBS_TO_MAKE@@%$LIBS_TO_MAKE%" \
		    -e "s%@@SHARED_LIB@@%$SHARED_LIB%" \
			$cf_dir/Makefile >$cf_dir/Makefile.out
		mv $cf_dir/Makefile.out $cf_dir/Makefile

		$AWK -f $srcdir/mk-0th.awk \
			libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
			$srcdir/$cf_dir/modules >>$cf_dir/Makefile

		for cf_subset in $cf_subsets
		do
			cf_subdirs=
			for cf_item in $cf_LIST_MODELS
			do
			echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"

cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`

	case $cf_item in
	libtool)
		cf_suffix='.la'
		cf_depsuf=$cf_suffix
		;;
	normal)
		cf_suffix='.a'
		cf_depsuf=$cf_suffix
		;;
	debug)
		cf_suffix='_g.a'
		cf_depsuf=$cf_suffix
		;;
	profile)
		cf_suffix='_p.a'
		cf_depsuf=$cf_suffix
		;;
	shared)
		case $cf_cv_system_name in
		cygwin*)
			cf_suffix='.dll'
			cf_depsuf='.dll.a'
			;;
		darwin*)
			cf_suffix='.dylib'
			cf_depsuf=$cf_suffix
			;;
		hpux*)
			case $target in
			ia64*)
				cf_suffix='.so'
				cf_depsuf=$cf_suffix
				;;
			*)
				cf_suffix='.sl'
				cf_depsuf=$cf_suffix
				;;
			esac
			;;
		*)	cf_suffix='.so'
			cf_depsuf=$cf_suffix
			;;
		esac
	esac
	test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
	test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"

	case $cf_item in
	libtool) cf_subdir='obj_lo'  ;;
	normal)  cf_subdir='objects' ;;
	debug)   cf_subdir='obj_g' ;;
	profile) cf_subdir='obj_p' ;;
	shared)
		case $cf_cv_system_name in #(vi
		cygwin) #(vi
			cf_subdir='objects' ;;
		*)
			cf_subdir='obj_s' ;;
		esac
	esac

			# Test for case where we build libtinfo with a different name.
			cf_libname=$cf_dir
			if test $cf_dir = ncurses ; then
				case $cf_subset in
				*base*)
					cf_libname=${cf_libname}$LIB_SUFFIX
					;;
				*termlib*)
					cf_libname=$TINFO_LIB_SUFFIX
					;;
				ticlib*)
					cf_libname=$TICS_LIB_SUFFIX
					;;
				esac
			else
				cf_libname=${cf_libname}$LIB_SUFFIX
			fi
			if test -n "${DFT_ARG_SUFFIX}" ; then
				# undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
				cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
			fi

			# These dependencies really are for development, not
			# builds, but they are useful in porting, too.
			cf_depend="../include/ncurses_cfg.h"
			if test "$srcdir" = "."; then
				cf_reldir="."
			else
				cf_reldir="\${srcdir}"
			fi

			if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
				cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
			elif test -f $srcdir/$cf_dir/curses.priv.h; then
				cf_depend="$cf_depend $cf_reldir/curses.priv.h"
			fi

 			cf_dir_suffix=
 			old_cf_suffix="$cf_suffix"
 			if test "$cf_cv_shlib_version_infix" = yes ; then
			if test -n "$LIB_SUFFIX" ; then
				case $LIB_SUFFIX in
				w*)
					cf_libname=`echo $cf_libname | sed 's/w$//'`
					cf_suffix=`echo $cf_suffix | sed 's/^w//'`
					cf_dir_suffix=w
					;;
				esac
			fi
 			fi

			$AWK -f $srcdir/mk-1st.awk \
				name=${cf_libname}${cf_dir_suffix} \
				traces=$LIB_TRACING \
				MODEL=$cf_ITEM \
				model=$cf_subdir \
				prefix=$cf_prefix \
				suffix=$cf_suffix \
				subset=$cf_subset \
				TermlibRoot=$TINFO_NAME \
				TermlibSuffix=$TINFO_SUFFIX \
				ShlibVer=$cf_cv_shlib_version \
				ShlibVerInfix=$cf_cv_shlib_version_infix \
				ReLink=${cf_cv_do_relink-no} \
				DoLinks=$cf_cv_do_symlinks \
				rmSoLocs=$cf_cv_rm_so_locs \
				ldconfig="$LDCONFIG" \
				overwrite=$WITH_OVERWRITE \
				depend="$cf_depend" \
				host="$host" \
				$srcdir/$cf_dir/modules >>$cf_dir/Makefile

			cf_suffix="$old_cf_suffix"

			for cf_subdir2 in $cf_subdirs lib
			do
				test $cf_subdir = $cf_subdir2 && break
			done
			test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
			$AWK -f $srcdir/mk-2nd.awk \
				name=$cf_dir \
				traces=$LIB_TRACING \
				MODEL=$cf_ITEM \
				model=$cf_subdir \
				subset=$cf_subset \
				srcdir=$srcdir \
				echo=$WITH_ECHO \
				crenames=$cf_cv_prog_CC_c_o \
				cxxrenames=$cf_cv_prog_CXX_c_o \
				$srcdir/$cf_dir/modules >>$cf_dir/Makefile
			cf_subdirs="$cf_subdirs $cf_subdir"
			done
		done
	fi

	echo '	cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@@' >>Makefile
done

for cf_dir in $SRC_SUBDIRS
do
	if test ! -d $srcdir/$cf_dir ; then
		continue
	fi

	if test -f $cf_dir/Makefile ; then
		case "$cf_dir" in
		Ada95) #(vi
			echo 'libs \' >> Makefile
			echo 'install.libs \' >> Makefile
			echo 'uninstall.libs ::' >> Makefile
			echo '	cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@@' >> Makefile
			;;
		esac
	fi

	if test -f $srcdir/$cf_dir/modules; then
		echo >> Makefile
		if test -f $srcdir/$cf_dir/headers; then
cat >> Makefile <<CF_EOF
install.includes \\
uninstall.includes \\
CF_EOF
		fi
if test "$cf_dir" != "c++" ; then
echo 'lint \' >> Makefile
fi
cat >> Makefile <<CF_EOF
libs \\
lintlib \\
install.libs \\
uninstall.libs \\
install.$cf_dir \\
uninstall.$cf_dir ::
	cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@@
CF_EOF
	elif test -f $srcdir/$cf_dir/headers; then
cat >> Makefile <<CF_EOF

libs \\
install.libs \\
uninstall.libs \\
install.includes \\
uninstall.includes ::
	cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@@
CF_EOF
fi
done

cat >> Makefile <<CF_EOF

install.libs uninstall.libs \\
install.data uninstall.data ::
$MAKE_TERMINFO	cd misc && \${MAKE} \${CF_MFLAGS} \$@@

install.man \\
uninstall.man ::
	cd man && \${MAKE} \${CF_MFLAGS} \$@@

distclean ::
	rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
	rm -f headers.sh headers.sed mk_shared_lib.sh
	rm -rf \${DIRS_TO_MAKE}
CF_EOF

# Special case: tack's manpage lives in its own directory.
if test -d tack ; then
if test -f $srcdir/$tack.h; then
cat >> Makefile <<CF_EOF

install.man \\
uninstall.man ::
	cd tack && \${MAKE} \${CF_MFLAGS} \$@@
CF_EOF
fi
fi

rm -f headers.sed headers.sh

echo creating headers.sh
cat >headers.sh <<CF_EOF
#! /bin/sh
# This shell script is generated by the 'configure' script.  It is invoked in a
# subdirectory of the build tree.  It generates a sed-script in the parent
# directory that is used to adjust includes for header files that reside in a
# subdirectory of /usr/include, etc.
PRG=""
while test \$# != 3
do
PRG="\$PRG \$1"; shift
done
DST=\$1
REF=\$2
SRC=\$3
TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
echo installing \$SRC in \$DST
CF_EOF

if test $WITH_CURSES_H = yes; then
	cat >>headers.sh <<CF_EOF
case \$DST in
/*/include/*)
	END=\`basename \$DST\`
	for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
	do
		NAME=\`basename \$i\`
		echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
	done
	;;
*)
	echo "" >> \$TMPSED
	;;
esac
CF_EOF

else
	cat >>headers.sh <<CF_EOF
case \$DST in
/*/include/*)
	END=\`basename \$DST\`
	for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
	do
		NAME=\`basename \$i\`
		if test "\$NAME" = "curses.h"
		then
			echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
			NAME=ncurses.h
		fi
		echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
	done
	;;
*)
	echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
	;;
esac
CF_EOF
fi
cat >>headers.sh <<CF_EOF
rm -f \$TMPSRC
sed -f \$TMPSED \$SRC > \$TMPSRC
NAME=\`basename \$SRC\`
CF_EOF
if test $WITH_CURSES_H != yes; then
	cat >>headers.sh <<CF_EOF
test "\$NAME" = "curses.h" && NAME=ncurses.h
CF_EOF
fi
cat >>headers.sh <<CF_EOF
# Just in case someone gzip'd manpages, remove the conflicting copy.
test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz

eval \$PRG \$TMPSRC \$DST/\$NAME
rm -f \$TMPSRC \$TMPSED
CF_EOF

chmod 0755 headers.sh

for cf_dir in $SRC_SUBDIRS
do
	if test ! -d $srcdir/$cf_dir ; then
		continue
	fi

	if test -f $srcdir/$cf_dir/headers; then
		$AWK -f $srcdir/mk-hdr.awk \
			subset="$LIB_SUBSETS" \
			compat="$WITH_CURSES_H" \
			$srcdir/$cf_dir/headers >>$cf_dir/Makefile
	fi

	if test -f $srcdir/$cf_dir/modules; then
		if test "$cf_dir" != "c++" ; then
			cat >>$cf_dir/Makefile <<"CF_EOF"
depend : ${AUTO_SRC}
	makedepend -- ${CPPFLAGS} -- ${C_SRC}

# DO NOT DELETE THIS LINE -- make depend depends on it.
CF_EOF
		fi
	fi
done

 ;;
  esac
done
EOF

cat >>$CONFIG_STATUS <<\EOF

{ (exit 0); exit 0; }
EOF
chmod +x $CONFIG_STATUS
ac_clean_files=$ac_clean_files_save

# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || { (exit 1); exit 1; }
fi
${MAKE-make} preinstall
@


1.2.18.1
log
@file configure was added on branch RELENG_8_4 on 2013-03-28 13:01:39 +0000
@
text
@d1 18395
@


1.2.18.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 18395
#! /bin/sh
# From configure.in Revision: 1.454 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by Autoconf 2.52.20080325.
#
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Name of the executable.
as_me=`echo "$0" |sed 's,.*[\\/],,'`

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

as_executable_p="test -f"

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

# NLS nuisances.
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }

# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }

# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

exec 6>&1

#
# Initializations.
#
ac_default_prefix=/usr/local
cross_compiling=no
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}

# Maximum number of lines to put in a shell here document.
# This variable seems obsolete.  It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}

ac_unique_file="ncurses/base/lib_initscr.c"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"

# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'

# Identity of this package.
PACKAGE_NAME=
PACKAGE_TARNAME=
PACKAGE_VERSION=
PACKAGE_STRING=
PACKAGE_BUGREPORT=

ac_prev=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval "$ac_prev=\$ac_option"
    ac_prev=
    continue
  fi

  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case $ac_option in

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
    datadir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    eval "enable_$ac_feature=no" ;;

  -enable-* | --enable-*)
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
      *) ac_optarg=yes ;;
    esac
    eval "enable_$ac_feature='$ac_optarg'" ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
      *) ac_optarg=yes ;;
    esac
    eval "with_$ac_package='$ac_optarg'" ;;

  -without-* | --without-*)
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
    ac_package=`echo $ac_package | sed 's/-/_/g'`
    eval "with_$ac_package=no" ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; }
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   { (exit 1); exit 1; }; }
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    eval "$ac_envvar='$ac_optarg'"
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  { echo "$as_me: error: missing argument to $ac_option" >&2
   { (exit 1); exit 1; }; }
fi

# Be sure to have absolute paths.
for ac_var in exec_prefix prefix
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
  esac
done

# Be sure to have absolute paths.
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
              localstatedir libdir includedir oldincludedir infodir mandir
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* ) ;;
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
  esac
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: should be removed in autoconf 3.0.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null

# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then its parent.
  ac_prog=$0
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  srcdir=$ac_confdir
  if test ! -r $srcdir/$ac_unique_file; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
  if test "$ac_srcdir_defaulted" = yes; then
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
   { (exit 1); exit 1; }; }
  else
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
   { (exit 1); exit 1; }; }
  fi
fi
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
ac_env_build_alias_set=${build_alias+set}
ac_env_build_alias_value=$build_alias
ac_cv_env_build_alias_set=${build_alias+set}
ac_cv_env_build_alias_value=$build_alias
ac_env_host_alias_set=${host_alias+set}
ac_env_host_alias_value=$host_alias
ac_cv_env_host_alias_set=${host_alias+set}
ac_cv_env_host_alias_value=$host_alias
ac_env_target_alias_set=${target_alias+set}
ac_env_target_alias_value=$target_alias
ac_cv_env_target_alias_set=${target_alias+set}
ac_cv_env_target_alias_value=$target_alias
ac_env_CC_set=${CC+set}
ac_env_CC_value=$CC
ac_cv_env_CC_set=${CC+set}
ac_cv_env_CC_value=$CC
ac_env_CFLAGS_set=${CFLAGS+set}
ac_env_CFLAGS_value=$CFLAGS
ac_cv_env_CFLAGS_set=${CFLAGS+set}
ac_cv_env_CFLAGS_value=$CFLAGS
ac_env_LDFLAGS_set=${LDFLAGS+set}
ac_env_LDFLAGS_value=$LDFLAGS
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
ac_cv_env_LDFLAGS_value=$LDFLAGS
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_env_CPPFLAGS_value=$CPPFLAGS
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
ac_env_CPP_set=${CPP+set}
ac_env_CPP_value=$CPP
ac_cv_env_CPP_set=${CPP+set}
ac_cv_env_CPP_value=$CPP
ac_env_CXX_set=${CXX+set}
ac_env_CXX_value=$CXX
ac_cv_env_CXX_set=${CXX+set}
ac_cv_env_CXX_value=$CXX
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_env_CXXFLAGS_value=$CXXFLAGS
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
ac_env_CXXCPP_set=${CXXCPP+set}
ac_env_CXXCPP_value=$CXXCPP
ac_cv_env_CXXCPP_set=${CXXCPP+set}
ac_cv_env_CXXCPP_value=$CXXCPP

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<EOF
\`configure' configures this package to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

EOF

  cat <<EOF
Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --infodir=DIR           info documentation [PREFIX/info]
  --mandir=DIR            man documentation [PREFIX/man]
EOF

  cat <<\EOF

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD           configure for building on BUILD [guessed]
  --host=HOST       build programs to run on HOST [BUILD]
  --target=TARGET   configure for building compilers for TARGET [HOST]
EOF
fi

if test -n "$ac_init_help"; then

  cat <<\EOF

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)

Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]

  --with-rel-version=XXX  override derived release version
  --with-abi-version=XXX  override derived ABI version
  --with-system-type=XXX  test: override derived host system-type
  --without-cxx           do not adjust ncurses bool to match C++
  --without-cxx-binding   do not build C++ binding and demo
  --without-ada           suppress check for Ada95, don't build demo
  --without-progs         suppress build with programs (e.g., tic)
  --without-curses-h      install curses.h as ncurses.h only
  --enable-mixed-case     tic should assume mixed-case filenames
  --with-install-prefix   prefixes actual install-location ($DESTDIR)
Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
  --with-build-cc=XXX     the build C compiler ($BUILD_CC)
  --with-build-cpp=XXX    the build C preprocessor ($BUILD_CPP)
  --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
  --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
  --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
  --with-build-libs=XXX   the build libraries (${BUILD_LIBS})
Options to Specify the Libraries Built/Used:
  --with-libtool          generate libraries with libtool
  --with-shared           generate shared-libraries
  --with-normal           generate normal-libraries (default)
  --with-debug            generate debug-libraries (default)
  --with-profile          generate profile-libraries
  --with-termlib          generate separate terminfo library
  --with-ticlib           generate separate tic library
  --with-gpm              use Alessandro Rubini's GPM library
  --without-dlsym         do not use dlsym() to load GPM dynamically
  --with-sysmouse         use sysmouse (FreeBSD console)
  --enable-rpath          use rpath option when generating shared libraries
  --disable-relink        relink shared libraries during install
  --with-shlib-version=X  Specify rel or abi version for shared libs
Fine-Tuning Your Configuration:
  --disable-overwrite     leave out the link to -lcurses
  --disable-database      do not use terminfo, only fallbacks/termcap
  --with-database=XXX     specify terminfo source to install
  --with-hashed-db        specify hashed-database library
  --with-fallbacks=XXX    specify list of fallback terminal descriptions
  --without-xterm-new     specify if xterm terminfo should be old version
  --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
  --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
  --disable-big-core      assume machine has little memory
  --disable-big-strings   assume compiler has only standard-size strings
  --enable-termcap        compile in termcap fallback support
  --with-termpath=XXX     specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
  --enable-getcap         fast termcap load, no xrefs to terminfo
  --enable-getcap-cache   cache translated termcaps in ~/.terminfo
  --disable-home-terminfo drop ~/.terminfo from terminfo search-path
  --disable-root-environ  restrict environment when running as root
  --enable-symlinks       make tic use symbolic links not hard links
  --enable-broken_linker  compile with broken-linker support code
  --enable-bsdpad         recognize BSD-style prefix padding
  --enable-widec          compile with wide-char/UTF-8 code
  --disable-lp64          allow chtype to be long (ignore _LP64)
  --disable-largefile     omit support for large files
  --disable-tparm-varargs compile tparm() without varargs interface
  --disable-tic-depends   link tic library without explicit dependency on ncurses library
  --with-bool=TYPE        override fallback type of bool variable
  --with-caps=alt         compile with alternate Caps file
  --with-chtype=TYPE      override type of chtype
  --with-ospeed=TYPE      override type of ospeed variable
  --with-mmask-t=TYPE     override type of mmask_t
  --with-rcs-ids          compile-in RCS identifiers
Options to Specify How Manpages are Installed:
  --with-manpage-format   specify manpage-format: gzip/compress/BSDI/normal and
                          optionally formatted/catonly, e.g., gzip,formatted
  --with-manpage-renames  specify manpage-renaming
  --with-manpage-aliases  specify manpage-aliases using .so
  --with-manpage-symlinks specify manpage-aliases using symlinks
  --with-manpage-tbl      specify manpage processing with tbl
Extensions:
  --disable-ext-funcs     disable function-extensions
  --enable-const          compile with extra/non-standard const
  --enable-ext-colors     compile for 256-color support
  --enable-ext-mouse      compile for extended mouse-encoding
  --enable-no-padding     compile with $NCURSES_NO_PADDING code
  --enable-signed-char    compile using signed Boolean's in term.h
  --enable-sigwinch       compile with SIGWINCH handler
  --enable-tcap-names     compile with user-definable terminal capabilities
Development Code:
  --without-develop       disable development options
  --enable-hard-tabs      compile with hard-tabs code
  --enable-xmc-glitch     compile with support for xmc (magic-cookie)
Experimental Code:
  --disable-assumed-color do not assume anything about default-colors
  --disable-hashmap       compile without hashmap scrolling-optimization
  --enable-colorfgbg      compile with $COLORFGBG code
  --with-pthread          use POSIX thread library
  --enable-weak-symbols   enable weak-symbols for pthreads
  --enable-reentrant      compile with experimental reentrant code
  --enable-safe-sprintf   compile with experimental safe-sprintf code
  --disable-scroll-hints  compile without scroll-hints code
  --enable-wgetch-events  compile with experimental wgetch-events code
Testing/development Options:
  --enable-echo           build: display "compiling" commands (default)
  --enable-warnings       build: turn on GCC compiler warnings
  --enable-assertions     test: turn on generation of assertion code
  --with-dmalloc          test: use Gray Watson's dmalloc library
  --with-dbmalloc         test: use Conor Cahill's dbmalloc library
  --with-valgrind         test: use valgrind
  --disable-leaks         test: free permanent memory, analyze leaks
  --enable-expanded       test: generate functions for certain macros
  --disable-macros        test: use functions rather than macros
  --with-trace            test: add trace() function to all models of ncurses
Ada95 Binding Options:
  --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
  --with-ada-include=DIR  Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
  --with-ada-objects=DIR  Ada objects are in DIR (default: PREFIX/lib/ada/adalib)

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
              headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      C++ preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

EOF
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  ac_popdir=`pwd`
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    cd $ac_subdir
    # A "../" for each directory in /$ac_subdir.
    ac_dots=`echo $ac_subdir |
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`

    case $srcdir in
    .) # No --srcdir option.  We are building in place.
      ac_sub_srcdir=$srcdir ;;
    [\\/]* | ?:[\\/]* ) # Absolute path.
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
    *) # Relative path.
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
    esac

    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f $ac_sub_srcdir/configure.gnu; then
      echo
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    elif test -f $ac_sub_srcdir/configure; then
      echo
      $SHELL $ac_sub_srcdir/configure  --help=recursive
    elif test -f $ac_sub_srcdir/configure.ac ||
           test -f $ac_sub_srcdir/configure.in; then
      echo
      $ac_configure --help
    else
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
    fi
    cd $ac_popdir
  done
fi

test -n "$ac_init_help" && exit 0
if $ac_init_version; then
  cat <<\EOF

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
EOF
  exit 0
fi
exec 5>config.log
cat >&5 <<EOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by $as_me, which was
generated by GNU Autoconf 2.52.20080325.  Invocation command line was

  $ $0 $@@

EOF
{
cat <<_ASUNAME
## ---------- ##
## Platform.  ##
## ---------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

PATH = $PATH

_ASUNAME
} >&5

cat >&5 <<EOF
## ------------ ##
## Core tests.  ##
## ------------ ##

EOF

# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell meta-characters.
ac_configure_args=
ac_sep=
for ac_arg
do
  case $ac_arg in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    ac_sep=" " ;;
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
     ac_sep=" " ;;
  esac
  # Get rid of the leading space.
done

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  echo >&5
  echo "## ----------------- ##" >&5
  echo "## Cache variables.  ##" >&5
  echo "## ----------------- ##" >&5
  echo >&5
  # The following way of writing the cache mishandles newlines in values,
{
  (set) 2>&1 |
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      sed -n \
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
      ;;
    *)
      sed -n \
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} >&5
  sed "/^$/d" confdefs.h >conftest.log
  if test -s conftest.log; then
    echo >&5
    echo "## ------------ ##" >&5
    echo "## confdefs.h.  ##" >&5
    echo "## ------------ ##" >&5
    echo >&5
    cat conftest.log >&5
  fi
  (echo; echo) >&5
  test "$ac_signal" != 0 &&
    echo "$as_me: caught signal $ac_signal" >&5
  echo "$as_me: exit $exit_status" >&5
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
    exit $exit_status
     ' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo >confdefs.h

# Let the site file select an alternate cache file if it wants to.
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    { echo "$as_me:997: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
    cat "$ac_site_file" >&5
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    { echo "$as_me:1008: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . $cache_file;;
      *)                      . ./$cache_file;;
    esac
  fi
else
  { echo "$as_me:1016: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in `(set) 2>&1 |
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  eval ac_new_val="\$ac_env_${ac_var}_value"
  case $ac_old_set,$ac_new_set in
    set,)
      { echo "$as_me:1032: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { echo "$as_me:1036: error: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
        { echo "$as_me:1042: error: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
        { echo "$as_me:1044:   former value:  $ac_old_val" >&5
echo "$as_me:   former value:  $ac_old_val" >&2;}
        { echo "$as_me:1046:   current value: $ac_new_val" >&5
echo "$as_me:   current value: $ac_new_val" >&2;}
        ac_cache_corrupted=:
      fi;;
  esac
  # Pass precious variables to config.status.  It doesn't matter if
  # we pass some twice (in addition to the command line arguments).
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
      ac_configure_args="$ac_configure_args '$ac_arg'"
      ;;
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
       ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { echo "$as_me:1065: error: changes in the environment can compromise the build" >&5
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  { { echo "$as_me:1067: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
echo "#! $SHELL" >conftest.sh
echo  "exit 0"   >>conftest.sh
chmod +x conftest.sh
if { (echo "$as_me:1088: PATH=\".;.\"; conftest.sh") >&5
  (PATH=".;."; conftest.sh) 2>&5
  ac_status=$?
  echo "$as_me:1091: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_path_separator=';'
else
  ac_path_separator=:
fi
PATH_SEPARATOR="$ac_path_separator"
rm -f conftest.sh

ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"

top_builddir=`pwd`

echo "$as_me:1104: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_prog_egrep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    then ac_cv_prog_egrep='grep -E'
    else ac_cv_prog_egrep='egrep'
    fi
fi
echo "$as_me:1114: result: $ac_cv_prog_egrep" >&5
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 EGREP=$ac_cv_prog_egrep

test -z "$EGREP" && { { echo "$as_me:1118: error: No egrep program found" >&5
echo "$as_me: error: No egrep program found" >&2;}
   { (exit 1); exit 1; }; }

NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ 	]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ 	]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ 	]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
cf_cv_abi_version=${NCURSES_MAJOR}
cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
cf_cv_timestamp=`date`
echo "$as_me:1128: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6

test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0

# Check whether --with-rel-version or --without-rel-version was given.
if test "${with_rel_version+set}" = set; then
  withval="$with_rel_version"
  { echo "$as_me:1136: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
 cf_cv_rel_version=$withval
fi;

 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`

if test -n "$NCURSES_MAJOR" ; then
  case $NCURSES_MAJOR in #(vi
  [0-9]*) #(vi
 	;;
  *)
	{ { echo "$as_me:1149: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
   { (exit 1); exit 1; }; }
 	;;
  esac
else
  { { echo "$as_me:1155: error: Release major-version value is empty" >&5
echo "$as_me: error: Release major-version value is empty" >&2;}
   { (exit 1); exit 1; }; }
fi

if test -n "$NCURSES_MINOR" ; then
  case $NCURSES_MINOR in #(vi
  [0-9]*) #(vi
 	;;
  *)
	{ { echo "$as_me:1165: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
   { (exit 1); exit 1; }; }
 	;;
  esac
else
  { { echo "$as_me:1171: error: Release minor-version value is empty" >&5
echo "$as_me: error: Release minor-version value is empty" >&2;}
   { (exit 1); exit 1; }; }
fi

test -z "$cf_cv_abi_version" && cf_cv_abi_version=0

# Check whether --with-abi-version or --without-abi-version was given.
if test "${with_abi_version+set}" = set; then
  withval="$with_abi_version"
  { echo "$as_me:1181: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
 cf_cv_abi_version=$withval
fi;

if test -n "$cf_cv_abi_version" ; then
  case $cf_cv_abi_version in #(vi
  [0-9]*) #(vi
 	;;
  *)
	{ { echo "$as_me:1191: error: ABI version is not a number: $cf_cv_abi_version" >&5
echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
   { (exit 1); exit 1; }; }
 	;;
  esac
else
  { { echo "$as_me:1197: error: ABI version value is empty" >&5
echo "$as_me: error: ABI version value is empty" >&2;}
   { (exit 1); exit 1; }; }
fi

ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f $ac_dir/shtool; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { { echo "$as_me:1219: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
   { (exit 1); exit 1; }; }
fi
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.

# Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 ||
  { { echo "$as_me:1229: error: cannot run $ac_config_sub" >&5
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   { (exit 1); exit 1; }; }

echo "$as_me:1233: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6
if test "${ac_cv_build+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_build_alias=$build_alias
test -z "$ac_cv_build_alias" &&
  ac_cv_build_alias=`$ac_config_guess`
test -z "$ac_cv_build_alias" &&
  { { echo "$as_me:1242: error: cannot guess build type; you must specify one" >&5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   { (exit 1); exit 1; }; }
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  { { echo "$as_me:1246: error: $ac_config_sub $ac_cv_build_alias failed." >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1251: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6
build=$ac_cv_build
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

echo "$as_me:1258: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6
if test "${ac_cv_host+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_host_alias=$host_alias
test -z "$ac_cv_host_alias" &&
  ac_cv_host_alias=$ac_cv_build_alias
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  { { echo "$as_me:1267: error: $ac_config_sub $ac_cv_host_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1272: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6
host=$ac_cv_host
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
	echo "$as_me:1280: checking target system type" >&5
echo $ECHO_N "checking target system type... $ECHO_C" >&6
if test "${ac_cv_target+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_target_alias=$target_alias
test "x$ac_cv_target_alias" = "x" &&
  ac_cv_target_alias=$ac_cv_host_alias
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  { { echo "$as_me:1289: error: $ac_config_sub $ac_cv_target_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1294: result: $ac_cv_target" >&5
echo "${ECHO_T}$ac_cv_target" >&6
target=$ac_cv_target
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
test -n "$target_alias" &&
  test "$program_prefix$program_suffix$program_transform_name" = \
    NONENONEs,x,x, &&
  program_prefix=${target_alias}-
	system_name="$host_os"
else
	system_name="`(uname -s -r) 2>/dev/null`"
	if test -z "$system_name" ; then
		system_name="`(hostname) 2>/dev/null`"
	fi
fi
test -n "$system_name" && cat >>confdefs.h <<EOF
#define SYSTEM_NAME "$system_name"
EOF

if test "${cf_cv_system_name+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cf_cv_system_name="$system_name"
fi

test -z "$system_name" && system_name="$cf_cv_system_name"
test -n "$cf_cv_system_name" && echo "$as_me:1325: result: Configuring for $cf_cv_system_name" >&5
echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6

if test ".$system_name" != ".$cf_cv_system_name" ; then
	echo "$as_me:1329: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
	{ { echo "$as_me:1331: error: \"Please remove config.cache and try again.\"" >&5
echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
   { (exit 1); exit 1; }; }
fi

# Check whether --with-system-type or --without-system-type was given.
if test "${with_system_type+set}" = set; then
  withval="$with_system_type"
  { echo "$as_me:1339: WARNING: overriding system type to $withval" >&5
echo "$as_me: WARNING: overriding system type to $withval" >&2;}
 cf_cv_system_name=$withval
fi;

###	Save the given $CFLAGS to allow user-override.
cf_user_CFLAGS="$CFLAGS"

###	Default install-location

echo "$as_me:1349: checking for prefix" >&5
echo $ECHO_N "checking for prefix... $ECHO_C" >&6
if test "x$prefix" = "xNONE" ; then
	case "$cf_cv_system_name" in
		# non-vendor systems don't have a conflict
	openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
		prefix=/usr
		;;
	*)	prefix=$ac_default_prefix
		;;
	esac
fi
echo "$as_me:1361: result: $prefix" >&5
echo "${ECHO_T}$prefix" >&6

if test "x$prefix" = "xNONE" ; then
echo "$as_me:1365: checking for default include-directory" >&5
echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
test -n "$verbose" && echo 1>&6
for cf_symbol in \
	$includedir \
	$includedir/ncurses \
	$prefix/include \
	$prefix/include/ncurses \
	/usr/local/include \
	/usr/local/include/ncurses \
	/usr/include \
	/usr/include/ncurses
do
	cf_dir=`eval echo $cf_symbol`
	if test -f $cf_dir/curses.h ; then
	if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
		includedir="$cf_symbol"
		test -n "$verbose"  && echo $ac_n "	found " 1>&6
		break
	fi
	fi
	test -n "$verbose"  && echo "	tested $cf_dir" 1>&6
done
echo "$as_me:1388: result: $includedir" >&5
echo "${ECHO_T}$includedir" >&6
fi

###	Checks for programs.
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo "$as_me:1402: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}gcc"
echo "$as_me:1417: found $ac_dir/$ac_word" >&5
break
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:1425: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:1428: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "$as_me:1437: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="gcc"
echo "$as_me:1452: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1460: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:1463: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
echo "$as_me:1476: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}cc"
echo "$as_me:1491: found $ac_dir/$ac_word" >&5
break
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:1499: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:1502: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:1511: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="cc"
echo "$as_me:1526: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1534: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:1537: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi

fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:1550: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  ac_prog_rejected=yes
  continue
fi
ac_cv_prog_CC="cc"
echo "$as_me:1570: found $ac_dir/$ac_word" >&5
break
done

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    set dummy "$ac_dir/$ac_word" ${1+"$@@"}
    shift
    ac_cv_prog_CC="$@@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:1592: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:1595: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:1606: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
echo "$as_me:1621: found $ac_dir/$ac_word" >&5
break
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:1629: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:1632: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:1645: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="$ac_prog"
echo "$as_me:1660: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1668: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:1671: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$ac_ct_CC" && break
done

  CC=$ac_ct_CC
fi

fi

test -z "$CC" && { { echo "$as_me:1683: error: no acceptable cc found in \$PATH" >&5
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }

# Provide some information about the compiler.
echo "$as_me:1688:" \
     "checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:1691: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:1694: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:1696: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:1699: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:1701: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:1704: \$? = $ac_status" >&5
  (exit $ac_status); }

cat >conftest.$ac_ext <<_ACEOF
#line 1708 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
echo "$as_me:1724: checking for C compiler default output" >&5
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
if { (eval echo "$as_me:1727: \"$ac_link_default\"") >&5
  (eval $ac_link_default) 2>&5
  ac_status=$?
  echo "$as_me:1730: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # Find the output, starting from the most likely.  This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort.
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
                ls a.out conftest 2>/dev/null;
                ls a.* conftest.* 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    a.out ) # We found the default executable, but exeext='' is most
            # certainly right.
            break;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:1753: error: C compiler cannot create executables" >&5
echo "$as_me: error: C compiler cannot create executables" >&2;}
   { (exit 77); exit 77; }; }
fi

ac_exeext=$ac_cv_exeext
echo "$as_me:1759: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6

# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:1764: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
  { (eval echo "$as_me:1770: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1773: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { echo "$as_me:1780: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&2;}
   { (exit 1); exit 1; }; }
    fi
  fi
fi
echo "$as_me:1788: result: yes" >&5
echo "${ECHO_T}yes" >&6

rm -f a.out a.exe conftest$ac_cv_exeext
ac_clean_files=$ac_clean_files_save
# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:1795: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "$as_me:1797: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6

echo "$as_me:1800: checking for executable suffix" >&5
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
if { (eval echo "$as_me:1802: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:1805: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
else
  { { echo "$as_me:1821: error: cannot compute EXEEXT: cannot compile and link" >&5
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest$ac_cv_exeext
echo "$as_me:1827: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
echo "$as_me:1833: checking for object suffix" >&5
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1839 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { (eval echo "$as_me:1851: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1854: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:1866: error: cannot compute OBJEXT: cannot compile" >&5
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
echo "$as_me:1873: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
echo "$as_me:1877: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
if test "${ac_cv_c_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1883 "configure"
#include "confdefs.h"

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1898: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1901: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1904: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1907: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:1919: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
CFLAGS="-g"
echo "$as_me:1925: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cc_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1931 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1943: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1946: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1949: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1952: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_g=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_prog_cc_g=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:1962: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
# Some people use a C++ compiler to compile C.  Since we use `exit',
# in C++ we need to declare it.  In case someone uses the same compiler
# for both compiling C and C++ we need to have the C++ compiler decide
# the declaration of exit, since it's the most demanding environment.
cat >conftest.$ac_ext <<_ACEOF
#ifndef __cplusplus
  choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1989: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1992: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1995: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1998: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line 2010 "configure"
#include "confdefs.h"
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2023: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2026: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2029: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2032: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 2042 "configure"
#include "confdefs.h"
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2054: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2057: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2060: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2063: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

GCC_VERSION=none
if test "$GCC" = yes ; then
	echo "$as_me:2093: checking version of $CC" >&5
echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
	GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
	test -z "$GCC_VERSION" && GCC_VERSION=unknown
	echo "$as_me:2097: result: $GCC_VERSION" >&5
echo "${ECHO_T}$GCC_VERSION" >&6
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return
echo "$as_me:2107: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 2128 "configure"
#include "confdefs.h"
#include <assert.h>
                     Syntax error
_ACEOF
if { (eval echo "$as_me:2133: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:2139: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 2162 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:2166: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:2172: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
echo "$as_me:2209: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 2219 "configure"
#include "confdefs.h"
#include <assert.h>
                     Syntax error
_ACEOF
if { (eval echo "$as_me:2224: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:2230: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 2253 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:2257: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:2263: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:2291: error: C preprocessor \"$CPP\" fails sanity check" >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

if test $ac_cv_c_compiler_gnu = yes; then
    echo "$as_me:2304: checking whether $CC needs -traditional" >&5
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
    ac_pattern="Autoconf.*'x'"
  cat >conftest.$ac_ext <<_ACEOF
#line 2311 "configure"
#include "confdefs.h"
#include <sgtty.h>
int Autoconf = TIOCGETP;
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "$ac_pattern" >/dev/null 2>&1; then
  ac_cv_prog_gcc_traditional=yes
else
  ac_cv_prog_gcc_traditional=no
fi
rm -f conftest*

  if test $ac_cv_prog_gcc_traditional = no; then
    cat >conftest.$ac_ext <<_ACEOF
#line 2326 "configure"
#include "confdefs.h"
#include <termio.h>
int Autoconf = TCGETA;
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "$ac_pattern" >/dev/null 2>&1; then
  ac_cv_prog_gcc_traditional=yes
fi
rm -f conftest*

  fi
fi
echo "$as_me:2339: result: $ac_cv_prog_gcc_traditional" >&5
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
fi

echo "$as_me:2346: checking whether $CC understands -c and -o together" >&5
echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
if test "${cf_cv_prog_CC_c_o+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat > conftest.$ac_ext <<CF_EOF
#include <stdio.h>
int main()
{
	${cf_cv_main_return:-return}(0);
}
CF_EOF
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
if { (eval echo "$as_me:2362: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2365: \$? = $ac_status" >&5
  (exit $ac_status); } &&
  test -f conftest2.$ac_objext && { (eval echo "$as_me:2367: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2370: \$? = $ac_status" >&5
  (exit $ac_status); };
then
  eval cf_cv_prog_CC_c_o=yes
else
  eval cf_cv_prog_CC_c_o=no
fi
rm -f conftest*

fi
if test $cf_cv_prog_CC_c_o = yes; then
  echo "$as_me:2381: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:2384: result: no" >&5
echo "${ECHO_T}no" >&6
fi

echo "$as_me:2388: checking for POSIXized ISC" >&5
echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
if test -d /etc/conf/kconfig.d &&
   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
then
  echo "$as_me:2393: result: yes" >&5
echo "${ECHO_T}yes" >&6
  ISC=yes # If later tests want to check for ISC.

cat >>confdefs.h <<\EOF
#define _POSIX_SOURCE 1
EOF

  if test "$GCC" = yes; then
    CC="$CC -posix"
  else
    CC="$CC -Xp"
  fi
else
  echo "$as_me:2407: result: no" >&5
echo "${ECHO_T}no" >&6
  ISC=
fi

echo "$as_me:2412: checking for ${CC-cc} option to accept ANSI C" >&5
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
if test "${cf_cv_ansi_cc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_ansi_cc=no
cf_save_CFLAGS="$CFLAGS"
cf_save_CPPFLAGS="$CPPFLAGS"
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX			-qlanglvl=ansi
# Ultrix and OSF/1	-std1
# HP-UX			-Aa -D_HPUX_SOURCE
# SVR4			-Xc
# UnixWare 1.2		(cannot use -Xc, since ANSI/POSIX clashes)
for cf_arg in "-DCC_HAS_PROTOS" \
	"" \
	-qlanglvl=ansi \
	-std1 \
	-Ae \
	"-Aa -D_HPUX_SOURCE" \
	-Xc
do

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in $cf_arg
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

	cat >conftest.$ac_ext <<_ACEOF
#line 2506 "configure"
#include "confdefs.h"

#ifndef CC_HAS_PROTOS
#if !defined(__STDC__) || (__STDC__ != 1)
choke me
#endif
#endif

int
main ()
{

	int test (int i, double x);
	struct s1 {int (*f) (int a);};
	struct s2 {int (*f) (double a);};
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2527: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2530: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2533: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2536: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_ansi_cc="$cf_arg"; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
CFLAGS="$cf_save_CFLAGS"
CPPFLAGS="$cf_save_CPPFLAGS"

fi
echo "$as_me:2549: result: $cf_cv_ansi_cc" >&5
echo "${ECHO_T}$cf_cv_ansi_cc" >&6

if test "$cf_cv_ansi_cc" != "no"; then
if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in $cf_cv_ansi_cc
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

else
	cat >>confdefs.h <<\EOF
#define CC_HAS_PROTOS 1
EOF

fi
fi

if test "$cf_cv_ansi_cc" = "no"; then
	{ { echo "$as_me:2632: error: Your compiler does not appear to recognize prototypes.
You have the following choices:
	a. adjust your compiler options
	b. get an up-to-date compiler
	c. use a wrapper such as unproto" >&5
echo "$as_me: error: Your compiler does not appear to recognize prototypes.
You have the following choices:
	a. adjust your compiler options
	b. get an up-to-date compiler
	c. use a wrapper such as unproto" >&2;}
   { (exit 1); exit 1; }; }
fi

case $cf_cv_system_name in
os2*)
    CFLAGS="$CFLAGS -Zmt"
    CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
    CXXFLAGS="$CXXFLAGS -Zmt"
    # autoconf's macro sets -Zexe and suffix both, which conflict:w
    LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
    ac_cv_exeext=.exe
    ;;
esac

PROG_EXT="$EXEEXT"

test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
#define PROG_EXT "$PROG_EXT"
EOF

if test "$cross_compiling" = yes ; then
  LDCONFIG=:
else
case "$cf_cv_system_name" in #(vi
freebsd*) #(vi
  test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
  ;;
*) LDPATH=$PATH:/sbin:/usr/sbin
  # Extract the first word of "ldconfig", so it can be a program name with args.
set dummy ldconfig; ac_word=$2
echo "$as_me:2672: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_LDCONFIG+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $LDCONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
  ;;
  *)
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$LDPATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
   echo "$as_me:2689: found $ac_dir/$ac_word" >&5
   break
fi
done

  ;;
esac
fi
LDCONFIG=$ac_cv_path_LDCONFIG

if test -n "$LDCONFIG"; then
  echo "$as_me:2700: result: $LDCONFIG" >&5
echo "${ECHO_T}$LDCONFIG" >&6
else
  echo "$as_me:2703: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  ;;
esac
fi

echo "$as_me:2711: checking if you want to ensure bool is consistent with C++" >&5
echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6

# Check whether --with-cxx or --without-cxx was given.
if test "${with_cxx+set}" = set; then
  withval="$with_cxx"
  cf_with_cxx=$withval
else
  cf_with_cxx=yes
fi;
echo "$as_me:2721: result: $cf_with_cxx" >&5
echo "${ECHO_T}$cf_with_cxx" >&6
if test "X$cf_with_cxx" = Xno ; then
	CXX=""
	GXX=""
else
	# with autoconf 2.13, we can change the error to a warning:
		ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return
if test -n "$ac_tool_prefix"; then
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:2739: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
echo "$as_me:2754: found $ac_dir/$ac_word" >&5
break
done

fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  echo "$as_me:2762: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6
else
  echo "$as_me:2765: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:2778: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CXX="$ac_prog"
echo "$as_me:2793: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  echo "$as_me:2801: result: $ac_ct_CXX" >&5
echo "${ECHO_T}$ac_ct_CXX" >&6
else
  echo "$as_me:2804: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$ac_ct_CXX" && break
done
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"

  CXX=$ac_ct_CXX
fi

# Provide some information about the compiler.
echo "$as_me:2816:" \
     "checking for C++ compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:2819: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:2822: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:2824: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:2827: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:2829: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:2832: \$? = $ac_status" >&5
  (exit $ac_status); }

echo "$as_me:2835: checking whether we are using the GNU C++ compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2841 "configure"
#include "confdefs.h"

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2856: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2859: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2862: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2865: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:2877: result: $ac_cv_cxx_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
GXX=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="-g"
echo "$as_me:2883: checking whether $CXX accepts -g" >&5
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cxx_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 2889 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2901: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2904: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2907: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2910: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cxx_g=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_prog_cxx_g=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:2920: result: $ac_cv_prog_cxx_g" >&5
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line 2947 "configure"
#include "confdefs.h"
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2960: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2963: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2966: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2969: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 2979 "configure"
#include "confdefs.h"
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2991: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2994: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2997: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:3000: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

		# autoconf 2.5x removed the error - by hardcoding it to g++.
	if test "$CXX" = "g++" ; then
		# Extract the first word of "g++", so it can be a program name with args.
set dummy g++; ac_word=$2
echo "$as_me:3027: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $CXX in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
  ;;
  *)
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_CXX="$ac_dir/$ac_word"
   echo "$as_me:3044: found $ac_dir/$ac_word" >&5
   break
fi
done

  ;;
esac
fi
CXX=$ac_cv_path_CXX

if test -n "$CXX"; then
  echo "$as_me:3055: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6
else
  echo "$as_me:3058: result: no" >&5
echo "${ECHO_T}no" >&6
fi

	fi
	if test "$CXX" = "g++" ; then
		{ echo "$as_me:3064: WARNING: ignoring hardcoded g++" >&5
echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
		cf_with_cxx=no; CXX=""; GXX="";
	fi
fi

GXX_VERSION=none
if test "$GXX" = yes; then
	echo "$as_me:3072: checking version of g++" >&5
echo $ECHO_N "checking version of g++... $ECHO_C" >&6
	GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
	test -z "$GXX_VERSION" && GXX_VERSION=unknown
	echo "$as_me:3076: result: $GXX_VERSION" >&5
echo "${ECHO_T}$GXX_VERSION" >&6
fi

case $GXX_VERSION in
1*|2.[0-6]*)
	# GXX=""; CXX=""; ac_cv_prog_gxx=no
	# cf_cxx_library=no
	{ echo "$as_me:3084: WARNING: templates do not work" >&5
echo "$as_me: WARNING: templates do not work" >&2;}
	;;
esac

echo "$as_me:3089: checking if you want to build C++ binding and demo" >&5
echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6

# Check whether --with-cxx-binding or --without-cxx-binding was given.
if test "${with_cxx_binding+set}" = set; then
  withval="$with_cxx_binding"
  cf_with_cxx_binding=$withval
else
  cf_with_cxx_binding=$cf_with_cxx
fi;
echo "$as_me:3099: result: $cf_with_cxx_binding" >&5
echo "${ECHO_T}$cf_with_cxx_binding" >&6

echo "$as_me:3102: checking if you want to build with Ada95" >&5
echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6

# Check whether --with-ada or --without-ada was given.
if test "${with_ada+set}" = set; then
  withval="$with_ada"
  cf_with_ada=$withval
else
  cf_with_ada=yes
fi;
echo "$as_me:3112: result: $cf_with_ada" >&5
echo "${ECHO_T}$cf_with_ada" >&6

echo "$as_me:3115: checking if you want to build programs such as tic" >&5
echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6

# Check whether --with-progs or --without-progs was given.
if test "${with_progs+set}" = set; then
  withval="$with_progs"
  cf_with_progs=$withval
else
  cf_with_progs=yes
fi;
echo "$as_me:3125: result: $cf_with_progs" >&5
echo "${ECHO_T}$cf_with_progs" >&6

echo "$as_me:3128: checking if you wish to install curses.h" >&5
echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6

# Check whether --with-curses-h or --without-curses-h was given.
if test "${with_curses_h+set}" = set; then
  withval="$with_curses_h"
  with_curses_h=$withval
else
  with_curses_h=yes
fi;
echo "$as_me:3138: result: $with_curses_h" >&5
echo "${ECHO_T}$with_curses_h" >&6

modules_to_build="ncurses"
if test "X$cf_with_progs" != Xno ; then
modules_to_build="$modules_to_build progs tack"
fi
modules_to_build="$modules_to_build panel menu form"

test "$program_prefix" != NONE &&
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
# Double any \ or $.  echo might interpret backslashes.
# By default was `s,x,x', remove it if useless.
cat <<\_ACEOF >conftest.sed
s/[\\$]/&&/g;s/;s,x,x,$//
_ACEOF
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
rm conftest.sed

for ac_prog in mawk gawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:3164: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_AWK="$ac_prog"
echo "$as_me:3179: found $ac_dir/$ac_word" >&5
break
done

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  echo "$as_me:3187: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
else
  echo "$as_me:3190: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$AWK" && break
done

test -z "$AWK" && { { echo "$as_me:3197: error: No awk program found" >&5
echo "$as_me: error: No awk program found" >&2;}
   { (exit 1); exit 1; }; }

echo "$as_me:3201: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_prog_egrep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    then ac_cv_prog_egrep='grep -E'
    else ac_cv_prog_egrep='egrep'
    fi
fi
echo "$as_me:3211: result: $ac_cv_prog_egrep" >&5
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 EGREP=$ac_cv_prog_egrep

test -z "$EGREP" && { { echo "$as_me:3215: error: No egrep program found" >&5
echo "$as_me: error: No egrep program found" >&2;}
   { (exit 1); exit 1; }; }

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo "$as_me:3231: checking for a BSD compatible install" >&5
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
    ac_save_IFS=$IFS; IFS=$ac_path_separator
  for ac_dir in $PATH; do
    IFS=$ac_save_IFS
    # Account for people who put trailing slashes in PATH elements.
    case $ac_dir/ in
    / | ./ | .// | /cC/* \
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
    | /usr/ucb/* ) ;;
    *)
      # OSF1 and SCO ODT 3.0 have their own names for install.
      # Don't use installbsd from OSF since it installs stuff as root
      # by default.
      for ac_prog in ginstall scoinst install; do
        if $as_executable_p "$ac_dir/$ac_prog"; then
	  if test $ac_prog = install &&
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
	    break 2
	  fi
	fi
      done
      ;;
    esac
  done

fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  We don't cache a
    # path for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the path is relative.
    INSTALL=$ac_install_sh
  fi
fi
echo "$as_me:3280: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

case $INSTALL in
/*)
  ;;
*)
  cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
  test -z "$cf_dir" && cf_dir=.
  INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
  ;;
esac

for ac_prog in tdlint lint alint
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:3305: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_LINT+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$LINT"; then
  ac_cv_prog_LINT="$LINT" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_LINT="$ac_prog"
echo "$as_me:3320: found $ac_dir/$ac_word" >&5
break
done

fi
fi
LINT=$ac_cv_prog_LINT
if test -n "$LINT"; then
  echo "$as_me:3328: result: $LINT" >&5
echo "${ECHO_T}$LINT" >&6
else
  echo "$as_me:3331: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$LINT" && break
done

echo "$as_me:3338: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  echo "$as_me:3342: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:3345: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6
fi

echo "$as_me:3349: checking for long file names" >&5
echo $ECHO_N "checking for long file names... $ECHO_C" >&6
if test "${ac_cv_sys_long_file_names+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_sys_long_file_names=yes
# Test for long file names in all the places we know might matter:
#      .		the current directory, where building will happen
#      $prefix/lib	where we will be installing things
#      $exec_prefix/lib	likewise
# eval it to expand exec_prefix.
#      $TMPDIR		if set, where it might want to write temporary files
# if $TMPDIR is not set:
#      /tmp		where it might want to write temporary files
#      /var/tmp		likewise
#      /usr/tmp		likewise
if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
  ac_tmpdirs=$TMPDIR
else
  ac_tmpdirs='/tmp /var/tmp /usr/tmp'
fi
for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
  test -d $ac_dir || continue
  test -w $ac_dir || continue # It is less confusing to not echo anything here.
  ac_xdir=$ac_dir/cf$$
  (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
  ac_tf1=$ac_xdir/conftest9012345
  ac_tf2=$ac_xdir/conftest9012346
  (echo 1 >$ac_tf1) 2>/dev/null
  (echo 2 >$ac_tf2) 2>/dev/null
  ac_val=`cat $ac_tf1 2>/dev/null`
  if test ! -f $ac_tf1 || test "$ac_val" != 1; then
    ac_cv_sys_long_file_names=no
    rm -rf $ac_xdir 2>/dev/null
    break
  fi
  rm -rf $ac_xdir 2>/dev/null
done
fi
echo "$as_me:3388: result: $ac_cv_sys_long_file_names" >&5
echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
if test $ac_cv_sys_long_file_names = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_LONG_FILE_NAMES 1
EOF

fi

echo "$as_me:3398: checking if we should assume mixed-case filenames" >&5
echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6

# Check whether --enable-mixed-case or --disable-mixed-case was given.
if test "${enable_mixed_case+set}" = set; then
  enableval="$enable_mixed_case"
  enable_mixedcase=$enableval
else
  enable_mixedcase=auto
fi;
echo "$as_me:3408: result: $enable_mixedcase" >&5
echo "${ECHO_T}$enable_mixedcase" >&6
if test "$enable_mixedcase" = "auto" ; then

echo "$as_me:3412: checking if filesystem supports mixed-case filenames" >&5
echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
if test "${cf_cv_mixedcase+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test "$cross_compiling" = yes ; then
	case $target_alias in #(vi
	*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
		cf_cv_mixedcase=no
		;;
	*)
		cf_cv_mixedcase=yes
		;;
	esac
else
	rm -f conftest CONFTEST
	echo test >conftest
	if test -f CONFTEST ; then
		cf_cv_mixedcase=no
	else
		cf_cv_mixedcase=yes
	fi
	rm -f conftest CONFTEST
fi

fi
echo "$as_me:3439: result: $cf_cv_mixedcase" >&5
echo "${ECHO_T}$cf_cv_mixedcase" >&6
test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
#define MIXEDCASE_FILENAMES 1
EOF

else
    cf_cv_mixedcase=$enable_mixedcase
    if test "$enable_mixedcase" = "yes" ; then
        cat >>confdefs.h <<\EOF
#define MIXEDCASE_FILENAMES 1
EOF

    fi
fi

# do this after mixed-case option (tags/TAGS is not as important as tic).
echo "$as_me:3456: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.make <<\EOF
all:
	@@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
else
  eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftest.make
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$as_me:3476: result: yes" >&5
echo "${ECHO_T}yes" >&6
  SET_MAKE=
else
  echo "$as_me:3480: result: no" >&5
echo "${ECHO_T}no" >&6
  SET_MAKE="MAKE=${MAKE-make}"
fi

# Extract the first word of "ctags", so it can be a program name with args.
set dummy ctags; ac_word=$2
echo "$as_me:3487: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$MAKE_LOWER_TAGS"; then
  ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_MAKE_LOWER_TAGS="yes"
echo "$as_me:3502: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
fi
fi
MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
if test -n "$MAKE_LOWER_TAGS"; then
  echo "$as_me:3511: result: $MAKE_LOWER_TAGS" >&5
echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
else
  echo "$as_me:3514: result: no" >&5
echo "${ECHO_T}no" >&6
fi

if test "$cf_cv_mixedcase" = yes ; then
	# Extract the first word of "etags", so it can be a program name with args.
set dummy etags; ac_word=$2
echo "$as_me:3521: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$MAKE_UPPER_TAGS"; then
  ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_MAKE_UPPER_TAGS="yes"
echo "$as_me:3536: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
fi
fi
MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
if test -n "$MAKE_UPPER_TAGS"; then
  echo "$as_me:3545: result: $MAKE_UPPER_TAGS" >&5
echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
else
  echo "$as_me:3548: result: no" >&5
echo "${ECHO_T}no" >&6
fi

else
	MAKE_UPPER_TAGS=no
fi

if test "$MAKE_UPPER_TAGS" = yes ; then
	MAKE_UPPER_TAGS=
else
	MAKE_UPPER_TAGS="#"
fi

if test "$MAKE_LOWER_TAGS" = yes ; then
	MAKE_LOWER_TAGS=
else
	MAKE_LOWER_TAGS="#"
fi

echo "$as_me:3568: checking for makeflags variable" >&5
echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
if test "${cf_cv_makeflags+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cf_cv_makeflags=''
	for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
	do
		cat >cf_makeflags.tmp <<CF_EOF
SHELL = /bin/sh
all :
	@@ echo '.$cf_option'
CF_EOF
		cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ 	]*$,,'`
		case "$cf_result" in
		.*k)
			cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
			case "$cf_result" in
			.*CC=*)	cf_cv_makeflags=
				;;
			*)	cf_cv_makeflags=$cf_option
				;;
			esac
			break
			;;
		.-)	;;
		*)	echo "given option \"$cf_option\", no match \"$cf_result\""
			;;
		esac
	done
	rm -f cf_makeflags.tmp

fi
echo "$as_me:3602: result: $cf_cv_makeflags" >&5
echo "${ECHO_T}$cf_cv_makeflags" >&6

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo "$as_me:3608: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
echo "$as_me:3623: found $ac_dir/$ac_word" >&5
break
done

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  echo "$as_me:3631: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
else
  echo "$as_me:3634: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo "$as_me:3643: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_RANLIB="ranlib"
echo "$as_me:3658: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  echo "$as_me:3667: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6
else
  echo "$as_me:3670: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  RANLIB=$ac_ct_RANLIB
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
set dummy ${ac_tool_prefix}ld; ac_word=$2
echo "$as_me:3682: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$LD"; then
  ac_cv_prog_LD="$LD" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_LD="${ac_tool_prefix}ld"
echo "$as_me:3697: found $ac_dir/$ac_word" >&5
break
done

fi
fi
LD=$ac_cv_prog_LD
if test -n "$LD"; then
  echo "$as_me:3705: result: $LD" >&5
echo "${ECHO_T}$LD" >&6
else
  echo "$as_me:3708: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_LD"; then
  ac_ct_LD=$LD
  # Extract the first word of "ld", so it can be a program name with args.
set dummy ld; ac_word=$2
echo "$as_me:3717: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_LD"; then
  ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_LD="ld"
echo "$as_me:3732: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
fi
fi
ac_ct_LD=$ac_cv_prog_ac_ct_LD
if test -n "$ac_ct_LD"; then
  echo "$as_me:3741: result: $ac_ct_LD" >&5
echo "${ECHO_T}$ac_ct_LD" >&6
else
  echo "$as_me:3744: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  LD=$ac_ct_LD
else
  LD="$ac_cv_prog_LD"
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
echo "$as_me:3756: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_AR="${ac_tool_prefix}ar"
echo "$as_me:3771: found $ac_dir/$ac_word" >&5
break
done

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  echo "$as_me:3779: result: $AR" >&5
echo "${ECHO_T}$AR" >&6
else
  echo "$as_me:3782: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_AR"; then
  ac_ct_AR=$AR
  # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
echo "$as_me:3791: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_AR="ar"
echo "$as_me:3806: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  echo "$as_me:3815: result: $ac_ct_AR" >&5
echo "${ECHO_T}$ac_ct_AR" >&6
else
  echo "$as_me:3818: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  AR=$ac_ct_AR
else
  AR="$ac_cv_prog_AR"
fi

if test "${cf_cv_subst_AR_OPTS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

echo "$as_me:3831: checking for archiver options (symbol AR_OPTS)" >&5
echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6

if test -z "$AR_OPTS" ; then
	AR_OPTS=rv

fi

cf_cv_subst_AR_OPTS=$AR_OPTS
echo "$as_me:3840: result: $AR_OPTS" >&5
echo "${ECHO_T}$AR_OPTS" >&6

fi

echo "$as_me:3845: checking if you have specified an install-prefix" >&5
echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6

# Check whether --with-install-prefix or --without-install-prefix was given.
if test "${with_install_prefix+set}" = set; then
  withval="$with_install_prefix"
  case "$withval" in #(vi
	yes|no) #(vi
		;;
	*)	DESTDIR="$withval"
		;;
	esac
fi;
echo "$as_me:3858: result: $DESTDIR" >&5
echo "${ECHO_T}$DESTDIR" >&6

###############################################################################

# If we're cross-compiling, allow the user to override the tools and their
# options.  The configure script is oriented toward identifying the host
# compiler, etc., but we need a build compiler to generate parts of the source.

if test "$cross_compiling" = yes ; then

	# defaults that we might want to override
	: ${BUILD_CFLAGS:=''}
	: ${BUILD_CPPFLAGS:=''}
	: ${BUILD_LDFLAGS:=''}
	: ${BUILD_LIBS:=''}
	: ${BUILD_EXEEXT:='$x'}
	: ${BUILD_OBJEXT:='o'}

# Check whether --with-build-cc or --without-build-cc was given.
if test "${with_build_cc+set}" = set; then
  withval="$with_build_cc"
  BUILD_CC="$withval"
else
  for ac_prog in gcc cc cl
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:3886: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_BUILD_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$BUILD_CC"; then
  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_BUILD_CC="$ac_prog"
echo "$as_me:3901: found $ac_dir/$ac_word" >&5
break
done

fi
fi
BUILD_CC=$ac_cv_prog_BUILD_CC
if test -n "$BUILD_CC"; then
  echo "$as_me:3909: result: $BUILD_CC" >&5
echo "${ECHO_T}$BUILD_CC" >&6
else
  echo "$as_me:3912: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$BUILD_CC" && break
done

fi;
	echo "$as_me:3920: checking for native build C compiler" >&5
echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
	echo "$as_me:3922: result: $BUILD_CC" >&5
echo "${ECHO_T}$BUILD_CC" >&6

	echo "$as_me:3925: checking for native build C preprocessor" >&5
echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6

# Check whether --with-build-cpp or --without-build-cpp was given.
if test "${with_build_cpp+set}" = set; then
  withval="$with_build_cpp"
  BUILD_CPP="$withval"
else
  BUILD_CPP='${BUILD_CC} -E'
fi;
	echo "$as_me:3935: result: $BUILD_CPP" >&5
echo "${ECHO_T}$BUILD_CPP" >&6

	echo "$as_me:3938: checking for native build C flags" >&5
echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6

# Check whether --with-build-cflags or --without-build-cflags was given.
if test "${with_build_cflags+set}" = set; then
  withval="$with_build_cflags"
  BUILD_CFLAGS="$withval"
fi;
	echo "$as_me:3946: result: $BUILD_CFLAGS" >&5
echo "${ECHO_T}$BUILD_CFLAGS" >&6

	echo "$as_me:3949: checking for native build C preprocessor-flags" >&5
echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6

# Check whether --with-build-cppflags or --without-build-cppflags was given.
if test "${with_build_cppflags+set}" = set; then
  withval="$with_build_cppflags"
  BUILD_CPPFLAGS="$withval"
fi;
	echo "$as_me:3957: result: $BUILD_CPPFLAGS" >&5
echo "${ECHO_T}$BUILD_CPPFLAGS" >&6

	echo "$as_me:3960: checking for native build linker-flags" >&5
echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6

# Check whether --with-build-ldflags or --without-build-ldflags was given.
if test "${with_build_ldflags+set}" = set; then
  withval="$with_build_ldflags"
  BUILD_LDFLAGS="$withval"
fi;
	echo "$as_me:3968: result: $BUILD_LDFLAGS" >&5
echo "${ECHO_T}$BUILD_LDFLAGS" >&6

	echo "$as_me:3971: checking for native build linker-libraries" >&5
echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6

# Check whether --with-build-libs or --without-build-libs was given.
if test "${with_build_libs+set}" = set; then
  withval="$with_build_libs"
  BUILD_LIBS="$withval"
fi;
	echo "$as_me:3979: result: $BUILD_LIBS" >&5
echo "${ECHO_T}$BUILD_LIBS" >&6

	# this assumes we're on Unix.
	BUILD_EXEEXT=
	BUILD_OBJEXT=o

	: ${BUILD_CC:='${CC}'}

	if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
		{ { echo "$as_me:3989: error: Cross-build requires two compilers.
Use --with-build-cc to specify the native compiler." >&5
echo "$as_me: error: Cross-build requires two compilers.
Use --with-build-cc to specify the native compiler." >&2;}
   { (exit 1); exit 1; }; }
	fi

else
	: ${BUILD_CC:='${CC}'}
	: ${BUILD_CPP:='${CPP}'}
	: ${BUILD_CFLAGS:='${CFLAGS}'}
	: ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
	: ${BUILD_LDFLAGS:='${LDFLAGS}'}
	: ${BUILD_LIBS:='${LIBS}'}
	: ${BUILD_EXEEXT:='$x'}
	: ${BUILD_OBJEXT:='o'}
fi

###############################################################################

### Options to allow the user to specify the set of libraries which are used.
### Use "--without-normal --with-shared" to allow the default model to be
### shared, for example.
cf_list_models=""

LIBTOOL=

# common library maintenance symbols that are convenient for libtool scripts:
LIB_CREATE='${AR} -cr'
LIB_OBJECT='${OBJECTS}'
LIB_SUFFIX=.a
LIB_PREP="$RANLIB"

# symbols used to prop libtool up to enable it to determine what it should be
# doing:
LIB_CLEAN=
LIB_COMPILE=
LIB_LINK='${CC}'
LIB_INSTALL=
LIB_UNINSTALL=

echo "$as_me:4030: checking if you want to build libraries with libtool" >&5
echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6

# Check whether --with-libtool or --without-libtool was given.
if test "${with_libtool+set}" = set; then
  withval="$with_libtool"
  with_libtool=$withval
else
  with_libtool=no
fi;
echo "$as_me:4040: result: $with_libtool" >&5
echo "${ECHO_T}$with_libtool" >&6
if test "$with_libtool" != "no"; then

 	if test "$with_libtool" != "yes" ; then

if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
fi

case ".$with_libtool" in #(vi
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
  ;;
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  ;;
.\${*prefix}*) #(vi
  eval with_libtool="$with_libtool"
  case ".$with_libtool" in #(vi
  .NONE/*)
    with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
    ;;
  esac
  ;; #(vi
.no|.NONE/*)
  with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
  ;;
*)
  { { echo "$as_me:4071: error: expected a pathname, not \"$with_libtool\"" >&5
echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
   { (exit 1); exit 1; }; }
  ;;
esac

		LIBTOOL=$with_libtool
	else
 		# Extract the first word of "libtool", so it can be a program name with args.
set dummy libtool; ac_word=$2
echo "$as_me:4081: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_LIBTOOL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $LIBTOOL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
  ;;
  *)
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
   echo "$as_me:4098: found $ac_dir/$ac_word" >&5
   break
fi
done

  ;;
esac
fi
LIBTOOL=$ac_cv_path_LIBTOOL

if test -n "$LIBTOOL"; then
  echo "$as_me:4109: result: $LIBTOOL" >&5
echo "${ECHO_T}$LIBTOOL" >&6
else
  echo "$as_me:4112: result: no" >&5
echo "${ECHO_T}no" >&6
fi

 	fi
 	if test -z "$LIBTOOL" ; then
 		{ { echo "$as_me:4118: error: Cannot find libtool" >&5
echo "$as_me: error: Cannot find libtool" >&2;}
   { (exit 1); exit 1; }; }
 	fi
	LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} -o'
	LIB_OBJECT='${OBJECTS:.o=.lo}'
	LIB_SUFFIX=.la
	LIB_CLEAN='${LIBTOOL} --mode=clean'
	LIB_COMPILE='${LIBTOOL} --mode=compile'
	LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
	LIB_INSTALL='${LIBTOOL} --mode=install'
	LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
	LIB_PREP=:

	# Show the version of libtool
	echo "$as_me:4133: checking version of libtool" >&5
echo $ECHO_N "checking version of libtool... $ECHO_C" >&6

	# Save the version in a cache variable - this is not entirely a good
	# thing, but the version string from libtool is very ugly, and for
	# bug reports it might be useful to have the original string.
	cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
	echo "$as_me:4140: result: $cf_cv_libtool_version" >&5
echo "${ECHO_T}$cf_cv_libtool_version" >&6
	if test -z "$cf_cv_libtool_version" ; then
		{ { echo "$as_me:4143: error: This is not GNU libtool" >&5
echo "$as_me: error: This is not GNU libtool" >&2;}
   { (exit 1); exit 1; }; }
	fi

	# special hack to add --tag option for C++ compiler
	case $cf_cv_libtool_version in
	1.[5-9]*|[2-9]*)
		LIBTOOL_CXX="$LIBTOOL --tag=CXX"
		LIBTOOL="$LIBTOOL --tag=CC"
		;;
	*)
		LIBTOOL_CXX="$LIBTOOL"
		;;
	esac
else
	LIBTOOL=""
	LIBTOOL_CXX=""
fi

test -z "$LIBTOOL" && ECHO_LT=

if test "$with_libtool" != "no" ; then

cf_list_models="$cf_list_models libtool"

else

echo "$as_me:4171: checking if you want to build shared libraries" >&5
echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6

# Check whether --with-shared or --without-shared was given.
if test "${with_shared+set}" = set; then
  withval="$with_shared"
  with_shared=$withval
else
  with_shared=no
fi;
echo "$as_me:4181: result: $with_shared" >&5
echo "${ECHO_T}$with_shared" >&6
test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"

echo "$as_me:4185: checking if you want to build static libraries" >&5
echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6

# Check whether --with-normal or --without-normal was given.
if test "${with_normal+set}" = set; then
  withval="$with_normal"
  with_normal=$withval
else
  with_normal=yes
fi;
echo "$as_me:4195: result: $with_normal" >&5
echo "${ECHO_T}$with_normal" >&6
test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"

echo "$as_me:4199: checking if you want to build debug libraries" >&5
echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6

# Check whether --with-debug or --without-debug was given.
if test "${with_debug+set}" = set; then
  withval="$with_debug"
  with_debug=$withval
else
  with_debug=yes
fi;
echo "$as_me:4209: result: $with_debug" >&5
echo "${ECHO_T}$with_debug" >&6
test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"

echo "$as_me:4213: checking if you want to build profiling libraries" >&5
echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6

# Check whether --with-profile or --without-profile was given.
if test "${with_profile+set}" = set; then
  withval="$with_profile"
  with_profile=$withval
else
  with_profile=no
fi;
echo "$as_me:4223: result: $with_profile" >&5
echo "${ECHO_T}$with_profile" >&6
test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"

fi

###############################################################################

echo "$as_me:4231: checking for specified models" >&5
echo $ECHO_N "checking for specified models... $ECHO_C" >&6
test -z "$cf_list_models" && cf_list_models=normal
test "$with_libtool" != "no" && cf_list_models=libtool
echo "$as_me:4235: result: $cf_list_models" >&5
echo "${ECHO_T}$cf_list_models" >&6

### Use the first model as the default, and save its suffix for use in building
### up test-applications.
echo "$as_me:4240: checking for default model" >&5
echo $ECHO_N "checking for default model... $ECHO_C" >&6
DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
echo "$as_me:4243: result: $DFT_LWR_MODEL" >&5
echo "${ECHO_T}$DFT_LWR_MODEL" >&6

DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`

TICS_NAME=tic

TINFO_NAME=tinfo

LIB_NAME=ncurses

LIB_DIR=../lib
LIB_2ND=../../lib

	case $cf_cv_system_name in #(vi
	OS/2*|os2*) #(vi
        LIB_PREFIX=''
        ;;
	*)	LIB_PREFIX='lib'
        ;;
	esac
cf_prefix=$LIB_PREFIX

LIB_PREFIX=$cf_prefix

LIB_SUFFIX=

###############################################################################

echo "$as_me:4272: checking if you want to build a separate terminfo library" >&5
echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6

# Check whether --with-termlib or --without-termlib was given.
if test "${with_termlib+set}" = set; then
  withval="$with_termlib"
  with_termlib=$withval
else
  with_termlib=no
fi;
echo "$as_me:4282: result: $with_termlib" >&5
echo "${ECHO_T}$with_termlib" >&6

echo "$as_me:4285: checking if you want to build a separate tic library" >&5
echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6

# Check whether --with-ticlib or --without-ticlib was given.
if test "${with_ticlib+set}" = set; then
  withval="$with_ticlib"
  with_ticlib=$withval
else
  with_ticlib=no
fi;
echo "$as_me:4295: result: $with_ticlib" >&5
echo "${ECHO_T}$with_ticlib" >&6

### Checks for special libraries, must be done up-front.
SHLIB_LIST=""

echo "$as_me:4301: checking if you want to link with the GPM mouse library" >&5
echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6

# Check whether --with-gpm or --without-gpm was given.
if test "${with_gpm+set}" = set; then
  withval="$with_gpm"
  with_gpm=$withval
else
  with_gpm=maybe
fi;
echo "$as_me:4311: result: $with_gpm" >&5
echo "${ECHO_T}$with_gpm" >&6

if test "$with_gpm" != no ; then
	echo "$as_me:4315: checking for gpm.h" >&5
echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
if test "${ac_cv_header_gpm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4321 "configure"
#include "confdefs.h"
#include <gpm.h>
_ACEOF
if { (eval echo "$as_me:4325: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:4331: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_gpm_h=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_gpm_h=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:4350: result: $ac_cv_header_gpm_h" >&5
echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
if test $ac_cv_header_gpm_h = yes; then

		cat >>confdefs.h <<\EOF
#define HAVE_GPM_H 1
EOF

		if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
			test -n "$verbose" && echo "	assuming we really have GPM library" 1>&6

echo "${as_me-configure}:4361: testing assuming we really have GPM library ..." 1>&5

			cat >>confdefs.h <<\EOF
#define HAVE_LIBGPM 1
EOF

		else
			echo "$as_me:4368: checking for Gpm_Open in -lgpm" >&5
echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgpm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 4376 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char Gpm_Open ();
int
main ()
{
Gpm_Open ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4395: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4398: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4401: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4404: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_gpm_Gpm_Open=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_gpm_Gpm_Open=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:4415: result: $ac_cv_lib_gpm_Gpm_Open" >&5
echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
if test $ac_cv_lib_gpm_Gpm_Open = yes; then
  :
else

				{ { echo "$as_me:4421: error: Cannot link with GPM library" >&5
echo "$as_me: error: Cannot link with GPM library" >&2;}
   { (exit 1); exit 1; }; }
		fi
		with_gpm=yes

fi

else

		test "$with_gpm" != maybe && { echo "$as_me:4431: WARNING: Cannot find GPM header" >&5
echo "$as_me: WARNING: Cannot find GPM header" >&2;}
		with_gpm=no

fi

fi

if test "$with_gpm" != no ; then
	echo "$as_me:4440: checking if you want to load GPM dynamically" >&5
echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6

# Check whether --with-dlsym or --without-dlsym was given.
if test "${with_dlsym+set}" = set; then
  withval="$with_dlsym"
  with_dlsym=$withval
else
  with_dlsym=yes
fi;
	echo "$as_me:4450: result: $with_dlsym" >&5
echo "${ECHO_T}$with_dlsym" >&6
	if test "$with_dlsym" = yes ; then

cf_have_dlsym=no
echo "$as_me:4455: checking for dlsym" >&5
echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
if test "${ac_cv_func_dlsym+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4461 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlsym (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlsym ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dlsym) || defined (__stub___dlsym)
choke me
#else
f = dlsym;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4492: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4495: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4498: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4501: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_dlsym=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_dlsym=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:4511: result: $ac_cv_func_dlsym" >&5
echo "${ECHO_T}$ac_cv_func_dlsym" >&6
if test $ac_cv_func_dlsym = yes; then
  cf_have_dlsym=yes
else

cf_have_libdl=no
echo "$as_me:4518: checking for dlsym in -ldl" >&5
echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlsym+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 4526 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlsym ();
int
main ()
{
dlsym ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4545: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4548: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4551: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4554: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlsym=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dl_dlsym=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:4565: result: $ac_cv_lib_dl_dlsym" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
if test $ac_cv_lib_dl_dlsym = yes; then

	cf_have_dlsym=yes
	cf_have_libdl=yes
fi

fi

if test "$cf_have_dlsym" = yes ; then
	test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"

	echo "$as_me:4578: checking whether able to link to dl*() functions" >&5
echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
	cat >conftest.$ac_ext <<_ACEOF
#line 4581 "configure"
#include "confdefs.h"
#include <dlfcn.h>
int
main ()
{

		void *obj;
		if ((obj = dlopen("filename", 0)) != 0) {
			if (dlsym(obj, "symbolname") == 0) {
			dlclose(obj);
			}
		}
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4599: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4602: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4605: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4608: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

		cat >>confdefs.h <<\EOF
#define HAVE_LIBDL 1
EOF

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

		{ { echo "$as_me:4619: error: Cannot link test program for libdl" >&5
echo "$as_me: error: Cannot link test program for libdl" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	echo "$as_me:4624: result: ok" >&5
echo "${ECHO_T}ok" >&6
else
	{ { echo "$as_me:4627: error: Cannot find dlsym function" >&5
echo "$as_me: error: Cannot find dlsym function" >&2;}
   { (exit 1); exit 1; }; }
fi

		if test "$with_gpm" != yes ; then
			test -n "$verbose" && echo "	assuming soname for gpm is $with_gpm" 1>&6

echo "${as_me-configure}:4635: testing assuming soname for gpm is $with_gpm ..." 1>&5

			cf_cv_gpm_soname="$with_gpm"
		else

echo "$as_me:4640: checking for soname of gpm library" >&5
echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
if test "${cf_cv_gpm_soname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_gpm_soname=unknown
if test "$cross_compiling" != yes ; then
cat >conftest.$ac_ext <<CF_EOF
#include <gpm.h>
int main()
{
if (Gpm_Open(0,0)) Gpm_Close();
	${cf_cv_main_return:-return}(0);
}
CF_EOF
cf_save_LIBS="$LIBS"
	LIBS="-lgpm $LIBS"
	if { (eval echo "$as_me:4658: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4661: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
		if { (eval echo "$as_me:4663: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4666: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
			cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
			test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
		fi
	fi
rm -f conftest*
LIBS="$cf_save_LIBS"
fi

fi
echo "$as_me:4677: result: $cf_cv_gpm_soname" >&5
echo "${ECHO_T}$cf_cv_gpm_soname" >&6

		fi
		test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
#define LIBGPM_SONAME "$cf_cv_gpm_soname"
EOF

		SHLIB_LIST="-ldl $SHLIB_LIST"
	else
		SHLIB_LIST="-lgpm $SHLIB_LIST"
	fi
	cat >>confdefs.h <<\EOF
#define HAVE_LIBGPM 1
EOF

echo "$as_me:4693: checking for Gpm_Wgetch in -lgpm" >&5
echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgpm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 4701 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char Gpm_Wgetch ();
int
main ()
{
Gpm_Wgetch ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4720: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4723: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4726: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4729: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_gpm_Gpm_Wgetch=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_gpm_Gpm_Wgetch=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:4740: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then

echo "$as_me:4744: checking if GPM is weakly bound to curses library" >&5
echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
if test "${cf_cv_check_gpm_wgetch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_check_gpm_wgetch=unknown
if test "$cross_compiling" != yes ; then

cat >conftest.$ac_ext <<CF_EOF
#include <gpm.h>
int main()
{
	Gpm_Wgetch();
	${cf_cv_main_return:-return}(0);
}
CF_EOF

	cf_save_LIBS="$LIBS"
	# This only works if we can look at the symbol table.  If a shared
	# library is stripped for install, we cannot use that.  So we're forced
	# to rely on the static library, noting that some packagers may not
	# include it.
	LIBS="-static -lgpm -dynamic $LIBS"
	if { (eval echo "$as_me:4768: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4771: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
		if { (eval echo "$as_me:4773: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4776: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
			cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
			test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
			test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
		fi
	fi
	rm -f conftest*
	LIBS="$cf_save_LIBS"
fi

fi
echo "$as_me:4788: result: $cf_cv_check_gpm_wgetch" >&5
echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6

if test "$cf_cv_check_gpm_wgetch" != yes ; then
	{ echo "$as_me:4792: WARNING: GPM library is already linked with curses - read the FAQ" >&5
echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
fi

fi

fi

# not everyone has "test -c"
if test -c /dev/sysmouse 2>/dev/null ; then
echo "$as_me:4802: checking if you want to use sysmouse" >&5
echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6

# Check whether --with-sysmouse or --without-sysmouse was given.
if test "${with_sysmouse+set}" = set; then
  withval="$with_sysmouse"
  cf_with_sysmouse=$withval
else
  cf_with_sysmouse=maybe
fi;
	if test "$cf_with_sysmouse" != no ; then
	cat >conftest.$ac_ext <<_ACEOF
#line 4814 "configure"
#include "confdefs.h"

#include <osreldate.h>
#if (__FreeBSD_version >= 400017)
#include <sys/consio.h>
#include <sys/fbio.h>
#else
#include <machine/console.h>
#endif

int
main ()
{

	struct mouse_info the_mouse;
	ioctl(0, CONS_MOUSECTL, &the_mouse);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4837: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4840: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4843: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4846: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_with_sysmouse=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_with_sysmouse=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	fi
echo "$as_me:4856: result: $cf_with_sysmouse" >&5
echo "${ECHO_T}$cf_with_sysmouse" >&6
test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
#define USE_SYSMOUSE 1
EOF

fi

if test X"$CC_G_OPT" = X"" ; then
	CC_G_OPT='-g'
	test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
fi

if test X"$CXX_G_OPT" = X"" ; then
	CXX_G_OPT='-g'
	test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
fi

echo "$as_me:4874: checking for default loader flags" >&5
echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
case $DFT_LWR_MODEL in
libtool) LD_MODEL=''   ;;
normal)  LD_MODEL=''   ;;
debug)   LD_MODEL=$CC_G_OPT ;;
profile) LD_MODEL='-pg';;
shared)  LD_MODEL=''   ;;
esac
echo "$as_me:4883: result: $LD_MODEL" >&5
echo "${ECHO_T}$LD_MODEL" >&6

case $DFT_LWR_MODEL in
shared)

echo "$as_me:4889: checking if rpath option should be used" >&5
echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6

# Check whether --enable-rpath or --disable-rpath was given.
if test "${enable_rpath+set}" = set; then
  enableval="$enable_rpath"
  cf_cv_ld_rpath=$enableval
else
  cf_cv_ld_rpath=no
fi;
echo "$as_me:4899: result: $cf_cv_ld_rpath" >&5
echo "${ECHO_T}$cf_cv_ld_rpath" >&6

echo "$as_me:4902: checking if shared libraries should be relinked during install" >&5
echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6

# Check whether --enable-relink or --disable-relink was given.
if test "${enable_relink+set}" = set; then
  enableval="$enable_relink"
  cf_cv_do_relink=$enableval
else
  cf_cv_do_relink=yes
fi;
echo "$as_me:4912: result: $cf_cv_do_relink" >&5
echo "${ECHO_T}$cf_cv_do_relink" >&6
	;;
esac

	LOCAL_LDFLAGS=
	LOCAL_LDFLAGS2=
	LD_SHARED_OPTS=
	INSTALL_LIB="-m 644"

	cf_cv_do_symlinks=no

	echo "$as_me:4924: checking if release/abi version should be used for shared libs" >&5
echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6

# Check whether --with-shlib-version or --without-shlib-version was given.
if test "${with_shlib_version+set}" = set; then
  withval="$with_shlib_version"
  test -z "$withval" && withval=auto
	case $withval in #(vi
	yes) #(vi
		cf_cv_shlib_version=auto
		;;
	rel|abi|auto|no) #(vi
		cf_cv_shlib_version=$withval
		;;
	*)
		{ { echo "$as_me:4939: error: option value must be one of: rel, abi, auto or no" >&5
echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
   { (exit 1); exit 1; }; }
		;;
	esac

else
  cf_cv_shlib_version=auto
fi;
	echo "$as_me:4948: result: $cf_cv_shlib_version" >&5
echo "${ECHO_T}$cf_cv_shlib_version" >&6

	cf_cv_rm_so_locs=no

	# Some less-capable ports of gcc support only -fpic
	CC_SHARED_OPTS=
	if test "$GCC" = yes
	then
		echo "$as_me:4957: checking which $CC option to use" >&5
echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
		cf_save_CFLAGS="$CFLAGS"
		for CC_SHARED_OPTS in -fPIC -fpic ''
		do
			CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
			cat >conftest.$ac_ext <<_ACEOF
#line 4964 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
int x = 1
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4976: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4979: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4982: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4985: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		done
		echo "$as_me:4994: result: $CC_SHARED_OPTS" >&5
echo "${ECHO_T}$CC_SHARED_OPTS" >&6
		CFLAGS="$cf_save_CFLAGS"
	fi

	cf_cv_shlib_version_infix=no

	case $cf_cv_system_name in
	beos*)
		MK_SHARED_LIB='${CC} ${CFLAGS} -o $@@ -Xlinker -soname=`basename $@@` -nostart -e 0'
		;;
	cygwin*)
		CC_SHARED_OPTS=
		MK_SHARED_LIB='sh ../mk_shared_lib.sh $@@ ${CC} ${CFLAGS}'
		cf_cv_shlib_version=cygdll
		cf_cv_shlib_version_infix=cygdll
		cat >mk_shared_lib.sh <<-CF_EOF
		#!/bin/sh
		SHARED_LIB=\$1
		IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
		shift
		cat <<-EOF
		Linking shared library
		** SHARED_LIB \$SHARED_LIB
		** IMPORT_LIB \$IMPORT_LIB
EOF
		exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
CF_EOF
		chmod +x mk_shared_lib.sh
		;;
	darwin*)
		EXTRA_CFLAGS="-no-cpp-precomp"
		CC_SHARED_OPTS="-dynamic"
		MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@@'
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
		cf_cv_shlib_version_infix=yes
		echo "$as_me:5030: checking if ld -search_paths_first works" >&5
echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

			cf_save_LDFLAGS=$LDFLAGS
			LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
			cat >conftest.$ac_ext <<_ACEOF
#line 5039 "configure"
#include "confdefs.h"

int
main ()
{
int i;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5051: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5054: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5057: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5060: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_ldflags_search_paths_first=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_ldflags_search_paths_first=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
				LDFLAGS=$cf_save_LDFLAGS
fi
echo "$as_me:5071: result: $cf_cv_ldflags_search_paths_first" >&5
echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
		if test $cf_cv_ldflags_search_paths_first = yes; then
			LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
		fi
		;;
	hpux*)
		# (tested with gcc 2.7.2 -- I don't have c89)
		if test "$GCC" = yes; then
			LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
		else
			CC_SHARED_OPTS='+Z'
			LD_SHARED_OPTS='-Wl,+b,${libdir}'
		fi
		MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@@'
		# HP-UX shared libraries must be executable, and should be
		# readonly to exploit a quirk in the memory manager.
		INSTALL_LIB="-m 555"
		;;
	irix*)
		if test "$cf_cv_ld_rpath" = yes ; then
			if test "$GCC" = yes; then
				cf_ld_rpath_opt="-Wl,-rpath,"
				EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
			else
				cf_ld_rpath_opt="-rpath "
				EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
			fi
		fi
		# tested with IRIX 5.2 and 'cc'.
		if test "$GCC" != yes; then
			CC_SHARED_OPTS='-KPIC'
			MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@@` -o $@@'
		else
			MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@@` -o $@@'
		fi
		cf_cv_rm_so_locs=yes
		;;
	linux*|gnu*|k*bsd*-gnu)
		if test "$DFT_LWR_MODEL" = "shared" ; then
			LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
		fi
		if test "$cf_cv_ld_rpath" = yes ; then
			cf_ld_rpath_opt="-Wl,-rpath,"
			EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
		fi

	test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
	if test "$cf_cv_shlib_version" = rel; then
		cf_cv_shared_soname='`basename $@@ .${REL_VERSION}`.${ABI_VERSION}'
	else
		cf_cv_shared_soname='`basename $@@`'
	fi

		MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@@'
		;;
	openbsd[2-9].*)
		if test "$DFT_LWR_MODEL" = "shared" ; then
			LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
		fi
		if test "$cf_cv_ld_rpath" = yes ; then
			cf_ld_rpath_opt="-Wl,-rpath,"
			EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
		fi
		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"

	test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
	if test "$cf_cv_shlib_version" = rel; then
		cf_cv_shared_soname='`basename $@@ .${REL_VERSION}`.${ABI_VERSION}'
	else
		cf_cv_shared_soname='`basename $@@`'
	fi

		MK_SHARED_LIB='${CC} ${CFLAGS} -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@@'
		;;
	nto-qnx*|openbsd*|freebsd[12].*)
		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
		MK_SHARED_LIB='${LD} -Bshareable -o $@@'
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
		;;
	freebsd*)
		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
		if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
			LOCAL_LDFLAGS="-rpath \$(LOCAL_LIBDIR)"
			LOCAL_LDFLAGS2="-rpath \${libdir} $LOCAL_LDFLAGS"
			cf_ld_rpath_opt="-rpath "
			EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
		fi

	test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
	if test "$cf_cv_shlib_version" = rel; then
		cf_cv_shared_soname='`basename $@@ .${REL_VERSION}`.${ABI_VERSION}'
	else
		cf_cv_shared_soname='`basename $@@`'
	fi

		MK_SHARED_LIB='${LD} -Bshareable -soname=`basename $@@` -o $@@'
		;;
	netbsd*)
		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
		test "$cf_cv_ld_rpath" = yes && cf_ld_rpath_opt="-Wl,-rpath,"
		if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
			LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
			EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
			if test "$cf_cv_shlib_version" = auto; then
			if test -f /usr/libexec/ld.elf_so; then
				cf_cv_shlib_version=abi
			else
				cf_cv_shlib_version=rel
			fi
			fi

	test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
	if test "$cf_cv_shlib_version" = rel; then
		cf_cv_shared_soname='`basename $@@ .${REL_VERSION}`.${ABI_VERSION}'
	else
		cf_cv_shared_soname='`basename $@@`'
	fi

			MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@@'
		else
			MK_SHARED_LIB='${LD} -Bshareable -o $@@'
		fi
		;;
	osf*|mls+*)
		# tested with OSF/1 V3.2 and 'cc'
		# tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
		# link with shared libs).
		MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@@`'
		case $host_os in
		osf4*)
			MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
			;;
		esac
		MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@@'
		if test "$DFT_LWR_MODEL" = "shared" ; then
			LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
		fi
		if test "$cf_cv_ld_rpath" = yes ; then
			cf_ld_rpath_opt="-rpath"
			# EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
		fi
		cf_cv_rm_so_locs=yes
		;;
	sco3.2v5*)  # (also uw2* and UW7) hops 13-Apr-98
		# tested with osr5.0.5
		if test "$GCC" != yes; then
			CC_SHARED_OPTS='-belf -KPIC'
		fi
		MK_SHARED_LIB='${LD} -dy -G -h `basename $@@ .${REL_VERSION}`.${ABI_VERSION} -o $@@'
		if test "$cf_cv_ld_rpath" = yes ; then
			# only way is to set LD_RUN_PATH but no switch for it
			RUN_PATH=$libdir
		fi
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
		LINK_PROGS='LD_RUN_PATH=${libdir}'
		LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
		;;
	sunos4*)
		# tested with SunOS 4.1.1 and gcc 2.7.0
		if test "$GCC" != yes; then
			CC_SHARED_OPTS='-KPIC'
		fi
		MK_SHARED_LIB='${LD} -assert pure-text -o $@@'
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
		;;
	solaris2*)
		# tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
		# tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
		if test "$DFT_LWR_MODEL" = "shared" ; then
			LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
		fi
		if test "$cf_cv_ld_rpath" = yes ; then
			cf_ld_rpath_opt="-R"
			EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
		fi

	test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
	if test "$cf_cv_shlib_version" = rel; then
		cf_cv_shared_soname='`basename $@@ .${REL_VERSION}`.${ABI_VERSION}'
	else
		cf_cv_shared_soname='`basename $@@`'
	fi

		if test "$GCC" != yes; then
			CC_SHARED_OPTS='-xcode=pic32'
			MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@@'
		else
			MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@@'
		fi
		;;
	sysv5uw7*|unix_sv*)
		# tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
		if test "$GCC" != yes; then
			CC_SHARED_OPTS='-KPIC'
		fi
		MK_SHARED_LIB='${LD} -d y -G -o $@@'
		;;
	*)
		CC_SHARED_OPTS='unknown'
		MK_SHARED_LIB='echo unknown'
		;;
	esac

	# This works if the last tokens in $MK_SHARED_LIB are the -o target.
	case "$cf_cv_shlib_version" in #(vi
	rel|abi)
		case "$MK_SHARED_LIB" in #(vi
		*'-o $@@')
			test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
			;;
		*)
			{ echo "$as_me:5288: WARNING: ignored --with-shlib-version" >&5
echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
			;;
		esac
		;;
	esac

	if test -n "$cf_ld_rpath_opt" ; then
		echo "$as_me:5296: checking if we need a space after rpath option" >&5
echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
		cf_save_LIBS="$LIBS"
		LIBS="$LIBS ${cf_ld_rpath_opt}$libdir"
		cat >conftest.$ac_ext <<_ACEOF
#line 5301 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5313: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5316: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5319: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5322: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_rpath_space=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_rpath_space=yes
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
		LIBS="$cf_save_LIBS"
		echo "$as_me:5332: result: $cf_rpath_space" >&5
echo "${ECHO_T}$cf_rpath_space" >&6
		test "$cf_rpath_space" = yes && cf_ld_rpath_opt="$cf_ld_rpath_opt "
		MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${libdir}"
	fi

if test "$CC_SHARED_OPTS" = "unknown"; then
	for model in $cf_list_models; do
		if test "$model" = "shared"; then
			{ { echo "$as_me:5341: error: Shared libraries are not supported in this version" >&5
echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
   { (exit 1); exit 1; }; }
		fi
	done
fi

###############################################################################

###	use option --disable-overwrite to leave out the link to -lcurses
echo "$as_me:5351: checking if you wish to install ncurses overwriting curses" >&5
echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6

# Check whether --enable-overwrite or --disable-overwrite was given.
if test "${enable_overwrite+set}" = set; then
  enableval="$enable_overwrite"
  with_overwrite=$enableval
else
  if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
fi;
echo "$as_me:5361: result: $with_overwrite" >&5
echo "${ECHO_T}$with_overwrite" >&6

echo "$as_me:5364: checking if external terminfo-database is used" >&5
echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6

# Check whether --enable-database or --disable-database was given.
if test "${enable_database+set}" = set; then
  enableval="$enable_database"
  use_database=$enableval
else
  use_database=yes
fi;
echo "$as_me:5374: result: $use_database" >&5
echo "${ECHO_T}$use_database" >&6

case $host_os in #(vi
os2*) #(vi
	TERMINFO_SRC='${top_srcdir}/misc/emx.src'
	;;
*) #(vi
	TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
	;;
esac

	case $cf_cv_system_name in
	os2*)	PATHSEP=';'  ;;
	*)	PATHSEP=':'  ;;
	esac

if test "$use_database" != no ; then
	cat >>confdefs.h <<\EOF
#define USE_DATABASE 1
EOF

	echo "$as_me:5396: checking which terminfo source-file will be installed" >&5
echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6

# Check whether --enable-database or --disable-database was given.
if test "${enable_database+set}" = set; then
  enableval="$enable_database"
  TERMINFO_SRC=$withval
fi;
	echo "$as_me:5404: result: $TERMINFO_SRC" >&5
echo "${ECHO_T}$TERMINFO_SRC" >&6

	echo "$as_me:5407: checking whether to use hashed database instead of directory/tree" >&5
echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6

# Check whether --with-hashed-db or --without-hashed-db was given.
if test "${with_hashed_db+set}" = set; then
  withval="$with_hashed_db"

else
  with_hashed_db=no
fi;
	echo "$as_me:5417: result: $with_hashed_db" >&5
echo "${ECHO_T}$with_hashed_db" >&6
else
	with_hashed_db=no
fi

echo "$as_me:5423: checking for list of fallback descriptions" >&5
echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6

# Check whether --with-fallbacks or --without-fallbacks was given.
if test "${with_fallbacks+set}" = set; then
  withval="$with_fallbacks"
  with_fallback=$withval
else
  with_fallback=
fi;
echo "$as_me:5433: result: $with_fallback" >&5
echo "${ECHO_T}$with_fallback" >&6
FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`

echo "$as_me:5437: checking if you want modern xterm or antique" >&5
echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6

# Check whether --with-xterm-new or --without-xterm-new was given.
if test "${with_xterm_new+set}" = set; then
  withval="$with_xterm_new"
  with_xterm_new=$withval
else
  with_xterm_new=yes
fi;
case $with_xterm_new in
no)	with_xterm_new=xterm-old;;
*)	with_xterm_new=xterm-new;;
esac
echo "$as_me:5451: result: $with_xterm_new" >&5
echo "${ECHO_T}$with_xterm_new" >&6
WHICH_XTERM=$with_xterm_new

MAKE_TERMINFO=
if test "$use_database" = no ; then
	TERMINFO="${datadir}/terminfo"
	MAKE_TERMINFO="#"
else

echo "$as_me:5461: checking for list of terminfo directories" >&5
echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6

# Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
if test "${with_terminfo_dirs+set}" = set; then
  withval="$with_terminfo_dirs"

else
  withval=${TERMINFO_DIRS-${datadir}/terminfo}
fi;
IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
cf_dst_path=
for cf_src_path in $withval
do

if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
fi

case ".$cf_src_path" in #(vi
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
  ;;
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  ;;
.\${*prefix}*) #(vi
  eval cf_src_path="$cf_src_path"
  case ".$cf_src_path" in #(vi
  .NONE/*)
    cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
    ;;
  esac
  ;; #(vi
.no|.NONE/*)
  cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
  ;;
*)
  { { echo "$as_me:5501: error: expected a pathname, not \"$cf_src_path\"" >&5
echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
   { (exit 1); exit 1; }; }
  ;;
esac

  test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
  cf_dst_path="${cf_dst_path}${cf_src_path}"
done
IFS="$ac_save_ifs"

eval 'TERMINFO_DIRS="$cf_dst_path"'

echo "$as_me:5514: result: $TERMINFO_DIRS" >&5
echo "${ECHO_T}$TERMINFO_DIRS" >&6
test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
#define TERMINFO_DIRS "$TERMINFO_DIRS"
EOF

echo "$as_me:5520: checking for default terminfo directory" >&5
echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6

# Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
if test "${with_default_terminfo_dir+set}" = set; then
  withval="$with_default_terminfo_dir"

else
  withval="${TERMINFO-${datadir}/terminfo}"
fi; if test -n "${datadir}/terminfo" ; then

if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
fi

case ".$withval" in #(vi
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
  ;;
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  ;;
.\${*prefix}*) #(vi
  eval withval="$withval"
  case ".$withval" in #(vi
  .NONE/*)
    withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
    ;;
  esac
  ;; #(vi
.no|.NONE/*)
  withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
  ;;
*)
  { { echo "$as_me:5556: error: expected a pathname, not \"$withval\"" >&5
echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
   { (exit 1); exit 1; }; }
  ;;
esac

fi
TERMINFO="$withval"

echo "$as_me:5565: result: $TERMINFO" >&5
echo "${ECHO_T}$TERMINFO" >&6
cat >>confdefs.h <<EOF
#define TERMINFO "$TERMINFO"
EOF

fi

###	use option --disable-big-core to make tic run on small machines
###	We need 4Mb, check if we can allocate 50% more than that.
echo "$as_me:5575: checking if big-core option selected" >&5
echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6

# Check whether --enable-big-core or --disable-big-core was given.
if test "${enable_big_core+set}" = set; then
  enableval="$enable_big_core"
  with_big_core=$enableval
else
  if test "$cross_compiling" = yes; then
  with_big_core=no
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5587 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <string.h>
int main() {
	unsigned long n = 6000000L;
	char *s = malloc(n);
	if (s != 0)
		s[0] = s[n-1] = 0;
	${cf_cv_main_return:-return}(s == 0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:5601: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5604: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:5606: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5609: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  with_big_core=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
with_big_core=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi;
echo "$as_me:5621: result: $with_big_core" >&5
echo "${ECHO_T}$with_big_core" >&6
test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
#define HAVE_BIG_CORE 1
EOF

### ISO C only guarantees 512-char strings, we have tables which load faster
### when constructed using "big" strings.  More than the C compiler, the awk
### program is a limit on most vendor UNIX systems.  Check that we can build.
echo "$as_me:5630: checking if big-strings option selected" >&5
echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6

# Check whether --enable-big-strings or --disable-big-strings was given.
if test "${enable_big_strings+set}" = set; then
  enableval="$enable_big_strings"
  with_big_strings=$enableval
else

    case x$AWK in #(vi
    x)
        eval with_big_strings=no
        ;;
    *) #(vi
        if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' \
            | $AWK '{ printf "%d\n", length($0); }' | $AWK 'BEGIN { eqls=0; recs=0; } { recs++; if ($0 == 12000) eqls++; } END { if (recs != 1 || eqls != 1) exit 1; }' 2>/dev/null >/dev/null ) ; then
            eval with_big_strings=yes
        else
            eval with_big_strings=no
        fi
        ;;
    esac

fi;
echo "$as_me:5654: result: $with_big_strings" >&5
echo "${ECHO_T}$with_big_strings" >&6

USE_BIG_STRINGS=0
test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1

###	use option --enable-termcap to compile in the termcap fallback support
echo "$as_me:5661: checking if you want termcap-fallback support" >&5
echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6

# Check whether --enable-termcap or --disable-termcap was given.
if test "${enable_termcap+set}" = set; then
  enableval="$enable_termcap"
  with_termcap=$enableval
else
  with_termcap=no
fi;
echo "$as_me:5671: result: $with_termcap" >&5
echo "${ECHO_T}$with_termcap" >&6

if test "$with_termcap" != "yes" ; then
	if test "$use_database" = no ; then
		if test -z "$with_fallback" ; then
			{ { echo "$as_me:5677: error: You have disabled the database w/o specifying fallbacks" >&5
echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
   { (exit 1); exit 1; }; }
		fi
	fi
	cat >>confdefs.h <<\EOF
#define PURE_TERMINFO 1
EOF

else

if test "$with_ticlib" != no ; then
	{ { echo "$as_me:5689: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
   { (exit 1); exit 1; }; }
fi

cat >>confdefs.h <<\EOF
#define USE_TERMCAP 1
EOF

echo "$as_me:5698: checking for list of termcap files" >&5
echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6

# Check whether --with-termpath or --without-termpath was given.
if test "${with_termpath+set}" = set; then
  withval="$with_termpath"

else
  withval=${TERMPATH-/etc/termcap:/usr/share/misc/termcap}
fi;
IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
cf_dst_path=
for cf_src_path in $withval
do

if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
fi

case ".$cf_src_path" in #(vi
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
  ;;
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  ;;
.\${*prefix}*) #(vi
  eval cf_src_path="$cf_src_path"
  case ".$cf_src_path" in #(vi
  .NONE/*)
    cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
    ;;
  esac
  ;; #(vi
.no|.NONE/*)
  cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
  ;;
*)
  { { echo "$as_me:5738: error: expected a pathname, not \"$cf_src_path\"" >&5
echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
   { (exit 1); exit 1; }; }
  ;;
esac

  test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
  cf_dst_path="${cf_dst_path}${cf_src_path}"
done
IFS="$ac_save_ifs"

eval 'TERMPATH="$cf_dst_path"'

echo "$as_me:5751: result: $TERMPATH" >&5
echo "${ECHO_T}$TERMPATH" >&6
test -n "$TERMPATH" && cat >>confdefs.h <<EOF
#define TERMPATH "$TERMPATH"
EOF

###	use option --enable-getcap to use a hacked getcap for reading termcaps
echo "$as_me:5758: checking if fast termcap-loader is needed" >&5
echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6

# Check whether --enable-getcap or --disable-getcap was given.
if test "${enable_getcap+set}" = set; then
  enableval="$enable_getcap"
  with_getcap=$enableval
else
  with_getcap=no
fi;
echo "$as_me:5768: result: $with_getcap" >&5
echo "${ECHO_T}$with_getcap" >&6
test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
#define USE_GETCAP 1
EOF

echo "$as_me:5774: checking if translated termcaps will be cached in ~/.terminfo" >&5
echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6

# Check whether --enable-getcap-cache or --disable-getcap-cache was given.
if test "${enable_getcap_cache+set}" = set; then
  enableval="$enable_getcap_cache"
  with_getcap_cache=$enableval
else
  with_getcap_cache=no
fi;
echo "$as_me:5784: result: $with_getcap_cache" >&5
echo "${ECHO_T}$with_getcap_cache" >&6
test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
#define USE_GETCAP_CACHE 1
EOF

fi

###   Use option --disable-home-terminfo to completely remove ~/.terminfo
echo "$as_me:5793: checking if ~/.terminfo is wanted" >&5
echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6

# Check whether --enable-home-terminfo or --disable-home-terminfo was given.
if test "${enable_home_terminfo+set}" = set; then
  enableval="$enable_home_terminfo"
  with_home_terminfo=$enableval
else
  with_home_terminfo=yes
fi;
echo "$as_me:5803: result: $with_home_terminfo" >&5
echo "${ECHO_T}$with_home_terminfo" >&6
test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
#define USE_HOME_TERMINFO 1
EOF

echo "$as_me:5809: checking if you want to use restricted environment when running as root" >&5
echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6

# Check whether --enable-root-environ or --disable-root-environ was given.
if test "${enable_root_environ+set}" = set; then
  enableval="$enable_root_environ"
  with_root_environ=$enableval
else
  with_root_environ=yes
fi;
echo "$as_me:5819: result: $with_root_environ" >&5
echo "${ECHO_T}$with_root_environ" >&6
test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
#define USE_ROOT_ENVIRON 1
EOF

###   Use option --enable-symlinks to make tic use symlinks, not hard links
###   to reduce storage requirements for the terminfo database.

for ac_func in \
	remove \
	unlink
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:5833: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5839 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5870: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5873: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5876: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5879: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:5889: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

if test "$cross_compiling" = yes ; then

for ac_func in \
		link \
		symlink
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:5906: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5912 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5943: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5946: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5949: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5952: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:5962: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

else
	echo "$as_me:5973: checking if link/symlink functions work" >&5
echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
if test "${cf_cv_link_funcs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

		cf_cv_link_funcs=
		for cf_func in link symlink ; do
			if test "$cross_compiling" = yes; then

			eval 'ac_cv_func_'$cf_func'=error'
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5986 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
int main()
{
	int fail = 0;
	char *src = "config.log";
	char *dst = "conftest.chk";
	struct stat src_sb;
	struct stat dst_sb;

	stat(src, &src_sb);
	fail = ($cf_func("config.log", "conftest.chk") < 0)
	    || (stat(dst, &dst_sb) < 0)
	    || (dst_sb.st_mtime != src_sb.st_mtime);
#ifdef HAVE_UNLINK
	unlink(dst);
#else
	remove(dst);
#endif
	${cf_cv_main_return:-return} (fail);
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:6016: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6019: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:6021: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6024: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

			cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
			eval 'ac_cv_func_'$cf_func'=yes'
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

			eval 'ac_cv_func_'$cf_func'=no'
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
		done
		test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no

fi
echo "$as_me:6042: result: $cf_cv_link_funcs" >&5
echo "${ECHO_T}$cf_cv_link_funcs" >&6
	test "$ac_cv_func_link"    = yes && cat >>confdefs.h <<\EOF
#define HAVE_LINK 1
EOF

	test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
#define HAVE_SYMLINK 1
EOF

fi

with_links=no
with_symlinks=no

# soft links (symbolic links) are useful for some systems where hard links do
# not work, or to make it simpler to copy terminfo trees around.
if test "$ac_cv_func_symlink" = yes ; then
    echo "$as_me:6060: checking if tic should use symbolic links" >&5
echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6

# Check whether --enable-symlinks or --disable-symlinks was given.
if test "${enable_symlinks+set}" = set; then
  enableval="$enable_symlinks"
  with_symlinks=$enableval
else
  with_symlinks=no
fi;
    echo "$as_me:6070: result: $with_symlinks" >&5
echo "${ECHO_T}$with_symlinks" >&6
fi

# If we have hard links and did not choose to use soft links instead, there is
# no reason to make this choice optional - use the hard links.
if test "$with_symlinks" = no ; then
    echo "$as_me:6077: checking if tic should use hard links" >&5
echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
    if test "$ac_cv_func_link" = yes ; then
	with_links=yes
    else
	with_links=no
    fi
    echo "$as_me:6084: result: $with_links" >&5
echo "${ECHO_T}$with_links" >&6
fi

test "$with_links" = yes && cat >>confdefs.h <<\EOF
#define USE_LINKS 1
EOF

test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
#define USE_SYMLINKS 1
EOF

###   use option --enable-broken-linker to force on use of broken-linker support
echo "$as_me:6097: checking if you want broken-linker support code" >&5
echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6

# Check whether --enable-broken_linker or --disable-broken_linker was given.
if test "${enable_broken_linker+set}" = set; then
  enableval="$enable_broken_linker"
  with_broken_linker=$enableval
else
  with_broken_linker=${BROKEN_LINKER-no}
fi;
echo "$as_me:6107: result: $with_broken_linker" >&5
echo "${ECHO_T}$with_broken_linker" >&6

BROKEN_LINKER=0
if test "$with_broken_linker" = yes ; then
	cat >>confdefs.h <<\EOF
#define BROKEN_LINKER 1
EOF

	BROKEN_LINKER=1
elif test "$DFT_LWR_MODEL" = shared ; then
	case $cf_cv_system_name in #(vi
	cygwin*)
		cat >>confdefs.h <<\EOF
#define BROKEN_LINKER 1
EOF

		BROKEN_LINKER=1
		test -n "$verbose" && echo "	cygwin linker is broken anyway" 1>&6

echo "${as_me-configure}:6127: testing cygwin linker is broken anyway ..." 1>&5

		;;
	esac
fi

###   use option --enable-bsdpad to have tputs process BSD-style prefix padding
echo "$as_me:6134: checking if tputs should process BSD-style prefix padding" >&5
echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6

# Check whether --enable-bsdpad or --disable-bsdpad was given.
if test "${enable_bsdpad+set}" = set; then
  enableval="$enable_bsdpad"
  with_bsdpad=$enableval
else
  with_bsdpad=no
fi;
echo "$as_me:6144: result: $with_bsdpad" >&5
echo "${ECHO_T}$with_bsdpad" >&6
test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
#define BSD_TPUTS 1
EOF

###   use option --enable-widec to turn on use of wide-character support
NCURSES_CH_T=chtype
NCURSES_LIBUTF8=0

NEED_WCHAR_H=0
NCURSES_MBSTATE_T=0
NCURSES_WCHAR_T=0
NCURSES_WINT_T=0

# Check to define _XOPEN_SOURCE "automatically"

echo "$as_me:6161: checking if $CC -U and -D options work together" >&5
echo $ECHO_N "checking if $CC -U and -D options work together... $ECHO_C" >&6
if test "${cf_cv_cc_u_d_options+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cf_save_CPPFLAGS="$CPPFLAGS"
	CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS"
	cat >conftest.$ac_ext <<_ACEOF
#line 6170 "configure"
#include "confdefs.h"

int
main ()
{

#ifndef U_D_OPTIONS
make an undefined-error
#endif
#ifdef  D_U_OPTIONS
make a defined-error
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6189: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6192: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6195: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6198: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

	cf_cv_cc_u_d_options=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

	cf_cv_cc_u_d_options=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	CPPFLAGS="$cf_save_CPPFLAGS"

fi
echo "$as_me:6212: result: $cf_cv_cc_u_d_options" >&5
echo "${ECHO_T}$cf_cv_cc_u_d_options" >&6

cf_XOPEN_SOURCE=500
cf_POSIX_C_SOURCE=199506L

case $host_os in #(vi
aix[45]*) #(vi
	CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE"
	;;
freebsd*|dragonfly*) #(vi
	# 5.x headers associate
	#	_XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
	#	_XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
	cf_POSIX_C_SOURCE=200112L
	cf_XOPEN_SOURCE=600
	CPPFLAGS="$CPPFLAGS -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
	;;
hpux*) #(vi
	CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
	;;
irix[56].*) #(vi
	CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
	;;
linux*|gnu*|k*bsd*-gnu) #(vi

echo "$as_me:6238: checking if we must define _GNU_SOURCE" >&5
echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
if test "${cf_cv_gnu_source+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 6245 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifndef _XOPEN_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6260: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6263: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6266: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6269: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_gnu_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_save="$CPPFLAGS"
	 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
	 cat >conftest.$ac_ext <<_ACEOF
#line 6278 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifdef _XOPEN_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6293: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6296: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6299: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6302: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_gnu_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_gnu_source=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	CPPFLAGS="$cf_save"

fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:6317: result: $cf_cv_gnu_source" >&5
echo "${ECHO_T}$cf_cv_gnu_source" >&6
test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"

	;;
mirbsd*) #(vi
	# setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
	;;
netbsd*) #(vi
	# setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
	;;
openbsd*) #(vi
	# setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
	;;
osf[45]*) #(vi
	CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE"
	;;
nto-qnx*) #(vi
	CPPFLAGS="$CPPFLAGS -D_QNX_SOURCE"
	;;
sco*) #(vi
	# setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
	;;
solaris*) #(vi
	CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
	;;
*)
	echo "$as_me:6344: checking if we should define _XOPEN_SOURCE" >&5
echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
if test "${cf_cv_xopen_source+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 6351 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifndef _XOPEN_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6366: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6369: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6372: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6375: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_xopen_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_save="$CPPFLAGS"
	 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
	 cat >conftest.$ac_ext <<_ACEOF
#line 6384 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifdef _XOPEN_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6399: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6402: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6405: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6408: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_xopen_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_xopen_source=$cf_XOPEN_SOURCE
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	CPPFLAGS="$cf_save"

fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:6423: result: $cf_cv_xopen_source" >&5
echo "${ECHO_T}$cf_cv_xopen_source" >&6
	if test "$cf_cv_xopen_source" != no ; then

# remove _XOPEN_SOURCE symbol from $CFLAGS
CFLAGS=`echo "$CFLAGS" | \
	sed	-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
		-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?$//g'`

# remove _XOPEN_SOURCE symbol from $CPPFLAGS
CPPFLAGS=`echo "$CPPFLAGS" | \
	sed	-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
		-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?$//g'`

		test "$cf_cv_cc_u_d_options" = yes && \
			CPPFLAGS="$CPPFLAGS -U_XOPEN_SOURCE"
		CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_cv_xopen_source"
	fi

cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE

cf_save_CFLAGS="$CFLAGS"
cf_save_CPPFLAGS="$CPPFLAGS"

# remove _POSIX_C_SOURCE symbol from $cf_save_CFLAGS
cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
	sed	-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
		-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?$//g'`

# remove _POSIX_C_SOURCE symbol from $cf_save_CPPFLAGS
cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
	sed	-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
		-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?$//g'`

echo "$as_me:6457: checking if we should define _POSIX_C_SOURCE" >&5
echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
if test "${cf_cv_posix_c_source+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

echo "${as_me-configure}:6463: testing if the symbol is already defined go no further ..." 1>&5

	cat >conftest.$ac_ext <<_ACEOF
#line 6466 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifndef _POSIX_C_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6481: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6484: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6487: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6490: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_posix_c_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_want_posix_source=no
	 case .$cf_POSIX_C_SOURCE in #(vi
	 .[12]??*) #(vi
		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
		;;
	 .2) #(vi
		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
		cf_want_posix_source=yes
		;;
	 .*)
		cf_want_posix_source=yes
		;;
	 esac
	 if test "$cf_want_posix_source" = yes ; then
		cat >conftest.$ac_ext <<_ACEOF
#line 6511 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifdef _POSIX_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6526: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6529: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6532: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6535: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	 fi

echo "${as_me-configure}:6546: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5

	 CFLAGS="$cf_trim_CFLAGS"
	 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"

echo "${as_me-configure}:6551: testing if the second compile does not leave our definition intact error ..." 1>&5

	 cat >conftest.$ac_ext <<_ACEOF
#line 6554 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifndef _POSIX_C_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6569: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6572: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6575: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6578: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_posix_c_source=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	 CFLAGS="$cf_save_CFLAGS"
	 CPPFLAGS="$cf_save_CPPFLAGS"

fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:6594: result: $cf_cv_posix_c_source" >&5
echo "${ECHO_T}$cf_cv_posix_c_source" >&6

if test "$cf_cv_posix_c_source" != no ; then
	CFLAGS="$cf_trim_CFLAGS"
	CPPFLAGS="$cf_trim_CPPFLAGS"
	if test "$cf_cv_cc_u_d_options" = yes ; then
		cf_temp_posix_c_source=`echo "$cf_cv_posix_c_source" | \
				sed -e 's/-D/-U/g' -e 's/=[^ 	]*//g'`
		CPPFLAGS="$CPPFLAGS $cf_temp_posix_c_source"
	fi
	CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source"
fi

	;;
esac

# Work around breakage on OS X

echo "$as_me:6613: checking if SIGWINCH is defined" >&5
echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
if test "${cf_cv_define_sigwinch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 6620 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/signal.h>

int
main ()
{
int x = SIGWINCH
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6635: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6638: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6641: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6644: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_define_sigwinch=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 6651 "configure"
#include "confdefs.h"

#undef _XOPEN_SOURCE
#undef _POSIX_SOURCE
#undef _POSIX_C_SOURCE
#include <sys/types.h>
#include <sys/signal.h>

int
main ()
{
int x = SIGWINCH
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6669: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6672: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6675: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6678: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_define_sigwinch=maybe
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_define_sigwinch=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:6692: result: $cf_cv_define_sigwinch" >&5
echo "${ECHO_T}$cf_cv_define_sigwinch" >&6

if test "$cf_cv_define_sigwinch" = maybe ; then
echo "$as_me:6696: checking for actual SIGWINCH definition" >&5
echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
if test "${cf_cv_fixup_sigwinch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_fixup_sigwinch=unknown
cf_sigwinch=32
while test $cf_sigwinch != 1
do
	cat >conftest.$ac_ext <<_ACEOF
#line 6707 "configure"
#include "confdefs.h"

#undef _XOPEN_SOURCE
#undef _POSIX_SOURCE
#undef _POSIX_C_SOURCE
#include <sys/types.h>
#include <sys/signal.h>

int
main ()
{

#if SIGWINCH != $cf_sigwinch
make an error
#endif
int x = SIGWINCH
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6729: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6732: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6735: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6738: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_fixup_sigwinch=$cf_sigwinch
	 break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext

cf_sigwinch=`expr $cf_sigwinch - 1`
done

fi
echo "$as_me:6752: result: $cf_cv_fixup_sigwinch" >&5
echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6

	if test "$cf_cv_fixup_sigwinch" != unknown ; then
		CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
	fi
fi

# Checks for CODESET support.

  echo "$as_me:6762: checking for nl_langinfo and CODESET" >&5
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
if test "${am_cv_langinfo_codeset+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6768 "configure"
#include "confdefs.h"
#include <langinfo.h>
int
main ()
{
char* cs = nl_langinfo(CODESET);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6780: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6783: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6786: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6789: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  am_cv_langinfo_codeset=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
am_cv_langinfo_codeset=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi
echo "$as_me:6800: result: $am_cv_langinfo_codeset" >&5
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
  if test $am_cv_langinfo_codeset = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_LANGINFO_CODESET 1
EOF

  fi

# use these variables to work around a defect in gcc's fixincludes.
NCURSES_OK_WCHAR_T=
NCURSES_OK_WINT_T=

echo "$as_me:6814: checking if you want wide-character code" >&5
echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6

# Check whether --enable-widec or --disable-widec was given.
if test "${enable_widec+set}" = set; then
  enableval="$enable_widec"
  with_widec=$enableval
else
  with_widec=no
fi;
echo "$as_me:6824: result: $with_widec" >&5
echo "${ECHO_T}$with_widec" >&6
if test "$with_widec" = yes ; then
	LIB_SUFFIX="w${LIB_SUFFIX}"
	cat >>confdefs.h <<\EOF
#define USE_WIDEC_SUPPORT 1
EOF

echo "$as_me:6832: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line 6835 "configure"
#include "confdefs.h"
#include <sys/types.h>

int
main ()
{

#ifndef _XOPEN_SOURCE_EXTENDED
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6851: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6854: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6857: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6860: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_result=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_result=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:6869: result: $cf_result" >&5
echo "${ECHO_T}$cf_result" >&6

if test "$cf_result" = yes ; then
	CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
elif test "x" != "x" ; then
	echo "$as_me:6875: checking checking for compatible value versus " >&5
echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
	cat >conftest.$ac_ext <<_ACEOF
#line 6878 "configure"
#include "confdefs.h"
#include <sys/types.h>

int
main ()
{

#if _XOPEN_SOURCE_EXTENDED- < 0
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6894: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6897: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6900: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6903: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_result=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_result=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	echo "$as_me:6912: result: $cf_result" >&5
echo "${ECHO_T}$cf_result" >&6
	if test "$cf_result" = no ; then
		# perhaps we can override it - try...
		CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
	fi
fi

	# with_overwrite=no
	NCURSES_CH_T=cchar_t

for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:6926: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6932 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6963: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6966: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6969: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6972: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:6982: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

	if test "$ac_cv_func_putwc" != yes ; then

echo "$as_me:6994: checking for multibyte character support" >&5
echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
if test "${cf_cv_utf8_lib+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cf_save_LIBS="$LIBS"
	cat >conftest.$ac_ext <<_ACEOF
#line 7002 "configure"
#include "confdefs.h"

#include <stdlib.h>
int
main ()
{
putwc(0,0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7015: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7018: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7021: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7024: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_utf8_lib=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
# will be set on completion of the AC_TRY_LINK below.
cf_cv_header_path_utf8=
cf_cv_library_path_utf8=

echo "${as_me-configure}:7036: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5

cat >conftest.$ac_ext <<_ACEOF
#line 7039 "configure"
#include "confdefs.h"

#include <libutf8.h>
int
main ()
{
putwc(0,0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7052: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7055: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7058: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7061: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_find_linkage_utf8=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

    cf_cv_find_linkage_utf8=no

echo "${as_me-configure}:7070: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5

    cf_save_CPPFLAGS="$CPPFLAGS"
    cf_test_CPPFLAGS="$CPPFLAGS"

    cf_search=""

test "/usr" != "$prefix" && \
test -d "/usr" && \
(test $prefix = NONE || test -d $prefix) && {
	test -n "$verbose" && echo "	... testing for include-directories under /usr"
	test -d /usr/include &&          cf_search="$cf_search /usr/include"
	test -d /usr/include/utf8 &&       cf_search="$cf_search /usr/include/utf8"
	test -d /usr/include/utf8/include &&    cf_search="$cf_search /usr/include/utf8/include"
	test -d /usr/utf8/include &&       cf_search="$cf_search /usr/utf8/include"
	test -d /usr/utf8/include/utf8 &&    cf_search="$cf_search /usr/utf8/include/utf8"
}

test "$prefix" != "NONE" && \
test -d "$prefix" && \
 {
	test -n "$verbose" && echo "	... testing for include-directories under $prefix"
	test -d $prefix/include &&          cf_search="$cf_search $prefix/include"
	test -d $prefix/include/utf8 &&       cf_search="$cf_search $prefix/include/utf8"
	test -d $prefix/include/utf8/include &&    cf_search="$cf_search $prefix/include/utf8/include"
	test -d $prefix/utf8/include &&       cf_search="$cf_search $prefix/utf8/include"
	test -d $prefix/utf8/include/utf8 &&    cf_search="$cf_search $prefix/utf8/include/utf8"
}

test "/usr/local" != "$prefix" && \
test -d "/usr/local" && \
(test $prefix = NONE || test -d $prefix) && {
	test -n "$verbose" && echo "	... testing for include-directories under /usr/local"
	test -d /usr/local/include &&          cf_search="$cf_search /usr/local/include"
	test -d /usr/local/include/utf8 &&       cf_search="$cf_search /usr/local/include/utf8"
	test -d /usr/local/include/utf8/include &&    cf_search="$cf_search /usr/local/include/utf8/include"
	test -d /usr/local/utf8/include &&       cf_search="$cf_search /usr/local/utf8/include"
	test -d /usr/local/utf8/include/utf8 &&    cf_search="$cf_search /usr/local/utf8/include/utf8"
}

test "/opt" != "$prefix" && \
test -d "/opt" && \
(test $prefix = NONE || test -d $prefix) && {
	test -n "$verbose" && echo "	... testing for include-directories under /opt"
	test -d /opt/include &&          cf_search="$cf_search /opt/include"
	test -d /opt/include/utf8 &&       cf_search="$cf_search /opt/include/utf8"
	test -d /opt/include/utf8/include &&    cf_search="$cf_search /opt/include/utf8/include"
	test -d /opt/utf8/include &&       cf_search="$cf_search /opt/utf8/include"
	test -d /opt/utf8/include/utf8 &&    cf_search="$cf_search /opt/utf8/include/utf8"
}

test "$HOME" != "$prefix" && \
test -d "$HOME" && \
(test $prefix = NONE || test -d $prefix) && {
	test -n "$verbose" && echo "	... testing for include-directories under $HOME"
	test -d $HOME/include &&          cf_search="$cf_search $HOME/include"
	test -d $HOME/include/utf8 &&       cf_search="$cf_search $HOME/include/utf8"
	test -d $HOME/include/utf8/include &&    cf_search="$cf_search $HOME/include/utf8/include"
	test -d $HOME/utf8/include &&       cf_search="$cf_search $HOME/utf8/include"
	test -d $HOME/utf8/include/utf8 &&    cf_search="$cf_search $HOME/utf8/include/utf8"
}

test "$includedir" != NONE && \
test "$includedir" != "/usr/include" && \
test -d "$includedir" && {
	test -d $includedir &&    cf_search="$cf_search $includedir"
	test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
}

test "$oldincludedir" != NONE && \
test "$oldincludedir" != "/usr/include" && \
test -d "$oldincludedir" && {
	test -d $oldincludedir    && cf_search="$cf_search $oldincludedir"
	test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
}

    for cf_cv_header_path_utf8 in $cf_search
    do
      if test -d $cf_cv_header_path_utf8 ; then
        test -n "$verbose" && echo "	... testing $cf_cv_header_path_utf8" 1>&6

echo "${as_me-configure}:7151: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5

        CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
        cat >conftest.$ac_ext <<_ACEOF
#line 7155 "configure"
#include "confdefs.h"

#include <libutf8.h>
int
main ()
{
putwc(0,0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7168: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7171: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7174: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7177: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

            test -n "$verbose" && echo "	... found utf8 headers in $cf_cv_header_path_utf8" 1>&6

echo "${as_me-configure}:7182: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5

            cf_cv_find_linkage_utf8=maybe
            cf_test_CPPFLAGS="$CPPFLAGS"
            break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

            CPPFLAGS="$cf_save_CPPFLAGS"

fi
rm -f conftest.$ac_objext conftest.$ac_ext
      fi
    done

    if test "$cf_cv_find_linkage_utf8" = maybe ; then

echo "${as_me-configure}:7200: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5

      cf_save_LIBS="$LIBS"
      cf_save_LDFLAGS="$LDFLAGS"

      if test "$cf_cv_find_linkage_utf8" != yes ; then
        cf_search=""

test "/usr" != "$prefix" && \
test -d "/usr" && \
(test $prefix = NONE || test -d $prefix) && {
	test -n "$verbose" && echo "	... testing for lib-directories under /usr"
	test -d /usr/lib &&          cf_search="$cf_search /usr/lib"
	test -d /usr/lib/utf8 &&       cf_search="$cf_search /usr/lib/utf8"
	test -d /usr/lib/utf8/lib &&    cf_search="$cf_search /usr/lib/utf8/lib"
	test -d /usr/utf8/lib &&       cf_search="$cf_search /usr/utf8/lib"
	test -d /usr/utf8/lib/utf8 &&    cf_search="$cf_search /usr/utf8/lib/utf8"
}

test "$prefix" != "NONE" && \
test -d "$prefix" && \
 {
	test -n "$verbose" && echo "	... testing for lib-directories under $prefix"
	test -d $prefix/lib &&          cf_search="$cf_search $prefix/lib"
	test -d $prefix/lib/utf8 &&       cf_search="$cf_search $prefix/lib/utf8"
	test -d $prefix/lib/utf8/lib &&    cf_search="$cf_search $prefix/lib/utf8/lib"
	test -d $prefix/utf8/lib &&       cf_search="$cf_search $prefix/utf8/lib"
	test -d $prefix/utf8/lib/utf8 &&    cf_search="$cf_search $prefix/utf8/lib/utf8"
}

test "/usr/local" != "$prefix" && \
test -d "/usr/local" && \
(test $prefix = NONE || test -d $prefix) && {
	test -n "$verbose" && echo "	... testing for lib-directories under /usr/local"
	test -d /usr/local/lib &&          cf_search="$cf_search /usr/local/lib"
	test -d /usr/local/lib/utf8 &&       cf_search="$cf_search /usr/local/lib/utf8"
	test -d /usr/local/lib/utf8/lib &&    cf_search="$cf_search /usr/local/lib/utf8/lib"
	test -d /usr/local/utf8/lib &&       cf_search="$cf_search /usr/local/utf8/lib"
	test -d /usr/local/utf8/lib/utf8 &&    cf_search="$cf_search /usr/local/utf8/lib/utf8"
}

test "/opt" != "$prefix" && \
test -d "/opt" && \
(test $prefix = NONE || test -d $prefix) && {
	test -n "$verbose" && echo "	... testing for lib-directories under /opt"
	test -d /opt/lib &&          cf_search="$cf_search /opt/lib"
	test -d /opt/lib/utf8 &&       cf_search="$cf_search /opt/lib/utf8"
	test -d /opt/lib/utf8/lib &&    cf_search="$cf_search /opt/lib/utf8/lib"
	test -d /opt/utf8/lib &&       cf_search="$cf_search /opt/utf8/lib"
	test -d /opt/utf8/lib/utf8 &&    cf_search="$cf_search /opt/utf8/lib/utf8"
}

test "$HOME" != "$prefix" && \
test -d "$HOME" && \
(test $prefix = NONE || test -d $prefix) && {
	test -n "$verbose" && echo "	... testing for lib-directories under $HOME"
	test -d $HOME/lib &&          cf_search="$cf_search $HOME/lib"
	test -d $HOME/lib/utf8 &&       cf_search="$cf_search $HOME/lib/utf8"
	test -d $HOME/lib/utf8/lib &&    cf_search="$cf_search $HOME/lib/utf8/lib"
	test -d $HOME/utf8/lib &&       cf_search="$cf_search $HOME/utf8/lib"
	test -d $HOME/utf8/lib/utf8 &&    cf_search="$cf_search $HOME/utf8/lib/utf8"
}

        for cf_cv_library_path_utf8 in $cf_search
        do
          if test -d $cf_cv_library_path_utf8 ; then
            test -n "$verbose" && echo "	... testing $cf_cv_library_path_utf8" 1>&6

echo "${as_me-configure}:7268: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5

            CPPFLAGS="$cf_test_CPPFLAGS"
            LIBS="-lutf8  $cf_save_LIBS"
            LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
            cat >conftest.$ac_ext <<_ACEOF
#line 7274 "configure"
#include "confdefs.h"

#include <libutf8.h>
int
main ()
{
putwc(0,0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7287: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7290: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7293: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7296: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

                test -n "$verbose" && echo "	... found utf8 library in $cf_cv_library_path_utf8" 1>&6

echo "${as_me-configure}:7301: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5

                cf_cv_find_linkage_utf8=yes
                cf_cv_library_file_utf8="-lutf8"
                break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

                CPPFLAGS="$cf_save_CPPFLAGS"
                LIBS="$cf_save_LIBS"
                LDFLAGS="$cf_save_LDFLAGS"

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
          fi
        done
        LIBS="$cf_save_LIBS"
        CPPFLAGS="$cf_save_CPPFLAGS"
        LDFLAGS="$cf_save_LDFLAGS"
      fi

    else
      cf_cv_find_linkage_utf8=no
    fi

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

if test "$cf_cv_find_linkage_utf8" = yes ; then
cf_cv_utf8_lib=add-on
else
cf_cv_utf8_lib=no
fi

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7339: result: $cf_cv_utf8_lib" >&5
echo "${ECHO_T}$cf_cv_utf8_lib" >&6

# HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
# ncurses/ncursesw:
if test "$cf_cv_utf8_lib" = "add-on" ; then
	cat >>confdefs.h <<\EOF
#define HAVE_LIBUTF8_H 1
EOF

if test -n "$cf_cv_header_path_utf8" ; then
  for cf_add_incdir in $cf_cv_header_path_utf8
  do
	while test $cf_add_incdir != /usr/include
	do
	  if test -d $cf_add_incdir
	  then
		cf_have_incdir=no
		if test -n "$CFLAGS$CPPFLAGS" ; then
		  # a loop is needed to ensure we can add subdirs of existing dirs
		  for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
			if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
			  cf_have_incdir=yes; break
			fi
		  done
		fi

		if test "$cf_have_incdir" = no ; then
          if test "$cf_add_incdir" = /usr/local/include ; then
			if test "$GCC" = yes
			then
			  cf_save_CPPFLAGS=$CPPFLAGS
			  CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
			  cat >conftest.$ac_ext <<_ACEOF
#line 7373 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
printf("Hello")
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7385: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7388: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7391: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7394: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_have_incdir=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
			  CPPFLAGS=$cf_save_CPPFLAGS
			fi
		  fi
		fi

		if test "$cf_have_incdir" = no ; then
		  test -n "$verbose" && echo "	adding $cf_add_incdir to include-path" 1>&6

echo "${as_me-configure}:7411: testing adding $cf_add_incdir to include-path ..." 1>&5

		  CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"

          cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
          test "$cf_top_incdir" = "$cf_add_incdir" && break
          cf_add_incdir="$cf_top_incdir"
		else
		  break
		fi
	  fi
	done
  done
fi

if test -n "$cf_cv_library_path_utf8" ; then
  for cf_add_libdir in $cf_cv_library_path_utf8
  do
    if test $cf_add_libdir = /usr/lib ; then
      :
    elif test -d $cf_add_libdir
    then
      cf_have_libdir=no
      if test -n "$LDFLAGS$LIBS" ; then
        # a loop is needed to ensure we can add subdirs of existing dirs
        for cf_test_libdir in $LDFLAGS $LIBS ; do
          if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
            cf_have_libdir=yes; break
          fi
        done
      fi
      if test "$cf_have_libdir" = no ; then
        test -n "$verbose" && echo "	adding $cf_add_libdir to library-path" 1>&6

echo "${as_me-configure}:7445: testing adding $cf_add_libdir to library-path ..." 1>&5

        LDFLAGS="-L$cf_add_libdir $LDFLAGS"
      fi
    fi
  done
fi

	LIBS="-lutf8 $LIBS"
fi

		if test "$cf_cv_utf8_lib" != no ; then
			NCURSES_LIBUTF8=1
		fi
	fi

# This is needed on Tru64 5.0 to declare mbstate_t
echo "$as_me:7462: checking if we must include wchar.h to declare mbstate_t" >&5
echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
if test "${cf_cv_mbstate_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 7469 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
mbstate_t state
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7487: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7490: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7493: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7496: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_mbstate_t=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 7503 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <wchar.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
mbstate_t value
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7522: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7525: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7528: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7531: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_mbstate_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_mbstate_t=unknown
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:7543: result: $cf_cv_mbstate_t" >&5
echo "${ECHO_T}$cf_cv_mbstate_t" >&6

if test "$cf_cv_mbstate_t" = yes ; then
	cat >>confdefs.h <<\EOF
#define NEED_WCHAR_H 1
EOF

	NEED_WCHAR_H=1
fi

# if we do not find mbstate_t in either place, use substitution to provide a fallback.
if test "$cf_cv_mbstate_t" = unknown ; then
	NCURSES_MBSTATE_T=1
fi

# This is needed on Tru64 5.0 to declare wchar_t
echo "$as_me:7560: checking if we must include wchar.h to declare wchar_t" >&5
echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
if test "${cf_cv_wchar_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 7567 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
wchar_t state
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7585: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7588: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7591: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7594: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_wchar_t=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 7601 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <wchar.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
wchar_t value
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7620: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7623: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7626: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7629: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_wchar_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_wchar_t=unknown
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:7641: result: $cf_cv_wchar_t" >&5
echo "${ECHO_T}$cf_cv_wchar_t" >&6

if test "$cf_cv_wchar_t" = yes ; then
	cat >>confdefs.h <<\EOF
#define NEED_WCHAR_H 1
EOF

	NEED_WCHAR_H=1
fi

# if we do not find wchar_t in either place, use substitution to provide a fallback.
if test "$cf_cv_wchar_t" = unknown ; then
	NCURSES_WCHAR_T=1
fi

# if we find wchar_t in either place, use substitution to provide a fallback.
if test "$cf_cv_wchar_t" != unknown ; then
	NCURSES_OK_WCHAR_T=1
fi

# This is needed on Tru64 5.0 to declare wint_t
echo "$as_me:7663: checking if we must include wchar.h to declare wint_t" >&5
echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
if test "${cf_cv_wint_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 7670 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
wint_t state
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7688: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7691: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7694: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7697: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_wint_t=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 7704 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <wchar.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
wint_t value
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7723: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7726: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7729: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7732: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_wint_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_wint_t=unknown
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:7744: result: $cf_cv_wint_t" >&5
echo "${ECHO_T}$cf_cv_wint_t" >&6

if test "$cf_cv_wint_t" = yes ; then
	cat >>confdefs.h <<\EOF
#define NEED_WCHAR_H 1
EOF

	NEED_WCHAR_H=1
fi

# if we do not find wint_t in either place, use substitution to provide a fallback.
if test "$cf_cv_wint_t" = unknown ; then
	NCURSES_WINT_T=1
fi

# if we find wint_t in either place, use substitution to provide a fallback.
if test "$cf_cv_wint_t" != unknown ; then
	NCURSES_OK_WINT_T=1
fi

	if test "$NCURSES_MBSTATE_T" != 0; then
		cat >>confdefs.h <<\EOF
#define NEED_MBSTATE_T_DEF 1
EOF

	fi
fi

###   use option --disable-lp64 to allow long chtype
case $cf_cv_abi_version in
[345]*)
	default_with_lp64=no
	;;
*)
	default_with_lp64=yes
	;;
esac

echo "$as_me:7783: checking whether to enable _LP64 definition in curses.h" >&5
echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6

# Check whether --enable-lp64 or --disable-lp64 was given.
if test "${enable_lp64+set}" = set; then
  enableval="$enable_lp64"
  with_lp64=$enableval
else
  with_lp64=$default_with_lp64
fi;
echo "$as_me:7793: result: $with_lp64" >&5
echo "${ECHO_T}$with_lp64" >&6

if test "$with_lp64" = yes ; then
	cf_cv_enable_lp64=1
else
	cf_cv_enable_lp64=0
fi

# Check whether --enable-largefile or --disable-largefile was given.
if test "${enable_largefile+set}" = set; then
  enableval="$enable_largefile"

fi;
if test "$enable_largefile" != no; then

  echo "$as_me:7809: checking for special C compiler options needed for large files" >&5
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_largefile_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_sys_largefile_CC=no
     if test "$GCC" != yes; then
       ac_save_CC=$CC
       while :; do
     	 # IRIX 6.2 and later do not support large files by default,
     	 # so use the C compiler's -n32 option if that helps.
         cat >conftest.$ac_ext <<_ACEOF
#line 7821 "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:7841: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7844: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7847: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7850: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
     	 CC="$CC -n32"
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:7860: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7863: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7866: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7869: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_largefile_CC=' -n32'; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
         break
       done
       CC=$ac_save_CC
       rm -f conftest.$ac_ext
    fi
fi
echo "$as_me:7883: result: $ac_cv_sys_largefile_CC" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  if test "$ac_cv_sys_largefile_CC" != no; then
    CC=$CC$ac_cv_sys_largefile_CC
  fi

  echo "$as_me:7889: checking for _FILE_OFFSET_BITS value needed for large files" >&5
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_file_offset_bits=no
  cat >conftest.$ac_ext <<_ACEOF
#line 7897 "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7917: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7920: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7923: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7926: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 7935 "configure"
#include "confdefs.h"
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7956: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7959: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7962: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7965: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_file_offset_bits=64; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
fi
echo "$as_me:7976: result: $ac_cv_sys_file_offset_bits" >&5
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
if test "$ac_cv_sys_file_offset_bits" != no; then

cat >>confdefs.h <<EOF
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
EOF

fi
rm -f conftest*
  echo "$as_me:7986: checking for _LARGE_FILES value needed for large files" >&5
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_large_files+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_large_files=no
  cat >conftest.$ac_ext <<_ACEOF
#line 7994 "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8014: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8017: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8020: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8023: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 8032 "configure"
#include "confdefs.h"
#define _LARGE_FILES 1
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8053: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8056: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8059: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8062: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_large_files=1; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
fi
echo "$as_me:8073: result: $ac_cv_sys_large_files" >&5
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
if test "$ac_cv_sys_large_files" != no; then

cat >>confdefs.h <<EOF
#define _LARGE_FILES $ac_cv_sys_large_files
EOF

fi
rm -f conftest*
fi

    if test "$enable_largefile" != no ; then
	echo "$as_me:8086: checking for _LARGEFILE_SOURCE value needed for large files" >&5
echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_largefile_source+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_largefile_source=no
  cat >conftest.$ac_ext <<_ACEOF
#line 8094 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
return !fseeko;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8106: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8109: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8112: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8115: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 8124 "configure"
#include "confdefs.h"
#define _LARGEFILE_SOURCE 1
#include <stdio.h>
int
main ()
{
return !fseeko;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8137: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8140: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8143: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8146: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_largefile_source=1; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
fi
echo "$as_me:8157: result: $ac_cv_sys_largefile_source" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
if test "$ac_cv_sys_largefile_source" != no; then

cat >>confdefs.h <<EOF
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
EOF

fi
rm -f conftest*

# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
# in glibc 2.1.3, but that breaks too many other things.
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
echo "$as_me:8171: checking for fseeko" >&5
echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
if test "${ac_cv_func_fseeko+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 8177 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
return fseeko && fseeko (stdin, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8189: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8192: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:8195: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8198: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_fseeko=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_fseeko=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8208: result: $ac_cv_func_fseeko" >&5
echo "${ECHO_T}$ac_cv_func_fseeko" >&6
if test $ac_cv_func_fseeko = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_FSEEKO 1
EOF

fi

	# Normally we would collect these definitions in the config.h,
	# but (like _XOPEN_SOURCE), some environments rely on having these
	# defined before any of the system headers are included.  Another
	# case comes up with C++, e.g., on AIX the compiler compiles the
	# header files by themselves before looking at the body files it is
	# told to compile.  For ncurses, those header files do not include
	# the config.h
	test "$ac_cv_sys_large_files"      != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
	test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
	test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "

	echo "$as_me:8229: checking whether to use struct dirent64" >&5
echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
if test "${cf_cv_struct_dirent64+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

		cat >conftest.$ac_ext <<_ACEOF
#line 8236 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <dirent.h>

int
main ()
{

		/* if transitional largefile support is setup, this is true */
		extern struct dirent64 * readdir(DIR *);
		struct dirent64 *x = readdir((DIR *)0);
		struct dirent *y = readdir((DIR *)0);
		int z = x - y;

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8257: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8260: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8263: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8266: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_struct_dirent64=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_struct_dirent64=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:8277: result: $cf_cv_struct_dirent64" >&5
echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
	test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_DIRENT64 1
EOF

    fi

###   use option --disable-tparm-varargs to make tparm() conform to X/Open
echo "$as_me:8286: checking if you want tparm not to use X/Open fixed-parameter list" >&5
echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6

# Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
if test "${enable_tparm_varargs+set}" = set; then
  enableval="$enable_tparm_varargs"
  with_tparm_varargs=$enableval
else
  with_tparm_varargs=yes
fi;
echo "$as_me:8296: result: $with_tparm_varargs" >&5
echo "${ECHO_T}$with_tparm_varargs" >&6
NCURSES_TPARM_VARARGS=0
test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1

###   use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
if test "$with_ticlib" != no ; then
echo "$as_me:8303: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6

# Check whether --enable-tic-depends or --disable-tic-depends was given.
if test "${enable_tic_depends+set}" = set; then
  enableval="$enable_tic_depends"
  with_tic_depends=$enableval
else
  with_tic_depends=yes
fi;
echo "$as_me:8313: result: $with_tic_depends" >&5
echo "${ECHO_T}$with_tic_depends" >&6
else
	with_tic_depends=no
fi

###   use option --with-bool to override bool's type
echo "$as_me:8320: checking for type of bool" >&5
echo $ECHO_N "checking for type of bool... $ECHO_C" >&6

# Check whether --with-bool or --without-bool was given.
if test "${with_bool+set}" = set; then
  withval="$with_bool"
  NCURSES_BOOL="$withval"
else
  NCURSES_BOOL=auto
fi;
echo "$as_me:8330: result: $NCURSES_BOOL" >&5
echo "${ECHO_T}$NCURSES_BOOL" >&6

echo "$as_me:8333: checking for alternate terminal capabilities file" >&5
echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6

# Check whether --with-caps or --without-caps was given.
if test "${with_caps+set}" = set; then
  withval="$with_caps"
  TERMINFO_CAPS=Caps.$withval
else
  TERMINFO_CAPS=Caps
fi;
test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
echo "$as_me:8344: result: $TERMINFO_CAPS" >&5
echo "${ECHO_T}$TERMINFO_CAPS" >&6

###   use option --with-chtype to override chtype's type
echo "$as_me:8348: checking for type of chtype" >&5
echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6

# Check whether --with-chtype or --without-chtype was given.
if test "${with_chtype+set}" = set; then
  withval="$with_chtype"
  NCURSES_CHTYPE="$withval"
else
  NCURSES_CHTYPE=auto
fi;
echo "$as_me:8358: result: $NCURSES_CHTYPE" >&5
echo "${ECHO_T}$NCURSES_CHTYPE" >&6

###   use option --with-ospeed to override ospeed's type
echo "$as_me:8362: checking for type of ospeed" >&5
echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6

# Check whether --with-ospeed or --without-ospeed was given.
if test "${with_ospeed+set}" = set; then
  withval="$with_ospeed"
  NCURSES_OSPEED="$withval"
else
  NCURSES_OSPEED=short
fi;
echo "$as_me:8372: result: $NCURSES_OSPEED" >&5
echo "${ECHO_T}$NCURSES_OSPEED" >&6

###   use option --with-mmask-t to override mmask_t's type
echo "$as_me:8376: checking for type of mmask_t" >&5
echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6

# Check whether --with-mmask-t or --without-mmask-t was given.
if test "${with_mmask_t+set}" = set; then
  withval="$with_mmask_t"
  NCURSES_MMASK_T="$withval"
else
  NCURSES_MMASK_T=auto
fi;
echo "$as_me:8386: result: $NCURSES_MMASK_T" >&5
echo "${ECHO_T}$NCURSES_MMASK_T" >&6

### Enable compiling-in rcs id's
echo "$as_me:8390: checking if RCS identifiers should be compiled-in" >&5
echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6

# Check whether --with-rcs-ids or --without-rcs-ids was given.
if test "${with_rcs_ids+set}" = set; then
  withval="$with_rcs_ids"
  with_rcs_ids=$withval
else
  with_rcs_ids=no
fi;
echo "$as_me:8400: result: $with_rcs_ids" >&5
echo "${ECHO_T}$with_rcs_ids" >&6
test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
#define USE_RCS_IDS 1
EOF

###############################################################################

echo "$as_me:8408: checking format of man-pages" >&5
echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6

# Check whether --with-manpage-format or --without-manpage-format was given.
if test "${with_manpage_format+set}" = set; then
  withval="$with_manpage_format"
  MANPAGE_FORMAT=$withval
else
  MANPAGE_FORMAT=unknown
fi;

test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`

cf_unknown=

case $MANPAGE_FORMAT in
unknown)
  if test -z "$MANPATH" ; then
    MANPATH="/usr/man:/usr/share/man"
  fi

  # look for the 'date' man-page (it's most likely to be installed!)
  MANPAGE_FORMAT=
  cf_preform=no
  cf_catonly=yes
  cf_example=date

  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATHSEP}"
  for cf_dir in $MANPATH; do
    test -z "$cf_dir" && cf_dir=/usr/man
    for cf_name in $cf_dir/man*/$cf_example.[01]* $cf_dir/cat*/$cf_example.[01]* $cf_dir/man*/$cf_example $cf_dir/cat*/$cf_example
    do
      cf_test=`echo $cf_name | sed -e 's/*//'`
      if test "x$cf_test" = "x$cf_name" ; then

	case "$cf_name" in
	*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
	*.Z)  MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
	*.0)	MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
	*)    MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
	esac

	case "$cf_name" in
	$cf_dir/man*)
	  cf_catonly=no
	  ;;
	$cf_dir/cat*)
	  cf_preform=yes
	  ;;
	esac
	break
      fi

      # if we found a match in either man* or cat*, stop looking
      if test -n "$MANPAGE_FORMAT" ; then
	cf_found=no
	test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
	test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
	case "$cf_name" in
	$cf_dir/cat*)
	  cf_found=yes
	  ;;
	esac
	test $cf_found=yes && break
      fi
    done
    # only check the first directory in $MANPATH where we find manpages
    if test -n "$MANPAGE_FORMAT" ; then
       break
    fi
  done
  # if we did not find the example, just assume it is normal
  test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
  IFS="$ac_save_ifs"
  ;;
*)
  for cf_option in $MANPAGE_FORMAT; do
     case $cf_option in #(vi
     gzip|compress|BSDI|normal|formatted|catonly)
       ;;
     *)
       cf_unknown="$cf_unknown $cf_option"
       ;;
     esac
  done
  ;;
esac

echo "$as_me:8497: result: $MANPAGE_FORMAT" >&5
echo "${ECHO_T}$MANPAGE_FORMAT" >&6
if test -n "$cf_unknown" ; then
  { echo "$as_me:8500: WARNING: Unexpected manpage-format $cf_unknown" >&5
echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
fi

echo "$as_me:8504: checking for manpage renaming" >&5
echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6

# Check whether --with-manpage-renames or --without-manpage-renames was given.
if test "${with_manpage_renames+set}" = set; then
  withval="$with_manpage_renames"
  MANPAGE_RENAMES=$withval
else
  MANPAGE_RENAMES=yes
fi;

case ".$MANPAGE_RENAMES" in #(vi
.no) #(vi
  ;;
.|.yes)
  # Debian 'man' program?
  if test -f /etc/debian_version ; then
    MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
  else
    MANPAGE_RENAMES=no
  fi
  ;;
esac

if test "$MANPAGE_RENAMES" != no ; then
  if test -f $srcdir/man/$MANPAGE_RENAMES ; then
    MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
  elif test ! -f $MANPAGE_RENAMES ; then
    { { echo "$as_me:8532: error: not a filename: $MANPAGE_RENAMES" >&5
echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
   { (exit 1); exit 1; }; }
  fi

  test ! -d man && mkdir man

  # Construct a sed-script to perform renaming within man-pages
  if test -n "$MANPAGE_RENAMES" ; then
    test ! -d man && mkdir man
    sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
  fi
fi

echo "$as_me:8546: result: $MANPAGE_RENAMES" >&5
echo "${ECHO_T}$MANPAGE_RENAMES" >&6

echo "$as_me:8549: checking if manpage aliases will be installed" >&5
echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6

# Check whether --with-manpage-aliases or --without-manpage-aliases was given.
if test "${with_manpage_aliases+set}" = set; then
  withval="$with_manpage_aliases"
  MANPAGE_ALIASES=$withval
else
  MANPAGE_ALIASES=yes
fi;

echo "$as_me:8560: result: $MANPAGE_ALIASES" >&5
echo "${ECHO_T}$MANPAGE_ALIASES" >&6

if test "$LN_S" = "ln -s"; then
	cf_use_symlinks=yes
else
	cf_use_symlinks=no
fi

MANPAGE_SYMLINKS=no
if test "$MANPAGE_ALIASES" = yes ; then
echo "$as_me:8571: checking if manpage symlinks should be used" >&5
echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6

# Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
if test "${with_manpage_symlinks+set}" = set; then
  withval="$with_manpage_symlinks"
  MANPAGE_SYMLINKS=$withval
else
  MANPAGE_SYMLINKS=$cf_use_symlinks
fi;

if test "$$cf_use_symlinks" = no; then
if test "$MANPAGE_SYMLINKS" = yes ; then
	{ echo "$as_me:8584: WARNING: cannot make symlinks" >&5
echo "$as_me: WARNING: cannot make symlinks" >&2;}
	MANPAGE_SYMLINKS=no
fi
fi

echo "$as_me:8590: result: $MANPAGE_SYMLINKS" >&5
echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
fi

echo "$as_me:8594: checking for manpage tbl" >&5
echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6

# Check whether --with-manpage-tbl or --without-manpage-tbl was given.
if test "${with_manpage_tbl+set}" = set; then
  withval="$with_manpage_tbl"
  MANPAGE_TBL=$withval
else
  MANPAGE_TBL=no
fi;

echo "$as_me:8605: result: $MANPAGE_TBL" >&5
echo "${ECHO_T}$MANPAGE_TBL" >&6

  if test "$prefix" = "NONE" ; then
     cf_prefix="$ac_default_prefix"
  else
     cf_prefix="$prefix"
  fi

  case "$MANPAGE_FORMAT" in # (vi
  *catonly*) # (vi
    cf_format=yes
    cf_inboth=no
    ;;
  *formatted*) # (vi
    cf_format=yes
    cf_inboth=yes
    ;;
  *)
    cf_format=no
    cf_inboth=no
    ;;
  esac

test ! -d man && mkdir man

cf_so_strip=
cf_compress=
case "$MANPAGE_FORMAT" in #(vi
*compress*) #(vi
	cf_so_strip="Z"
	cf_compress=compress
  ;;
*gzip*) #(vi
	cf_so_strip="gz"
	cf_compress=gzip
  ;;
esac

cf_edit_man=./edit_man.sh
cf_man_alias=`pwd`/man_alias.sed

cat >$cf_edit_man <<CF_EOF
#! /bin/sh
# this script is generated by the configure-script CF_MAN_PAGES macro.

prefix="$cf_prefix"
datadir="$datadir"

NCURSES_MAJOR="$NCURSES_MAJOR"
NCURSES_MINOR="$NCURSES_MINOR"
NCURSES_PATCH="$NCURSES_PATCH"

NCURSES_OSPEED="$NCURSES_OSPEED"
TERMINFO="$TERMINFO"

MKDIRS="sh `cd $srcdir && pwd`/mkdirs.sh"

INSTALL="$INSTALL"
INSTALL_DATA="$INSTALL_DATA"

transform="$program_transform_name"

TMP=\${TMPDIR-/tmp}/man\$\$
trap "rm -f \$TMP" 0 1 2 5 15

form=\$1
shift || exit 1

verb=\$1
shift || exit 1

mandir=\$1
shift || exit 1

srcdir=\$1
top_srcdir=\$srcdir/..
shift || exit 1

if test "\$form" = normal ; then
	if test "$cf_format" = yes ; then
	if test "$cf_inboth" = no ; then
		sh \$0 format \$verb \$mandir \$srcdir \$*
		exit $?
	fi
	fi
	cf_subdir=\$mandir/man
	cf_tables=$MANPAGE_TBL
else
	cf_subdir=\$mandir/cat
	cf_tables=yes
fi

# process the list of source-files
for i in \$* ; do
case \$i in #(vi
*.orig|*.rej) ;; #(vi
*.[0-9]*)
	section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
	if test \$verb = installing ; then
	if test ! -d \$cf_subdir\${section} ; then
		\$MKDIRS \$cf_subdir\$section
	fi
	fi

	# replace variables in man page
	if test ! -f $cf_man_alias ; then
cat >>$cf_man_alias <<-CF_EOF2
		s,@@DATADIR@@,\$datadir,g
		s,@@TERMINFO@@,\$TERMINFO,g
		s,@@NCURSES_MAJOR@@,\$NCURSES_MAJOR,g
		s,@@NCURSES_MINOR@@,\$NCURSES_MINOR,g
		s,@@NCURSES_PATCH@@,\$NCURSES_PATCH,g
		s,@@NCURSES_OSPEED@@,\$NCURSES_OSPEED,g
CF_EOF

	for cf_name in  captoinfo clear infocmp infotocap tic toe tput
	do
		cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
		cf_name=`echo $cf_name|sed "$program_transform_name"`
cat >>$cf_edit_man <<-CF_EOF
		s,@@$cf_NAME@@,$cf_name,
CF_EOF
	done

cat >>$cf_edit_man <<CF_EOF
CF_EOF2
		echo "...made $cf_man_alias"
	fi

	aliases=
	cf_source=\`basename \$i\`
	inalias=\$cf_source
	test ! -f \$inalias && inalias="\$srcdir/\$inalias"
	if test ! -f \$inalias ; then
		echo .. skipped \$cf_source
		continue
	fi
CF_EOF

if test "$MANPAGE_ALIASES" != no ; then
cat >>$cf_edit_man <<CF_EOF
	aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u\`
CF_EOF
fi

if test "$MANPAGE_RENAMES" = no ; then
cat >>$cf_edit_man <<CF_EOF
	# perform program transformations for section 1 man pages
	if test \$section = 1 ; then
		cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
	else
		cf_target=\$cf_subdir\${section}/\$cf_source
	fi
CF_EOF
else
cat >>$cf_edit_man <<CF_EOF
	cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
	if test -z "\$cf_target" ; then
		echo '? missing rename for '\$cf_source
		cf_target="\$cf_source"
	fi
	cf_target="\$cf_subdir\${section}/\${cf_target}"

CF_EOF
fi

cat >>$cf_edit_man <<CF_EOF
	sed	-f $cf_man_alias \\
CF_EOF

if test -f $MANPAGE_RENAMES ; then
cat >>$cf_edit_man <<CF_EOF
		< \$i | sed -f `pwd`/edit_man.sed >\$TMP
CF_EOF
else
cat >>$cf_edit_man <<CF_EOF
		< \$i >\$TMP
CF_EOF
fi

cat >>$cf_edit_man <<CF_EOF
if test \$cf_tables = yes ; then
	tbl \$TMP >\$TMP.out
	mv \$TMP.out \$TMP
fi
CF_EOF

if test $with_curses_h != yes ; then
cat >>$cf_edit_man <<CF_EOF
	sed -e "/\#[    ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
	mv \$TMP.out \$TMP
CF_EOF
fi

cat >>$cf_edit_man <<CF_EOF
	if test \$form = format ; then
		nroff -man \$TMP >\$TMP.out
		mv \$TMP.out \$TMP
	fi
CF_EOF

if test -n "$cf_compress" ; then
cat >>$cf_edit_man <<CF_EOF
	if test \$verb = installing ; then
	if ( $cf_compress -f \$TMP )
	then
		mv \$TMP.$cf_so_strip \$TMP
	fi
	fi
	cf_target="\$cf_target.$cf_so_strip"
CF_EOF
fi

case "$MANPAGE_FORMAT" in #(vi
*BSDI*)
cat >>$cf_edit_man <<CF_EOF
	if test \$form = format ; then
		# BSDI installs only .0 suffixes in the cat directories
		cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
	fi
CF_EOF
  ;;
esac

cat >>$cf_edit_man <<CF_EOF
	suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
	if test \$verb = installing ; then
		echo \$verb \$cf_target
		\$INSTALL_DATA \$TMP \$cf_target
		test -d \$cf_subdir\${section} &&
		test -n "\$aliases" && (
			cd \$cf_subdir\${section} && (
				cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
				test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
				cf_target=\`basename \$cf_target\`
				for cf_alias in \$aliases
				do
					if test \$section = 1 ; then
						cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
					fi

					if test "$MANPAGE_SYMLINKS" = yes ; then
						if test -f \$cf_alias\${suffix} ; then
							if ( cmp -s \$cf_target \$cf_alias\${suffix} )
							then
								continue
							fi
						fi
						echo .. \$verb alias \$cf_alias\${suffix}
						rm -f \$cf_alias\${suffix}
						$LN_S \$cf_target \$cf_alias\${suffix}
					elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
						echo ".so \$cf_source" >\$TMP
CF_EOF
if test -n "$cf_compress" ; then
cat >>$cf_edit_man <<CF_EOF
						if test -n "$cf_so_strip" ; then
							$cf_compress -f \$TMP
							mv \$TMP.$cf_so_strip \$TMP
						fi
CF_EOF
fi
cat >>$cf_edit_man <<CF_EOF
						echo .. \$verb alias \$cf_alias\${suffix}
						rm -f \$cf_alias\${suffix}
						\$INSTALL_DATA \$TMP \$cf_alias\${suffix}
					fi
				done
			)
		)
	elif test \$verb = removing ; then
		test -f \$cf_target && (
			echo \$verb \$cf_target
			rm -f \$cf_target
		)
		test -d \$cf_subdir\${section} &&
		test -n "\$aliases" && (
			cd \$cf_subdir\${section} && (
				for cf_alias in \$aliases
				do
					if test \$section = 1 ; then
						cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
					fi

					echo .. \$verb alias \$cf_alias\${suffix}
					rm -f \$cf_alias\${suffix}
				done
			)
		)
	else
#		echo ".hy 0"
		cat \$TMP
	fi
	;;
esac
done

if test $cf_inboth = yes ; then
if test \$form != format ; then
	sh \$0 format \$verb \$mandir \$srcdir \$*
fi
fi

exit 0
CF_EOF
chmod 755 $cf_edit_man

###############################################################################

### Note that some functions (such as const) are normally disabled anyway.
echo "$as_me:8916: checking if you want to build with function extensions" >&5
echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6

# Check whether --enable-ext-funcs or --disable-ext-funcs was given.
if test "${enable_ext_funcs+set}" = set; then
  enableval="$enable_ext_funcs"
  with_ext_funcs=$enableval
else
  with_ext_funcs=yes
fi;
echo "$as_me:8926: result: $with_ext_funcs" >&5
echo "${ECHO_T}$with_ext_funcs" >&6
if test "$with_ext_funcs" = yes ; then
	NCURSES_EXT_FUNCS=1
	cat >>confdefs.h <<\EOF
#define HAVE_CURSES_VERSION 1
EOF

	cat >>confdefs.h <<\EOF
#define HAVE_HAS_KEY 1
EOF

	cat >>confdefs.h <<\EOF
#define HAVE_RESIZETERM 1
EOF

	cat >>confdefs.h <<\EOF
#define HAVE_RESIZE_TERM 1
EOF

	cat >>confdefs.h <<\EOF
#define HAVE_USE_DEFAULT_COLORS 1
EOF

	cat >>confdefs.h <<\EOF
#define HAVE_WRESIZE 1
EOF

	cat >>confdefs.h <<\EOF
#define NCURSES_EXT_FUNCS 1
EOF

else
	NCURSES_EXT_FUNCS=0
fi

###   use option --enable-const to turn on use of const beyond that in XSI.
echo "$as_me:8963: checking for extended use of const keyword" >&5
echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6

# Check whether --enable-const or --disable-const was given.
if test "${enable_const+set}" = set; then
  enableval="$enable_const"
  with_ext_const=$enableval
else
  with_ext_const=no
fi;
echo "$as_me:8973: result: $with_ext_const" >&5
echo "${ECHO_T}$with_ext_const" >&6
NCURSES_CONST='/*nothing*/'
if test "$with_ext_const" = yes ; then
	NCURSES_CONST=const
fi

###   use option --enable-ext-colors to turn on use of colors beyond 16.
echo "$as_me:8981: checking if you want to use extended colors" >&5
echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6

# Check whether --enable-ext-colors or --disable-ext-colors was given.
if test "${enable_ext_colors+set}" = set; then
  enableval="$enable_ext_colors"
  with_ext_colors=$enableval
else
  with_ext_colors=no
fi;
echo "$as_me:8991: result: $with_ext_colors" >&5
echo "${ECHO_T}$with_ext_colors" >&6
NCURSES_EXT_COLORS=0
if test "$with_ext_colors" = yes ; then
	if test "$with_widec" != yes ; then
		{ { echo "$as_me:8996: error: This option applies only to wide-character library" >&5
echo "$as_me: error: This option applies only to wide-character library" >&2;}
   { (exit 1); exit 1; }; }
	else
		# cannot be ABI 5 since it changes sizeof(cchar_t)

if test "${with_abi_version+set}" != set; then
	case $cf_cv_rel_version in
	5.*)
		cf_cv_rel_version=6.0
		cf_cv_abi_version=6
		{ echo "$as_me:9007: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
		;;
	esac
fi

	fi
	NCURSES_EXT_COLORS=1
	cat >>confdefs.h <<\EOF
#define NCURSES_EXT_COLORS 1
EOF

fi

###   use option --enable-ext-mouse to modify coding to support 5-button mice
echo "$as_me:9022: checking if you want to use extended mouse encoding" >&5
echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6

# Check whether --enable-ext-mouse or --disable-ext-mouse was given.
if test "${enable_ext_mouse+set}" = set; then
  enableval="$enable_ext_mouse"
  with_ext_mouse=$enableval
else
  with_ext_mouse=no
fi;
echo "$as_me:9032: result: $with_ext_mouse" >&5
echo "${ECHO_T}$with_ext_mouse" >&6
NCURSES_MOUSE_VERSION=1
if test "$with_ext_mouse" = yes ; then
	NCURSES_MOUSE_VERSION=2

if test "${with_abi_version+set}" != set; then
	case $cf_cv_rel_version in
	5.*)
		cf_cv_rel_version=6.0
		cf_cv_abi_version=6
		{ echo "$as_me:9043: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
		;;
	esac
fi

fi

echo "$as_me:9051: checking if you want \$NCURSES_NO_PADDING code" >&5
echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6

# Check whether --enable-no-padding or --disable-no-padding was given.
if test "${enable_no_padding+set}" = set; then
  enableval="$enable_no_padding"
  with_no_padding=$enableval
else
  with_no_padding=$with_ext_funcs
fi;
echo "$as_me:9061: result: $with_no_padding" >&5
echo "${ECHO_T}$with_no_padding" >&6
test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
#define NCURSES_NO_PADDING 1
EOF

echo "$as_me:9067: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9073 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

_ACEOF
if { (eval echo "$as_me:9081: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:9087: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_stdc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_stdc=no
fi
rm -f conftest.err conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 9109 "configure"
#include "confdefs.h"
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 9127 "configure"
#include "confdefs.h"
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9148 "configure"
#include "confdefs.h"
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      $ac_main_return(2);
  $ac_main_return (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:9174: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9177: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:9179: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9182: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
fi
echo "$as_me:9195: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.

for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                  inttypes.h stdint.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:9211: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9217 "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9223: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9226: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9229: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9232: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_Header=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9242: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF

fi
done

echo "$as_me:9252: checking for signed char" >&5
echo $ECHO_N "checking for signed char... $ECHO_C" >&6
if test "${ac_cv_type_signed_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9258 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((signed char *) 0)
  return 0;
if (sizeof (signed char))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9273: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9276: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9279: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9282: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_signed_char=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_signed_char=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:9292: result: $ac_cv_type_signed_char" >&5
echo "${ECHO_T}$ac_cv_type_signed_char" >&6

echo "$as_me:9295: checking size of signed char" >&5
echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
if test "${ac_cv_sizeof_signed_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_signed_char" = yes; then
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line 9304 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9316: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9319: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9322: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9325: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line 9330 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9342: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9345: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9348: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9351: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line 9367 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9379: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9382: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9385: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9388: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line 9404 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9416: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9419: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9422: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9425: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
ac_cv_sizeof_signed_char=$ac_lo
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:9438: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9443 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (!f)
  $ac_main_return (1);
fprintf (f, "%d", (sizeof (signed char)));
fclose (f);
  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:9459: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9462: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:9464: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9467: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_signed_char=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_signed_char=0
fi
fi
echo "$as_me:9483: result: $ac_cv_sizeof_signed_char" >&5
echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
cat >>confdefs.h <<EOF
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
EOF

if test "$ac_cv_sizeof_signed_char" = 1 ; then
	NCURSES_SBOOL="signed char"
else
	NCURSES_SBOOL="char"
fi
echo "$as_me:9494: checking if you want to use signed Boolean array in term.h" >&5
echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6

# Check whether --enable-signed-char or --disable-signed-char was given.
if test "${enable_signed_char+set}" = set; then
  enableval="$enable_signed_char"
  with_signed_char=$enableval
else
  with_signed_char=no
fi;
echo "$as_me:9504: result: $with_signed_char" >&5
echo "${ECHO_T}$with_signed_char" >&6
test "$with_signed_char" != yes && NCURSES_SBOOL="char"

###   use option --enable-sigwinch to turn on use of SIGWINCH logic
echo "$as_me:9509: checking if you want SIGWINCH handler" >&5
echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6

# Check whether --enable-sigwinch or --disable-sigwinch was given.
if test "${enable_sigwinch+set}" = set; then
  enableval="$enable_sigwinch"
  with_sigwinch=$enableval
else
  with_sigwinch=$with_ext_funcs
fi;
echo "$as_me:9519: result: $with_sigwinch" >&5
echo "${ECHO_T}$with_sigwinch" >&6
test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
#define USE_SIGWINCH 1
EOF

###   use option --enable-tcap-names to allow user to define new capabilities
echo "$as_me:9526: checking if you want user-definable terminal capabilities like termcap" >&5
echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6

# Check whether --enable-tcap-names or --disable-tcap-names was given.
if test "${enable_tcap_names+set}" = set; then
  enableval="$enable_tcap_names"
  with_tcap_names=$enableval
else
  with_tcap_names=$with_ext_funcs
fi;
echo "$as_me:9536: result: $with_tcap_names" >&5
echo "${ECHO_T}$with_tcap_names" >&6
NCURSES_XNAMES=0
test "$with_tcap_names" = yes && NCURSES_XNAMES=1

###############################################################################
# These options are relatively safe to experiment with.

echo "$as_me:9544: checking if you want all development code" >&5
echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6

# Check whether --with-develop or --without-develop was given.
if test "${with_develop+set}" = set; then
  withval="$with_develop"
  with_develop=$withval
else
  with_develop=no
fi;
echo "$as_me:9554: result: $with_develop" >&5
echo "${ECHO_T}$with_develop" >&6

###   use option --enable-hard-tabs to turn on use of hard-tabs optimize
echo "$as_me:9558: checking if you want hard-tabs code" >&5
echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6

# Check whether --enable-hard-tabs or --disable-hard-tabs was given.
if test "${enable_hard_tabs+set}" = set; then
  enableval="$enable_hard_tabs"

else
  enable_hard_tabs=$with_develop
fi;
echo "$as_me:9568: result: $enable_hard_tabs" >&5
echo "${ECHO_T}$enable_hard_tabs" >&6
test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
#define USE_HARD_TABS 1
EOF

###   use option --enable-xmc-glitch to turn on use of magic-cookie optimize
echo "$as_me:9575: checking if you want limited support for xmc" >&5
echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6

# Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
if test "${enable_xmc_glitch+set}" = set; then
  enableval="$enable_xmc_glitch"

else
  enable_xmc_glitch=$with_develop
fi;
echo "$as_me:9585: result: $enable_xmc_glitch" >&5
echo "${ECHO_T}$enable_xmc_glitch" >&6
test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
#define USE_XMC_SUPPORT 1
EOF

###############################################################################
# These are just experimental, probably should not be in a package:

echo "$as_me:9594: checking if you do not want to assume colors are white-on-black" >&5
echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6

# Check whether --enable-assumed-color or --disable-assumed-color was given.
if test "${enable_assumed_color+set}" = set; then
  enableval="$enable_assumed_color"
  with_assumed_color=$enableval
else
  with_assumed_color=yes
fi;
echo "$as_me:9604: result: $with_assumed_color" >&5
echo "${ECHO_T}$with_assumed_color" >&6
test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
#define USE_ASSUMED_COLOR 1
EOF

###   use option --enable-hashmap to turn on use of hashmap scrolling logic
echo "$as_me:9611: checking if you want hashmap scrolling-optimization code" >&5
echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6

# Check whether --enable-hashmap or --disable-hashmap was given.
if test "${enable_hashmap+set}" = set; then
  enableval="$enable_hashmap"
  with_hashmap=$enableval
else
  with_hashmap=yes
fi;
echo "$as_me:9621: result: $with_hashmap" >&5
echo "${ECHO_T}$with_hashmap" >&6
test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
#define USE_HASHMAP 1
EOF

###   use option --enable-colorfgbg to turn on use of $COLORFGBG environment
echo "$as_me:9628: checking if you want colorfgbg code" >&5
echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6

# Check whether --enable-colorfgbg or --disable-colorfgbg was given.
if test "${enable_colorfgbg+set}" = set; then
  enableval="$enable_colorfgbg"
  with_colorfgbg=$enableval
else
  with_colorfgbg=no
fi;
echo "$as_me:9638: result: $with_colorfgbg" >&5
echo "${ECHO_T}$with_colorfgbg" >&6
test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
#define USE_COLORFGBG 1
EOF

# This is still experimental (20080329), but should ultimately be moved to
# the script-block --with-normal, etc.

echo "$as_me:9647: checking if you want to link with the pthread library" >&5
echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6

# Check whether --with-pthread or --without-pthread was given.
if test "${with_pthread+set}" = set; then
  withval="$with_pthread"
  with_pthread=$withval
else
  with_pthread=no
fi;
echo "$as_me:9657: result: $with_pthread" >&5
echo "${ECHO_T}$with_pthread" >&6

if test "$with_pthread" != no ; then
    echo "$as_me:9661: checking for pthread.h" >&5
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
if test "${ac_cv_header_pthread_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9667 "configure"
#include "confdefs.h"
#include <pthread.h>
_ACEOF
if { (eval echo "$as_me:9671: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:9677: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_pthread_h=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_pthread_h=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:9696: result: $ac_cv_header_pthread_h" >&5
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
if test $ac_cv_header_pthread_h = yes; then

        cat >>confdefs.h <<\EOF
#define HAVE_PTHREADS_H 1
EOF

        echo "$as_me:9704: checking if we can link with the pthread library" >&5
echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6
        cf_save_LIBS="$LIBS"
        LIBS="-lpthread $LIBS"
        cat >conftest.$ac_ext <<_ACEOF
#line 9709 "configure"
#include "confdefs.h"

#include <pthread.h>

int
main ()
{

        int rc = pthread_create(0,0,0,0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9725: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9728: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9731: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9734: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  with_pthread=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
with_pthread=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
        LIBS="$cf_save_LIBS"
        echo "$as_me:9744: result: $with_pthread" >&5
echo "${ECHO_T}$with_pthread" >&6

        if test "$with_pthread" = yes ; then
            LIBS="-lpthread $LIBS"
            cat >>confdefs.h <<\EOF
#define HAVE_LIBPTHREADS 1
EOF

        else
            { { echo "$as_me:9754: error: Cannot link with pthread library" >&5
echo "$as_me: error: Cannot link with pthread library" >&2;}
   { (exit 1); exit 1; }; }
        fi

fi

fi

echo "$as_me:9763: checking if you want to use weak-symbols for pthreads" >&5
echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6

# Check whether --enable-weak-symbols or --disable-weak-symbols was given.
if test "${enable_weak_symbols+set}" = set; then
  enableval="$enable_weak_symbols"
  use_weak_symbols=$withval
else
  use_weak_symbols=no
fi;
echo "$as_me:9773: result: $use_weak_symbols" >&5
echo "${ECHO_T}$use_weak_symbols" >&6
if test "$use_weak_symbols" = yes ; then

echo "$as_me:9777: checking if $CC supports weak symbols" >&5
echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
if test "${cf_cv_weak_symbols+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 9784 "configure"
#include "confdefs.h"

#include <stdio.h>
int
main ()
{

#if defined(__GNUC__)
#  if defined __USE_ISOC99
#    define _cat_pragma(exp)	_Pragma(#exp)
#    define _weak_pragma(exp)	_cat_pragma(weak name)
#  else
#    define _weak_pragma(exp)
#  endif
#  define _declare(name)	__extension__ extern __typeof__(name) name
#  define weak_symbol(name)	_weak_pragma(name) _declare(name) __attribute__((weak))
#endif

weak_symbol(fopen);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9810: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9813: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9816: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9819: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_weak_symbols=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_weak_symbols=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:9830: result: $cf_cv_weak_symbols" >&5
echo "${ECHO_T}$cf_cv_weak_symbols" >&6

else
    cf_cv_weak_symbols=no
fi

if test $cf_cv_weak_symbols = yes ; then
    cat >>confdefs.h <<\EOF
#define USE_WEAK_SYMBOLS 1
EOF

fi

PTHREAD=
if test "$with_pthread" = "yes" ; then
    cat >>confdefs.h <<\EOF
#define USE_PTHREADS 1
EOF

    enable_reentrant=yes
    if test $cf_cv_weak_symbols = yes ; then
        PTHREAD=-lpthread
    fi
fi

# Reentrant code has to be opaque; there's little advantage to making ncurses
# opaque outside of that, so there is no --enable-opaque option.  We can use
# this option without --with-pthreads, but this will be always set for
# pthreads.
echo "$as_me:9860: checking if you want experimental reentrant code" >&5
echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6

# Check whether --enable-reentrant or --disable-reentrant was given.
if test "${enable_reentrant+set}" = set; then
  enableval="$enable_reentrant"
  with_reentrant=$enableval
else
  with_reentrant=no
fi;
echo "$as_me:9870: result: $with_reentrant" >&5
echo "${ECHO_T}$with_reentrant" >&6
if test "$with_reentrant" = yes ; then
	cf_cv_enable_reentrant=1
	cf_cv_enable_opaque="NCURSES_INTERNALS"
	NCURSES_OPAQUE=1
	NCURSES_SIZE_T=int
    if test $cf_cv_weak_symbols = yes ; then

# remove pthread library from $LIBS
LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ 	]//g' -e 's/-lpthread$//'`

    else
        LIB_SUFFIX="t${LIB_SUFFIX}"
    fi
	cat >>confdefs.h <<\EOF
#define USE_REENTRANT 1
EOF

if test "${with_abi_version+set}" != set; then
	case $cf_cv_rel_version in
	5.*)
		cf_cv_rel_version=6.0
		cf_cv_abi_version=6
		{ echo "$as_me:9894: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
		;;
	esac
fi

else
	cf_cv_enable_reentrant=0
	cf_cv_enable_opaque="NCURSES_OPAQUE"
	NCURSES_OPAQUE=0
	NCURSES_SIZE_T=short
fi

echo "$as_me:9907: checking if you want experimental safe-sprintf code" >&5
echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6

# Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
if test "${enable_safe_sprintf+set}" = set; then
  enableval="$enable_safe_sprintf"
  with_safe_sprintf=$enableval
else
  with_safe_sprintf=no
fi;
echo "$as_me:9917: result: $with_safe_sprintf" >&5
echo "${ECHO_T}$with_safe_sprintf" >&6
test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
#define USE_SAFE_SPRINTF 1
EOF

###   use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
# when hashmap is used scroll hints are useless
if test "$with_hashmap" = no ; then
echo "$as_me:9926: checking if you want to experiment without scrolling-hints code" >&5
echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6

# Check whether --enable-scroll-hints or --disable-scroll-hints was given.
if test "${enable_scroll_hints+set}" = set; then
  enableval="$enable_scroll_hints"
  with_scroll_hints=$enableval
else
  with_scroll_hints=yes
fi;
echo "$as_me:9936: result: $with_scroll_hints" >&5
echo "${ECHO_T}$with_scroll_hints" >&6
test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
#define USE_SCROLL_HINTS 1
EOF

fi

echo "$as_me:9944: checking if you want experimental wgetch-events code" >&5
echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6

# Check whether --enable-wgetch-events or --disable-wgetch-events was given.
if test "${enable_wgetch_events+set}" = set; then
  enableval="$enable_wgetch_events"
  with_wgetch_events=$enableval
else
  with_wgetch_events=no
fi;
echo "$as_me:9954: result: $with_wgetch_events" >&5
echo "${ECHO_T}$with_wgetch_events" >&6
test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
#define NCURSES_WGETCH_EVENTS 1
EOF

###############################################################################

###	use option --disable-echo to suppress full display compiling commands
echo "$as_me:9963: checking if you want to display full commands during build" >&5
echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6

# Check whether --enable-echo or --disable-echo was given.
if test "${enable_echo+set}" = set; then
  enableval="$enable_echo"
  with_echo=$enableval
else
  with_echo=yes
fi;
if test "$with_echo" = yes; then
	ECHO_LINK=
else
	ECHO_LINK='@@ echo linking $@@ ... ;'
	test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
	test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
fi
echo "$as_me:9980: result: $with_echo" >&5
echo "${ECHO_T}$with_echo" >&6

###	use option --enable-warnings to turn on all gcc warnings
echo "$as_me:9984: checking if you want to see compiler warnings" >&5
echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6

# Check whether --enable-warnings or --disable-warnings was given.
if test "${enable_warnings+set}" = set; then
  enableval="$enable_warnings"
  with_warnings=$enableval
fi;
echo "$as_me:9992: result: $with_warnings" >&5
echo "${ECHO_T}$with_warnings" >&6

if test "x$with_warnings" = "xyes"; then
 	ADAFLAGS="$ADAFLAGS -gnatg"

INTEL_COMPILER=no

if test "$GCC" = yes ; then
	case $host_os in
	linux*|gnu*)
		echo "$as_me:10003: checking if this is really Intel C compiler" >&5
echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
		cf_save_CFLAGS="$CFLAGS"
		CFLAGS="$CFLAGS -no-gcc"
		cat >conftest.$ac_ext <<_ACEOF
#line 10008 "configure"
#include "confdefs.h"

int
main ()
{

#ifdef __INTEL_COMPILER
#else
make an error
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10025: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10028: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10031: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10034: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  INTEL_COMPILER=yes
cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		CFLAGS="$cf_save_CFLAGS"
		echo "$as_me:10045: result: $INTEL_COMPILER" >&5
echo "${ECHO_T}$INTEL_COMPILER" >&6
		;;
	esac
fi

cat > conftest.$ac_ext <<EOF
#line 10052 "${as_me-configure}"
int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
EOF

if test "$INTEL_COMPILER" = yes
then
# The "-wdXXX" options suppress warnings:
# remark #1419: external declaration in primary source file
# remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
# remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
# remark #193: zero used for undefined preprocessing identifier
# remark #593: variable "curs_sb_left_arrow" was set but never used
# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
# remark #869: parameter "tw" was never referenced
# remark #981: operands are evaluated in unspecified order
# warning #269: invalid format string conversion

	{ echo "$as_me:10070: checking for $CC warning options..." >&5
echo "$as_me: checking for $CC warning options..." >&6;}
	cf_save_CFLAGS="$CFLAGS"
	EXTRA_CFLAGS="-Wall"
	for cf_opt in \
		wd1419 \
		wd1682 \
		wd1683 \
		wd1684 \
		wd193 \
		wd279 \
		wd593 \
		wd810 \
		wd869 \
		wd981
	do
		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
		if { (eval echo "$as_me:10087: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10090: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:10092: result: ... -$cf_opt" >&5
echo "${ECHO_T}... -$cf_opt" >&6
			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
		fi
	done
	CFLAGS="$cf_save_CFLAGS"

elif test "$GCC" = yes
then
	{ echo "$as_me:10101: checking for $CC warning options..." >&5
echo "$as_me: checking for $CC warning options..." >&6;}
	cf_save_CFLAGS="$CFLAGS"
	EXTRA_CFLAGS="-W -Wall"
	cf_warn_CONST=""
	test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
	for cf_opt in \
		Wbad-function-cast \
		Wcast-align \
		Wcast-qual \
		Winline \
		Wmissing-declarations \
		Wmissing-prototypes \
		Wnested-externs \
		Wpointer-arith \
		Wshadow \
		Wstrict-prototypes \
		Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
	do
		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
		if { (eval echo "$as_me:10121: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10124: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:10126: result: ... -$cf_opt" >&5
echo "${ECHO_T}... -$cf_opt" >&6
			case $cf_opt in #(vi
			Wcast-qual) #(vi
				CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
				;;
			Winline) #(vi
				case $GCC_VERSION in
				[34].*)
					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6

echo "${as_me-configure}:10137: testing feature is broken in gcc $GCC_VERSION ..." 1>&5

					continue;;
				esac
				;;
			esac
			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
		fi
	done
	CFLAGS="$cf_save_CFLAGS"
fi
rm -f conftest*

	if test "$cf_with_cxx" = yes ; then

INTEL_CPLUSPLUS=no

if test "$GCC" = yes ; then
	case $host_os in
	linux*|gnu*)
		echo "$as_me:10157: checking if this is really Intel C++ compiler" >&5
echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
		cf_save_CFLAGS="$CXXFLAGS"
		CXXFLAGS="$CXXFLAGS -no-gcc"
		cat >conftest.$ac_ext <<_ACEOF
#line 10162 "configure"
#include "confdefs.h"

int
main ()
{

#ifdef __INTEL_COMPILER
#else
make an error
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10179: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10182: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10185: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10188: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  INTEL_CPLUSPLUS=yes
cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		CXXFLAGS="$cf_save_CFLAGS"
		echo "$as_me:10199: result: $INTEL_CPLUSPLUS" >&5
echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
		;;
	esac
fi

ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

cat > conftest.$ac_ext <<EOF
#line 10213 "configure"
int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
EOF

if test "$INTEL_CPLUSPLUS" = yes
then
# The "-wdXXX" options suppress warnings:
# remark #1419: external declaration in primary source file
# remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
# remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
# remark #193: zero used for undefined preprocessing identifier
# remark #593: variable "curs_sb_left_arrow" was set but never used
# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
# remark #869: parameter "tw" was never referenced
# remark #981: operands are evaluated in unspecified order
# warning #269: invalid format string conversion

	{ echo "$as_me:10231: checking for $CC warning options..." >&5
echo "$as_me: checking for $CC warning options..." >&6;}
	cf_save_CXXFLAGS="$CXXFLAGS"
	EXTRA_CXXFLAGS="-Wall"
	for cf_opt in \
		wd1419 \
		wd1682 \
		wd1683 \
		wd1684 \
		wd193 \
		wd279 \
		wd593 \
		wd810 \
		wd869 \
		wd981
	do
		CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
		if { (eval echo "$as_me:10248: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10251: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:10253: result: ... -$cf_opt" >&5
echo "${ECHO_T}... -$cf_opt" >&6
			EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
		fi
	done
	CXXFLAGS="$cf_save_CXXFLAGS"

elif test "$GXX" = yes
then
	{ echo "$as_me:10262: checking for $CXX warning options..." >&5
echo "$as_me: checking for $CXX warning options..." >&6;}
	cf_save_CXXFLAGS="$CXXFLAGS"
	EXTRA_CXXFLAGS="-W -Wall"
	cf_gxx_extra_warnings=""
	test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
	case "$GCC_VERSION" in
	[1-2].*)
		;;
	*)
		cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
		;;
	esac
	for cf_opt in \
		Wabi \
		fabi-version=0 \
		Woverloaded-virtual \
		Wsign-promo \
		Wsynth \
		Wold-style-cast \
		Wcast-align \
		Wcast-qual \
		Wmissing-prototypes \
		Wpointer-arith \
		Wshadow \
		Wstrict-prototypes \
		Wundef $cf_gxx_extra_warnings Wno-unused
	do
		CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
		if { (eval echo "$as_me:10291: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10294: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:10296: result: ... -$cf_opt" >&5
echo "${ECHO_T}... -$cf_opt" >&6
			EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
		else
			test -n "$verbose" && echo "$as_me:10300: result: ... no -$cf_opt" >&5
echo "${ECHO_T}... no -$cf_opt" >&6
		fi
	done
	CXXFLAGS="$cf_save_CXXFLAGS"
fi

rm -f conftest*
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

	fi
fi

if test "$GCC" = yes
then
cat > conftest.i <<EOF
#ifndef GCC_PRINTF
#define GCC_PRINTF 0
#endif
#ifndef GCC_SCANF
#define GCC_SCANF 0
#endif
#ifndef GCC_NORETURN
#define GCC_NORETURN /* nothing */
#endif
#ifndef GCC_UNUSED
#define GCC_UNUSED /* nothing */
#endif
EOF
if test "$GCC" = yes
then
	{ echo "$as_me:10336: checking for $CC __attribute__ directives..." >&5
echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
cat > conftest.$ac_ext <<EOF
#line 10339 "${as_me-configure}"
#include "confdefs.h"
#include "conftest.h"
#include "conftest.i"
#if	GCC_PRINTF
#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
#else
#define GCC_PRINTFLIKE(fmt,var) /*nothing*/
#endif
#if	GCC_SCANF
#define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
#else
#define GCC_SCANFLIKE(fmt,var)  /*nothing*/
#endif
extern void wow(char *,...) GCC_SCANFLIKE(1,2);
extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
extern void foo(void) GCC_NORETURN;
int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
EOF
	for cf_attribute in scanf printf unused noreturn
	do

cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`

		cf_directive="__attribute__(($cf_attribute))"
		echo "checking for $CC $cf_directive" 1>&5
		case $cf_attribute in
		scanf|printf)
		cat >conftest.h <<EOF
#define GCC_$cf_ATTRIBUTE 1
EOF
			;;
		*)
		cat >conftest.h <<EOF
#define GCC_$cf_ATTRIBUTE $cf_directive
EOF
			;;
		esac
		if { (eval echo "$as_me:10377: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10380: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:10382: result: ... $cf_attribute" >&5
echo "${ECHO_T}... $cf_attribute" >&6
			cat conftest.h >>confdefs.h
		fi
	done
else
	fgrep define conftest.i >>confdefs.h
fi
rm -rf conftest*
fi

###	use option --enable-assertions to turn on generation of assertion code
echo "$as_me:10394: checking if you want to enable runtime assertions" >&5
echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6

# Check whether --enable-assertions or --disable-assertions was given.
if test "${enable_assertions+set}" = set; then
  enableval="$enable_assertions"
  with_assertions=$enableval
else
  with_assertions=no
fi;
echo "$as_me:10404: result: $with_assertions" >&5
echo "${ECHO_T}$with_assertions" >&6
if test -n "$GCC"
then
	if test "$with_assertions" = no
	then
		cat >>confdefs.h <<\EOF
#define NDEBUG 1
EOF

		CPPFLAGS="$CPPFLAGS -DNDEBUG"
	else
		ADAFLAGS="$ADAFLAGS -gnata"
	fi
fi

###	use option --disable-leaks to suppress "permanent" leaks, for testing

echo "$as_me:10422: checking if you want to use dmalloc for testing" >&5
echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6

# Check whether --with-dmalloc or --without-dmalloc was given.
if test "${with_dmalloc+set}" = set; then
  withval="$with_dmalloc"
  cat >>confdefs.h <<\EOF
#define USE_DMALLOC 1
EOF

	: ${with_cflags:=-g}
	: ${with_no_leaks:=yes}
	 with_dmalloc=yes
else
  with_dmalloc=
fi;
echo "$as_me:10438: result: ${with_dmalloc:-no}" >&5
echo "${ECHO_T}${with_dmalloc:-no}" >&6

case .$with_cflags in #(vi
.*-g*)
	case .$CFLAGS in #(vi
	.*-g*) #(vi
		;;
	*)

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in -g
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

		;;
	esac
	;;
esac

if test "$with_dmalloc" = yes ; then
	echo "$as_me:10522: checking for dmalloc.h" >&5
echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
if test "${ac_cv_header_dmalloc_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10528 "configure"
#include "confdefs.h"
#include <dmalloc.h>
_ACEOF
if { (eval echo "$as_me:10532: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:10538: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_dmalloc_h=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_dmalloc_h=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:10557: result: $ac_cv_header_dmalloc_h" >&5
echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
if test $ac_cv_header_dmalloc_h = yes; then

echo "$as_me:10561: checking for dmalloc_debug in -ldmalloc" >&5
echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldmalloc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 10569 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dmalloc_debug ();
int
main ()
{
dmalloc_debug ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10588: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10591: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10594: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10597: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dmalloc_dmalloc_debug=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dmalloc_dmalloc_debug=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:10608: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
  cat >>confdefs.h <<EOF
#define HAVE_LIBDMALLOC 1
EOF

  LIBS="-ldmalloc $LIBS"

fi

fi

fi

echo "$as_me:10623: checking if you want to use dbmalloc for testing" >&5
echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6

# Check whether --with-dbmalloc or --without-dbmalloc was given.
if test "${with_dbmalloc+set}" = set; then
  withval="$with_dbmalloc"
  cat >>confdefs.h <<\EOF
#define USE_DBMALLOC 1
EOF

	: ${with_cflags:=-g}
	: ${with_no_leaks:=yes}
	 with_dbmalloc=yes
else
  with_dbmalloc=
fi;
echo "$as_me:10639: result: ${with_dbmalloc:-no}" >&5
echo "${ECHO_T}${with_dbmalloc:-no}" >&6

case .$with_cflags in #(vi
.*-g*)
	case .$CFLAGS in #(vi
	.*-g*) #(vi
		;;
	*)

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in -g
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

		;;
	esac
	;;
esac

if test "$with_dbmalloc" = yes ; then
	echo "$as_me:10723: checking for dbmalloc.h" >&5
echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
if test "${ac_cv_header_dbmalloc_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10729 "configure"
#include "confdefs.h"
#include <dbmalloc.h>
_ACEOF
if { (eval echo "$as_me:10733: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:10739: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_dbmalloc_h=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_dbmalloc_h=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:10758: result: $ac_cv_header_dbmalloc_h" >&5
echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
if test $ac_cv_header_dbmalloc_h = yes; then

echo "$as_me:10762: checking for debug_malloc in -ldbmalloc" >&5
echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldbmalloc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 10770 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char debug_malloc ();
int
main ()
{
debug_malloc ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10789: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10792: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10795: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10798: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dbmalloc_debug_malloc=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dbmalloc_debug_malloc=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:10809: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
  cat >>confdefs.h <<EOF
#define HAVE_LIBDBMALLOC 1
EOF

  LIBS="-ldbmalloc $LIBS"

fi

fi

fi

echo "$as_me:10824: checking if you want to use valgrind for testing" >&5
echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6

# Check whether --with-valgrind or --without-valgrind was given.
if test "${with_valgrind+set}" = set; then
  withval="$with_valgrind"
  cat >>confdefs.h <<\EOF
#define USE_VALGRIND 1
EOF

	: ${with_cflags:=-g}
	: ${with_no_leaks:=yes}
	 with_valgrind=yes
else
  with_valgrind=
fi;
echo "$as_me:10840: result: ${with_valgrind:-no}" >&5
echo "${ECHO_T}${with_valgrind:-no}" >&6

case .$with_cflags in #(vi
.*-g*)
	case .$CFLAGS in #(vi
	.*-g*) #(vi
		;;
	*)

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in -g
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

		;;
	esac
	;;
esac

echo "$as_me:10923: checking if you want to perform memory-leak testing" >&5
echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6

# Check whether --enable-leaks or --disable-leaks was given.
if test "${enable_leaks+set}" = set; then
  enableval="$enable_leaks"
  with_no_leaks=yes
else
  : ${with_no_leaks:=no}
fi;
echo "$as_me:10933: result: $with_no_leaks" >&5
echo "${ECHO_T}$with_no_leaks" >&6

if test "$with_no_leaks" = yes ; then
	cat >>confdefs.h <<\EOF
#define NO_LEAKS 1
EOF

fi

cat >>confdefs.h <<\EOF
#define HAVE_NC_ALLOC_H 1
EOF

###	use option --enable-expanded to generate certain macros as functions

# Check whether --enable-expanded or --disable-expanded was given.
if test "${enable_expanded+set}" = set; then
  enableval="$enable_expanded"
  test "$enableval" = yes && cat >>confdefs.h <<\EOF
#define NCURSES_EXPANDED 1
EOF

fi;

###	use option --disable-macros to suppress macros in favor of functions

# Check whether --enable-macros or --disable-macros was given.
if test "${enable_macros+set}" = set; then
  enableval="$enable_macros"
  test "$enableval" = no && cat >>confdefs.h <<\EOF
#define NCURSES_NOMACROS 1
EOF

fi;

# Normally we only add trace() to the debug-library.  Allow this to be
# extended to all models of the ncurses library:
cf_all_traces=no
case "$CFLAGS $CPPFLAGS" in
*-DTRACE*)
	cf_all_traces=yes
	;;
esac

echo "$as_me:10978: checking whether to add trace feature to all models" >&5
echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6

# Check whether --with-trace or --without-trace was given.
if test "${with_trace+set}" = set; then
  withval="$with_trace"
  cf_with_trace=$withval
else
  cf_with_trace=$cf_all_traces
fi;
echo "$as_me:10988: result: $cf_with_trace" >&5
echo "${ECHO_T}$cf_with_trace" >&6

if test "$cf_with_trace" = yes ; then
	LIB_TRACING=all
	ADA_TRACE=TRUE

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in -DTRACE
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

else
	LIB_TRACING=DEBUG
	ADA_TRACE=FALSE
fi

###	Checks for libraries.
echo "$as_me:11069: checking for gettimeofday" >&5
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
if test "${ac_cv_func_gettimeofday+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11075 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gettimeofday (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gettimeofday ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
choke me
#else
f = gettimeofday;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11106: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11109: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11112: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11115: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_gettimeofday=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_gettimeofday=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:11125: result: $ac_cv_func_gettimeofday" >&5
echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
if test $ac_cv_func_gettimeofday = yes; then
  cat >>confdefs.h <<\EOF
#define HAVE_GETTIMEOFDAY 1
EOF

else

echo "$as_me:11134: checking for gettimeofday in -lbsd" >&5
echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 11142 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gettimeofday ();
int
main ()
{
gettimeofday ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11161: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11164: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11167: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11170: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_bsd_gettimeofday=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_bsd_gettimeofday=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:11181: result: $ac_cv_lib_bsd_gettimeofday" >&5
echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
if test $ac_cv_lib_bsd_gettimeofday = yes; then
  cat >>confdefs.h <<\EOF
#define HAVE_GETTIMEOFDAY 1
EOF

	LIBS="$LIBS -lbsd"
fi

fi

echo "$as_me:11193: checking if -lm needed for math functions" >&5
echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
if test "${cf_cv_need_libm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 11200 "configure"
#include "confdefs.h"

	#include <stdio.h>
	#include <math.h>

int
main ()
{
double x = rand(); printf("result = %g\n", sin(x))
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11215: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11218: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11221: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11224: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_need_libm=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_need_libm=yes
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:11234: result: $cf_cv_need_libm" >&5
echo "${ECHO_T}$cf_cv_need_libm" >&6
if test "$cf_cv_need_libm" = yes
then
MATH_LIB=-lm
fi

###	Checks for header files.
echo "$as_me:11242: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11248 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

_ACEOF
if { (eval echo "$as_me:11256: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:11262: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_stdc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_stdc=no
fi
rm -f conftest.err conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 11284 "configure"
#include "confdefs.h"
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 11302 "configure"
#include "confdefs.h"
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11323 "configure"
#include "confdefs.h"
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      $ac_main_return(2);
  $ac_main_return (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11349: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11352: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11354: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11357: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
fi
echo "$as_me:11370: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF

fi

ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
echo "$as_me:11383: checking for $ac_hdr that defines DIR" >&5
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11389 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_hdr>

int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11404: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11407: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11410: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11413: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_Header=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11423: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
EOF

ac_header_dirent=$ac_hdr; break
fi

done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
  echo "$as_me:11436: checking for opendir in -ldir" >&5
echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
if test "${ac_cv_lib_dir_opendir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldir  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 11444 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char opendir ();
int
main ()
{
opendir ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11463: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11466: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11469: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11472: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dir_opendir=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dir_opendir=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:11483: result: $ac_cv_lib_dir_opendir" >&5
echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
if test $ac_cv_lib_dir_opendir = yes; then
  LIBS="$LIBS -ldir"
fi

else
  echo "$as_me:11490: checking for opendir in -lx" >&5
echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
if test "${ac_cv_lib_x_opendir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lx  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 11498 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char opendir ();
int
main ()
{
opendir ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11517: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11520: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11523: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11526: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_x_opendir=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_x_opendir=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:11537: result: $ac_cv_lib_x_opendir" >&5
echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
if test $ac_cv_lib_x_opendir = yes; then
  LIBS="$LIBS -lx"
fi

fi

echo "$as_me:11545: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11551 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11567: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11570: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11573: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11576: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_header_time=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_time=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:11586: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then

cat >>confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF

fi

echo "$as_me:11596: checking for regular-expression headers" >&5
echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
if test "${cf_cv_regex+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 11603 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <regex.h>
int
main ()
{

	regex_t *p;
	int x = regcomp(p, "", 0);
	int y = regexec(p, "", 0, 0, 0);
	regfree(p);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11621: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11624: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11627: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11630: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_regex="regex.h"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
#line 11638 "configure"
#include "confdefs.h"
#include <regexp.h>
int
main ()
{

		char *p = compile("", "", "", 0);
		int x = step("", "");

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11653: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11656: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11659: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11662: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_regex="regexp.h"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

		cf_save_LIBS="$LIBS"
		LIBS="-lgen $LIBS"
		cat >conftest.$ac_ext <<_ACEOF
#line 11672 "configure"
#include "confdefs.h"
#include <regexpr.h>
int
main ()
{

			char *p = compile("", "", "");
			int x = step("", "");

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11687: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11690: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11693: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11696: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_regex="regexpr.h"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
LIBS="$cf_save_LIBS"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi

echo "$as_me:11712: result: $cf_cv_regex" >&5
echo "${ECHO_T}$cf_cv_regex" >&6
case $cf_cv_regex in
	regex.h)   cat >>confdefs.h <<\EOF
#define HAVE_REGEX_H_FUNCS 1
EOF
 ;;
	regexp.h)  cat >>confdefs.h <<\EOF
#define HAVE_REGEXP_H_FUNCS 1
EOF
 ;;
	regexpr.h) cat >>confdefs.h <<\EOF
#define HAVE_REGEXPR_H_FUNCS 1
EOF
 ;;
esac

for ac_header in \
fcntl.h \
getopt.h \
limits.h \
locale.h \
poll.h \
sys/bsdtypes.h \
sys/ioctl.h \
sys/param.h \
sys/poll.h \
sys/select.h \
sys/time.h \
sys/times.h \
ttyent.h \
unistd.h \
wctype.h \

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:11748: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11754 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:11758: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:11764: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:11783: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF

fi
done

# check for ISC (this may also define _POSIX_SOURCE)
# Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
if test "$ISC" = yes ; then

echo "$as_me:11797: checking for main in -lcposix" >&5
echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
if test "${ac_cv_lib_cposix_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcposix  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 11805 "configure"
#include "confdefs.h"

int
main ()
{
main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11817: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11820: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11823: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11826: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_cposix_main=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_cposix_main=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:11837: result: $ac_cv_lib_cposix_main" >&5
echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
if test $ac_cv_lib_cposix_main = yes; then
  cat >>confdefs.h <<EOF
#define HAVE_LIBCPOSIX 1
EOF

  LIBS="-lcposix $LIBS"

fi

	echo "$as_me:11848: checking for bzero in -linet" >&5
echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
if test "${ac_cv_lib_inet_bzero+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-linet  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 11856 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char bzero ();
int
main ()
{
bzero ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11875: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11878: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11881: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11884: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_inet_bzero=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_inet_bzero=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:11895: result: $ac_cv_lib_inet_bzero" >&5
echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
if test $ac_cv_lib_inet_bzero = yes; then
  LIBS="$LIBS -linet"
fi
fi

echo "$as_me:11902: checking if sys/time.h works with sys/select.h" >&5
echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
if test "${cf_cv_sys_time_select+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 11909 "configure"
#include "confdefs.h"

#include <sys/types.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11929: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11932: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11935: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11938: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_sys_time_select=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_sys_time_select=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi

echo "$as_me:11950: result: $cf_cv_sys_time_select" >&5
echo "${ECHO_T}$cf_cv_sys_time_select" >&6
test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
#define HAVE_SYS_TIME_SELECT 1
EOF

###	checks for compiler characteristics
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

echo "$as_me:11964: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
if test "${ac_cv_prog_cc_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_prog_cc_stdc=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
#line 11972 "configure"
#include "confdefs.h"
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX			-qlanglvl=ansi
# Ultrix and OSF/1	-std1
# HP-UX 10.20 and later	-Ae
# HP-UX older versions	-Aa -D_HPUX_SOURCE
# SVR4			-Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
if { (eval echo "$as_me:12021: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12024: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12027: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12030: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_stdc=$ac_arg
break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
done
rm -f conftest.$ac_ext conftest.$ac_objext
CC=$ac_save_CC

fi

case "x$ac_cv_prog_cc_stdc" in
  x|xno)
    echo "$as_me:12047: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;;
  *)
    echo "$as_me:12050: result: $ac_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    CC="$CC $ac_cv_prog_cc_stdc" ;;
esac

echo "$as_me:12055: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12061 "configure"
#include "confdefs.h"

int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12119: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12122: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12125: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12128: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_const=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_const=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:12138: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then

cat >>confdefs.h <<\EOF
#define const
EOF

fi

echo "$as_me:12148: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat >conftest.$ac_ext <<_ACEOF
#line 12156 "configure"
#include "confdefs.h"
#ifndef __cplusplus
static $ac_kw int static_foo () {return 0; }
$ac_kw int foo () {return 0; }
#endif

_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12165: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12168: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12171: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12174: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_inline=$ac_kw; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done

fi
echo "$as_me:12185: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
  inline | yes) ;;
  no)
cat >>confdefs.h <<\EOF
#define inline
EOF
 ;;
  *)  cat >>confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
 ;;
esac

NCURSES_INLINE=
if test "$ac_cv_c_inline" != no ; then
  NCURSES_INLINE=inline
  if test "$INTEL_COMPILER" = yes
  then
    :
  elif test "$GCC" = yes
  then
    echo "$as_me:12208: checking if gcc supports options to tune inlining" >&5
echo $ECHO_N "checking if gcc supports options to tune inlining... $ECHO_C" >&6
if test "${cf_cv_gcc_inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      cf_save_CFLAGS=$CFLAGS
      CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
      cat >conftest.$ac_ext <<_ACEOF
#line 12217 "configure"
#include "confdefs.h"
inline int foo(void) { return 1; }
int
main ()
{
${cf_cv_main_return:-return} foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12229: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12232: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12235: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12238: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_gcc_inline=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_gcc_inline=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
      CFLAGS=$cf_save_CFLAGS

fi
echo "$as_me:12250: result: $cf_cv_gcc_inline" >&5
echo "${ECHO_T}$cf_cv_gcc_inline" >&6
    if test "$cf_cv_gcc_inline" = yes ; then

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in --param max-inline-insns-single=1200
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

    fi
  fi
fi

echo "$as_me:12326: checking for signal global datatype" >&5
echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
if test "${cf_cv_sig_atomic_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	for cf_type in \
		"volatile sig_atomic_t" \
		"sig_atomic_t" \
		"int"
	do
	cat >conftest.$ac_ext <<_ACEOF
#line 12338 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <signal.h>
#include <stdio.h>

extern $cf_type x;
$cf_type x;
static void handler(int sig)
{
	x = 5;
}
int
main ()
{
signal(SIGINT, handler);
		 x = 1
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12361: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12364: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12367: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12370: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_sig_atomic_t=$cf_type
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_sig_atomic_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		test "$cf_cv_sig_atomic_t" != no && break
	done

fi

echo "$as_me:12384: result: $cf_cv_sig_atomic_t" >&5
echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
#define SIG_ATOMIC_T $cf_cv_sig_atomic_t
EOF

if test $NCURSES_CHTYPE = auto ; then

echo "$as_me:12392: checking for type of chtype" >&5
echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
if test "${cf_cv_typeof_chtype+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

		if test "$cross_compiling" = yes; then
  cf_cv_typeof_chtype=long
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12402 "configure"
#include "confdefs.h"

#define WANT_BITS 31
#include <stdio.h>
int main()
{
	FILE *fp = fopen("cf_test.out", "w");
	if (fp != 0) {
		char *result = "long";
		if (sizeof(unsigned long) > sizeof(unsigned int)) {
			int n;
			unsigned int x, y;
			for (n = 0; n < WANT_BITS; n++) {
				x = (1 << n);
				y = (x >> n);
				if (y != 1 || x == 0) {
					x = 0;
					break;
				}
			}
			/*
			 * If x is nonzero, an int is big enough for the bits
			 * that we want.
			 */
			result = (x != 0) ? "int" : "long";
		}
		fputs(result, fp);
		fclose(fp);
	}
	${cf_cv_main_return:-return}(0);
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12437: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12440: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12442: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12445: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_typeof_chtype=`cat cf_test.out`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_typeof_chtype=long
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
		rm -f cf_test.out

fi

echo "$as_me:12460: result: $cf_cv_typeof_chtype" >&5
echo "${ECHO_T}$cf_cv_typeof_chtype" >&6

cat >>confdefs.h <<EOF
#define TYPEOF_CHTYPE $cf_cv_typeof_chtype
EOF

else
	cf_cv_typeof_chtype=$NCURSES_CHTYPE
fi
test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""

echo "$as_me:12472: checking if unsigned literals are legal" >&5
echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
if test "${cf_cv_unsigned_literals+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 12479 "configure"
#include "confdefs.h"

int
main ()
{
long x = 1L + 1UL + 1U + 1
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12491: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12494: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12497: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12500: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_unsigned_literals=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_unsigned_literals=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi

echo "$as_me:12512: result: $cf_cv_unsigned_literals" >&5
echo "${ECHO_T}$cf_cv_unsigned_literals" >&6

cf_cv_1UL="1"
test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
test ".$cf_cv_typeof_chtype"    = .long && cf_cv_1UL="${cf_cv_1UL}L"

if test $NCURSES_MMASK_T = auto ; then
	cf_cv_typeof_mmask_t=long
else
	cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
fi
test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""

###	Checks for external-data

echo "$as_me:12528: checking if external errno is declared" >&5
echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
if test "${cf_cv_dcl_errno+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    cat >conftest.$ac_ext <<_ACEOF
#line 12535 "configure"
#include "confdefs.h"

#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include <stdio.h>
#include <sys/types.h>
#include <errno.h>
int
main ()
{
int x = (int) errno
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12553: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12556: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12559: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12562: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_dcl_errno=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_dcl_errno=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:12573: result: $cf_cv_dcl_errno" >&5
echo "${ECHO_T}$cf_cv_dcl_errno" >&6

if test "$cf_cv_dcl_errno" = no ; then

cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`

    cat >>confdefs.h <<EOF
#define $cf_result 1
EOF

fi

# It's possible (for near-UNIX clones) that the data doesn't exist

echo "$as_me:12588: checking if external errno exists" >&5
echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
if test "${cf_cv_have_errno+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    cat >conftest.$ac_ext <<_ACEOF
#line 12595 "configure"
#include "confdefs.h"

#undef errno
extern int errno;

int
main ()
{
errno = 2
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12610: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12613: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12616: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12619: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_have_errno=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_have_errno=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi
echo "$as_me:12630: result: $cf_cv_have_errno" >&5
echo "${ECHO_T}$cf_cv_have_errno" >&6

if test "$cf_cv_have_errno" = yes ; then

cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`

    cat >>confdefs.h <<EOF
#define $cf_result 1
EOF

fi

echo "$as_me:12643: checking if data-only library module links" >&5
echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
if test "${cf_cv_link_dataonly+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	rm -f conftest.a
	cat >conftest.$ac_ext <<EOF
#line 12651 "configure"
int	testdata[3] = { 123, 456, 789 };
EOF
	if { (eval echo "$as_me:12654: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12657: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
		mv conftest.o data.o && \
		( $AR $AR_OPTS conftest.a data.o ) 2>&5 1>/dev/null
	fi
	rm -f conftest.$ac_ext data.o
	cat >conftest.$ac_ext <<EOF
#line 12664 "configure"
int	testfunc()
{
#if defined(NeXT)
	${cf_cv_main_return:-return}(1);	/* I'm told this linker is broken */
#else
	extern int testdata[3];
	return testdata[0] == 123
	   &&  testdata[1] == 456
	   &&  testdata[2] == 789;
#endif
}
EOF
	if { (eval echo "$as_me:12677: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12680: \$? = $ac_status" >&5
  (exit $ac_status); }; then
		mv conftest.o func.o && \
		( $AR $AR_OPTS conftest.a func.o ) 2>&5 1>/dev/null
	fi
	rm -f conftest.$ac_ext func.o
	( eval $RANLIB conftest.a ) 2>&5 >/dev/null
	cf_saveLIBS="$LIBS"
	LIBS="conftest.a $LIBS"
	if test "$cross_compiling" = yes; then
  cf_cv_link_dataonly=unknown
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12693 "configure"
#include "confdefs.h"

	int main()
	{
		extern int testfunc();
		${cf_cv_main_return:-return} (!testfunc());
	}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12704: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12707: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12709: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12712: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_link_dataonly=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_link_dataonly=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
	LIBS="$cf_saveLIBS"

fi

echo "$as_me:12727: result: $cf_cv_link_dataonly" >&5
echo "${ECHO_T}$cf_cv_link_dataonly" >&6

if test "$cf_cv_link_dataonly" = no ; then
	cat >>confdefs.h <<\EOF
#define BROKEN_LINKER 1
EOF

	BROKEN_LINKER=1
fi

###	Checks for library functions.

for ac_func in \
getcwd \
getegid \
geteuid \
getttynam \
issetugid \
poll \
remove \
select \
setbuf \
setbuffer \
setvbuf \
sigaction \
sigvec \
strdup \
strstr \
tcgetpgrp \
times \
vsnprintf \

do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:12762: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12768 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12799: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12802: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12805: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12808: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12818: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

if test "$with_getcap" = "yes" ; then

echo "$as_me:12830: checking for terminal-capability database functions" >&5
echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
if test "${cf_cv_cgetent+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 12837 "configure"
#include "confdefs.h"

#include <stdlib.h>
int
main ()
{

	char temp[128];
	char *buf = temp;
	char *db_array = temp;
	cgetent(&buf, /* int *, */ &db_array, "vt100");
	cgetcap(buf, "tc", '=');
	cgetmatch(buf, "tc");

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12857: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12860: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12863: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12866: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_cgetent=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_cgetent=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi

echo "$as_me:12878: result: $cf_cv_cgetent" >&5
echo "${ECHO_T}$cf_cv_cgetent" >&6
test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
#define HAVE_BSD_CGETENT 1
EOF

fi

echo "$as_me:12886: checking for isascii" >&5
echo $ECHO_N "checking for isascii... $ECHO_C" >&6
if test "${cf_cv_have_isascii+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 12893 "configure"
#include "confdefs.h"
#include <ctype.h>
int
main ()
{
int x = isascii(' ')
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12905: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12908: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12911: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12914: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_have_isascii=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_have_isascii=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi
echo "$as_me:12925: result: $cf_cv_have_isascii" >&5
echo "${ECHO_T}$cf_cv_have_isascii" >&6
test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
#define HAVE_ISASCII 1
EOF

if test "$ac_cv_func_sigaction" = yes; then
echo "$as_me:12932: checking whether sigaction needs _POSIX_SOURCE" >&5
echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line 12935 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <signal.h>
int
main ()
{
struct sigaction act
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12949: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12952: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12955: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12958: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  sigact_bad=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line 12966 "configure"
#include "confdefs.h"

#define _POSIX_SOURCE
#include <sys/types.h>
#include <signal.h>
int
main ()
{
struct sigaction act
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12981: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12984: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12987: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12990: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  sigact_bad=yes
	 cat >>confdefs.h <<\EOF
#define SVR4_ACTION 1
EOF

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
sigact_bad=unknown
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:13005: result: $sigact_bad" >&5
echo "${ECHO_T}$sigact_bad" >&6
fi

echo "$as_me:13009: checking if nanosleep really works" >&5
echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
if test "${cf_cv_func_nanosleep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test "$cross_compiling" = yes; then
  cf_cv_func_nanosleep=unknown
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13019 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <errno.h>
#include <time.h>

#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif

int main() {
	struct timespec ts1, ts2;
	int code;
	ts1.tv_sec  = 0;
	ts1.tv_nsec = 750000000;
	ts2.tv_sec  = 0;
	ts2.tv_nsec = 0;
	errno = 0;
	code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
	${cf_cv_main_return:-return}(code != 0);
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:13044: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13047: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:13049: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13052: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_func_nanosleep=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_func_nanosleep=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:13064: result: $cf_cv_func_nanosleep" >&5
echo "${ECHO_T}$cf_cv_func_nanosleep" >&6

test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
#define HAVE_NANOSLEEP 1
EOF

for ac_header in \
termio.h \
termios.h \
unistd.h \

do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:13078: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13084 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:13088: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:13094: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:13113: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF

fi
done

if test "$ISC" = yes ; then

for ac_header in sys/termio.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:13128: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13134 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:13138: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:13144: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:13163: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF

fi
done

fi
if test "$ac_cv_header_termios_h" = yes ; then
	case "$CFLAGS $CPPFLAGS" in
	*-D_POSIX_SOURCE*)
		termios_bad=dunno ;;
	*)	termios_bad=maybe ;;
	esac
	if test "$termios_bad" = maybe ; then
	echo "$as_me:13181: checking whether termios.h needs _POSIX_SOURCE" >&5
echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
	cat >conftest.$ac_ext <<_ACEOF
#line 13184 "configure"
#include "confdefs.h"
#include <termios.h>
int
main ()
{
struct termios foo; int x = foo.c_iflag
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13196: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13199: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13202: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13205: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  termios_bad=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

		cat >conftest.$ac_ext <<_ACEOF
#line 13213 "configure"
#include "confdefs.h"

#define _POSIX_SOURCE
#include <termios.h>
int
main ()
{
struct termios foo; int x = foo.c_iflag
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13227: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13230: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13233: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13236: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  termios_bad=unknown
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
termios_bad=yes cat >>confdefs.h <<\EOF
#define SVR4_TERMIO 1
EOF

fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
rm -f conftest.$ac_objext conftest.$ac_ext
	echo "$as_me:13251: result: $termios_bad" >&5
echo "${ECHO_T}$termios_bad" >&6
	fi
fi

echo "$as_me:13256: checking for tcgetattr" >&5
echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
if test "${cf_cv_have_tcgetattr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 13263 "configure"
#include "confdefs.h"

#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#define TTY struct termios
#else
#ifdef HAVE_TERMIO_H
#include <termio.h>
#define TTY struct termio
#endif
#endif

int
main ()
{

TTY foo;
tcgetattr(1, &foo);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13291: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13294: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13297: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13300: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_have_tcgetattr=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_have_tcgetattr=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13310: result: $cf_cv_have_tcgetattr" >&5
echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
#define HAVE_TCGETATTR 1
EOF

echo "$as_me:13316: checking for vsscanf function or workaround" >&5
echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
if test "${cf_cv_func_vsscanf+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 13323 "configure"
#include "confdefs.h"

#include <stdarg.h>
#include <stdio.h>
int
main ()
{

	va_list ap;
	vsscanf("from", "%d", ap)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13339: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13342: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13345: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13348: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_func_vsscanf=vsscanf
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line 13356 "configure"
#include "confdefs.h"

#include <stdarg.h>
#include <stdio.h>
int
main ()
{

    FILE strbuf;
    char *str = "from";

    strbuf._flag = _IOREAD;
    strbuf._ptr = strbuf._base = (unsigned char *) str;
    strbuf._cnt = strlen(str);
    strbuf._file = _NFILE;
    return (vfscanf(&strbuf, "%d", ap))
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13378: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13381: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13384: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13387: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_func_vsscanf=vfscanf
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line 13395 "configure"
#include "confdefs.h"

#include <stdarg.h>
#include <stdio.h>
int
main ()
{

    FILE strbuf;
    char *str = "from";

    strbuf._flag = _IOREAD;
    strbuf._ptr = strbuf._base = (unsigned char *) str;
    strbuf._cnt = strlen(str);
    strbuf._file = _NFILE;
    return (_doscan(&strbuf, "%d", ap))
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13417: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13420: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13423: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13426: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_func_vsscanf=_doscan
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

cf_cv_func_vsscanf=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13441: result: $cf_cv_func_vsscanf" >&5
echo "${ECHO_T}$cf_cv_func_vsscanf" >&6

case $cf_cv_func_vsscanf in #(vi
vsscanf) cat >>confdefs.h <<\EOF
#define HAVE_VSSCANF 1
EOF
;; #(vi
vfscanf) cat >>confdefs.h <<\EOF
#define HAVE_VFSCANF 1
EOF
;; #(vi
_doscan) cat >>confdefs.h <<\EOF
#define HAVE__DOSCAN 1
EOF
;;
esac

echo "$as_me:13459: checking for working mkstemp" >&5
echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
if test "${cf_cv_func_mkstemp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

rm -f conftest*
if test "$cross_compiling" = yes; then
  echo "$as_me:13467: checking for mkstemp" >&5
echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13473 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char mkstemp (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mkstemp ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
choke me
#else
f = mkstemp;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13504: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13507: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13510: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13513: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_mkstemp=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_mkstemp=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13523: result: $ac_cv_func_mkstemp" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp" >&6

else
  cat >conftest.$ac_ext <<_ACEOF
#line 13528 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
int main()
{
	char *tmpl = "conftestXXXXXX";
	char name[2][80];
	int n;
	int result = 0;
	int fd;
	struct stat sb;

	umask(077);
	for (n = 0; n < 2; ++n) {
		strcpy(name[n], tmpl);
		if ((fd = mkstemp(name[n])) >= 0) {
			if (!strcmp(name[n], tmpl)
			 || stat(name[n], &sb) != 0
			 || (sb.st_mode & S_IFMT) != S_IFREG
			 || (sb.st_mode & 077) != 0) {
				result = 1;
			}
			close(fd);
		}
	}
	if (result == 0
	 && !strcmp(name[0], name[1]))
		result = 1;
	${cf_cv_main_return:-return}(result);
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:13566: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13569: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:13571: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13574: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_func_mkstemp=yes

else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_func_mkstemp=no

fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

fi
echo "$as_me:13589: result: $cf_cv_func_mkstemp" >&5
echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
if test "$cf_cv_func_mkstemp" = yes ; then
	cat >>confdefs.h <<\EOF
#define HAVE_MKSTEMP 1
EOF

fi

# setup for prototype of fallback for vsscanf()

if test "$cf_cv_func_vsscanf" = vsscanf ; then
	HAVE_VSSCANF=1
else
	HAVE_VSSCANF=0
fi

if test "$cross_compiling" = yes ; then
	{ echo "$as_me:13607: WARNING: cross compiling: assume setvbuf params not reversed" >&5
echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
else
	echo "$as_me:13610: checking whether setvbuf arguments are reversed" >&5
echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:13616: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13621 "configure"
#include "confdefs.h"
#include <stdio.h>
/* If setvbuf has the reversed format, exit 0. */
int
main ()
{
  /* This call has the arguments reversed.
     A reversed system may check and see that the address of main
     is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
  if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
    $ac_main_return(1);
  putc('\r', stdout);
  $ac_main_return(0);			/* Non-reversed systems segv here.  */
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:13638: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13641: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:13643: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13646: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_setvbuf_reversed=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_setvbuf_reversed=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f core core.* *.core
fi
echo "$as_me:13659: result: $ac_cv_func_setvbuf_reversed" >&5
echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
if test $ac_cv_func_setvbuf_reversed = yes; then

cat >>confdefs.h <<\EOF
#define SETVBUF_REVERSED 1
EOF

fi

fi
echo "$as_me:13670: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13676 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
# undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

int
main ()
{
int i;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13698: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13701: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13704: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13707: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_signal=void
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_signal=int
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:13717: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6

cat >>confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF

echo "$as_me:13724: checking for type sigaction_t" >&5
echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
if test "${cf_cv_type_sigaction+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 13731 "configure"
#include "confdefs.h"

#include <signal.h>
int
main ()
{
sigaction_t x
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13744: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13747: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13750: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13753: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_type_sigaction=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_type_sigaction=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

echo "$as_me:13764: result: $cf_cv_type_sigaction" >&5
echo "${ECHO_T}$cf_cv_type_sigaction" >&6
test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
#define HAVE_TYPE_SIGACTION 1
EOF

echo "$as_me:13770: checking declaration of size-change" >&5
echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
if test "${cf_cv_sizechange+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    cf_cv_sizechange=unknown
    cf_save_CPPFLAGS="$CPPFLAGS"

for cf_opts in "" "NEED_PTEM_H"
do

    CPPFLAGS="$cf_save_CPPFLAGS"
    test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
    cat >conftest.$ac_ext <<_ACEOF
#line 13785 "configure"
#include "confdefs.h"
#include <sys/types.h>
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#else
#ifdef HAVE_TERMIO_H
#include <termio.h>
#endif
#endif
#ifdef NEED_PTEM_H
/* This is a workaround for SCO:  they neglected to define struct winsize in
 * termios.h -- it's only in termio.h and ptem.h
 */
#include        <sys/stream.h>
#include        <sys/ptem.h>
#endif
#if !defined(sun) || !defined(HAVE_TERMIOS_H)
#include <sys/ioctl.h>
#endif

int
main ()
{

#ifdef TIOCGSIZE
	struct ttysize win;	/* FIXME: what system is this? */
	int y = win.ts_lines;
	int x = win.ts_cols;
#else
#ifdef TIOCGWINSZ
	struct winsize win;
	int y = win.ws_row;
	int x = win.ws_col;
#else
	no TIOCGSIZE or TIOCGWINSZ
#endif /* TIOCGWINSZ */
#endif /* TIOCGSIZE */

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13829: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13832: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13835: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13838: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_sizechange=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_sizechange=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

	CPPFLAGS="$cf_save_CPPFLAGS"
	if test "$cf_cv_sizechange" = yes ; then
		echo "size-change succeeded ($cf_opts)" >&5
		test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
		break
	fi
done

fi
echo "$as_me:13857: result: $cf_cv_sizechange" >&5
echo "${ECHO_T}$cf_cv_sizechange" >&6
if test "$cf_cv_sizechange" != no ; then
	cat >>confdefs.h <<\EOF
#define HAVE_SIZECHANGE 1
EOF

	case $cf_cv_sizechange in #(vi
	NEED*)
		cat >>confdefs.h <<EOF
#define $cf_cv_sizechange  1
EOF

		;;
	esac
fi

echo "$as_me:13874: checking for memmove" >&5
echo $ECHO_N "checking for memmove... $ECHO_C" >&6
if test "${ac_cv_func_memmove+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13880 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char memmove (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char memmove ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_memmove) || defined (__stub___memmove)
choke me
#else
f = memmove;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13911: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13914: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13917: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13920: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_memmove=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_memmove=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13930: result: $ac_cv_func_memmove" >&5
echo "${ECHO_T}$ac_cv_func_memmove" >&6
if test $ac_cv_func_memmove = yes; then
  :
else

echo "$as_me:13936: checking for bcopy" >&5
echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
if test "${ac_cv_func_bcopy+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13942 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char bcopy (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char bcopy ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_bcopy) || defined (__stub___bcopy)
choke me
#else
f = bcopy;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13973: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13976: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13979: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13982: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_bcopy=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_bcopy=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:13992: result: $ac_cv_func_bcopy" >&5
echo "${ECHO_T}$ac_cv_func_bcopy" >&6
if test $ac_cv_func_bcopy = yes; then

	echo "$as_me:13996: checking if bcopy does overlapping moves" >&5
echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
if test "${cf_cv_good_bcopy+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

		if test "$cross_compiling" = yes; then
  cf_cv_good_bcopy=unknown
else
  cat >conftest.$ac_ext <<_ACEOF
#line 14006 "configure"
#include "confdefs.h"

int main() {
	static char data[] = "abcdefghijklmnopqrstuwwxyz";
	char temp[40];
	bcopy(data, temp, sizeof(data));
	bcopy(temp+10, temp, 15);
	bcopy(temp+5, temp+15, 10);
	${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:14020: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14023: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:14025: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14028: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_good_bcopy=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_good_bcopy=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

fi
echo "$as_me:14041: result: $cf_cv_good_bcopy" >&5
echo "${ECHO_T}$cf_cv_good_bcopy" >&6

else
  cf_cv_good_bcopy=no
fi

	if test "$cf_cv_good_bcopy" = yes ; then
		cat >>confdefs.h <<\EOF
#define USE_OK_BCOPY 1
EOF

	else
		cat >>confdefs.h <<\EOF
#define USE_MY_MEMMOVE 1
EOF

	fi

fi

echo "$as_me:14062: checking if poll really works" >&5
echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
if test "${cf_cv_working_poll+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test "$cross_compiling" = yes; then
  cf_cv_working_poll=unknown
else
  cat >conftest.$ac_ext <<_ACEOF
#line 14072 "configure"
#include "confdefs.h"

#include <stdio.h>
#ifdef HAVE_POLL_H
#include <poll.h>
#else
#include <sys/poll.h>
#endif
int main() {
	struct pollfd myfds;
	int ret;

	myfds.fd = 0;
	myfds.events = POLLIN;

	ret = poll(&myfds, 1, 100);
	${cf_cv_main_return:-return}(ret != 0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:14093: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14096: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:14098: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14101: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_working_poll=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_working_poll=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:14113: result: $cf_cv_working_poll" >&5
echo "${ECHO_T}$cf_cv_working_poll" >&6
test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
#define HAVE_WORKING_POLL 1
EOF

# special check for test/ditto.c

echo "$as_me:14121: checking for openpty in -lutil" >&5
echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
if test "${ac_cv_lib_util_openpty+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lutil  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 14129 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char openpty ();
int
main ()
{
openpty ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14148: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14151: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14154: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14157: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_util_openpty=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_util_openpty=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:14168: result: $ac_cv_lib_util_openpty" >&5
echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
if test $ac_cv_lib_util_openpty = yes; then
  cf_cv_lib_util=yes
else
  cf_cv_lib_util=no
fi

echo "$as_me:14176: checking for openpty header" >&5
echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
if test "${cf_cv_func_openpty+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    cf_save_LIBS="$LIBS"
    test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
    for cf_header in pty.h libutil.h util.h
    do
    cat >conftest.$ac_ext <<_ACEOF
#line 14187 "configure"
#include "confdefs.h"

#include <$cf_header>

int
main ()
{

    int x = openpty((int *)0, (int *)0, (char *)0,
                   (struct termios *)0, (struct winsize *)0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14204: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14207: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14210: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14213: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

        cf_cv_func_openpty=$cf_header
        break

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

        cf_cv_func_openpty=no

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    done
    LIBS="$cf_save_LIBS"

fi
echo "$as_me:14231: result: $cf_cv_func_openpty" >&5
echo "${ECHO_T}$cf_cv_func_openpty" >&6

if test "$cf_cv_func_openpty" != no ; then
    cat >>confdefs.h <<EOF
#define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
EOF

    cat >>confdefs.h <<\EOF
#define USE_XTERM_PTY 1
EOF

    if test "$cf_cv_lib_util" = yes ; then
        TEST_LIBS="-lutil $TEST_LIBS"
    fi
fi

if test "$with_hashed_db" != no ; then
	cat >>confdefs.h <<\EOF
#define USE_HASHED_DB 1
EOF

case $with_hashed_db in #(vi
yes|*able*) #(vi
    ;;
*)
    if test -d "$with_hashed_db" ; then

if test -n "$with_hashed_db/include" ; then
  for cf_add_incdir in $with_hashed_db/include
  do
	while test $cf_add_incdir != /usr/include
	do
	  if test -d $cf_add_incdir
	  then
		cf_have_incdir=no
		if test -n "$CFLAGS$CPPFLAGS" ; then
		  # a loop is needed to ensure we can add subdirs of existing dirs
		  for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
			if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
			  cf_have_incdir=yes; break
			fi
		  done
		fi

		if test "$cf_have_incdir" = no ; then
          if test "$cf_add_incdir" = /usr/local/include ; then
			if test "$GCC" = yes
			then
			  cf_save_CPPFLAGS=$CPPFLAGS
			  CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
			  cat >conftest.$ac_ext <<_ACEOF
#line 14283 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
printf("Hello")
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14295: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14298: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14301: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14304: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_have_incdir=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
			  CPPFLAGS=$cf_save_CPPFLAGS
			fi
		  fi
		fi

		if test "$cf_have_incdir" = no ; then
		  test -n "$verbose" && echo "	adding $cf_add_incdir to include-path" 1>&6

echo "${as_me-configure}:14321: testing adding $cf_add_incdir to include-path ..." 1>&5

		  CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"

          cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
          test "$cf_top_incdir" = "$cf_add_incdir" && break
          cf_add_incdir="$cf_top_incdir"
		else
		  break
		fi
	  fi
	done
  done
fi

if test -n "$with_hashed_db/lib" ; then
  for cf_add_libdir in $with_hashed_db/lib
  do
    if test $cf_add_libdir = /usr/lib ; then
      :
    elif test -d $cf_add_libdir
    then
      cf_have_libdir=no
      if test -n "$LDFLAGS$LIBS" ; then
        # a loop is needed to ensure we can add subdirs of existing dirs
        for cf_test_libdir in $LDFLAGS $LIBS ; do
          if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
            cf_have_libdir=yes; break
          fi
        done
      fi
      if test "$cf_have_libdir" = no ; then
        test -n "$verbose" && echo "	adding $cf_add_libdir to library-path" 1>&6

echo "${as_me-configure}:14355: testing adding $cf_add_libdir to library-path ..." 1>&5

        LDFLAGS="-L$cf_add_libdir $LDFLAGS"
      fi
    fi
  done
fi

    fi
esac

echo "$as_me:14366: checking for db.h" >&5
echo $ECHO_N "checking for db.h... $ECHO_C" >&6
if test "${ac_cv_header_db_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 14372 "configure"
#include "confdefs.h"
#include <db.h>
_ACEOF
if { (eval echo "$as_me:14376: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:14382: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_db_h=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_db_h=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:14401: result: $ac_cv_header_db_h" >&5
echo "${ECHO_T}$ac_cv_header_db_h" >&6
if test $ac_cv_header_db_h = yes; then

echo "$as_me:14405: checking for version of db" >&5
echo $ECHO_N "checking for version of db... $ECHO_C" >&6
if test "${cf_cv_hashed_db_version+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_hashed_db_version=unknown

for cf_db_version in 1 2 3 4 5
do

echo "${as_me-configure}:14416: testing checking for db version $cf_db_version ..." 1>&5

	cat >conftest.$ac_ext <<_ACEOF
#line 14419 "configure"
#include "confdefs.h"

$ac_includes_default
#include <db.h>

#ifdef DB_VERSION_MAJOR
	/* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
#if $cf_db_version == DB_VERSION_MAJOR
	/* ok */
#else
	make an error
#endif
#else
#if $cf_db_version == 1
	/* ok: assuming this is DB 1.8.5 */
#else
	make an error
#endif
#endif

int
main ()
{
DBT *foo = 0
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14449: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14452: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14455: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14458: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

	cf_cv_hashed_db_version=$cf_db_version
	break

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done

fi
echo "$as_me:14472: result: $cf_cv_hashed_db_version" >&5
echo "${ECHO_T}$cf_cv_hashed_db_version" >&6

if test "$cf_cv_hashed_db_version" = unknown ; then
	{ { echo "$as_me:14476: error: Cannot determine version of db" >&5
echo "$as_me: error: Cannot determine version of db" >&2;}
   { (exit 1); exit 1; }; }
else

echo "$as_me:14481: checking for db libraries" >&5
echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
if test "${cf_cv_hashed_db_libs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_hashed_db_libs=unknown
for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
do
	cf_save_libs="$LIBS"
	if test -n "$cf_db_libs"; then
		LIBS="-l$cf_db_libs $LIBS"
	fi

echo "${as_me-configure}:14495: testing checking for library "$cf_db_libs" ..." 1>&5

	cat >conftest.$ac_ext <<_ACEOF
#line 14498 "configure"
#include "confdefs.h"

$ac_includes_default
#include <db.h>

int
main ()
{

	char *path = "/tmp/foo";
#ifdef DB_VERSION_MAJOR
#if DB_VERSION_MAJOR >= 4
	DB *result = 0;
	db_create(&result, NULL, 0);
	result->open(result,
		NULL,
		path,
		path,
		DB_HASH,
		DB_CREATE,
		0644);
#elif DB_VERSION_MAJOR >= 3
	DB *result = 0;
	db_create(&result, NULL, 0);
	result->open(result,
		path,
		path,
		DB_HASH,
		DB_CREATE,
		0644);
#elif DB_VERSION_MAJOR >= 2
	DB *result = 0;
	db_open(path,
		DB_HASH,
		DB_CREATE,
		0644,
		(DB_ENV *) 0,
		(DB_INFO *) 0,
		&result);
#endif /* DB_VERSION_MAJOR */
#else
	DB *result = dbopen(path,
		     2,
		     0644,
		     DB_HASH,
		     0);
#endif
	${cf_cv_main_return:-return}(result != 0)

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14553: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14556: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14559: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14562: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

	if test -n "$cf_db_libs" ; then
		cf_cv_hashed_db_libs=$cf_db_libs
	else
		cf_cv_hashed_db_libs=default
	fi
	LIBS="$cf_save_libs"
	break

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	LIBS="$cf_save_libs"
done

fi
echo "$as_me:14582: result: $cf_cv_hashed_db_libs" >&5
echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6

	if test "$cf_cv_hashed_db_libs" = unknown ; then
		{ { echo "$as_me:14586: error: Cannot determine library for db" >&5
echo "$as_me: error: Cannot determine library for db" >&2;}
   { (exit 1); exit 1; }; }
	elif test "$cf_cv_hashed_db_libs" != default ; then
		LIBS="-l$cf_cv_hashed_db_libs $LIBS"
	fi
fi

else

	{ { echo "$as_me:14596: error: Cannot find db.h" >&5
echo "$as_me: error: Cannot find db.h" >&2;}
   { (exit 1); exit 1; }; }

fi

fi

if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
	CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
	CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
fi

# Just in case, check if the C compiler has a bool type.

echo "$as_me:14611: checking if we should include stdbool.h" >&5
echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6

if test "${cf_cv_header_stdbool_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 14619 "configure"
#include "confdefs.h"

int
main ()
{
bool foo = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14631: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14634: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14637: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14640: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_header_stdbool_h=0
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 14647 "configure"
#include "confdefs.h"

#ifndef __BEOS__
#include <stdbool.h>
#endif

int
main ()
{
bool foo = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14663: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14666: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14669: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14672: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_header_stdbool_h=1
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_header_stdbool_h=0
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

if test "$cf_cv_header_stdbool_h" = 1
then	echo "$as_me:14686: result: yes" >&5
echo "${ECHO_T}yes" >&6
else	echo "$as_me:14688: result: no" >&5
echo "${ECHO_T}no" >&6
fi

echo "$as_me:14692: checking for builtin bool type" >&5
echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6

if test "${cf_cv_cc_bool_type+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 14700 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <sys/types.h>

int
main ()
{
bool x = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14715: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14718: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14721: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14724: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_cc_bool_type=1
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_cc_bool_type=0
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi

if test "$cf_cv_cc_bool_type" = 1
then	echo "$as_me:14737: result: yes" >&5
echo "${ECHO_T}yes" >&6
else	echo "$as_me:14739: result: no" >&5
echo "${ECHO_T}no" >&6
fi

# Check for C++ compiler characteristics (and ensure that it's there!)
if test -n "$CXX" ; then
	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

if test -n "$GXX" ; then
case $cf_cv_system_name in #(vi
os2*) #(vi
	cf_stdcpp_libname=stdcpp
	;;
*)
	cf_stdcpp_libname=stdc++
	;;
esac
echo "$as_me:14761: checking for library $cf_stdcpp_libname" >&5
echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
if test "${cf_cv_libstdcpp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cf_save="$LIBS"
	LIBS="$LIBS -l$cf_stdcpp_libname"
cat >conftest.$ac_ext <<_ACEOF
#line 14770 "configure"
#include "confdefs.h"

#include <strstream.h>
int
main ()
{

char buf[80];
strstreambuf foo(buf, sizeof(buf))

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14786: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14789: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14792: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14795: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_libstdcpp=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_libstdcpp=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	LIBS="$cf_save"

fi
echo "$as_me:14807: result: $cf_cv_libstdcpp" >&5
echo "${ECHO_T}$cf_cv_libstdcpp" >&6
test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
fi

	echo "$as_me:14812: checking whether $CXX understands -c and -o together" >&5
echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
if test "${cf_cv_prog_CXX_c_o+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat > conftest.$ac_ext <<CF_EOF
#include <stdio.h>
int main()
{
	${cf_cv_main_return:-return}(0);
}
CF_EOF
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
if { (eval echo "$as_me:14828: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14831: \$? = $ac_status" >&5
  (exit $ac_status); } &&
  test -f conftest2.$ac_objext && { (eval echo "$as_me:14833: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14836: \$? = $ac_status" >&5
  (exit $ac_status); };
then
  eval cf_cv_prog_CXX_c_o=yes
else
  eval cf_cv_prog_CXX_c_o=no
fi
rm -f conftest*

fi
if test $cf_cv_prog_CXX_c_o = yes; then
  echo "$as_me:14847: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:14850: result: no" >&5
echo "${ECHO_T}no" >&6
fi

	case $GXX_VERSION in
	1*|2.0-6*)
		cf_cxx_library=yes
		;;
	*-2.7*|2.7*)

cf_cxx_library=unknown
case $cf_cv_system_name in #(vi
os2*) #(vi
	cf_gpp_libname=gpp
	;;
*)
	cf_gpp_libname=g++
	;;
esac
if test "$GXX" = yes; then
	echo "$as_me:14870: checking for lib$cf_gpp_libname" >&5
echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
	cf_save="$LIBS"
	LIBS="$LIBS -l$cf_gpp_libname"
	cat >conftest.$ac_ext <<_ACEOF
#line 14875 "configure"
#include "confdefs.h"

#include <$cf_gpp_libname/builtin.h>

int
main ()
{
two_arg_error_handler_t foo2 = lib_error_handler
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14889: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14892: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14895: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14898: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cxx_library=yes
	 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
	 if test "$cf_gpp_libname" = cpp ; then
	    cat >>confdefs.h <<\EOF
#define HAVE_GPP_BUILTIN_H 1
EOF

	 else
	    cat >>confdefs.h <<\EOF
#define HAVE_GXX_BUILTIN_H 1
EOF

	 fi
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 14917 "configure"
#include "confdefs.h"

#include <builtin.h>

int
main ()
{
two_arg_error_handler_t foo2 = lib_error_handler
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14931: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14934: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14937: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14940: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cxx_library=yes
	 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
	 cat >>confdefs.h <<\EOF
#define HAVE_BUILTIN_H 1
EOF

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cxx_library=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	LIBS="$cf_save"
	echo "$as_me:14957: result: $cf_cxx_library" >&5
echo "${ECHO_T}$cf_cxx_library" >&6
fi

		;;
	*)
		cf_cxx_library=no
		;;
	esac

	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return
echo "$as_me:14973: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
if test -z "$CXXCPP"; then
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 14990 "configure"
#include "confdefs.h"
#include <assert.h>
                     Syntax error
_ACEOF
if { (eval echo "$as_me:14995: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:15001: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 15024 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:15028: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:15034: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
echo "$as_me:15071: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 15081 "configure"
#include "confdefs.h"
#include <assert.h>
                     Syntax error
_ACEOF
if { (eval echo "$as_me:15086: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:15092: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 15115 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:15119: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:15125: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:15153: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

for ac_header in iostream typeinfo
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:15168: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15174 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:15178: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:15184: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:15203: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF

fi
done

    if test x"$ac_cv_header_iostream" = xyes ; then
        echo "$as_me:15214: checking if iostream uses std-namespace" >&5
echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
        cat >conftest.$ac_ext <<_ACEOF
#line 15217 "configure"
#include "confdefs.h"

#include <iostream>
using std::endl;
using std::cerr;
int
main ()
{

cerr << "testing" << endl;

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15234: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15237: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:15240: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15243: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_iostream_namespace=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_iostream_namespace=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
        echo "$as_me:15252: result: $cf_iostream_namespace" >&5
echo "${ECHO_T}$cf_iostream_namespace" >&6
        if test "$cf_iostream_namespace" = yes ; then
            cat >>confdefs.h <<\EOF
#define IOSTREAM_NAMESPACE 1
EOF

        fi
    fi

echo "$as_me:15262: checking if we should include stdbool.h" >&5
echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6

if test "${cf_cv_header_stdbool_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 15270 "configure"
#include "confdefs.h"

int
main ()
{
bool foo = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15282: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15285: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:15288: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15291: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_header_stdbool_h=0
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 15298 "configure"
#include "confdefs.h"

#ifndef __BEOS__
#include <stdbool.h>
#endif

int
main ()
{
bool foo = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15314: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15317: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:15320: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15323: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_header_stdbool_h=1
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_header_stdbool_h=0
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

if test "$cf_cv_header_stdbool_h" = 1
then	echo "$as_me:15337: result: yes" >&5
echo "${ECHO_T}yes" >&6
else	echo "$as_me:15339: result: no" >&5
echo "${ECHO_T}no" >&6
fi

echo "$as_me:15343: checking for builtin bool type" >&5
echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6

if test "${cf_cv_builtin_bool+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 15351 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <sys/types.h>

int
main ()
{
bool x = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15366: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15369: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:15372: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15375: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_builtin_bool=1
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_builtin_bool=0
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi

if test "$cf_cv_builtin_bool" = 1
then	echo "$as_me:15388: result: yes" >&5
echo "${ECHO_T}yes" >&6
else	echo "$as_me:15390: result: no" >&5
echo "${ECHO_T}no" >&6
fi

echo "$as_me:15394: checking for size of bool" >&5
echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
if test "${cf_cv_type_of_bool+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	rm -f cf_test.out
	if test "$cross_compiling" = yes; then
  cf_cv_type_of_bool=unknown
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15405 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdio.h>

#if defined(__cplusplus)

#ifdef HAVE_GXX_BUILTIN_H
#include <g++/builtin.h>
#elif HAVE_GPP_BUILTIN_H
#include <gpp/builtin.h>
#elif HAVE_BUILTIN_H
#include <builtin.h>
#endif

#else

#if $cf_cv_header_stdbool_h
#include <stdbool.h>
#endif

#endif

main()
{
	FILE *fp = fopen("cf_test.out", "w");
	if (fp != 0) {
		bool x = true;
		if ((bool)(-x) >= 0)
			fputs("unsigned ", fp);
		if (sizeof(x) == sizeof(int))       fputs("int",  fp);
		else if (sizeof(x) == sizeof(char)) fputs("char", fp);
		else if (sizeof(x) == sizeof(short))fputs("short",fp);
		else if (sizeof(x) == sizeof(long)) fputs("long", fp);
		fclose(fp);
	}
	${cf_cv_main_return:-return}(0);
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:15447: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15450: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:15452: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15455: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_type_of_bool=`cat cf_test.out`
		 if test -z "$cf_cv_type_of_bool"; then
		   cf_cv_type_of_bool=unknown
		 fi
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_type_of_bool=unknown
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

fi

	rm -f cf_test.out
echo "$as_me:15473: result: $cf_cv_type_of_bool" >&5
echo "${ECHO_T}$cf_cv_type_of_bool" >&6
if test "$cf_cv_type_of_bool" = unknown ; then
	case .$NCURSES_BOOL in #(vi
	.auto|.) NCURSES_BOOL=unsigned;;
	esac
	{ echo "$as_me:15479: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
	cf_cv_type_of_bool=$NCURSES_BOOL
fi

echo "$as_me:15484: checking for special defines needed for etip.h" >&5
echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
cf_save_CXXFLAGS="$CXXFLAGS"
cf_result="none"
for cf_math in "" MATH_H
do
for cf_excp in "" MATH_EXCEPTION
do
	CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
	test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
	test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
cat >conftest.$ac_ext <<_ACEOF
#line 15496 "configure"
#include "confdefs.h"

#include <etip.h.in>

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15510: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15513: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:15516: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15519: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

	test -n "$cf_math" && cat >>confdefs.h <<EOF
#define ETIP_NEEDS_${cf_math} 1
EOF

	test -n "$cf_excp" && cat >>confdefs.h <<EOF
#define ETIP_NEEDS_${cf_excp} 1
EOF

	cf_result="$cf_math $cf_excp"
	break

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
done
echo "$as_me:15540: result: $cf_result" >&5
echo "${ECHO_T}$cf_result" >&6
CXXFLAGS="$cf_save_CXXFLAGS"

if test -n "$CXX"; then
echo "$as_me:15545: checking if $CXX accepts parameter initialization" >&5
echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
if test "${cf_cv_cpp_param_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

	if test "$cross_compiling" = yes; then
  cf_cv_cpp_param_init=unknown
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15562 "configure"
#include "confdefs.h"

class TEST {
private:
	int value;
public:
	TEST(int x = 1);
	~TEST();
};

TEST::TEST(int x = 1)	// some compilers do not like second initializer
{
	value = x;
}
void main() { }

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:15581: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15584: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:15586: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15589: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_cpp_param_init=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_cpp_param_init=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

fi
echo "$as_me:15608: result: $cf_cv_cpp_param_init" >&5
echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
fi
test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
#define CPP_HAS_PARAM_INIT 1
EOF

if test -n "$CXX"; then

echo "$as_me:15617: checking if $CXX accepts static_cast" >&5
echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
if test "${cf_cv_cpp_static_cast+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

	cat >conftest.$ac_ext <<_ACEOF
#line 15631 "configure"
#include "confdefs.h"

class NCursesPanel
{
public:
  NCursesPanel(int nlines,
	       int ncols,
	       int begin_y = 0,
	       int begin_x = 0)
  {
  }

  ~NCursesPanel();
};

template<class T> class NCursesUserPanel : public NCursesPanel
{
public:
  NCursesUserPanel (int nlines,
		    int ncols,
		    int begin_y = 0,
		    int begin_x = 0,
		    const T* p_UserData = static_cast<T*>(0))
    : NCursesPanel (nlines, ncols, begin_y, begin_x)
  {
  };
  NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
  {
  };

  virtual ~NCursesUserPanel() {};
};

int
main ()
{

	const char* p_UserData = static_cast<char*>(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:15675: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:15678: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:15681: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15684: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_cpp_static_cast=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_cpp_static_cast=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

fi
echo "$as_me:15702: result: $cf_cv_cpp_static_cast" >&5
echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6

fi

test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
#define CPP_HAS_STATIC_CAST 1
EOF

	CXX_AR='$(AR)'
	CXX_AR_OPTS='$(AR_OPTS)'
	case $cf_cv_system_name in #(vi
	irix*) #(vi
	    if test "$GXX" != yes ; then
		CXX_AR='$(CXX)'
		CXX_AR_OPTS='-ar -o'
	    fi
	    ;;
	sco3.2v5*) #(vi
	    CXXLDFLAGS="-u main"
	    ;;
	solaris2*)
	    if test "$GXX" != yes ; then
		CXX_AR='$(CXX)'
		CXX_AR_OPTS='-xar -o'
	    fi
	    ;;
	esac

else
	cf_cxx_library=no
	cf_cv_builtin_bool=1

	# Just because we are not configuring against C++ right now does not
	# mean that a user will not want to use C++.  Some distributors disable
	# the C++ portion of this configuration as a shortcut (or just to avoid
	# compiling the demo in the c++ directory).  So we need a reasonable
	# default for the 'bool' type.
	#
	# Caveat: since the storage of the bool type is not standardized, it
	# may change.

	if test "$NCURSES_BOOL" != auto ; then
		cf_cv_type_of_bool=$NCURSES_BOOL
		cf_cv_header_stdbool_h=0
	else
		if test "$cf_cv_header_stdbool_h" = 1 ; then

echo "$as_me:15750: checking for size of bool" >&5
echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
if test "${cf_cv_type_of_bool+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	rm -f cf_test.out
	if test "$cross_compiling" = yes; then
  cf_cv_type_of_bool=unknown
else
  cat >conftest.$ac_ext <<_ACEOF
#line 15761 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdio.h>

#if defined(__cplusplus)

#ifdef HAVE_GXX_BUILTIN_H
#include <g++/builtin.h>
#elif HAVE_GPP_BUILTIN_H
#include <gpp/builtin.h>
#elif HAVE_BUILTIN_H
#include <builtin.h>
#endif

#else

#if $cf_cv_header_stdbool_h
#include <stdbool.h>
#endif

#endif

main()
{
	FILE *fp = fopen("cf_test.out", "w");
	if (fp != 0) {
		bool x = true;
		if ((bool)(-x) >= 0)
			fputs("unsigned ", fp);
		if (sizeof(x) == sizeof(int))       fputs("int",  fp);
		else if (sizeof(x) == sizeof(char)) fputs("char", fp);
		else if (sizeof(x) == sizeof(short))fputs("short",fp);
		else if (sizeof(x) == sizeof(long)) fputs("long", fp);
		fclose(fp);
	}
	${cf_cv_main_return:-return}(0);
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:15803: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:15806: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:15808: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:15811: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_type_of_bool=`cat cf_test.out`
		 if test -z "$cf_cv_type_of_bool"; then
		   cf_cv_type_of_bool=unknown
		 fi
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_type_of_bool=unknown
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

fi

	rm -f cf_test.out
echo "$as_me:15829: result: $cf_cv_type_of_bool" >&5
echo "${ECHO_T}$cf_cv_type_of_bool" >&6
if test "$cf_cv_type_of_bool" = unknown ; then
	case .$NCURSES_BOOL in #(vi
	.auto|.) NCURSES_BOOL=unsigned;;
	esac
	{ echo "$as_me:15835: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
	cf_cv_type_of_bool=$NCURSES_BOOL
fi

		else
			echo "$as_me:15841: checking for fallback type of bool" >&5
echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
			case "$host_cpu" in #(vi
			i?86)	cf_cv_type_of_bool=char	;; #(vi
			*)	cf_cv_type_of_bool=int	;;
			esac
			echo "$as_me:15847: result: $cf_cv_type_of_bool" >&5
echo "${ECHO_T}$cf_cv_type_of_bool" >&6
		fi
	fi
fi

# If the C compiler did not declare bool, and we did not determine that the C++
# compiler does not declare bool, turn on an ifdef in curses.h that makes the
# ncurses library use the same type as C++ bool.  Note that this allows one to
# specify the type of bool in a configure-script option and postpone
# integration with the C++ compiler provided that the types are compatible.
USE_CXX_BOOL=1
if test $cf_cv_cc_bool_type = 1
then
	# oops: C has a bool.  Unlikely, but C++ could differ.
	USE_CXX_BOOL=0
elif test $cf_cv_builtin_bool = 0
then
	# C++ has no bool
	USE_CXX_BOOL=0
else
	# this is the normal case
	USE_CXX_BOOL='defined(__cplusplus)'
fi

if test -f "${srcdir}/Ada95/Makefile.in" ; then

if test "$cf_with_ada" != "no" ; then
    if test "$with_libtool" != "no"; then
	{ echo "$as_me:15876: WARNING: libtool does not support Ada - disabling feature" >&5
echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
	cf_with_ada=no
    fi
fi

if test "$cf_with_ada" != "no" ; then
cf_ada_make=gnatmake
# Extract the first word of "$cf_ada_make", so it can be a program name with args.
set dummy $cf_ada_make; ac_word=$2
echo "$as_me:15886: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_gnat_exists+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$gnat_exists"; then
  ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_gnat_exists="yes"
echo "$as_me:15901: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
fi
fi
gnat_exists=$ac_cv_prog_gnat_exists
if test -n "$gnat_exists"; then
  echo "$as_me:15910: result: $gnat_exists" >&5
echo "${ECHO_T}$gnat_exists" >&6
else
  echo "$as_me:15913: result: no" >&5
echo "${ECHO_T}no" >&6
fi

if test "$ac_cv_prog_gnat_exists" = no; then
   cf_ada_make=
else

echo "$as_me:15921: checking for gnat version" >&5
echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
  sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
echo "$as_me:15925: result: $cf_gnat_version" >&5
echo "${ECHO_T}$cf_gnat_version" >&6

case $cf_gnat_version in
  3.1[1-9]*|3.[2-9]*|[4-9].*)
    cf_cv_prog_gnat_correct=yes
    ;;
  *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
     cf_cv_prog_gnat_correct=no
     ;;
esac
case $cf_gnat_version in
  3.[1-9]*|[4-9].*)
      cf_compile_generics=generics
      cf_generic_objects="\${GENOBJS}"
      ;;
  *)  cf_compile_generics=
      cf_generic_objects=
      ;;
esac

   # Extract the first word of "m4", so it can be a program name with args.
set dummy m4; ac_word=$2
echo "$as_me:15948: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_M4_exists+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$M4_exists"; then
  ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_M4_exists="yes"
echo "$as_me:15963: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
fi
fi
M4_exists=$ac_cv_prog_M4_exists
if test -n "$M4_exists"; then
  echo "$as_me:15972: result: $M4_exists" >&5
echo "${ECHO_T}$M4_exists" >&6
else
  echo "$as_me:15975: result: no" >&5
echo "${ECHO_T}no" >&6
fi

   if test "$ac_cv_prog_M4_exists" = no; then
      cf_cv_prog_gnat_correct=no
      echo Ada95 binding required program m4 not found. Ada95 binding disabled.
   fi
   if test "$cf_cv_prog_gnat_correct" = yes; then
      echo "$as_me:15984: checking if GNAT works" >&5
echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6

rm -f conftest*
cat >>conftest.ads <<CF_EOF
procedure conftest;
CF_EOF
cat >>conftest.adb <<CF_EOF
with Text_IO;
with GNAT.OS_Lib;
procedure conftest is
begin
   Text_IO.Put ("Hello World");
   Text_IO.New_Line;
   GNAT.OS_Lib.OS_Exit (0);
end conftest;
CF_EOF
if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
   if ( ./conftest 1>&5 2>&1 ) ; then
      cf_cv_prog_gnat_correct=yes
   else
      cf_cv_prog_gnat_correct=no
   fi
else
   cf_cv_prog_gnat_correct=no
fi
rm -f conftest*

      echo "$as_me:16012: result: $cf_cv_prog_gnat_correct" >&5
echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
   fi
fi
if test	"$cf_cv_prog_gnat_correct" = yes; then
   ADAFLAGS="-O3 -gnatpn $ADAFLAGS"

   echo "$as_me:16019: checking if GNAT pragma Unreferenced works" >&5
echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6

rm -f conftest*
cat >>conftest.ads <<CF_EOF
procedure conftest;
CF_EOF
cat >>conftest.adb <<CF_EOF
with Text_IO;
with GNAT.OS_Lib;
procedure conftest is
   test : Integer;
   pragma Unreferenced (test);
begin
   test := 1;
   Text_IO.Put ("Hello World");
   Text_IO.New_Line;
   GNAT.OS_Lib.OS_Exit (0);
end conftest;
CF_EOF
if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
      cf_cv_pragma_unreferenced=yes
else
   cf_cv_pragma_unreferenced=no
fi
rm -f conftest*

   echo "$as_me:16046: result: $cf_cv_pragma_unreferenced" >&5
echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6

   # if the pragma is supported, use it (needed in the Trace code).
   if test $cf_cv_pragma_unreferenced = yes ; then
      PRAGMA_UNREF=TRUE
   else
      PRAGMA_UNREF=FALSE
   fi

# Check whether --with-ada-compiler or --without-ada-compiler was given.
if test "${with_ada_compiler+set}" = set; then
  withval="$with_ada_compiler"
  cf_ada_compiler=$withval
else
  cf_ada_compiler=gnatmake
fi;

   cf_ada_package=terminal_interface

# Check whether --with-ada-include or --without-ada-include was given.
if test "${with_ada_include+set}" = set; then
  withval="$with_ada_include"

else
  withval="${ADA_INCLUDE-$prefix/lib/ada/adainclude}"
fi; if test -n "$prefix/lib/ada/adainclude" ; then

if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
fi

case ".$withval" in #(vi
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
  ;;
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  ;;
.\${*prefix}*) #(vi
  eval withval="$withval"
  case ".$withval" in #(vi
  .NONE/*)
    withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
    ;;
  esac
  ;; #(vi
.no|.NONE/*)
  withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
  ;;
*)
  { { echo "$as_me:16099: error: expected a pathname, not \"$withval\"" >&5
echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
   { (exit 1); exit 1; }; }
  ;;
esac

fi
ADA_INCLUDE="$withval"

# Check whether --with-ada-objects or --without-ada-objects was given.
if test "${with_ada_objects+set}" = set; then
  withval="$with_ada_objects"

else
  withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
fi; if test -n "$prefix/lib/ada/adalib" ; then

if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
fi

case ".$withval" in #(vi
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
  ;;
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  ;;
.\${*prefix}*) #(vi
  eval withval="$withval"
  case ".$withval" in #(vi
  .NONE/*)
    withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
    ;;
  esac
  ;; #(vi
.no|.NONE/*)
  withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
  ;;
*)
  { { echo "$as_me:16141: error: expected a pathname, not \"$withval\"" >&5
echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
   { (exit 1); exit 1; }; }
  ;;
esac

fi
ADA_OBJECTS="$withval"

fi
fi
else
   cf_with_ada=no
fi

### Construct the ncurses library-subsets, if any, from this set of keywords:
###	none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
###
### ticlib modules may be a separate library, otherwise contained in termlib.
### termlib modules may be a separate library, otherwise contained in ncurses.
###
### The of "+" or " " between the tokens controls the way the script
### chooses to split module lists into libraries.
###
### (see CF_LIB_RULES).
echo "$as_me:16166: checking for library subsets" >&5
echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
LIB_SUBSETS=

if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
	LIB_SUBSETS="${LIB_SUBSETS}ticlib"
	if test "$with_ticlib" != no ; then
		LIB_SUBSETS="${LIB_SUBSETS} "
	else
		LIB_SUBSETS="${LIB_SUBSETS}+"
	fi
fi

LIB_SUBSETS="${LIB_SUBSETS}termlib"
test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
if test "$with_termlib" != no ; then
	LIB_SUBSETS="${LIB_SUBSETS} "
else
	LIB_SUBSETS="${LIB_SUBSETS}+"
fi

LIB_SUBSETS="${LIB_SUBSETS}base"
test "$with_widec"     = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"

echo "$as_me:16191: result: $LIB_SUBSETS" >&5
echo "${ECHO_T}$LIB_SUBSETS" >&6

### Construct the list of include-directories to be generated

CPPFLAGS="-I. -I../include $CPPFLAGS"
if test "$srcdir" != "."; then
	CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
fi
if test "$GCC" != yes; then
	CPPFLAGS="$CPPFLAGS -I\${includedir}"
elif test "$includedir" != "/usr/include"; then
	if test "$includedir" = '${prefix}/include' ; then
		if test $prefix != /usr ; then
			CPPFLAGS="$CPPFLAGS -I\${includedir}"
		fi
	else
		CPPFLAGS="$CPPFLAGS -I\${includedir}"
	fi
fi

ACPPFLAGS="-I. -I../../include $ACPPFLAGS"
if test "$srcdir" != "."; then
	ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
fi
if test "$GCC" != yes; then
	ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
elif test "$includedir" != "/usr/include"; then
	if test "$includedir" = '${prefix}/include' ; then
		if test $prefix != /usr ; then
			ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
		fi
	else
		ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
	fi
fi

### Build up pieces for makefile rules
echo "$as_me:16229: checking default library suffix" >&5
echo $ECHO_N "checking default library suffix... $ECHO_C" >&6

	case $DFT_LWR_MODEL in
	libtool) DFT_ARG_SUFFIX=''   ;;
	normal)  DFT_ARG_SUFFIX=''   ;;
	debug)   DFT_ARG_SUFFIX='_g' ;;
	profile) DFT_ARG_SUFFIX='_p' ;;
	shared)  DFT_ARG_SUFFIX=''   ;;
	esac
	test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
echo "$as_me:16240: result: $DFT_ARG_SUFFIX" >&5
echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6

echo "$as_me:16243: checking default library-dependency suffix" >&5
echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6

	case $DFT_LWR_MODEL in
	libtool)
		DFT_LIB_SUFFIX='.la'
		DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
		;;
	normal)
		DFT_LIB_SUFFIX='.a'
		DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
		;;
	debug)
		DFT_LIB_SUFFIX='_g.a'
		DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
		;;
	profile)
		DFT_LIB_SUFFIX='_p.a'
		DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
		;;
	shared)
		case $cf_cv_system_name in
		cygwin*)
			DFT_LIB_SUFFIX='.dll'
			DFT_DEP_SUFFIX='.dll.a'
			;;
		darwin*)
			DFT_LIB_SUFFIX='.dylib'
			DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
			;;
		hpux*)
			case $target in
			ia64*)
				DFT_LIB_SUFFIX='.so'
				DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
				;;
			*)
				DFT_LIB_SUFFIX='.sl'
				DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
				;;
			esac
			;;
		*)	DFT_LIB_SUFFIX='.so'
			DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
			;;
		esac
	esac
	test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
	test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
echo "$as_me:16292: result: $DFT_DEP_SUFFIX" >&5
echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6

echo "$as_me:16295: checking default object directory" >&5
echo $ECHO_N "checking default object directory... $ECHO_C" >&6

	case $DFT_LWR_MODEL in
	libtool) DFT_OBJ_SUBDIR='obj_lo'  ;;
	normal)  DFT_OBJ_SUBDIR='objects' ;;
	debug)   DFT_OBJ_SUBDIR='obj_g' ;;
	profile) DFT_OBJ_SUBDIR='obj_p' ;;
	shared)
		case $cf_cv_system_name in #(vi
		cygwin) #(vi
			DFT_OBJ_SUBDIR='objects' ;;
		*)
			DFT_OBJ_SUBDIR='obj_s' ;;
		esac
	esac
echo "$as_me:16311: result: $DFT_OBJ_SUBDIR" >&5
echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6

# libtool thinks it can make c++ shared libraries (perhaps only g++)
if test "$cf_with_cxx" = yes ; then
echo "$as_me:16316: checking c++ library-dependency suffix" >&5
echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
if test "$with_libtool" != "no"; then
	CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
else

	case normal in
	libtool)
		CXX_LIB_SUFFIX='.la'
		CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
		;;
	normal)
		CXX_LIB_SUFFIX='.a'
		CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
		;;
	debug)
		CXX_LIB_SUFFIX='_g.a'
		CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
		;;
	profile)
		CXX_LIB_SUFFIX='_p.a'
		CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
		;;
	shared)
		case $cf_cv_system_name in
		cygwin*)
			CXX_LIB_SUFFIX='.dll'
			CXX_DEP_SUFFIX='.dll.a'
			;;
		darwin*)
			CXX_LIB_SUFFIX='.dylib'
			CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
			;;
		hpux*)
			case $target in
			ia64*)
				CXX_LIB_SUFFIX='.so'
				CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
				;;
			*)
				CXX_LIB_SUFFIX='.sl'
				CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
				;;
			esac
			;;
		*)	CXX_LIB_SUFFIX='.so'
			CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
			;;
		esac
	esac
	test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
	test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
fi
echo "$as_me:16369: result: $CXX_LIB_SUFFIX" >&5
echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6

fi

# do not want -ldl in build except as needed for -lncurses dependency
if test "$with_dlsym" = yes ; then
if test $DFT_LWR_MODEL = shared || \
   test $DFT_LWR_MODEL = libtool ; then

# remove dl library from $LIBS
LIBS=`echo "$LIBS" | sed -e 's/-ldl[ 	]//g' -e 's/-ldl$//'`

fi
fi
### Set up low-level terminfo dependencies for makefiles.

# TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
# do not need libdl
TICS_LIST=
if test "$with_dlsym" = yes ; then

# remove dl library from $SHLIB_LIST
TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ 	]//g' -e 's/-ldl$//'`

fi

if test "$with_ticlib" != no ; then

	if test "$with_ticlib" != yes ; then
		TICS_NAME=$with_ticlib
		TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TICS_LIB_SUFFIX="${with_ticlib}"
	else
		TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
		TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
		TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
	fi
	TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}"
else
	TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
fi

if test "$with_termlib" != no ; then

	if test "$with_termlib" != yes ; then
		TINFO_NAME=$with_termlib
		TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TINFO_LIB_SUFFIX="${with_termlib}"
	else
		TINFO_SUFFIX=${DFT_LIB_SUFFIX}
		TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
		TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
		TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
	fi

	TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
	TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
	if test "$DFT_LWR_MODEL" = "libtool"; then
		TEST_ARGS="${TEST_DEPS}"
		TEST_ARG2="${TEST_DEP2}"
		TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
	else
		TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
		TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
		TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
		TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
		SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
	fi
else
	# the next lines are needed for linking libtic over libncurses
	TINFO_NAME=${LIB_NAME}
	TINFO_SUFFIX=${DFT_LIB_SUFFIX}
	TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
	if test "$with_tic_depends" = yes ; then
		TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
	else
		TICS_LIST="$SHLIB_LIST"
	fi

	TINFO_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
fi

if test "$DFT_LWR_MODEL" = shared ; then
	case $cf_cv_system_name in #(vi
	cygwin*)
		# "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
		TINFO_SUFFIX=.dll
		;;
	esac
fi

if test "$with_dlsym" = yes ; then

# remove dl library from $TICS_LIST
TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ 	]//g' -e 's/-ldl$//'`

fi

if test "$DFT_LWR_MODEL" = "libtool"; then
    OBJEXT=lo
fi

# needed for Ada95
TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`

case $DFT_LWR_MODEL in
normal|debug|profile)

if test "$GCC" = yes ; then
	case $cf_cv_system_name in #(
	OS/2*|os2*|aix[45]*) 	#( vi
		LDFLAGS_STATIC=
		LDFLAGS_SHARED=
		;;
    *) 	#( normally, except when broken
        LDFLAGS_STATIC=-static
        LDFLAGS_SHARED=-dynamic
        ;;
    esac
else
	case $cf_cv_system_name in #(
	aix[45]*) 	#( from ld manpage
		LDFLAGS_STATIC=-bstatic
		LDFLAGS_SHARED=-bdynamic
		;;
	hpux*)		#( from ld manpage for hpux10.20, hpux11.11
		# We could also use just "archive" and "shared".
		LDFLAGS_STATIC=-Wl,-a,archive_shared
		LDFLAGS_SHARED=-Wl,-a,shared_archive
		;;
	irix*)		#( from ld manpage IRIX64
		LDFLAGS_STATIC=-Bstatic
		LDFLAGS_SHARED=-Bdynamic
		;;
	osf[45]*)	#( from ld manpage osf4.0d, osf5.1
		# alternative "-oldstyle_liblookup" (not in cc manpage)
		LDFLAGS_STATIC=-noso
		LDFLAGS_SHARED=-so_archive
		;;
	solaris2*)
		LDFLAGS_STATIC=-Bstatic
		LDFLAGS_SHARED=-Bdynamic
		;;
	esac
fi

	;;
esac

echo "$as_me:16522: checking where we will install curses.h" >&5
echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
test "$with_overwrite" = no && \
test "x$includedir" = 'x${prefix}/include' && \
	includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
echo "$as_me:16527: result: $includedir" >&5
echo "${ECHO_T}$includedir" >&6

### Resolve a conflict between normal and wide-curses by forcing applications
### that will need libutf8 to add it to their configure script.
if test "$with_overwrite" != no ; then
if test "$NCURSES_LIBUTF8" = 1 ; then
	NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
	{ echo "$as_me:16535: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
fi
fi

# used to separate tack out of the tree
NCURSES_TREE=

### predefined stuff for the test programs
cat >>confdefs.h <<\EOF
#define HAVE_SLK_COLOR 1
EOF

### Construct the list of subdirectories for which we'll customize makefiles
### with the appropriate compile-rules.

echo "$as_me:16551: checking for src modules" >&5
echo $ECHO_N "checking for src modules... $ECHO_C" >&6

# dependencies and linker-arguments for test-programs
TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
if test "$DFT_LWR_MODEL" = "libtool"; then
	TEST_ARGS="${TEST_DEPS}"
	TEST_ARG2="${TEST_DEP2}"
else
	TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
	TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
fi

cf_cv_src_modules=
for cf_dir in $modules_to_build
do
	if test -f $srcdir/$cf_dir/modules; then

		# We may/may not have tack in the distribution, though the
		# makefile is.
		if test $cf_dir = tack ; then
			if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
				continue
			fi
		fi

		if test -z "$cf_cv_src_modules"; then
			cf_cv_src_modules=$cf_dir
		else
			cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
		fi

		# Make the ncurses_cfg.h file record the library interface files as
		# well.  These are header files that are the same name as their
		# directory.  Ncurses is the only library that does not follow
		# that pattern.
		if test $cf_dir = tack ; then
			continue
		elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then

cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`

			cat >>confdefs.h <<EOF
#define HAVE_${cf_have_include}_H 1
EOF

			cat >>confdefs.h <<EOF
#define HAVE_LIB${cf_have_include} 1
EOF

			TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
			TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
			if test "$DFT_LWR_MODEL" = "libtool"; then
				TEST_ARGS="${TEST_DEPS}"
				TEST_ARG2="${TEST_DEP2}"
			else
				TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
				TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
			fi
		fi
	fi
done
echo "$as_me:16614: result: $cf_cv_src_modules" >&5
echo "${ECHO_T}$cf_cv_src_modules" >&6

TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"

SRC_SUBDIRS="man include"
for cf_dir in $cf_cv_src_modules
do
	SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
done
SRC_SUBDIRS="$SRC_SUBDIRS test"
test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"

ADA_SUBDIRS=
if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
   SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
   ADA_SUBDIRS="gen src samples"
fi

SUB_MAKEFILES=
for cf_dir in $SRC_SUBDIRS
do
	SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
done

if test -n "$ADA_SUBDIRS"; then
   for cf_dir in $ADA_SUBDIRS
   do
      SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
   done

fi

if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
   SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses-config"
fi

DIRS_TO_MAKE="lib"
for cf_item in $cf_list_models
do

	case $cf_item in
	libtool) cf_subdir='obj_lo'  ;;
	normal)  cf_subdir='objects' ;;
	debug)   cf_subdir='obj_g' ;;
	profile) cf_subdir='obj_p' ;;
	shared)
		case $cf_cv_system_name in #(vi
		cygwin) #(vi
			cf_subdir='objects' ;;
		*)
			cf_subdir='obj_s' ;;
		esac
	esac

	for cf_item2 in $DIRS_TO_MAKE
	do
		test $cf_item2 = $cf_subdir && break
	done
	test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
done
for cf_dir in $DIRS_TO_MAKE
do
	test ! -d $cf_dir && mkdir $cf_dir
done

cat >>confdefs.h <<EOF
#define NCURSES_PATHSEP '$PATHSEP'
EOF

cat >>confdefs.h <<EOF
#define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
EOF

### Now that we're done running tests, add the compiler-warnings, if any

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in $EXTRA_CFLAGS
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

### If we're building with rpath, try to link non-standard libs that way too.
if test "$DFT_LWR_MODEL" = "shared"; then

echo "$as_me:16763: checking for updated LDFLAGS" >&5
echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
if test -n "$LDFLAGS" ; then
echo "$as_me:16766: result: maybe" >&5
echo "${ECHO_T}maybe" >&6
test -n "$verbose" && echo "	...checking LDFLAGS $LDFLAGS" 1>&6

echo "${as_me-configure}:16770: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5

test -n "$verbose" && echo "	...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6

echo "${as_me-configure}:16774: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5

case "$EXTRA_LDFLAGS" in #(vi
-Wl,-rpath,*) #(vi
	cf_rpath_hack="-Wl,-rpath,"
	;;
-R\ *)
	cf_rpath_hack="-R "
	;;
-R*)
	cf_rpath_hack="-R"
	;;
*)
	cf_rpath_hack=
	;;
esac
if test -n "$cf_rpath_hack" ; then
	cf_rpath_dst=
	for cf_rpath_src in $LDFLAGS
	do
		test -n "$verbose" && echo "	Filtering $cf_rpath_src" 1>&6

echo "${as_me-configure}:16796: testing Filtering $cf_rpath_src ..." 1>&5

		case $cf_rpath_src in #(vi
		-L*) #(vi
			if test "$cf_rpath_hack" = "-R " ; then
				cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e 's%-L%-R %'`
			else
				cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e s%-L%$cf_rpath_hack%`
			fi
			test -n "$verbose" && echo "	...Filter $cf_rpath_tmp" 1>&6

echo "${as_me-configure}:16807: testing ...Filter $cf_rpath_tmp ..." 1>&5

			EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
			;;
		esac
		cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
	done
	LDFLAGS=$cf_rpath_dst
	test -n "$verbose" && echo "	...checked LDFLAGS $LDFLAGS" 1>&6

echo "${as_me-configure}:16817: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5

	test -n "$verbose" && echo "	...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6

echo "${as_me-configure}:16821: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5

fi
else
echo "$as_me:16825: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi

### Define substitutions for header files to avoid name-pollution

if test "$cf_cv_have_tcgetattr" = yes ; then
	HAVE_TCGETATTR=1
else
	HAVE_TCGETATTR=0
fi

if test "$ac_cv_header_termio_h" = yes ; then
	HAVE_TERMIO_H=1
else
	HAVE_TERMIO_H=0
fi

if test "$ac_cv_header_termios_h" = yes ; then
	HAVE_TERMIOS_H=1
else
	HAVE_TERMIOS_H=0
fi

################################################################################
test "$use_database" = yes && SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/termcap.h include/unctrl.h $SUB_MAKEFILES Makefile"
ac_config_commands="$ac_config_commands default"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overriden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
        "s/'/'\\\\''/g;
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if cmp -s $cache_file confcache; then :; else
  if test -w $cache_file; then
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @@srcdir@@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@@srcdir@@:*/:/;
s/^\([^=]*=[ 	]*\):*/\1/;
s/:*$//;
s/^[^=]*=[ 	]*$//;
}'
fi

DEFS=-DHAVE_CONFIG_H

: ${CONFIG_STATUS=./config.status}
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ echo "$as_me:16935: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
SHELL=\${CONFIG_SHELL-$SHELL}
ac_cs_invocation="\$0 \$@@"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Name of the executable.
as_me=`echo "$0" |sed 's,.*[\\/],,'`

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

as_executable_p="test -f"

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

# NLS nuisances.
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }

# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }

exec 6>&1

_ACEOF

# Files that config.status was made for.
if test -n "$ac_config_files"; then
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_headers"; then
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_links"; then
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_commands"; then
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
fi

cat >>$CONFIG_STATUS <<\EOF

ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.

Usage: $0 [OPTIONS] [FILE]...

  -h, --help       print this help, then exit
  -V, --version    print version number, then exit
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
  --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
  --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to <bug-autoconf@@gnu.org>."
EOF

cat >>$CONFIG_STATUS <<EOF
ac_cs_version="\\
config.status
configured by $0, generated by GNU Autoconf 2.52.20080325,
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
srcdir=$srcdir
INSTALL="$INSTALL"
EOF

cat >>$CONFIG_STATUS <<\EOF
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=*)
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    shift
    set dummy "$ac_option" "$ac_optarg" ${1+"$@@"}
    shift
    ;;
  -*);;
  *) # This is not an option, so the user has probably given explicit
     # arguments.
     ac_need_defaults=false;;
  esac

  case $1 in
  # Handling of the options.
EOF
cat >>$CONFIG_STATUS <<EOF
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
EOF
cat >>$CONFIG_STATUS <<\EOF
  --version | --vers* | -V )
    echo "$ac_cs_version"; exit 0 ;;
  --he | --h)
    # Conflict between --help and --header
    { { echo "$as_me:17111: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit 0 ;;
  --debug | --d* | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    shift
    CONFIG_FILES="$CONFIG_FILES $1"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    shift
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
    ac_need_defaults=false;;

  # This is an error.
  -*) { { echo "$as_me:17130: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; } ;;

  *) ac_config_targets="$ac_config_targets $1" ;;

  esac
  shift
done

exec 5>>config.log
cat >&5 << _ACEOF

## ----------------------- ##
## Running config.status.  ##
## ----------------------- ##

This file was extended by $as_me 2.52.20080325, executed with
  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  > $ac_cs_invocation
on `(hostname || uname -n) 2>/dev/null | sed 1q`

_ACEOF
EOF

cat >>$CONFIG_STATUS <<EOF
#
# INIT-COMMANDS section.
#

### Special initialization commands, used to pass information from the
### configuration-run into config.status

AWK="$AWK"
DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
DFT_LWR_MODEL="$DFT_LWR_MODEL"
ECHO_LINK="$ECHO_LINK"
LDCONFIG="$LDCONFIG"
LIB_NAME="$LIB_NAME"
LIB_SUBSETS="$LIB_SUBSETS"
LIB_SUFFIX="$LIB_SUFFIX"
LIB_TRACING="$LIB_TRACING"
MAKE_TERMINFO="$MAKE_TERMINFO"
NCURSES_MAJOR="$NCURSES_MAJOR"
NCURSES_MINOR="$NCURSES_MINOR"
NCURSES_OSPEED="$NCURSES_OSPEED"
NCURSES_PATCH="$NCURSES_PATCH"
SRC_SUBDIRS="$SRC_SUBDIRS"
TERMINFO="$TERMINFO"
TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
TINFO_NAME="$TINFO_NAME"
TINFO_SUFFIX="$TINFO_SUFFIX"
TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
TICS_NAME="$TICS_NAME"
WITH_CURSES_H="$with_curses_h"
WITH_ECHO="$with_echo"
WITH_OVERWRITE="$with_overwrite"
cf_LIST_MODELS="$cf_list_models"
cf_cv_abi_version="$cf_cv_abi_version"
cf_cv_do_relink="$cf_cv_do_relink"
cf_cv_do_symlinks="$cf_cv_do_symlinks"
cf_cv_enable_lp64="$cf_cv_enable_lp64"
cf_cv_enable_opaque="$cf_cv_enable_opaque"
cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
cf_cv_rel_version="$cf_cv_rel_version"
cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
cf_cv_shared_soname='$cf_cv_shared_soname'
cf_cv_shlib_version="$cf_cv_shlib_version"
cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
cf_cv_system_name="$cf_cv_system_name"
cf_with_cxx_binding="$cf_with_cxx_binding"
host="$host"
target="$target"

EOF

cat >>$CONFIG_STATUS <<\EOF
for ac_config_target in $ac_config_targets
do
  case "$ac_config_target" in
  # Handling of arguments.
  "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
  "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
  "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
  "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
  "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
  *) { { echo "$as_me:17227: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   { (exit 1); exit 1; }; };;
  esac
done

# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  trap '{ (exit 1); exit 1; }' 1 2 13 15
}

# Create a (secure) tmp directory for tmp files.
: ${TMPDIR=/tmp}
{
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=$TMPDIR/cs$$-$RANDOM
  (umask 077 && mkdir $tmp)
} ||
{
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   { (exit 1); exit 1; }
}

EOF

cat >>$CONFIG_STATUS <<EOF

#
# CONFIG_FILES section.
#

# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
  # Protect against being on the right side of a sed subst in config.status.
  sed 's/,@@/@@@@/; s/@@,/@@@@/; s/,;t t\$/@@;t t/; /@@;t t\$/s/[\\\\&,]/\\\\&/g;
   s/@@@@/,@@/; s/@@@@/@@,/; s/@@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@@SHELL@@,$SHELL,;t t
s,@@exec_prefix@@,$exec_prefix,;t t
s,@@prefix@@,$prefix,;t t
s,@@program_transform_name@@,$program_transform_name,;t t
s,@@bindir@@,$bindir,;t t
s,@@sbindir@@,$sbindir,;t t
s,@@libexecdir@@,$libexecdir,;t t
s,@@datadir@@,$datadir,;t t
s,@@sysconfdir@@,$sysconfdir,;t t
s,@@sharedstatedir@@,$sharedstatedir,;t t
s,@@localstatedir@@,$localstatedir,;t t
s,@@libdir@@,$libdir,;t t
s,@@includedir@@,$includedir,;t t
s,@@oldincludedir@@,$oldincludedir,;t t
s,@@infodir@@,$infodir,;t t
s,@@mandir@@,$mandir,;t t
s,@@PACKAGE_NAME@@,$PACKAGE_NAME,;t t
s,@@PACKAGE_TARNAME@@,$PACKAGE_TARNAME,;t t
s,@@PACKAGE_VERSION@@,$PACKAGE_VERSION,;t t
s,@@PACKAGE_STRING@@,$PACKAGE_STRING,;t t
s,@@PACKAGE_BUGREPORT@@,$PACKAGE_BUGREPORT,;t t
s,@@build_alias@@,$build_alias,;t t
s,@@host_alias@@,$host_alias,;t t
s,@@target_alias@@,$target_alias,;t t
s,@@ECHO_C@@,$ECHO_C,;t t
s,@@ECHO_N@@,$ECHO_N,;t t
s,@@ECHO_T@@,$ECHO_T,;t t
s,@@PATH_SEPARATOR@@,$PATH_SEPARATOR,;t t
s,@@DEFS@@,$DEFS,;t t
s,@@LIBS@@,$LIBS,;t t
s,@@top_builddir@@,$top_builddir,;t t
s,@@EGREP@@,$EGREP,;t t
s,@@NCURSES_MAJOR@@,$NCURSES_MAJOR,;t t
s,@@NCURSES_MINOR@@,$NCURSES_MINOR,;t t
s,@@NCURSES_PATCH@@,$NCURSES_PATCH,;t t
s,@@cf_cv_rel_version@@,$cf_cv_rel_version,;t t
s,@@cf_cv_abi_version@@,$cf_cv_abi_version,;t t
s,@@cf_cv_builtin_bool@@,$cf_cv_builtin_bool,;t t
s,@@cf_cv_header_stdbool_h@@,$cf_cv_header_stdbool_h,;t t
s,@@cf_cv_type_of_bool@@,$cf_cv_type_of_bool,;t t
s,@@build@@,$build,;t t
s,@@build_cpu@@,$build_cpu,;t t
s,@@build_vendor@@,$build_vendor,;t t
s,@@build_os@@,$build_os,;t t
s,@@host@@,$host,;t t
s,@@host_cpu@@,$host_cpu,;t t
s,@@host_vendor@@,$host_vendor,;t t
s,@@host_os@@,$host_os,;t t
s,@@target@@,$target,;t t
s,@@target_cpu@@,$target_cpu,;t t
s,@@target_vendor@@,$target_vendor,;t t
s,@@target_os@@,$target_os,;t t
s,@@CC@@,$CC,;t t
s,@@CFLAGS@@,$CFLAGS,;t t
s,@@LDFLAGS@@,$LDFLAGS,;t t
s,@@CPPFLAGS@@,$CPPFLAGS,;t t
s,@@ac_ct_CC@@,$ac_ct_CC,;t t
s,@@EXEEXT@@,$EXEEXT,;t t
s,@@OBJEXT@@,$OBJEXT,;t t
s,@@CPP@@,$CPP,;t t
s,@@EXTRA_CPPFLAGS@@,$EXTRA_CPPFLAGS,;t t
s,@@PROG_EXT@@,$PROG_EXT,;t t
s,@@LDCONFIG@@,$LDCONFIG,;t t
s,@@CXX@@,$CXX,;t t
s,@@CXXFLAGS@@,$CXXFLAGS,;t t
s,@@ac_ct_CXX@@,$ac_ct_CXX,;t t
s,@@AWK@@,$AWK,;t t
s,@@INSTALL_PROGRAM@@,$INSTALL_PROGRAM,;t t
s,@@INSTALL_SCRIPT@@,$INSTALL_SCRIPT,;t t
s,@@INSTALL_DATA@@,$INSTALL_DATA,;t t
s,@@LINT@@,$LINT,;t t
s,@@LINT_OPTS@@,$LINT_OPTS,;t t
s,@@LN_S@@,$LN_S,;t t
s,@@SET_MAKE@@,$SET_MAKE,;t t
s,@@MAKE_LOWER_TAGS@@,$MAKE_LOWER_TAGS,;t t
s,@@MAKE_UPPER_TAGS@@,$MAKE_UPPER_TAGS,;t t
s,@@cf_cv_makeflags@@,$cf_cv_makeflags,;t t
s,@@RANLIB@@,$RANLIB,;t t
s,@@ac_ct_RANLIB@@,$ac_ct_RANLIB,;t t
s,@@LD@@,$LD,;t t
s,@@ac_ct_LD@@,$ac_ct_LD,;t t
s,@@AR@@,$AR,;t t
s,@@ac_ct_AR@@,$ac_ct_AR,;t t
s,@@AR_OPTS@@,$AR_OPTS,;t t
s,@@DESTDIR@@,$DESTDIR,;t t
s,@@BUILD_CC@@,$BUILD_CC,;t t
s,@@BUILD_CPP@@,$BUILD_CPP,;t t
s,@@BUILD_CFLAGS@@,$BUILD_CFLAGS,;t t
s,@@BUILD_CPPFLAGS@@,$BUILD_CPPFLAGS,;t t
s,@@BUILD_LDFLAGS@@,$BUILD_LDFLAGS,;t t
s,@@BUILD_LIBS@@,$BUILD_LIBS,;t t
s,@@BUILD_EXEEXT@@,$BUILD_EXEEXT,;t t
s,@@BUILD_OBJEXT@@,$BUILD_OBJEXT,;t t
s,@@cf_list_models@@,$cf_list_models,;t t
s,@@LIBTOOL@@,$LIBTOOL,;t t
s,@@LIBTOOL_CXX@@,$LIBTOOL_CXX,;t t
s,@@LIBTOOL_OPTS@@,$LIBTOOL_OPTS,;t t
s,@@LIB_CREATE@@,$LIB_CREATE,;t t
s,@@LIB_OBJECT@@,$LIB_OBJECT,;t t
s,@@LIB_SUFFIX@@,$LIB_SUFFIX,;t t
s,@@LIB_PREP@@,$LIB_PREP,;t t
s,@@LIB_CLEAN@@,$LIB_CLEAN,;t t
s,@@LIB_COMPILE@@,$LIB_COMPILE,;t t
s,@@LIB_LINK@@,$LIB_LINK,;t t
s,@@LIB_INSTALL@@,$LIB_INSTALL,;t t
s,@@LIB_UNINSTALL@@,$LIB_UNINSTALL,;t t
s,@@DFT_LWR_MODEL@@,$DFT_LWR_MODEL,;t t
s,@@DFT_UPR_MODEL@@,$DFT_UPR_MODEL,;t t
s,@@TICS_NAME@@,$TICS_NAME,;t t
s,@@TINFO_NAME@@,$TINFO_NAME,;t t
s,@@LIB_NAME@@,$LIB_NAME,;t t
s,@@LIB_PREFIX@@,$LIB_PREFIX,;t t
s,@@CC_G_OPT@@,$CC_G_OPT,;t t
s,@@CXX_G_OPT@@,$CXX_G_OPT,;t t
s,@@LD_MODEL@@,$LD_MODEL,;t t
s,@@CC_SHARED_OPTS@@,$CC_SHARED_OPTS,;t t
s,@@LD_SHARED_OPTS@@,$LD_SHARED_OPTS,;t t
s,@@MK_SHARED_LIB@@,$MK_SHARED_LIB,;t t
s,@@LINK_PROGS@@,$LINK_PROGS,;t t
s,@@LINK_TESTS@@,$LINK_TESTS,;t t
s,@@EXTRA_LDFLAGS@@,$EXTRA_LDFLAGS,;t t
s,@@LOCAL_LDFLAGS@@,$LOCAL_LDFLAGS,;t t
s,@@LOCAL_LDFLAGS2@@,$LOCAL_LDFLAGS2,;t t
s,@@INSTALL_LIB@@,$INSTALL_LIB,;t t
s,@@TERMINFO_SRC@@,$TERMINFO_SRC,;t t
s,@@PATHSEP@@,$PATHSEP,;t t
s,@@FALLBACK_LIST@@,$FALLBACK_LIST,;t t
s,@@WHICH_XTERM@@,$WHICH_XTERM,;t t
s,@@TERMINFO_DIRS@@,$TERMINFO_DIRS,;t t
s,@@TERMINFO@@,$TERMINFO,;t t
s,@@MAKE_TERMINFO@@,$MAKE_TERMINFO,;t t
s,@@USE_BIG_STRINGS@@,$USE_BIG_STRINGS,;t t
s,@@TERMPATH@@,$TERMPATH,;t t
s,@@BROKEN_LINKER@@,$BROKEN_LINKER,;t t
s,@@NCURSES_CH_T@@,$NCURSES_CH_T,;t t
s,@@NCURSES_LIBUTF8@@,$NCURSES_LIBUTF8,;t t
s,@@NEED_WCHAR_H@@,$NEED_WCHAR_H,;t t
s,@@NCURSES_MBSTATE_T@@,$NCURSES_MBSTATE_T,;t t
s,@@NCURSES_WCHAR_T@@,$NCURSES_WCHAR_T,;t t
s,@@NCURSES_WINT_T@@,$NCURSES_WINT_T,;t t
s,@@NCURSES_OK_WCHAR_T@@,$NCURSES_OK_WCHAR_T,;t t
s,@@NCURSES_OK_WINT_T@@,$NCURSES_OK_WINT_T,;t t
s,@@cf_cv_enable_lp64@@,$cf_cv_enable_lp64,;t t
s,@@NCURSES_TPARM_VARARGS@@,$NCURSES_TPARM_VARARGS,;t t
s,@@NCURSES_BOOL@@,$NCURSES_BOOL,;t t
s,@@TERMINFO_CAPS@@,$TERMINFO_CAPS,;t t
s,@@NCURSES_OSPEED@@,$NCURSES_OSPEED,;t t
s,@@MANPAGE_RENAMES@@,$MANPAGE_RENAMES,;t t
s,@@NCURSES_EXT_FUNCS@@,$NCURSES_EXT_FUNCS,;t t
s,@@NCURSES_CONST@@,$NCURSES_CONST,;t t
s,@@NCURSES_EXT_COLORS@@,$NCURSES_EXT_COLORS,;t t
s,@@NCURSES_MOUSE_VERSION@@,$NCURSES_MOUSE_VERSION,;t t
s,@@NCURSES_SBOOL@@,$NCURSES_SBOOL,;t t
s,@@NCURSES_XNAMES@@,$NCURSES_XNAMES,;t t
s,@@PTHREAD@@,$PTHREAD,;t t
s,@@cf_cv_enable_reentrant@@,$cf_cv_enable_reentrant,;t t
s,@@cf_cv_enable_opaque@@,$cf_cv_enable_opaque,;t t
s,@@NCURSES_OPAQUE@@,$NCURSES_OPAQUE,;t t
s,@@NCURSES_SIZE_T@@,$NCURSES_SIZE_T,;t t
s,@@ECHO_LINK@@,$ECHO_LINK,;t t
s,@@EXTRA_CFLAGS@@,$EXTRA_CFLAGS,;t t
s,@@EXTRA_CXXFLAGS@@,$EXTRA_CXXFLAGS,;t t
s,@@ADA_TRACE@@,$ADA_TRACE,;t t
s,@@MATH_LIB@@,$MATH_LIB,;t t
s,@@NCURSES_INLINE@@,$NCURSES_INLINE,;t t
s,@@cf_cv_typeof_chtype@@,$cf_cv_typeof_chtype,;t t
s,@@cf_cv_1UL@@,$cf_cv_1UL,;t t
s,@@cf_cv_typeof_mmask_t@@,$cf_cv_typeof_mmask_t,;t t
s,@@HAVE_VSSCANF@@,$HAVE_VSSCANF,;t t
s,@@TEST_LIBS@@,$TEST_LIBS,;t t
s,@@CXXCPP@@,$CXXCPP,;t t
s,@@CXXLDFLAGS@@,$CXXLDFLAGS,;t t
s,@@CXX_AR@@,$CXX_AR,;t t
s,@@CXX_AR_OPTS@@,$CXX_AR_OPTS,;t t
s,@@CXXLIBS@@,$CXXLIBS,;t t
s,@@USE_CXX_BOOL@@,$USE_CXX_BOOL,;t t
s,@@gnat_exists@@,$gnat_exists,;t t
s,@@M4_exists@@,$M4_exists,;t t
s,@@cf_ada_make@@,$cf_ada_make,;t t
s,@@cf_ada_compiler@@,$cf_ada_compiler,;t t
s,@@cf_ada_package@@,$cf_ada_package,;t t
s,@@ADAFLAGS@@,$ADAFLAGS,;t t
s,@@cf_compile_generics@@,$cf_compile_generics,;t t
s,@@cf_generic_objects@@,$cf_generic_objects,;t t
s,@@PRAGMA_UNREF@@,$PRAGMA_UNREF,;t t
s,@@ADA_INCLUDE@@,$ADA_INCLUDE,;t t
s,@@ADA_OBJECTS@@,$ADA_OBJECTS,;t t
s,@@ACPPFLAGS@@,$ACPPFLAGS,;t t
s,@@DFT_ARG_SUFFIX@@,$DFT_ARG_SUFFIX,;t t
s,@@DFT_DEP_SUFFIX@@,$DFT_DEP_SUFFIX,;t t
s,@@DFT_OBJ_SUBDIR@@,$DFT_OBJ_SUBDIR,;t t
s,@@CXX_LIB_SUFFIX@@,$CXX_LIB_SUFFIX,;t t
s,@@TICS_ARG_SUFFIX@@,$TICS_ARG_SUFFIX,;t t
s,@@TICS_DEP_SUFFIX@@,$TICS_DEP_SUFFIX,;t t
s,@@TICS_LIB_SUFFIX@@,$TICS_LIB_SUFFIX,;t t
s,@@TICS_ARGS@@,$TICS_ARGS,;t t
s,@@TINFO_ARG_SUFFIX@@,$TINFO_ARG_SUFFIX,;t t
s,@@TINFO_DEP_SUFFIX@@,$TINFO_DEP_SUFFIX,;t t
s,@@TINFO_LIB_SUFFIX@@,$TINFO_LIB_SUFFIX,;t t
s,@@TINFO_ARGS@@,$TINFO_ARGS,;t t
s,@@TINFO_ARGS2@@,$TINFO_ARGS2,;t t
s,@@LDFLAGS_STATIC@@,$LDFLAGS_STATIC,;t t
s,@@LDFLAGS_SHARED@@,$LDFLAGS_SHARED,;t t
s,@@WITH_OVERWRITE@@,$WITH_OVERWRITE,;t t
s,@@TICS_LIST@@,$TICS_LIST,;t t
s,@@TINFO_LIST@@,$TINFO_LIST,;t t
s,@@SHLIB_LIST@@,$SHLIB_LIST,;t t
s,@@NCURSES_TREE@@,$NCURSES_TREE,;t t
s,@@TEST_ARGS@@,$TEST_ARGS,;t t
s,@@TEST_DEPS@@,$TEST_DEPS,;t t
s,@@TEST_ARG2@@,$TEST_ARG2,;t t
s,@@TEST_DEP2@@,$TEST_DEP2,;t t
s,@@ADA_SUBDIRS@@,$ADA_SUBDIRS,;t t
s,@@DIRS_TO_MAKE@@,$DIRS_TO_MAKE,;t t
s,@@HAVE_TCGETATTR@@,$HAVE_TCGETATTR,;t t
s,@@HAVE_TERMIO_H@@,$HAVE_TERMIO_H,;t t
s,@@HAVE_TERMIOS_H@@,$HAVE_TERMIOS_H,;t t
CEOF

EOF

  cat >>$CONFIG_STATUS <<\EOF
  # Split the substitutions into bite-sized pieces for seds with
  # small command number limits, like on Digital OSF/1 and HP-UX.
  ac_max_sed_lines=48
  ac_sed_frag=1 # Number of current file.
  ac_beg=1 # First line for current file.
  ac_end=$ac_max_sed_lines # Line after last line for current file.
  ac_more_lines=:
  ac_sed_cmds=
  while $ac_more_lines; do
    if test $ac_beg -gt 1; then
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    else
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    fi
    if test ! -s $tmp/subs.frag; then
      ac_more_lines=false
    else
      # The purpose of the label and of the branching condition is to
      # speed up the sed processing (if there are no `@@' at all, there
      # is no need to browse any of the substitutions).
      # These are the two extra sed commands mentioned above.
      (echo ':t
  /@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
      if test -z "$ac_sed_cmds"; then
  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
      else
  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
      fi
      ac_sed_frag=`expr $ac_sed_frag + 1`
      ac_beg=$ac_end
      ac_end=`expr $ac_end + $ac_max_sed_lines`
    fi
  done
  if test -z "$ac_sed_cmds"; then
    ac_sed_cmds=cat
  fi
fi # test -n "$CONFIG_FILES"

EOF
cat >>$CONFIG_STATUS <<\EOF
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
  esac

  # Compute @@srcdir@@, @@top_srcdir@@, and @@INSTALL@@ for subdirectories.
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done; }

    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
    # A "../" for each directory in $ac_dir_suffix.
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
  else
    ac_dir_suffix= ac_dots=
  fi

  case $srcdir in
  .)  ac_srcdir=.
      if test -z "$ac_dots"; then
         ac_top_srcdir=.
      else
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
      fi ;;
  [\\/]* | ?:[\\/]* )
      ac_srcdir=$srcdir$ac_dir_suffix;
      ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_dots$srcdir ;;
  esac

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_dots$INSTALL ;;
  esac

  if test x"$ac_file" != x-; then
    { echo "$as_me:17610: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    rm -f "$ac_file"
  fi
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated automatically by config.status.  */
  configure_input="Generated automatically from `echo $ac_file_in |
                                                 sed 's,.*/,,'` by configure."

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:17628: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:17641: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
EOF
cat >>$CONFIG_STATUS <<EOF
  sed "$ac_vpsub
$extrasub
EOF
cat >>$CONFIG_STATUS <<\EOF
:t
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
s,@@configure_input@@,$configure_input,;t t
s,@@srcdir@@,$ac_srcdir,;t t
s,@@top_srcdir@@,$ac_top_srcdir,;t t
s,@@INSTALL@@,$ac_INSTALL,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  rm -f $tmp/stdin
  if test x"$ac_file" != x-; then
    mv $tmp/out $ac_file
  else
    cat $tmp/out
    rm -f $tmp/out
  fi

done
EOF
cat >>$CONFIG_STATUS <<\EOF

#
# CONFIG_HEADER section.
#

# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='[ 	].*$,\1#\2'
ac_dC=' '
ac_dD=',;t'
# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_iA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_iB='\([ 	]\),\1#\2define\3'
ac_iC=' '
ac_iD='\4,;t'
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='$,\1#\2define\3'
ac_uC=' '
ac_uD=',;t'

for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
  esac

  test x"$ac_file" != x- && { echo "$as_me:17707: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:17718: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:17731: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
  # Remove the trailing spaces.
  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in

EOF

# Transform confdefs.h into a list of #define's.  We won't use it as a sed
# script, but as data to insert where we see @@DEFS@@.  We expect AC_SAVE_DEFS to
# be either 'cat' or 'sort'.
cat confdefs.h | uniq >conftest.vals

# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.

rm -f conftest.tail
echo '  rm -f conftest.frag' >> $CONFIG_STATUS
while grep . conftest.vals >/dev/null
do
  # Write chunks of a limited-size here document to conftest.frag.
  echo '  cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
  echo 'CEOF' >> $CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  rm -f conftest.vals
  mv conftest.tail conftest.vals
done
rm -f conftest.vals

# Run sed to substitute the contents of conftest.frag into $tmp/in at the
# marker @@DEFS@@.
echo '  cat >> conftest.edit <<CEOF
/@@DEFS@@/r conftest.frag
/@@DEFS@@/d
CEOF
sed -f conftest.edit $tmp/in > $tmp/out
rm -f $tmp/in
mv $tmp/out $tmp/in
rm -f conftest.edit conftest.frag
' >> $CONFIG_STATUS

cat >>$CONFIG_STATUS <<\EOF
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated automatically by config.status.  */
  if test x"$ac_file" = x-; then
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
  else
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
  fi
  cat $tmp/in >>$tmp/config.h
  rm -f $tmp/in
  if test x"$ac_file" != x-; then
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
      { echo "$as_me:17789: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
    else
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
        { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done; }

      fi
      rm -f $ac_file
      mv $tmp/config.h $ac_file
    fi
  else
    cat $tmp/config.h
    rm -f $tmp/config.h
  fi
done
EOF
cat >>$CONFIG_STATUS <<\EOF

#
# CONFIG_COMMANDS section.
#
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`

  case $ac_dest in
    default )

for cf_dir in test
do
	if test ! -d $srcdir/$cf_dir; then
		continue
	elif test -f $srcdir/$cf_dir/programs; then
		$AWK -f $srcdir/test/mk-test.awk ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
	fi
done

	case $cf_cv_system_name in #(vi
	OS/2*|os2*) #(vi
        LIB_PREFIX=''
        ;;
	*)	LIB_PREFIX='lib'
        ;;
	esac
cf_prefix=$LIB_PREFIX

if test $cf_cv_shlib_version = cygdll ; then
	TINFO_NAME=$TINFO_ARG_SUFFIX
	TINFO_SUFFIX=.dll
fi

for cf_dir in $SRC_SUBDIRS
do
	if test ! -d $srcdir/$cf_dir ; then
		continue
	elif test -f $srcdir/$cf_dir/modules; then

		SHARED_LIB=
		LIBS_TO_MAKE=
		for cf_item in $cf_LIST_MODELS
		do

	case $cf_item in
	libtool)
		cf_suffix='.la'
		cf_depsuf=$cf_suffix
		;;
	normal)
		cf_suffix='.a'
		cf_depsuf=$cf_suffix
		;;
	debug)
		cf_suffix='_g.a'
		cf_depsuf=$cf_suffix
		;;
	profile)
		cf_suffix='_p.a'
		cf_depsuf=$cf_suffix
		;;
	shared)
		case $cf_cv_system_name in
		cygwin*)
			cf_suffix='.dll'
			cf_depsuf='.dll.a'
			;;
		darwin*)
			cf_suffix='.dylib'
			cf_depsuf=$cf_suffix
			;;
		hpux*)
			case $target in
			ia64*)
				cf_suffix='.so'
				cf_depsuf=$cf_suffix
				;;
			*)
				cf_suffix='.sl'
				cf_depsuf=$cf_suffix
				;;
			esac
			;;
		*)	cf_suffix='.so'
			cf_depsuf=$cf_suffix
			;;
		esac
	esac
	test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
	test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"

			if test $cf_item = shared ; then
			if test "$cf_cv_do_symlinks" = yes ; then
				case "$cf_cv_shlib_version" in #(vi
				rel) #(vi
					case "$cf_cv_system_name" in #(vi
					darwin*)
					case .${LIB_SUFFIX} in
					.w*)
						cf_suffix=`echo $cf_suffix | sed 's/^w//'`
						cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
						;;
					*)
						cf_suffix='.${REL_VERSION}'"$cf_suffix"
						;;
					esac
					;; #(vi
					*) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
					esac
					;;
				abi)
					case "$cf_cv_system_name" in #(vi
					darwin*)
					case .${LIB_SUFFIX} in
					.w*)
						cf_suffix=`echo $cf_suffix | sed 's/^w//'`
						cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
						;;
					*)
						cf_suffix='.${ABI_VERSION}'"$cf_suffix"
						;;
					esac
					;; #(vi
					*) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
					esac
					;;
				esac
			fi
			# cygwin needs import library, and has unique naming convention
			# use autodetected ${cf_prefix} for import lib and static lib, but
			# use 'cyg' prefix for shared lib.
			if test $cf_cv_shlib_version = cygdll ; then
				cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
				LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}"
				continue
			fi
			fi
			LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
		done

		if test $cf_dir = ncurses ; then
			cf_subsets="$LIB_SUBSETS"
			cf_r_parts="$cf_subsets"
			cf_liblist="$LIBS_TO_MAKE"

			while test -n "$cf_r_parts"
			do
				cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
				cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
				if test "$cf_l_parts" != "$cf_r_parts" ; then
					cf_item=
					case $cf_l_parts in #(vi
					*termlib*) #(vi
						cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
						;;
					*ticlib*)
						cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
						;;
					*)
						break
						;;
					esac
					if test -n "$cf_item"; then
						LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
					fi
				else
					break
				fi
			done
		else
			cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
		fi

		sed -e "s%@@LIBS_TO_MAKE@@%$LIBS_TO_MAKE%" \
		    -e "s%@@SHARED_LIB@@%$SHARED_LIB%" \
			$cf_dir/Makefile >$cf_dir/Makefile.out
		mv $cf_dir/Makefile.out $cf_dir/Makefile

		$AWK -f $srcdir/mk-0th.awk \
			libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
			$srcdir/$cf_dir/modules >>$cf_dir/Makefile

		for cf_subset in $cf_subsets
		do
			cf_subdirs=
			for cf_item in $cf_LIST_MODELS
			do
			echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"

cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`

	case $cf_item in
	libtool)
		cf_suffix='.la'
		cf_depsuf=$cf_suffix
		;;
	normal)
		cf_suffix='.a'
		cf_depsuf=$cf_suffix
		;;
	debug)
		cf_suffix='_g.a'
		cf_depsuf=$cf_suffix
		;;
	profile)
		cf_suffix='_p.a'
		cf_depsuf=$cf_suffix
		;;
	shared)
		case $cf_cv_system_name in
		cygwin*)
			cf_suffix='.dll'
			cf_depsuf='.dll.a'
			;;
		darwin*)
			cf_suffix='.dylib'
			cf_depsuf=$cf_suffix
			;;
		hpux*)
			case $target in
			ia64*)
				cf_suffix='.so'
				cf_depsuf=$cf_suffix
				;;
			*)
				cf_suffix='.sl'
				cf_depsuf=$cf_suffix
				;;
			esac
			;;
		*)	cf_suffix='.so'
			cf_depsuf=$cf_suffix
			;;
		esac
	esac
	test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
	test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"

	case $cf_item in
	libtool) cf_subdir='obj_lo'  ;;
	normal)  cf_subdir='objects' ;;
	debug)   cf_subdir='obj_g' ;;
	profile) cf_subdir='obj_p' ;;
	shared)
		case $cf_cv_system_name in #(vi
		cygwin) #(vi
			cf_subdir='objects' ;;
		*)
			cf_subdir='obj_s' ;;
		esac
	esac

			# Test for case where we build libtinfo with a different name.
			cf_libname=$cf_dir
			if test $cf_dir = ncurses ; then
				case $cf_subset in
				*base*)
					cf_libname=${cf_libname}$LIB_SUFFIX
					;;
				*termlib*)
					cf_libname=$TINFO_LIB_SUFFIX
					;;
				ticlib*)
					cf_libname=$TICS_LIB_SUFFIX
					;;
				esac
			else
				cf_libname=${cf_libname}$LIB_SUFFIX
			fi
			if test -n "${DFT_ARG_SUFFIX}" ; then
				# undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
				cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
			fi

			# These dependencies really are for development, not
			# builds, but they are useful in porting, too.
			cf_depend="../include/ncurses_cfg.h"
			if test "$srcdir" = "."; then
				cf_reldir="."
			else
				cf_reldir="\${srcdir}"
			fi

			if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
				cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
			elif test -f $srcdir/$cf_dir/curses.priv.h; then
				cf_depend="$cf_depend $cf_reldir/curses.priv.h"
			fi

 			cf_dir_suffix=
 			old_cf_suffix="$cf_suffix"
 			if test "$cf_cv_shlib_version_infix" = yes ; then
			if test -n "$LIB_SUFFIX" ; then
				case $LIB_SUFFIX in
				w*)
					cf_libname=`echo $cf_libname | sed 's/w$//'`
					cf_suffix=`echo $cf_suffix | sed 's/^w//'`
					cf_dir_suffix=w
					;;
				esac
			fi
 			fi

			$AWK -f $srcdir/mk-1st.awk \
				name=${cf_libname}${cf_dir_suffix} \
				traces=$LIB_TRACING \
				MODEL=$cf_ITEM \
				model=$cf_subdir \
				prefix=$cf_prefix \
				suffix=$cf_suffix \
				subset=$cf_subset \
				TermlibRoot=$TINFO_NAME \
				TermlibSuffix=$TINFO_SUFFIX \
				ShlibVer=$cf_cv_shlib_version \
				ShlibVerInfix=$cf_cv_shlib_version_infix \
				ReLink=${cf_cv_do_relink-no} \
				DoLinks=$cf_cv_do_symlinks \
				rmSoLocs=$cf_cv_rm_so_locs \
				ldconfig="$LDCONFIG" \
				overwrite=$WITH_OVERWRITE \
				depend="$cf_depend" \
				host="$host" \
				$srcdir/$cf_dir/modules >>$cf_dir/Makefile

			cf_suffix="$old_cf_suffix"

			for cf_subdir2 in $cf_subdirs lib
			do
				test $cf_subdir = $cf_subdir2 && break
			done
			test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
			$AWK -f $srcdir/mk-2nd.awk \
				name=$cf_dir \
				traces=$LIB_TRACING \
				MODEL=$cf_ITEM \
				model=$cf_subdir \
				subset=$cf_subset \
				srcdir=$srcdir \
				echo=$WITH_ECHO \
				crenames=$cf_cv_prog_CC_c_o \
				cxxrenames=$cf_cv_prog_CXX_c_o \
				$srcdir/$cf_dir/modules >>$cf_dir/Makefile
			cf_subdirs="$cf_subdirs $cf_subdir"
			done
		done
	fi

	echo '	cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@@' >>Makefile
done

for cf_dir in $SRC_SUBDIRS
do
	if test ! -d $srcdir/$cf_dir ; then
		continue
	fi

	if test -f $cf_dir/Makefile ; then
		case "$cf_dir" in
		Ada95) #(vi
			echo 'libs \' >> Makefile
			echo 'install.libs \' >> Makefile
			echo 'uninstall.libs ::' >> Makefile
			echo '	cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@@' >> Makefile
			;;
		esac
	fi

	if test -f $srcdir/$cf_dir/modules; then
		echo >> Makefile
		if test -f $srcdir/$cf_dir/headers; then
cat >> Makefile <<CF_EOF
install.includes \\
uninstall.includes \\
CF_EOF
		fi
if test "$cf_dir" != "c++" ; then
echo 'lint \' >> Makefile
fi
cat >> Makefile <<CF_EOF
libs \\
lintlib \\
install.libs \\
uninstall.libs \\
install.$cf_dir \\
uninstall.$cf_dir ::
	cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@@
CF_EOF
	elif test -f $srcdir/$cf_dir/headers; then
cat >> Makefile <<CF_EOF

libs \\
install.libs \\
uninstall.libs \\
install.includes \\
uninstall.includes ::
	cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@@
CF_EOF
fi
done

cat >> Makefile <<CF_EOF

install.libs uninstall.libs \\
install.data uninstall.data ::
$MAKE_TERMINFO	cd misc && \${MAKE} \${CF_MFLAGS} \$@@

install.man \\
uninstall.man ::
	cd man && \${MAKE} \${CF_MFLAGS} \$@@

distclean ::
	rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
	rm -f headers.sh headers.sed mk_shared_lib.sh
	rm -rf \${DIRS_TO_MAKE}
CF_EOF

# Special case: tack's manpage lives in its own directory.
if test -d tack ; then
if test -f $srcdir/$tack.h; then
cat >> Makefile <<CF_EOF

install.man \\
uninstall.man ::
	cd tack && \${MAKE} \${CF_MFLAGS} \$@@
CF_EOF
fi
fi

rm -f headers.sed headers.sh

echo creating headers.sh
cat >headers.sh <<CF_EOF
#! /bin/sh
# This shell script is generated by the 'configure' script.  It is invoked in a
# subdirectory of the build tree.  It generates a sed-script in the parent
# directory that is used to adjust includes for header files that reside in a
# subdirectory of /usr/include, etc.
PRG=""
while test \$# != 3
do
PRG="\$PRG \$1"; shift
done
DST=\$1
REF=\$2
SRC=\$3
TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
echo installing \$SRC in \$DST
CF_EOF

if test $WITH_CURSES_H = yes; then
	cat >>headers.sh <<CF_EOF
case \$DST in
/*/include/*)
	END=\`basename \$DST\`
	for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
	do
		NAME=\`basename \$i\`
		echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
	done
	;;
*)
	echo "" >> \$TMPSED
	;;
esac
CF_EOF

else
	cat >>headers.sh <<CF_EOF
case \$DST in
/*/include/*)
	END=\`basename \$DST\`
	for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
	do
		NAME=\`basename \$i\`
		if test "\$NAME" = "curses.h"
		then
			echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
			NAME=ncurses.h
		fi
		echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
	done
	;;
*)
	echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
	;;
esac
CF_EOF
fi
cat >>headers.sh <<CF_EOF
rm -f \$TMPSRC
sed -f \$TMPSED \$SRC > \$TMPSRC
NAME=\`basename \$SRC\`
CF_EOF
if test $WITH_CURSES_H != yes; then
	cat >>headers.sh <<CF_EOF
test "\$NAME" = "curses.h" && NAME=ncurses.h
CF_EOF
fi
cat >>headers.sh <<CF_EOF
# Just in case someone gzip'd manpages, remove the conflicting copy.
test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz

eval \$PRG \$TMPSRC \$DST/\$NAME
rm -f \$TMPSRC \$TMPSED
CF_EOF

chmod 0755 headers.sh

for cf_dir in $SRC_SUBDIRS
do
	if test ! -d $srcdir/$cf_dir ; then
		continue
	fi

	if test -f $srcdir/$cf_dir/headers; then
		$AWK -f $srcdir/mk-hdr.awk \
			subset="$LIB_SUBSETS" \
			compat="$WITH_CURSES_H" \
			$srcdir/$cf_dir/headers >>$cf_dir/Makefile
	fi

	if test -f $srcdir/$cf_dir/modules; then
		if test "$cf_dir" != "c++" ; then
			cat >>$cf_dir/Makefile <<"CF_EOF"
depend : ${AUTO_SRC}
	makedepend -- ${CPPFLAGS} -- ${C_SRC}

# DO NOT DELETE THIS LINE -- make depend depends on it.
CF_EOF
		fi
	fi
done

 ;;
  esac
done
EOF

cat >>$CONFIG_STATUS <<\EOF

{ (exit 0); exit 0; }
EOF
chmod +x $CONFIG_STATUS
ac_clean_files=$ac_clean_files_save

# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || { (exit 1); exit 1; }
fi
${MAKE-make} preinstall
@


1.1
log
@Initial revision
@
text
@d2 1
a2 4

# From configure.in Revision: 1.169 


d4 1
a4 2
# Generated automatically using autoconf version 2.13.19990117 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
d6 2
d11 86
a96 2
# Defaults:
ac_help=
d98 47
a144 1
# Any additions from configure.in:
d147 2
d151 1
a151 2
build=NONE
cache_file=./config.cache
a152 1
host=NONE
a153 1
nonopt=NONE
a161 1
target=NONE
d165 6
d184 6
a189 6
# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
a193 1

d201 1
a201 4
  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac
d205 1
a205 1
  case "$ac_option" in
d210 1
a210 1
    bindir="$ac_optarg" ;;
d213 1
a213 1
    ac_prev=build ;;
d215 1
a215 1
    build="$ac_optarg" ;;
d222 4
a225 1
    cache_file="$ac_optarg" ;;
d231 1
a231 1
    datadir="$ac_optarg" ;;
d234 1
a234 1
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
d236 5
a240 5
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    eval "enable_${ac_feature}=no" ;;
d243 1
a243 1
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
d245 6
a250 6
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
d253 1
a253 1
    eval "enable_${ac_feature}='$ac_optarg'" ;;
d262 1
a262 1
    exec_prefix="$ac_optarg" ;;
d268 6
a273 120
  -help | --help | --hel | --he)
    # Omit some internal or obsolete options to make the list less imposing.
    # This message is too long to be a string in the A/UX 3.1 sh.
    cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print \`checking...' messages
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                          [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
EOF
    cat << EOF
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
EOF
cat <<EOF
--enable and --with options recognized:
  --with-system-type=XXX  test: override derived host system-type
  --enable-add-ons=DIR... used to check if we are a glibc add-on.
  --without-cxx           suppress check for C++, don't build demo
  --without-ada           suppress check for Ada95, don't build demo
  --without-progs         suppress build with programs (e.g., tic)
  --with-install-prefix   prefixes actual install-location
Options to Specify How Manpages are Installed:
  --with-manpage-format   specify manpage-format: gzip/compress/BSDI/normal and
                          optionally formatted, e.g., gzip,formatted
  --with-manpage-renames  specify manpage-renaming
Options to Specify the Libraries Built/Used:
  --with-shared           generate shared-libraries
  --with-normal           generate normal-libraries (default)
  --with-debug            generate debug-libraries (default)
EOF
cat <<EOF
  --with-profile          generate profile-libraries
  --with-termlib          generate separate terminfo library
  --with-dbmalloc         test: use Conor Cahill's dbmalloc library
  --with-dmalloc          test: use Gray Watson's dmalloc library
  --with-gpm              use Alessandro Rubini's GPM library
  --enable-rpath          use rpath option when generating shared libraries
  --with-shlib-version=X  Specify rel or abi version for shared libs
Fine-Tuning Your Configuration:
  --disable-overwrite     leave out the link to -lcurses
  --disable-database      use only built-in data
  --disable-ext-funcs     disable function-extensions
  --with-fallbacks=XXX    specify list of fallback terminal descriptions
EOF
cat <<EOF
  --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
  --disable-big-core      assume machine has little memory
  --enable-termcap        compile in termcap fallback support
  --enable-getcap         fast termcap load, no xrefs to terminfo
  --enable-getcap-cache   cache translated termcaps in ~/.terminfo
  --enable-symlinks       make tic use symbolic links not hard links
  --enable-bsdpad         recognize BSD-style prefix padding
  --enable-const          compile with extra/non-standard const
  --with-rcs-ids          compile-in RCS identifiers
Experimental Code:
  --with-develop          enable all experimental options for testing
  --enable-broken_linker  compile with broken-linker support code
EOF
cat <<EOF
  --enable-hard-tabs      compile with experimental hard-tabs code
  --enable-hashmap        compile with experimental hashmap code
  --enable-no-padding     compile with experimental no-padding code
  --enable-safe-sprintf   compile with experimental safe-sprintf code
  --disable-scroll-hints  compile hashmap without scroll-hints code
  --enable-tcap-names     compile with experimental definable-name code
  --enable-sigwinch       compile with experimental SIGWINCH handler
  --enable-widec          compile with experimental wide-char code
  --enable-xmc-glitch     compile with experimental xmc code
Testing/development Options:
  --enable-echo           build: display "compiling" commands (default)
  --enable-warnings       build: turn on GCC compiler warnings
EOF
cat <<EOF
  --enable-assertions     test: turn on generation of assertion code
  --disable-leaks         test: suppress permanent memory-leaks
  --enable-expanded       test: generate functions for certain macros
  --disable-macros        test: use functions rather than macros
Ada95 Binding Options:
  --with-ada-compiler=CMD Specify Ada95 compiler command (default gnatmake)
  --with-ada-include=DIR  Ada includes are in DIR (default: PREFIX/lib/gnu-Ada/adainclude)
  --with-ada-objects=DIR  Ada objects are in DIR (default: PREFIX/lib/gnu-Ada/adalib)
EOF
    exit 0 ;;
d276 1
a276 1
    ac_prev=host ;;
d278 1
a278 1
    host="$ac_optarg" ;;
d285 1
a285 1
    includedir="$ac_optarg" ;;
d290 1
a290 1
    infodir="$ac_optarg" ;;
d295 1
a295 1
    libdir="$ac_optarg" ;;
d302 1
a302 1
    libexecdir="$ac_optarg" ;;
d311 1
a311 1
    localstatedir="$ac_optarg" ;;
d316 1
a316 1
    mandir="$ac_optarg" ;;
d337 1
a337 1
    oldincludedir="$ac_optarg" ;;
d342 1
a342 1
    prefix="$ac_optarg" ;;
d349 1
a349 1
    program_prefix="$ac_optarg" ;;
d356 1
a356 1
    program_suffix="$ac_optarg" ;;
d373 1
a373 1
    program_transform_name="$ac_optarg" ;;
d383 1
a383 1
    sbindir="$ac_optarg" ;;
d394 1
a394 1
    sharedstatedir="$ac_optarg" ;;
d399 1
a399 1
    site="$ac_optarg" ;;
d404 1
a404 1
    srcdir="$ac_optarg" ;;
d411 1
a411 1
    sysconfdir="$ac_optarg" ;;
d414 1
a414 1
    ac_prev=target ;;
d416 1
a416 1
    target="$ac_optarg" ;;
d421 2
a422 3
  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.13.19990117"
    exit 0 ;;
d425 1
a425 1
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
d427 3
a429 3
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
d431 2
a432 2
    case "$ac_option" in
      *=*) ;;
d435 1
a435 1
    eval "with_${ac_package}='$ac_optarg'" ;;
d438 1
a438 1
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
d440 5
a444 5
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    eval "with_${ac_package}=no" ;;
d455 1
a455 1
    x_includes="$ac_optarg" ;;
d462 1
a462 1
    x_libraries="$ac_optarg" ;;
d464 3
a466 1
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
d469 10
d480 5
a484 7
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
      echo "configure: warning: $ac_option: invalid host type" 1>&2
    fi
    if test "x$nonopt" != xNONE; then
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    fi
    nonopt="$ac_option"
d491 3
a493 1
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
d496 10
a505 16
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
  exec 6>/dev/null
else
  exec 6>&1
fi
exec 5>./config.log
d507 3
a509 9
echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5

# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
ac_configure_args=
for ac_arg
d511 5
a515 8
  case "$ac_arg" in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
d519 16
a534 9
# NLS nuisances.
# Only set these to C if already set.  These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
d536 2
a537 4
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h
d539 1
a539 3
# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
ac_unique_file=ncurses/base/lib_initscr.c
d546 1
a546 1
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
d557 2
a558 1
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
d560 2
a561 1
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
d564 45
a608 1
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
d610 10
a619 14
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    echo "loading site script $ac_site_file"
    . "$ac_site_file"
  fi
done
d621 2
a622 7
if test -r "$cache_file"; then
  echo "loading cache $cache_file"
  . $cache_file
else
  echo "creating cache $cache_file"
  > $cache_file
fi
d624 1
a624 20
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

ac_exeext=
ac_objext=o
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@@caip.rutgers.edu.
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    ac_n= ac_c='
' ac_t='	'
  else
    ac_n=-n ac_c= ac_t=
  fi
else
  ac_n= ac_c='\c' ac_t=
fi
d626 10
d637 1
d639 6
d646 4
d651 1
a651 6
NCURSES_MAJOR="`egrep '^NCURSES_MAJOR[ 	]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
NCURSES_MINOR="`egrep '^NCURSES_MINOR[ 	]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
NCURSES_PATCH="`egrep '^NCURSES_PATCH[ 	]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
cf_cv_abi_version=${NCURSES_MAJOR}
cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
echo "$ac_t""Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version (`date`)" 1>&6
d653 14
d668 1
d670 4
d675 6
d682 1
d684 1
d686 3
d690 3
a692 18
ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
fi
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
d694 122
d817 1
a817 5
if test -f $srcdir/config.guess ; then
	
# Make sure we can run config.sub.
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
d820 17
a836 2
echo $ac_n "checking host system type""... $ac_c" 1>&6
echo "configure:639: checking host system type" >&5
d838 17
a854 17
host_alias=$host
case "$host_alias" in
NONE)
  case $nonopt in
  NONE)
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    fi ;;
  *) host_alias=$nonopt ;;
  esac ;;
esac

host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6
d856 8
a863 9
	system_name="$host_os"
else
	system_name="`(uname -s -r) 2>/dev/null`"
	if test -z "$system_name" ; then
		system_name="`(hostname) 2>/dev/null`"
	fi
fi
test -n "$system_name" && cat >> confdefs.h <<EOF
#define SYSTEM_NAME "$system_name"
d865 1
a865 5

if eval "test \"`echo '$''{'cf_cv_system_name'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cf_cv_system_name="$system_name"
d867 4
d872 2
d875 1
a875 2
test -z "$system_name" && system_name="$cf_cv_system_name"
test -n "$cf_cv_system_name" && echo "$ac_t"""Configuring for $cf_cv_system_name"" 1>&6
d877 6
a882 4
if test ".$system_name" != ".$cf_cv_system_name" ; then
	echo "$ac_t""Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" 1>&6
	{ echo "configure: error: "Please remove config.cache and try again."" 1>&2; exit 1; }
fi
d884 5
d890 2
a891 6
# Check whether --with-system-type or --without-system-type was given.
if test "${with_system_type+set}" = set; then
  withval="$with_system_type"
  echo "configure: warning: overriding system type to $withval" 1>&2
 cf_cv_system_name=$withval
fi
d893 7
d901 1
a901 9
# We need a configure script only when compiling as part of GNU C library.
# Here we have to generate one of the files we need while compiling.
#
# The only problem is that users of the package might think they have to
# run configure themself and find it irritating when nothing happens.
#
# So we try here to find out whether we are called from the glibc configure
# or by a user.
#
d903 2
a904 7
# Check whether --enable-add-ons or --disable-add-ons was given.
if test "${enable_add_ons+set}" = set; then
  enableval="$enable_add_ons"
  glibc_add_on=yes
else
  glibc_add_on=
fi
d906 4
d911 432
a1342 10
if test x"$glibc_add_on" = "xyes" ; then
  rm -f $srcdir/Banner
  # We are in glibc.
  rm -f $srcdir/Makefile
  cp $srcdir/Makefile.glibc $srcdir/Makefile
  echo "ncurses `grep \"^[ 	]*ncurses-version[ 	]*=.*$\" \
		$srcdir/Makefile | sed -e \
		's/^[ 	]*ncurses-version[ 	]*=[ 	]*\([^	^ ]*\)[ 	]*$/\1/'`" > $srcdir/Banner
  exit 0
fi
d1349 2
a1350 2
echo $ac_n "checking for prefix""... $ac_c" 1>&6
echo "configure:730: checking for prefix" >&5
d1354 1
a1354 1
	openbsd*|netbsd*|freebsd*|linux*)
d1361 2
a1362 1
echo "$ac_t""$prefix" 1>&6
d1365 2
a1366 2
echo $ac_n "checking for default include-directory""... $ac_c" 1>&6
echo "configure:745: checking for default include-directory" >&5
d1388 2
a1389 1
echo "$ac_t""$includedir" 1>&6
d1392 39
d1432 4
a1435 2
###	Checks for programs.
# Extract the first word of "gcc", so it can be a program name with args.
d1437 43
a1479 4
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:775: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d1484 11
a1494 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="gcc"
      break
    fi
  done
  IFS="$ac_save_ifs"
d1497 1
a1497 1
CC="$ac_cv_prog_CC"
d1499 43
a1541 1
  echo "$ac_t""$CC" 1>&6
d1543 1
a1543 1
  echo "$ac_t""no" 1>&6
d1546 1
d1550 4
a1553 4
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:805: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
a1557 1
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
d1559 15
a1573 13
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
        ac_prog_rejected=yes
	continue
      fi
      ac_cv_prog_CC="cc"
      break
    fi
  done
  IFS="$ac_save_ifs"
d1578 1
a1578 1
  if test $# -gt 0; then
d1583 1
a1583 1
    set dummy "$ac_dir/$ac_word" "$@@"
d1590 1
a1590 1
CC="$ac_cv_prog_CC"
d1592 2
a1593 1
  echo "$ac_t""$CC" 1>&6
d1595 2
a1596 1
  echo "$ac_t""no" 1>&6
d1599 11
a1609 9
  if test -z "$CC"; then
    case "`uname -s`" in
    *win32* | *WIN32*)
      # Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:856: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d1614 11
a1624 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="cl"
      break
    fi
  done
  IFS="$ac_save_ifs"
d1627 1
a1627 1
CC="$ac_cv_prog_CC"
d1629 2
a1630 1
  echo "$ac_t""$CC" 1>&6
d1632 32
a1663 1
  echo "$ac_t""no" 1>&6
a1664 4
 ;;
    esac
  fi
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
d1666 11
d1678 2
a1679 2
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:888: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d1681 1
a1681 6
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
d1683 23
a1705 1
cat > conftest.$ac_ext << EOF
d1707 2
a1708 1
#line 899 "configure"
d1711 65
a1775 7
main(){return(0);}
EOF
if { (eval echo configure:904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
d1777 9
a1785 1
    ac_cv_prog_cc_cross=yes
d1787 33
d1821 20
a1840 11
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
fi
rm -fr conftest*
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
d1842 3
a1844 8
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:930: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
d1846 17
a1862 4
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:935: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d1864 17
a1880 7
  cat > conftest.c <<EOF
#ifdef __GNUC__
  yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  ac_cv_prog_gcc=yes
d1882 3
a1884 3
  ac_cv_prog_gcc=no
fi
fi
d1886 6
a1891 1
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
d1893 36
a1928 2
if test $ac_cv_prog_gcc = yes; then
  GCC=yes
d1930 7
a1936 2
  GCC=
fi
d1938 16
a1953 10
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:963: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
d1956 3
a1958 1
  ac_cv_prog_cc_g=no
d1960 1
a1960 2
rm -f conftest*

d1962 2
a1963 2

echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
d1965 1
a1965 1
  CFLAGS="$ac_save_CFLAGS"
d1979 29
a2007 8

if test -n "$GCC" ; then
echo $ac_n "checking version of gcc""... $ac_c" 1>&6
echo "configure:996: checking version of gcc" >&5
eval "$CC --version"
fi
if test $host != $build; then
  for ac_prog in $CC gcc cc
d2009 26
a2034 6
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1005: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2036 30
a2065 2
  if test -n "$BUILD_CC"; then
  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
d2067 2
a2068 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_BUILD_CC="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2070 7
d2078 1
a2078 3
BUILD_CC="$ac_cv_prog_BUILD_CC"
if test -n "$BUILD_CC"; then
  echo "$ac_t""$BUILD_CC" 1>&6
d2080 19
a2098 1
  echo "$ac_t""no" 1>&6
d2101 10
a2110 8
test -n "$BUILD_CC" && break
done

fi
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:1036: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
d2114 2
a2115 2
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2117 8
a2124 3
    # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and "${CC-cc}" will confuse make.
  CPP="${CC-cc} -E"
d2126 3
a2128 3
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
#line 1051 "configure"
d2131 19
a2149 6
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
d2152 1
a2152 2
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
d2154 9
a2162 4
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
  cat > conftest.$ac_ext <<EOF
#line 1068 "configure"
d2164 21
a2184 8
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
d2186 1
a2186 2
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
d2188 32
a2219 4
  rm -rf conftest*
  CPP="${CC-cc} -nologo -E"
  cat > conftest.$ac_ext <<EOF
#line 1085 "configure"
d2222 19
a2240 6
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
d2243 1
a2243 2
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
d2245 2
a2246 2
  rm -rf conftest*
  CPP=/lib/cpp
d2248 24
a2271 1
rm -f conftest*
d2273 9
a2281 1
rm -f conftest*
d2283 7
a2289 4
rm -f conftest*
  ac_cv_prog_CPP="$CPP"
fi
  CPP="$ac_cv_prog_CPP"
d2291 3
a2293 1
  ac_cv_prog_CPP="$CPP"
a2294 1
echo "$ac_t""$CPP" 1>&6
d2296 12
a2307 5
if test $ac_cv_prog_gcc = yes; then
    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
echo "configure:1117: checking whether ${CC-cc} needs -traditional" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2310 2
a2311 2
  cat > conftest.$ac_ext <<EOF
#line 1123 "configure"
d2314 2
a2315 2
Autoconf TIOCGETP
EOF
a2317 1
  rm -rf conftest*
a2319 1
  rm -rf conftest*
a2323 1

d2325 2
a2326 2
    cat > conftest.$ac_ext <<EOF
#line 1141 "configure"
d2329 2
a2330 2
Autoconf TCGETA
EOF
a2332 1
  rm -rf conftest*
d2339 2
a2340 2

echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
d2346 44
a2389 2
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
echo "configure:1163: checking for POSIXized ISC" >&5
d2391 1
a2391 1
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
d2393 2
a2394 1
  echo "$ac_t""yes" 1>&6
d2396 2
a2397 1
  cat >> confdefs.h <<\EOF
d2407 2
a2408 1
  echo "$ac_t""no" 1>&6
d2412 5
a2417 6
echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
echo "configure:1185: checking for ${CC-cc} option to accept ANSI C" >&5
if eval "test \"`echo '$''{'cf_cv_ansi_cc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
d2420 1
d2432 1
a2432 1
	"-Aa -D_HPUX_SOURCE +e" \
d2436 71
a2506 3
	CFLAGS="$cf_save_CFLAGS $cf_arg"
	cat > conftest.$ac_ext <<EOF
#line 1209 "configure"
d2515 3
a2517 1
int main() {
d2522 16
a2537 4
; return 0; }
EOF
if { (eval echo configure:1225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
d2540 2
a2541 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2543 1
a2543 1
rm -f conftest*
d2546 1
d2549 2
a2550 2

echo "$ac_t""$cf_cv_ansi_cc" 1>&6
d2554 69
a2622 1
	CFLAGS="$CFLAGS $cf_cv_ansi_cc"
d2624 1
a2624 1
	cat >> confdefs.h <<\EOF
a2630 1

d2632 6
a2637 1
	{ echo "configure: error: Your compiler does not appear to recognize prototypes.
d2641 2
a2642 1
	c. use a wrapper such as unproto" 1>&2; exit 1; }
a2644 3


PROG_EXT=
d2647 6
a2652 4
    # We make sure -Zexe is not used -- it would interfere with @@PROG_EXT@@
    CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
    LDFLAGS=`echo "$LDFLAGS -Zmt -Zcrtdll" | sed "s/-Zexe//g"`
    PROG_EXT=".exe"
d2656 1
d2658 3
d2662 4
a2665 1
case "$cf_cv_system_name" in
d2672 4
a2675 4
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1282: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2677 2
a2678 2
  case "$LDCONFIG" in
  /*)
a2680 3
  ?:/*)			 
  ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
  ;;
d2682 12
a2693 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$LDPATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2697 2
a2698 1
LDCONFIG="$ac_cv_path_LDCONFIG"
d2700 2
a2701 1
  echo "$ac_t""$LDCONFIG" 1>&6
d2703 2
a2704 1
  echo "$ac_t""no" 1>&6
d2709 1
d2711 2
a2712 3

echo $ac_n "checking if you want to build with C++""... $ac_c" 1>&6
echo "configure:1319: checking if you want to build with C++" >&5
d2720 23
a2742 12
fi

echo "$ac_t""$cf_with_cxx" 1>&6
if test "X$cf_with_cxx" != Xno ; then
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1336: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2747 11
a2757 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CXX="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
d2760 1
a2760 1
CXX="$ac_cv_prog_CXX"
d2762 2
a2763 1
  echo "$ac_t""$CXX" 1>&6
d2765 2
a2766 1
  echo "$ac_t""no" 1>&6
d2769 26
a2794 1
test -n "$CXX" && break
a2795 1
test -n "$CXX" || CXX="gcc"
d2797 6
a2802 26

echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:1368: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5

ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cxx_cross

cat > conftest.$ac_ext << EOF

#line 1379 "configure"
#include "confdefs.h"

int main(){return(0);}
EOF
if { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  ac_cv_prog_cxx_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cxx_cross=no
  else
    ac_cv_prog_cxx_cross=yes
  fi
d2804 2
a2805 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cxx_works=no
a2806 7
rm -fr conftest*
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
d2808 5
a2812 3
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
if test $ac_cv_prog_cxx_works = no; then
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
a2813 4
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:1410: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
cross_compiling=$ac_cv_prog_cxx_cross
d2815 24
a2838 4
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
echo "configure:1415: checking whether we are using GNU C++" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2840 9
a2848 3
  cat > conftest.C <<EOF
#ifdef __GNUC__
  yes;
d2850 37
a2886 3
EOF
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  ac_cv_prog_gxx=yes
d2888 3
a2890 3
  ac_cv_prog_gxx=no
fi
fi
d2892 3
a2894 1
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
d2896 16
a2911 16
if test $ac_cv_prog_gxx = yes; then
  GXX=yes
else
  GXX=
fi

ac_test_CXXFLAGS="${CXXFLAGS+set}"
ac_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS=
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
echo "configure:1443: checking whether ${CXX-g++} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  echo 'void f(){}' > conftest.cc
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
d2914 3
a2916 1
  ac_cv_prog_cxx_g=no
d2918 1
a2918 2
rm -f conftest*

d2920 2
a2921 2

echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
d2923 1
a2923 1
  CXXFLAGS="$ac_save_CXXFLAGS"
d2937 124
d3062 6
a3068 1
if test -n "$GXX" ; then case "`${CXX-g++} --version`" in 1*|2.[0-6]*) GXX=""; CXX=""; ac_cv_prog_gxx=no; cf_cxx_library=no ; echo No: templates do not work;; esac; fi
d3070 34
a3103 2
echo $ac_n "checking if you want to build with Ada95""... $ac_c" 1>&6
echo "configure:1478: checking if you want to build with Ada95" >&5
d3111 3
a3113 3
fi

echo "$ac_t""$cf_with_ada" 1>&6
d3115 2
a3116 2
echo $ac_n "checking if you want to build programs such as tic""... $ac_c" 1>&6
echo "configure:1491: checking if you want to build programs such as tic" >&5
d3124 16
a3139 3
fi

echo "$ac_t""$cf_with_progs" 1>&6
d3147 13
d3162 1
a3162 1
# Extract the first word of "$ac_prog", so it can be a program name with args.
d3164 4
a3167 4
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1514: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3172 11
a3182 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_AWK="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
d3185 1
a3185 1
AWK="$ac_cv_prog_AWK"
d3187 2
a3188 1
  echo "$ac_t""$AWK" 1>&6
d3190 2
a3191 1
  echo "$ac_t""no" 1>&6
d3194 1
a3194 1
test -n "$AWK" && break
d3197 13
a3209 25
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
echo "configure:1544: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftestmake <<\EOF
all:
	@@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
else
  eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftestmake
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  SET_MAKE=
else
  echo "$ac_t""no" 1>&6
  SET_MAKE="MAKE=${MAKE-make}"
d3211 7
d3226 1
d3231 2
a3232 2
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:1582: checking for a BSD compatible install" >&5
d3234 2
a3235 2
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3237 1
a3237 1
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
d3239 1
d3241 4
a3244 2
    case "$ac_dir/" in
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
d3250 1
a3250 1
        if test -f $ac_dir/$ac_prog; then
d3252 1
a3252 1
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
d3255 4
a3267 1
  IFS="$ac_save_IFS"
d3271 1
a3271 1
    INSTALL="$ac_cv_path_install"
d3277 1
a3277 1
    INSTALL="$ac_install_sh"
d3280 2
a3281 1
echo "$ac_t""$INSTALL" 1>&6
d3287 1
a3287 1
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
d3295 1
a3295 1
  cf_dir=`echo $INSTALL|sed -e 's%/[^/]*$%%'`
d3297 1
a3297 1
  INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's:^.*/::'`
d3301 52
a3352 4
echo $ac_n "checking for long file names""... $ac_c" 1>&6
echo "configure:1645: checking for long file names" >&5
if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3366 1
a3366 1
  ac_tmpdirs="$TMPDIR"
d3373 8
a3380 4
  (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
  (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
  val=`cat $ac_dir/conftest9012345 2>/dev/null`
  if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
d3382 1
a3382 1
    rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
d3385 1
a3385 1
  rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
d3388 3
d3392 1
a3392 3
echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
if test $ac_cv_sys_long_file_names = yes; then
  cat >> confdefs.h <<\EOF
d3398 18
a3415 4
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
echo "configure:1689: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3417 10
a3426 5
  rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
  rm -f conftestdata
  ac_cv_prog_LN_S="ln -s"
d3428 8
a3435 1
  ac_cv_prog_LN_S=ln
d3437 1
d3439 6
a3444 3
LN_S="$ac_cv_prog_LN_S"
if test "$ac_cv_prog_LN_S" = "ln -s"; then
  echo "$ac_t""yes" 1>&6
d3446 7
a3452 1
  echo "$ac_t""no" 1>&6
d3455 6
a3460 6
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1712: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3462 8
a3469 2
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
d3471 1
a3471 11
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="ranlib"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
d3473 1
d3475 4
a3478 3
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
d3480 3
a3482 1
  echo "$ac_t""no" 1>&6
d3485 22
a3506 23
for ac_prog in tdlint lint alint
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1744: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$LINT"; then
  ac_cv_prog_LINT="$LINT" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_LINT="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
a3507 5
LINT="$ac_cv_prog_LINT"
if test -n "$LINT"; then
  echo "$ac_t""$LINT" 1>&6
else
  echo "$ac_t""no" 1>&6
d3509 29
a3537 2

test -n "$LINT" && break
d3540 1
a3540 22
for ac_prog in man man_db
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1778: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_MAN'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$MAN"; then
  ac_cv_prog_MAN="$MAN" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_MAN="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
d3543 4
a3546 3
MAN="$ac_cv_prog_MAN"
if test -n "$MAN"; then
  echo "$ac_t""$MAN" 1>&6
d3548 2
a3549 1
  echo "$ac_t""no" 1>&6
a3551 7
test -n "$MAN" && break
done



if eval "test \"`echo '$''{'cf_cv_subst_LD'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3553 1
a3553 7
  
echo $ac_n "checking for loader (symbol LD)""... $ac_c" 1>&6
echo "configure:1814: checking for loader (symbol LD)" >&5
test -z "$LD" && LD=ld
echo "$ac_t""$LD" 1>&6

cf_cv_subst_LD=$LD
d3556 2
a3557 4
LD=${cf_cv_subst_LD}

if eval "test \"`echo '$''{'cf_cv_subst_AR'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3559 1
a3559 7
  
echo $ac_n "checking for archiver (symbol AR)""... $ac_c" 1>&6
echo "configure:1828: checking for archiver (symbol AR)" >&5
test -z "$AR" && AR=ar
echo "$ac_t""$AR" 1>&6

cf_cv_subst_AR=$AR
d3562 2
a3563 4
AR=${cf_cv_subst_AR}

if eval "test \"`echo '$''{'cf_cv_subst_AR_OPTS'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d3565 1
a3565 7
  
echo $ac_n "checking for archiver options (symbol AR_OPTS)""... $ac_c" 1>&6
echo "configure:1842: checking for archiver options (symbol AR_OPTS)" >&5
test -z "$AR_OPTS" && AR_OPTS=rv
echo "$ac_t""$AR_OPTS" 1>&6

cf_cv_subst_AR_OPTS=$AR_OPTS
d3568 5
a3572 2
AR_OPTS=${cf_cv_subst_AR_OPTS}

a3573 7

echo $ac_n "checking for makeflags variable""... $ac_c" 1>&6
echo "configure:1854: checking for makeflags variable" >&5
if eval "test \"`echo '$''{'cf_cv_makeflags'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
d3575 1
a3575 1
	for cf_option in '-$(MAKEFLAGS)' '$(MFLAGS)' 
d3578 1
d3582 1
a3582 1
		cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null`
d3594 2
a3595 1
		*)	echo no match "$cf_result"
d3600 225
d3827 9
a3835 1
echo "$ac_t""$cf_cv_makeflags" 1>&6
d3837 5
d3843 1
d3845 2
a3846 2
echo $ac_n "checking if you have specified an install-prefix""... $ac_c" 1>&6
echo "configure:1890: checking if you have specified an install-prefix" >&5
d3854 1
a3854 1
	*)	INSTALL_PREFIX="$withval"
d3857 49
d3907 11
d3919 76
a3994 1
echo "$ac_t""$INSTALL_PREFIX" 1>&6
d3996 10
d4009 4
d4014 1
a4014 2
 echo $ac_n "checking format of man-pages""... $ac_c" 1>&6
echo "configure:1910: checking format of man-pages" >&5
d4016 29
d4046 2
a4047 4
# Check whether --with-manpage-format or --without-manpage-format was given.
if test "${with_manpage_format+set}" = set; then
  withval="$with_manpage_format"
  cf_manpage_form=$withval
d4049 1
a4049 1
  cf_manpage_form=unknown
d4052 6
a4057 3

case ".$cf_manpage_form" in
.gzip|.compress|.BSDI|.normal|.formatted) # (vi
d4059 10
a4068 27
.unknown|.) # (vi
  if test -z "$MANPATH" ; then
    MANPATH="/usr/man:/usr/share/man"
  fi
  # look for the 'date' man-page (it's most likely to be installed!)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  cf_manpage_form=unknown
  for cf_dir in $MANPATH; do
    test -z "$cf_dir" && cf_dir=/usr/man
    for cf_name in $cf_dir/*/date.[01]* $cf_dir/*/date
    do
       cf_test=`echo $cf_name | sed -e 's/*//'`
       if test "x$cf_test" = "x$cf_name" ; then
	  case "$cf_name" in
	  *.gz) cf_manpage_form=gzip;;
	  *.Z)  cf_manpage_form=compress;;
	  *.0)	cf_manpage_form=BSDI,formatted;;
	  *)    cf_manpage_form=normal;;
	  esac
	  break
       fi
    done
    if test "$cf_manpage_form" != "unknown" ; then
       break
    fi
  done
  IFS="$ac_save_ifs"
d4070 4
a4073 2
.*) # (vi
  echo "configure: warning: Unexpected manpage-format" 1>&2
d4077 25
a4101 1
echo "$ac_t""$cf_manpage_form" 1>&6
d4103 4
d4108 39
a4146 2
echo $ac_n "checking for manpage renaming""... $ac_c" 1>&6
echo "configure:1962: checking for manpage renaming" >&5
d4148 10
a4157 5

# Check whether --with-manpage-renames or --without-manpage-renames was given.
if test "${with_manpage_renames+set}" = set; then
  withval="$with_manpage_renames"
  cf_manpage_renames=$withval
d4159 2
a4160 1
  cf_manpage_renames=yes
d4163 3
d4167 3
a4169 151
case ".$cf_manpage_renames" in #(vi
.no) #(vi
  ;;
.|.yes)
  # Debian 'man' program?
  if test -f /etc/debian_version ; then
    cf_manpage_renames=`cd $srcdir && pwd`/man/man_db.renames
  else
    cf_manpage_renames=no
  fi
  ;;
esac

if test "$cf_manpage_renames" != no ; then
  if test ! -f $cf_manpage_renames ; then
    { echo "configure: error: not a filename: $cf_manpage_renames" 1>&2; exit 1; }
  fi

  test ! -d man && mkdir man

  # Construct a sed-script to perform renaming within man-pages
  if test -n "$cf_manpage_renames" ; then
    test ! -d man && mkdir man
    $srcdir/man/make_sed.sh $cf_manpage_renames >man/edit_man.sed
  fi
fi

echo "$ac_t""$cf_manpage_renames" 1>&6


  if test "$prefix" = "NONE" ; then
     cf_prefix="$ac_default_prefix"
  else
     cf_prefix="$prefix"
  fi

  case "$cf_manpage_form" in # (vi
  *formatted*) # (vi
    cf_subdir='$mandir/cat'
    cf_format=yes
    ;;
  *)
    cf_subdir='$mandir/man'
    cf_format=no
    ;;
  esac

test ! -d man && mkdir man
cat >man/edit_man.sh <<CF_EOF
#! /bin/sh
# this script is generated by the configure-script
prefix="$cf_prefix"
datadir="$datadir"
MKDIRS="`cd $srcdir && pwd`/mkinstalldirs"
INSTALL="$INSTALL"
INSTALL_DATA="$INSTALL_DATA"
TMP=\${TMPDIR-/tmp}/man\$\$
trap "rm -f \$TMP" 0 1 2 5 15

verb=\$1
shift

mandir=\$1
shift

for i in \$* ; do
case \$i in #(vi
*.orig|*.rej) ;; #(vi
*.[0-9]*)
	section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
	if test \$verb = installing ; then
	if test ! -d $cf_subdir\${section} ; then
		\$MKDIRS $cf_subdir\$section
	fi
	fi
	source=\`basename \$i\`
CF_EOF
if test "$cf_manpage_renames" = no ; then
cat >>man/edit_man.sh <<CF_EOF
	target=$cf_subdir\${section}/\$source
	sed -e "s,@@DATADIR@@,\$datadir," < \$i >\$TMP
CF_EOF
else
cat >>man/edit_man.sh <<CF_EOF
	target=\`grep "^\$source" $cf_manpage_renames | $AWK '{print \$2}'\`
	if test -z "\$target" ; then
		echo '? missing rename for '\$source
		target="\$source"
	fi
	target="$cf_subdir\$section/\$target"
	test \$verb = installing && sed -e "s,@@DATADIR@@,\$datadir," < \$i | sed -f edit_man.sed >\$TMP
CF_EOF
fi
if test $cf_format = yes ; then
cat >>man/edit_man.sh <<CF_EOF
	nroff -man \$TMP >\$TMP.out
	mv \$TMP.out \$TMP
CF_EOF
fi
case "$cf_manpage_form" in #(vi
*compress*) #(vi
cat >>man/edit_man.sh <<CF_EOF
	if test \$verb = installing ; then
	if ( compress -f \$TMP )
	then
		mv \$TMP.Z \$TMP
	fi
	fi
	target="\$target.Z"
CF_EOF
  ;;
*gzip*) #(vi
cat >>man/edit_man.sh <<CF_EOF
	if test \$verb = installing ; then
	if ( gzip -f \$TMP )
	then
		mv \$TMP.gz \$TMP
	fi
	fi
	target="\$target.gz"
CF_EOF
  ;;
*BSDI*)
cat >>man/edit_man.sh <<CF_EOF
	# BSDI installs only .0 suffixes in the cat directories
	target="\`echo \$target|sed -e 's/\.[1-9]\+.\?/.0/'\`"
CF_EOF
  ;;
esac
cat >>man/edit_man.sh <<CF_EOF
	echo \$verb \$target
	if test \$verb = installing ; then
		\$INSTALL_DATA \$TMP \$target
	else
		rm -f \$target
	fi
	;;
esac
done
CF_EOF
chmod 755 man/edit_man.sh



###############################################################################


### Options to allow the user to specify the set of libraries which are used.
### Use "--without-normal --with-shared" to allow the default model to be
### shared, for example.
cf_list_models=""
d4171 2
a4172 2
echo $ac_n "checking if you want to build shared libraries""... $ac_c" 1>&6
echo "configure:2127: checking if you want to build shared libraries" >&5
d4180 3
a4182 3
fi

echo "$ac_t""$with_shared" 1>&6
d4185 2
a4186 2
echo $ac_n "checking if you want to build static libraries""... $ac_c" 1>&6
echo "configure:2141: checking if you want to build static libraries" >&5
d4194 3
a4196 3
fi

echo "$ac_t""$with_normal" 1>&6
d4199 2
a4200 2
echo $ac_n "checking if you want to build debug libraries""... $ac_c" 1>&6
echo "configure:2155: checking if you want to build debug libraries" >&5
d4208 3
a4210 3
fi

echo "$ac_t""$with_debug" 1>&6
d4213 2
a4214 2
echo $ac_n "checking if you want to build profiling libraries""... $ac_c" 1>&6
echo "configure:2169: checking if you want to build profiling libraries" >&5
d4222 5
d4229 42
a4270 2
echo "$ac_t""$with_profile" 1>&6
test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
d4272 2
a4273 2
echo $ac_n "checking if you want to build a separate terminfo library""... $ac_c" 1>&6
echo "configure:2183: checking if you want to build a separate terminfo library" >&5
d4281 16
a4296 1
fi
d4298 2
a4299 1
echo "$ac_t""$with_termlib" 1>&6
d4301 2
a4302 3
### Checks for special libraries, must be done up-front.
echo $ac_n "checking if you want to link with dbmalloc for testing""... $ac_c" 1>&6
echo "configure:2197: checking if you want to link with dbmalloc for testing" >&5
d4304 4
a4307 4
# Check whether --with-dbmalloc or --without-dbmalloc was given.
if test "${with_dbmalloc+set}" = set; then
  withval="$with_dbmalloc"
  with_dbmalloc=$withval
d4309 10
a4318 10
  with_dbmalloc=no
fi

echo "$ac_t""$with_dbmalloc" 1>&6
if test $with_dbmalloc = yes ; then
	echo $ac_n "checking for debug_malloc in -ldbmalloc""... $ac_c" 1>&6
echo "configure:2210: checking for debug_malloc in -ldbmalloc" >&5
ac_lib_var=`echo dbmalloc'_'debug_malloc | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4320 2
a4321 4
  ac_save_LIBS="$LIBS"
LIBS="-ldbmalloc  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2218 "configure"
d4323 20
a4342 12
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char debug_malloc();

int main() {
debug_malloc()
; return 0; }
EOF
if { (eval echo configure:2229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
d4344 1
a4344 1
  echo "configure: failed program was:" >&5
d4346 3
a4348 2
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
d4350 3
a4352 2
rm -f conftest*
LIBS="$ac_save_LIBS"
d4354 2
a4355 7
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo dbmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
d4358 2
a4359 1
  LIBS="-ldbmalloc $LIBS"
d4361 1
a4361 3
else
  echo "$ac_t""no" 1>&6
fi
d4363 3
a4365 1
fi
d4367 11
a4377 2
echo $ac_n "checking if you want to link with dmalloc for testing""... $ac_c" 1>&6
echo "configure:2259: checking if you want to link with dmalloc for testing" >&5
d4379 40
a4418 4
# Check whether --with-dmalloc or --without-dmalloc was given.
if test "${with_dmalloc+set}" = set; then
  withval="$with_dmalloc"
  with_dmalloc=$withval
a4419 2
  with_dmalloc=no
fi
d4421 5
a4425 17
echo "$ac_t""$with_dmalloc" 1>&6
if test $with_dmalloc = yes ; then
	echo $ac_n "checking for dmalloc_debug in -ldmalloc""... $ac_c" 1>&6
echo "configure:2272: checking for dmalloc_debug in -ldmalloc" >&5
ac_lib_var=`echo dmalloc'_'dmalloc_debug | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ldmalloc  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2280 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dmalloc_debug();
a4426 12
int main() {
dmalloc_debug()
; return 0; }
EOF
if { (eval echo configure:2291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
a4427 2
rm -f conftest*
LIBS="$ac_save_LIBS"
d4429 1
a4429 8
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
d4431 3
a4433 1
  LIBS="-ldmalloc $LIBS"
a4434 2
else
  echo "$ac_t""no" 1>&6
d4439 3
a4441 3
SHLIB_LIST=""
echo $ac_n "checking if you want to link with the gpm mouse library""... $ac_c" 1>&6
echo "configure:2322: checking if you want to link with the gpm mouse library" >&5
d4443 4
a4446 4
# Check whether --with-gpm or --without-gpm was given.
if test "${with_gpm+set}" = set; then
  withval="$with_gpm"
  with_gpm=$withval
d4448 5
a4452 2
  with_gpm=no
fi
d4454 5
a4458 7
echo "$ac_t""$with_gpm" 1>&6
if test $with_gpm = yes ; then
	echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
echo "configure:2335: checking for Gpm_Open in -lgpm" >&5
ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d4460 2
a4461 4
  ac_save_LIBS="$LIBS"
LIBS="-lgpm -lcurses -ltermcap $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2343 "configure"
d4463 3
d4467 3
d4471 57
a4527 2
    builtin and then its argument prototype would still apply.  */
char Gpm_Open();
d4529 42
a4570 12
int main() {
Gpm_Open()
; return 0; }
EOF
if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
a4571 2
rm -f conftest*
LIBS="$ac_save_LIBS"
a4573 8
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
		EXTRA_LIBS="-lgpm -lncurses $EXTRA_LIBS"
		SHLIB_LIST="-lgpm $SHLIB_LIST"
		cat >> confdefs.h <<\EOF
#define HAVE_LIBGPM 1
EOF
d4575 7
a4581 10
		for ac_hdr in gpm.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2380: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2385 "configure"
d4583 30
a4612 1
#include <$ac_hdr>
d4614 1
a4614 6
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
d4616 6
a4621 5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
d4623 3
a4625 9
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
d4627 3
a4629 1
  echo "$ac_t""no" 1>&6
a4630 1
done
d4632 12
a4643 1
	
d4645 29
a4673 1
  echo "$ac_t""no" 1>&6
d4677 2
d4680 4
a4683 2
TINFO_LIST="$SHLIB_LIST"
test $with_termlib = yes && SHLIB_LIST="$SHLIB_LIST -ltinfo"
d4685 7
d4693 10
d4704 45
d4750 2
d4753 8
a4760 4
echo $ac_n "checking for specified models""... $ac_c" 1>&6
echo "configure:2431: checking for specified models" >&5
test -z "$cf_list_models" && cf_list_models=normal
echo "$ac_t""$cf_list_models" 1>&6
d4762 24
a4785 3
### Use the first model as the default, and save its suffix for use in building
### up test-applications.
DFT_LWR_MODEL=`echo $cf_list_models | $AWK '{print $1}'`
d4787 3
a4789 1
DFT_UPR_MODEL=`echo $DFT_LWR_MODEL | tr '[a-z]' '[A-Z]'`
d4791 4
a4794 13
	
	case $DFT_LWR_MODEL in
	normal)  DFT_DEP_SUFFIX='.a'   ;;
	debug)   DFT_DEP_SUFFIX='_g.a' ;;
	profile) DFT_DEP_SUFFIX='_p.a' ;;
	shared)
		case $cf_cv_system_name in
		openbsd*|netbsd*|freebsd*)
			DFT_DEP_SUFFIX='.so.$(REL_VERSION)' ;;
		hpux*)	DFT_DEP_SUFFIX='.sl'  ;;
		*)	DFT_DEP_SUFFIX='.so'  ;;
		esac
	esac
d4796 1
a4796 6
	case $DFT_LWR_MODEL in
	normal)  DFT_ARG_SUFFIX=''   ;;
	debug)   DFT_ARG_SUFFIX='_g' ;;
	profile) DFT_ARG_SUFFIX='_p' ;;
	shared)  DFT_ARG_SUFFIX=''   ;;
	esac
d4798 1
a4798 6
	case $DFT_LWR_MODEL in
	normal)  DFT_OBJ_SUBDIR='objects' ;;
	debug)   DFT_OBJ_SUBDIR='obj_g' ;;
	profile) DFT_OBJ_SUBDIR='obj_p' ;;
	shared)  DFT_OBJ_SUBDIR='obj_s' ;;
	esac
d4800 4
a4803 1
TINFO_NAME=tinfo
d4805 11
d4817 7
a4823 1
LIB_NAME=ncurses
d4825 3
d4829 2
a4830 8
LIB_DIR=../lib

	case $cf_cv_system_name in
	os2)	cf_prefix=''     ;;
	*)	cf_prefix='lib'  ;;
	esac

LIB_PREFIX=$LIB_DIR/$cf_prefix
d4832 29
d4862 1
a4868 1

d4874 2
a4875 1

d4877 1
d4883 5
d4889 2
a4890 2
echo $ac_n "checking if rpath option should be used""... $ac_c" 1>&6
echo "configure:2506: checking if rpath option should be used" >&5
d4898 18
a4915 4
fi

echo "$ac_t""$cf_cv_ld_rpath" 1>&6

d4917 2
a4918 3
	
 	LOCAL_LDFLAGS=
 	LOCAL_LDFLAGS2=
d4924 3
a4926 3
	echo $ac_n "checking if release/abi version should be used for shared libs""... $ac_c" 1>&6
echo "configure:2528: checking if release/abi version should be used for shared libs" >&5
	
d4939 3
a4941 1
		{ echo "configure: error: option value must be one of: rel, abi, auto or no" 1>&2; exit 1; }
d4944 1
a4944 1
	
d4947 44
d4992 6
d4999 1
a4999 1
	echo "$ac_t""$cf_cv_shlib_version" 1>&6
d5001 40
a5040 1
	cf_cv_rm_so_locs=no
d5042 33
a5074 9
	case $cf_cv_system_name in
	hpux10.*)
		# (tested with gcc 2.7.2 -- I don't have c89)
		if test -n "$GCC"; then
			CC_SHARED_OPTS='-fPIC'
			LD_SHARED_OPTS='-Xlinker +b -Xlinker $(libdir)'
		else
			CC_SHARED_OPTS='+Z'
			LD_SHARED_OPTS='-Wl,+b,$(libdir)'
a5075 5
		MK_SHARED_LIB='$(LD) +b $(libdir) -b +h `basename $@@` -o $@@'
		# HP-UX shared libraries must be executable, and should be
		# readonly to exploit a quirk in the memory manager.
		INSTALL_LIB="-m 555"
		cf_cv_do_symlinks=reverse
d5079 2
a5080 3
		if test -n "$GCC"; then
			CC_SHARED_OPTS='-fPIC'
			LD_SHARED_OPTS='-Xlinker +b -Xlinker $(libdir)'
d5083 1
a5083 1
			LD_SHARED_OPTS='-Wl,+b,$(libdir)'
d5085 1
a5085 1
		MK_SHARED_LIB='$(LD) +b $(libdir) -b -o $@@'
d5091 9
d5101 3
a5103 2
		if test -n "$GCC"; then
			CC_SHARED_OPTS='-fPIC'
d5105 1
a5105 1
			CC_SHARED_OPTS='-KPIC'
a5106 1
		MK_SHARED_LIB='$(LD) -shared -rdata_shared -soname `basename $@@` -o $@@'
d5109 27
a5135 13
	linux*|gnu*)
		# tested with Linux 2.0.29 and gcc 2.7.2 (ELF)
		CC_SHARED_OPTS='-fpic'
		test $cf_cv_ld_rpath = yes && cf_ld_rpath_opt="-Wl,-rpath,"
		if test $DFT_LWR_MODEL = "shared" ; then
 			LOCAL_LDFLAGS='-Wl,-rpath,../lib'
 			LOCAL_LDFLAGS2='-Wl,-rpath,../../lib'
		fi
		test $cf_cv_shlib_version = auto && cf_cv_shlib_version=rel
		if test $cf_cv_shlib_version = no ; then
			MK_SHARED_LIB='gcc -shared -Wl,-stats,-lc -o $@@'
		else
			MK_SHARED_LIB='gcc -shared -Wl,-soname,`basename $@@.$(ABI_VERSION)`,-stats,-lc -o $@@'
d5137 10
d5148 22
a5169 3
	openbsd2*)
		CC_SHARED_OPTS='-fpic -DPIC'
		MK_SHARED_LIB='$(LD) -Bshareable -soname,`basename $@@.$(ABI_VERSION)` -o $@@'
d5171 26
a5196 3
	openbsd*|netbsd*|freebsd*)
		CC_SHARED_OPTS='-fpic -DPIC'
		MK_SHARED_LIB='$(LD) -Bshareable -o $@@'
d5202 1
a5202 3
		CC_SHARED_OPTS=''
 		MK_SHARED_LIB='$(LD) -set_version $(REL_VERSION):$(ABI_VERSION) -expect_unresolved "*" -shared -soname `basename $@@`'
		test $cf_cv_ld_rpath = yes && cf_ld_rpath_opt="-rpath"
d5205 1
a5205 1
 			MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
d5209 7
a5215 3
		if test $DFT_LWR_MODEL = "shared" ; then
 			LOCAL_LDFLAGS='-Wl,-rpath,../lib'
 			LOCAL_LDFLAGS2='-Wl,-rpath,../../lib'
d5221 2
a5222 4
		if test $ac_cv_prog_gcc = yes; then
			CC_SHARED_OPTS='-melf -fpic'
		else
			CC_SHARED_OPTS='-KPIC'
d5224 2
a5225 2
		MK_SHARED_LIB='$(LD) -dy -G -h `basename $@@.$(ABI_VERSION)` -o $@@'
		if test $cf_cv_ld_rpath = yes ; then
d5229 2
a5230 2
		test $cf_cv_shlib_version = auto && cf_cv_shlib_version=rel
		LINK_PROGS='LD_RUN_PATH=$(libdir)'
d5235 1
a5235 3
		if test $ac_cv_prog_gcc = yes; then
			CC_SHARED_OPTS='-fpic'
		else
d5238 2
a5239 2
		MK_SHARED_LIB='$(LD) -assert pure-text -o $@@'
		test $cf_cv_shlib_version = auto && cf_cv_shlib_version=rel
d5243 4
a5246 4
		if test $ac_cv_prog_gcc = yes; then
			CC_SHARED_OPTS='-fpic'
		else
			CC_SHARED_OPTS='-KPIC'
d5248 1
a5248 2
		MK_SHARED_LIB='$(LD) -dy -G -h `basename $@@.$(ABI_VERSION)` -o $@@'
		if test $cf_cv_ld_rpath = yes ; then
d5250 15
a5264 1
			EXTRA_LDFLAGS="-R ../lib:\$(libdir) $EXTRA_LDFLAGS"
a5265 1
		test $cf_cv_shlib_version = auto && cf_cv_shlib_version=rel
d5267 6
a5272 4
	unix_sv*)
		# tested with UnixWare 1.1.2
		CC_SHARED_OPTS='-KPIC'
		MK_SHARED_LIB='$(LD) -d y -G -o $@@'
d5285 1
a5285 9
			if test "$cf_cv_do_symlinks" = reverse ; then
				{ echo "configure: error: cannot use --with-shlib-version with this platform" 1>&2; exit 1; }
			fi
			if test "$cf_cv_shlib_version" = rel ; then
				MK_SHARED_LIB="$MK_SHARED_LIB"'.$(REL_VERSION)'
			else
				MK_SHARED_LIB="$MK_SHARED_LIB"'.$(ABI_VERSION)'
			fi
			cf_cv_do_symlinks=yes
d5288 2
a5289 1
			echo "configure: warning: ignored --with-shlib-version" 1>&2
d5296 2
a5297 2
		echo $ac_n "checking if we need a space after rpath option""... $ac_c" 1>&6
echo "configure:2711: checking if we need a space after rpath option" >&5
d5299 3
a5301 3
		LIBS="$LIBS ${cf_ld_rpath_opt}/usr/lib"
		cat > conftest.$ac_ext <<EOF
#line 2715 "configure"
d5304 3
a5306 1
int main() {
d5308 16
a5323 4
; return 0; }
EOF
if { (eval echo configure:2722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
d5326 3
a5328 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_rpath_space=yes
d5330 1
a5330 1
rm -f conftest*
d5332 4
a5335 3
		echo "$ac_t""$cf_rpath_space" 1>&6
		test $cf_rpath_space = yes && cf_ld_rpath_opt="$cf_ld_rpath_opt "
		MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\$(libdir)"
a5337 11
	
	
	
	
	
	
	
	
	


d5341 3
a5343 1
			{ echo "configure: error: Shared libraries are not supported in this version" 1>&2; exit 1; }
a5349 1

d5351 2
a5352 2
echo $ac_n "checking if you wish to install ncurses overwriting curses""... $ac_c" 1>&6
echo "configure:2762: checking if you wish to install ncurses overwriting curses" >&5
a5357 4
	 test "$with_overwrite" = no && \
	 test "x$includedir" = 'x${prefix}/include' && \
	 	includedir='$(prefix)/include/ncurses'
	
d5359 4
a5362 2
  with_overwrite=yes
fi
d5364 2
a5365 7
echo "$ac_t""$with_overwrite" 1>&6
echo $ac_n "checking where we will install curses.h""... $ac_c" 1>&6
echo "configure:2778: checking where we will install curses.h" >&5
echo "$ac_t""$includedir" 1>&6

echo $ac_n "checking if external terminfo-database is used""... $ac_c" 1>&6
echo "configure:2782: checking if external terminfo-database is used" >&5
d5370 1
a5370 1
  with_database=$enableval
d5372 18
a5389 2
  with_database=yes
fi
d5391 2
a5392 2
echo "$ac_t""$with_database" 1>&6
test $with_database != no && cat >> confdefs.h <<\EOF
d5396 13
d5410 3
a5412 2
echo $ac_n "checking if you want to build with function extensions""... $ac_c" 1>&6
echo "configure:2799: checking if you want to build with function extensions" >&5
a5413 4
# Check whether --enable-ext-funcs or --disable-ext-funcs was given.
if test "${enable_ext_funcs+set}" = set; then
  enableval="$enable_ext_funcs"
  with_ext_funcs=$enableval
d5415 6
a5420 1
  with_ext_funcs=yes
d5423 2
a5424 8
echo "$ac_t""$with_ext_funcs" 1>&6
test "$with_ext_funcs" = yes && cat >> confdefs.h <<\EOF
#define NCURSES_EXT_FUNCS 1
EOF


echo $ac_n "checking for list of fallback descriptions""... $ac_c" 1>&6
echo "configure:2816: checking for list of fallback descriptions" >&5
d5432 28
a5459 8
fi

echo "$ac_t""$with_fallback" 1>&6
FALLBACK_LIST=`echo $with_fallback|sed -e 's/,/ /g'`


echo $ac_n "checking for list of terminfo directories""... $ac_c" 1>&6
echo "configure:2831: checking for list of terminfo directories" >&5
d5461 2
d5467 1
a5467 1
  :
d5469 3
a5471 4
  withval="${TERMINFO_DIRS-${datadir}/terminfo}"
fi

IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
d5475 7
a5481 1
  
d5483 5
a5487 1
./*) #(vi
d5493 1
a5493 1
    cf_src_path=`echo $cf_src_path | sed -e s@@NONE@@$ac_default_prefix@@`
d5497 2
a5498 2
.NONE/*)
  cf_src_path=`echo $cf_src_path | sed -e s@@NONE@@$ac_default_prefix@@`
d5501 3
a5503 1
  { echo "configure: error: expected a pathname" 1>&2; exit 1; }
d5512 1
a5512 1
eval TERMINFO_DIRS="$cf_dst_path"
d5514 3
a5516 2
echo "$ac_t""$TERMINFO_DIRS" 1>&6
test -n "$TERMINFO_DIRS" && cat >> confdefs.h <<EOF
d5520 50
a5570 4
if test $with_database = no ; then
	if test -z $with_fallback ; then
		{ echo "configure: error: You have disabled the database w/o specifying fallbacks" 1>&2; exit 1; }
	fi
d5575 2
a5576 2
echo $ac_n "checking if big-core option selected""... $ac_c" 1>&6
echo "configure:2888: checking if big-core option selected" >&5
d5586 2
a5587 2
  cat > conftest.$ac_ext <<EOF
#line 2899 "configure"
d5592 19
a5610 4
int main() { exit(malloc(6000000L) == 0); }
EOF
if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
d5613 13
a5625 7
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  with_big_core=no
fi
rm -fr conftest*
fi
d5627 25
a5651 1
fi
d5653 3
a5655 4
echo "$ac_t""$with_big_core" 1>&6
test "$with_big_core" = "yes" && cat >> confdefs.h <<\EOF
#define HAVE_BIG_CORE 1
EOF
d5657 2
d5661 2
a5662 2
echo $ac_n "checking if you want termcap-fallback support""... $ac_c" 1>&6
echo "configure:2928: checking if you want termcap-fallback support" >&5
d5670 3
a5672 3
fi

echo "$ac_t""$with_termcap" 1>&6
d5675 8
a5682 1
	cat >> confdefs.h <<\EOF
d5688 4
a5691 10
###	use option --enable-getcap to use a hacked getcap for reading termcaps
echo $ac_n "checking if fast termcap-loader is needed""... $ac_c" 1>&6
echo "configure:2949: checking if fast termcap-loader is needed" >&5

# Check whether --enable-getcap or --disable-getcap was given.
if test "${enable_getcap+set}" = set; then
  enableval="$enable_getcap"
  with_getcap=$enableval
else
  with_getcap=no
d5694 77
a5770 2
echo "$ac_t""$with_getcap" 1>&6
test "$with_getcap" = "yes" && cat >> confdefs.h <<\EOF
d5774 2
a5775 3

echo $ac_n "checking if translated termcaps will be cached in ~/.terminfo""... $ac_c" 1>&6
echo "configure:2966: checking if translated termcaps will be cached in ~/.terminfo" >&5
d5783 4
a5786 4
fi

echo "$ac_t""$with_getcap_cache" 1>&6
test "$with_getcap_cache" = "yes" && cat >> confdefs.h <<\EOF
d5790 1
d5792 32
a5823 1
fi
d5830 1
a5830 1
	unlink 
d5832 5
a5836 4
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:2992: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d5838 2
a5839 2
  cat > conftest.$ac_ext <<EOF
#line 2997 "configure"
d5842 1
a5842 1
    which can conflict with char $ac_func(); below.  */
d5845 3
d5849 3
a5851 4
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
d5853 3
d5862 1
a5862 1
$ac_func();
d5865 29
a5893 1
; return 0; }
a5894 11
if { (eval echo configure:3020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
a5895 9
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
d5899 1
d5901 1
a5901 2
if test "$ac_cv_prog_cc_cross" = yes ; then
	for ac_func in \
d5903 1
a5903 1
		symlink 
d5905 5
a5909 4
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3051: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d5911 2
a5912 2
  cat > conftest.$ac_ext <<EOF
#line 3056 "configure"
d5915 1
a5915 1
    which can conflict with char $ac_func(); below.  */
d5918 3
d5922 3
a5924 4
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {
d5926 3
d5935 1
a5935 1
$ac_func();
d5938 29
a5966 1
; return 0; }
a5967 11
if { (eval echo configure:3079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
a5968 9
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
d5973 4
a5976 4
	echo $ac_n "checking if link/symlink functions work""... $ac_c" 1>&6
echo "configure:3105: checking if link/symlink functions work" >&5
if eval "test \"`echo '$''{'cf_cv_link_funcs'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d5978 1
a5978 1
  
d5982 1
a5982 1
  
d5985 2
a5986 2
  cat > conftest.$ac_ext <<EOF
#line 3117 "configure"
d6011 1
a6011 1
	exit (fail);
d6013 14
a6026 5
			
EOF
if { (eval echo configure:3146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  
d6030 4
a6033 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  
d6036 1
a6036 1
rm -fr conftest*
a6037 1

d6040 1
a6040 1
	
d6042 9
a6051 1
echo "$ac_t""$cf_cv_link_funcs" 1>&6
a6053 1

d6057 6
a6062 22
if test "$ac_cv_func_link" != yes ; then
    echo $ac_n "checking if tic should use symbolic links""... $ac_c" 1>&6
echo "configure:3175: checking if tic should use symbolic links" >&5
    if test "$ac_cv_func_symlink" = yes ; then
    	with_symlinks=yes
    else
    	with_symlinks=no
    fi
    echo "$ac_t""$with_symlinks" 1>&6
elif test "$ac_cv_func_symlink" != yes ; then
    echo $ac_n "checking if tic should use hard links""... $ac_c" 1>&6
echo "configure:3184: checking if tic should use hard links" >&5
    if test "$ac_cv_func_link" = yes ; then
    	with_links=yes
    else
    	with_links=no
    fi
    echo "$ac_t""$with_links" 1>&6
else
    echo $ac_n "checking if tic should use symbolic links""... $ac_c" 1>&6
echo "configure:3193: checking if tic should use symbolic links" >&5
    
d6069 3
d6074 12
a6085 1
    echo "$ac_t""$with_symlinks" 1>&6
d6088 1
a6088 1
test "$with_links" = yes && cat >> confdefs.h <<\EOF
d6092 1
a6092 1
test "$with_symlinks" = yes && cat >> confdefs.h <<\EOF
d6096 36
d6134 2
a6135 2
echo $ac_n "checking if tputs should process BSD-style prefix padding""... $ac_c" 1>&6
echo "configure:3217: checking if tputs should process BSD-style prefix padding" >&5
d6143 4
a6146 4
fi

echo "$ac_t""$with_bsdpad" 1>&6
test "$with_bsdpad" = yes && cat >> confdefs.h <<\EOF
d6150 33
d6184 53
a6236 3
###   use option --enable-const to turn on use of const beyond that in XSI.
echo $ac_n "checking for extended use of const keyword""... $ac_c" 1>&6
echo "configure:3235: checking for extended use of const keyword" >&5
d6238 4
a6241 4
# Check whether --enable-const or --disable-const was given.
if test "${enable_const+set}" = set; then
  enableval="$enable_const"
  with_ext_const=$enableval
a6242 2
  with_ext_const=no
fi
d6244 7
a6250 6
echo "$ac_t""$with_ext_const" 1>&6
NCURSES_CONST=""
if test "$with_ext_const" = yes ; then
	cat >> confdefs.h <<\EOF
#define NCURSES_CONST const
EOF
d6252 32
a6283 2
	NCURSES_CONST=const
fi
d6285 35
d6321 27
a6347 8
### Enable compiling-in rcs id's
echo $ac_n "checking if RCS identifiers should be compiled-in""... $ac_c" 1>&6
echo "configure:3258: checking if RCS identifiers should be compiled-in" >&5

# Check whether --with-rcs-ids or --without-rcs-ids was given.
if test "${with_rcs_ids+set}" = set; then
  withval="$with_rcs_ids"
  with_rcs_ids=$withval
a6348 2
  with_rcs_ids=no
fi
d6350 7
a6356 4
echo "$ac_t""$with_rcs_ids" 1>&6
test "$with_rcs_ids" = yes && cat >> confdefs.h <<\EOF
#define USE_RCS_IDS 1
EOF
d6358 32
d6391 50
a6440 1
###############################################################################
d6442 1
a6442 2
echo $ac_n "checking if you want all experimental code""... $ac_c" 1>&6
echo "configure:3277: checking if you want all experimental code" >&5
d6444 2
a6445 7
# Check whether --with-develop or --without-develop was given.
if test "${with_develop+set}" = set; then
  withval="$with_develop"
  with_develop=$withval
else
  with_develop=no
fi
d6447 4
a6450 1
echo "$ac_t""$with_develop" 1>&6
d6452 4
a6455 3
###   use option --enable-broken-linker to force on use of broken-linker support
echo $ac_n "checking if you want broken-linker support code""... $ac_c" 1>&6
echo "configure:3291: checking if you want broken-linker support code" >&5
d6457 4
a6460 4
# Check whether --enable-broken_linker or --disable-broken_linker was given.
if test "${enable_broken_linker+set}" = set; then
  enableval="$enable_broken_linker"
  with_broken_linker=$enableval
a6461 2
  with_broken_linker=$BROKEN_LINKER
fi
d6463 1
a6463 4
echo "$ac_t""$with_broken_linker" 1>&6
test "$with_broken_linker" = yes && cat >> confdefs.h <<\EOF
#define BROKEN_LINKER 1
EOF
d6465 7
d6473 44
a6516 3
###   use option --enable-hard-tabs to turn on use of hard-tabs optimize
echo $ac_n "checking if you want experimental hard-tabs code""... $ac_c" 1>&6
echo "configure:3309: checking if you want experimental hard-tabs code" >&5
d6518 20
a6537 4
# Check whether --enable-hard-tabs or --disable-hard-tabs was given.
if test "${enable_hard_tabs+set}" = set; then
  enableval="$enable_hard_tabs"
  with_hardtabs=$enableval
d6539 3
a6541 1
  with_hardtabs=$with_develop
d6543 4
d6548 2
a6549 4
echo "$ac_t""$with_hardtabs" 1>&6
test "$with_hardtabs" = yes && cat >> confdefs.h <<\EOF
#define USE_HARD_TABS 1
EOF
d6551 1
d6553 7
a6559 3
###   use option --enable-hashmap to turn on use of hashmap scrolling logic
echo $ac_n "checking if you want experimental hashmap code""... $ac_c" 1>&6
echo "configure:3327: checking if you want experimental hashmap code" >&5
d6561 20
a6580 4
# Check whether --enable-hashmap or --disable-hashmap was given.
if test "${enable_hashmap+set}" = set; then
  enableval="$enable_hashmap"
  with_hashmap=$enableval
d6582 11
a6592 1
  with_hashmap=yes
d6594 2
d6597 10
a6606 4
echo "$ac_t""$with_hashmap" 1>&6
test "$with_hashmap" = yes && cat >> confdefs.h <<\EOF
#define USE_HASHMAP 1
EOF
d6608 2
d6611 1
a6611 2
echo $ac_n "checking if you want experimental no-padding code""... $ac_c" 1>&6
echo "configure:3344: checking if you want experimental no-padding code" >&5
d6613 4
a6616 4
# Check whether --enable-no-padding or --disable-no-padding was given.
if test "${enable_no_padding+set}" = set; then
  enableval="$enable_no_padding"
  with_no_padding=$enableval
a6617 2
  with_no_padding=yes
fi
d6619 3
a6621 4
echo "$ac_t""$with_no_padding" 1>&6
test "$with_no_padding" = yes && cat >> confdefs.h <<\EOF
#define NCURSES_NO_PADDING 1
EOF
d6623 2
d6626 5150
a11775 7
echo $ac_n "checking if you want experimental safe-sprintf code""... $ac_c" 1>&6
echo "configure:3361: checking if you want experimental safe-sprintf code" >&5

# Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
if test "${enable_safe_sprintf+set}" = set; then
  enableval="$enable_safe_sprintf"
  with_safe_sprintf=$enableval
d11777 5
a11781 1
  with_safe_sprintf=no
d11783 5
a11787 4

echo "$ac_t""$with_safe_sprintf" 1>&6
test "$with_safe_sprintf" = yes && cat >> confdefs.h <<\EOF
#define USE_SAFE_SPRINTF 1
d11790 2
d11793 3
a11795 3
###   use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
echo $ac_n "checking if you want to experiment without scrolling-hints code""... $ac_c" 1>&6
echo "configure:3379: checking if you want to experiment without scrolling-hints code" >&5
d11797 4
a11800 4
# Check whether --enable-scroll-hints or --disable-scroll-hints was given.
if test "${enable_scroll_hints+set}" = set; then
  enableval="$enable_scroll_hints"
  with_scroll_hints=$enableval
d11802 5
a11806 4
  with_scroll_hints=yes;
	 # when hashmap is used scroll hints are useless
	 test $with_hashmap = yes && with_scroll_hints=no
fi
d11808 34
a11841 3
echo "$ac_t""$with_scroll_hints" 1>&6
test "$with_scroll_hints" = yes && cat >> confdefs.h <<\EOF
#define USE_SCROLL_HINTS 1
d11844 1
d11846 1
a11846 3
###   use option --enable-tcap-names to allow user to define new capabilities
echo $ac_n "checking if you want experimental definable names like termcap""... $ac_c" 1>&6
echo "configure:3399: checking if you want experimental definable names like termcap" >&5
d11848 4
a11851 4
# Check whether --enable-tcap-names or --disable-tcap-names was given.
if test "${enable_tcap_names+set}" = set; then
  enableval="$enable_tcap_names"
  with_tcap_names=$enableval
d11853 46
a11898 1
  with_tcap_names=$with_develop
d11900 7
d11908 3
a11910 3
echo "$ac_t""$with_tcap_names" 1>&6
NCURSES_XNAMES=0
test "$with_tcap_names" = yes && NCURSES_XNAMES=1
d11912 7
d11920 3
a11922 3
###   use option --enable-sigwinch to turn on use of SIGWINCH logic
echo $ac_n "checking if you want experimental SIGWINCH handler""... $ac_c" 1>&6
echo "configure:3416: checking if you want experimental SIGWINCH handler" >&5
d11924 17
a11940 4
# Check whether --enable-sigwinch or --disable-sigwinch was given.
if test "${enable_sigwinch+set}" = set; then
  enableval="$enable_sigwinch"
  with_sigwinch=$enableval
d11942 6
a11947 1
  with_sigwinch=yes
d11950 4
a11953 3
echo "$ac_t""$with_sigwinch" 1>&6
test "$with_sigwinch" = yes && cat >> confdefs.h <<\EOF
#define USE_SIGWINCH 1
d11956 107
d12064 49
a12112 3
###   use option --enable-widec to turn on use of wide-character support
echo $ac_n "checking if you want experimental wide-character code""... $ac_c" 1>&6
echo "configure:3434: checking if you want experimental wide-character code" >&5
d12114 17
a12130 4
# Check whether --enable-widec or --disable-widec was given.
if test "${enable_widec+set}" = set; then
  enableval="$enable_widec"
  with_widec=$enableval
d12132 5
a12136 1
  with_widec=no
d12138 3
d12142 2
a12143 3
echo "$ac_t""$with_widec" 1>&6
test "$with_widec" = yes && cat >> confdefs.h <<\EOF
#define USE_WIDEC_SUPPORT 1
d12146 1
d12148 14
a12161 3
###   use option --enable-xmc-glitch to turn on use of magic-cookie optimize
echo $ac_n "checking if you want experimental xmc code""... $ac_c" 1>&6
echo "configure:3452: checking if you want experimental xmc code" >&5
d12163 14
a12176 4
# Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
if test "${enable_xmc_glitch+set}" = set; then
  enableval="$enable_xmc_glitch"
  with_xmc_glitch=$enableval
d12178 2
a12179 1
  with_xmc_glitch=$with_develop
d12181 2
d12184 12
a12195 3
echo "$ac_t""$with_xmc_glitch" 1>&6
test "$with_xmc_glitch" = yes && cat >> confdefs.h <<\EOF
#define USE_XMC_SUPPORT 1
d12197 75
d12273 24
d12298 1
a12298 1
###############################################################################
d12300 6
d12307 1
a12307 1
###	use option --disable-echo to suppress full display compiling commands
d12309 1
a12309 6
# Check whether --enable-echo or --disable-echo was given.
if test "${enable_echo+set}" = set; then
  enableval="$enable_echo"
  with_echo=$enableval
else
  with_echo=yes
d12312 3
a12314 4
if test "$with_echo" = yes; then
	ECHO_LINK=
else
	ECHO_LINK='@@ echo linking $@@ ... ;'
d12317 1
d12319 2
a12320 1
###	use option --enable-warnings to turn on all gcc warnings
d12322 2
a12323 4
# Check whether --enable-warnings or --disable-warnings was given.
if test "${enable_warnings+set}" = set; then
  enableval="$enable_warnings"
  with_warnings=$enableval
d12326 10
a12335 26
if test -n "$with_warnings"; then
 	ADAFLAGS="$ADAFLAGS -gnatg"
	
if test -n "$GCC"
then
		cat > conftest.$ac_ext <<EOF
#line 3502 "configure"
int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
EOF
		echo "checking for gcc warning options" 1>&6
echo "configure:3506: checking for gcc warning options" >&5
	cf_save_CFLAGS="$CFLAGS"
	EXTRA_CFLAGS="-W -Wall"
	cf_warn_CONST=""
	test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
	for cf_opt in \
		Wbad-function-cast \
		Wcast-align \
		Wcast-qual \
		Winline \
		Wmissing-declarations \
		Wmissing-prototypes \
		Wnested-externs \
		Wpointer-arith \
		Wshadow \
		Wstrict-prototypes $cf_warn_CONST
d12337 43
a12379 6
		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
		if { (eval echo configure:3524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
			test -n "$verbose" && echo "$ac_t""... -$cf_opt" 1>&6
			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
			test "$cf_opt" = Wcast-qual && EXTRA_CFLAGS="$EXTRA_CFLAGS -DXTSTRINGDEFINES"
		fi
d12381 1
a12381 2
	rm -f conftest*
	CFLAGS="$cf_save_CFLAGS"
d12384 73
d12460 5
a12464 39
if test -n "$GCC"
then
cat > conftest.i <<EOF
#ifndef GCC_PRINTF
#define GCC_PRINTF 0
#endif
#ifndef GCC_SCANF
#define GCC_SCANF 0
#endif
#ifndef GCC_NORETURN
#define GCC_NORETURN /* nothing */
#endif
#ifndef GCC_UNUSED
#define GCC_UNUSED /* nothing */
#endif
EOF
if test -n "$GCC"
then
	echo "checking for gcc __attribute__ directives" 1>&6
echo "configure:3556: checking for gcc __attribute__ directives" >&5
	cat > conftest.$ac_ext <<EOF
#line 3558 "configure"
#include "confdefs.h"
#include "conftest.h"
#include "conftest.i"
#if	GCC_PRINTF
#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
#else
#define GCC_PRINTFLIKE(fmt,var) /*nothing*/
#endif
#if	GCC_SCANF
#define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
#else
#define GCC_SCANFLIKE(fmt,var)  /*nothing*/
#endif
extern void wow(char *,...) GCC_SCANFLIKE(1,2);
extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
extern void foo(void) GCC_NORETURN;
int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
a12465 4
		for cf_attribute in scanf printf unused noreturn
	do
		
CF_ATTRIBUTE=`echo $cf_attribute | tr '[a-z]' '[A-Z]'`
a12466 21
		cf_directive="__attribute__(($cf_attribute))"
		echo "checking for gcc $cf_directive" 1>&5
		case $cf_attribute in
		scanf|printf)
		cat >conftest.h <<EOF
#define GCC_$CF_ATTRIBUTE 1
EOF
			;;
		*)
		cat >conftest.h <<EOF
#define GCC_$CF_ATTRIBUTE $cf_directive
EOF
			;;
		esac
		if { (eval echo configure:3596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
			test -n "$verbose" && echo "$ac_t""... $cf_attribute" 1>&6
			cat conftest.h >>confdefs.h
#		else
#			sed -e 's/__attr.*/\/*nothing*\//' conftest.h >>confdefs.h
		fi
	done
d12468 1
a12468 3
	fgrep define conftest.i >>confdefs.h
fi
rm -rf conftest*
d12470 1
d12472 5
d12478 3
a12480 1
###	use option --enable-assertions to turn on generation of assertion code
d12482 21
a12502 4
# Check whether --enable-assertions or --disable-assertions was given.
if test "${enable_assertions+set}" = set; then
  enableval="$enable_assertions"
  with_assertions=$enableval
d12504 3
a12506 1
  with_assertions=no
d12508 1
a12509 12
if test -n "$GCC"
then
	if test $with_assertions = no
	then
		cat >> confdefs.h <<\EOF
#define NDEBUG 1
EOF

		CPPFLAGS="$CPPFLAGS -DNDEBUG"
	else
		ADAFLAGS="$ADAFLAGS -gnata"
	fi
d12512 2
a12513 1
###	use option --disable-leaks to suppress "permanent" leaks, for testing
d12515 3
a12517 6
# Check whether --enable-leaks or --disable-leaks was given.
if test "${enable_leaks+set}" = set; then
  enableval="$enable_leaks"
  test $enableval = no && cat >> confdefs.h <<\EOF
#define NO_LEAKS 1
EOF
d12519 4
d12524 1
d12526 1
a12526 3
cat >> confdefs.h <<\EOF
#define HAVE_NC_ALLOC_H 1
EOF
d12528 5
d12534 3
a12536 1
###	use option --enable-expanded to generate certain macros as functions
d12538 33
a12570 6
# Check whether --enable-expanded or --disable-expanded was given.
if test "${enable_expanded+set}" = set; then
  enableval="$enable_expanded"
  test $enableval = yes && cat >> confdefs.h <<\EOF
#define NCURSES_EXPANDED 1
EOF
d12573 2
d12576 1
d12578 1
a12578 1
###	use option --disable-macros to suppress macros in favor of functions
d12580 2
a12581 5
# Check whether --enable-macros or --disable-macros was given.
if test "${enable_macros+set}" = set; then
  enableval="$enable_macros"
  test $enableval = no && cat >> confdefs.h <<\EOF
#define NCURSES_NOMACROS 1
d12586 1
d12588 4
a12591 5
###	Checks for libraries.
echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
echo "configure:3676: checking for gettimeofday" >&5
if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d12593 3
a12595 2
  cat > conftest.$ac_ext <<EOF
#line 3681 "configure"
a12596 7
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gettimeofday(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gettimeofday();
d12598 2
a12599 1
int main() {
d12601 27
a12627 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
choke me
#else
gettimeofday();
#endif
a12628 12
; return 0; }
EOF
if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_gettimeofday=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_gettimeofday=no"
fi
rm -f conftest*
d12630 6
d12637 2
a12638 4
if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_GETTIMEOFDAY 1
d12641 6
a12647 1
  echo "$ac_t""no" 1>&6
d12649 42
a12690 6

echo $ac_n "checking for gettimeofday in -lbsd""... $ac_c" 1>&6
echo "configure:3727: checking for gettimeofday in -lbsd" >&5
ac_lib_var=`echo bsd'_'gettimeofday | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d12692 2
a12693 4
  ac_save_LIBS="$LIBS"
LIBS="-lbsd  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3735 "configure"
a12694 4
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gettimeofday();
d12696 19
a12714 7
int main() {
gettimeofday()
; return 0; }
EOF
if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
d12716 6
a12721 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
d12723 1
a12723 2
rm -f conftest*
LIBS="$ac_save_LIBS"
d12726 7
a12732 4
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_GETTIMEOFDAY 1
d12735 1
a12735 3
	LIBS="$LIBS -lbsd"
else
  echo "$ac_t""no" 1>&6
d12738 21
a12758 1
fi
d12760 6
a12765 5
MATH_LIB=""
echo $ac_n "checking for sin""... $ac_c" 1>&6
echo "configure:3774: checking for sin" >&5
if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d12767 2
a12768 2
  cat > conftest.$ac_ext <<EOF
#line 3779 "configure"
d12771 1
a12771 1
    which can conflict with char sin(); below.  */
d12774 3
d12778 3
a12780 4
    builtin and then its argument prototype would still apply.  */
char sin();

int main() {
d12782 3
d12788 1
a12788 1
#if defined (__stub_sin) || defined (__stub___sin)
d12791 1
a12791 1
sin();
d12794 29
a12822 1
; return 0; }
d12824 1
a12824 10
if { (eval echo configure:3802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_sin=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_sin=no"
fi
rm -f conftest*
d12826 3
d12830 4
a12833 3
if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
d12835 34
a12868 6
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
echo "configure:3820: checking for sin in -lm" >&5
ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d12870 7
a12876 9
  ac_save_LIBS="$LIBS"
LIBS="-lm  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3828 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char sin();
d12878 4
a12881 3
int main() {
sin()
; return 0; }
d12883 7
a12889 3
if { (eval echo configure:3839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
d12891 26
a12916 12
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  MATH_LIB="-lm"
d12918 3
a12920 1
  echo "$ac_t""no" 1>&6
d12922 1
d12925 5
d12931 6
d12938 26
d12965 2
a12966 8
###	Checks for header files.
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:3865: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3870 "configure"
d12968 27
a12994 4
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
d12996 1
a12996 6
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  ac_cv_header_stdc=yes
d12998 3
a13000 5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_stdc=no
d13002 1
a13002 15
rm -f conftest*

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 3895 "configure"
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
d13004 3
a13006 2
rm -f conftest*

d13009 4
a13012 10
if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 3913 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
a13013 6
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi
a13014 2
if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
d13016 1
a13016 1
  :
d13018 2
a13019 2
  cat > conftest.$ac_ext <<EOF
#line 3934 "configure"
a13020 7
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
d13022 19
a13040 12
EOF
if { (eval echo configure:3945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_header_stdc=no
fi
rm -fr conftest*
fi
d13042 20
d13064 2
d13067 2
a13068 4
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
d13071 4
a13074 1
fi
a13075 2
ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
d13077 5
a13081 5
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
echo "configure:3973: checking for $ac_hdr that defines DIR" >&5
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d13083 2
a13084 2
  cat > conftest.$ac_ext <<EOF
#line 3978 "configure"
d13086 20
a13105 9
#include <sys/types.h>
#include <$ac_hdr>
int main() {
DIR *dirp = 0;
; return 0; }
EOF
if { (eval echo configure:3986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_header_dirent_$ac_safe=yes"
d13107 1
a13107 1
  echo "configure: failed program was:" >&5
d13109 1
a13109 2
  rm -rf conftest*
  eval "ac_cv_header_dirent_$ac_safe=no"
d13111 1
a13111 1
rm -f conftest*
d13113 5
a13117 5
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
d13119 1
a13119 3
 ac_header_dirent=$ac_hdr; break
else
  echo "$ac_t""no" 1>&6
d13122 10
a13131 7
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
echo "configure:4011: checking for opendir in -ldir" >&5
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d13133 2
a13134 4
  ac_save_LIBS="$LIBS"
LIBS="-ldir  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4019 "configure"
d13136 20
a13155 12
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char opendir();

int main() {
opendir()
; return 0; }
EOF
if { (eval echo configure:4030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
d13157 1
a13157 1
  echo "configure: failed program was:" >&5
d13159 11
a13169 2
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
d13171 1
a13171 2
rm -f conftest*
LIBS="$ac_save_LIBS"
d13174 34
a13207 3
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="$LIBS -ldir"
d13209 2
a13210 2
  echo "$ac_t""no" 1>&6
fi
d13212 2
a13213 11
else
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
echo "configure:4052: checking for opendir in -lx" >&5
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lx  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4060 "configure"
a13214 4
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char opendir();
d13216 28
a13243 3
int main() {
opendir()
; return 0; }
d13245 1
a13245 8
if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
d13247 1
a13247 2
rm -f conftest*
LIBS="$ac_save_LIBS"
d13250 10
a13259 3
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="$LIBS -lx"
a13260 2
  echo "$ac_t""no" 1>&6
fi
d13262 17
a13278 1
fi
d13280 3
d13284 36
a13319 4
echo $ac_n "checking for regular-expression headers""... $ac_c" 1>&6
echo "configure:4095: checking for regular-expression headers" >&5
if eval "test \"`echo '$''{'cf_cv_regex'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d13321 3
a13323 3
  
cat > conftest.$ac_ext <<EOF
#line 4101 "configure"
a13324 3
#include <sys/types.h>
#include <regex.h>
int main() {
d13326 25
a13350 10
	regex_t *p;
	int x = regcomp(p, "", 0);
	int y = regexec(p, "", 0, 0, 0);
	regfree(p);
	
; return 0; }
EOF
if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  cf_cv_regex="regex.h"
d13352 5
a13356 6
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  
	cat > conftest.$ac_ext <<EOF
#line 4123 "configure"
a13357 2
#include <regexp.h>
int main() {
d13359 31
a13389 8
		char *p = compile("", "", "", 0);
		int x = step("", "");
	
; return 0; }
EOF
if { (eval echo configure:4133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  cf_cv_regex="regexp.h"
d13391 5
a13395 8
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  
		cf_save_LIBS="$LIBS"
		LIBS="-lgen $LIBS"
		cat > conftest.$ac_ext <<EOF
#line 4144 "configure"
a13396 2
#include <regexpr.h>
int main() {
d13398 5
a13402 19
			char *p = compile("", "", "");
			int x = step("", "");
		
; return 0; }
EOF
if { (eval echo configure:4154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  cf_cv_regex="regexpr.h"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  LIBS="$cf_save_LIBS"
fi
rm -f conftest*
fi
rm -f conftest*
fi
rm -f conftest*
d13404 2
a13405 1
fi
d13407 48
a13454 8
echo "$ac_t""$cf_cv_regex" 1>&6
case $cf_cv_regex in
	regex.h)   cat >> confdefs.h <<\EOF
#define HAVE_REGEX_H_FUNCS 1
EOF
 ;;
	regexp.h)  cat >> confdefs.h <<\EOF
#define HAVE_REGEXP_H_FUNCS 1
d13456 1
a13456 5
 ;;
	regexpr.h) cat >> confdefs.h <<\EOF
#define HAVE_REGEXPR_H_FUNCS 1
EOF
 ;;
d13459 5
d13465 6
a13470 26
for ac_hdr in \
fcntl.h \
getopt.h \
libc.h \
limits.h \
locale.h \
sys/bsdtypes.h \
sys/ioctl.h \
sys/param.h \
poll.h \
sys/select.h \
sys/stropts.h \
sys/time.h \
sys/times.h \
termio.h \
termios.h \
ttyent.h \
unistd.h \
values.h \

do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4211: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d13472 2
a13473 2
  cat > conftest.$ac_ext <<EOF
#line 4216 "configure"
d13475 45
a13519 14
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
d13521 1
a13521 1
rm -f conftest*
d13523 3
a13525 7
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
d13527 36
a13562 3
  echo "$ac_t""no" 1>&6
fi
done
d13564 13
a13577 8
# check for ISC (this may also define _POSIX_SOURCE)
# Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
if test "$ISC" = yes ; then
	echo $ac_n "checking for main in -lcposix""... $ac_c" 1>&6
echo "configure:4252: checking for main in -lcposix" >&5
ac_lib_var=`echo cposix'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d13579 4
a13582 5
  ac_save_LIBS="$LIBS"
LIBS="-lcposix  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4260 "configure"
#include "confdefs.h"
a13583 12
int main() {
main()
; return 0; }
EOF
if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
d13585 2
a13586 2
rm -f conftest*
LIBS="$ac_save_LIBS"
d13589 5
a13593 6
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo cposix | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
d13596 3
a13598 1
  LIBS="-lcposix $LIBS"
d13600 2
d13603 1
a13603 1
  echo "$ac_t""no" 1>&6
d13606 8
a13613 5
	echo $ac_n "checking for bzero in -linet""... $ac_c" 1>&6
echo "configure:4295: checking for bzero in -linet" >&5
ac_lib_var=`echo inet'_'bzero | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d13615 7
a13621 4
  ac_save_LIBS="$LIBS"
LIBS="-linet  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4303 "configure"
d13623 39
a13661 4
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char bzero();
d13663 2
a13664 3
int main() {
bzero()
; return 0; }
d13666 1
a13666 8
if { (eval echo configure:4314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
a13667 2
rm -f conftest*
LIBS="$ac_save_LIBS"
d13670 40
a13709 3
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="$LIBS -linet"
d13711 5
a13715 1
  echo "$ac_t""no" 1>&6
d13717 11
a13727 7
	for ac_hdr in sys/termio.h 
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4337: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d13729 3
a13731 2
  cat > conftest.$ac_ext <<EOF
#line 4342 "configure"
d13733 23
a13755 8
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
d13757 3
a13759 5
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
d13761 1
a13761 1
rm -f conftest*
d13763 5
a13767 5
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
d13769 5
a13773 1
 
a13774 3
  echo "$ac_t""no" 1>&6
fi
done
d13776 2
a13777 1
fi
d13779 2
d13782 4
a13785 8
echo $ac_n "checking if sys/time.h works with sys/select.h""... $ac_c" 1>&6
echo "configure:4377: checking if sys/time.h works with sys/select.h" >&5
if eval "test \"`echo '$''{'cf_cv_sys_time_select'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 4383 "configure"
a13786 1

d13788 13
a13800 2
#if HAVE_SYS_TIME_H
#include <sys/time.h>
d13802 2
a13803 2
#if HAVE_SYS_SELECT_H
#include <sys/select.h>
d13806 17
a13822 1
int main() {
d13824 17
a13840 5
; return 0; }
EOF
if { (eval echo configure:4398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  cf_cv_sys_time_select=yes
d13842 3
a13844 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_cv_sys_time_select=no
d13846 10
a13855 2
rm -f conftest*
     
d13857 6
d13864 4
a13867 3
echo "$ac_t""$cf_cv_sys_time_select" 1>&6
test $cf_cv_sys_time_select = yes && cat >> confdefs.h <<\EOF
#define HAVE_SYS_TIME_SELECT 1
d13870 3
d13874 4
a13877 13

###	checks for compiler characteristics
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:4427: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d13879 2
a13880 2
  cat > conftest.$ac_ext <<EOF
#line 4432 "configure"
d13882 11
d13894 11
a13904 1
int main() {
d13906 2
a13907 40
/* Ultrix mips cc rejects this.  */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this.  */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this.  */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
   It does not let you subtract one const X* pointer from another in an arm
   of an if-expression whose if-part is not a constant expression */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this.  */
  char *t;
  char const *s = 0 ? (char *) 0 : (char const *) 0;

  *t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  int x[] = {25, 17};
  const int *foo = &x[0];
  ++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  typedef const int *iptr;
  iptr p = 0;
  ++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  struct s { int j; const int *ap[3]; };
  struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
d13909 26
d13936 4
a13939 5
; return 0; }
EOF
if { (eval echo configure:4481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_c_const=yes
d13941 14
a13954 7
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_const=no
fi
rm -f conftest*
fi
d13956 11
a13966 5
echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
#define const 
EOF
d13968 33
a14000 1
fi
d14002 2
a14003 4
echo $ac_n "checking for inline""... $ac_c" 1>&6
echo "configure:4502: checking for inline" >&5
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d14005 2
a14006 4
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat > conftest.$ac_ext <<EOF
#line 4509 "configure"
d14010 21
a14030 6
} $ac_kw foo() {
; return 0; }
EOF
if { (eval echo configure:4516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_c_inline=$ac_kw; break
d14032 8
a14039 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d14041 2
a14042 2
rm -f conftest*
done
d14044 2
d14048 3
a14050 5
echo "$ac_t""$ac_cv_c_inline" 1>&6
case "$ac_cv_c_inline" in
  inline | yes) ;;
  no) cat >> confdefs.h <<\EOF
#define inline 
d14052 4
a14055 3
 ;;
  *)  cat >> confdefs.h <<EOF
#define inline $ac_cv_c_inline
a14056 2
 ;;
esac
d14058 1
a14058 3
test $ac_cv_c_inline != no && cat >> confdefs.h <<\EOF
#define CC_HAS_INLINE_FUNCS 1
EOF
d14060 1
d14062 5
d14068 2
a14069 4
echo $ac_n "checking if unsigned literals are legal""... $ac_c" 1>&6
echo "configure:4548: checking if unsigned literals are legal" >&5
if eval "test \"`echo '$''{'cf_cv_unsigned_literals'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d14071 2
a14072 3
  
	cat > conftest.$ac_ext <<EOF
#line 4554 "configure"
d14075 6
d14082 2
a14083 15
long x = 1L + 1UL + 1U + 1
; return 0; }
EOF
if { (eval echo configure:4561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  cf_cv_unsigned_literals=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_cv_unsigned_literals=no
fi
rm -f conftest*
	
fi
d14085 2
a14086 1
echo "$ac_t""$cf_cv_unsigned_literals" 1>&6
d14088 43
d14132 57
d14190 1
a14190 12
echo $ac_n "checking for type of chtype""... $ac_c" 1>&6
echo "configure:4579: checking for type of chtype" >&5
if eval "test \"`echo '$''{'cf_cv_typeof_chtype'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
		if test "$cross_compiling" = yes; then
  cf_cv_typeof_chtype=long
else
  cat > conftest.$ac_ext <<EOF
#line 4588 "configure"
#include "confdefs.h"
d14192 2
a14193 8
#if USE_WIDEC_SUPPORT
#include <stddef.h>	/* we want wchar_t */
#define WANT_BITS 39
#else
#define WANT_BITS 31
#endif
#include <stdio.h>
int main()
d14195 6
a14200 31
	FILE *fp = fopen("cf_test.out", "w");
	if (fp != 0) {
		char *result = "long";
#if USE_WIDEC_SUPPORT
		/*
		 * If wchar_t is smaller than a long, it must be an int or a
		 * short.  We prefer not to use a short anyway.
		 */
		if (sizeof(unsigned long) > sizeof(wchar_t))
			result = "int";
#endif
		if (sizeof(unsigned long) > sizeof(unsigned int)) {
			int n;
			unsigned int x;
			for (n = 0; n < WANT_BITS; n++) {
				unsigned int y = (x >> n);
				if (y != 1 || x == 0) {
					x = 0;
					break;
				}
			}
			/*
			 * If x is nonzero, an int is big enough for the bits
			 * that we want.
			 */
			result = (x != 0) ? "int" : "long";
		}
		fputs(result, fp);
		fclose(fp);
	}
	exit(0);
d14202 17
a14218 5
		
EOF
if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  cf_cv_typeof_chtype=`cat cf_test.out`
d14220 5
a14224 6
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  cf_cv_typeof_chtype=long
fi
rm -fr conftest*
d14226 3
a14229 2
		rm -f cf_test.out
	
d14231 2
d14234 4
a14237 1
echo "$ac_t""$cf_cv_typeof_chtype" 1>&6
d14239 2
a14240 3

cat >> confdefs.h <<EOF
#define TYPEOF_CHTYPE $cf_cv_typeof_chtype
d14243 4
d14248 4
a14251 4
cf_cv_1UL="1"
test "$cf_cv_unsigned_literals" = yes && cf_cv_1UL="${cf_cv_1UL}U"
test "$cf_cv_typeof_chtype"    = long && cf_cv_1UL="${cf_cv_1UL}L"

d14253 5
d14259 16
d14276 8
a14283 12

echo $ac_n "checking for number of bits in chtype""... $ac_c" 1>&6
echo "configure:4667: checking for number of bits in chtype" >&5
if eval "test \"`echo '$''{'cf_cv_shift_limit'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
	if test "$cross_compiling" = yes; then
  cf_cv_shift_limit=32
else
  cat > conftest.$ac_ext <<EOF
#line 4676 "configure"
a14284 1

d14286 2
a14287 1
int main()
d14289 3
a14291 14
	FILE *fp = fopen("cf_test.out", "w");
	if (fp != 0) {
		int n;
		unsigned TYPEOF_CHTYPE x = 1L;
		for (n = 0; ; n++) {
			unsigned long y = (x >> n);
			if (y != 1 || x == 0)
				break;
			x <<= 1;
		}
		fprintf(fp, "%d", n);
		fclose(fp);
	}
	exit(0);
d14293 14
a14306 5
		
EOF
if { (eval echo configure:4699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  cf_cv_shift_limit=`cat cf_test.out`
d14308 3
a14310 6
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  cf_cv_shift_limit=32
fi
rm -fr conftest*
d14312 5
d14318 2
a14319 3
		rm -f cf_test.out
	
fi
d14321 1
a14321 1
echo "$ac_t""$cf_cv_shift_limit" 1>&6
d14323 1
d14325 9
a14333 16
echo $ac_n "checking for width of character-index""... $ac_c" 1>&6
echo "configure:4719: checking for width of character-index" >&5
if eval "test \"`echo '$''{'cf_cv_widec_shift'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if test ".$with_widec" = ".yes" ; then
	cf_attrs_width=39
	if ( expr $cf_cv_shift_limit \> $cf_attrs_width >/dev/null )
	then
		cf_cv_widec_shift=`expr 16 + $cf_cv_shift_limit - $cf_attrs_width`
	else
		cf_cv_widec_shift=16
	fi
else
	cf_cv_widec_shift=8
d14336 18
a14353 1
fi
d14355 1
a14355 1
echo "$ac_t""$cf_cv_widec_shift" 1>&6
d14357 5
d14363 2
d14366 4
a14369 7
###	Checks for external-data


echo $ac_n "checking if external errno is declared""... $ac_c" 1>&6
echo "configure:4746: checking if external errno is declared" >&5
if eval "test \"`echo '$''{'cf_cv_dcl_errno'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d14371 2
a14372 3
  
    cat > conftest.$ac_ext <<EOF
#line 4752 "configure"
d14374 20
a14393 14

#if HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include <stdio.h>
#include <sys/types.h>
#include <errno.h> 
int main() {
long x = (long) errno
; return 0; }
EOF
if { (eval echo configure:4765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval 'cf_cv_dcl_'errno'=yes'
d14395 1
a14395 1
  echo "configure: failed program was:" >&5
d14397 1
a14397 2
  rm -rf conftest*
  eval 'cf_cv_dcl_'errno'=no'
d14399 5
a14403 1
rm -f conftest*
d14405 5
a14409 1
fi
d14411 1
d14413 2
a14414 2
eval 'cf_result=$cf_cv_dcl_'errno
echo "$ac_t""$cf_result" 1>&6
d14416 1
a14416 4
if test "$cf_result" = no ; then
    eval 'cf_result=DECL_'errno
    
cf_result=`echo $cf_result | tr '[a-z]' '[A-Z]'`
d14418 3
a14420 3
    cat >> confdefs.h <<EOF
#define $cf_result 1
EOF
d14422 2
a14423 1
fi
d14425 14
a14438 1
# It's possible (for near-UNIX clones) that the data doesn't exist
d14440 20
a14459 9
echo $ac_n "checking if external errno exists""... $ac_c" 1>&6
echo "configure:4796: checking if external errno exists" >&5
if eval "test \"`echo '$''{'cf_cv_have_errno'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
    cat > conftest.$ac_ext <<EOF
#line 4802 "configure"
#include "confdefs.h"
d14461 2
a14462 2
#undef errno
extern int errno;
a14463 7
int main() {
errno = 2
; return 0; }
EOF
if { (eval echo configure:4812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval 'cf_cv_have_'errno'=yes'
d14465 2
a14466 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval 'cf_cv_have_'errno'=no'
d14468 3
a14470 1
rm -f conftest*
d14472 2
d14475 5
d14481 5
a14485 2
eval 'cf_result=$cf_cv_have_'errno
echo "$ac_t""$cf_result" 1>&6
d14487 7
a14493 4
if test "$cf_result" = yes ; then
    eval 'cf_result=HAVE_'errno
    
cf_result=`echo $cf_result | tr '[a-z]' '[A-Z]'`
d14495 1
a14495 5
    cat >> confdefs.h <<EOF
#define $cf_result 1
EOF

fi
d14497 3
d14501 2
d14504 3
d14508 31
a14538 23

echo $ac_n "checking if data-only library module links""... $ac_c" 1>&6
echo "configure:4844: checking if data-only library module links" >&5
if eval "test \"`echo '$''{'cf_cv_link_dataonly'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
	rm -f conftest.a
		cat >conftest.$ac_ext <<EOF
#line 4851 "configure"
int	testdata[3] = { 123, 456, 789 };
EOF
		if { (eval echo configure:4854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } ; then
		mv conftest.o data.o && \
		( $AR $AR_OPTS conftest.a data.o ) 2>&5 1>/dev/null
	fi
	rm -f conftest.$ac_ext data.o
		cat >conftest.$ac_ext <<EOF
#line 4860 "configure"
int	testfunc()
{
#if defined(NeXT)
	exit(1);	/* I'm told this linker is broken */
d14540 5
a14544 4
	extern int testdata[3];
	return testdata[0] == 123
	   &&  testdata[1] == 456
	   &&  testdata[2] == 789;
d14546 4
d14551 18
a14568 4
EOF
		if { (eval echo configure:4873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
		mv conftest.o func.o && \
		( $AR $AR_OPTS conftest.a func.o ) 2>&5 1>/dev/null
d14570 2
a14571 10
	rm -f conftest.$ac_ext func.o
	( eval $ac_cv_prog_RANLIB conftest.a ) 2>&5 >/dev/null
	cf_saveLIBS="$LIBS"
	LIBS="conftest.a $LIBS"
	if test "$cross_compiling" = yes; then
  cf_cv_link_dataonly=unknown
else
  cat > conftest.$ac_ext <<EOF
#line 4885 "configure"
#include "confdefs.h"
a14572 10
	int main()
	{
		extern int testfunc();
		exit (!testfunc());
	}
	
EOF
if { (eval echo configure:4895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  cf_cv_link_dataonly=yes
d14574 2
a14575 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  cf_cv_link_dataonly=no
d14577 4
a14580 1
rm -fr conftest*
d14582 2
d14585 7
a14591 2
	LIBS="$cf_saveLIBS"
	
d14594 1
a14594 4
echo "$ac_t""$cf_cv_link_dataonly" 1>&6
test $cf_cv_link_dataonly = no && cat >> confdefs.h <<\EOF
#define BROKEN_LINKER 1
EOF
d14596 3
d14600 1
a14601 36
echo $ac_n "checking for speed_t""... $ac_c" 1>&6
echo "configure:4919: checking for speed_t" >&5
OSPEED_INCLUDES=
cat > conftest.$ac_ext <<EOF
#line 4922 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {
speed_t some_variable = 0
; return 0; }
EOF
if { (eval echo configure:4929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  OSPEED_TYPE=speed_t
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  OSPEED_TYPE=unsigned
fi
rm -f conftest*
cat > conftest.$ac_ext <<EOF
#line 4940 "configure"
#include "confdefs.h"
#include <termios.h>
int main() {
speed_t some_variable = 0
; return 0; }
EOF
if { (eval echo configure:4947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  OSPEED_TYPE=speed_t
	 OSPEED_INCLUDES="#include <termios.h>"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a14602 8
rm -f conftest*


if test "$OSPEED_TYPE" = "unsigned" ; then
	echo "$ac_t""no" 1>&6
	cat >> confdefs.h <<\EOF
#define speed_t unsigned
EOF
d14604 3
a14606 2
else
	echo "$ac_t""yes" 1>&6
d14609 1
d14611 2
a14612 22
###	Checks for library functions.
for ac_func in getcwd \
getttynam \
memccpy \
nanosleep \
poll \
remove \
select \
setbuf \
setbuffer \
setvbuf \
sigaction \
sigvec \
strdup \
strstr \
tcgetattr \
tcgetpgrp \
times \
usleep \
vfscanf \
vsnprintf \
vsscanf \
d14614 2
a14615 5
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4994: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d14617 3
a14619 2
  cat > conftest.$ac_ext <<EOF
#line 4999 "configure"
a14620 7
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();
d14622 27
a14648 1
int main() {
d14650 2
a14651 7
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
d14654 73
a14726 5
; return 0; }
EOF
if { (eval echo configure:5022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
d14728 3
a14730 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d14732 2
a14733 1
rm -f conftest*
d14736 5
a14740 9
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
a14741 1
done
d14743 23
d14767 4
a14770 10
if test "$with_getcap" = "yes" ; then
	
echo $ac_n "checking for terminal-capability database functions""... $ac_c" 1>&6
echo "configure:5050: checking for terminal-capability database functions" >&5
if eval "test \"`echo '$''{'cf_cv_cgetent'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 5056 "configure"
d14773 7
a14779 2
#include <stdlib.h>
int main() {
d14781 21
a14801 17
	char temp[128];
	char *buf = temp;
	char *db_array = temp;
	cgetent(&buf, /* int *, */ &db_array, "vt100");
	cgetcap(buf, "tc", '=');
	cgetmatch(buf, "tc");
	
; return 0; }
EOF
if { (eval echo configure:5071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  cf_cv_cgetent=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_cv_cgetent=no
d14803 2
a14804 1
rm -f conftest*
d14807 3
a14809 7

echo "$ac_t""$cf_cv_cgetent" 1>&6
test $cf_cv_cgetent = yes && cat >> confdefs.h <<\EOF
#define HAVE_BSD_CGETENT 1
EOF


d14812 5
d14818 22
a14839 17
echo $ac_n "checking for isascii""... $ac_c" 1>&6
echo "configure:5094: checking for isascii" >&5
if eval "test \"`echo '$''{'cf_cv_have_isascii'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
	cat > conftest.$ac_ext <<EOF
#line 5100 "configure"
#include "confdefs.h"
#include <ctype.h>
int main() {
int x = isascii(' ')
; return 0; }
EOF
if { (eval echo configure:5107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  cf_cv_have_isascii=yes
d14841 1
a14841 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_cv_have_isascii=no
d14846 13
a14858 4
echo "$ac_t""$cf_cv_have_isascii" 1>&6
test $cf_cv_have_isascii = yes && cat >> confdefs.h <<\EOF
#define HAVE_ISASCII 1
EOF
d14860 17
d14878 1
d14880 26
a14905 6
if test $ac_cv_func_sigaction = yes; then
echo $ac_n "checking whether sigaction needs _POSIX_SOURCE""... $ac_c" 1>&6
echo "configure:5128: checking whether sigaction needs _POSIX_SOURCE" >&5
cat > conftest.$ac_ext <<EOF
#line 5130 "configure"
#include "confdefs.h"
d14907 3
a14909 5
#include <sys/types.h>
#include <signal.h>
int main() {
struct sigaction act
; return 0; }
d14911 2
a14912 3
if { (eval echo configure:5139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  sigact_bad=no
d14914 4
a14917 6
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  
cat > conftest.$ac_ext <<EOF
#line 5148 "configure"
d14920 26
a14945 12
#define _POSIX_SOURCE
#include <sys/types.h>
#include <signal.h>
int main() {
struct sigaction act
; return 0; }
EOF
if { (eval echo configure:5158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  sigact_bad=yes
	 cat >> confdefs.h <<\EOF
#define SVR4_ACTION 1
d14949 3
a14951 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  sigact_bad=unknown
d14953 1
a14953 1
rm -f conftest*
d14955 4
a14958 2
rm -f conftest*
echo "$ac_t""$sigact_bad" 1>&6
d14961 5
d14967 24
a14990 11
if test $ac_cv_header_termios_h = yes ; then
	case "$CFLAGS" in
	*-D_POSIX_SOURCE*)
		termios_bad=dunno ;;
	*)	termios_bad=maybe ;;
	esac
	if test $termios_bad = maybe ; then
	echo $ac_n "checking whether termios.h needs _POSIX_SOURCE""... $ac_c" 1>&6
echo "configure:5186: checking whether termios.h needs _POSIX_SOURCE" >&5
	cat > conftest.$ac_ext <<EOF
#line 5188 "configure"
d14992 21
a15012 8
#include <termios.h>
int main() {
struct termios foo; int x = foo.c_iflag
; return 0; }
EOF
if { (eval echo configure:5195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  termios_bad=no
d15014 1
a15014 1
  echo "configure: failed program was:" >&5
d15016 9
a15024 4
  rm -rf conftest*
  
		cat > conftest.$ac_ext <<EOF
#line 5204 "configure"
d15026 21
a15046 10

#define _POSIX_SOURCE
#include <termios.h>
int main() {
struct termios foo; int x = foo.c_iflag
; return 0; }
EOF
if { (eval echo configure:5213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  termios_bad=unknown
d15048 1
a15048 1
  echo "configure: failed program was:" >&5
d15050 5
a15054 4
  rm -rf conftest*
  termios_bad=yes cat >> confdefs.h <<\EOF
#define SVR4_TERMIO 1
EOF
d15056 5
a15060 7
fi
rm -f conftest*
			
fi
rm -f conftest*
	echo "$ac_t""$termios_bad" 1>&6
	fi
d15063 2
d15066 2
a15067 2
if test "$cross_compiling" = yes ; then
	echo "configure: warning: cross compiling: assume setvbuf params not reversed" 1>&2
d15069 30
a15098 4
	echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
echo "configure:5238: checking whether setvbuf arguments are reversed" >&5
if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d15100 4
a15103 2
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
d15105 11
a15115 2
  cat > conftest.$ac_ext <<EOF
#line 5246 "configure"
d15117 21
a15137 15
#include <stdio.h>
/* If setvbuf has the reversed format, exit 0. */
main () {
  /* This call has the arguments reversed.
     A reversed system may check and see that the address of main
     is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
  if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
    exit(1);
  putc('\r', stdout);
  exit(0);			/* Non-reversed systems segv here.  */
}
EOF
if { (eval echo configure:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_func_setvbuf_reversed=yes
d15139 1
a15139 1
  echo "configure: failed program was:" >&5
d15141 3
a15143 4
  rm -fr conftest*
  ac_cv_func_setvbuf_reversed=no
fi
rm -fr conftest*
d15145 1
d15147 9
a15155 1
rm -f core core.* *.core
d15158 6
a15163 5
echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
if test $ac_cv_func_setvbuf_reversed = yes; then
  cat >> confdefs.h <<\EOF
#define SETVBUF_REVERSED 1
EOF
d15165 7
a15171 7
fi

fi
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
echo "configure:5285: checking return type of signal handlers" >&5
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d15173 2
a15174 2
  cat > conftest.$ac_ext <<EOF
#line 5290 "configure"
d15176 20
a15195 18
#include <sys/types.h>
#include <signal.h>
#ifdef signal
#undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

int main() {
int i;
; return 0; }
EOF
if { (eval echo configure:5307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_type_signal=void
d15197 1
a15197 1
  echo "configure: failed program was:" >&5
d15199 1
a15199 2
  rm -rf conftest*
  ac_cv_type_signal=int
d15201 1
a15201 1
rm -f conftest*
d15203 5
a15207 4

echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
d15210 2
d15213 6
d15220 6
a15225 9
echo $ac_n "checking for type sigaction_t""... $ac_c" 1>&6
echo "configure:5327: checking for type sigaction_t" >&5
if eval "test \"`echo '$''{'cf_cv_type_sigaction'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
	cat > conftest.$ac_ext <<EOF
#line 5333 "configure"
#include "confdefs.h"
d15227 1
a15227 16
#include <signal.h>
int main() {
sigaction_t x
; return 0; }
EOF
if { (eval echo configure:5341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  cf_cv_type_sigaction=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_cv_type_sigaction=no
fi
rm -f conftest*
fi
d15229 28
a15256 3
echo "$ac_t""$cf_cv_type_sigaction" 1>&6
test $cf_cv_type_sigaction = yes && cat >> confdefs.h <<\EOF
#define HAVE_TYPE_SIGACTION 1
d15259 2
d15262 2
d15265 2
a15266 4
echo $ac_n "checking declaration of size-change""... $ac_c" 1>&6
echo "configure:5361: checking declaration of size-change" >&5
if eval "test \"`echo '$''{'cf_cv_sizechange'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
a15267 3
  
    cf_cv_sizechange=unknown
    cf_save_CFLAGS="$CFLAGS"
d15269 3
a15271 2
for cf_opts in "" "NEED_PTEM_H"
do
d15273 26
a15298 4
    CFLAGS="$cf_save_CFLAGS"
    test -n "$cf_opts" && CFLAGS="$CFLAGS -D$cf_opts"
    cat > conftest.$ac_ext <<EOF
#line 5375 "configure"
d15300 3
a15302 17
#include <sys/types.h>
#if HAVE_TERMIOS_H
#include <termios.h>
#else
#if HAVE_TERMIO_H
#include <termio.h>
#endif
#endif
#if NEED_PTEM_H
/* This is a workaround for SCO:  they neglected to define struct winsize in
 * termios.h -- it's only in termio.h and ptem.h
 */
#include        <sys/stream.h>
#include        <sys/ptem.h>
#endif
#if !defined(sun) || !defined(HAVE_TERMIOS_H)
#include <sys/ioctl.h>
d15305 40
a15344 1
int main() {
d15346 2
a15347 19
#ifdef TIOCGSIZE
	struct ttysize win;	/* FIXME: what system is this? */
	int y = win.ts_lines;
	int x = win.ts_cols;
#else
#ifdef TIOCGWINSZ
	struct winsize win;
	int y = win.ws_row;
	int x = win.ws_col;
#else
	no TIOCGSIZE or TIOCGWINSZ
#endif /* TIOCGWINSZ */
#endif /* TIOCGSIZE */
	
; return 0; }
EOF
if { (eval echo configure:5414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  cf_cv_sizechange=yes
a15348 6
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_cv_sizechange=no
fi
rm -f conftest*
d15350 6
a15355 6
	CFLAGS="$cf_save_CFLAGS"
	if test "$cf_cv_sizechange" = yes ; then
		echo "size-change succeeded ($cf_opts)" >&5
		test -n "$cf_opts" && cat >> confdefs.h <<EOF
#define $cf_opts 1
EOF
d15357 25
a15381 4
		break
	fi
done
	
d15383 1
d15385 1
a15385 4
echo "$ac_t""$cf_cv_sizechange" 1>&6
test $cf_cv_sizechange != no && cat >> confdefs.h <<\EOF
#define HAVE_SIZECHANGE 1
EOF
d15387 6
d15394 5
d15400 3
a15402 4
echo $ac_n "checking for memmove""... $ac_c" 1>&6
echo "configure:5446: checking for memmove" >&5
if eval "test \"`echo '$''{'ac_cv_func_memmove'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d15404 2
a15405 2
  cat > conftest.$ac_ext <<EOF
#line 5451 "configure"
a15406 7
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char memmove(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char memmove();
d15408 12
a15419 1
int main() {
a15420 5
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_memmove) || defined (__stub___memmove)
choke me
d15422 5
a15426 1
memmove();
d15429 39
a15467 10
; return 0; }
EOF
if { (eval echo configure:5474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_memmove=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_memmove=no"
d15469 1
a15469 1
rm -f conftest*
d15472 11
a15482 5
if eval "test \"`echo '$ac_cv_func_'memmove`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
d15484 13
a15496 7
echo $ac_n "checking for bcopy""... $ac_c" 1>&6
echo "configure:5493: checking for bcopy" >&5
if eval "test \"`echo '$''{'ac_cv_func_bcopy'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5498 "configure"
a15497 7
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char bcopy(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char bcopy();
d15499 22
a15520 1
int main() {
d15522 3
a15524 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_bcopy) || defined (__stub___bcopy)
choke me
#else
bcopy();
#endif
d15526 2
a15527 1
; return 0; }
d15529 4
a15532 3
if { (eval echo configure:5521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_bcopy=yes"
d15534 2
a15535 6
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_bcopy=no"
fi
rm -f conftest*
d15537 6
d15544 5
a15548 7
if eval "test \"`echo '$ac_cv_func_'bcopy`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  
	echo $ac_n "checking if bcopy does overlapping moves""... $ac_c" 1>&6
echo "configure:5537: checking if bcopy does overlapping moves" >&5
if eval "test \"`echo '$''{'cf_cv_good_bcopy'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d15550 10
a15559 3
  
		if test "$cross_compiling" = yes; then
  cf_cv_good_bcopy=unknown
d15561 2
a15562 2
  cat > conftest.$ac_ext <<EOF
#line 5546 "configure"
d15565 11
a15575 7
int main() {
	static char data[] = "abcdefghijklmnopqrstuwwxyz";
	char temp[40];
	bcopy(data, temp, sizeof(data));
	bcopy(temp+10, temp, 15);
	bcopy(temp+5, temp+15, 10);
	exit (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
d15577 20
a15596 10
		
EOF
if { (eval echo configure:5559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  cf_cv_good_bcopy=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  cf_cv_good_bcopy=no
d15598 1
a15598 1
rm -fr conftest*
d15600 6
a15606 1
		
d15608 2
a15609 6

echo "$ac_t""$cf_cv_good_bcopy" 1>&6
	
else
  echo "$ac_t""no" 1>&6
cf_cv_good_bcopy=no
d15611 2
a15612 4

	if test $cf_cv_good_bcopy = yes ; then
		cat >> confdefs.h <<\EOF
#define USE_OK_BCOPY 1
d15615 1
a15615 4
	else
		cat >> confdefs.h <<\EOF
#define USE_MY_MEMMOVE 1
EOF
d15617 5
a15621 1
	fi
d15623 6
a15628 1
fi
d15630 3
d15634 9
a15642 4
if test -z "$cf_user_CFLAGS" ; then
	CFLAGS=`echo ${CFLAGS} | sed -e 's/-g //' -e 's/-g$//'`
	CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's/-g //' -e 's/-g$//'`
fi
d15644 2
d15647 14
a15660 9
echo $ac_n "checking for builtin $CC bool type""... $ac_c" 1>&6
echo "configure:5603: checking for builtin $CC bool type" >&5
if eval "test \"`echo '$''{'cf_cv_cc_bool_type'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
	cat > conftest.$ac_ext <<EOF
#line 5609 "configure"
#include "confdefs.h"
d15662 2
a15663 2
#include <stdio.h>
#include <sys/types.h>
d15665 3
a15667 16
int main() {
bool x = false
; return 0; }
EOF
if { (eval echo configure:5619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  cf_cv_cc_bool_type=1
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_cv_cc_bool_type=0
fi
rm -f conftest*
	
fi
d15669 22
a15690 3
if test $cf_cv_cc_bool_type = 1
then	echo "$ac_t""yes" 1>&6
else	echo "$ac_t""no" 1>&6
d15692 1
d15694 1
a15694 3
if test -n "$CXX" ; then
	ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
d15696 4
a15699 16
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cxx_cross

	case "`${CXX-g++} --version`" in
	2.7*)
	    
cf_cxx_library=unknown
if test $ac_cv_prog_gxx = yes; then
	echo $ac_n "checking for libg++""... $ac_c" 1>&6
echo "configure:5651: checking for libg++" >&5
	cf_save="$LIBS"
	LIBS="$LIBS -lg++ -lm"
	cat > conftest.$ac_ext <<EOF
#line 5655 "configure"
#include "confdefs.h"
a15700 15
#include <builtin.h>
	
int main() {
float foo=abs(1.0)
; return 0; }
EOF
if { (eval echo configure:5664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  cf_cxx_library=yes
	 CXXLIBS="$CXXLIBS -lg++ -lm"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_cxx_library=no
d15702 3
a15704 3
rm -f conftest*
	LIBS="$cf_save"
	echo "$ac_t""$cf_cxx_library" 1>&6
d15707 15
d15723 5
a15727 2
	*)
	    cf_cxx_library=yes
a15729 42
	echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
echo "configure:5685: checking how to run the C++ preprocessor" >&5
if test -z "$CXXCPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cxx_cross
  CXXCPP="${CXX-g++} -E"
  cat > conftest.$ac_ext <<EOF
#line 5698 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CXXCPP=/lib/cpp
fi
rm -f conftest*
  ac_cv_prog_CXXCPP="$CXXCPP"
ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cxx_cross
fi
fi
CXXCPP="$ac_cv_prog_CXXCPP"
echo "$ac_t""$CXXCPP" 1>&6
a15730 35
for ac_hdr in builtin.h typeinfo
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:5731: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5736 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
d15732 2
a15733 3
  echo "$ac_t""no" 1>&6
fi
done
d15735 8
a15742 10
	
echo $ac_n "checking for builtin $CXX bool type""... $ac_c" 1>&6
echo "configure:5769: checking for builtin $CXX bool type" >&5
if eval "test \"`echo '$''{'cf_cv_builtin_bool'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
	cat > conftest.$ac_ext <<EOF
#line 5775 "configure"
#include "confdefs.h"
d15744 5
a15748 2
#include <stdio.h>
#include <sys/types.h>
d15750 4
a15753 7
int main() {
bool x = false
; return 0; }
EOF
if { (eval echo configure:5785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  cf_cv_builtin_bool=1
a15754 13
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_cv_builtin_bool=0
fi
rm -f conftest*
	
fi

if test $cf_cv_builtin_bool = 1
then	echo "$ac_t""yes" 1>&6
else	echo "$ac_t""no" 1>&6
fi
a15755 7
	
echo $ac_n "checking for size of $CXX bool""... $ac_c" 1>&6
echo "configure:5805: checking for size of $CXX bool" >&5
if eval "test \"`echo '$''{'cf_cv_type_of_bool'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
d15760 2
a15761 2
  cat > conftest.$ac_ext <<EOF
#line 5815 "configure"
a15762 3
#ifdef __cplusplus
extern "C" void exit(int);
#endif
d15766 8
a15773 1
#if HAVE_BUILTIN_H
d15776 9
d15798 1
a15798 1
	exit(0);
d15800 13
a15812 4
		
EOF
if { (eval echo configure:5843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
d15814 8
a15821 5
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  cf_cv_type_of_bool=unknown
d15823 1
a15823 1
rm -fr conftest*
a15825 1
	
d15829 2
a15830 1
echo "$ac_t""$cf_cv_type_of_bool" 1>&6
d15832 6
a15837 2
	echo "configure: warning: Assuming unsigned for type of bool" 1>&2
	cf_cv_type_of_bool=unsigned
d15840 12
a15851 35
	
echo $ac_n "checking for special defines needed for etip.h""... $ac_c" 1>&6
echo "configure:5867: checking for special defines needed for etip.h" >&5
cf_save_CXXFLAGS="$CXXFLAGS"
cf_result="none"
for cf_math in "" MATH_H
do
for cf_excp in "" MATH_EXCEPTION
do
	CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu"
	test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
	test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
cat > conftest.$ac_ext <<EOF
#line 5878 "configure"
#include "confdefs.h"

#include <etip.h.in>

int main() {

; return 0; }
EOF
if { (eval echo configure:5887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  
	test -n "$cf_math" && cat >> confdefs.h <<\EOF
#define ETIP_NEEDS_${cf_math} 1
EOF

	test -n "$cf_excp" && cat >> confdefs.h <<\EOF
#define ETIP_NEEDS_${cf_excp} 1
EOF

	cf_result="$cf_math $cf_excp"
	break
d15853 14
d15868 2
a15869 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a15870 5
rm -f conftest*
done
done
echo "$ac_t""$cf_result" 1>&6
CXXFLAGS="$cf_save_CXXFLAGS"
d15872 1
a15872 3
else
	cf_cxx_library=no
	cf_cv_builtin_bool=0
d15874 6
a15879 16
	# Just because we are not configuring against C++ right now does not
	# mean that a user will not want to use C++.  Some distributors disable
	# the C++ portion of this configuration as a shortcut (or just to avoid
	# compiling the demo in the c++ directory).  So we need a reasonable
	# default for the 'bool' type.
	#
	# Caveat: since the storage of the bool type is not standardized, it
	# may change.

	echo $ac_n "checking for fallback type of bool""... $ac_c" 1>&6
echo "configure:5925: checking for fallback type of bool" >&5
	case "$host_cpu" in #(vi
	i?86)	cf_cv_type_of_bool=char	;; #(vi
	*)	cf_cv_type_of_bool=int	;;
	esac
	echo "$ac_t""$cf_cv_type_of_bool" 1>&6
a15881 3



d15886 4
a15889 4
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5941: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gnat_exists'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d15894 11
a15904 10
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_gnat_exists="yes"
      break
    fi
  done
  IFS="$ac_save_ifs"
d15908 1
a15908 1
gnat_exists="$ac_cv_prog_gnat_exists"
d15910 2
a15911 1
  echo "$ac_t""$gnat_exists" 1>&6
d15913 2
a15914 1
  echo "$ac_t""no" 1>&6
d15920 10
a15929 5
   
cf_cv_gnat_version=`$cf_ada_make -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
  sed -e 's/[^0-9 \.]//g' | $AWK '{print $1;}'`
case $cf_cv_gnat_version in
  3.[1-9]*|[4-9].*)
d15932 1
a15932 1
  *) echo Unsupported GNAT version $cf_cv_gnat_version. Required is 3.10 or better. Disabling Ada95 binding.
d15936 2
a15937 2
case $cf_cv_gnat_version in
  3.1*|[4-9].*)
d15939 1
a15939 1
      cf_generic_objects="\$(GENOBJS)"
d15948 20
a15967 19
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5995: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_m4_exists'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$m4_exists"; then
  ac_cv_prog_m4_exists="$m4_exists" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_m4_exists="yes"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_m4_exists" && ac_cv_prog_m4_exists="no"
d15970 4
a15973 3
m4_exists="$ac_cv_prog_m4_exists"
if test -n "$m4_exists"; then
  echo "$ac_t""$m4_exists" 1>&6
d15975 2
a15976 1
  echo "$ac_t""no" 1>&6
d15979 1
a15979 1
   if test "$ac_cv_prog_m4_exists" = no; then
d15984 3
a15986 3
      echo $ac_n "checking if GNAT works""... $ac_c" 1>&6
echo "configure:6028: checking if GNAT works" >&5
      
d16001 1
a16001 1
if ( $cf_ada_make conftest 1>&5 2>&1 ) ; then
d16012 2
a16013 1
      echo "$ac_t""$cf_cv_prog_gnat_correct" 1>&6
d16019 37
a16055 1
   
d16062 1
a16062 2
fi

a16065 8
   
   
   
   
   
   

   
d16069 7
a16075 1
  :
d16077 1
a16077 1
  withval="${ADA_INCLUDE-$prefix/lib/gnu-Ada/adainclude}"
d16081 5
a16085 1
./*) #(vi
d16091 1
a16091 1
    withval=`echo $withval | sed -e s@@NONE@@$ac_default_prefix@@`
d16095 2
a16096 2
.NONE/*)
  withval=`echo $withval | sed -e s@@NONE@@$ac_default_prefix@@`
d16099 3
a16101 1
  { echo "configure: error: expected a pathname" 1>&2; exit 1; }
d16105 2
a16106 1
eval ADA_INCLUDE="$withval"
a16107 3
   

   
d16111 7
a16117 1
  :
d16119 1
a16119 1
  withval="${ADA_OBJECTS-$prefix/lib/gnu-Ada/adalib}"
d16123 5
a16127 1
./*) #(vi
d16133 1
a16133 1
    withval=`echo $withval | sed -e s@@NONE@@$ac_default_prefix@@`
d16137 7
a16143 2
.NONE/*)
  withval=`echo $withval | sed -e s@@NONE@@$ac_default_prefix@@`
d16145 228
a16372 4
*)
  { echo "configure: error: expected a pathname" 1>&2; exit 1; }
  ;;
esac
d16374 4
a16377 1
eval ADA_OBJECTS="$withval"
d16379 2
a16380 1
   
a16381 4
   if test $with_shared = no
   then
      echo "configure: warning: Ada95 applications will not link properly with static libraries" 1>&2
   fi
d16384 9
a16393 16
### It's not possible to appease gcc 2.6.3's conversion-warnings if we're
### using a 'char' for bools.  gcc 2.7.0's conversion-warnings are broken too
### badly to consider using for development purposes, but 2.5.8 is okay.
if test -n "$with_warnings"; then
	if test -n "$GCC"; then
		case "`$CC --version`" in
		2.6.3)
			if test "$cf_cv_type_of_bool" != "char"; then
				EXTRA_CFLAGS="$EXTRA_CFLAGS -Wconversion"
			fi
			;;
		2.5*)
			EXTRA_CFLAGS="$EXTRA_CFLAGS -Wconversion"
			;;
		esac
	fi
d16396 13
a16408 6
### Construct the library-subsets, if any, from this set of keywords:
### none, base, ext_funcs, termlib.
echo $ac_n "checking for library subsets""... $ac_c" 1>&6
echo "configure:6172: checking for library subsets" >&5
if test "$with_termlib" = yes ; then
	LIB_SUBSETS="termlib "
d16410 1
a16410 1
	LIB_SUBSETS="termlib+"
a16411 3
LIB_SUBSETS="${LIB_SUBSETS}base"
test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
echo "$ac_t""$LIB_SUBSETS" 1>&6
d16413 14
a16426 1
### Construct the list of include-directories to be generated
d16428 20
a16447 11
CPPFLAGS="$CPPFLAGS -I. -I../include"
if test "$srcdir" != "."; then
	CPPFLAGS="$CPPFLAGS -I\$(srcdir)/../include"
fi
if test -z "$GCC"; then
	CPPFLAGS="$CPPFLAGS -I\$(includedir)"
elif test "$includedir" != "/usr/include"; then
	if test "$includedir" = '${prefix}/include' ; then
		if test $prefix != /usr ; then
			CPPFLAGS="$CPPFLAGS -I\$(includedir)"
		fi
d16449 1
a16449 1
		CPPFLAGS="$CPPFLAGS -I\$(includedir)"
d16451 11
d16464 1
d16466 2
a16468 3
ACPPFLAGS="$ACPPFLAGS -I. -I../../include"
if test "$srcdir" != "."; then
	ACPPFLAGS="$ACPPFLAGS -I\$(srcdir)/../../include"
d16470 3
a16472 10
if test -z "$GCC"; then
	ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
elif test "$includedir" != "/usr/include"; then
	if test "$includedir" = '${prefix}/include' ; then
		if test $prefix != /usr ; then
			ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
		fi
	else
		ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
	fi
d16475 43
d16519 2
d16522 15
a16536 5
### Set up low-level terminfo dependencies for makefiles.  Note that we
### could override this.
if test "$with_termlib" = yes ; then
	TEST_DEPS="${LIB_PREFIX}${TINFO_NAME}${DFT_DEP_SUFFIX}"
	TEST_ARGS="-l${TINFO_NAME}${DFT_ARG_SUFFIX}"
d16538 9
a16546 2
PROG_DEPS="$TEST_DEPS"
PROG_ARGS="$TEST_ARGS"
d16551 2
a16552 3

echo $ac_n "checking for src modules""... $ac_c" 1>&6
echo "configure:6234: checking for src modules" >&5
d16555 9
a16563 5
TEST_DEPS="${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"

# dependencies and linker-arguments for utility-programs
PROG_ARGS="$TEST_ARGS"
a16590 2
			
cf_have_include=`echo $cf_dir | tr '[a-z]' '[A-Z]'`
d16592 3
a16594 1
			cat >> confdefs.h <<EOF
d16598 1
a16598 1
			cat >> confdefs.h <<EOF
d16602 9
a16610 2
			TEST_DEPS="${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
			TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
d16614 2
a16615 6
echo "$ac_t""$cf_cv_src_modules" 1>&6
TEST_ARGS="-L${LIB_DIR} -L\$(libdir) $TEST_ARGS"



PROG_ARGS="-L${LIB_DIR} -L\$(libdir) $PROG_ARGS"
d16617 2
d16625 3
a16627 2
SRC_SUBDIRS="$SRC_SUBDIRS misc test"
test $cf_cxx_library != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
d16630 1
a16630 1
if test "$cf_cv_prog_gnat_correct" = yes && test -d $srcdir/Ada95; then
d16646 1
a16646 1
   
d16649 3
d16656 1
a16656 1
	
d16658 1
d16662 7
a16668 1
	shared)  cf_subdir='obj_s' ;;
d16671 5
a16675 1
	DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
d16682 462
d17145 3
d17149 10
a17158 2
### Now that we're done running tests, add the compiler-warnings, if any
CFLAGS="$CFLAGS $EXTRA_CFLAGS"
d17160 1
a17160 7
################################################################################
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
d17162 1
a17162 8
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
d17164 48
a17212 30
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache
d17214 18
a17231 1
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
d17233 9
a17241 3
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
d17243 6
a17248 6
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
fi
d17250 14
a17263 1
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
d17265 1
a17265 1
DEFS=-DHAVE_CONFIG_H
d17267 1
a17267 2
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
a17268 8
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
d17270 1
a17270 1
# $0 $ac_configure_args
a17271 2
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
d17273 224
a17496 146
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
  case "\$ac_option" in
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    echo "$CONFIG_STATUS generated by autoconf version 2.13.19990117"
    exit 0 ;;
  -help | --help | --hel | --he | --h)
    echo "\$ac_cs_usage"; exit 0 ;;
  *) echo "\$ac_cs_usage"; exit 1 ;;
  esac
done

ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"

trap 'rm -fr `echo "\
	include/MKterm.h.awk \
	include/curses.h \
	include/termcap.h \
	include/unctrl.h \
	$SUB_MAKEFILES \
	Makefile include/ncurses_cfg.h:include/ncurses_cfg.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF

# Protect against being on the right side of a sed subst in config.status.
sed 's/%@@/@@@@/; s/@@%/@@@@/; s/%g\$/@@g/; /@@g\$/s/[\\\\&%]/\\\\&/g;
 s/@@@@/%@@/; s/@@@@/@@%/; s/@@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@@SHELL@@%$SHELL%g
s%@@CFLAGS@@%$CFLAGS%g
s%@@CPPFLAGS@@%$CPPFLAGS%g
s%@@CXXFLAGS@@%$CXXFLAGS%g
s%@@FFLAGS@@%$FFLAGS%g
s%@@DEFS@@%$DEFS%g
s%@@LDFLAGS@@%$LDFLAGS%g
s%@@LIBS@@%$LIBS%g
s%@@exec_prefix@@%$exec_prefix%g
s%@@prefix@@%$prefix%g
s%@@program_transform_name@@%$program_transform_name%g
s%@@bindir@@%$bindir%g
s%@@sbindir@@%$sbindir%g
s%@@libexecdir@@%$libexecdir%g
s%@@datadir@@%$datadir%g
s%@@sysconfdir@@%$sysconfdir%g
s%@@sharedstatedir@@%$sharedstatedir%g
s%@@localstatedir@@%$localstatedir%g
s%@@libdir@@%$libdir%g
s%@@includedir@@%$includedir%g
s%@@oldincludedir@@%$oldincludedir%g
s%@@infodir@@%$infodir%g
s%@@mandir@@%$mandir%g
s%@@NCURSES_MAJOR@@%$NCURSES_MAJOR%g
s%@@NCURSES_MINOR@@%$NCURSES_MINOR%g
s%@@NCURSES_PATCH@@%$NCURSES_PATCH%g
s%@@cf_cv_rel_version@@%$cf_cv_rel_version%g
s%@@cf_cv_abi_version@@%$cf_cv_abi_version%g
s%@@cf_cv_cc_bool_type@@%$cf_cv_cc_bool_type%g
s%@@cf_cv_builtin_bool@@%$cf_cv_builtin_bool%g
s%@@cf_cv_type_of_bool@@%$cf_cv_type_of_bool%g
s%@@host@@%$host%g
s%@@host_alias@@%$host_alias%g
s%@@host_cpu@@%$host_cpu%g
s%@@host_vendor@@%$host_vendor%g
s%@@host_os@@%$host_os%g
s%@@CC@@%$CC%g
s%@@BUILD_CC@@%$BUILD_CC%g
s%@@CPP@@%$CPP%g
s%@@PROG_EXT@@%$PROG_EXT%g
s%@@LDCONFIG@@%$LDCONFIG%g
s%@@CXX@@%$CXX%g
s%@@AWK@@%$AWK%g
s%@@SET_MAKE@@%$SET_MAKE%g
s%@@INSTALL_PROGRAM@@%$INSTALL_PROGRAM%g
s%@@INSTALL_SCRIPT@@%$INSTALL_SCRIPT%g
s%@@INSTALL_DATA@@%$INSTALL_DATA%g
s%@@LN_S@@%$LN_S%g
s%@@RANLIB@@%$RANLIB%g
s%@@LINT@@%$LINT%g
s%@@MAN@@%$MAN%g
s%@@LINT_OPTS@@%$LINT_OPTS%g
s%@@LD@@%$LD%g
s%@@AR@@%$AR%g
s%@@AR_OPTS@@%$AR_OPTS%g
s%@@cf_cv_makeflags@@%$cf_cv_makeflags%g
s%@@INSTALL_PREFIX@@%$INSTALL_PREFIX%g
s%@@EXTRA_LIBS@@%$EXTRA_LIBS%g
s%@@TINFO_LIST@@%$TINFO_LIST%g
s%@@SHLIB_LIST@@%$SHLIB_LIST%g
s%@@DFT_OBJ_SUBDIR@@%$DFT_OBJ_SUBDIR%g
s%@@DFT_LWR_MODEL@@%$DFT_LWR_MODEL%g
s%@@DFT_UPR_MODEL@@%$DFT_UPR_MODEL%g
s%@@DFT_DEP_SUFFIX@@%$DFT_DEP_SUFFIX%g
s%@@DFT_ARG_SUFFIX@@%$DFT_ARG_SUFFIX%g
s%@@cf_list_models@@%$cf_list_models%g
s%@@TINFO_NAME@@%$TINFO_NAME%g
s%@@LIB_NAME@@%$LIB_NAME%g
s%@@LIB_PREFIX@@%$LIB_PREFIX%g
s%@@CC_G_OPT@@%$CC_G_OPT%g
s%@@CXX_G_OPT@@%$CXX_G_OPT%g
s%@@LD_MODEL@@%$LD_MODEL%g
s%@@CC_SHARED_OPTS@@%$CC_SHARED_OPTS%g
s%@@LD_SHARED_OPTS@@%$LD_SHARED_OPTS%g
s%@@MK_SHARED_LIB@@%$MK_SHARED_LIB%g
s%@@LINK_PROGS@@%$LINK_PROGS%g
s%@@LINK_TESTS@@%$LINK_TESTS%g
s%@@EXTRA_LDFLAGS@@%$EXTRA_LDFLAGS%g
s%@@LOCAL_LDFLAGS@@%$LOCAL_LDFLAGS%g
s%@@LOCAL_LDFLAGS2@@%$LOCAL_LDFLAGS2%g
s%@@INSTALL_LIB@@%$INSTALL_LIB%g
s%@@FALLBACK_LIST@@%$FALLBACK_LIST%g
s%@@TERMINFO_DIRS@@%$TERMINFO_DIRS%g
s%@@NCURSES_CONST@@%$NCURSES_CONST%g
s%@@NCURSES_XNAMES@@%$NCURSES_XNAMES%g
s%@@ECHO_LINK@@%$ECHO_LINK%g
s%@@EXTRA_CFLAGS@@%$EXTRA_CFLAGS%g
s%@@MATH_LIB@@%$MATH_LIB%g
s%@@cf_cv_typeof_chtype@@%$cf_cv_typeof_chtype%g
s%@@cf_cv_1UL@@%$cf_cv_1UL%g
s%@@cf_cv_shift_limit@@%$cf_cv_shift_limit%g
s%@@cf_cv_widec_shift@@%$cf_cv_widec_shift%g
s%@@OSPEED_TYPE@@%$OSPEED_TYPE%g
s%@@OSPEED_INCLUDES@@%$OSPEED_INCLUDES%g
s%@@CXXCPP@@%$CXXCPP%g
s%@@CXXLIBS@@%$CXXLIBS%g
s%@@gnat_exists@@%$gnat_exists%g
s%@@m4_exists@@%$m4_exists%g
s%@@cf_ada_make@@%$cf_ada_make%g
s%@@cf_ada_compiler@@%$cf_ada_compiler%g
s%@@cf_ada_package@@%$cf_ada_package%g
s%@@ADAFLAGS@@%$ADAFLAGS%g
s%@@cf_compile_generics@@%$cf_compile_generics%g
s%@@cf_generic_objects@@%$cf_generic_objects%g
s%@@ADA_INCLUDE@@%$ADA_INCLUDE%g
s%@@ADA_OBJECTS@@%$ADA_OBJECTS%g
s%@@ACPPFLAGS@@%$ACPPFLAGS%g
s%@@TEST_DEPS@@%$TEST_DEPS%g
s%@@TEST_ARGS@@%$TEST_ARGS%g
s%@@PROG_ARGS@@%$PROG_ARGS%g
s%@@ADA_SUBDIRS@@%$ADA_SUBDIRS%g
s%@@DIRS_TO_MAKE@@%$DIRS_TO_MAKE%g
a17497 1
CEOF
d17500 17
a17516 22
cat >> $CONFIG_STATUS <<\EOF

# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
  if test $ac_beg -gt 1; then
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  else
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  fi
  if test ! -s conftest.s$ac_file; then
    ac_more_lines=false
    rm -f conftest.s$ac_file
  else
    if test -z "$ac_sed_cmds"; then
      ac_sed_cmds="sed -f conftest.s$ac_file"
d17518 14
a17531 1
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
d17533 3
a17535 3
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
d17537 1
a17537 7
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi
EOF

cat >> $CONFIG_STATUS <<EOF
a17538 7
CONFIG_FILES=\${CONFIG_FILES-"\
	include/MKterm.h.awk \
	include/curses.h \
	include/termcap.h \
	include/unctrl.h \
	$SUB_MAKEFILES \
	Makefile"}
d17540 2
a17541 2
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
d17543 8
a17550 4
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
d17553 28
a17580 1
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
d17582 1
a17582 6
  # Remove last slash and all that follows it.  Not all systems have dirname.
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    # The file is in a subdirectory.
    test ! -d "$ac_dir" && mkdir "$ac_dir"
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
d17584 1
a17584 1
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
d17589 10
a17598 5
  case "$ac_given_srcdir" in
  .)  srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
d17600 2
a17601 2
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
d17604 3
a17606 3
  case "$ac_given_INSTALL" in
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
d17609 62
a17670 8
  echo creating "$ac_file"
  rm -f "$ac_file"
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  case "$ac_file" in
  *Makefile*) ac_comsub="1i\\
# $configure_input" ;;
  *) ac_comsub= ;;
  esac
d17672 3
a17674 9
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  sed -e "$ac_comsub
s%@@configure_input@@%$configure_input%g
s%@@srcdir@@%$srcdir%g
s%@@top_srcdir@@%$top_srcdir%g
s%@@INSTALL@@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
d17680 12
a17691 7
ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='\([ 	]\)%\1#\2define\3'
d17693 1
a17693 6
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'
d17695 1
a17695 8
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
  CONFIG_HEADERS="include/ncurses_cfg.h:include/ncurses_cfg.hin"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
d17697 8
a17704 4
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
d17707 2
a17708 1
  echo creating $ac_file
d17710 29
a17738 3
  rm -f conftest.frag conftest.in conftest.out
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  cat $ac_file_inputs > conftest.in
a17741 1

d17745 1
a17745 1
sort confdefs.h >conftest.vals
d17752 1
a17752 1
while :
a17753 3
  ac_lines=`grep -c . conftest.vals`
  # grep -c gives empty output for an empty file on some AIX systems.
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
d17756 1
a17756 1
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
d17764 1
a17764 1
# Run sed to substitute the contents of conftest.frag into conftest.in at the
d17770 3
a17772 3
sed -f conftest.edit conftest.in > conftest.out
rm -f conftest.in
mv conftest.out conftest.in
d17776 6
a17781 9

cat >> $CONFIG_STATUS <<\EOF
  rm -f conftest.frag conftest.h
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  cat conftest.in >> conftest.h
  rm -f conftest.in
  if cmp -s $ac_file conftest.h 2>/dev/null; then
    echo "$ac_file is unchanged"
    rm -f conftest.h
d17783 20
a17802 2
    # Remove last slash and all that follows it.  Not all systems have dirname.
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
d17804 19
a17822 2
      # The file is in a subdirectory.
      test ! -d "$ac_dir" && mkdir "$ac_dir"
d17824 3
a17826 2
    rm -f $ac_file
    mv conftest.h $ac_file
d17828 1
a17828 2
fi; done

d17830 1
a17830 2
cat >> $CONFIG_STATUS <<EOF
# Extra initialization commands, if any
d17832 6
a17837 20
### Special initialization commands, used to pass information from the
### configuration-run into config.status

AWK="$AWK"
CF_LIST_MODELS="$cf_list_models"
DFT_LWR_MODEL="$DFT_LWR_MODEL"
LDCONFIG="$LDCONFIG"
LIB_NAME="$LIB_NAME"
LIB_SUBSETS="$LIB_SUBSETS"
SRC_SUBDIRS="$SRC_SUBDIRS"
TINFO_NAME="$TINFO_NAME"
WITH_ECHO="$with_echo"
WITH_OVERWRITE="$with_overwrite"
cf_cv_abi_version="$cf_cv_abi_version"
cf_cv_do_symlinks="$cf_cv_do_symlinks"
cf_cv_rel_version="$cf_cv_rel_version"
cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
cf_cv_system_name="$cf_cv_system_name"
cf_cxx_library="$cf_cxx_library"
target="$target"
d17839 2
d17842 8
a17849 3
EOF
cat >> $CONFIG_STATUS <<\EOF
# Extra commands, if any
d17851 6
a17856 5


	case $cf_cv_system_name in
	os2)	cf_prefix=''     ;;
	*)	cf_prefix='lib'  ;;
d17858 1
d17860 4
d17867 8
a17874 1
	if test -f $srcdir/$cf_dir/modules; then
a17875 5
		cf_libs_to_make=
		for cf_item in $CF_LIST_MODELS
		do
			
	
d17877 16
a17892 3
	normal)  cf_suffix='.a'   ;;
	debug)   cf_suffix='_g.a' ;;
	profile) cf_suffix='_p.a' ;;
d17895 23
a17917 4
		openbsd*|netbsd*|freebsd*)
			cf_suffix='.so.$(REL_VERSION)' ;;
		hpux*)	cf_suffix='.sl'  ;;
		*)	cf_suffix='.so'  ;;
d17920 2
d17923 47
a17969 1
			cf_libs_to_make="$cf_libs_to_make ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
d17973 30
a18002 8
			case "$LIB_SUBSETS" in
			termlib+*) #(vi
				;;
			*) #(vi
				cf_item=`echo $cf_libs_to_make |sed -e s/$LIB_NAME/$TINFO_NAME/g`
				cf_libs_to_make="$cf_item $cf_libs_to_make"
				;;
			esac
d18005 2
a18006 1
		sed -e "s@@\@@LIBS_TO_MAKE\@@@@$cf_libs_to_make@@" \
d18011 1
a18011 1
			name=$cf_dir \
d18014 1
a18014 1
		for cf_item in $CF_LIST_MODELS
d18016 6
a18021 3
			echo 'Appending rules for '$cf_item' model ('$cf_dir')'
			
CF_ITEM=`echo $cf_item | tr '[a-z]' '[A-Z]'`
a18022 2
			
	
d18024 16
a18039 3
	normal)  cf_suffix='.a'   ;;
	debug)   cf_suffix='_g.a' ;;
	profile) cf_suffix='_p.a' ;;
d18042 23
a18064 4
		openbsd*|netbsd*|freebsd*)
			cf_suffix='.so.$(REL_VERSION)' ;;
		hpux*)	cf_suffix='.sl'  ;;
		*)	cf_suffix='.so'  ;;
d18067 2
a18069 1
			
d18071 1
d18075 7
a18081 1
	shared)  cf_subdir='obj_s' ;;
d18084 21
d18112 1
a18112 1
				cf_reldir="\$(srcdir)"
d18121 14
a18134 2
			for cf_subset in $LIB_SUBSETS
			do
d18136 3
a18138 2
				name=$cf_dir \
				MODEL=$CF_ITEM \
d18143 5
d18153 1
a18153 1
				target="$target" \
d18155 8
a18162 1
			test $cf_dir = ncurses && WITH_OVERWRITE=no
d18165 2
a18166 1
				MODEL=$CF_ITEM \
d18171 2
d18174 1
d18179 1
a18179 1
	echo '	cd '$cf_dir' && $(MAKE) $(CF_MFLAGS) $@@' >>Makefile
d18184 4
d18191 1
d18194 1
a18194 1
			echo '	cd '$cf_dir' && $(MAKE) $(CF_MFLAGS) $@@' >> Makefile
d18211 1
d18217 1
a18217 1
	cd $cf_dir && \$(MAKE) \$(CF_MFLAGS) \$@@
d18222 1
d18227 1
a18227 1
	cd $cf_dir && \$(MAKE) \$(CF_MFLAGS) \$@@
d18234 7
a18240 5
install.data ::
	cd misc && \$(MAKE) \$(CF_MFLAGS) \$@@

install.man ::
	cd man && \$(MAKE) \$(CF_MFLAGS) \$@@
d18244 2
a18245 2
	rm -f headers.sh headers.sed
	rm -rf \$(DIRS_TO_MAKE)
d18248 11
d18277 2
d18280 21
d18303 11
a18313 13
	TMP=\${TMPDIR-/tmp}/\`basename \$SRC\`
	if test ! -f ../headers.sed ; then
		END=\`basename \$DST\`
		for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
		do
			NAME=\`basename \$i\`
			echo "s/<\$NAME>/<\$END\/\$NAME>/" >> ../headers.sed
		done
	fi
	rm -f \$TMP
	sed -f ../headers.sed \$SRC > \$TMP
	eval \$PRG \$TMP \$DST
	rm -f \$TMP
d18316 1
a18316 1
	eval \$PRG \$SRC \$DST
d18320 18
d18343 4
d18348 5
a18352 3
	cat >>$cf_dir/Makefile <<CF_EOF
\$(INSTALL_PREFIX)\$(includedir) :
	\$(srcdir)/../mkinstalldirs \$@@
d18354 5
a18358 18
install \\
install.libs \\
install.includes :: \$(INSTALL_PREFIX)\$(includedir) \\
CF_EOF
		j=""
		for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
		do
			test -n "$j" && echo "		$j \\" >>$cf_dir/Makefile
			j=$i
		done
		echo "		$j" >>$cf_dir/Makefile
		for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
		do
			echo "	@@ (cd \$(INSTALL_PREFIX)\$(includedir) && rm -f `basename $i`) ; ../headers.sh \$(INSTALL_DATA) \$(INSTALL_PREFIX)\$(includedir) \$(srcdir) $i" >>$cf_dir/Makefile
			test $i = curses.h && echo "	@@ (cd \$(INSTALL_PREFIX)\$(includedir) && rm -f ncurses.h && \$(LN_S) curses.h ncurses.h)" >>$cf_dir/Makefile
		done

	cat >>$cf_dir/Makefile <<CF_EOF
d18360 1
a18360 3
uninstall \\
uninstall.libs \\
uninstall.includes ::
d18362 1
a18362 6
		for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
		do
			i=`basename $i`
			echo "	-@@ (cd \$(INSTALL_PREFIX)\$(includedir) && rm -f $i)" >>$cf_dir/Makefile
			test $i = curses.h && echo "	-@@ (cd \$(INSTALL_PREFIX)\$(includedir) && rm -f ncurses.h)" >>$cf_dir/Makefile
		done
d18366 4
d18371 1
d18373 1
a18373 1
exit 0
d18376 19
a18394 2
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
@


1.1.1.1
log
@Import unmodified (but trimmed) ncurses 5.0 prerelease 990821.
This contains the full eti (panel, form, menu) extensions.
bmake glue to follow.

Obtained from:	ftp://ftp.clark.net/pub/dickey/ncurses
@
text
@@


1.1.1.2
log
@Import ncurses-5.0-release to update the 5.0-prerelease that we had.
@
text
@d3 1
a3 1
# From configure.in Revision: 1.179 
d191 1
a191 2
  --without-cxx           do not adjust ncurses bool to match C++
  --without-cxx-binding   do not build C++ binding and demo
d202 1
a204 1
  --with-debug            generate debug-libraries (default)
d216 1
a218 1
  --with-fallbacks=XXX    specify list of fallback terminal descriptions
d230 1
a232 1
  --enable-broken_linker  compile with broken-linker support code
d244 1
a246 1
  --enable-warnings       build: turn on GCC compiler warnings
d638 1
a638 1
echo "configure:640: checking host system type" >&5
d729 1
a729 1
echo "configure:731: checking for prefix" >&5
d744 1
a744 1
echo "configure:746: checking for default include-directory" >&5
d774 1
a774 1
echo "configure:776: checking for $ac_word" >&5
d804 1
a804 1
echo "configure:806: checking for $ac_word" >&5
d855 1
a855 1
echo "configure:857: checking for $ac_word" >&5
d887 1
a887 1
echo "configure:889: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d898 1
a898 1
#line 900 "configure"
d903 1
a903 1
if { (eval echo configure:905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d929 1
a929 1
echo "configure:931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d934 1
a934 1
echo "configure:936: checking whether we are using GNU C" >&5
d943 1
a943 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d962 1
a962 1
echo "configure:964: checking whether ${CC-cc} accepts -g" >&5
d995 1
a995 1
echo "configure:997: checking version of gcc" >&5
d1004 1
a1004 1
echo "configure:1006: checking for $ac_word" >&5
d1035 1
a1035 1
echo "configure:1037: checking how to run the C preprocessor" >&5
d1050 1
a1050 1
#line 1052 "configure"
d1056 1
a1056 1
{ (eval echo configure:1058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1067 1
a1067 1
#line 1069 "configure"
d1073 1
a1073 1
{ (eval echo configure:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1084 1
a1084 1
#line 1086 "configure"
d1090 1
a1090 1
{ (eval echo configure:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1116 1
a1116 1
echo "configure:1118: checking whether ${CC-cc} needs -traditional" >&5
d1122 1
a1122 1
#line 1124 "configure"
d1140 1
a1140 1
#line 1142 "configure"
d1162 1
a1162 1
echo "configure:1164: checking for POSIXized ISC" >&5
d1184 1
a1184 1
echo "configure:1186: checking for ${CC-cc} option to accept ANSI C" >&5
d1208 1
a1208 1
#line 1210 "configure"
d1224 1
a1224 1
if { (eval echo configure:1226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1265 1
    CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a1268 3
cygwin*)
    PROG_EXT=".exe"
    ;;
d1281 1
a1281 1
echo "configure:1287: checking for $ac_word" >&5
d1317 2
a1318 2
echo $ac_n "checking if you want to ensure bool is consistent with C++""... $ac_c" 1>&6
echo "configure:1324: checking if you want to ensure bool is consistent with C++" >&5
d1329 2
a1330 5
if test "X$cf_with_cxx" = Xno ; then
	CXX=""
	GXX=""
else
	for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
d1335 1
a1335 1
echo "configure:1344: checking for $ac_word" >&5
d1367 1
a1367 1
echo "configure:1376: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
d1378 1
a1378 1
#line 1387 "configure"
d1383 1
a1383 1
if { (eval echo configure:1392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1409 1
a1409 1
echo "configure:1418: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
d1414 1
a1414 1
echo "configure:1423: checking whether we are using GNU C++" >&5
d1423 1
a1423 1
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1442 1
a1442 1
echo "configure:1451: checking whether ${CXX-g++} accepts -g" >&5
a1475 13
echo $ac_n "checking if you want to build C++ binding and demo""... $ac_c" 1>&6
echo "configure:1486: checking if you want to build C++ binding and demo" >&5

# Check whether --with-cxx-binding or --without-cxx-binding was given.
if test "${with_cxx_binding+set}" = set; then
  withval="$with_cxx_binding"
  cf_with_cxx_binding=$withval
else
  cf_with_cxx_binding=$cf_with_cxx
fi

echo "$ac_t""$cf_with_cxx_binding" 1>&6

d1477 1
a1477 1
echo "configure:1499: checking if you want to build with Ada95" >&5
d1490 1
a1490 1
echo "configure:1512: checking if you want to build programs such as tic" >&5
d1513 1
a1513 1
echo "configure:1535: checking for $ac_word" >&5
d1543 1
a1543 1
echo "configure:1565: checking whether ${MAKE-make} sets \${MAKE}" >&5
d1581 1
a1581 1
echo "configure:1603: checking for a BSD compatible install" >&5
d1644 1
a1644 1
echo "configure:1666: checking for long file names" >&5
d1688 1
a1688 1
echo "configure:1710: checking whether ln -s works" >&5
d1711 1
a1711 1
echo "configure:1733: checking for $ac_word" >&5
d1743 1
a1743 1
echo "configure:1765: checking for $ac_word" >&5
d1777 1
a1777 1
echo "configure:1799: checking for $ac_word" >&5
d1813 1
a1813 1
echo "configure:1835: checking for loader (symbol LD)" >&5
d1827 1
a1827 1
echo "configure:1849: checking for archiver (symbol AR)" >&5
d1841 1
a1841 1
echo "configure:1863: checking for archiver options (symbol AR_OPTS)" >&5
d1853 1
a1853 1
echo "configure:1875: checking for makeflags variable" >&5
d1859 1
a1859 1
	for cf_option in '-$(MAKEFLAGS)' '$(MFLAGS)'
d1889 1
a1889 1
echo "configure:1911: checking if you have specified an install-prefix" >&5
d1909 1
a1909 1
echo "configure:1931: checking format of man-pages" >&5
d1961 1
a1961 1
echo "configure:1983: checking for manpage renaming" >&5
d2126 1
a2126 1
echo "configure:2148: checking if you want to build shared libraries" >&5
d2140 1
a2140 1
echo "configure:2162: checking if you want to build static libraries" >&5
d2154 1
a2154 1
echo "configure:2176: checking if you want to build debug libraries" >&5
d2168 1
a2168 1
echo "configure:2190: checking if you want to build profiling libraries" >&5
d2182 1
a2182 1
echo "configure:2204: checking if you want to build a separate terminfo library" >&5
d2196 1
a2196 1
echo "configure:2218: checking if you want to link with dbmalloc for testing" >&5
d2209 1
a2209 1
echo "configure:2231: checking for debug_malloc in -ldbmalloc" >&5
d2217 1
a2217 1
#line 2239 "configure"
d2228 1
a2228 1
if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2258 1
a2258 1
echo "configure:2280: checking if you want to link with dmalloc for testing" >&5
d2271 1
a2271 1
echo "configure:2293: checking for dmalloc_debug in -ldmalloc" >&5
d2279 1
a2279 1
#line 2301 "configure"
d2290 1
a2290 1
if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2321 1
a2321 1
echo "configure:2343: checking if you want to link with the gpm mouse library" >&5
d2334 1
a2334 1
echo "configure:2356: checking for Gpm_Open in -lgpm" >&5
d2340 1
a2340 1
LIBS="-lgpm  $LIBS"
d2342 1
a2342 1
#line 2364 "configure"
d2353 1
a2353 1
if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2379 1
a2379 1
echo "configure:2401: checking for $ac_hdr" >&5
d2384 1
a2384 1
#line 2406 "configure"
d2389 1
a2389 1
{ (eval echo configure:2411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a2417 1
echo "configure: warning: Cannot link with gpm library - read the FAQ" 1>&2
d2430 1
a2430 1
echo "configure:2453: checking for specified models" >&5
d2447 1
a2447 1
		openbsd*|freebsd*)
a2448 7
		netbsd*)
			if test -f /usr/libexec/ld.elf_so; then
				DFT_DEP_SUFFIX='.so'
			else
				DFT_DEP_SUFFIX='.so.$(REL_VERSION)'
			fi
			;;
a2479 2
	LIB_PREFIX=$cf_prefix
	
d2505 1
a2505 1
echo "configure:2537: checking if rpath option should be used" >&5
d2527 1
a2527 1
echo "configure:2559: checking if release/abi version should be used for shared libs" >&5
d2603 1
a2603 1
			MK_SHARED_LIB='$(CC) -shared -Wl,-stats,-lc -o $@@'
d2605 1
a2605 1
			MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@@.$(ABI_VERSION)`,-stats,-lc -o $@@'
d2612 1
a2612 1
	openbsd*|freebsd*)
a2614 14
		test $cf_cv_shlib_version = auto && cf_cv_shlib_version=rel
		;;
	netbsd*)
		CC_SHARED_OPTS='-fpic -DPIC'
		test $cf_cv_ld_rpath = yes && cf_ld_rpath_opt="-Wl,-rpath,"
		if test $DFT_LWR_MODEL = "shared" && test $cf_cv_ld_rpath = yes ; then
			LOCAL_LDFLAGS='-Wl,-rpath,../lib'
			LOCAL_LDFLAGS2='-Wl,-rpath,../../lib'
			EXTRA_LDFLAGS="-Wl,-rpath,\$(libdir) $EXTRA_LDFLAGS"
			MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@@.$(ABI_VERSION)` -o $@@'
			test $cf_cv_shlib_version = auto && cf_cv_shlib_version=rel
		else
			MK_SHARED_LIB='$(LD) -Bshareable -o $@@'
		fi
d2638 1
a2638 1
			CC_SHARED_OPTS='-fpic'
d2640 1
a2640 1
			CC_SHARED_OPTS='-belf -KPIC'
d2710 1
a2710 1
echo "configure:2756: checking if we need a space after rpath option" >&5
d2714 1
a2714 1
#line 2760 "configure"
d2721 1
a2721 1
if { (eval echo configure:2767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2747 1
d2761 1
a2761 1
echo "configure:2806: checking if you wish to install ncurses overwriting curses" >&5
d2777 1
a2777 1
echo "configure:2822: checking where we will install curses.h" >&5
d2781 1
a2781 1
echo "configure:2826: checking if external terminfo-database is used" >&5
d2798 1
a2798 1
echo "configure:2843: checking if you want to build with function extensions" >&5
d2815 1
a2815 1
echo "configure:2860: checking for list of fallback descriptions" >&5
d2830 1
a2830 1
echo "configure:2875: checking for list of terminfo directories" >&5
d2887 1
a2887 1
echo "configure:2932: checking if big-core option selected" >&5
d2898 1
a2898 1
#line 2943 "configure"
d2905 1
a2905 1
if { (eval echo configure:2950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d2927 1
a2927 1
echo "configure:2972: checking if you want termcap-fallback support" >&5
d2948 1
a2948 1
echo "configure:2993: checking if fast termcap-loader is needed" >&5
d2965 1
a2965 1
echo "configure:3010: checking if translated termcaps will be cached in ~/.terminfo" >&5
d2991 1
a2991 1
echo "configure:3036: checking for $ac_func" >&5
d2996 1
a2996 1
#line 3041 "configure"
d3019 1
a3019 1
if { (eval echo configure:3064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3050 1
a3050 1
echo "configure:3095: checking for $ac_func" >&5
d3055 1
a3055 1
#line 3100 "configure"
d3078 1
a3078 1
if { (eval echo configure:3123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3104 1
a3104 1
echo "configure:3149: checking if link/symlink functions work" >&5
d3116 1
a3116 1
#line 3161 "configure"
d3145 1
a3145 1
if { (eval echo configure:3190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a3149 7
			
cf_FUNC=`echo $cf_func | tr '[a-z]' '[A-Z]'`

			cat >> confdefs.h <<EOF
#define HAVE_$cf_FUNC 1
EOF

d3174 1
a3174 1
echo "configure:3226: checking if tic should use symbolic links" >&5
d3183 1
a3183 1
echo "configure:3235: checking if tic should use hard links" >&5
d3192 1
a3192 1
echo "configure:3244: checking if tic should use symbolic links" >&5
d3216 1
a3216 1
echo "configure:3268: checking if tputs should process BSD-style prefix padding" >&5
d3234 1
a3234 1
echo "configure:3286: checking for extended use of const keyword" >&5
d3257 1
a3257 1
echo "configure:3309: checking if RCS identifiers should be compiled-in" >&5
d3276 1
a3276 1
echo "configure:3328: checking if you want all experimental code" >&5
d3290 1
a3290 1
echo "configure:3342: checking if you want broken-linker support code" >&5
d3308 1
a3308 1
echo "configure:3360: checking if you want experimental hard-tabs code" >&5
d3326 1
a3326 1
echo "configure:3378: checking if you want experimental hashmap code" >&5
d3343 1
a3343 1
echo "configure:3395: checking if you want experimental no-padding code" >&5
d3360 1
a3360 1
echo "configure:3412: checking if you want experimental safe-sprintf code" >&5
d3378 1
a3378 1
echo "configure:3430: checking if you want to experiment without scrolling-hints code" >&5
d3398 1
a3398 1
echo "configure:3450: checking if you want experimental definable names like termcap" >&5
d3415 1
a3415 1
echo "configure:3467: checking if you want experimental SIGWINCH handler" >&5
d3433 1
a3433 1
echo "configure:3485: checking if you want experimental wide-character code" >&5
d3451 1
a3451 1
echo "configure:3503: checking if you want experimental xmc code" >&5
d3501 1
a3501 1
#line 3553 "configure"
d3504 2
a3505 2
		echo "checking for $CC warning options" 1>&6
echo "configure:3557: checking for $CC warning options" >&5
d3523 1
a3523 1
		if { (eval echo configure:3575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3554 2
a3555 2
	echo "checking for $CC __attribute__ directives" 1>&6
echo "configure:3607: checking for $CC __attribute__ directives" >&5
d3557 1
a3557 1
#line 3609 "configure"
d3582 1
a3582 1
		echo "checking for $CC $cf_directive" 1>&5
d3595 1
a3595 1
		if { (eval echo configure:3647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3675 1
a3675 1
echo "configure:3727: checking for gettimeofday" >&5
d3680 1
a3680 1
#line 3732 "configure"
d3703 1
a3703 1
if { (eval echo configure:3755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3726 1
a3726 1
echo "configure:3778: checking for gettimeofday in -lbsd" >&5
d3734 1
a3734 1
#line 3786 "configure"
d3745 1
a3745 1
if { (eval echo configure:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3773 1
a3773 1
echo "configure:3825: checking for sin" >&5
d3778 1
a3778 1
#line 3830 "configure"
d3801 1
a3801 1
if { (eval echo configure:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3819 1
a3819 1
echo "configure:3871: checking for sin in -lm" >&5
d3827 1
a3827 1
#line 3879 "configure"
d3838 1
a3838 1
if { (eval echo configure:3890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3864 1
a3864 1
echo "configure:3916: checking for ANSI C header files" >&5
d3869 1
a3869 1
#line 3921 "configure"
d3877 1
a3877 1
{ (eval echo configure:3929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3894 1
a3894 1
#line 3946 "configure"
d3912 1
a3912 1
#line 3964 "configure"
d3933 1
a3933 1
#line 3985 "configure"
d3944 1
a3944 1
if { (eval echo configure:3996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d3972 1
a3972 1
echo "configure:4024: checking for $ac_hdr that defines DIR" >&5
d3977 1
a3977 1
#line 4029 "configure"
d3985 1
a3985 1
if { (eval echo configure:4037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4010 1
a4010 1
echo "configure:4062: checking for opendir in -ldir" >&5
d4018 1
a4018 1
#line 4070 "configure"
d4029 1
a4029 1
if { (eval echo configure:4081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4051 1
a4051 1
echo "configure:4103: checking for opendir in -lx" >&5
d4059 1
a4059 1
#line 4111 "configure"
d4070 1
a4070 1
if { (eval echo configure:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4094 1
a4094 1
echo "configure:4146: checking for regular-expression headers" >&5
d4100 1
a4100 1
#line 4152 "configure"
d4113 1
a4113 1
if { (eval echo configure:4165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4122 1
a4122 1
#line 4174 "configure"
d4132 1
a4132 1
if { (eval echo configure:4184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4143 1
a4143 1
#line 4195 "configure"
d4153 1
a4153 1
if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4210 1
a4210 1
echo "configure:4262: checking for $ac_hdr" >&5
d4215 1
a4215 1
#line 4267 "configure"
d4220 1
a4220 1
{ (eval echo configure:4272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4251 1
a4251 1
echo "configure:4303: checking for main in -lcposix" >&5
d4259 1
a4259 1
#line 4311 "configure"
d4266 1
a4266 1
if { (eval echo configure:4318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4294 1
a4294 1
echo "configure:4346: checking for bzero in -linet" >&5
d4302 1
a4302 1
#line 4354 "configure"
d4313 1
a4313 1
if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4336 1
a4336 1
echo "configure:4388: checking for $ac_hdr" >&5
d4341 1
a4341 1
#line 4393 "configure"
d4346 1
a4346 1
{ (eval echo configure:4398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4376 1
a4376 1
echo "configure:4428: checking if sys/time.h works with sys/select.h" >&5
d4382 1
a4382 1
#line 4434 "configure"
d4397 1
a4397 1
if { (eval echo configure:4449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4426 1
a4426 1
echo "configure:4478: checking for working const" >&5
d4431 1
a4431 1
#line 4483 "configure"
d4480 1
a4480 1
if { (eval echo configure:4532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4501 1
a4501 1
echo "configure:4553: checking for inline" >&5
d4508 1
a4508 1
#line 4560 "configure"
d4515 1
a4515 1
if { (eval echo configure:4567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4547 1
a4547 1
echo "configure:4599: checking if unsigned literals are legal" >&5
d4553 1
a4553 1
#line 4605 "configure"
d4560 1
a4560 1
if { (eval echo configure:4612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4578 1
a4578 1
echo "configure:4630: checking for type of chtype" >&5
d4587 1
a4587 1
#line 4639 "configure"
d4633 1
a4633 1
if { (eval echo configure:4685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4666 1
a4666 1
echo "configure:4718: checking for number of bits in chtype" >&5
d4675 1
a4675 1
#line 4727 "configure"
d4698 1
a4698 1
if { (eval echo configure:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4718 1
a4718 1
echo "configure:4770: checking for width of character-index" >&5
d4745 1
a4745 1
echo "configure:4797: checking if external errno is declared" >&5
d4751 1
a4751 1
#line 4803 "configure"
d4764 1
a4764 1
if { (eval echo configure:4816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4795 1
a4795 1
echo "configure:4847: checking if external errno exists" >&5
d4801 1
a4801 1
#line 4853 "configure"
d4811 1
a4811 1
if { (eval echo configure:4863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4843 1
a4843 1
echo "configure:4895: checking if data-only library module links" >&5
d4850 1
a4850 1
#line 4902 "configure"
d4853 1
a4853 1
		if { (eval echo configure:4905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } ; then
d4859 1
a4859 1
#line 4911 "configure"
d4872 1
a4872 1
		if { (eval echo configure:4924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4884 1
a4884 1
#line 4936 "configure"
d4894 1
a4894 1
if { (eval echo configure:4946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4918 1
a4918 1
echo "configure:4970: checking for speed_t" >&5
d4921 1
a4921 1
#line 4973 "configure"
d4928 1
a4928 1
if { (eval echo configure:4980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4939 1
a4939 1
#line 4991 "configure"
d4946 1
a4946 1
if { (eval echo configure:4998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4986 1
d4993 1
a4993 1
echo "configure:5044: checking for $ac_func" >&5
d4998 1
a4998 1
#line 5049 "configure"
d5021 1
a5021 1
if { (eval echo configure:5072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5045 1

d5049 1
a5049 1
echo "configure:5101: checking for terminal-capability database functions" >&5
d5055 1
a5055 1
#line 5107 "configure"
d5070 1
a5070 1
if { (eval echo configure:5122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5093 1
a5093 1
echo "configure:5145: checking for isascii" >&5
d5099 1
a5099 1
#line 5151 "configure"
d5106 1
a5106 1
if { (eval echo configure:5158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5127 1
a5127 1
echo "configure:5179: checking whether sigaction needs _POSIX_SOURCE" >&5
d5129 1
a5129 1
#line 5181 "configure"
d5138 1
a5138 1
if { (eval echo configure:5190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5147 1
a5147 1
#line 5199 "configure"
d5157 1
a5157 1
if { (eval echo configure:5209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5185 1
a5185 1
echo "configure:5237: checking whether termios.h needs _POSIX_SOURCE" >&5
d5187 1
a5187 1
#line 5239 "configure"
d5194 1
a5194 1
if { (eval echo configure:5246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5203 1
a5203 1
#line 5255 "configure"
d5212 1
a5212 1
if { (eval echo configure:5264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5237 1
a5237 1
echo "configure:5289: checking whether setvbuf arguments are reversed" >&5
d5245 1
a5245 1
#line 5297 "configure"
d5259 1
a5259 1
if { (eval echo configure:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5284 1
a5284 1
echo "configure:5336: checking return type of signal handlers" >&5
d5289 1
a5289 1
#line 5341 "configure"
d5306 1
a5306 1
if { (eval echo configure:5358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5326 1
a5326 1
echo "configure:5378: checking for type sigaction_t" >&5
d5332 1
a5332 1
#line 5384 "configure"
d5340 1
a5340 1
if { (eval echo configure:5392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5360 1
a5360 1
echo "configure:5412: checking declaration of size-change" >&5
d5374 1
a5374 1
#line 5426 "configure"
d5413 1
a5413 1
if { (eval echo configure:5465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5445 1
a5445 1
echo "configure:5497: checking for memmove" >&5
d5450 1
a5450 1
#line 5502 "configure"
d5473 1
a5473 1
if { (eval echo configure:5525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5492 1
a5492 1
echo "configure:5544: checking for bcopy" >&5
d5497 1
a5497 1
#line 5549 "configure"
d5520 1
a5520 1
if { (eval echo configure:5572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5536 1
a5536 1
echo "configure:5588: checking if bcopy does overlapping moves" >&5
d5545 1
a5545 1
#line 5597 "configure"
d5558 1
a5558 1
if { (eval echo configure:5610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5602 1
a5602 1
echo "configure:5654: checking for builtin $CC bool type" >&5
d5608 1
a5608 1
#line 5660 "configure"
d5618 1
a5618 1
if { (eval echo configure:5670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5643 49
	
if test -n "$GXX" ; then
case $cf_cv_system_name in #(vi
os2*) #(vi
	cf_stdcpp_libname=stdcpp
	;;
*)
	cf_stdcpp_libname=stdc++
	;;
esac
echo $ac_n "checking for library $cf_stdcpp_libname""... $ac_c" 1>&6
echo "configure:5707: checking for library $cf_stdcpp_libname" >&5
if eval "test \"`echo '$''{'cf_cv_libstdcpp'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
	cf_save="$LIBS"
	LIBS="$LIBS -l$cf_stdcpp_libname -lm"
cat > conftest.$ac_ext <<EOF
#line 5715 "configure"
#include "confdefs.h"

#include <strstream.h>
int main() {

char buf[80];
strstreambuf foo(buf, sizeof(buf))
//destroy foo

; return 0; }
EOF
if { (eval echo configure:5727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  cf_cv_libstdcpp=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_cv_libstdcpp=no
fi
rm -f conftest*
	LIBS="$cf_save"

fi

echo "$ac_t""$cf_cv_libstdcpp" 1>&6
test $cf_cv_libstdcpp = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
fi

a5644 3
	1*|2.0-6*)
	    cf_cxx_library=yes
	    ;;
a5647 8
case $cf_cv_system_name in #(vi
os2*) #(vi
	cf_gpp_libname=gpp
	;;
*)
	cf_gpp_libname=g++
	;;
esac
d5649 2
a5650 2
	echo $ac_n "checking for lib$cf_gpp_libname""... $ac_c" 1>&6
echo "configure:5762: checking for lib$cf_gpp_libname" >&5
d5652 1
a5652 1
	LIBS="$LIBS -l$cf_gpp_libname -lm"
d5654 1
a5654 31
#line 5766 "configure"
#include "confdefs.h"

#include <$cf_gpp_libname/builtin.h>
	
int main() {
//float foo=abs(1.0);
	 two_arg_error_handler_t foo2 = lib_error_handler
; return 0; }
EOF
if { (eval echo configure:5776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  cf_cxx_library=yes
	 CXXLIBS="$CXXLIBS -l$cf_gpp_libname -lm"
	 if test "$cf_gpp_libname" = cpp ; then
	    cat >> confdefs.h <<\EOF
#define HAVE_GPP_BUILTIN_H 1
EOF

	 else
	    cat >> confdefs.h <<\EOF
#define HAVE_GXX_BUILTIN_H 1
EOF

	 fi
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cat > conftest.$ac_ext <<EOF
#line 5796 "configure"
d5660 1
a5660 2
//float foo=abs(1.0);
	 two_arg_error_handler_t foo2 = lib_error_handler
d5663 1
a5663 1
if { (eval echo configure:5806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5666 1
a5666 5
	 CXXLIBS="$CXXLIBS -l$cf_gpp_libname -lm"
	 cat >> confdefs.h <<\EOF
#define HAVE_BUILTIN_H 1
EOF

a5673 2
fi
rm -f conftest*
d5680 1
a5680 1
	    cf_cxx_library=no
d5684 1
a5684 1
echo "configure:5833: checking how to run the C++ preprocessor" >&5
d5697 1
a5697 1
#line 5846 "configure"
d5702 1
a5702 1
{ (eval echo configure:5851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5726 1
a5726 1
for ac_hdr in typeinfo
d5730 1
a5730 1
echo "configure:5879: checking for $ac_hdr" >&5
d5735 1
a5735 1
#line 5884 "configure"
d5740 1
a5740 1
{ (eval echo configure:5889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5768 1
a5768 1
echo "configure:5917: checking for builtin $CXX bool type" >&5
d5774 1
a5774 1
#line 5923 "configure"
d5784 1
a5784 1
if { (eval echo configure:5933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5804 1
a5804 1
echo "configure:5953: checking for size of $CXX bool" >&5
d5814 1
a5814 1
#line 5963 "configure"
d5822 1
a5822 5
#if HAVE_GXX_BUILTIN_H
#include <g++/builtin.h>
#elif HAVE_GPP_BUILTIN_H
#include <gpp/builtin.h>
#elif HAVE_BUILTIN_H
d5842 1
a5842 1
if { (eval echo configure:5995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5866 1
a5866 1
echo "configure:6019: checking for special defines needed for etip.h" >&5
d5877 1
a5877 1
#line 6030 "configure"
d5886 1
a5886 1
if { (eval echo configure:6039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5889 1
a5889 1
	test -n "$cf_math" && cat >> confdefs.h <<EOF
d5893 1
a5893 1
	test -n "$cf_excp" && cat >> confdefs.h <<EOF
a5909 68
	
if test -n "$CXX" ; then
echo $ac_n "checking if $CXX accepts parameter initialization""... $ac_c" 1>&6
echo "configure:6066: checking if $CXX accepts parameter initialization" >&5
if eval "test \"`echo '$''{'cf_cv_cpp_param_init'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
	ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cxx_cross

	if test "$cross_compiling" = yes; then
  cf_cv_cpp_param_init=unknown
else
  cat > conftest.$ac_ext <<EOF
#line 6082 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit(int);
#endif

class TEST {
private:
	int value;
public:
	TEST(int x = 1);
	~TEST();
};

TEST::TEST(int x = 1)	// some compilers do not like second initializer
{
	value = x;
}
void main() { }

EOF
if { (eval echo configure:6103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  cf_cv_cpp_param_init=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  cf_cv_cpp_param_init=no
fi
rm -fr conftest*
fi


fi

echo "$ac_t""$cf_cv_cpp_param_init" 1>&6
fi
test "$cf_cv_cpp_param_init" = yes && cat >> confdefs.h <<\EOF
#define CPP_HAS_PARAM_INIT 1
EOF


	case $cf_cv_system_name in #(vi
	sco3.2v5*)
	    CXXLDFLAGS="-u main"
	    ;;
	esac
	
d5912 1
a5912 1
	cf_cv_builtin_bool=1
d5924 1
a5924 1
echo "configure:6145: checking for fallback type of bool" >&5
d5940 1
a5940 1
echo "configure:6161: checking for $ac_word" >&5
d5994 1
a5994 1
echo "configure:6215: checking for $ac_word" >&5
d6027 1
a6027 1
echo "configure:6248: checking if GNAT works" >&5
d6171 1
a6171 1
echo "configure:6392: checking for library subsets" >&5
d6233 1
a6233 1
echo "configure:6454: checking for src modules" >&5
d6298 1
a6298 1
test $cf_with_cxx_binding != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
a6555 1
s%@@CXXLDFLAGS@@%$CXXLDFLAGS%g
d6802 1
a6802 1
cf_with_cxx_binding="$cf_with_cxx_binding"
a6815 2
	LIB_PREFIX=$cf_prefix
	
d6833 1
a6833 1
		openbsd*|freebsd*)
a6834 7
		netbsd*)
			if test -f /usr/libexec/ld.elf_so; then
				cf_suffix='.so'
			else
				cf_suffix='.so.$(REL_VERSION)'
			fi
			;;
d6876 1
a6876 1
		openbsd*|freebsd*)
a6877 7
		netbsd*)
			if test -f /usr/libexec/ld.elf_so; then
				cf_suffix='.so'
			else
				cf_suffix='.so.$(REL_VERSION)'
			fi
			;;
d6984 1
a6984 2
install.data \
uninstall.data ::
d6987 1
a6987 2
install.man \
uninstall.man ::
@


1.1.1.2.2.1
log
@MFC: ncurses 5.1 prerelease (20000701)
@
text
@d3 1
a3 2
# From configure.in Revision: 1.194 

a199 1
  --with-manpage-symlinks specify manpage-symlinks
d202 1
a204 1
  --with-normal           generate normal-libraries (default)
d216 1
a225 1
  --enable-broken_linker  compile with broken-linker support code
d227 1
d229 2
a230 2
Extensions:
  --disable-ext-funcs     disable function-extensions
d233 1
a233 8
  --enable-const          compile with extra/non-standard const
  --enable-hashmap        compile with hashmap scrolling-optimization code
  --enable-no-padding     compile with \$NCURSES_NO_PADDING code
  --enable-sigwinch       compile with SIGWINCH handler
  --enable-tcap-names     compile with user-definable terminal capabilities
Experimental Code:
  --with-develop          enable all experimental options for testing
  --enable-colorfgbg      compile with experimental \$COLORFGBG code
d235 2
d238 3
a240 1
  --disable-scroll-hints  compile without scroll-hints code
a241 2
EOF
cat <<EOF
d245 2
d254 2
a255 4
  --with-ada-include=DIR  Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
  --with-ada-objects=DIR  Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
EOF
cat <<EOF
d639 1
a639 1
echo "configure:646: checking host system type" >&5
d730 1
a730 1
echo "configure:737: checking for prefix" >&5
d745 1
a745 1
echo "configure:752: checking for default include-directory" >&5
d775 1
a775 1
echo "configure:782: checking for $ac_word" >&5
d805 1
a805 1
echo "configure:812: checking for $ac_word" >&5
d856 1
a856 1
echo "configure:863: checking for $ac_word" >&5
d888 1
a888 1
echo "configure:895: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d899 1
a899 1
#line 906 "configure"
d904 1
a904 1
if { (eval echo configure:911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d930 1
a930 1
echo "configure:937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d935 1
a935 1
echo "configure:942: checking whether we are using GNU C" >&5
d944 1
a944 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d963 1
a963 1
echo "configure:970: checking whether ${CC-cc} accepts -g" >&5
d996 1
a996 1
echo "configure:1003: checking version of gcc" >&5
d1005 1
a1005 1
echo "configure:1012: checking for $ac_word" >&5
d1036 1
a1036 1
echo "configure:1043: checking how to run the C preprocessor" >&5
d1051 1
a1051 1
#line 1058 "configure"
d1057 1
a1057 1
{ (eval echo configure:1064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1068 1
a1068 1
#line 1075 "configure"
d1074 1
a1074 1
{ (eval echo configure:1081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1085 1
a1085 1
#line 1092 "configure"
d1091 1
a1091 1
{ (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1117 1
a1117 1
echo "configure:1124: checking whether ${CC-cc} needs -traditional" >&5
d1123 1
a1123 1
#line 1130 "configure"
d1141 1
a1141 1
#line 1148 "configure"
d1163 1
a1163 1
echo "configure:1170: checking for POSIXized ISC" >&5
d1185 1
a1185 1
echo "configure:1192: checking for ${CC-cc} option to accept ANSI C" >&5
d1203 1
a1203 1
	-Ae \
d1209 1
a1209 1
#line 1216 "configure"
d1225 1
a1225 1
if { (eval echo configure:1232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1286 1
a1286 1
echo "configure:1293: checking for $ac_word" >&5
d1323 1
a1323 1
echo "configure:1330: checking if you want to ensure bool is consistent with C++" >&5
d1338 1
a1338 1
		for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
d1343 1
a1343 1
echo "configure:1350: checking for $ac_word" >&5
d1375 1
a1375 1
echo "configure:1382: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
d1386 1
a1386 1
#line 1393 "configure"
d1391 1
a1391 1
if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1414 1
a1414 1
  echo "$ac_t""You don't have any C++ compiler, too bad" 1>&6; 		cf_with_cxx=no; CXX=""; GXX="";
d1417 1
a1417 1
echo "configure:1424: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
d1422 1
a1422 1
echo "configure:1429: checking whether we are using GNU C++" >&5
d1431 1
a1431 1
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1450 1
a1450 1
echo "configure:1457: checking whether ${CXX-g++} accepts -g" >&5
d1481 1
a1481 1
	fi
d1485 1
a1485 1
echo "configure:1492: checking if you want to build C++ binding and demo" >&5
d1498 1
a1498 1
echo "configure:1505: checking if you want to build with Ada95" >&5
d1511 1
a1511 1
echo "configure:1518: checking if you want to build programs such as tic" >&5
d1534 1
a1534 1
echo "configure:1541: checking for $ac_word" >&5
d1564 1
a1564 1
echo "configure:1571: checking whether ${MAKE-make} sets \${MAKE}" >&5
d1602 1
a1602 1
echo "configure:1609: checking for a BSD compatible install" >&5
d1665 1
a1665 1
echo "configure:1672: checking for long file names" >&5
d1709 1
a1709 1
echo "configure:1716: checking whether ln -s works" >&5
d1732 1
a1732 1
echo "configure:1739: checking for $ac_word" >&5
d1764 1
a1764 1
echo "configure:1771: checking for $ac_word" >&5
d1798 1
a1798 1
echo "configure:1805: checking for $ac_word" >&5
d1834 1
a1834 1
echo "configure:1841: checking for loader (symbol LD)" >&5
d1848 1
a1848 1
echo "configure:1855: checking for archiver (symbol AR)" >&5
d1862 1
a1862 1
echo "configure:1869: checking for archiver options (symbol AR_OPTS)" >&5
d1874 1
a1874 1
echo "configure:1881: checking for makeflags variable" >&5
d1910 1
a1910 1
echo "configure:1917: checking if you have specified an install-prefix" >&5
d1930 1
a1930 1
echo "configure:1937: checking format of man-pages" >&5
d1982 1
a1982 1
echo "configure:1989: checking for manpage renaming" >&5
a2023 16
echo $ac_n "checking for manpage symlinks""... $ac_c" 1>&6
echo "configure:2032: checking for manpage symlinks" >&5


# Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
if test "${with_manpage_symlinks+set}" = set; then
  withval="$with_manpage_symlinks"
  cf_manpage_symlinks=$withval
else
  cf_manpage_symlinks=yes
fi


echo "$ac_t""$cf_manpage_symlinks" 1>&6


a2049 1

a2058 3
srcdir=\$1
shift

a2068 1
	aliases=
a2070 5
if test "$cf_manpage_symlinks" = yes ; then
cat >>man/edit_man.sh <<CF_EOF
	aliases=\`sed -f \$srcdir/manlinks.sed \$source | sort -u\`
CF_EOF
fi
a2124 1
	suffix=\`basename \$target | sed -e 's/^[^.]*//'\`
a2126 22
		test -n "\$aliases" && (
			cd $cf_subdir\${section} && (
				target=\`basename \$target\`
				for cf_alias in \$aliases
				do
					if test -f \$cf_alias\${suffix} ; then
						if ( cmp -s \$target \$cf_alias\${suffix} )
						then
							:
						else
							echo .. \$verb alias \$cf_alias\${suffix}
							rm -f \$cf_alias\${suffix}
							$LN_S \$target \$cf_alias\${suffix}
						fi
					else
						echo .. \$verb alias \$cf_alias\${suffix}
						rm -f \$cf_alias\${suffix}
						$LN_S \$target \$cf_alias\${suffix}
					fi
				done
			)
		)
a2128 9
		test -n "\$aliases" && (
			cd $cf_subdir\${section} && (
				for cf_alias in \$aliases
				do
					echo .. \$verb alias \$cf_alias\${suffix}
					rm -f \$cf_alias\${suffix}
				done
			)
		)
a2132 1
exit 0
d2147 1
a2147 1
echo "configure:2213: checking if you want to build shared libraries" >&5
d2161 1
a2161 1
echo "configure:2227: checking if you want to build static libraries" >&5
d2175 1
a2175 1
echo "configure:2241: checking if you want to build debug libraries" >&5
d2189 1
a2189 1
echo "configure:2255: checking if you want to build profiling libraries" >&5
a2201 41
###############################################################################

echo $ac_n "checking for specified models""... $ac_c" 1>&6
echo "configure:2271: checking for specified models" >&5
test -z "$cf_list_models" && cf_list_models=normal
echo "$ac_t""$cf_list_models" 1>&6

### Use the first model as the default, and save its suffix for use in building
### up test-applications.
echo $ac_n "checking for default model""... $ac_c" 1>&6
echo "configure:2278: checking for default model" >&5
DFT_LWR_MODEL=`echo $cf_list_models | $AWK '{print $1}'`
echo "$ac_t""$DFT_LWR_MODEL" 1>&6


DFT_UPR_MODEL=`echo $DFT_LWR_MODEL | tr '[a-z]' '[A-Z]'`


TINFO_NAME=tinfo


LIB_NAME=ncurses


LIB_DIR=../lib

	case $cf_cv_system_name in
	os2)	LIB_PREFIX=''     ;;
	*)	LIB_PREFIX='lib'  ;;
	esac
cf_prefix=$LIB_PREFIX
	

LIB_PREFIX=$cf_prefix


LIB_SUFFIX=


###############################################################################

d2203 1
a2203 1
echo "configure:2310: checking if you want to build a separate terminfo library" >&5
d2217 1
a2217 1
echo "configure:2324: checking if you want to link with dbmalloc for testing" >&5
d2230 1
a2230 1
echo "configure:2337: checking for debug_malloc in -ldbmalloc" >&5
d2238 1
a2238 1
#line 2345 "configure"
d2249 1
a2249 1
if { (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2279 1
a2279 1
echo "configure:2386: checking if you want to link with dmalloc for testing" >&5
d2292 1
a2292 1
echo "configure:2399: checking for dmalloc_debug in -ldmalloc" >&5
d2300 1
a2300 1
#line 2407 "configure"
d2311 1
a2311 1
if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2342 1
a2342 1
echo "configure:2449: checking if you want to link with the gpm mouse library" >&5
d2355 1
a2355 1
echo "configure:2462: checking for Gpm_Open in -lgpm" >&5
d2363 1
a2363 1
#line 2470 "configure"
d2374 1
a2374 1
if { (eval echo configure:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2400 1
a2400 1
echo "configure:2507: checking for $ac_hdr" >&5
d2405 1
a2405 1
#line 2512 "configure"
d2410 1
a2410 1
{ (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2444 71
a2527 2
echo $ac_n "checking for default loader flags""... $ac_c" 1>&6
echo "configure:2565: checking for default loader flags" >&5
a2533 1
echo "$ac_t""$LD_MODEL" 1>&6
d2536 1
a2536 1
echo "configure:2575: checking if rpath option should be used" >&5
d2558 1
a2558 1
echo "configure:2597: checking if release/abi version should be used for shared libs" >&5
a2583 31
	# Some less-capable ports of gcc support only -fpic
	CC_SHARED_OPTS=
	if test -n "$GCC"
	then
		echo $ac_n "checking which $CC option to use""... $ac_c" 1>&6
echo "configure:2628: checking which $CC option to use" >&5
		cf_save_CFLAGS="$CFLAGS"
		for CC_SHARED_OPTS in -fPIC -fpic ''
		do
			CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
			cat > conftest.$ac_ext <<EOF
#line 2634 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
int x = 1
; return 0; }
EOF
if { (eval echo configure:2641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
		done
		echo "$ac_t""$CC_SHARED_OPTS" 1>&6
		CFLAGS="$cf_save_CFLAGS"
	fi

a2584 3
	beos*)
		MK_SHARED_LIB='$(CC) -o $@@ -Xlinker -soname=`basename $@@` -nostart -e 0'
		;;
d2588 1
d2603 1
d2616 3
a2618 1
		if test -z "$GCC"; then
d2626 1
d2640 1
a2640 1
		CC_SHARED_OPTS='$CC_SHARED_OPTS -DPIC'
d2644 1
a2644 1
		CC_SHARED_OPTS='$CC_SHARED_OPTS -DPIC'
d2649 1
a2649 1
		CC_SHARED_OPTS='$CC_SHARED_OPTS -DPIC'
d2665 1
d2682 3
a2684 1
		if test $ac_cv_prog_gcc != yes; then
d2698 3
a2700 1
		if test $ac_cv_prog_gcc != yes; then
d2708 3
a2710 1
		if test $ac_cv_prog_gcc != yes; then
d2720 3
a2722 5
	sysv5uw7*|unix_sv*)
		# tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
		if test $ac_cv_prog_gcc != yes; then
			CC_SHARED_OPTS='-KPIC'
		fi
d2755 1
a2755 1
echo "configure:2818: checking if we need a space after rpath option" >&5
d2759 1
a2759 1
#line 2822 "configure"
d2766 1
a2766 1
if { (eval echo configure:2829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2805 1
a2805 1
echo "configure:2868: checking if you wish to install ncurses overwriting curses" >&5
d2811 4
d2820 3
d2825 1
a2825 1
echo "configure:2881: checking if external terminfo-database is used" >&5
d2841 17
d2859 1
a2859 1
echo "configure:2898: checking for list of fallback descriptions" >&5
d2874 1
a2874 1
echo "configure:2913: checking for list of terminfo directories" >&5
a2892 2
.a-zA-Z:\\/*) #(vi OS/2 EMX
  ;;
d2931 1
a2931 1
echo "configure:2972: checking if big-core option selected" >&5
d2942 1
a2942 1
#line 2983 "configure"
d2949 1
a2949 1
if { (eval echo configure:2990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d2971 1
a2971 1
echo "configure:3012: checking if you want termcap-fallback support" >&5
d2992 1
a2992 1
echo "configure:3033: checking if fast termcap-loader is needed" >&5
d3009 1
a3009 1
echo "configure:3050: checking if translated termcaps will be cached in ~/.terminfo" >&5
d3035 1
a3035 1
echo "configure:3076: checking for $ac_func" >&5
d3040 1
a3040 1
#line 3081 "configure"
d3063 1
a3063 1
if { (eval echo configure:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3094 1
a3094 1
echo "configure:3135: checking for $ac_func" >&5
d3099 1
a3099 1
#line 3140 "configure"
d3122 1
a3122 1
if { (eval echo configure:3163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3148 1
a3148 1
echo "configure:3189: checking if link/symlink functions work" >&5
d3160 1
a3160 1
#line 3201 "configure"
d3189 1
a3189 1
if { (eval echo configure:3230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d3225 1
a3225 1
echo "configure:3266: checking if tic should use symbolic links" >&5
d3234 1
a3234 1
echo "configure:3275: checking if tic should use hard links" >&5
d3243 1
a3243 1
echo "configure:3284: checking if tic should use symbolic links" >&5
a3264 18
###   use option --enable-broken-linker to force on use of broken-linker support
echo $ac_n "checking if you want broken-linker support code""... $ac_c" 1>&6
echo "configure:3308: checking if you want broken-linker support code" >&5

# Check whether --enable-broken_linker or --disable-broken_linker was given.
if test "${enable_broken_linker+set}" = set; then
  enableval="$enable_broken_linker"
  with_broken_linker=$enableval
else
  with_broken_linker=$BROKEN_LINKER
fi

echo "$ac_t""$with_broken_linker" 1>&6
test "$with_broken_linker" = yes && cat >> confdefs.h <<\EOF
#define BROKEN_LINKER 1
EOF


d3267 1
a3267 1
echo "configure:3326: checking if tputs should process BSD-style prefix padding" >&5
a3282 57
### Enable compiling-in rcs id's
echo $ac_n "checking if RCS identifiers should be compiled-in""... $ac_c" 1>&6
echo "configure:3344: checking if RCS identifiers should be compiled-in" >&5

# Check whether --with-rcs-ids or --without-rcs-ids was given.
if test "${with_rcs_ids+set}" = set; then
  withval="$with_rcs_ids"
  with_rcs_ids=$withval
else
  with_rcs_ids=no
fi

echo "$ac_t""$with_rcs_ids" 1>&6
test "$with_rcs_ids" = yes && cat >> confdefs.h <<\EOF
#define USE_RCS_IDS 1
EOF


###############################################################################


### Note that some functions (such as const) are normally disabled anyway.
echo $ac_n "checking if you want to build with function extensions""... $ac_c" 1>&6
echo "configure:3365: checking if you want to build with function extensions" >&5

# Check whether --enable-ext-funcs or --disable-ext-funcs was given.
if test "${enable_ext_funcs+set}" = set; then
  enableval="$enable_ext_funcs"
  with_ext_funcs=$enableval
else
  with_ext_funcs=yes
fi

echo "$ac_t""$with_ext_funcs" 1>&6
if test "$with_ext_funcs" = yes ; then
	cat >> confdefs.h <<\EOF
#define HAVE_HAS_KEY 1
EOF

	cat >> confdefs.h <<\EOF
#define HAVE_RESIZETERM 1
EOF

	cat >> confdefs.h <<\EOF
#define HAVE_USE_DEFAULT_COLORS 1
EOF

	cat >> confdefs.h <<\EOF
#define HAVE_WRESIZE 1
EOF

	cat >> confdefs.h <<\EOF
#define NCURSES_EXT_FUNCS 1
EOF

fi

d3285 1
a3285 1
echo "configure:3401: checking for extended use of const keyword" >&5
d3306 3
a3308 56
###   use option --enable-hashmap to turn on use of hashmap scrolling logic
echo $ac_n "checking if you want hashmap scrolling-optimization code""... $ac_c" 1>&6
echo "configure:3424: checking if you want hashmap scrolling-optimization code" >&5

# Check whether --enable-hashmap or --disable-hashmap was given.
if test "${enable_hashmap+set}" = set; then
  enableval="$enable_hashmap"
  with_hashmap=$enableval
else
  with_hashmap=yes
fi

echo "$ac_t""$with_hashmap" 1>&6
test "$with_hashmap" = yes && cat >> confdefs.h <<\EOF
#define USE_HASHMAP 1
EOF


echo $ac_n "checking if you want \$NCURSES_NO_PADDING code""... $ac_c" 1>&6
echo "configure:3441: checking if you want \$NCURSES_NO_PADDING code" >&5

# Check whether --enable-no-padding or --disable-no-padding was given.
if test "${enable_no_padding+set}" = set; then
  enableval="$enable_no_padding"
  with_no_padding=$enableval
else
  with_no_padding=$with_ext_funcs
fi

echo "$ac_t""$with_no_padding" 1>&6
test "$with_no_padding" = yes && cat >> confdefs.h <<\EOF
#define NCURSES_NO_PADDING 1
EOF


###   use option --enable-sigwinch to turn on use of SIGWINCH logic
echo $ac_n "checking if you want SIGWINCH handler""... $ac_c" 1>&6
echo "configure:3459: checking if you want SIGWINCH handler" >&5

# Check whether --enable-sigwinch or --disable-sigwinch was given.
if test "${enable_sigwinch+set}" = set; then
  enableval="$enable_sigwinch"
  with_sigwinch=$enableval
else
  with_sigwinch=$with_ext_funcs
fi

echo "$ac_t""$with_sigwinch" 1>&6
test "$with_sigwinch" = yes && cat >> confdefs.h <<\EOF
#define USE_SIGWINCH 1
EOF


###   use option --enable-tcap-names to allow user to define new capabilities
echo $ac_n "checking if you want user-definable terminal capabilities like termcap""... $ac_c" 1>&6
echo "configure:3477: checking if you want user-definable terminal capabilities like termcap" >&5
d3310 4
a3313 4
# Check whether --enable-tcap-names or --disable-tcap-names was given.
if test "${enable_tcap_names+set}" = set; then
  enableval="$enable_tcap_names"
  with_tcap_names=$enableval
d3315 1
a3315 1
  with_tcap_names=$with_ext_funcs
d3318 4
a3321 3
echo "$ac_t""$with_tcap_names" 1>&6
NCURSES_XNAMES=0
test "$with_tcap_names" = yes && NCURSES_XNAMES=1
d3327 1
a3327 1
echo "configure:3495: checking if you want all experimental code" >&5
d3339 3
a3341 3
###   use option --enable-colorfgbg to turn on use of $COLORFGBG environment
echo $ac_n "checking if you want experimental colorfgbg code""... $ac_c" 1>&6
echo "configure:3509: checking if you want experimental colorfgbg code" >&5
d3343 4
a3346 4
# Check whether --enable-hard-tabs or --disable-hard-tabs was given.
if test "${enable_hard_tabs+set}" = set; then
  enableval="$enable_hard_tabs"
  with_colorfgbg=$enableval
d3348 1
a3348 1
  with_colorfgbg=$with_develop
d3351 3
a3353 3
echo "$ac_t""$with_colorfgbg" 1>&6
test "$with_colorfgbg" = yes && cat >> confdefs.h <<\EOF
#define USE_COLORFGBG 1
d3359 1
a3359 1
echo "configure:3527: checking if you want experimental hard-tabs code" >&5
d3375 35
d3411 1
a3411 1
echo "configure:3544: checking if you want experimental safe-sprintf code" >&5
a3427 2
# when hashmap is used scroll hints are useless
if test "$with_hashmap" = no ; then
d3429 1
a3429 1
echo "configure:3564: checking if you want to experiment without scrolling-hints code" >&5
d3436 3
a3438 1
  with_scroll_hints=yes
d3446 28
d3476 6
d3484 1
a3484 1
echo "configure:3583: checking if you want experimental wide-character code" >&5
d3495 1
a3495 3
if test "$with_widec" = yes ; then
	LIB_SUFFIX="w${LIB_SUFFIX}"
	cat >> confdefs.h <<\EOF
a3498 1
fi
d3502 1
a3502 1
echo "configure:3604: checking if you want experimental xmc code" >&5
d3552 1
a3552 1
#line 3654 "configure"
d3556 1
a3556 1
echo "configure:3658: checking for $CC warning options" >&5
d3574 1
a3574 1
		if { (eval echo configure:3676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3606 1
a3606 1
echo "configure:3708: checking for $CC __attribute__ directives" >&5
d3608 1
a3608 1
#line 3710 "configure"
d3646 1
a3646 1
		if { (eval echo configure:3748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3726 1
a3726 1
echo "configure:3828: checking for gettimeofday" >&5
d3731 1
a3731 1
#line 3833 "configure"
d3754 1
a3754 1
if { (eval echo configure:3856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3777 1
a3777 1
echo "configure:3879: checking for gettimeofday in -lbsd" >&5
d3785 1
a3785 1
#line 3887 "configure"
d3796 1
a3796 1
if { (eval echo configure:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3822 41
d3864 9
a3872 3
echo $ac_n "checking if -lm needed for math functions""... $ac_c" 1>&6
echo "configure:3926: checking if -lm needed for math functions" >&5
if eval "test \"`echo '$''{'cf_cv_need_libm'+set}'`\" = set"; then
d3875 4
a3878 3
  
	cat > conftest.$ac_ext <<EOF
#line 3932 "configure"
d3880 4
a3884 3
	#include <stdio.h>
	#include <math.h>
	
d3886 1
a3886 1
double x = rand(); printf("result = %g\n", sin(x))
d3889 1
a3889 1
if { (eval echo configure:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3891 1
a3891 1
  cf_cv_need_libm=no
d3896 1
a3896 1
  cf_cv_need_libm=yes
d3899 8
a3908 4
echo "$ac_t""$cf_cv_need_libm" 1>&6
if test "$cf_cv_need_libm" = yes
then
MATH_LIB=-lm
d3915 1
a3915 1
echo "configure:3964: checking for ANSI C header files" >&5
d3920 1
a3920 1
#line 3969 "configure"
d3928 1
a3928 1
{ (eval echo configure:3977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3945 1
a3945 1
#line 3994 "configure"
d3963 1
a3963 1
#line 4012 "configure"
d3984 1
a3984 1
#line 4033 "configure"
d3995 1
a3995 1
if { (eval echo configure:4044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4023 1
a4023 1
echo "configure:4072: checking for $ac_hdr that defines DIR" >&5
d4028 1
a4028 1
#line 4077 "configure"
d4036 1
a4036 1
if { (eval echo configure:4085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4061 1
a4061 1
echo "configure:4110: checking for opendir in -ldir" >&5
d4069 1
a4069 1
#line 4118 "configure"
d4080 1
a4080 1
if { (eval echo configure:4129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4102 1
a4102 1
echo "configure:4151: checking for opendir in -lx" >&5
d4110 1
a4110 1
#line 4159 "configure"
d4121 1
a4121 1
if { (eval echo configure:4170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4145 1
a4145 1
echo "configure:4194: checking for regular-expression headers" >&5
d4151 1
a4151 1
#line 4200 "configure"
d4164 1
a4164 1
if { (eval echo configure:4213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4173 1
a4173 1
#line 4222 "configure"
d4183 1
a4183 1
if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4194 1
a4194 1
#line 4243 "configure"
d4204 1
a4204 1
if { (eval echo configure:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a4243 1
poll.h \
d4247 1
a4247 1
sys/poll.h \
d4249 1
d4256 1
d4261 1
a4261 1
echo "configure:4309: checking for $ac_hdr" >&5
d4266 1
a4266 1
#line 4314 "configure"
d4271 1
a4271 1
{ (eval echo configure:4319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4302 1
a4302 1
echo "configure:4350: checking for main in -lcposix" >&5
d4310 1
a4310 1
#line 4358 "configure"
d4317 1
a4317 1
if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4345 1
a4345 1
echo "configure:4393: checking for bzero in -linet" >&5
d4353 1
a4353 1
#line 4401 "configure"
d4364 1
a4364 1
if { (eval echo configure:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4387 1
a4387 1
echo "configure:4435: checking for $ac_hdr" >&5
d4392 1
a4392 1
#line 4440 "configure"
d4397 1
a4397 1
{ (eval echo configure:4445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4427 1
a4427 1
echo "configure:4475: checking if sys/time.h works with sys/select.h" >&5
d4433 1
a4433 1
#line 4481 "configure"
d4448 1
a4448 1
if { (eval echo configure:4496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4477 1
a4477 1
echo "configure:4525: checking for working const" >&5
d4482 1
a4482 1
#line 4530 "configure"
d4531 1
a4531 1
if { (eval echo configure:4579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4552 1
a4552 1
echo "configure:4600: checking for inline" >&5
d4559 1
a4559 1
#line 4607 "configure"
d4566 1
a4566 1
if { (eval echo configure:4614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4598 1
a4598 1
echo "configure:4646: checking if unsigned literals are legal" >&5
d4604 1
a4604 1
#line 4652 "configure"
d4611 1
a4611 1
if { (eval echo configure:4659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4629 1
a4629 1
echo "configure:4677: checking for type of chtype" >&5
d4638 1
a4638 1
#line 4686 "configure"
d4684 1
a4684 1
if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4717 1
a4717 1
echo "configure:4765: checking for number of bits in chtype" >&5
d4726 1
a4726 1
#line 4774 "configure"
d4749 1
a4749 1
if { (eval echo configure:4797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4769 1
a4769 1
echo "configure:4817: checking for width of character-index" >&5
d4796 1
a4796 1
echo "configure:4844: checking if external errno is declared" >&5
d4802 1
a4802 1
#line 4850 "configure"
d4805 1
a4805 1
#ifdef HAVE_STDLIB_H
d4815 1
a4815 1
if { (eval echo configure:4863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4846 1
a4846 1
echo "configure:4894: checking if external errno exists" >&5
d4852 1
a4852 1
#line 4900 "configure"
d4862 1
a4862 1
if { (eval echo configure:4910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4894 1
a4894 1
echo "configure:4942: checking if data-only library module links" >&5
d4901 1
a4901 1
#line 4949 "configure"
d4904 1
a4904 1
		if { (eval echo configure:4952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } ; then
d4910 1
a4910 1
#line 4958 "configure"
d4923 1
a4923 1
		if { (eval echo configure:4971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4935 1
a4935 1
#line 4983 "configure"
d4945 1
a4945 1
if { (eval echo configure:4993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4969 1
a4969 1
echo "configure:5017: checking for speed_t" >&5
d4972 1
a4972 1
#line 5020 "configure"
d4979 1
a4979 1
if { (eval echo configure:5027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4990 1
a4990 1
#line 5038 "configure"
d4997 1
a4997 1
if { (eval echo configure:5045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5020 1
a5020 2
for ac_func in \
getcwd \
a5022 1
mkstemp \
d5043 1
a5043 1
echo "configure:5093: checking for $ac_func" >&5
d5048 1
a5048 1
#line 5098 "configure"
d5071 1
a5071 1
if { (eval echo configure:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5095 2
d5100 1
a5100 1
echo "configure:5148: checking for terminal-capability database functions" >&5
d5106 1
a5106 1
#line 5154 "configure"
d5121 1
a5121 1
if { (eval echo configure:5169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5144 1
a5144 1
echo "configure:5192: checking for isascii" >&5
d5150 1
a5150 1
#line 5198 "configure"
d5157 1
a5157 1
if { (eval echo configure:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5178 1
a5178 1
echo "configure:5226: checking whether sigaction needs _POSIX_SOURCE" >&5
d5180 1
a5180 1
#line 5228 "configure"
d5189 1
a5189 1
if { (eval echo configure:5237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5198 1
a5198 1
#line 5246 "configure"
d5208 1
a5208 1
if { (eval echo configure:5256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5236 1
a5236 1
echo "configure:5284: checking whether termios.h needs _POSIX_SOURCE" >&5
d5238 1
a5238 1
#line 5286 "configure"
d5245 1
a5245 1
if { (eval echo configure:5293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5254 1
a5254 1
#line 5302 "configure"
d5263 1
a5263 1
if { (eval echo configure:5311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5288 1
a5288 1
echo "configure:5336: checking whether setvbuf arguments are reversed" >&5
d5296 1
a5296 1
#line 5344 "configure"
d5310 1
a5310 1
if { (eval echo configure:5358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5335 1
a5335 1
echo "configure:5383: checking return type of signal handlers" >&5
d5340 1
a5340 1
#line 5388 "configure"
d5357 1
a5357 1
if { (eval echo configure:5405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5377 1
a5377 1
echo "configure:5425: checking for type sigaction_t" >&5
d5383 1
a5383 1
#line 5431 "configure"
d5391 1
a5391 1
if { (eval echo configure:5439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5411 1
a5411 1
echo "configure:5459: checking declaration of size-change" >&5
d5425 1
a5425 1
#line 5473 "configure"
d5464 1
a5464 1
if { (eval echo configure:5512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5496 1
a5496 1
echo "configure:5544: checking for memmove" >&5
d5501 1
a5501 1
#line 5549 "configure"
d5524 1
a5524 1
if { (eval echo configure:5572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5543 1
a5543 1
echo "configure:5591: checking for bcopy" >&5
d5548 1
a5548 1
#line 5596 "configure"
d5571 1
a5571 1
if { (eval echo configure:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5587 1
a5587 1
echo "configure:5635: checking if bcopy does overlapping moves" >&5
d5596 1
a5596 1
#line 5644 "configure"
d5609 1
a5609 1
if { (eval echo configure:5657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a5645 51
echo $ac_n "checking if poll really works""... $ac_c" 1>&6
echo "configure:5695: checking if poll really works" >&5
if eval "test \"`echo '$''{'cf_cv_working_poll'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if test "$cross_compiling" = yes; then
  cf_cv_working_poll=unknown
else
  cat > conftest.$ac_ext <<EOF
#line 5704 "configure"
#include "confdefs.h"

#include <stdio.h>
#ifdef HAVE_POLL_H
#include <poll.h>
#else
#include <sys/poll.h>
#endif
int main() {
	struct pollfd myfds;
	int ret;

	myfds.fd = 0;
	myfds.events = POLLIN;

	ret = poll(&myfds, 1, 100);
	exit(ret != 0);
}
EOF
if { (eval echo configure:5724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  cf_cv_working_poll=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  cf_cv_working_poll=no
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$cf_cv_working_poll" 1>&6
test "$cf_cv_working_poll" = "yes" && cat >> confdefs.h <<\EOF
#define HAVE_WORKING_POLL 1
EOF



d5653 1
a5653 1
echo "configure:5752: checking for builtin $CC bool type" >&5
d5659 1
a5659 1
#line 5758 "configure"
d5669 1
a5669 1
if { (eval echo configure:5768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5706 1
a5706 1
echo "configure:5805: checking for library $cf_stdcpp_libname" >&5
d5712 1
a5712 1
	LIBS="$LIBS -l$cf_stdcpp_libname"
d5714 1
a5714 1
#line 5813 "configure"
d5722 1
d5726 1
a5726 1
if { (eval echo configure:5824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5761 1
a5761 1
echo "configure:5859: checking for lib$cf_gpp_libname" >&5
d5763 1
a5763 1
	LIBS="$LIBS -l$cf_gpp_libname"
d5765 1
a5765 1
#line 5863 "configure"
d5771 2
a5772 1
two_arg_error_handler_t foo2 = lib_error_handler
d5775 1
a5775 1
if { (eval echo configure:5872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5778 1
a5778 1
	 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
d5795 1
a5795 1
#line 5892 "configure"
d5801 2
a5802 1
two_arg_error_handler_t foo2 = lib_error_handler
d5805 1
a5805 1
if { (eval echo configure:5901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5808 1
a5808 1
	 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
d5832 1
a5832 1
echo "configure:5928: checking how to run the C++ preprocessor" >&5
d5845 1
a5845 1
#line 5941 "configure"
d5850 1
a5850 1
{ (eval echo configure:5946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5878 1
a5878 1
echo "configure:5974: checking for $ac_hdr" >&5
d5883 1
a5883 1
#line 5979 "configure"
d5888 1
a5888 1
{ (eval echo configure:5984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5916 1
a5916 1
echo "configure:6012: checking for builtin $CXX bool type" >&5
d5922 1
a5922 1
#line 6018 "configure"
d5932 1
a5932 1
if { (eval echo configure:6028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5952 1
a5952 1
echo "configure:6048: checking for size of $CXX bool" >&5
d5962 1
a5962 1
#line 6058 "configure"
d5994 1
a5994 1
if { (eval echo configure:6090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6018 1
a6018 1
echo "configure:6114: checking for special defines needed for etip.h" >&5
d6029 1
a6029 1
#line 6125 "configure"
d6038 1
a6038 1
if { (eval echo configure:6134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6065 1
a6065 1
echo "configure:6161: checking if $CXX accepts parameter initialization" >&5
d6081 1
a6081 1
#line 6177 "configure"
d6102 1
a6102 1
if { (eval echo configure:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6144 1
a6144 1
echo "configure:6240: checking for fallback type of bool" >&5
d6160 1
a6160 1
echo "configure:6256: checking for $ac_word" >&5
d6194 1
a6194 1
  3.1[1-9]*|3.[2-9]*|[4-9].*)
d6197 1
a6197 1
  *) echo Unsupported GNAT version $cf_cv_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
d6214 1
a6214 1
echo "configure:6310: checking for $ac_word" >&5
d6247 1
a6247 1
echo "configure:6343: checking if GNAT works" >&5
d6305 1
a6305 1
  withval="${ADA_INCLUDE-$prefix/lib/ada/adainclude}"
a6310 2
.a-zA-Z:\\/*) #(vi OS/2 EMX
  ;;
d6337 1
a6337 1
  withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
a6342 2
.a-zA-Z:\\/*) #(vi OS/2 EMX
  ;;
d6363 4
a6366 5
# This has been fixed!
#   if test $with_shared = no
#   then
#      AC_MSG_WARN(Ada95 applications will not link properly with static libraries)
#   fi
d6391 1
a6391 1
echo "configure:6492: checking for library subsets" >&5
a6400 7
LIB_TRACING=DEBUG
case "$CFLAGS" in
*-DTRACE*)
	LIB_TRACING=all
	;;
esac

a6438 64
### Build up pieces for makefile rules
echo $ac_n "checking default library suffix""... $ac_c" 1>&6
echo "configure:6549: checking default library suffix" >&5

	case $DFT_LWR_MODEL in
	normal)  DFT_ARG_SUFFIX=''   ;;
	debug)   DFT_ARG_SUFFIX='_g' ;;
	profile) DFT_ARG_SUFFIX='_p' ;;
	shared)  DFT_ARG_SUFFIX=''   ;;
	esac
	test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
echo "$ac_t""$DFT_ARG_SUFFIX" 1>&6

echo $ac_n "checking default library-dependency suffix""... $ac_c" 1>&6
echo "configure:6561: checking default library-dependency suffix" >&5

	
	case $DFT_LWR_MODEL in
	normal)  DFT_DEP_SUFFIX='.a'   ;;
	debug)   DFT_DEP_SUFFIX='_g.a' ;;
	profile) DFT_DEP_SUFFIX='_p.a' ;;
	shared)
		case $cf_cv_system_name in
		openbsd*|freebsd*)
			DFT_DEP_SUFFIX='.so.$(REL_VERSION)' ;;
		netbsd*)
			if test -f /usr/libexec/ld.elf_so; then
				DFT_DEP_SUFFIX='.so'
			else
				DFT_DEP_SUFFIX='.so.$(REL_VERSION)'
			fi
			;;
		hpux*)	DFT_DEP_SUFFIX='.sl'  ;;
		*)	DFT_DEP_SUFFIX='.so'  ;;
		esac
	esac
	test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
echo "$ac_t""$DFT_DEP_SUFFIX" 1>&6

echo $ac_n "checking default object directory""... $ac_c" 1>&6
echo "configure:6587: checking default object directory" >&5

	case $DFT_LWR_MODEL in
	normal)  DFT_OBJ_SUBDIR='objects' ;;
	debug)   DFT_OBJ_SUBDIR='obj_g' ;;
	profile) DFT_OBJ_SUBDIR='obj_p' ;;
	shared)  DFT_OBJ_SUBDIR='obj_s' ;;
	esac
echo "$ac_t""$DFT_OBJ_SUBDIR" 1>&6

TINFO_LIST="$SHLIB_LIST"
test $with_termlib = yes && SHLIB_LIST="$SHLIB_LIST -ltinfo${LIB_SUFFIX}"

echo $ac_n "checking where we will install curses.h""... $ac_c" 1>&6
echo "configure:6601: checking where we will install curses.h" >&5
test "$with_overwrite" = no && \
test "x$includedir" = 'x${prefix}/include' && \
	includedir='$(prefix)/include/ncurses'${LIB_SUFFIX}
echo "$ac_t""$includedir" 1>&6





d6442 1
a6442 1
	TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_NAME}${DFT_DEP_SUFFIX}"
d6453 1
a6453 1
echo "configure:6625: checking for src modules" >&5
d6456 1
a6456 1
TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
d6499 1
a6499 1
			TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
d6521 1
a6521 1
if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
d6738 4
a6741 1
s%@@cf_list_models@@%$cf_list_models%g
d6744 3
a6749 1
s%@@LIB_SUFFIX@@%$LIB_SUFFIX%g
a6788 6
s%@@DFT_ARG_SUFFIX@@%$DFT_ARG_SUFFIX%g
s%@@DFT_DEP_SUFFIX@@%$DFT_DEP_SUFFIX%g
s%@@DFT_OBJ_SUBDIR@@%$DFT_OBJ_SUBDIR%g
s%@@EXTRA_LIBS@@%$EXTRA_LIBS%g
s%@@TINFO_LIST@@%$TINFO_LIST%g
s%@@SHLIB_LIST@@%$SHLIB_LIST%g
a7012 1
LIB_SUFFIX="$LIB_SUFFIX"
a7013 1
LIB_TRACING="$LIB_TRACING"
d7034 2
a7035 2
	os2)	LIB_PREFIX=''     ;;
	*)	LIB_PREFIX='lib'  ;;
d7037 1
a7037 1
cf_prefix=$LIB_PREFIX
a7068 1
	test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
a7118 1
	test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
a7147 1
				traces=$LIB_TRACING \
a7162 1
				traces=$LIB_TRACING \
a7180 1
			echo 'libs \' >> Makefile
a7199 1
libs \\
a7209 1
libs \\
d7256 13
a7268 12
	TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
	TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
	END=\`basename \$DST\`
	for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
	do
		NAME=\`basename \$i\`
		echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
	done
	rm -f \$TMPSRC
	sed -f \$TMPSED \$SRC > \$TMPSRC
	eval \$PRG \$TMPSRC \$DST/\$SRC
	rm -f \$TMPSRC \$TMPSED
@


1.1.1.2.2.2
log
@MFC: ncurses 5.1-20001009
@
text
@d3 1
a3 1
# From configure.in Revision: 1.217 
d8 1
a8 1
# Generated automatically using autoconf version 2.13.20000819 
d197 5
d204 2
a209 2
EOF
cat <<EOF
d218 2
a219 1
  --with-database=XXX     specify terminfo source to install
a221 3
  --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
EOF
cat <<EOF
d230 2
a231 5
Options to Specify How Manpages are Installed:
  --with-manpage-format   specify manpage-format: gzip/compress/BSDI/normal and
                          optionally formatted, e.g., gzip,formatted
  --with-manpage-renames  specify manpage-renaming
  --with-manpage-symlinks specify manpage-symlinks
a233 2
Extensions:
  --disable-ext-funcs     disable function-extensions
d235 1
a238 8
Development Code:
  --with-develop          enable all development options
  --enable-colorfgbg      compile with \$COLORFGBG code
  --enable-hard-tabs      compile with hard-tabs code
  --disable-root-environ  limit environment when running as root
  --enable-xmc-glitch     compile with limited support for xmc
EOF
cat <<EOF
d240 3
a242 2
  --disable-assumed-color do not assume anything about default-colors
  --disable-hashmap       compile without hashmap scrolling-optimization
d245 4
a248 1
  --enable-widec          compile with experimental wide-char/UTF-8 code
a254 2
EOF
cat <<EOF
d257 1
a257 1
  --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
d261 2
d412 1
a412 1
    echo "configure generated by autoconf version 2.13.20000819"
a638 21
# Do some error checking and defaulting for the host and target type.
# The inputs are:
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
#
# The rules are:
# 1. You are not allowed to specify --host, --target, and nonopt at the
#    same time.
# 2. Host defaults to nonopt.
# 3. If nonopt is not specified, then host defaults to the current host,
#    as determined by config.guess.
# 4. Target and build default to nonopt.
# 5. If nonopt is not specified, then target and build default to host.

# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
case $host---$target---$nonopt in
NONE---*---* | *---NONE---* | *---*---NONE) ;;
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
esac


d645 1
a645 1
echo "configure:672: checking host system type" >&5
a664 41
echo $ac_n "checking target system type""... $ac_c" 1>&6
echo "configure:693: checking target system type" >&5

target_alias=$target
case "$target_alias" in
NONE)
  case $nonopt in
  NONE) target_alias=$host_alias ;;
  *) target_alias=$nonopt ;;
  esac ;;
esac

target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$target" 1>&6

echo $ac_n "checking build system type""... $ac_c" 1>&6
echo "configure:711: checking build system type" >&5

build_alias=$build
case "$build_alias" in
NONE)
  case $nonopt in
  NONE) build_alias=$host_alias ;;
  *) build_alias=$nonopt ;;
  esac ;;
esac

build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$build" 1>&6

test "$host_alias" != "$target_alias" &&
  test "$program_prefix$program_suffix$program_transform_name" = \
    NONENONEs,x,x, &&
  program_prefix=${target_alias}-

d736 1
a736 1
echo "configure:804: checking for prefix" >&5
d751 1
a751 1
echo "configure:819: checking for default include-directory" >&5
d781 1
a781 1
echo "configure:849: checking for $ac_word" >&5
d811 1
a811 1
echo "configure:879: checking for $ac_word" >&5
d862 1
a862 1
echo "configure:930: checking for $ac_word" >&5
d894 1
a894 1
echo "configure:962: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d905 1
a905 1
#line 973 "configure"
d910 1
a910 1
if { (eval echo configure:978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d936 1
a936 1
echo "configure:1004: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d941 1
a941 1
echo "configure:1009: checking whether we are using GNU C" >&5
d950 1
a950 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d969 1
a969 1
echo "configure:1037: checking whether ${CC-cc} accepts -g" >&5
d1000 4
a1003 4
if test "$GCC" = yes ; then
	echo $ac_n "checking version of gcc""... $ac_c" 1>&6
echo "configure:1070: checking version of gcc" >&5
	eval "$CC --version"
d1005 2
a1006 2
if test "$host" != $build; then
	for ac_prog in $CC gcc cc
d1011 1
a1011 1
echo "configure:1079: checking for $ac_word" >&5
a1039 2
else
	BUILD_CC="$CC"
a1040 1

d1042 1
a1042 1
echo "configure:1113: checking how to run the C preprocessor" >&5
d1057 1
a1057 1
#line 1128 "configure"
d1063 1
a1063 1
{ (eval echo configure:1134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1074 1
a1074 1
#line 1145 "configure"
d1080 1
a1080 1
{ (eval echo configure:1151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1091 1
a1091 1
#line 1162 "configure"
d1097 1
a1097 1
{ (eval echo configure:1168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1123 1
a1123 1
echo "configure:1194: checking whether ${CC-cc} needs -traditional" >&5
d1129 1
a1129 1
#line 1200 "configure"
d1147 1
a1147 1
#line 1218 "configure"
d1169 1
a1169 1
echo "configure:1240: checking for POSIXized ISC" >&5
d1191 1
a1191 1
echo "configure:1262: checking for ${CC-cc} option to accept ANSI C" >&5
d1215 1
a1215 1
#line 1286 "configure"
d1231 1
a1231 1
if { (eval echo configure:1302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1292 1
a1292 1
echo "configure:1363: checking for $ac_word" >&5
d1329 1
a1329 1
echo "configure:1400: checking if you want to ensure bool is consistent with C++" >&5
d1349 1
a1349 1
echo "configure:1420: checking for $ac_word" >&5
d1381 1
a1381 1
echo "configure:1452: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
d1392 1
a1392 1
#line 1463 "configure"
d1397 1
a1397 1
if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1423 1
a1423 1
echo "configure:1494: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
d1428 1
a1428 1
echo "configure:1499: checking whether we are using GNU C++" >&5
d1437 1
a1437 1
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1456 1
a1456 1
echo "configure:1527: checking whether ${CXX-g++} accepts -g" >&5
d1488 1
a1488 10

if test "$GXX" = yes; then
	case "`${CXX-g++} --version`" in
	1*|2.[0-6]*)
		GXX=""; CXX=""; ac_cv_prog_gxx=no
		cf_cxx_library=no
		echo No: templates do not work
		;;
	esac
fi
d1491 1
a1491 1
echo "configure:1571: checking if you want to build C++ binding and demo" >&5
d1504 1
a1504 1
echo "configure:1584: checking if you want to build with Ada95" >&5
d1517 1
a1517 1
echo "configure:1597: checking if you want to build programs such as tic" >&5
a1534 19
if test "$program_transform_name" = s,x,x,; then
  program_transform_name=
else
  # Double any \ or $.  echo might interpret backslashes.
  cat <<\EOF_SED > conftestsed
s,\\,\\\\,g; s,\$,$$,g
EOF_SED
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  rm -f conftestsed
fi
test "$program_prefix" != NONE &&
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"

# sed with no file args requires a program.
test "$program_transform_name" = "" && program_transform_name="s,x,x,"

d1540 1
a1540 1
echo "configure:1639: checking for $ac_word" >&5
d1570 1
a1570 1
echo "configure:1669: checking whether ${MAKE-make} sets \${MAKE}" >&5
d1608 1
a1608 1
echo "configure:1707: checking for a BSD compatible install" >&5
d1671 1
a1671 1
echo "configure:1770: checking for long file names" >&5
a1713 24

echo $ac_n "checking if filesystem supports mixed-case filenames""... $ac_c" 1>&6
echo "configure:1815: checking if filesystem supports mixed-case filenames" >&5
if eval "test \"`echo '$''{'cf_cv_mixedcase'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
	rm -f conftest CONFTEST
	echo test >conftest
	if test -f CONFTEST ; then
		cf_cv_mixedcase=no
	else
		cf_cv_mixedcase=yes
	fi
	rm -f conftest CONFTEST

fi

echo "$ac_t""$cf_cv_mixedcase" 1>&6
test "$cf_cv_mixedcase" = yes && cat >> confdefs.h <<\EOF
#define MIXEDCASE_FILENAMES 1
EOF


d1715 1
a1715 1
echo "configure:1838: checking whether ln -s works" >&5
d1738 1
a1738 1
echo "configure:1861: checking for $ac_word" >&5
a1764 82


# Extract the first word of "ctags", so it can be a program name with args.
set dummy ctags; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1893: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_MAKE_LOWER_TAGS'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$MAKE_LOWER_TAGS"; then
  ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_MAKE_LOWER_TAGS="yes"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
fi
fi
MAKE_LOWER_TAGS="$ac_cv_prog_MAKE_LOWER_TAGS"
if test -n "$MAKE_LOWER_TAGS"; then
  echo "$ac_t""$MAKE_LOWER_TAGS" 1>&6
else
  echo "$ac_t""no" 1>&6
fi


if test "$cf_cv_mixedcase" = yes ; then
	# Extract the first word of "etags", so it can be a program name with args.
set dummy etags; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1925: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_MAKE_UPPER_TAGS'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$MAKE_UPPER_TAGS"; then
  ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_MAKE_UPPER_TAGS="yes"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
fi
fi
MAKE_UPPER_TAGS="$ac_cv_prog_MAKE_UPPER_TAGS"
if test -n "$MAKE_UPPER_TAGS"; then
  echo "$ac_t""$MAKE_UPPER_TAGS" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

else
	MAKE_UPPER_TAGS=no
fi

if test "$MAKE_UPPER_TAGS" = yes ; then
	MAKE_UPPER_TAGS=
else
	MAKE_UPPER_TAGS="#"
fi


if test "$MAKE_LOWER_TAGS" = yes ; then
	MAKE_LOWER_TAGS=
else
	MAKE_LOWER_TAGS="#"
fi


d1770 1
a1770 1
echo "configure:1975: checking for $ac_word" >&5
d1804 1
a1804 1
echo "configure:2009: checking for $ac_word" >&5
d1840 1
a1840 1
echo "configure:2045: checking for loader (symbol LD)" >&5
d1854 1
a1854 1
echo "configure:2059: checking for archiver (symbol AR)" >&5
d1868 1
a1868 1
echo "configure:2073: checking for archiver options (symbol AR_OPTS)" >&5
d1880 1
a1880 1
echo "configure:2085: checking for makeflags variable" >&5
d1916 1
a1916 1
echo "configure:2121: checking if you have specified an install-prefix" >&5
d1924 1
a1924 1
	*)	DESTDIR="$withval"
d1929 1
a1929 1
echo "$ac_t""$DESTDIR" 1>&6
d1935 2
a1936 4
### Options to allow the user to specify the set of libraries which are used.
### Use "--without-normal --with-shared" to allow the default model to be
### shared, for example.
cf_list_models=""
a1937 2
echo $ac_n "checking if you want to build shared libraries""... $ac_c" 1>&6
echo "configure:2146: checking if you want to build shared libraries" >&5
d1939 4
a1942 4
# Check whether --with-shared or --without-shared was given.
if test "${with_shared+set}" = set; then
  withval="$with_shared"
  with_shared=$withval
d1944 1
a1944 1
  with_shared=no
a1946 2
echo "$ac_t""$with_shared" 1>&6
test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
d1948 37
a1984 2
echo $ac_n "checking if you want to build static libraries""... $ac_c" 1>&6
echo "configure:2160: checking if you want to build static libraries" >&5
a1985 7
# Check whether --with-normal or --without-normal was given.
if test "${with_normal+set}" = set; then
  withval="$with_normal"
  with_normal=$withval
else
  with_normal=yes
fi
d1987 2
a1988 2
echo "$ac_t""$with_normal" 1>&6
test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
a1989 2
echo $ac_n "checking if you want to build debug libraries""... $ac_c" 1>&6
echo "configure:2174: checking if you want to build debug libraries" >&5
d1991 4
a1994 4
# Check whether --with-debug or --without-debug was given.
if test "${with_debug+set}" = set; then
  withval="$with_debug"
  with_debug=$withval
d1996 1
a1996 1
  with_debug=yes
a1998 2
echo "$ac_t""$with_debug" 1>&6
test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
d2000 12
a2011 2
echo $ac_n "checking if you want to build profiling libraries""... $ac_c" 1>&6
echo "configure:2188: checking if you want to build profiling libraries" >&5
d2013 4
a2016 7
# Check whether --with-profile or --without-profile was given.
if test "${with_profile+set}" = set; then
  withval="$with_profile"
  with_profile=$withval
else
  with_profile=no
fi
d2018 1
a2018 2
echo "$ac_t""$with_profile" 1>&6
test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
d2020 6
a2025 1
###############################################################################
d2027 1
a2027 4
echo $ac_n "checking for specified models""... $ac_c" 1>&6
echo "configure:2204: checking for specified models" >&5
test -z "$cf_list_models" && cf_list_models=normal
echo "$ac_t""$cf_list_models" 1>&6
a2028 6
### Use the first model as the default, and save its suffix for use in building
### up test-applications.
echo $ac_n "checking for default model""... $ac_c" 1>&6
echo "configure:2211: checking for default model" >&5
DFT_LWR_MODEL=`echo $cf_list_models | $AWK '{print $1}'`
echo "$ac_t""$DFT_LWR_MODEL" 1>&6
d2030 2
a2032 1
DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
d2034 7
a2041 1
TINFO_NAME=tinfo
d2043 1
d2045 244
a2288 1
LIB_NAME=ncurses
d2309 1
a2309 1
echo "configure:2243: checking if you want to build a separate terminfo library" >&5
d2323 1
a2323 1
echo "configure:2257: checking if you want to link with dbmalloc for testing" >&5
d2334 1
a2334 1
if test "$with_dbmalloc" = yes ; then
d2336 1
a2336 1
echo "configure:2270: checking for debug_malloc in -ldbmalloc" >&5
d2344 1
a2344 1
#line 2278 "configure"
d2355 1
a2355 1
if { (eval echo configure:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2385 1
a2385 1
echo "configure:2319: checking if you want to link with dmalloc for testing" >&5
d2396 1
a2396 1
if test "$with_dmalloc" = yes ; then
d2398 1
a2398 1
echo "configure:2332: checking for dmalloc_debug in -ldmalloc" >&5
d2406 1
a2406 1
#line 2340 "configure"
d2417 1
a2417 1
if { (eval echo configure:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2448 1
a2448 1
echo "configure:2382: checking if you want to link with the gpm mouse library" >&5
d2459 1
a2459 1
if test "$with_gpm" = yes ; then
d2461 1
a2461 1
echo "configure:2395: checking for Gpm_Open in -lgpm" >&5
d2469 1
a2469 1
#line 2403 "configure"
d2480 1
a2480 1
if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2506 1
a2506 1
echo "configure:2440: checking for $ac_hdr" >&5
d2511 1
a2511 1
#line 2445 "configure"
d2516 1
a2516 1
{ (eval echo configure:2450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2564 1
a2564 1
echo "configure:2498: checking for default loader flags" >&5
d2574 1
a2574 1
echo "configure:2508: checking if rpath option should be used" >&5
d2596 1
a2596 1
echo "configure:2530: checking if release/abi version should be used for shared libs" >&5
d2624 1
a2624 1
	if test "$GCC" = yes
d2627 1
a2627 1
echo "configure:2561: checking which $CC option to use" >&5
d2633 1
a2633 1
#line 2567 "configure"
d2640 1
a2640 1
if { (eval echo configure:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2657 14
d2673 1
a2673 1
		if test "$GCC" = yes; then
a2684 4
		if test "$cf_cv_ld_rpath" = yes ; then
			cf_ld_rpath_opt="-Wl,-rpath,"
			EXTRA_LDFLAGS="-Wl,-rpath,\$(libdir) $EXTRA_LDFLAGS"
		fi
d2686 1
a2686 1
		if test "$GCC" != yes; then
d2693 5
a2697 3
		if test "$DFT_LWR_MODEL" = "shared" ; then
 			LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
 			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
d2699 5
a2703 3
		if test "$cf_cv_ld_rpath" = yes ; then
			cf_ld_rpath_opt="-Wl,-rpath,"
			EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
a2704 2
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
		MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@@ .$(REL_VERSION)`.$(ABI_VERSION),-stats,-lc -o $@@'
d2707 1
a2707 1
		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
d2711 1
a2711 1
		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
d2713 1
a2713 1
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
d2716 5
a2720 5
		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
		test "$cf_cv_ld_rpath" = yes && cf_ld_rpath_opt="-Wl,-rpath,"
		if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
 			LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
 			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
d2722 2
a2723 6
			MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@@'
			if test "$cf_cv_shlib_version" = auto; then
			if test ! -f /usr/libexec/ld.elf_so; then
				cf_cv_shlib_version=rel
			fi
			fi
d2733 1
d2740 3
a2742 7
		if test "$DFT_LWR_MODEL" = "shared" ; then
 			LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
 			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
		fi
		if test "$cf_cv_ld_rpath" = yes ; then
			cf_ld_rpath_opt="-rpath"
			# EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
d2748 1
a2748 1
		if test "$ac_cv_prog_gcc" != yes; then
d2751 2
a2752 2
		MK_SHARED_LIB='$(LD) -dy -G -h `basename $@@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@@'
		if test "$cf_cv_ld_rpath" = yes ; then
d2756 1
a2756 1
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
d2762 1
a2762 1
		if test "$ac_cv_prog_gcc" != yes; then
d2766 1
a2766 1
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
d2770 1
a2770 1
		if test "$ac_cv_prog_gcc" != yes; then
d2773 2
a2774 6
		MK_SHARED_LIB='$(LD) -dy -G -h `basename $@@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@@'
		if test "$DFT_LWR_MODEL" = "shared" ; then
			LOCAL_LDFLAGS="-R `pwd`/lib:\$(libdir)"
 			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
		fi
		if test "$cf_cv_ld_rpath" = yes ; then
d2776 1
a2776 1
			EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
d2778 1
a2778 1
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
d2782 1
a2782 1
		if test "$ac_cv_prog_gcc" != yes; then
d2798 9
a2806 1
			test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
d2817 1
a2817 1
echo "configure:2742: checking if we need a space after rpath option" >&5
d2819 1
a2819 1
		LIBS="$LIBS ${cf_ld_rpath_opt}$libdir"
d2821 1
a2821 1
#line 2746 "configure"
d2828 1
a2828 1
if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2840 1
a2840 1
		test "$cf_rpath_space" = yes && cf_ld_rpath_opt="$cf_ld_rpath_opt "
d2867 1
a2867 1
echo "configure:2792: checking if you wish to install ncurses overwriting curses" >&5
d2880 1
a2880 1
echo "configure:2805: checking if external terminfo-database is used" >&5
d2885 1
a2885 1
  use_database=$enableval
d2887 1
a2887 1
  use_database=yes
d2890 5
a2894 28
echo "$ac_t""$use_database" 1>&6

case $host_os in #(vi
os2*) #(vi
	TERMINFO_SRC='${top_srcdir}/misc/emx.src'
	;;
*) #(vi
	TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
	;;
esac


if test "$use_database" != no ; then
	cat >> confdefs.h <<\EOF
#define USE_DATABASE 1
EOF

	echo $ac_n "checking which terminfo source-file will be installed""... $ac_c" 1>&6
echo "configure:2833: checking which terminfo source-file will be installed" >&5
	
# Check whether --enable-database or --disable-database was given.
if test "${enable_database+set}" = set; then
  enableval="$enable_database"
  TERMINFO_SRC=$withval
fi

	echo "$ac_t""$TERMINFO_SRC" 1>&6
fi
d2897 1
a2897 1
echo "configure:2845: checking for list of fallback descriptions" >&5
a2910 7
if test "$use_database" = no ; then
	if test -z $with_fallback ; then
		{ echo "configure: error: You have disabled the database w/o specifying fallbacks" 1>&2; exit 1; }
	fi
	TERMINFO="${datadir}/terminfo"
else

d2912 1
a2912 1
echo "configure:2867: checking for list of terminfo directories" >&5
d2962 4
a2965 40
echo $ac_n "checking for default terminfo directory""... $ac_c" 1>&6
echo "configure:2918: checking for default terminfo directory" >&5

# Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
if test "${with_default_terminfo_dir+set}" = set; then
  withval="$with_default_terminfo_dir"
  :
else
  withval="${TERMINFO-${datadir}/terminfo}"
fi

case ".$withval" in #(vi
./*) #(vi
  ;;
.a-zA-Z:\\/*) #(vi OS/2 EMX
  ;;
.\${*prefix}*) #(vi
  eval withval="$withval"
  case ".$withval" in #(vi
  .NONE/*)
    withval=`echo $withval | sed -e s@@NONE@@$ac_default_prefix@@`
    ;;
  esac
  ;; #(vi
.NONE/*)
  withval=`echo $withval | sed -e s@@NONE@@$ac_default_prefix@@`
  ;;
*)
  { echo "configure: error: expected a pathname" 1>&2; exit 1; }
  ;;
esac

eval TERMINFO="$withval"

echo "$ac_t""$TERMINFO" 1>&6
cat >> confdefs.h <<EOF
#define TERMINFO "$TERMINFO"
EOF


a2967 2


d2971 1
a2971 1
echo "configure:2964: checking if big-core option selected" >&5
d2982 1
a2982 1
#line 2975 "configure"
d2987 1
a2987 7
int main() {
	unsigned long n = 6000000L;
	char *s = malloc(n);
	if (s != 0)
		s[0] = s[n-1] = 0;
	exit(s == 0);
}
d2989 1
a2989 1
if { (eval echo configure:2988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d3011 1
a3011 1
echo "configure:3010: checking if you want termcap-fallback support" >&5
d3032 1
a3032 1
echo "configure:3031: checking if fast termcap-loader is needed" >&5
d3049 1
a3049 1
echo "configure:3048: checking if translated termcaps will be cached in ~/.terminfo" >&5
d3075 1
a3075 1
echo "configure:3074: checking for $ac_func" >&5
d3080 1
a3080 1
#line 3079 "configure"
d3103 1
a3103 1
if { (eval echo configure:3102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3134 1
a3134 1
echo "configure:3133: checking for $ac_func" >&5
d3139 1
a3139 1
#line 3138 "configure"
d3162 1
a3162 1
if { (eval echo configure:3161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3188 1
a3188 1
echo "configure:3187: checking if link/symlink functions work" >&5
d3200 1
a3200 1
#line 3199 "configure"
d3229 1
a3229 1
if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d3234 7
a3256 8
	test "$ac_cv_func_link"    = yes && cat >> confdefs.h <<\EOF
#define HAVE_LINK 1
EOF

	test "$ac_cv_func_symlink" = yes && cat >> confdefs.h <<\EOF
#define HAVE_SYMLINK 1
EOF

d3265 1
a3265 1
echo "configure:3265: checking if tic should use symbolic links" >&5
d3274 1
a3274 1
echo "configure:3274: checking if tic should use hard links" >&5
d3283 1
a3283 1
echo "configure:3283: checking if tic should use symbolic links" >&5
d3307 1
a3307 1
echo "configure:3307: checking if you want broken-linker support code" >&5
d3325 1
a3325 1
echo "configure:3325: checking if tputs should process BSD-style prefix padding" >&5
d3343 1
a3343 1
echo "configure:3343: checking if RCS identifiers should be compiled-in" >&5
a3361 317
 echo $ac_n "checking format of man-pages""... $ac_c" 1>&6
echo "configure:3363: checking format of man-pages" >&5


# Check whether --with-manpage-format or --without-manpage-format was given.
if test "${with_manpage_format+set}" = set; then
  withval="$with_manpage_format"
  cf_manpage_form=$withval
else
  cf_manpage_form=unknown
fi


case ".$cf_manpage_form" in
.gzip|.compress|.BSDI|.normal|.formatted) # (vi
  ;;
.unknown|.) # (vi
  if test -z "$MANPATH" ; then
    MANPATH="/usr/man:/usr/share/man"
  fi
  # look for the 'date' man-page (it's most likely to be installed!)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  cf_manpage_form=unknown
  for cf_dir in $MANPATH; do
    test -z "$cf_dir" && cf_dir=/usr/man
    for cf_name in $cf_dir/*/date.[01]* $cf_dir/*/date
    do
       cf_test=`echo $cf_name | sed -e 's/*//'`
       if test "x$cf_test" = "x$cf_name" ; then
	  case "$cf_name" in
	  *.gz) cf_manpage_form=gzip;;
	  *.Z)  cf_manpage_form=compress;;
	  *.0)	cf_manpage_form=BSDI,formatted;;
	  *)    cf_manpage_form=normal;;
	  esac
	  break
       fi
    done
    if test "$cf_manpage_form" != "unknown" ; then
       break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
.*) # (vi
  echo "configure: warning: Unexpected manpage-format" 1>&2
  ;;
esac

echo "$ac_t""$cf_manpage_form" 1>&6


echo $ac_n "checking for manpage renaming""... $ac_c" 1>&6
echo "configure:3415: checking for manpage renaming" >&5


# Check whether --with-manpage-renames or --without-manpage-renames was given.
if test "${with_manpage_renames+set}" = set; then
  withval="$with_manpage_renames"
  cf_manpage_renames=$withval
else
  cf_manpage_renames=yes
fi


case ".$cf_manpage_renames" in #(vi
.no) #(vi
  ;;
.|.yes)
  # Debian 'man' program?
  if test -f /etc/debian_version ; then
    cf_manpage_renames=`cd $srcdir && pwd`/man/man_db.renames
  else
    cf_manpage_renames=no
  fi
  ;;
esac

if test "$cf_manpage_renames" != no ; then
  if test ! -f $cf_manpage_renames ; then
    { echo "configure: error: not a filename: $cf_manpage_renames" 1>&2; exit 1; }
  fi

  test ! -d man && mkdir man

  # Construct a sed-script to perform renaming within man-pages
  if test -n "$cf_manpage_renames" ; then
    test ! -d man && mkdir man
    $srcdir/man/make_sed.sh $cf_manpage_renames >man/edit_man.sed
  fi
fi

echo "$ac_t""$cf_manpage_renames" 1>&6


echo $ac_n "checking for manpage symlinks""... $ac_c" 1>&6
echo "configure:3458: checking for manpage symlinks" >&5


# Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
if test "${with_manpage_symlinks+set}" = set; then
  withval="$with_manpage_symlinks"
  cf_manpage_symlinks=$withval
else
  cf_manpage_symlinks=yes
fi


echo "$ac_t""$cf_manpage_symlinks" 1>&6


  if test "$prefix" = "NONE" ; then
     cf_prefix="$ac_default_prefix"
  else
     cf_prefix="$prefix"
  fi

  case "$cf_manpage_form" in # (vi
  *formatted*) # (vi
    cf_subdir='$mandir/cat'
    cf_format=yes
    ;;
  *)
    cf_subdir='$mandir/man'
    cf_format=no
    ;;
  esac

test ! -d man && mkdir man
cat >man/edit_man.sh <<CF_EOF
#! /bin/sh
# this script is generated by the configure-script
prefix="$cf_prefix"
datadir="$datadir"
TERMINFO="$TERMINFO"
MKDIRS="`cd $srcdir && pwd`/mkinstalldirs"
INSTALL="$INSTALL"
INSTALL_DATA="$INSTALL_DATA"
transform="$program_transform_name"

TMP=\${TMPDIR-/tmp}/man\$\$
trap "rm -f \$TMP" 0 1 2 5 15

verb=\$1
shift

mandir=\$1
shift

srcdir=\$1
shift

for i in \$* ; do
case \$i in #(vi
*.orig|*.rej) ;; #(vi
*.[0-9]*)
	section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
	if test \$verb = installing ; then
	if test ! -d $cf_subdir\${section} ; then
		\$MKDIRS $cf_subdir\$section
	fi
	fi
	aliases=
	source=\`basename \$i\`
	inalias=\$source
	test ! -f \$inalias && inalias="\$srcdir/\$inalias"
	if test ! -f \$inalias ; then
		echo .. skipped \$source
		continue
	fi
CF_EOF
if test "$cf_manpage_symlinks" = yes ; then
cat >>man/edit_man.sh <<CF_EOF
	aliases=\`sed -f \$srcdir/manlinks.sed \$inalias | sort -u\`
CF_EOF
fi
if test "$cf_manpage_renames" = no ; then
cat >>man/edit_man.sh <<CF_EOF
	# perform program transformations for section 1 man pages
	if test \$section = 1 ; then
		target=$cf_subdir\${section}/\`echo \$source|sed "\${transform}"\`
	else
		target=$cf_subdir\${section}/\$source
	fi

	# replace variables in man page
CF_EOF
	
	for cf_name in  captoinfo clear infocmp infotocap tic toe tput 
	do
cat >>man/edit_man.sh <<CF_EOF
	prog_$cf_name=\`echo $cf_name|sed "\${transform}"\`
CF_EOF
	done
	
cat >>man/edit_man.sh <<CF_EOF
	sed	-e "s,@@DATADIR@@,\$datadir," \\
		-e "s,@@TERMINFO@@,\$TERMINFO," \\
CF_EOF
	
	for cf_name in  captoinfo clear infocmp infotocap tic toe tput 
	do
		cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
cat >>man/edit_man.sh <<CF_EOF
		-e "s,@@$cf_NAME@@,\$prog_$cf_name," \\
CF_EOF
	done
	
cat >>man/edit_man.sh <<CF_EOF
		< \$i >\$TMP
CF_EOF
else
cat >>man/edit_man.sh <<CF_EOF
	target=\`grep "^\$source" $cf_manpage_renames | $AWK '{print \$2}'\`
	if test -z "\$target" ; then
		echo '? missing rename for '\$source
		target="\$source"
	fi
	target="$cf_subdir\$section/\$target"
	test \$verb = installing && sed -e "s,@@DATADIR@@,\$datadir," < \$i | sed -f edit_man.sed >\$TMP
CF_EOF
fi
if test $cf_format = yes ; then
cat >>man/edit_man.sh <<CF_EOF
	nroff -man \$TMP >\$TMP.out
	mv \$TMP.out \$TMP
CF_EOF
fi
case "$cf_manpage_form" in #(vi
*compress*) #(vi
cat >>man/edit_man.sh <<CF_EOF
	if test \$verb = installing ; then
	if ( compress -f \$TMP )
	then
		mv \$TMP.Z \$TMP
	fi
	fi
	target="\$target.Z"
CF_EOF
  ;;
*gzip*) #(vi
cat >>man/edit_man.sh <<CF_EOF
	if test \$verb = installing ; then
	if ( gzip -f \$TMP )
	then
		mv \$TMP.gz \$TMP
	fi
	fi
	target="\$target.gz"
CF_EOF
  ;;
*BSDI*)
cat >>man/edit_man.sh <<CF_EOF
	# BSDI installs only .0 suffixes in the cat directories
	target="\`echo \$target|sed -e 's/\.[1-9]\+.\?/.0/'\`"
CF_EOF
  ;;
esac
cat >>man/edit_man.sh <<CF_EOF
	echo \$verb \$target
	suffix=\`basename \$target | sed -e 's/^[^.]*//'\`
	if test \$verb = installing ; then
		\$INSTALL_DATA \$TMP \$target
		test -n "\$aliases" && (
			cd $cf_subdir\${section} && (
				target=\`basename \$target\`
				for cf_alias in \$aliases
				do
					if test \$section = 1 ; then
						cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
					fi

					if test -f \$cf_alias\${suffix} ; then
						if ( cmp -s \$target \$cf_alias\${suffix} )
						then
							:
						else
							echo .. \$verb alias \$cf_alias\${suffix}
							rm -f \$cf_alias\${suffix}
							$LN_S \$target \$cf_alias\${suffix}
						fi
					else
						echo .. \$verb alias \$cf_alias\${suffix}
						rm -f \$cf_alias\${suffix}
						$LN_S \$target \$cf_alias\${suffix}
					fi
				done
			)
		)
	else
		rm -f \$target
		test -n "\$aliases" && (
			cd $cf_subdir\${section} && (
				for cf_alias in \$aliases
				do
					if test \$section = 1 ; then
						cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
					fi

					echo .. \$verb alias \$cf_alias\${suffix}
					rm -f \$cf_alias\${suffix}
				done
			)
		)
	fi
	;;
esac
done
exit 0
CF_EOF
chmod 755 man/edit_man.sh



###############################################################################


d3364 1
a3364 1
echo "configure:3681: checking if you want to build with function extensions" >&5
a3376 4
#define HAVE_CURSES_VERSION 1
EOF

	cat >> confdefs.h <<\EOF
d3400 1
a3400 1
echo "configure:3721: checking for extended use of const keyword" >&5
d3411 1
a3411 1
NCURSES_CONST='/*nothing*/'
d3413 4
d3421 18
d3440 1
a3440 1
echo "configure:3739: checking if you want \$NCURSES_NO_PADDING code" >&5
d3458 1
a3458 1
echo "configure:3757: checking if you want SIGWINCH handler" >&5
d3476 1
a3476 1
echo "configure:3775: checking if you want user-definable terminal capabilities like termcap" >&5
a3491 1
# These options are relatively safe to experiment with.
d3493 2
a3494 2
echo $ac_n "checking if you want all development code""... $ac_c" 1>&6
echo "configure:3794: checking if you want all development code" >&5
d3507 2
a3508 2
echo $ac_n "checking if you want colorfgbg code""... $ac_c" 1>&6
echo "configure:3808: checking if you want colorfgbg code" >&5
d3525 2
a3526 2
echo $ac_n "checking if you want hard-tabs code""... $ac_c" 1>&6
echo "configure:3826: checking if you want hard-tabs code" >&5
a3541 74
echo $ac_n "checking if you want to use restrict environment when running as root""... $ac_c" 1>&6
echo "configure:3843: checking if you want to use restrict environment when running as root" >&5

# Check whether --enable-root-environ or --disable-root-environ was given.
if test "${enable_root_environ+set}" = set; then
  enableval="$enable_root_environ"
  with_root_environ=$enableval
else
  with_root_environ=yes
fi

echo "$ac_t""$with_root_environ" 1>&6
test "$with_root_environ" = yes && cat >> confdefs.h <<\EOF
#define USE_ROOT_ENVIRON 1
EOF


###   use option --enable-xmc-glitch to turn on use of magic-cookie optimize
echo $ac_n "checking if you want limited support for xmc""... $ac_c" 1>&6
echo "configure:3861: checking if you want limited support for xmc" >&5

# Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
if test "${enable_xmc_glitch+set}" = set; then
  enableval="$enable_xmc_glitch"
  with_xmc_glitch=$enableval
else
  with_xmc_glitch=$with_develop
fi

echo "$ac_t""$with_xmc_glitch" 1>&6
test "$with_xmc_glitch" = yes && cat >> confdefs.h <<\EOF
#define USE_XMC_SUPPORT 1
EOF


###############################################################################
# These are just experimental, probably should not be in a package:


echo $ac_n "checking if you do not want to assume colors are white-on-black""... $ac_c" 1>&6
echo "configure:3882: checking if you do not want to assume colors are white-on-black" >&5

# Check whether --enable-assumed-color or --disable-assumed-color was given.
if test "${enable_assumed_color+set}" = set; then
  enableval="$enable_assumed_color"
  with_assumed_color=$enableval
else
  with_assumed_color=yes
fi

echo "$ac_t""$with_assumed_color" 1>&6
test "$with_assumed_color" = yes && cat >> confdefs.h <<\EOF
#define USE_ASSUMED_COLOR 1
EOF


###   use option --enable-hashmap to turn on use of hashmap scrolling logic
echo $ac_n "checking if you want hashmap scrolling-optimization code""... $ac_c" 1>&6
echo "configure:3900: checking if you want hashmap scrolling-optimization code" >&5

# Check whether --enable-hashmap or --disable-hashmap was given.
if test "${enable_hashmap+set}" = set; then
  enableval="$enable_hashmap"
  with_hashmap=$enableval
else
  with_hashmap=yes
fi

echo "$ac_t""$with_hashmap" 1>&6
test "$with_hashmap" = yes && cat >> confdefs.h <<\EOF
#define USE_HASHMAP 1
EOF


d3543 1
a3543 1
echo "configure:3917: checking if you want experimental safe-sprintf code" >&5
d3563 1
a3563 1
echo "configure:3937: checking if you want to experiment without scrolling-hints code" >&5
d3582 1
a3582 1
echo "configure:3956: checking if you want experimental wide-character code" >&5
d3601 18
a3622 2
echo $ac_n "checking if you want to display full commands during build""... $ac_c" 1>&6
echo "configure:3980: checking if you want to display full commands during build" >&5
a3636 1
echo "$ac_t""$with_echo" 1>&6
a3639 2
echo $ac_n "checking if you want to see compiler warnings""... $ac_c" 1>&6
echo "configure:4000: checking if you want to see compiler warnings" >&5
d3650 1
a3650 1
if test "$GCC" = yes
d3653 1
a3653 1
#line 4014 "configure"
d3657 1
a3657 1
echo "configure:4018: checking for $CC warning options" >&5
d3675 1
a3675 1
		if { (eval echo configure:4036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a3686 1
echo "$ac_t""$with_warnings" 1>&6
d3688 1
a3688 1
if test "$GCC" = yes
d3704 1
a3704 1
if test "$GCC" = yes
d3707 1
a3707 1
echo "configure:4069: checking for $CC __attribute__ directives" >&5
d3709 1
a3709 1
#line 4071 "configure"
d3731 1
a3731 1
CF_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
d3747 1
a3747 1
		if { (eval echo configure:4109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a3761 2
echo $ac_n "checking if you want to enable runtime assertions""... $ac_c" 1>&6
echo "configure:4125: checking if you want to enable runtime assertions" >&5
a3770 1
echo "$ac_t""$with_assertions" 1>&6
d3773 1
a3773 1
	if test "$with_assertions" = no
d3790 1
a3790 1
  test "$enableval" = no && cat >> confdefs.h <<\EOF
d3806 1
a3806 1
  test "$enableval" = yes && cat >> confdefs.h <<\EOF
d3818 1
a3818 1
  test "$enableval" = no && cat >> confdefs.h <<\EOF
d3827 1
a3827 1
echo "configure:4192: checking for gettimeofday" >&5
d3832 1
a3832 1
#line 4197 "configure"
d3855 1
a3855 1
if { (eval echo configure:4220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3878 1
a3878 1
echo "configure:4243: checking for gettimeofday in -lbsd" >&5
d3886 1
a3886 1
#line 4251 "configure"
d3897 1
a3897 1
if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3925 1
a3925 1
echo "configure:4290: checking if -lm needed for math functions" >&5
d3931 1
a3931 1
#line 4296 "configure"
d3941 1
a3941 1
if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3963 1
a3963 1
echo "configure:4328: checking for ANSI C header files" >&5
d3968 1
a3968 1
#line 4333 "configure"
d3976 1
a3976 1
{ (eval echo configure:4341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3993 1
a3993 1
#line 4358 "configure"
d4011 1
a4011 1
#line 4376 "configure"
d4032 1
a4032 1
#line 4397 "configure"
d4043 1
a4043 1
if { (eval echo configure:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4071 1
a4071 1
echo "configure:4436: checking for $ac_hdr that defines DIR" >&5
d4076 1
a4076 1
#line 4441 "configure"
d4084 1
a4084 1
if { (eval echo configure:4449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4109 1
a4109 1
echo "configure:4474: checking for opendir in -ldir" >&5
d4117 1
a4117 1
#line 4482 "configure"
d4128 1
a4128 1
if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4150 1
a4150 1
echo "configure:4515: checking for opendir in -lx" >&5
d4158 1
a4158 1
#line 4523 "configure"
d4169 1
a4169 1
if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4193 1
a4193 1
echo "configure:4558: checking for regular-expression headers" >&5
d4199 1
a4199 1
#line 4564 "configure"
d4212 1
a4212 1
if { (eval echo configure:4577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4221 1
a4221 1
#line 4586 "configure"
d4231 1
a4231 1
if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4242 1
a4242 1
#line 4607 "configure"
d4252 1
a4252 1
if { (eval echo configure:4617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4300 2
d4308 1
a4308 1
echo "configure:4671: checking for $ac_hdr" >&5
d4313 1
a4313 1
#line 4676 "configure"
d4318 1
a4318 1
{ (eval echo configure:4681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4349 1
a4349 1
echo "configure:4712: checking for main in -lcposix" >&5
d4357 1
a4357 1
#line 4720 "configure"
d4364 1
a4364 1
if { (eval echo configure:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4392 1
a4392 1
echo "configure:4755: checking for bzero in -linet" >&5
d4400 1
a4400 1
#line 4763 "configure"
d4411 1
a4411 1
if { (eval echo configure:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4430 40
d4474 1
a4474 1
echo "configure:4797: checking if sys/time.h works with sys/select.h" >&5
d4480 1
a4480 1
#line 4803 "configure"
d4484 1
a4484 1
#ifdef HAVE_SYS_TIME_H
d4487 1
a4487 1
#ifdef HAVE_SYS_SELECT_H
d4495 1
a4495 1
if { (eval echo configure:4818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4509 1
a4509 1
test "$cf_cv_sys_time_select" = yes && cat >> confdefs.h <<\EOF
d4524 1
a4524 1
echo "configure:4847: checking for working const" >&5
d4529 1
a4529 1
#line 4852 "configure"
d4578 1
a4578 1
if { (eval echo configure:4901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4599 1
a4599 1
echo "configure:4922: checking for inline" >&5
d4606 1
a4606 1
#line 4929 "configure"
d4613 1
a4613 1
if { (eval echo configure:4936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4638 1
a4638 1
test "$ac_cv_c_inline" != no && cat >> confdefs.h <<\EOF
d4645 1
a4645 1
echo "configure:4968: checking if unsigned literals are legal" >&5
d4651 1
a4651 1
#line 4974 "configure"
d4658 1
a4658 1
if { (eval echo configure:4981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4676 1
a4676 1
echo "configure:4999: checking for type of chtype" >&5
d4685 1
a4685 1
#line 5008 "configure"
d4688 1
a4688 1
#ifdef USE_WIDEC_SUPPORT
d4700 1
a4700 1
#ifdef USE_WIDEC_SUPPORT
d4731 1
a4731 1
if { (eval echo configure:5054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4764 1
a4764 1
echo "configure:5087: checking for number of bits in chtype" >&5
d4773 1
a4773 1
#line 5096 "configure"
d4796 1
a4796 1
if { (eval echo configure:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4816 1
a4816 1
echo "configure:5139: checking for width of character-index" >&5
d4843 1
a4843 1
echo "configure:5166: checking if external errno is declared" >&5
d4849 1
a4849 1
#line 5172 "configure"
d4862 1
a4862 1
if { (eval echo configure:5185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4882 1
a4882 1
cf_result=`echo "$cf_result" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
d4893 1
a4893 1
echo "configure:5216: checking if external errno exists" >&5
d4899 1
a4899 1
#line 5222 "configure"
d4909 1
a4909 1
if { (eval echo configure:5232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4928 1
a4928 1
cf_result=`echo "$cf_result" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
d4941 1
a4941 1
echo "configure:5264: checking if data-only library module links" >&5
d4948 1
a4948 1
#line 5271 "configure"
d4951 1
a4951 1
		if { (eval echo configure:5274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } ; then
d4957 1
a4957 1
#line 5280 "configure"
d4970 1
a4970 1
		if { (eval echo configure:5293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4982 1
a4982 1
#line 5305 "configure"
d4992 1
a4992 1
if { (eval echo configure:5315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5009 1
a5009 1
test "$cf_cv_link_dataonly" = no && cat >> confdefs.h <<\EOF
d5015 51
a5068 2
getegid \
geteuid \
a5069 1
issetugid \
d5083 1
d5092 1
a5092 1
echo "configure:5366: checking for $ac_func" >&5
d5097 1
a5097 1
#line 5371 "configure"
d5120 1
a5120 1
if { (eval echo configure:5394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5147 1
a5147 1
echo "configure:5421: checking for terminal-capability database functions" >&5
d5153 1
a5153 1
#line 5427 "configure"
d5168 1
a5168 1
if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5182 1
a5182 1
test "$cf_cv_cgetent" = yes && cat >> confdefs.h <<\EOF
d5191 1
a5191 1
echo "configure:5465: checking for isascii" >&5
d5197 1
a5197 1
#line 5471 "configure"
d5204 1
a5204 1
if { (eval echo configure:5478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5217 1
a5217 1
test "$cf_cv_have_isascii" = yes && cat >> confdefs.h <<\EOF
d5223 1
a5223 1
if test "$ac_cv_func_sigaction" = yes; then
d5225 1
a5225 1
echo "configure:5499: checking whether sigaction needs _POSIX_SOURCE" >&5
d5227 1
a5227 1
#line 5501 "configure"
d5236 1
a5236 1
if { (eval echo configure:5510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5245 1
a5245 1
#line 5519 "configure"
d5255 1
a5255 1
if { (eval echo configure:5529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5275 1
a5275 87
for ac_hdr in \
termio.h \
termios.h \
unistd.h \

do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:5557: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5562 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

if test "$ISC" = yes ; then
	for ac_hdr in sys/termio.h 
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:5598: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5603 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

fi
if test "$ac_cv_header_termios_h" = yes ; then
d5281 1
a5281 1
	if test "$termios_bad" = maybe ; then
d5283 1
a5283 1
echo "configure:5643: checking whether termios.h needs _POSIX_SOURCE" >&5
d5285 1
a5285 1
#line 5645 "configure"
d5292 1
a5292 1
if { (eval echo configure:5652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5301 1
a5301 1
#line 5661 "configure"
d5310 1
a5310 1
if { (eval echo configure:5670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5330 50

echo $ac_n "checking for tcgetattr""... $ac_c" 1>&6
echo "configure:5693: checking for tcgetattr" >&5
if eval "test \"`echo '$''{'cf_cv_have_tcgetattr'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 5699 "configure"
#include "confdefs.h"

#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#define TTY struct termios
#else
#ifdef HAVE_TERMIO_H
#include <termio.h>
#define TTY struct termio
#endif
#endif

int main() {

TTY foo;
tcgetattr(1, &foo);
; return 0; }
EOF
if { (eval echo configure:5722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  cf_cv_have_tcgetattr=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_cv_have_tcgetattr=no
fi
rm -f conftest*
fi

echo "$ac_t""$cf_cv_have_tcgetattr" 1>&6
test "$cf_cv_have_tcgetattr" = yes && cat >> confdefs.h <<\EOF
#define HAVE_TCGETATTR 1
EOF



d5335 1
a5335 1
echo "configure:5745: checking whether setvbuf arguments are reversed" >&5
d5343 1
a5343 1
#line 5753 "configure"
d5357 1
a5357 1
if { (eval echo configure:5767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5382 1
a5382 1
echo "configure:5792: checking return type of signal handlers" >&5
d5387 1
a5387 1
#line 5797 "configure"
d5404 1
a5404 1
if { (eval echo configure:5814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5424 1
a5424 1
echo "configure:5834: checking for type sigaction_t" >&5
d5430 1
a5430 1
#line 5840 "configure"
d5438 1
a5438 1
if { (eval echo configure:5848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5451 1
a5451 1
test "$cf_cv_type_sigaction" = yes && cat >> confdefs.h <<\EOF
a5456 1

d5458 1
a5458 1
echo "configure:5869: checking declaration of size-change" >&5
d5472 1
a5472 1
#line 5883 "configure"
d5475 1
a5475 1
#ifdef HAVE_TERMIOS_H
d5478 1
a5478 1
#ifdef HAVE_TERMIO_H
d5482 1
a5482 1
#ifdef NEED_PTEM_H
d5511 1
a5511 1
if { (eval echo configure:5922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5525 4
a5528 1
		test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
d5532 1
a5532 1

d5536 1
a5536 2
if test "$cf_cv_sizechange" != no ; then
	cat >> confdefs.h <<\EOF
a5539 9
	case $cf_cv_sizechange in #(vi
	NEED*)
		cat >> confdefs.h <<EOF
#define $cf_cv_sizechange  1
EOF

		;;
	esac
fi
d5543 1
a5543 1
echo "configure:5961: checking for memmove" >&5
d5548 1
a5548 1
#line 5966 "configure"
d5571 1
a5571 1
if { (eval echo configure:5989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5590 1
a5590 1
echo "configure:6008: checking for bcopy" >&5
d5595 1
a5595 1
#line 6013 "configure"
d5618 1
a5618 1
if { (eval echo configure:6036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5634 1
a5634 1
echo "configure:6052: checking if bcopy does overlapping moves" >&5
d5643 1
a5643 1
#line 6061 "configure"
d5656 1
a5656 1
if { (eval echo configure:6074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5678 1
a5678 1
	if test "$cf_cv_good_bcopy" = yes ; then
d5694 1
a5694 1
echo "configure:6112: checking if poll really works" >&5
d5703 1
a5703 1
#line 6121 "configure"
d5723 1
a5723 1
if { (eval echo configure:6141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5750 2
a5751 2
echo $ac_n "checking for builtin bool type""... $ac_c" 1>&6
echo "configure:6169: checking for builtin bool type" >&5
d5757 1
a5757 1
#line 6175 "configure"
d5767 1
a5767 1
if { (eval echo configure:6185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5780 1
a5780 1
if test "$cf_cv_cc_bool_type" = 1
d5804 1
a5804 1
echo "configure:6222: checking for library $cf_stdcpp_libname" >&5
d5812 1
a5812 1
#line 6230 "configure"
d5823 1
a5823 1
if { (eval echo configure:6241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5838 1
a5838 1
test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
d5841 6
a5846 7
	if test "$GXX" = yes; then
		case "`${CXX-g++} --version`" in
		1*|2.0-6*)
			cf_cxx_library=yes
			;;
		2.7*)
			
d5856 1
a5856 1
if test "$ac_cv_prog_gxx" = yes; then
d5858 1
a5858 1
echo "configure:6277: checking for lib$cf_gpp_libname" >&5
d5862 1
a5862 1
#line 6281 "configure"
d5871 1
a5871 1
if { (eval echo configure:6290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5891 1
a5891 1
#line 6310 "configure"
d5900 1
a5900 1
if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5921 5
a5925 8
			;;
		*)
			cf_cxx_library=no
			;;
		esac
	else
		cf_cxx_library=no
	fi
d5927 1
a5927 1
echo "configure:6349: checking how to run the C++ preprocessor" >&5
d5940 1
a5940 1
#line 6362 "configure"
d5945 1
a5945 1
{ (eval echo configure:6367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5973 1
a5973 1
echo "configure:6395: checking for $ac_hdr" >&5
d5978 1
a5978 1
#line 6400 "configure"
d5983 1
a5983 1
{ (eval echo configure:6405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6010 2
a6011 2
echo $ac_n "checking for builtin bool type""... $ac_c" 1>&6
echo "configure:6433: checking for builtin bool type" >&5
d6017 1
a6017 1
#line 6439 "configure"
d6027 1
a6027 1
if { (eval echo configure:6449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6040 1
a6040 1
if test "$cf_cv_builtin_bool" = 1
d6046 2
a6047 2
echo $ac_n "checking for size of bool""... $ac_c" 1>&6
echo "configure:6469: checking for size of bool" >&5
d6057 1
a6057 1
#line 6479 "configure"
d6065 1
a6065 1
#ifdef HAVE_GXX_BUILTIN_H
d6089 1
a6089 1
if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6113 1
a6113 1
echo "configure:6535: checking for special defines needed for etip.h" >&5
d6124 1
a6124 1
#line 6546 "configure"
d6133 1
a6133 1
if { (eval echo configure:6555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6158 1
a6158 1
if test "$CXX" = yes ; then
d6160 1
a6160 1
echo "configure:6582: checking if $CXX accepts parameter initialization" >&5
d6176 1
a6176 1
#line 6598 "configure"
d6197 1
a6197 1
if { (eval echo configure:6619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6239 1
a6239 1
echo "configure:6661: checking for fallback type of bool" >&5
d6255 1
a6255 1
echo "configure:6677: checking for $ac_word" >&5
d6309 2
a6310 2
echo "configure:6731: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_M4_exists'+set}'`\" = set"; then
d6313 2
a6314 2
  if test -n "$M4_exists"; then
  ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
d6321 1
a6321 1
      ac_cv_prog_M4_exists="yes"
d6326 1
a6326 1
  test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
d6329 3
a6331 3
M4_exists="$ac_cv_prog_M4_exists"
if test -n "$M4_exists"; then
  echo "$ac_t""$M4_exists" 1>&6
d6336 1
a6336 1
   if test "$ac_cv_prog_M4_exists" = no; then
d6342 1
a6342 1
echo "configure:6764: checking if GNAT works" >&5
d6462 5
d6474 1
a6474 1
	if test "$GCC" = yes; then
d6491 1
a6491 1
echo "configure:6908: checking for library subsets" >&5
d6514 1
a6514 1
if test "$GCC" != yes; then
d6532 1
a6532 1
if test "$GCC" != yes; then
d6548 1
a6548 1
echo "configure:6965: checking default library suffix" >&5
d6560 1
a6560 1
echo "configure:6977: checking default library-dependency suffix" >&5
d6569 9
d6586 1
a6586 1
echo "configure:6994: checking default object directory" >&5
d6597 1
a6597 1
test "$with_termlib" = yes && SHLIB_LIST="$SHLIB_LIST -ltinfo${LIB_SUFFIX}"
d6600 1
a6600 1
echo "configure:7008: checking where we will install curses.h" >&5
d6624 1
a6624 1
echo "configure:7032: checking for src modules" >&5
d6660 1
a6660 1
cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
d6689 1
a6689 1
test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
d6826 1
a6826 1
    echo "$CONFIG_STATUS generated by autoconf version 2.13.20000819"
a6841 1
	misc/run_tic.sh:misc/run_tic.in \
a6887 10
s%@@target@@%$target%g
s%@@target_alias@@%$target_alias%g
s%@@target_cpu@@%$target_cpu%g
s%@@target_vendor@@%$target_vendor%g
s%@@target_os@@%$target_os%g
s%@@build@@%$build%g
s%@@build_alias@@%$build_alias%g
s%@@build_cpu@@%$build_cpu%g
s%@@build_vendor@@%$build_vendor%g
s%@@build_os@@%$build_os%g
a6900 2
s%@@MAKE_LOWER_TAGS@@%$MAKE_LOWER_TAGS%g
s%@@MAKE_UPPER_TAGS@@%$MAKE_UPPER_TAGS%g
d6908 1
a6908 1
s%@@DESTDIR@@%$DESTDIR%g
a6927 1
s%@@TERMINFO_SRC@@%$TERMINFO_SRC%g
a6929 1
s%@@TERMINFO@@%$TERMINFO%g
d6939 2
d6945 1
a6945 1
s%@@M4_exists@@%$M4_exists%g
a7011 1
	misc/run_tic.sh:misc/run_tic.in \
a7188 1
TERMINFO="$TERMINFO"
a7197 1
cf_cv_shlib_version="$cf_cv_shlib_version"
d7230 9
a7244 8
			if test $cf_item = shared ; then
			if test "$cf_cv_do_symlinks" = yes ; then
				case "$cf_cv_shlib_version" in #(vi
				rel) cf_suffix="$cf_suffix"'.$(REL_VERSION)' ;; #(vi
				abi) cf_suffix="$cf_suffix"'.$(ABI_VERSION)' ;;
				esac
			fi
			fi
d7249 1
a7249 1
			case "$LIB_SUBSETS" in #(vi
d7271 1
a7271 1
CF_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
d7281 9
a7329 1
				ShlibVer=$cf_cv_shlib_version \
a7415 12
# Special case: tack's manpage lives in its own directory.
if test -d tack ; then
if test -f $srcdir/$tack.h; then
cat >> Makefile <<CF_EOF

install.man \
uninstall.man ::
	cd tack && \$(MAKE) \$(CF_MFLAGS) \$@@
CF_EOF
fi
fi

d7447 1
a7447 1
	eval \$PRG \$TMPSRC \$DST/\`basename \$SRC\`
d7462 1
a7462 1
\$(DESTDIR)\$(includedir) :
d7467 1
a7467 1
install.includes :: \$(AUTO_SRC) \$(DESTDIR)\$(includedir) \\
d7478 2
a7479 2
			echo "	@@ (cd \$(DESTDIR)\$(includedir) && rm -f `basename $i`) ; ../headers.sh \$(INSTALL_DATA) \$(DESTDIR)\$(includedir) \$(srcdir) $i" >>$cf_dir/Makefile
			test $i = curses.h && echo "	@@ (cd \$(DESTDIR)\$(includedir) && rm -f ncurses.h && \$(LN_S) curses.h ncurses.h)" >>$cf_dir/Makefile
d7491 2
a7492 2
			echo "	-@@ (cd \$(DESTDIR)\$(includedir) && rm -f $i)" >>$cf_dir/Makefile
			test $i = curses.h && echo "	-@@ (cd \$(DESTDIR)\$(includedir) && rm -f ncurses.h)" >>$cf_dir/Makefile
@


1.1.1.3
log
@Import the most recent ncurses 5.1 prerelease (20000701).
Mostly this is intended to resolve the trace() badness once and for all.

Obtained from:  ftp://dickey.his.com/ncurses/
@
text
@d3 1
a3 2
# From configure.in Revision: 1.194 

a199 1
  --with-manpage-symlinks specify manpage-symlinks
d202 1
a204 1
  --with-normal           generate normal-libraries (default)
d216 1
a225 1
  --enable-broken_linker  compile with broken-linker support code
d227 1
d229 2
a230 2
Extensions:
  --disable-ext-funcs     disable function-extensions
d233 1
a233 8
  --enable-const          compile with extra/non-standard const
  --enable-hashmap        compile with hashmap scrolling-optimization code
  --enable-no-padding     compile with \$NCURSES_NO_PADDING code
  --enable-sigwinch       compile with SIGWINCH handler
  --enable-tcap-names     compile with user-definable terminal capabilities
Experimental Code:
  --with-develop          enable all experimental options for testing
  --enable-colorfgbg      compile with experimental \$COLORFGBG code
d235 2
d238 3
a240 1
  --disable-scroll-hints  compile without scroll-hints code
a241 2
EOF
cat <<EOF
d245 2
d254 2
a255 4
  --with-ada-include=DIR  Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
  --with-ada-objects=DIR  Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
EOF
cat <<EOF
d639 1
a639 1
echo "configure:646: checking host system type" >&5
d730 1
a730 1
echo "configure:737: checking for prefix" >&5
d745 1
a745 1
echo "configure:752: checking for default include-directory" >&5
d775 1
a775 1
echo "configure:782: checking for $ac_word" >&5
d805 1
a805 1
echo "configure:812: checking for $ac_word" >&5
d856 1
a856 1
echo "configure:863: checking for $ac_word" >&5
d888 1
a888 1
echo "configure:895: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d899 1
a899 1
#line 906 "configure"
d904 1
a904 1
if { (eval echo configure:911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d930 1
a930 1
echo "configure:937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d935 1
a935 1
echo "configure:942: checking whether we are using GNU C" >&5
d944 1
a944 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d963 1
a963 1
echo "configure:970: checking whether ${CC-cc} accepts -g" >&5
d996 1
a996 1
echo "configure:1003: checking version of gcc" >&5
d1005 1
a1005 1
echo "configure:1012: checking for $ac_word" >&5
d1036 1
a1036 1
echo "configure:1043: checking how to run the C preprocessor" >&5
d1051 1
a1051 1
#line 1058 "configure"
d1057 1
a1057 1
{ (eval echo configure:1064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1068 1
a1068 1
#line 1075 "configure"
d1074 1
a1074 1
{ (eval echo configure:1081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1085 1
a1085 1
#line 1092 "configure"
d1091 1
a1091 1
{ (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1117 1
a1117 1
echo "configure:1124: checking whether ${CC-cc} needs -traditional" >&5
d1123 1
a1123 1
#line 1130 "configure"
d1141 1
a1141 1
#line 1148 "configure"
d1163 1
a1163 1
echo "configure:1170: checking for POSIXized ISC" >&5
d1185 1
a1185 1
echo "configure:1192: checking for ${CC-cc} option to accept ANSI C" >&5
d1203 1
a1203 1
	-Ae \
d1209 1
a1209 1
#line 1216 "configure"
d1225 1
a1225 1
if { (eval echo configure:1232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1286 1
a1286 1
echo "configure:1293: checking for $ac_word" >&5
d1323 1
a1323 1
echo "configure:1330: checking if you want to ensure bool is consistent with C++" >&5
d1338 1
a1338 1
		for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
d1343 1
a1343 1
echo "configure:1350: checking for $ac_word" >&5
d1375 1
a1375 1
echo "configure:1382: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
d1386 1
a1386 1
#line 1393 "configure"
d1391 1
a1391 1
if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1414 1
a1414 1
  echo "$ac_t""You don't have any C++ compiler, too bad" 1>&6; 		cf_with_cxx=no; CXX=""; GXX="";
d1417 1
a1417 1
echo "configure:1424: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
d1422 1
a1422 1
echo "configure:1429: checking whether we are using GNU C++" >&5
d1431 1
a1431 1
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1450 1
a1450 1
echo "configure:1457: checking whether ${CXX-g++} accepts -g" >&5
d1481 1
a1481 1
	fi
d1485 1
a1485 1
echo "configure:1492: checking if you want to build C++ binding and demo" >&5
d1498 1
a1498 1
echo "configure:1505: checking if you want to build with Ada95" >&5
d1511 1
a1511 1
echo "configure:1518: checking if you want to build programs such as tic" >&5
d1534 1
a1534 1
echo "configure:1541: checking for $ac_word" >&5
d1564 1
a1564 1
echo "configure:1571: checking whether ${MAKE-make} sets \${MAKE}" >&5
d1602 1
a1602 1
echo "configure:1609: checking for a BSD compatible install" >&5
d1665 1
a1665 1
echo "configure:1672: checking for long file names" >&5
d1709 1
a1709 1
echo "configure:1716: checking whether ln -s works" >&5
d1732 1
a1732 1
echo "configure:1739: checking for $ac_word" >&5
d1764 1
a1764 1
echo "configure:1771: checking for $ac_word" >&5
d1798 1
a1798 1
echo "configure:1805: checking for $ac_word" >&5
d1834 1
a1834 1
echo "configure:1841: checking for loader (symbol LD)" >&5
d1848 1
a1848 1
echo "configure:1855: checking for archiver (symbol AR)" >&5
d1862 1
a1862 1
echo "configure:1869: checking for archiver options (symbol AR_OPTS)" >&5
d1874 1
a1874 1
echo "configure:1881: checking for makeflags variable" >&5
d1910 1
a1910 1
echo "configure:1917: checking if you have specified an install-prefix" >&5
d1930 1
a1930 1
echo "configure:1937: checking format of man-pages" >&5
d1982 1
a1982 1
echo "configure:1989: checking for manpage renaming" >&5
a2023 16
echo $ac_n "checking for manpage symlinks""... $ac_c" 1>&6
echo "configure:2032: checking for manpage symlinks" >&5


# Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
if test "${with_manpage_symlinks+set}" = set; then
  withval="$with_manpage_symlinks"
  cf_manpage_symlinks=$withval
else
  cf_manpage_symlinks=yes
fi


echo "$ac_t""$cf_manpage_symlinks" 1>&6


a2049 1

a2058 3
srcdir=\$1
shift

a2068 1
	aliases=
a2070 5
if test "$cf_manpage_symlinks" = yes ; then
cat >>man/edit_man.sh <<CF_EOF
	aliases=\`sed -f \$srcdir/manlinks.sed \$source | sort -u\`
CF_EOF
fi
a2124 1
	suffix=\`basename \$target | sed -e 's/^[^.]*//'\`
a2126 22
		test -n "\$aliases" && (
			cd $cf_subdir\${section} && (
				target=\`basename \$target\`
				for cf_alias in \$aliases
				do
					if test -f \$cf_alias\${suffix} ; then
						if ( cmp -s \$target \$cf_alias\${suffix} )
						then
							:
						else
							echo .. \$verb alias \$cf_alias\${suffix}
							rm -f \$cf_alias\${suffix}
							$LN_S \$target \$cf_alias\${suffix}
						fi
					else
						echo .. \$verb alias \$cf_alias\${suffix}
						rm -f \$cf_alias\${suffix}
						$LN_S \$target \$cf_alias\${suffix}
					fi
				done
			)
		)
a2128 9
		test -n "\$aliases" && (
			cd $cf_subdir\${section} && (
				for cf_alias in \$aliases
				do
					echo .. \$verb alias \$cf_alias\${suffix}
					rm -f \$cf_alias\${suffix}
				done
			)
		)
a2132 1
exit 0
d2147 1
a2147 1
echo "configure:2213: checking if you want to build shared libraries" >&5
d2161 1
a2161 1
echo "configure:2227: checking if you want to build static libraries" >&5
d2175 1
a2175 1
echo "configure:2241: checking if you want to build debug libraries" >&5
d2189 1
a2189 1
echo "configure:2255: checking if you want to build profiling libraries" >&5
a2201 41
###############################################################################

echo $ac_n "checking for specified models""... $ac_c" 1>&6
echo "configure:2271: checking for specified models" >&5
test -z "$cf_list_models" && cf_list_models=normal
echo "$ac_t""$cf_list_models" 1>&6

### Use the first model as the default, and save its suffix for use in building
### up test-applications.
echo $ac_n "checking for default model""... $ac_c" 1>&6
echo "configure:2278: checking for default model" >&5
DFT_LWR_MODEL=`echo $cf_list_models | $AWK '{print $1}'`
echo "$ac_t""$DFT_LWR_MODEL" 1>&6


DFT_UPR_MODEL=`echo $DFT_LWR_MODEL | tr '[a-z]' '[A-Z]'`


TINFO_NAME=tinfo


LIB_NAME=ncurses


LIB_DIR=../lib

	case $cf_cv_system_name in
	os2)	LIB_PREFIX=''     ;;
	*)	LIB_PREFIX='lib'  ;;
	esac
cf_prefix=$LIB_PREFIX
	

LIB_PREFIX=$cf_prefix


LIB_SUFFIX=


###############################################################################

d2203 1
a2203 1
echo "configure:2310: checking if you want to build a separate terminfo library" >&5
d2217 1
a2217 1
echo "configure:2324: checking if you want to link with dbmalloc for testing" >&5
d2230 1
a2230 1
echo "configure:2337: checking for debug_malloc in -ldbmalloc" >&5
d2238 1
a2238 1
#line 2345 "configure"
d2249 1
a2249 1
if { (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2279 1
a2279 1
echo "configure:2386: checking if you want to link with dmalloc for testing" >&5
d2292 1
a2292 1
echo "configure:2399: checking for dmalloc_debug in -ldmalloc" >&5
d2300 1
a2300 1
#line 2407 "configure"
d2311 1
a2311 1
if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2342 1
a2342 1
echo "configure:2449: checking if you want to link with the gpm mouse library" >&5
d2355 1
a2355 1
echo "configure:2462: checking for Gpm_Open in -lgpm" >&5
d2363 1
a2363 1
#line 2470 "configure"
d2374 1
a2374 1
if { (eval echo configure:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2400 1
a2400 1
echo "configure:2507: checking for $ac_hdr" >&5
d2405 1
a2405 1
#line 2512 "configure"
d2410 1
a2410 1
{ (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2444 71
a2527 2
echo $ac_n "checking for default loader flags""... $ac_c" 1>&6
echo "configure:2565: checking for default loader flags" >&5
a2533 1
echo "$ac_t""$LD_MODEL" 1>&6
d2536 1
a2536 1
echo "configure:2575: checking if rpath option should be used" >&5
d2558 1
a2558 1
echo "configure:2597: checking if release/abi version should be used for shared libs" >&5
a2583 31
	# Some less-capable ports of gcc support only -fpic
	CC_SHARED_OPTS=
	if test -n "$GCC"
	then
		echo $ac_n "checking which $CC option to use""... $ac_c" 1>&6
echo "configure:2628: checking which $CC option to use" >&5
		cf_save_CFLAGS="$CFLAGS"
		for CC_SHARED_OPTS in -fPIC -fpic ''
		do
			CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
			cat > conftest.$ac_ext <<EOF
#line 2634 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
int x = 1
; return 0; }
EOF
if { (eval echo configure:2641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
		done
		echo "$ac_t""$CC_SHARED_OPTS" 1>&6
		CFLAGS="$cf_save_CFLAGS"
	fi

a2584 3
	beos*)
		MK_SHARED_LIB='$(CC) -o $@@ -Xlinker -soname=`basename $@@` -nostart -e 0'
		;;
d2588 1
d2603 1
d2616 3
a2618 1
		if test -z "$GCC"; then
d2626 1
d2640 1
a2640 1
		CC_SHARED_OPTS='$CC_SHARED_OPTS -DPIC'
d2644 1
a2644 1
		CC_SHARED_OPTS='$CC_SHARED_OPTS -DPIC'
d2649 1
a2649 1
		CC_SHARED_OPTS='$CC_SHARED_OPTS -DPIC'
d2665 1
d2682 3
a2684 1
		if test $ac_cv_prog_gcc != yes; then
d2698 3
a2700 1
		if test $ac_cv_prog_gcc != yes; then
d2708 3
a2710 1
		if test $ac_cv_prog_gcc != yes; then
d2720 3
a2722 5
	sysv5uw7*|unix_sv*)
		# tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
		if test $ac_cv_prog_gcc != yes; then
			CC_SHARED_OPTS='-KPIC'
		fi
d2755 1
a2755 1
echo "configure:2818: checking if we need a space after rpath option" >&5
d2759 1
a2759 1
#line 2822 "configure"
d2766 1
a2766 1
if { (eval echo configure:2829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2805 1
a2805 1
echo "configure:2868: checking if you wish to install ncurses overwriting curses" >&5
d2811 4
d2820 3
d2825 1
a2825 1
echo "configure:2881: checking if external terminfo-database is used" >&5
d2841 17
d2859 1
a2859 1
echo "configure:2898: checking for list of fallback descriptions" >&5
d2874 1
a2874 1
echo "configure:2913: checking for list of terminfo directories" >&5
a2892 2
.a-zA-Z:\\/*) #(vi OS/2 EMX
  ;;
d2931 1
a2931 1
echo "configure:2972: checking if big-core option selected" >&5
d2942 1
a2942 1
#line 2983 "configure"
d2949 1
a2949 1
if { (eval echo configure:2990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d2971 1
a2971 1
echo "configure:3012: checking if you want termcap-fallback support" >&5
d2992 1
a2992 1
echo "configure:3033: checking if fast termcap-loader is needed" >&5
d3009 1
a3009 1
echo "configure:3050: checking if translated termcaps will be cached in ~/.terminfo" >&5
d3035 1
a3035 1
echo "configure:3076: checking for $ac_func" >&5
d3040 1
a3040 1
#line 3081 "configure"
d3063 1
a3063 1
if { (eval echo configure:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3094 1
a3094 1
echo "configure:3135: checking for $ac_func" >&5
d3099 1
a3099 1
#line 3140 "configure"
d3122 1
a3122 1
if { (eval echo configure:3163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3148 1
a3148 1
echo "configure:3189: checking if link/symlink functions work" >&5
d3160 1
a3160 1
#line 3201 "configure"
d3189 1
a3189 1
if { (eval echo configure:3230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d3225 1
a3225 1
echo "configure:3266: checking if tic should use symbolic links" >&5
d3234 1
a3234 1
echo "configure:3275: checking if tic should use hard links" >&5
d3243 1
a3243 1
echo "configure:3284: checking if tic should use symbolic links" >&5
a3264 18
###   use option --enable-broken-linker to force on use of broken-linker support
echo $ac_n "checking if you want broken-linker support code""... $ac_c" 1>&6
echo "configure:3308: checking if you want broken-linker support code" >&5

# Check whether --enable-broken_linker or --disable-broken_linker was given.
if test "${enable_broken_linker+set}" = set; then
  enableval="$enable_broken_linker"
  with_broken_linker=$enableval
else
  with_broken_linker=$BROKEN_LINKER
fi

echo "$ac_t""$with_broken_linker" 1>&6
test "$with_broken_linker" = yes && cat >> confdefs.h <<\EOF
#define BROKEN_LINKER 1
EOF


d3267 1
a3267 1
echo "configure:3326: checking if tputs should process BSD-style prefix padding" >&5
a3282 57
### Enable compiling-in rcs id's
echo $ac_n "checking if RCS identifiers should be compiled-in""... $ac_c" 1>&6
echo "configure:3344: checking if RCS identifiers should be compiled-in" >&5

# Check whether --with-rcs-ids or --without-rcs-ids was given.
if test "${with_rcs_ids+set}" = set; then
  withval="$with_rcs_ids"
  with_rcs_ids=$withval
else
  with_rcs_ids=no
fi

echo "$ac_t""$with_rcs_ids" 1>&6
test "$with_rcs_ids" = yes && cat >> confdefs.h <<\EOF
#define USE_RCS_IDS 1
EOF


###############################################################################


### Note that some functions (such as const) are normally disabled anyway.
echo $ac_n "checking if you want to build with function extensions""... $ac_c" 1>&6
echo "configure:3365: checking if you want to build with function extensions" >&5

# Check whether --enable-ext-funcs or --disable-ext-funcs was given.
if test "${enable_ext_funcs+set}" = set; then
  enableval="$enable_ext_funcs"
  with_ext_funcs=$enableval
else
  with_ext_funcs=yes
fi

echo "$ac_t""$with_ext_funcs" 1>&6
if test "$with_ext_funcs" = yes ; then
	cat >> confdefs.h <<\EOF
#define HAVE_HAS_KEY 1
EOF

	cat >> confdefs.h <<\EOF
#define HAVE_RESIZETERM 1
EOF

	cat >> confdefs.h <<\EOF
#define HAVE_USE_DEFAULT_COLORS 1
EOF

	cat >> confdefs.h <<\EOF
#define HAVE_WRESIZE 1
EOF

	cat >> confdefs.h <<\EOF
#define NCURSES_EXT_FUNCS 1
EOF

fi

d3285 1
a3285 1
echo "configure:3401: checking for extended use of const keyword" >&5
d3306 3
a3308 56
###   use option --enable-hashmap to turn on use of hashmap scrolling logic
echo $ac_n "checking if you want hashmap scrolling-optimization code""... $ac_c" 1>&6
echo "configure:3424: checking if you want hashmap scrolling-optimization code" >&5

# Check whether --enable-hashmap or --disable-hashmap was given.
if test "${enable_hashmap+set}" = set; then
  enableval="$enable_hashmap"
  with_hashmap=$enableval
else
  with_hashmap=yes
fi

echo "$ac_t""$with_hashmap" 1>&6
test "$with_hashmap" = yes && cat >> confdefs.h <<\EOF
#define USE_HASHMAP 1
EOF


echo $ac_n "checking if you want \$NCURSES_NO_PADDING code""... $ac_c" 1>&6
echo "configure:3441: checking if you want \$NCURSES_NO_PADDING code" >&5

# Check whether --enable-no-padding or --disable-no-padding was given.
if test "${enable_no_padding+set}" = set; then
  enableval="$enable_no_padding"
  with_no_padding=$enableval
else
  with_no_padding=$with_ext_funcs
fi

echo "$ac_t""$with_no_padding" 1>&6
test "$with_no_padding" = yes && cat >> confdefs.h <<\EOF
#define NCURSES_NO_PADDING 1
EOF


###   use option --enable-sigwinch to turn on use of SIGWINCH logic
echo $ac_n "checking if you want SIGWINCH handler""... $ac_c" 1>&6
echo "configure:3459: checking if you want SIGWINCH handler" >&5

# Check whether --enable-sigwinch or --disable-sigwinch was given.
if test "${enable_sigwinch+set}" = set; then
  enableval="$enable_sigwinch"
  with_sigwinch=$enableval
else
  with_sigwinch=$with_ext_funcs
fi

echo "$ac_t""$with_sigwinch" 1>&6
test "$with_sigwinch" = yes && cat >> confdefs.h <<\EOF
#define USE_SIGWINCH 1
EOF


###   use option --enable-tcap-names to allow user to define new capabilities
echo $ac_n "checking if you want user-definable terminal capabilities like termcap""... $ac_c" 1>&6
echo "configure:3477: checking if you want user-definable terminal capabilities like termcap" >&5
d3310 4
a3313 4
# Check whether --enable-tcap-names or --disable-tcap-names was given.
if test "${enable_tcap_names+set}" = set; then
  enableval="$enable_tcap_names"
  with_tcap_names=$enableval
d3315 1
a3315 1
  with_tcap_names=$with_ext_funcs
d3318 4
a3321 3
echo "$ac_t""$with_tcap_names" 1>&6
NCURSES_XNAMES=0
test "$with_tcap_names" = yes && NCURSES_XNAMES=1
d3327 1
a3327 1
echo "configure:3495: checking if you want all experimental code" >&5
d3339 3
a3341 3
###   use option --enable-colorfgbg to turn on use of $COLORFGBG environment
echo $ac_n "checking if you want experimental colorfgbg code""... $ac_c" 1>&6
echo "configure:3509: checking if you want experimental colorfgbg code" >&5
d3343 4
a3346 4
# Check whether --enable-hard-tabs or --disable-hard-tabs was given.
if test "${enable_hard_tabs+set}" = set; then
  enableval="$enable_hard_tabs"
  with_colorfgbg=$enableval
d3348 1
a3348 1
  with_colorfgbg=$with_develop
d3351 3
a3353 3
echo "$ac_t""$with_colorfgbg" 1>&6
test "$with_colorfgbg" = yes && cat >> confdefs.h <<\EOF
#define USE_COLORFGBG 1
d3359 1
a3359 1
echo "configure:3527: checking if you want experimental hard-tabs code" >&5
d3375 35
d3411 1
a3411 1
echo "configure:3544: checking if you want experimental safe-sprintf code" >&5
a3427 2
# when hashmap is used scroll hints are useless
if test "$with_hashmap" = no ; then
d3429 1
a3429 1
echo "configure:3564: checking if you want to experiment without scrolling-hints code" >&5
d3436 3
a3438 1
  with_scroll_hints=yes
d3446 28
d3476 6
d3484 1
a3484 1
echo "configure:3583: checking if you want experimental wide-character code" >&5
d3495 1
a3495 3
if test "$with_widec" = yes ; then
	LIB_SUFFIX="w${LIB_SUFFIX}"
	cat >> confdefs.h <<\EOF
a3498 1
fi
d3502 1
a3502 1
echo "configure:3604: checking if you want experimental xmc code" >&5
d3552 1
a3552 1
#line 3654 "configure"
d3556 1
a3556 1
echo "configure:3658: checking for $CC warning options" >&5
d3574 1
a3574 1
		if { (eval echo configure:3676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3606 1
a3606 1
echo "configure:3708: checking for $CC __attribute__ directives" >&5
d3608 1
a3608 1
#line 3710 "configure"
d3646 1
a3646 1
		if { (eval echo configure:3748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3726 1
a3726 1
echo "configure:3828: checking for gettimeofday" >&5
d3731 1
a3731 1
#line 3833 "configure"
d3754 1
a3754 1
if { (eval echo configure:3856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3777 1
a3777 1
echo "configure:3879: checking for gettimeofday in -lbsd" >&5
d3785 1
a3785 1
#line 3887 "configure"
d3796 1
a3796 1
if { (eval echo configure:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3822 41
d3864 9
a3872 3
echo $ac_n "checking if -lm needed for math functions""... $ac_c" 1>&6
echo "configure:3926: checking if -lm needed for math functions" >&5
if eval "test \"`echo '$''{'cf_cv_need_libm'+set}'`\" = set"; then
d3875 4
a3878 3
  
	cat > conftest.$ac_ext <<EOF
#line 3932 "configure"
d3880 4
a3884 3
	#include <stdio.h>
	#include <math.h>
	
d3886 1
a3886 1
double x = rand(); printf("result = %g\n", sin(x))
d3889 1
a3889 1
if { (eval echo configure:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3891 1
a3891 1
  cf_cv_need_libm=no
d3896 1
a3896 1
  cf_cv_need_libm=yes
d3899 8
a3908 4
echo "$ac_t""$cf_cv_need_libm" 1>&6
if test "$cf_cv_need_libm" = yes
then
MATH_LIB=-lm
d3915 1
a3915 1
echo "configure:3964: checking for ANSI C header files" >&5
d3920 1
a3920 1
#line 3969 "configure"
d3928 1
a3928 1
{ (eval echo configure:3977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3945 1
a3945 1
#line 3994 "configure"
d3963 1
a3963 1
#line 4012 "configure"
d3984 1
a3984 1
#line 4033 "configure"
d3995 1
a3995 1
if { (eval echo configure:4044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4023 1
a4023 1
echo "configure:4072: checking for $ac_hdr that defines DIR" >&5
d4028 1
a4028 1
#line 4077 "configure"
d4036 1
a4036 1
if { (eval echo configure:4085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4061 1
a4061 1
echo "configure:4110: checking for opendir in -ldir" >&5
d4069 1
a4069 1
#line 4118 "configure"
d4080 1
a4080 1
if { (eval echo configure:4129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4102 1
a4102 1
echo "configure:4151: checking for opendir in -lx" >&5
d4110 1
a4110 1
#line 4159 "configure"
d4121 1
a4121 1
if { (eval echo configure:4170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4145 1
a4145 1
echo "configure:4194: checking for regular-expression headers" >&5
d4151 1
a4151 1
#line 4200 "configure"
d4164 1
a4164 1
if { (eval echo configure:4213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4173 1
a4173 1
#line 4222 "configure"
d4183 1
a4183 1
if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4194 1
a4194 1
#line 4243 "configure"
d4204 1
a4204 1
if { (eval echo configure:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a4243 1
poll.h \
d4247 1
a4247 1
sys/poll.h \
d4249 1
d4256 1
d4261 1
a4261 1
echo "configure:4309: checking for $ac_hdr" >&5
d4266 1
a4266 1
#line 4314 "configure"
d4271 1
a4271 1
{ (eval echo configure:4319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4302 1
a4302 1
echo "configure:4350: checking for main in -lcposix" >&5
d4310 1
a4310 1
#line 4358 "configure"
d4317 1
a4317 1
if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4345 1
a4345 1
echo "configure:4393: checking for bzero in -linet" >&5
d4353 1
a4353 1
#line 4401 "configure"
d4364 1
a4364 1
if { (eval echo configure:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4387 1
a4387 1
echo "configure:4435: checking for $ac_hdr" >&5
d4392 1
a4392 1
#line 4440 "configure"
d4397 1
a4397 1
{ (eval echo configure:4445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4427 1
a4427 1
echo "configure:4475: checking if sys/time.h works with sys/select.h" >&5
d4433 1
a4433 1
#line 4481 "configure"
d4448 1
a4448 1
if { (eval echo configure:4496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4477 1
a4477 1
echo "configure:4525: checking for working const" >&5
d4482 1
a4482 1
#line 4530 "configure"
d4531 1
a4531 1
if { (eval echo configure:4579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4552 1
a4552 1
echo "configure:4600: checking for inline" >&5
d4559 1
a4559 1
#line 4607 "configure"
d4566 1
a4566 1
if { (eval echo configure:4614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4598 1
a4598 1
echo "configure:4646: checking if unsigned literals are legal" >&5
d4604 1
a4604 1
#line 4652 "configure"
d4611 1
a4611 1
if { (eval echo configure:4659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4629 1
a4629 1
echo "configure:4677: checking for type of chtype" >&5
d4638 1
a4638 1
#line 4686 "configure"
d4684 1
a4684 1
if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4717 1
a4717 1
echo "configure:4765: checking for number of bits in chtype" >&5
d4726 1
a4726 1
#line 4774 "configure"
d4749 1
a4749 1
if { (eval echo configure:4797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4769 1
a4769 1
echo "configure:4817: checking for width of character-index" >&5
d4796 1
a4796 1
echo "configure:4844: checking if external errno is declared" >&5
d4802 1
a4802 1
#line 4850 "configure"
d4805 1
a4805 1
#ifdef HAVE_STDLIB_H
d4815 1
a4815 1
if { (eval echo configure:4863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4846 1
a4846 1
echo "configure:4894: checking if external errno exists" >&5
d4852 1
a4852 1
#line 4900 "configure"
d4862 1
a4862 1
if { (eval echo configure:4910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4894 1
a4894 1
echo "configure:4942: checking if data-only library module links" >&5
d4901 1
a4901 1
#line 4949 "configure"
d4904 1
a4904 1
		if { (eval echo configure:4952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } ; then
d4910 1
a4910 1
#line 4958 "configure"
d4923 1
a4923 1
		if { (eval echo configure:4971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4935 1
a4935 1
#line 4983 "configure"
d4945 1
a4945 1
if { (eval echo configure:4993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4969 1
a4969 1
echo "configure:5017: checking for speed_t" >&5
d4972 1
a4972 1
#line 5020 "configure"
d4979 1
a4979 1
if { (eval echo configure:5027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4990 1
a4990 1
#line 5038 "configure"
d4997 1
a4997 1
if { (eval echo configure:5045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5020 1
a5020 2
for ac_func in \
getcwd \
a5022 1
mkstemp \
d5043 1
a5043 1
echo "configure:5093: checking for $ac_func" >&5
d5048 1
a5048 1
#line 5098 "configure"
d5071 1
a5071 1
if { (eval echo configure:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5095 2
d5100 1
a5100 1
echo "configure:5148: checking for terminal-capability database functions" >&5
d5106 1
a5106 1
#line 5154 "configure"
d5121 1
a5121 1
if { (eval echo configure:5169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5144 1
a5144 1
echo "configure:5192: checking for isascii" >&5
d5150 1
a5150 1
#line 5198 "configure"
d5157 1
a5157 1
if { (eval echo configure:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5178 1
a5178 1
echo "configure:5226: checking whether sigaction needs _POSIX_SOURCE" >&5
d5180 1
a5180 1
#line 5228 "configure"
d5189 1
a5189 1
if { (eval echo configure:5237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5198 1
a5198 1
#line 5246 "configure"
d5208 1
a5208 1
if { (eval echo configure:5256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5236 1
a5236 1
echo "configure:5284: checking whether termios.h needs _POSIX_SOURCE" >&5
d5238 1
a5238 1
#line 5286 "configure"
d5245 1
a5245 1
if { (eval echo configure:5293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5254 1
a5254 1
#line 5302 "configure"
d5263 1
a5263 1
if { (eval echo configure:5311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5288 1
a5288 1
echo "configure:5336: checking whether setvbuf arguments are reversed" >&5
d5296 1
a5296 1
#line 5344 "configure"
d5310 1
a5310 1
if { (eval echo configure:5358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5335 1
a5335 1
echo "configure:5383: checking return type of signal handlers" >&5
d5340 1
a5340 1
#line 5388 "configure"
d5357 1
a5357 1
if { (eval echo configure:5405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5377 1
a5377 1
echo "configure:5425: checking for type sigaction_t" >&5
d5383 1
a5383 1
#line 5431 "configure"
d5391 1
a5391 1
if { (eval echo configure:5439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5411 1
a5411 1
echo "configure:5459: checking declaration of size-change" >&5
d5425 1
a5425 1
#line 5473 "configure"
d5464 1
a5464 1
if { (eval echo configure:5512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5496 1
a5496 1
echo "configure:5544: checking for memmove" >&5
d5501 1
a5501 1
#line 5549 "configure"
d5524 1
a5524 1
if { (eval echo configure:5572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5543 1
a5543 1
echo "configure:5591: checking for bcopy" >&5
d5548 1
a5548 1
#line 5596 "configure"
d5571 1
a5571 1
if { (eval echo configure:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5587 1
a5587 1
echo "configure:5635: checking if bcopy does overlapping moves" >&5
d5596 1
a5596 1
#line 5644 "configure"
d5609 1
a5609 1
if { (eval echo configure:5657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a5645 51
echo $ac_n "checking if poll really works""... $ac_c" 1>&6
echo "configure:5695: checking if poll really works" >&5
if eval "test \"`echo '$''{'cf_cv_working_poll'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if test "$cross_compiling" = yes; then
  cf_cv_working_poll=unknown
else
  cat > conftest.$ac_ext <<EOF
#line 5704 "configure"
#include "confdefs.h"

#include <stdio.h>
#ifdef HAVE_POLL_H
#include <poll.h>
#else
#include <sys/poll.h>
#endif
int main() {
	struct pollfd myfds;
	int ret;

	myfds.fd = 0;
	myfds.events = POLLIN;

	ret = poll(&myfds, 1, 100);
	exit(ret != 0);
}
EOF
if { (eval echo configure:5724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  cf_cv_working_poll=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  cf_cv_working_poll=no
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$cf_cv_working_poll" 1>&6
test "$cf_cv_working_poll" = "yes" && cat >> confdefs.h <<\EOF
#define HAVE_WORKING_POLL 1
EOF



d5653 1
a5653 1
echo "configure:5752: checking for builtin $CC bool type" >&5
d5659 1
a5659 1
#line 5758 "configure"
d5669 1
a5669 1
if { (eval echo configure:5768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5706 1
a5706 1
echo "configure:5805: checking for library $cf_stdcpp_libname" >&5
d5712 1
a5712 1
	LIBS="$LIBS -l$cf_stdcpp_libname"
d5714 1
a5714 1
#line 5813 "configure"
d5722 1
d5726 1
a5726 1
if { (eval echo configure:5824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5761 1
a5761 1
echo "configure:5859: checking for lib$cf_gpp_libname" >&5
d5763 1
a5763 1
	LIBS="$LIBS -l$cf_gpp_libname"
d5765 1
a5765 1
#line 5863 "configure"
d5771 2
a5772 1
two_arg_error_handler_t foo2 = lib_error_handler
d5775 1
a5775 1
if { (eval echo configure:5872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5778 1
a5778 1
	 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
d5795 1
a5795 1
#line 5892 "configure"
d5801 2
a5802 1
two_arg_error_handler_t foo2 = lib_error_handler
d5805 1
a5805 1
if { (eval echo configure:5901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5808 1
a5808 1
	 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
d5832 1
a5832 1
echo "configure:5928: checking how to run the C++ preprocessor" >&5
d5845 1
a5845 1
#line 5941 "configure"
d5850 1
a5850 1
{ (eval echo configure:5946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5878 1
a5878 1
echo "configure:5974: checking for $ac_hdr" >&5
d5883 1
a5883 1
#line 5979 "configure"
d5888 1
a5888 1
{ (eval echo configure:5984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5916 1
a5916 1
echo "configure:6012: checking for builtin $CXX bool type" >&5
d5922 1
a5922 1
#line 6018 "configure"
d5932 1
a5932 1
if { (eval echo configure:6028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5952 1
a5952 1
echo "configure:6048: checking for size of $CXX bool" >&5
d5962 1
a5962 1
#line 6058 "configure"
d5994 1
a5994 1
if { (eval echo configure:6090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6018 1
a6018 1
echo "configure:6114: checking for special defines needed for etip.h" >&5
d6029 1
a6029 1
#line 6125 "configure"
d6038 1
a6038 1
if { (eval echo configure:6134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6065 1
a6065 1
echo "configure:6161: checking if $CXX accepts parameter initialization" >&5
d6081 1
a6081 1
#line 6177 "configure"
d6102 1
a6102 1
if { (eval echo configure:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6144 1
a6144 1
echo "configure:6240: checking for fallback type of bool" >&5
d6160 1
a6160 1
echo "configure:6256: checking for $ac_word" >&5
d6194 1
a6194 1
  3.1[1-9]*|3.[2-9]*|[4-9].*)
d6197 1
a6197 1
  *) echo Unsupported GNAT version $cf_cv_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
d6214 1
a6214 1
echo "configure:6310: checking for $ac_word" >&5
d6247 1
a6247 1
echo "configure:6343: checking if GNAT works" >&5
d6305 1
a6305 1
  withval="${ADA_INCLUDE-$prefix/lib/ada/adainclude}"
a6310 2
.a-zA-Z:\\/*) #(vi OS/2 EMX
  ;;
d6337 1
a6337 1
  withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
a6342 2
.a-zA-Z:\\/*) #(vi OS/2 EMX
  ;;
d6363 4
a6366 5
# This has been fixed!
#   if test $with_shared = no
#   then
#      AC_MSG_WARN(Ada95 applications will not link properly with static libraries)
#   fi
d6391 1
a6391 1
echo "configure:6492: checking for library subsets" >&5
a6400 7
LIB_TRACING=DEBUG
case "$CFLAGS" in
*-DTRACE*)
	LIB_TRACING=all
	;;
esac

a6438 64
### Build up pieces for makefile rules
echo $ac_n "checking default library suffix""... $ac_c" 1>&6
echo "configure:6549: checking default library suffix" >&5

	case $DFT_LWR_MODEL in
	normal)  DFT_ARG_SUFFIX=''   ;;
	debug)   DFT_ARG_SUFFIX='_g' ;;
	profile) DFT_ARG_SUFFIX='_p' ;;
	shared)  DFT_ARG_SUFFIX=''   ;;
	esac
	test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
echo "$ac_t""$DFT_ARG_SUFFIX" 1>&6

echo $ac_n "checking default library-dependency suffix""... $ac_c" 1>&6
echo "configure:6561: checking default library-dependency suffix" >&5

	
	case $DFT_LWR_MODEL in
	normal)  DFT_DEP_SUFFIX='.a'   ;;
	debug)   DFT_DEP_SUFFIX='_g.a' ;;
	profile) DFT_DEP_SUFFIX='_p.a' ;;
	shared)
		case $cf_cv_system_name in
		openbsd*|freebsd*)
			DFT_DEP_SUFFIX='.so.$(REL_VERSION)' ;;
		netbsd*)
			if test -f /usr/libexec/ld.elf_so; then
				DFT_DEP_SUFFIX='.so'
			else
				DFT_DEP_SUFFIX='.so.$(REL_VERSION)'
			fi
			;;
		hpux*)	DFT_DEP_SUFFIX='.sl'  ;;
		*)	DFT_DEP_SUFFIX='.so'  ;;
		esac
	esac
	test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
echo "$ac_t""$DFT_DEP_SUFFIX" 1>&6

echo $ac_n "checking default object directory""... $ac_c" 1>&6
echo "configure:6587: checking default object directory" >&5

	case $DFT_LWR_MODEL in
	normal)  DFT_OBJ_SUBDIR='objects' ;;
	debug)   DFT_OBJ_SUBDIR='obj_g' ;;
	profile) DFT_OBJ_SUBDIR='obj_p' ;;
	shared)  DFT_OBJ_SUBDIR='obj_s' ;;
	esac
echo "$ac_t""$DFT_OBJ_SUBDIR" 1>&6

TINFO_LIST="$SHLIB_LIST"
test $with_termlib = yes && SHLIB_LIST="$SHLIB_LIST -ltinfo${LIB_SUFFIX}"

echo $ac_n "checking where we will install curses.h""... $ac_c" 1>&6
echo "configure:6601: checking where we will install curses.h" >&5
test "$with_overwrite" = no && \
test "x$includedir" = 'x${prefix}/include' && \
	includedir='$(prefix)/include/ncurses'${LIB_SUFFIX}
echo "$ac_t""$includedir" 1>&6





d6442 1
a6442 1
	TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_NAME}${DFT_DEP_SUFFIX}"
d6453 1
a6453 1
echo "configure:6625: checking for src modules" >&5
d6456 1
a6456 1
TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
d6499 1
a6499 1
			TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
d6521 1
a6521 1
if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
d6738 4
a6741 1
s%@@cf_list_models@@%$cf_list_models%g
d6744 3
a6749 1
s%@@LIB_SUFFIX@@%$LIB_SUFFIX%g
a6788 6
s%@@DFT_ARG_SUFFIX@@%$DFT_ARG_SUFFIX%g
s%@@DFT_DEP_SUFFIX@@%$DFT_DEP_SUFFIX%g
s%@@DFT_OBJ_SUBDIR@@%$DFT_OBJ_SUBDIR%g
s%@@EXTRA_LIBS@@%$EXTRA_LIBS%g
s%@@TINFO_LIST@@%$TINFO_LIST%g
s%@@SHLIB_LIST@@%$SHLIB_LIST%g
a7012 1
LIB_SUFFIX="$LIB_SUFFIX"
a7013 1
LIB_TRACING="$LIB_TRACING"
d7034 2
a7035 2
	os2)	LIB_PREFIX=''     ;;
	*)	LIB_PREFIX='lib'  ;;
d7037 1
a7037 1
cf_prefix=$LIB_PREFIX
a7068 1
	test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
a7118 1
	test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
a7147 1
				traces=$LIB_TRACING \
a7162 1
				traces=$LIB_TRACING \
a7180 1
			echo 'libs \' >> Makefile
a7199 1
libs \\
a7209 1
libs \\
d7256 13
a7268 12
	TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
	TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
	END=\`basename \$DST\`
	for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
	do
		NAME=\`basename \$i\`
		echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
	done
	rm -f \$TMPSRC
	sed -f \$TMPSED \$SRC > \$TMPSRC
	eval \$PRG \$TMPSRC \$DST/\$SRC
	rm -f \$TMPSRC \$TMPSED
@


1.1.1.4
log
@Import ncurses-5.1-20001009 onto the vendor branch
@
text
@d3 1
a3 1
# From configure.in Revision: 1.217 
d8 1
a8 1
# Generated automatically using autoconf version 2.13.20000819 
d197 5
d204 2
a209 2
EOF
cat <<EOF
d218 2
a219 1
  --with-database=XXX     specify terminfo source to install
a221 3
  --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
EOF
cat <<EOF
d230 2
a231 5
Options to Specify How Manpages are Installed:
  --with-manpage-format   specify manpage-format: gzip/compress/BSDI/normal and
                          optionally formatted, e.g., gzip,formatted
  --with-manpage-renames  specify manpage-renaming
  --with-manpage-symlinks specify manpage-symlinks
a233 2
Extensions:
  --disable-ext-funcs     disable function-extensions
d235 1
a238 8
Development Code:
  --with-develop          enable all development options
  --enable-colorfgbg      compile with \$COLORFGBG code
  --enable-hard-tabs      compile with hard-tabs code
  --disable-root-environ  limit environment when running as root
  --enable-xmc-glitch     compile with limited support for xmc
EOF
cat <<EOF
d240 3
a242 2
  --disable-assumed-color do not assume anything about default-colors
  --disable-hashmap       compile without hashmap scrolling-optimization
d245 4
a248 1
  --enable-widec          compile with experimental wide-char/UTF-8 code
a254 2
EOF
cat <<EOF
d257 1
a257 1
  --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
d261 2
d412 1
a412 1
    echo "configure generated by autoconf version 2.13.20000819"
a638 21
# Do some error checking and defaulting for the host and target type.
# The inputs are:
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
#
# The rules are:
# 1. You are not allowed to specify --host, --target, and nonopt at the
#    same time.
# 2. Host defaults to nonopt.
# 3. If nonopt is not specified, then host defaults to the current host,
#    as determined by config.guess.
# 4. Target and build default to nonopt.
# 5. If nonopt is not specified, then target and build default to host.

# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
case $host---$target---$nonopt in
NONE---*---* | *---NONE---* | *---*---NONE) ;;
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
esac


d645 1
a645 1
echo "configure:672: checking host system type" >&5
a664 41
echo $ac_n "checking target system type""... $ac_c" 1>&6
echo "configure:693: checking target system type" >&5

target_alias=$target
case "$target_alias" in
NONE)
  case $nonopt in
  NONE) target_alias=$host_alias ;;
  *) target_alias=$nonopt ;;
  esac ;;
esac

target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$target" 1>&6

echo $ac_n "checking build system type""... $ac_c" 1>&6
echo "configure:711: checking build system type" >&5

build_alias=$build
case "$build_alias" in
NONE)
  case $nonopt in
  NONE) build_alias=$host_alias ;;
  *) build_alias=$nonopt ;;
  esac ;;
esac

build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$build" 1>&6

test "$host_alias" != "$target_alias" &&
  test "$program_prefix$program_suffix$program_transform_name" = \
    NONENONEs,x,x, &&
  program_prefix=${target_alias}-

d736 1
a736 1
echo "configure:804: checking for prefix" >&5
d751 1
a751 1
echo "configure:819: checking for default include-directory" >&5
d781 1
a781 1
echo "configure:849: checking for $ac_word" >&5
d811 1
a811 1
echo "configure:879: checking for $ac_word" >&5
d862 1
a862 1
echo "configure:930: checking for $ac_word" >&5
d894 1
a894 1
echo "configure:962: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d905 1
a905 1
#line 973 "configure"
d910 1
a910 1
if { (eval echo configure:978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d936 1
a936 1
echo "configure:1004: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d941 1
a941 1
echo "configure:1009: checking whether we are using GNU C" >&5
d950 1
a950 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d969 1
a969 1
echo "configure:1037: checking whether ${CC-cc} accepts -g" >&5
d1000 4
a1003 4
if test "$GCC" = yes ; then
	echo $ac_n "checking version of gcc""... $ac_c" 1>&6
echo "configure:1070: checking version of gcc" >&5
	eval "$CC --version"
d1005 2
a1006 2
if test "$host" != $build; then
	for ac_prog in $CC gcc cc
d1011 1
a1011 1
echo "configure:1079: checking for $ac_word" >&5
a1039 2
else
	BUILD_CC="$CC"
a1040 1

d1042 1
a1042 1
echo "configure:1113: checking how to run the C preprocessor" >&5
d1057 1
a1057 1
#line 1128 "configure"
d1063 1
a1063 1
{ (eval echo configure:1134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1074 1
a1074 1
#line 1145 "configure"
d1080 1
a1080 1
{ (eval echo configure:1151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1091 1
a1091 1
#line 1162 "configure"
d1097 1
a1097 1
{ (eval echo configure:1168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1123 1
a1123 1
echo "configure:1194: checking whether ${CC-cc} needs -traditional" >&5
d1129 1
a1129 1
#line 1200 "configure"
d1147 1
a1147 1
#line 1218 "configure"
d1169 1
a1169 1
echo "configure:1240: checking for POSIXized ISC" >&5
d1191 1
a1191 1
echo "configure:1262: checking for ${CC-cc} option to accept ANSI C" >&5
d1215 1
a1215 1
#line 1286 "configure"
d1231 1
a1231 1
if { (eval echo configure:1302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1292 1
a1292 1
echo "configure:1363: checking for $ac_word" >&5
d1329 1
a1329 1
echo "configure:1400: checking if you want to ensure bool is consistent with C++" >&5
d1349 1
a1349 1
echo "configure:1420: checking for $ac_word" >&5
d1381 1
a1381 1
echo "configure:1452: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
d1392 1
a1392 1
#line 1463 "configure"
d1397 1
a1397 1
if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1423 1
a1423 1
echo "configure:1494: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
d1428 1
a1428 1
echo "configure:1499: checking whether we are using GNU C++" >&5
d1437 1
a1437 1
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1456 1
a1456 1
echo "configure:1527: checking whether ${CXX-g++} accepts -g" >&5
d1488 1
a1488 10

if test "$GXX" = yes; then
	case "`${CXX-g++} --version`" in
	1*|2.[0-6]*)
		GXX=""; CXX=""; ac_cv_prog_gxx=no
		cf_cxx_library=no
		echo No: templates do not work
		;;
	esac
fi
d1491 1
a1491 1
echo "configure:1571: checking if you want to build C++ binding and demo" >&5
d1504 1
a1504 1
echo "configure:1584: checking if you want to build with Ada95" >&5
d1517 1
a1517 1
echo "configure:1597: checking if you want to build programs such as tic" >&5
a1534 19
if test "$program_transform_name" = s,x,x,; then
  program_transform_name=
else
  # Double any \ or $.  echo might interpret backslashes.
  cat <<\EOF_SED > conftestsed
s,\\,\\\\,g; s,\$,$$,g
EOF_SED
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  rm -f conftestsed
fi
test "$program_prefix" != NONE &&
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"

# sed with no file args requires a program.
test "$program_transform_name" = "" && program_transform_name="s,x,x,"

d1540 1
a1540 1
echo "configure:1639: checking for $ac_word" >&5
d1570 1
a1570 1
echo "configure:1669: checking whether ${MAKE-make} sets \${MAKE}" >&5
d1608 1
a1608 1
echo "configure:1707: checking for a BSD compatible install" >&5
d1671 1
a1671 1
echo "configure:1770: checking for long file names" >&5
a1713 24

echo $ac_n "checking if filesystem supports mixed-case filenames""... $ac_c" 1>&6
echo "configure:1815: checking if filesystem supports mixed-case filenames" >&5
if eval "test \"`echo '$''{'cf_cv_mixedcase'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
	rm -f conftest CONFTEST
	echo test >conftest
	if test -f CONFTEST ; then
		cf_cv_mixedcase=no
	else
		cf_cv_mixedcase=yes
	fi
	rm -f conftest CONFTEST

fi

echo "$ac_t""$cf_cv_mixedcase" 1>&6
test "$cf_cv_mixedcase" = yes && cat >> confdefs.h <<\EOF
#define MIXEDCASE_FILENAMES 1
EOF


d1715 1
a1715 1
echo "configure:1838: checking whether ln -s works" >&5
d1738 1
a1738 1
echo "configure:1861: checking for $ac_word" >&5
a1764 82


# Extract the first word of "ctags", so it can be a program name with args.
set dummy ctags; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1893: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_MAKE_LOWER_TAGS'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$MAKE_LOWER_TAGS"; then
  ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_MAKE_LOWER_TAGS="yes"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
fi
fi
MAKE_LOWER_TAGS="$ac_cv_prog_MAKE_LOWER_TAGS"
if test -n "$MAKE_LOWER_TAGS"; then
  echo "$ac_t""$MAKE_LOWER_TAGS" 1>&6
else
  echo "$ac_t""no" 1>&6
fi


if test "$cf_cv_mixedcase" = yes ; then
	# Extract the first word of "etags", so it can be a program name with args.
set dummy etags; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1925: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_MAKE_UPPER_TAGS'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$MAKE_UPPER_TAGS"; then
  ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_MAKE_UPPER_TAGS="yes"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
fi
fi
MAKE_UPPER_TAGS="$ac_cv_prog_MAKE_UPPER_TAGS"
if test -n "$MAKE_UPPER_TAGS"; then
  echo "$ac_t""$MAKE_UPPER_TAGS" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

else
	MAKE_UPPER_TAGS=no
fi

if test "$MAKE_UPPER_TAGS" = yes ; then
	MAKE_UPPER_TAGS=
else
	MAKE_UPPER_TAGS="#"
fi


if test "$MAKE_LOWER_TAGS" = yes ; then
	MAKE_LOWER_TAGS=
else
	MAKE_LOWER_TAGS="#"
fi


d1770 1
a1770 1
echo "configure:1975: checking for $ac_word" >&5
d1804 1
a1804 1
echo "configure:2009: checking for $ac_word" >&5
d1840 1
a1840 1
echo "configure:2045: checking for loader (symbol LD)" >&5
d1854 1
a1854 1
echo "configure:2059: checking for archiver (symbol AR)" >&5
d1868 1
a1868 1
echo "configure:2073: checking for archiver options (symbol AR_OPTS)" >&5
d1880 1
a1880 1
echo "configure:2085: checking for makeflags variable" >&5
d1916 1
a1916 1
echo "configure:2121: checking if you have specified an install-prefix" >&5
d1924 1
a1924 1
	*)	DESTDIR="$withval"
d1929 1
a1929 1
echo "$ac_t""$DESTDIR" 1>&6
d1935 2
a1936 4
### Options to allow the user to specify the set of libraries which are used.
### Use "--without-normal --with-shared" to allow the default model to be
### shared, for example.
cf_list_models=""
a1937 2
echo $ac_n "checking if you want to build shared libraries""... $ac_c" 1>&6
echo "configure:2146: checking if you want to build shared libraries" >&5
d1939 4
a1942 4
# Check whether --with-shared or --without-shared was given.
if test "${with_shared+set}" = set; then
  withval="$with_shared"
  with_shared=$withval
d1944 1
a1944 1
  with_shared=no
a1946 2
echo "$ac_t""$with_shared" 1>&6
test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
d1948 37
a1984 2
echo $ac_n "checking if you want to build static libraries""... $ac_c" 1>&6
echo "configure:2160: checking if you want to build static libraries" >&5
a1985 7
# Check whether --with-normal or --without-normal was given.
if test "${with_normal+set}" = set; then
  withval="$with_normal"
  with_normal=$withval
else
  with_normal=yes
fi
d1987 2
a1988 2
echo "$ac_t""$with_normal" 1>&6
test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
a1989 2
echo $ac_n "checking if you want to build debug libraries""... $ac_c" 1>&6
echo "configure:2174: checking if you want to build debug libraries" >&5
d1991 4
a1994 4
# Check whether --with-debug or --without-debug was given.
if test "${with_debug+set}" = set; then
  withval="$with_debug"
  with_debug=$withval
d1996 1
a1996 1
  with_debug=yes
a1998 2
echo "$ac_t""$with_debug" 1>&6
test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
d2000 12
a2011 2
echo $ac_n "checking if you want to build profiling libraries""... $ac_c" 1>&6
echo "configure:2188: checking if you want to build profiling libraries" >&5
d2013 4
a2016 7
# Check whether --with-profile or --without-profile was given.
if test "${with_profile+set}" = set; then
  withval="$with_profile"
  with_profile=$withval
else
  with_profile=no
fi
d2018 1
a2018 2
echo "$ac_t""$with_profile" 1>&6
test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
d2020 6
a2025 1
###############################################################################
d2027 1
a2027 4
echo $ac_n "checking for specified models""... $ac_c" 1>&6
echo "configure:2204: checking for specified models" >&5
test -z "$cf_list_models" && cf_list_models=normal
echo "$ac_t""$cf_list_models" 1>&6
a2028 6
### Use the first model as the default, and save its suffix for use in building
### up test-applications.
echo $ac_n "checking for default model""... $ac_c" 1>&6
echo "configure:2211: checking for default model" >&5
DFT_LWR_MODEL=`echo $cf_list_models | $AWK '{print $1}'`
echo "$ac_t""$DFT_LWR_MODEL" 1>&6
d2030 2
a2032 1
DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
d2034 7
a2041 1
TINFO_NAME=tinfo
d2043 1
d2045 244
a2288 1
LIB_NAME=ncurses
d2309 1
a2309 1
echo "configure:2243: checking if you want to build a separate terminfo library" >&5
d2323 1
a2323 1
echo "configure:2257: checking if you want to link with dbmalloc for testing" >&5
d2334 1
a2334 1
if test "$with_dbmalloc" = yes ; then
d2336 1
a2336 1
echo "configure:2270: checking for debug_malloc in -ldbmalloc" >&5
d2344 1
a2344 1
#line 2278 "configure"
d2355 1
a2355 1
if { (eval echo configure:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2385 1
a2385 1
echo "configure:2319: checking if you want to link with dmalloc for testing" >&5
d2396 1
a2396 1
if test "$with_dmalloc" = yes ; then
d2398 1
a2398 1
echo "configure:2332: checking for dmalloc_debug in -ldmalloc" >&5
d2406 1
a2406 1
#line 2340 "configure"
d2417 1
a2417 1
if { (eval echo configure:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2448 1
a2448 1
echo "configure:2382: checking if you want to link with the gpm mouse library" >&5
d2459 1
a2459 1
if test "$with_gpm" = yes ; then
d2461 1
a2461 1
echo "configure:2395: checking for Gpm_Open in -lgpm" >&5
d2469 1
a2469 1
#line 2403 "configure"
d2480 1
a2480 1
if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2506 1
a2506 1
echo "configure:2440: checking for $ac_hdr" >&5
d2511 1
a2511 1
#line 2445 "configure"
d2516 1
a2516 1
{ (eval echo configure:2450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2564 1
a2564 1
echo "configure:2498: checking for default loader flags" >&5
d2574 1
a2574 1
echo "configure:2508: checking if rpath option should be used" >&5
d2596 1
a2596 1
echo "configure:2530: checking if release/abi version should be used for shared libs" >&5
d2624 1
a2624 1
	if test "$GCC" = yes
d2627 1
a2627 1
echo "configure:2561: checking which $CC option to use" >&5
d2633 1
a2633 1
#line 2567 "configure"
d2640 1
a2640 1
if { (eval echo configure:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2657 14
d2673 1
a2673 1
		if test "$GCC" = yes; then
a2684 4
		if test "$cf_cv_ld_rpath" = yes ; then
			cf_ld_rpath_opt="-Wl,-rpath,"
			EXTRA_LDFLAGS="-Wl,-rpath,\$(libdir) $EXTRA_LDFLAGS"
		fi
d2686 1
a2686 1
		if test "$GCC" != yes; then
d2693 5
a2697 3
		if test "$DFT_LWR_MODEL" = "shared" ; then
 			LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
 			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
d2699 5
a2703 3
		if test "$cf_cv_ld_rpath" = yes ; then
			cf_ld_rpath_opt="-Wl,-rpath,"
			EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
a2704 2
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
		MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@@ .$(REL_VERSION)`.$(ABI_VERSION),-stats,-lc -o $@@'
d2707 1
a2707 1
		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
d2711 1
a2711 1
		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
d2713 1
a2713 1
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
d2716 5
a2720 5
		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
		test "$cf_cv_ld_rpath" = yes && cf_ld_rpath_opt="-Wl,-rpath,"
		if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
 			LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
 			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
d2722 2
a2723 6
			MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@@'
			if test "$cf_cv_shlib_version" = auto; then
			if test ! -f /usr/libexec/ld.elf_so; then
				cf_cv_shlib_version=rel
			fi
			fi
d2733 1
d2740 3
a2742 7
		if test "$DFT_LWR_MODEL" = "shared" ; then
 			LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
 			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
		fi
		if test "$cf_cv_ld_rpath" = yes ; then
			cf_ld_rpath_opt="-rpath"
			# EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
d2748 1
a2748 1
		if test "$ac_cv_prog_gcc" != yes; then
d2751 2
a2752 2
		MK_SHARED_LIB='$(LD) -dy -G -h `basename $@@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@@'
		if test "$cf_cv_ld_rpath" = yes ; then
d2756 1
a2756 1
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
d2762 1
a2762 1
		if test "$ac_cv_prog_gcc" != yes; then
d2766 1
a2766 1
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
d2770 1
a2770 1
		if test "$ac_cv_prog_gcc" != yes; then
d2773 2
a2774 6
		MK_SHARED_LIB='$(LD) -dy -G -h `basename $@@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@@'
		if test "$DFT_LWR_MODEL" = "shared" ; then
			LOCAL_LDFLAGS="-R `pwd`/lib:\$(libdir)"
 			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
		fi
		if test "$cf_cv_ld_rpath" = yes ; then
d2776 1
a2776 1
			EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
d2778 1
a2778 1
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
d2782 1
a2782 1
		if test "$ac_cv_prog_gcc" != yes; then
d2798 9
a2806 1
			test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
d2817 1
a2817 1
echo "configure:2742: checking if we need a space after rpath option" >&5
d2819 1
a2819 1
		LIBS="$LIBS ${cf_ld_rpath_opt}$libdir"
d2821 1
a2821 1
#line 2746 "configure"
d2828 1
a2828 1
if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2840 1
a2840 1
		test "$cf_rpath_space" = yes && cf_ld_rpath_opt="$cf_ld_rpath_opt "
d2867 1
a2867 1
echo "configure:2792: checking if you wish to install ncurses overwriting curses" >&5
d2880 1
a2880 1
echo "configure:2805: checking if external terminfo-database is used" >&5
d2885 1
a2885 1
  use_database=$enableval
d2887 1
a2887 1
  use_database=yes
d2890 5
a2894 28
echo "$ac_t""$use_database" 1>&6

case $host_os in #(vi
os2*) #(vi
	TERMINFO_SRC='${top_srcdir}/misc/emx.src'
	;;
*) #(vi
	TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
	;;
esac


if test "$use_database" != no ; then
	cat >> confdefs.h <<\EOF
#define USE_DATABASE 1
EOF

	echo $ac_n "checking which terminfo source-file will be installed""... $ac_c" 1>&6
echo "configure:2833: checking which terminfo source-file will be installed" >&5
	
# Check whether --enable-database or --disable-database was given.
if test "${enable_database+set}" = set; then
  enableval="$enable_database"
  TERMINFO_SRC=$withval
fi

	echo "$ac_t""$TERMINFO_SRC" 1>&6
fi
d2897 1
a2897 1
echo "configure:2845: checking for list of fallback descriptions" >&5
a2910 7
if test "$use_database" = no ; then
	if test -z $with_fallback ; then
		{ echo "configure: error: You have disabled the database w/o specifying fallbacks" 1>&2; exit 1; }
	fi
	TERMINFO="${datadir}/terminfo"
else

d2912 1
a2912 1
echo "configure:2867: checking for list of terminfo directories" >&5
d2962 4
a2965 40
echo $ac_n "checking for default terminfo directory""... $ac_c" 1>&6
echo "configure:2918: checking for default terminfo directory" >&5

# Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
if test "${with_default_terminfo_dir+set}" = set; then
  withval="$with_default_terminfo_dir"
  :
else
  withval="${TERMINFO-${datadir}/terminfo}"
fi

case ".$withval" in #(vi
./*) #(vi
  ;;
.a-zA-Z:\\/*) #(vi OS/2 EMX
  ;;
.\${*prefix}*) #(vi
  eval withval="$withval"
  case ".$withval" in #(vi
  .NONE/*)
    withval=`echo $withval | sed -e s@@NONE@@$ac_default_prefix@@`
    ;;
  esac
  ;; #(vi
.NONE/*)
  withval=`echo $withval | sed -e s@@NONE@@$ac_default_prefix@@`
  ;;
*)
  { echo "configure: error: expected a pathname" 1>&2; exit 1; }
  ;;
esac

eval TERMINFO="$withval"

echo "$ac_t""$TERMINFO" 1>&6
cat >> confdefs.h <<EOF
#define TERMINFO "$TERMINFO"
EOF


a2967 2


d2971 1
a2971 1
echo "configure:2964: checking if big-core option selected" >&5
d2982 1
a2982 1
#line 2975 "configure"
d2987 1
a2987 7
int main() {
	unsigned long n = 6000000L;
	char *s = malloc(n);
	if (s != 0)
		s[0] = s[n-1] = 0;
	exit(s == 0);
}
d2989 1
a2989 1
if { (eval echo configure:2988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d3011 1
a3011 1
echo "configure:3010: checking if you want termcap-fallback support" >&5
d3032 1
a3032 1
echo "configure:3031: checking if fast termcap-loader is needed" >&5
d3049 1
a3049 1
echo "configure:3048: checking if translated termcaps will be cached in ~/.terminfo" >&5
d3075 1
a3075 1
echo "configure:3074: checking for $ac_func" >&5
d3080 1
a3080 1
#line 3079 "configure"
d3103 1
a3103 1
if { (eval echo configure:3102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3134 1
a3134 1
echo "configure:3133: checking for $ac_func" >&5
d3139 1
a3139 1
#line 3138 "configure"
d3162 1
a3162 1
if { (eval echo configure:3161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3188 1
a3188 1
echo "configure:3187: checking if link/symlink functions work" >&5
d3200 1
a3200 1
#line 3199 "configure"
d3229 1
a3229 1
if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d3234 7
a3256 8
	test "$ac_cv_func_link"    = yes && cat >> confdefs.h <<\EOF
#define HAVE_LINK 1
EOF

	test "$ac_cv_func_symlink" = yes && cat >> confdefs.h <<\EOF
#define HAVE_SYMLINK 1
EOF

d3265 1
a3265 1
echo "configure:3265: checking if tic should use symbolic links" >&5
d3274 1
a3274 1
echo "configure:3274: checking if tic should use hard links" >&5
d3283 1
a3283 1
echo "configure:3283: checking if tic should use symbolic links" >&5
d3307 1
a3307 1
echo "configure:3307: checking if you want broken-linker support code" >&5
d3325 1
a3325 1
echo "configure:3325: checking if tputs should process BSD-style prefix padding" >&5
d3343 1
a3343 1
echo "configure:3343: checking if RCS identifiers should be compiled-in" >&5
a3361 317
 echo $ac_n "checking format of man-pages""... $ac_c" 1>&6
echo "configure:3363: checking format of man-pages" >&5


# Check whether --with-manpage-format or --without-manpage-format was given.
if test "${with_manpage_format+set}" = set; then
  withval="$with_manpage_format"
  cf_manpage_form=$withval
else
  cf_manpage_form=unknown
fi


case ".$cf_manpage_form" in
.gzip|.compress|.BSDI|.normal|.formatted) # (vi
  ;;
.unknown|.) # (vi
  if test -z "$MANPATH" ; then
    MANPATH="/usr/man:/usr/share/man"
  fi
  # look for the 'date' man-page (it's most likely to be installed!)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  cf_manpage_form=unknown
  for cf_dir in $MANPATH; do
    test -z "$cf_dir" && cf_dir=/usr/man
    for cf_name in $cf_dir/*/date.[01]* $cf_dir/*/date
    do
       cf_test=`echo $cf_name | sed -e 's/*//'`
       if test "x$cf_test" = "x$cf_name" ; then
	  case "$cf_name" in
	  *.gz) cf_manpage_form=gzip;;
	  *.Z)  cf_manpage_form=compress;;
	  *.0)	cf_manpage_form=BSDI,formatted;;
	  *)    cf_manpage_form=normal;;
	  esac
	  break
       fi
    done
    if test "$cf_manpage_form" != "unknown" ; then
       break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
.*) # (vi
  echo "configure: warning: Unexpected manpage-format" 1>&2
  ;;
esac

echo "$ac_t""$cf_manpage_form" 1>&6


echo $ac_n "checking for manpage renaming""... $ac_c" 1>&6
echo "configure:3415: checking for manpage renaming" >&5


# Check whether --with-manpage-renames or --without-manpage-renames was given.
if test "${with_manpage_renames+set}" = set; then
  withval="$with_manpage_renames"
  cf_manpage_renames=$withval
else
  cf_manpage_renames=yes
fi


case ".$cf_manpage_renames" in #(vi
.no) #(vi
  ;;
.|.yes)
  # Debian 'man' program?
  if test -f /etc/debian_version ; then
    cf_manpage_renames=`cd $srcdir && pwd`/man/man_db.renames
  else
    cf_manpage_renames=no
  fi
  ;;
esac

if test "$cf_manpage_renames" != no ; then
  if test ! -f $cf_manpage_renames ; then
    { echo "configure: error: not a filename: $cf_manpage_renames" 1>&2; exit 1; }
  fi

  test ! -d man && mkdir man

  # Construct a sed-script to perform renaming within man-pages
  if test -n "$cf_manpage_renames" ; then
    test ! -d man && mkdir man
    $srcdir/man/make_sed.sh $cf_manpage_renames >man/edit_man.sed
  fi
fi

echo "$ac_t""$cf_manpage_renames" 1>&6


echo $ac_n "checking for manpage symlinks""... $ac_c" 1>&6
echo "configure:3458: checking for manpage symlinks" >&5


# Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
if test "${with_manpage_symlinks+set}" = set; then
  withval="$with_manpage_symlinks"
  cf_manpage_symlinks=$withval
else
  cf_manpage_symlinks=yes
fi


echo "$ac_t""$cf_manpage_symlinks" 1>&6


  if test "$prefix" = "NONE" ; then
     cf_prefix="$ac_default_prefix"
  else
     cf_prefix="$prefix"
  fi

  case "$cf_manpage_form" in # (vi
  *formatted*) # (vi
    cf_subdir='$mandir/cat'
    cf_format=yes
    ;;
  *)
    cf_subdir='$mandir/man'
    cf_format=no
    ;;
  esac

test ! -d man && mkdir man
cat >man/edit_man.sh <<CF_EOF
#! /bin/sh
# this script is generated by the configure-script
prefix="$cf_prefix"
datadir="$datadir"
TERMINFO="$TERMINFO"
MKDIRS="`cd $srcdir && pwd`/mkinstalldirs"
INSTALL="$INSTALL"
INSTALL_DATA="$INSTALL_DATA"
transform="$program_transform_name"

TMP=\${TMPDIR-/tmp}/man\$\$
trap "rm -f \$TMP" 0 1 2 5 15

verb=\$1
shift

mandir=\$1
shift

srcdir=\$1
shift

for i in \$* ; do
case \$i in #(vi
*.orig|*.rej) ;; #(vi
*.[0-9]*)
	section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
	if test \$verb = installing ; then
	if test ! -d $cf_subdir\${section} ; then
		\$MKDIRS $cf_subdir\$section
	fi
	fi
	aliases=
	source=\`basename \$i\`
	inalias=\$source
	test ! -f \$inalias && inalias="\$srcdir/\$inalias"
	if test ! -f \$inalias ; then
		echo .. skipped \$source
		continue
	fi
CF_EOF
if test "$cf_manpage_symlinks" = yes ; then
cat >>man/edit_man.sh <<CF_EOF
	aliases=\`sed -f \$srcdir/manlinks.sed \$inalias | sort -u\`
CF_EOF
fi
if test "$cf_manpage_renames" = no ; then
cat >>man/edit_man.sh <<CF_EOF
	# perform program transformations for section 1 man pages
	if test \$section = 1 ; then
		target=$cf_subdir\${section}/\`echo \$source|sed "\${transform}"\`
	else
		target=$cf_subdir\${section}/\$source
	fi

	# replace variables in man page
CF_EOF
	
	for cf_name in  captoinfo clear infocmp infotocap tic toe tput 
	do
cat >>man/edit_man.sh <<CF_EOF
	prog_$cf_name=\`echo $cf_name|sed "\${transform}"\`
CF_EOF
	done
	
cat >>man/edit_man.sh <<CF_EOF
	sed	-e "s,@@DATADIR@@,\$datadir," \\
		-e "s,@@TERMINFO@@,\$TERMINFO," \\
CF_EOF
	
	for cf_name in  captoinfo clear infocmp infotocap tic toe tput 
	do
		cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
cat >>man/edit_man.sh <<CF_EOF
		-e "s,@@$cf_NAME@@,\$prog_$cf_name," \\
CF_EOF
	done
	
cat >>man/edit_man.sh <<CF_EOF
		< \$i >\$TMP
CF_EOF
else
cat >>man/edit_man.sh <<CF_EOF
	target=\`grep "^\$source" $cf_manpage_renames | $AWK '{print \$2}'\`
	if test -z "\$target" ; then
		echo '? missing rename for '\$source
		target="\$source"
	fi
	target="$cf_subdir\$section/\$target"
	test \$verb = installing && sed -e "s,@@DATADIR@@,\$datadir," < \$i | sed -f edit_man.sed >\$TMP
CF_EOF
fi
if test $cf_format = yes ; then
cat >>man/edit_man.sh <<CF_EOF
	nroff -man \$TMP >\$TMP.out
	mv \$TMP.out \$TMP
CF_EOF
fi
case "$cf_manpage_form" in #(vi
*compress*) #(vi
cat >>man/edit_man.sh <<CF_EOF
	if test \$verb = installing ; then
	if ( compress -f \$TMP )
	then
		mv \$TMP.Z \$TMP
	fi
	fi
	target="\$target.Z"
CF_EOF
  ;;
*gzip*) #(vi
cat >>man/edit_man.sh <<CF_EOF
	if test \$verb = installing ; then
	if ( gzip -f \$TMP )
	then
		mv \$TMP.gz \$TMP
	fi
	fi
	target="\$target.gz"
CF_EOF
  ;;
*BSDI*)
cat >>man/edit_man.sh <<CF_EOF
	# BSDI installs only .0 suffixes in the cat directories
	target="\`echo \$target|sed -e 's/\.[1-9]\+.\?/.0/'\`"
CF_EOF
  ;;
esac
cat >>man/edit_man.sh <<CF_EOF
	echo \$verb \$target
	suffix=\`basename \$target | sed -e 's/^[^.]*//'\`
	if test \$verb = installing ; then
		\$INSTALL_DATA \$TMP \$target
		test -n "\$aliases" && (
			cd $cf_subdir\${section} && (
				target=\`basename \$target\`
				for cf_alias in \$aliases
				do
					if test \$section = 1 ; then
						cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
					fi

					if test -f \$cf_alias\${suffix} ; then
						if ( cmp -s \$target \$cf_alias\${suffix} )
						then
							:
						else
							echo .. \$verb alias \$cf_alias\${suffix}
							rm -f \$cf_alias\${suffix}
							$LN_S \$target \$cf_alias\${suffix}
						fi
					else
						echo .. \$verb alias \$cf_alias\${suffix}
						rm -f \$cf_alias\${suffix}
						$LN_S \$target \$cf_alias\${suffix}
					fi
				done
			)
		)
	else
		rm -f \$target
		test -n "\$aliases" && (
			cd $cf_subdir\${section} && (
				for cf_alias in \$aliases
				do
					if test \$section = 1 ; then
						cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
					fi

					echo .. \$verb alias \$cf_alias\${suffix}
					rm -f \$cf_alias\${suffix}
				done
			)
		)
	fi
	;;
esac
done
exit 0
CF_EOF
chmod 755 man/edit_man.sh



###############################################################################


d3364 1
a3364 1
echo "configure:3681: checking if you want to build with function extensions" >&5
a3376 4
#define HAVE_CURSES_VERSION 1
EOF

	cat >> confdefs.h <<\EOF
d3400 1
a3400 1
echo "configure:3721: checking for extended use of const keyword" >&5
d3411 1
a3411 1
NCURSES_CONST='/*nothing*/'
d3413 4
d3421 18
d3440 1
a3440 1
echo "configure:3739: checking if you want \$NCURSES_NO_PADDING code" >&5
d3458 1
a3458 1
echo "configure:3757: checking if you want SIGWINCH handler" >&5
d3476 1
a3476 1
echo "configure:3775: checking if you want user-definable terminal capabilities like termcap" >&5
a3491 1
# These options are relatively safe to experiment with.
d3493 2
a3494 2
echo $ac_n "checking if you want all development code""... $ac_c" 1>&6
echo "configure:3794: checking if you want all development code" >&5
d3507 2
a3508 2
echo $ac_n "checking if you want colorfgbg code""... $ac_c" 1>&6
echo "configure:3808: checking if you want colorfgbg code" >&5
d3525 2
a3526 2
echo $ac_n "checking if you want hard-tabs code""... $ac_c" 1>&6
echo "configure:3826: checking if you want hard-tabs code" >&5
a3541 74
echo $ac_n "checking if you want to use restrict environment when running as root""... $ac_c" 1>&6
echo "configure:3843: checking if you want to use restrict environment when running as root" >&5

# Check whether --enable-root-environ or --disable-root-environ was given.
if test "${enable_root_environ+set}" = set; then
  enableval="$enable_root_environ"
  with_root_environ=$enableval
else
  with_root_environ=yes
fi

echo "$ac_t""$with_root_environ" 1>&6
test "$with_root_environ" = yes && cat >> confdefs.h <<\EOF
#define USE_ROOT_ENVIRON 1
EOF


###   use option --enable-xmc-glitch to turn on use of magic-cookie optimize
echo $ac_n "checking if you want limited support for xmc""... $ac_c" 1>&6
echo "configure:3861: checking if you want limited support for xmc" >&5

# Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
if test "${enable_xmc_glitch+set}" = set; then
  enableval="$enable_xmc_glitch"
  with_xmc_glitch=$enableval
else
  with_xmc_glitch=$with_develop
fi

echo "$ac_t""$with_xmc_glitch" 1>&6
test "$with_xmc_glitch" = yes && cat >> confdefs.h <<\EOF
#define USE_XMC_SUPPORT 1
EOF


###############################################################################
# These are just experimental, probably should not be in a package:


echo $ac_n "checking if you do not want to assume colors are white-on-black""... $ac_c" 1>&6
echo "configure:3882: checking if you do not want to assume colors are white-on-black" >&5

# Check whether --enable-assumed-color or --disable-assumed-color was given.
if test "${enable_assumed_color+set}" = set; then
  enableval="$enable_assumed_color"
  with_assumed_color=$enableval
else
  with_assumed_color=yes
fi

echo "$ac_t""$with_assumed_color" 1>&6
test "$with_assumed_color" = yes && cat >> confdefs.h <<\EOF
#define USE_ASSUMED_COLOR 1
EOF


###   use option --enable-hashmap to turn on use of hashmap scrolling logic
echo $ac_n "checking if you want hashmap scrolling-optimization code""... $ac_c" 1>&6
echo "configure:3900: checking if you want hashmap scrolling-optimization code" >&5

# Check whether --enable-hashmap or --disable-hashmap was given.
if test "${enable_hashmap+set}" = set; then
  enableval="$enable_hashmap"
  with_hashmap=$enableval
else
  with_hashmap=yes
fi

echo "$ac_t""$with_hashmap" 1>&6
test "$with_hashmap" = yes && cat >> confdefs.h <<\EOF
#define USE_HASHMAP 1
EOF


d3543 1
a3543 1
echo "configure:3917: checking if you want experimental safe-sprintf code" >&5
d3563 1
a3563 1
echo "configure:3937: checking if you want to experiment without scrolling-hints code" >&5
d3582 1
a3582 1
echo "configure:3956: checking if you want experimental wide-character code" >&5
d3601 18
a3622 2
echo $ac_n "checking if you want to display full commands during build""... $ac_c" 1>&6
echo "configure:3980: checking if you want to display full commands during build" >&5
a3636 1
echo "$ac_t""$with_echo" 1>&6
a3639 2
echo $ac_n "checking if you want to see compiler warnings""... $ac_c" 1>&6
echo "configure:4000: checking if you want to see compiler warnings" >&5
d3650 1
a3650 1
if test "$GCC" = yes
d3653 1
a3653 1
#line 4014 "configure"
d3657 1
a3657 1
echo "configure:4018: checking for $CC warning options" >&5
d3675 1
a3675 1
		if { (eval echo configure:4036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a3686 1
echo "$ac_t""$with_warnings" 1>&6
d3688 1
a3688 1
if test "$GCC" = yes
d3704 1
a3704 1
if test "$GCC" = yes
d3707 1
a3707 1
echo "configure:4069: checking for $CC __attribute__ directives" >&5
d3709 1
a3709 1
#line 4071 "configure"
d3731 1
a3731 1
CF_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
d3747 1
a3747 1
		if { (eval echo configure:4109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a3761 2
echo $ac_n "checking if you want to enable runtime assertions""... $ac_c" 1>&6
echo "configure:4125: checking if you want to enable runtime assertions" >&5
a3770 1
echo "$ac_t""$with_assertions" 1>&6
d3773 1
a3773 1
	if test "$with_assertions" = no
d3790 1
a3790 1
  test "$enableval" = no && cat >> confdefs.h <<\EOF
d3806 1
a3806 1
  test "$enableval" = yes && cat >> confdefs.h <<\EOF
d3818 1
a3818 1
  test "$enableval" = no && cat >> confdefs.h <<\EOF
d3827 1
a3827 1
echo "configure:4192: checking for gettimeofday" >&5
d3832 1
a3832 1
#line 4197 "configure"
d3855 1
a3855 1
if { (eval echo configure:4220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3878 1
a3878 1
echo "configure:4243: checking for gettimeofday in -lbsd" >&5
d3886 1
a3886 1
#line 4251 "configure"
d3897 1
a3897 1
if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3925 1
a3925 1
echo "configure:4290: checking if -lm needed for math functions" >&5
d3931 1
a3931 1
#line 4296 "configure"
d3941 1
a3941 1
if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3963 1
a3963 1
echo "configure:4328: checking for ANSI C header files" >&5
d3968 1
a3968 1
#line 4333 "configure"
d3976 1
a3976 1
{ (eval echo configure:4341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3993 1
a3993 1
#line 4358 "configure"
d4011 1
a4011 1
#line 4376 "configure"
d4032 1
a4032 1
#line 4397 "configure"
d4043 1
a4043 1
if { (eval echo configure:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4071 1
a4071 1
echo "configure:4436: checking for $ac_hdr that defines DIR" >&5
d4076 1
a4076 1
#line 4441 "configure"
d4084 1
a4084 1
if { (eval echo configure:4449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4109 1
a4109 1
echo "configure:4474: checking for opendir in -ldir" >&5
d4117 1
a4117 1
#line 4482 "configure"
d4128 1
a4128 1
if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4150 1
a4150 1
echo "configure:4515: checking for opendir in -lx" >&5
d4158 1
a4158 1
#line 4523 "configure"
d4169 1
a4169 1
if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4193 1
a4193 1
echo "configure:4558: checking for regular-expression headers" >&5
d4199 1
a4199 1
#line 4564 "configure"
d4212 1
a4212 1
if { (eval echo configure:4577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4221 1
a4221 1
#line 4586 "configure"
d4231 1
a4231 1
if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4242 1
a4242 1
#line 4607 "configure"
d4252 1
a4252 1
if { (eval echo configure:4617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4300 2
d4308 1
a4308 1
echo "configure:4671: checking for $ac_hdr" >&5
d4313 1
a4313 1
#line 4676 "configure"
d4318 1
a4318 1
{ (eval echo configure:4681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4349 1
a4349 1
echo "configure:4712: checking for main in -lcposix" >&5
d4357 1
a4357 1
#line 4720 "configure"
d4364 1
a4364 1
if { (eval echo configure:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4392 1
a4392 1
echo "configure:4755: checking for bzero in -linet" >&5
d4400 1
a4400 1
#line 4763 "configure"
d4411 1
a4411 1
if { (eval echo configure:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4430 40
d4474 1
a4474 1
echo "configure:4797: checking if sys/time.h works with sys/select.h" >&5
d4480 1
a4480 1
#line 4803 "configure"
d4484 1
a4484 1
#ifdef HAVE_SYS_TIME_H
d4487 1
a4487 1
#ifdef HAVE_SYS_SELECT_H
d4495 1
a4495 1
if { (eval echo configure:4818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4509 1
a4509 1
test "$cf_cv_sys_time_select" = yes && cat >> confdefs.h <<\EOF
d4524 1
a4524 1
echo "configure:4847: checking for working const" >&5
d4529 1
a4529 1
#line 4852 "configure"
d4578 1
a4578 1
if { (eval echo configure:4901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4599 1
a4599 1
echo "configure:4922: checking for inline" >&5
d4606 1
a4606 1
#line 4929 "configure"
d4613 1
a4613 1
if { (eval echo configure:4936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4638 1
a4638 1
test "$ac_cv_c_inline" != no && cat >> confdefs.h <<\EOF
d4645 1
a4645 1
echo "configure:4968: checking if unsigned literals are legal" >&5
d4651 1
a4651 1
#line 4974 "configure"
d4658 1
a4658 1
if { (eval echo configure:4981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4676 1
a4676 1
echo "configure:4999: checking for type of chtype" >&5
d4685 1
a4685 1
#line 5008 "configure"
d4688 1
a4688 1
#ifdef USE_WIDEC_SUPPORT
d4700 1
a4700 1
#ifdef USE_WIDEC_SUPPORT
d4731 1
a4731 1
if { (eval echo configure:5054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4764 1
a4764 1
echo "configure:5087: checking for number of bits in chtype" >&5
d4773 1
a4773 1
#line 5096 "configure"
d4796 1
a4796 1
if { (eval echo configure:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4816 1
a4816 1
echo "configure:5139: checking for width of character-index" >&5
d4843 1
a4843 1
echo "configure:5166: checking if external errno is declared" >&5
d4849 1
a4849 1
#line 5172 "configure"
d4862 1
a4862 1
if { (eval echo configure:5185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4882 1
a4882 1
cf_result=`echo "$cf_result" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
d4893 1
a4893 1
echo "configure:5216: checking if external errno exists" >&5
d4899 1
a4899 1
#line 5222 "configure"
d4909 1
a4909 1
if { (eval echo configure:5232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4928 1
a4928 1
cf_result=`echo "$cf_result" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
d4941 1
a4941 1
echo "configure:5264: checking if data-only library module links" >&5
d4948 1
a4948 1
#line 5271 "configure"
d4951 1
a4951 1
		if { (eval echo configure:5274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } ; then
d4957 1
a4957 1
#line 5280 "configure"
d4970 1
a4970 1
		if { (eval echo configure:5293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4982 1
a4982 1
#line 5305 "configure"
d4992 1
a4992 1
if { (eval echo configure:5315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5009 1
a5009 1
test "$cf_cv_link_dataonly" = no && cat >> confdefs.h <<\EOF
d5015 51
a5068 2
getegid \
geteuid \
a5069 1
issetugid \
d5083 1
d5092 1
a5092 1
echo "configure:5366: checking for $ac_func" >&5
d5097 1
a5097 1
#line 5371 "configure"
d5120 1
a5120 1
if { (eval echo configure:5394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5147 1
a5147 1
echo "configure:5421: checking for terminal-capability database functions" >&5
d5153 1
a5153 1
#line 5427 "configure"
d5168 1
a5168 1
if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5182 1
a5182 1
test "$cf_cv_cgetent" = yes && cat >> confdefs.h <<\EOF
d5191 1
a5191 1
echo "configure:5465: checking for isascii" >&5
d5197 1
a5197 1
#line 5471 "configure"
d5204 1
a5204 1
if { (eval echo configure:5478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5217 1
a5217 1
test "$cf_cv_have_isascii" = yes && cat >> confdefs.h <<\EOF
d5223 1
a5223 1
if test "$ac_cv_func_sigaction" = yes; then
d5225 1
a5225 1
echo "configure:5499: checking whether sigaction needs _POSIX_SOURCE" >&5
d5227 1
a5227 1
#line 5501 "configure"
d5236 1
a5236 1
if { (eval echo configure:5510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5245 1
a5245 1
#line 5519 "configure"
d5255 1
a5255 1
if { (eval echo configure:5529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5275 1
a5275 87
for ac_hdr in \
termio.h \
termios.h \
unistd.h \

do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:5557: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5562 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

if test "$ISC" = yes ; then
	for ac_hdr in sys/termio.h 
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:5598: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5603 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

fi
if test "$ac_cv_header_termios_h" = yes ; then
d5281 1
a5281 1
	if test "$termios_bad" = maybe ; then
d5283 1
a5283 1
echo "configure:5643: checking whether termios.h needs _POSIX_SOURCE" >&5
d5285 1
a5285 1
#line 5645 "configure"
d5292 1
a5292 1
if { (eval echo configure:5652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5301 1
a5301 1
#line 5661 "configure"
d5310 1
a5310 1
if { (eval echo configure:5670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5330 50

echo $ac_n "checking for tcgetattr""... $ac_c" 1>&6
echo "configure:5693: checking for tcgetattr" >&5
if eval "test \"`echo '$''{'cf_cv_have_tcgetattr'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 5699 "configure"
#include "confdefs.h"

#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#define TTY struct termios
#else
#ifdef HAVE_TERMIO_H
#include <termio.h>
#define TTY struct termio
#endif
#endif

int main() {

TTY foo;
tcgetattr(1, &foo);
; return 0; }
EOF
if { (eval echo configure:5722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  cf_cv_have_tcgetattr=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_cv_have_tcgetattr=no
fi
rm -f conftest*
fi

echo "$ac_t""$cf_cv_have_tcgetattr" 1>&6
test "$cf_cv_have_tcgetattr" = yes && cat >> confdefs.h <<\EOF
#define HAVE_TCGETATTR 1
EOF



d5335 1
a5335 1
echo "configure:5745: checking whether setvbuf arguments are reversed" >&5
d5343 1
a5343 1
#line 5753 "configure"
d5357 1
a5357 1
if { (eval echo configure:5767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5382 1
a5382 1
echo "configure:5792: checking return type of signal handlers" >&5
d5387 1
a5387 1
#line 5797 "configure"
d5404 1
a5404 1
if { (eval echo configure:5814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5424 1
a5424 1
echo "configure:5834: checking for type sigaction_t" >&5
d5430 1
a5430 1
#line 5840 "configure"
d5438 1
a5438 1
if { (eval echo configure:5848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5451 1
a5451 1
test "$cf_cv_type_sigaction" = yes && cat >> confdefs.h <<\EOF
a5456 1

d5458 1
a5458 1
echo "configure:5869: checking declaration of size-change" >&5
d5472 1
a5472 1
#line 5883 "configure"
d5475 1
a5475 1
#ifdef HAVE_TERMIOS_H
d5478 1
a5478 1
#ifdef HAVE_TERMIO_H
d5482 1
a5482 1
#ifdef NEED_PTEM_H
d5511 1
a5511 1
if { (eval echo configure:5922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5525 4
a5528 1
		test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
d5532 1
a5532 1

d5536 1
a5536 2
if test "$cf_cv_sizechange" != no ; then
	cat >> confdefs.h <<\EOF
a5539 9
	case $cf_cv_sizechange in #(vi
	NEED*)
		cat >> confdefs.h <<EOF
#define $cf_cv_sizechange  1
EOF

		;;
	esac
fi
d5543 1
a5543 1
echo "configure:5961: checking for memmove" >&5
d5548 1
a5548 1
#line 5966 "configure"
d5571 1
a5571 1
if { (eval echo configure:5989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5590 1
a5590 1
echo "configure:6008: checking for bcopy" >&5
d5595 1
a5595 1
#line 6013 "configure"
d5618 1
a5618 1
if { (eval echo configure:6036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5634 1
a5634 1
echo "configure:6052: checking if bcopy does overlapping moves" >&5
d5643 1
a5643 1
#line 6061 "configure"
d5656 1
a5656 1
if { (eval echo configure:6074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5678 1
a5678 1
	if test "$cf_cv_good_bcopy" = yes ; then
d5694 1
a5694 1
echo "configure:6112: checking if poll really works" >&5
d5703 1
a5703 1
#line 6121 "configure"
d5723 1
a5723 1
if { (eval echo configure:6141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5750 2
a5751 2
echo $ac_n "checking for builtin bool type""... $ac_c" 1>&6
echo "configure:6169: checking for builtin bool type" >&5
d5757 1
a5757 1
#line 6175 "configure"
d5767 1
a5767 1
if { (eval echo configure:6185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5780 1
a5780 1
if test "$cf_cv_cc_bool_type" = 1
d5804 1
a5804 1
echo "configure:6222: checking for library $cf_stdcpp_libname" >&5
d5812 1
a5812 1
#line 6230 "configure"
d5823 1
a5823 1
if { (eval echo configure:6241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5838 1
a5838 1
test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
d5841 6
a5846 7
	if test "$GXX" = yes; then
		case "`${CXX-g++} --version`" in
		1*|2.0-6*)
			cf_cxx_library=yes
			;;
		2.7*)
			
d5856 1
a5856 1
if test "$ac_cv_prog_gxx" = yes; then
d5858 1
a5858 1
echo "configure:6277: checking for lib$cf_gpp_libname" >&5
d5862 1
a5862 1
#line 6281 "configure"
d5871 1
a5871 1
if { (eval echo configure:6290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5891 1
a5891 1
#line 6310 "configure"
d5900 1
a5900 1
if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5921 5
a5925 8
			;;
		*)
			cf_cxx_library=no
			;;
		esac
	else
		cf_cxx_library=no
	fi
d5927 1
a5927 1
echo "configure:6349: checking how to run the C++ preprocessor" >&5
d5940 1
a5940 1
#line 6362 "configure"
d5945 1
a5945 1
{ (eval echo configure:6367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5973 1
a5973 1
echo "configure:6395: checking for $ac_hdr" >&5
d5978 1
a5978 1
#line 6400 "configure"
d5983 1
a5983 1
{ (eval echo configure:6405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6010 2
a6011 2
echo $ac_n "checking for builtin bool type""... $ac_c" 1>&6
echo "configure:6433: checking for builtin bool type" >&5
d6017 1
a6017 1
#line 6439 "configure"
d6027 1
a6027 1
if { (eval echo configure:6449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6040 1
a6040 1
if test "$cf_cv_builtin_bool" = 1
d6046 2
a6047 2
echo $ac_n "checking for size of bool""... $ac_c" 1>&6
echo "configure:6469: checking for size of bool" >&5
d6057 1
a6057 1
#line 6479 "configure"
d6065 1
a6065 1
#ifdef HAVE_GXX_BUILTIN_H
d6089 1
a6089 1
if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6113 1
a6113 1
echo "configure:6535: checking for special defines needed for etip.h" >&5
d6124 1
a6124 1
#line 6546 "configure"
d6133 1
a6133 1
if { (eval echo configure:6555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6158 1
a6158 1
if test "$CXX" = yes ; then
d6160 1
a6160 1
echo "configure:6582: checking if $CXX accepts parameter initialization" >&5
d6176 1
a6176 1
#line 6598 "configure"
d6197 1
a6197 1
if { (eval echo configure:6619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6239 1
a6239 1
echo "configure:6661: checking for fallback type of bool" >&5
d6255 1
a6255 1
echo "configure:6677: checking for $ac_word" >&5
d6309 2
a6310 2
echo "configure:6731: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_M4_exists'+set}'`\" = set"; then
d6313 2
a6314 2
  if test -n "$M4_exists"; then
  ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
d6321 1
a6321 1
      ac_cv_prog_M4_exists="yes"
d6326 1
a6326 1
  test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
d6329 3
a6331 3
M4_exists="$ac_cv_prog_M4_exists"
if test -n "$M4_exists"; then
  echo "$ac_t""$M4_exists" 1>&6
d6336 1
a6336 1
   if test "$ac_cv_prog_M4_exists" = no; then
d6342 1
a6342 1
echo "configure:6764: checking if GNAT works" >&5
d6462 5
d6474 1
a6474 1
	if test "$GCC" = yes; then
d6491 1
a6491 1
echo "configure:6908: checking for library subsets" >&5
d6514 1
a6514 1
if test "$GCC" != yes; then
d6532 1
a6532 1
if test "$GCC" != yes; then
d6548 1
a6548 1
echo "configure:6965: checking default library suffix" >&5
d6560 1
a6560 1
echo "configure:6977: checking default library-dependency suffix" >&5
d6569 9
d6586 1
a6586 1
echo "configure:6994: checking default object directory" >&5
d6597 1
a6597 1
test "$with_termlib" = yes && SHLIB_LIST="$SHLIB_LIST -ltinfo${LIB_SUFFIX}"
d6600 1
a6600 1
echo "configure:7008: checking where we will install curses.h" >&5
d6624 1
a6624 1
echo "configure:7032: checking for src modules" >&5
d6660 1
a6660 1
cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
d6689 1
a6689 1
test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
d6826 1
a6826 1
    echo "$CONFIG_STATUS generated by autoconf version 2.13.20000819"
a6841 1
	misc/run_tic.sh:misc/run_tic.in \
a6887 10
s%@@target@@%$target%g
s%@@target_alias@@%$target_alias%g
s%@@target_cpu@@%$target_cpu%g
s%@@target_vendor@@%$target_vendor%g
s%@@target_os@@%$target_os%g
s%@@build@@%$build%g
s%@@build_alias@@%$build_alias%g
s%@@build_cpu@@%$build_cpu%g
s%@@build_vendor@@%$build_vendor%g
s%@@build_os@@%$build_os%g
a6900 2
s%@@MAKE_LOWER_TAGS@@%$MAKE_LOWER_TAGS%g
s%@@MAKE_UPPER_TAGS@@%$MAKE_UPPER_TAGS%g
d6908 1
a6908 1
s%@@DESTDIR@@%$DESTDIR%g
a6927 1
s%@@TERMINFO_SRC@@%$TERMINFO_SRC%g
a6929 1
s%@@TERMINFO@@%$TERMINFO%g
d6939 2
d6945 1
a6945 1
s%@@M4_exists@@%$M4_exists%g
a7011 1
	misc/run_tic.sh:misc/run_tic.in \
a7188 1
TERMINFO="$TERMINFO"
a7197 1
cf_cv_shlib_version="$cf_cv_shlib_version"
d7230 9
a7244 8
			if test $cf_item = shared ; then
			if test "$cf_cv_do_symlinks" = yes ; then
				case "$cf_cv_shlib_version" in #(vi
				rel) cf_suffix="$cf_suffix"'.$(REL_VERSION)' ;; #(vi
				abi) cf_suffix="$cf_suffix"'.$(ABI_VERSION)' ;;
				esac
			fi
			fi
d7249 1
a7249 1
			case "$LIB_SUBSETS" in #(vi
d7271 1
a7271 1
CF_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
d7281 9
a7329 1
				ShlibVer=$cf_cv_shlib_version \
a7415 12
# Special case: tack's manpage lives in its own directory.
if test -d tack ; then
if test -f $srcdir/$tack.h; then
cat >> Makefile <<CF_EOF

install.man \
uninstall.man ::
	cd tack && \$(MAKE) \$(CF_MFLAGS) \$@@
CF_EOF
fi
fi

d7447 1
a7447 1
	eval \$PRG \$TMPSRC \$DST/\`basename \$SRC\`
d7462 1
a7462 1
\$(DESTDIR)\$(includedir) :
d7467 1
a7467 1
install.includes :: \$(AUTO_SRC) \$(DESTDIR)\$(includedir) \\
d7478 2
a7479 2
			echo "	@@ (cd \$(DESTDIR)\$(includedir) && rm -f `basename $i`) ; ../headers.sh \$(INSTALL_DATA) \$(DESTDIR)\$(includedir) \$(srcdir) $i" >>$cf_dir/Makefile
			test $i = curses.h && echo "	@@ (cd \$(DESTDIR)\$(includedir) && rm -f ncurses.h && \$(LN_S) curses.h ncurses.h)" >>$cf_dir/Makefile
d7491 2
a7492 2
			echo "	-@@ (cd \$(DESTDIR)\$(includedir) && rm -f $i)" >>$cf_dir/Makefile
			test $i = curses.h && echo "	-@@ (cd \$(DESTDIR)\$(includedir) && rm -f ncurses.h)" >>$cf_dir/Makefile
@


1.1.1.5
log
@Import ncurses-5.2-20010512 onto the vendor branch

Obtained from: ftp://dickey.his.com/ncurses/
@
text
@d3 1
a3 1
# From configure.in Revision: 1.233 
a195 1
  --without-curses-h      install curses.h as ncurses.h only
a197 1
  --with-libtool          generate libraries with libtool
d201 2
a204 2
  --with-profile          generate profile-libraries
  --with-termlib          generate separate terminfo library
d215 2
a218 2
  --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
  --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
a224 1
  --with-ospeed=TYPE      override type of ospeed variable
a227 2
EOF
cat <<EOF
d232 2
a233 1
  --with-manpage-tbl      specify manpage processing with tbl
a241 2
EOF
cat <<EOF
d246 2
a255 2
EOF
cat <<EOF
d260 2
d671 1
a671 1
echo "configure:676: checking host system type" >&5
d692 1
a692 1
echo "configure:697: checking target system type" >&5
d710 1
a710 1
echo "configure:715: checking build system type" >&5
d803 1
a803 1
echo "configure:808: checking for prefix" >&5
d807 1
a807 1
	openbsd*|netbsd*|freebsd*|linux*|cygwin*)
d818 1
a818 1
echo "configure:823: checking for default include-directory" >&5
d848 1
a848 1
echo "configure:853: checking for $ac_word" >&5
d878 1
a878 1
echo "configure:883: checking for $ac_word" >&5
d929 1
a929 1
echo "configure:934: checking for $ac_word" >&5
d961 1
a961 1
echo "configure:966: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d972 1
a972 1
#line 977 "configure"
d977 1
a977 1
if { (eval echo configure:982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1003 1
a1003 1
echo "configure:1008: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d1008 1
a1008 1
echo "configure:1013: checking whether we are using GNU C" >&5
d1017 1
a1017 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1036 1
a1036 1
echo "configure:1041: checking whether ${CC-cc} accepts -g" >&5
d1069 1
a1069 1
echo "configure:1074: checking version of gcc" >&5
d1078 1
a1078 1
echo "configure:1083: checking for $ac_word" >&5
d1112 1
a1112 1
echo "configure:1117: checking how to run the C preprocessor" >&5
d1127 1
a1127 1
#line 1132 "configure"
d1133 1
a1133 1
{ (eval echo configure:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1144 1
a1144 1
#line 1149 "configure"
d1150 1
a1150 1
{ (eval echo configure:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1161 1
a1161 1
#line 1166 "configure"
d1167 1
a1167 1
{ (eval echo configure:1172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1193 1
a1193 1
echo "configure:1198: checking whether ${CC-cc} needs -traditional" >&5
d1199 1
a1199 1
#line 1204 "configure"
d1217 1
a1217 1
#line 1222 "configure"
d1239 1
a1239 1
echo "configure:1244: checking for POSIXized ISC" >&5
d1261 1
a1261 1
echo "configure:1266: checking for ${CC-cc} option to accept ANSI C" >&5
a1267 1
cf_save_CPPFLAGS="$CPPFLAGS"
d1283 1
a1283 19
	
for cf_add_cflags in $cf_arg
do
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case "$CPPFLAGS" in
		*$cf_add_cflags)
			;;
		*)
			CPPFLAGS="$CPPFLAGS $cf_add_cflags"
			;;
		esac
		;;
	*)
		CFLAGS="$CFLAGS $cf_add_cflags"
		;;
	esac
done

d1285 1
a1285 1
#line 1309 "configure"
d1301 1
a1301 1
if { (eval echo configure:1325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1310 1
CPPFLAGS="$cf_save_CPPFLAGS"
d1318 1
a1318 19
	
for cf_add_cflags in $cf_cv_ansi_cc
do
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case "$CPPFLAGS" in
		*$cf_add_cflags)
			;;
		*)
			CPPFLAGS="$CPPFLAGS $cf_add_cflags"
			;;
		esac
		;;
	*)
		CFLAGS="$CFLAGS $cf_add_cflags"
		;;
	esac
done

d1342 2
a1343 3
    CFLAGS="$CFLAGS -Zmt"
    CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
    CXXFLAGS="$CXXFLAGS -Zmt"
d1362 1
a1362 1
echo "configure:1406: checking for $ac_word" >&5
d1399 1
a1399 1
echo "configure:1443: checking if you want to ensure bool is consistent with C++" >&5
d1419 1
a1419 1
echo "configure:1463: checking for $ac_word" >&5
d1451 1
a1451 1
echo "configure:1495: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
d1462 1
a1462 1
#line 1506 "configure"
d1467 1
a1467 1
if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1493 1
a1493 1
echo "configure:1537: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
d1498 1
a1498 1
echo "configure:1542: checking whether we are using GNU C++" >&5
d1507 1
a1507 1
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1526 1
a1526 1
echo "configure:1570: checking whether ${CXX-g++} accepts -g" >&5
d1570 1
a1570 1
echo "configure:1614: checking if you want to build C++ binding and demo" >&5
d1583 1
a1583 1
echo "configure:1627: checking if you want to build with Ada95" >&5
d1596 1
a1596 1
echo "configure:1640: checking if you want to build programs such as tic" >&5
a1607 13
echo $ac_n "checking if you wish to install curses.h""... $ac_c" 1>&6
echo "configure:1653: checking if you wish to install curses.h" >&5

# Check whether --with-curses-h or --without-curses-h was given.
if test "${with_curses_h+set}" = set; then
  withval="$with_curses_h"
  with_curses_h=$withval
else
  with_curses_h=yes
fi

echo "$ac_t""$with_curses_h" 1>&6

d1638 1
a1638 1
echo "configure:1695: checking for $ac_word" >&5
d1668 1
a1668 1
echo "configure:1725: checking whether ${MAKE-make} sets \${MAKE}" >&5
d1706 1
a1706 1
echo "configure:1763: checking for a BSD compatible install" >&5
d1762 1
a1762 1
  cf_dir=`echo $INSTALL | sed -e 's:/[^/]*$::'`
d1769 1
a1769 1
echo "configure:1826: checking for long file names" >&5
d1814 1
a1814 1
echo "configure:1871: checking if filesystem supports mixed-case filenames" >&5
d1837 1
a1837 1
echo "configure:1894: checking whether ln -s works" >&5
d1860 1
a1860 1
echo "configure:1917: checking for $ac_word" >&5
d1892 1
a1892 1
echo "configure:1949: checking for $ac_word" >&5
d1924 1
a1924 1
echo "configure:1981: checking for $ac_word" >&5
d1974 1
a1974 1
echo "configure:2031: checking for $ac_word" >&5
d2008 1
a2008 1
echo "configure:2065: checking for $ac_word" >&5
d2044 1
a2044 1
echo "configure:2101: checking for loader (symbol LD)" >&5
d2058 1
a2058 1
echo "configure:2115: checking for archiver (symbol AR)" >&5
d2072 1
a2072 1
echo "configure:2129: checking for archiver options (symbol AR_OPTS)" >&5
d2084 1
a2084 1
echo "configure:2141: checking for makeflags variable" >&5
d2120 1
a2120 1
echo "configure:2177: checking if you have specified an install-prefix" >&5
a2143 20
echo $ac_n "checking if you want to build libraries with libtool""... $ac_c" 1>&6
echo "configure:2202: checking if you want to build libraries with libtool" >&5

# Check whether --with-libtool or --without-libtool was given.
if test "${with_libtool+set}" = set; then
  withval="$with_libtool"
  with_libtool=$withval
else
  with_libtool=no
fi

echo "$ac_t""$with_libtool" 1>&6
if test "$with_libtool" = "yes"; then
	cf_list_models="$cf_list_models libtool"
	test -z "$LIBTOOL" && LIBTOOL=libtool
else
	LIBTOOL=""
fi


d2145 1
a2145 1
echo "configure:2222: checking if you want to build shared libraries" >&5
d2159 1
a2159 1
echo "configure:2236: checking if you want to build static libraries" >&5
d2173 1
a2173 1
echo "configure:2250: checking if you want to build debug libraries" >&5
d2187 1
a2187 1
echo "configure:2264: checking if you want to build profiling libraries" >&5
d2203 1
a2203 1
echo "configure:2280: checking for specified models" >&5
a2204 1
test "$with_libtool" = "yes" && cf_list_models=libtool
d2210 1
a2210 1
echo "configure:2288: checking for default model" >&5
d2227 1
a2227 2
	OS/2*)	LIB_PREFIX=''     ;;
	os2*)	LIB_PREFIX=''     ;;
d2242 1
a2242 1
echo "configure:2321: checking if you want to build a separate terminfo library" >&5
d2256 1
a2256 1
echo "configure:2335: checking if you want to link with dbmalloc for testing" >&5
d2269 1
a2269 1
echo "configure:2348: checking for debug_malloc in -ldbmalloc" >&5
d2277 1
a2277 1
#line 2356 "configure"
d2288 1
a2288 1
if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2318 1
a2318 1
echo "configure:2397: checking if you want to link with dmalloc for testing" >&5
d2331 1
a2331 1
echo "configure:2410: checking for dmalloc_debug in -ldmalloc" >&5
d2339 1
a2339 1
#line 2418 "configure"
d2350 1
a2350 1
if { (eval echo configure:2429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2381 1
a2381 1
echo "configure:2460: checking if you want to link with the gpm mouse library" >&5
d2394 1
a2394 1
echo "configure:2473: checking for Gpm_Open in -lgpm" >&5
d2402 1
a2402 1
#line 2481 "configure"
d2413 1
a2413 1
if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2439 1
a2439 1
echo "configure:2518: checking for $ac_hdr" >&5
d2444 1
a2444 1
#line 2523 "configure"
d2449 1
a2449 1
{ (eval echo configure:2528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2497 1
a2497 1
echo "configure:2576: checking for default loader flags" >&5
a2498 1
libtool) LD_MODEL=''   ;;
d2507 1
a2507 1
echo "configure:2587: checking if rpath option should be used" >&5
d2529 1
a2529 1
echo "configure:2609: checking if release/abi version should be used for shared libs" >&5
d2560 1
a2560 1
echo "configure:2640: checking which $CC option to use" >&5
d2566 1
a2566 1
#line 2646 "configure"
d2573 1
a2573 1
if { (eval echo configure:2653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2741 1
a2741 1
echo "configure:2821: checking if we need a space after rpath option" >&5
d2745 1
a2745 1
#line 2825 "configure"
d2752 1
a2752 1
if { (eval echo configure:2832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2791 1
a2791 1
echo "configure:2871: checking if you wish to install ncurses overwriting curses" >&5
d2798 1
a2798 1
  if test "$prefix" != "/usr/local" ; then with_overwrite=yes; else with_overwrite=no; fi
d2804 1
a2804 1
echo "configure:2884: checking if external terminfo-database is used" >&5
d2832 1
a2832 1
echo "configure:2912: checking which terminfo source-file will be installed" >&5
d2844 1
a2844 1
echo "configure:2924: checking for list of fallback descriptions" >&5
d2866 1
a2866 10
echo "configure:2946: checking for list of terminfo directories" >&5

	case $cf_cv_system_name in
	os2*)	PATHSEP=';'  ;;
	*)	PATHSEP=':'  ;;
	esac

	


d2877 1
a2877 1
IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATHSEP}"
d2885 1
a2885 1
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
d2917 1
a2917 1
echo "configure:3006: checking for default terminfo directory" >&5
d2930 1
a2930 1
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
d2963 1
a2963 1
echo "configure:3052: checking if big-core option selected" >&5
d2974 1
a2974 1
#line 3063 "configure"
d2987 1
a2987 1
if { (eval echo configure:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d3009 1
a3009 1
echo "configure:3098: checking if you want termcap-fallback support" >&5
d3030 1
a3030 1
echo "configure:3119: checking if fast termcap-loader is needed" >&5
d3047 1
a3047 1
echo "configure:3136: checking if translated termcaps will be cached in ~/.terminfo" >&5
d3073 1
a3073 1
echo "configure:3162: checking for $ac_func" >&5
d3078 1
a3078 1
#line 3167 "configure"
d3101 1
a3101 1
if { (eval echo configure:3190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3132 1
a3132 1
echo "configure:3221: checking for $ac_func" >&5
d3137 1
a3137 1
#line 3226 "configure"
d3160 1
a3160 1
if { (eval echo configure:3249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3186 1
a3186 1
echo "configure:3275: checking if link/symlink functions work" >&5
d3198 1
a3198 1
#line 3287 "configure"
d3227 1
a3227 1
if { (eval echo configure:3316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d3264 1
a3264 1
echo "configure:3353: checking if tic should use symbolic links" >&5
d3273 1
a3273 1
echo "configure:3362: checking if tic should use hard links" >&5
d3282 1
a3282 1
echo "configure:3371: checking if tic should use symbolic links" >&5
d3306 1
a3306 1
echo "configure:3395: checking if you want broken-linker support code" >&5
a3321 15
###   use option --with-ospeed to override ospeed's type
echo $ac_n "checking for type of ospeed""... $ac_c" 1>&6
echo "configure:3413: checking for type of ospeed" >&5

# Check whether --with-ospeed or --without-ospeed was given.
if test "${with_ospeed+set}" = set; then
  withval="$with_ospeed"
  NCURSES_OSPEED=$withval
else
  NCURSES_OSPEED=short
fi

echo "$ac_t""$NCURSES_OSPEED" 1>&6


d3324 1
a3324 1
echo "configure:3428: checking if tputs should process BSD-style prefix padding" >&5
d3342 1
a3342 1
echo "configure:3446: checking if RCS identifiers should be compiled-in" >&5
d3361 2
a3362 4


echo $ac_n "checking format of man-pages""... $ac_c" 1>&6
echo "configure:3468: checking format of man-pages" >&5
d3382 1
a3382 1
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATHSEP}"
d3414 1
a3414 1
echo "configure:3520: checking for manpage renaming" >&5
d3457 1
a3457 1
echo "configure:3563: checking for manpage symlinks" >&5
a3471 16
echo $ac_n "checking for manpage tbl""... $ac_c" 1>&6
echo "configure:3579: checking for manpage tbl" >&5


# Check whether --with-manpage-tbl or --without-manpage-tbl was given.
if test "${with_manpage_tbl+set}" = set; then
  withval="$with_manpage_tbl"
  cf_manpage_tbl=$withval
else
  cf_manpage_tbl=no
fi


echo "$ac_t""$cf_manpage_tbl" 1>&6


a3536 1

a3544 11
CF_EOF
else
cat >>man/edit_man.sh <<CF_EOF
	target=\`grep "^\$source" $cf_manpage_renames | $AWK '{print \$2}'\`
	if test -z "\$target" ; then
		echo '? missing rename for '\$source
		target="\$source"
	fi
	target="$cf_subdir\${section}/\${target}"
CF_EOF
fi
d3547 1
d3572 1
a3572 1
if test $cf_manpage_tbl = yes ; then
d3574 7
a3580 8
	tbl \$TMP >\$TMP.out
	mv \$TMP.out \$TMP
CF_EOF
fi
if test $with_curses_h != yes ; then
cat >>man/edit_man.sh <<CF_EOF
	sed -e "/\#[    ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
	mv \$TMP.out \$TMP
d3620 1
a3622 1
		echo \$verb \$target
d3650 1
a3650 2
	elif test \$verb = removing ; then
		echo \$verb \$target
a3664 3
	else
#		echo ".hy 0"
		cat \$TMP
d3680 1
a3680 1
echo "configure:3818: checking if you want to build with function extensions" >&5
d3720 1
a3720 1
echo "configure:3858: checking for extended use of const keyword" >&5
d3738 1
a3738 1
echo "configure:3876: checking if you want \$NCURSES_NO_PADDING code" >&5
d3756 1
a3756 1
echo "configure:3894: checking if you want SIGWINCH handler" >&5
d3774 1
a3774 1
echo "configure:3912: checking if you want user-definable terminal capabilities like termcap" >&5
d3793 1
a3793 1
echo "configure:3931: checking if you want all development code" >&5
d3807 1
a3807 1
echo "configure:3945: checking if you want colorfgbg code" >&5
d3825 1
a3825 1
echo "configure:3963: checking if you want hard-tabs code" >&5
d3842 1
a3842 1
echo "configure:3980: checking if you want to use restrict environment when running as root" >&5
d3860 1
a3860 1
echo "configure:3998: checking if you want limited support for xmc" >&5
d3881 1
a3881 1
echo "configure:4019: checking if you do not want to assume colors are white-on-black" >&5
d3899 1
a3899 1
echo "configure:4037: checking if you want hashmap scrolling-optimization code" >&5
d3916 1
a3916 1
echo "configure:4054: checking if you want experimental safe-sprintf code" >&5
d3936 1
a3936 1
echo "configure:4074: checking if you want to experiment without scrolling-hints code" >&5
d3955 1
a3955 1
echo "configure:4093: checking if you want experimental wide-character code" >&5
d3979 1
a3979 1
echo "configure:4117: checking if you want to display full commands during build" >&5
a3992 1
	test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
d3999 1
a3999 1
echo "configure:4138: checking if you want to see compiler warnings" >&5
a4006 2
echo "$ac_t""$with_warnings" 1>&6

d4012 2
a4013 2
	cat > conftest.$ac_ext <<EOF
#line 4154 "configure"
d4016 2
a4017 2
	echo "checking for $CC warning options" 1>&6
echo "configure:4158: checking for $CC warning options" >&5
d4035 1
a4035 1
		if { (eval echo configure:4176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4047 1
d4068 3
a4070 3
echo "configure:4208: checking for $CC __attribute__ directives" >&5
cat > conftest.$ac_ext <<EOF
#line 4210 "configure"
d4089 1
a4089 1
	for cf_attribute in scanf printf unused noreturn
d4108 1
a4108 1
		if { (eval echo configure:4248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4124 1
a4124 1
echo "configure:4264: checking if you want to enable runtime assertions" >&5
d4191 1
a4191 1
echo "configure:4331: checking for gettimeofday" >&5
d4196 1
a4196 1
#line 4336 "configure"
d4219 1
a4219 1
if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4242 1
a4242 1
echo "configure:4382: checking for gettimeofday in -lbsd" >&5
d4250 1
a4250 1
#line 4390 "configure"
d4261 1
a4261 1
if { (eval echo configure:4401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4289 1
a4289 1
echo "configure:4429: checking if -lm needed for math functions" >&5
d4295 1
a4295 1
#line 4435 "configure"
d4305 1
a4305 1
if { (eval echo configure:4445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4327 1
a4327 1
echo "configure:4467: checking for ANSI C header files" >&5
d4332 1
a4332 1
#line 4472 "configure"
d4340 1
a4340 1
{ (eval echo configure:4480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4357 1
a4357 1
#line 4497 "configure"
d4375 1
a4375 1
#line 4515 "configure"
d4396 1
a4396 1
#line 4536 "configure"
d4407 1
a4407 1
if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4435 1
a4435 1
echo "configure:4575: checking for $ac_hdr that defines DIR" >&5
d4440 1
a4440 1
#line 4580 "configure"
d4448 1
a4448 1
if { (eval echo configure:4588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4473 1
a4473 1
echo "configure:4613: checking for opendir in -ldir" >&5
d4481 1
a4481 1
#line 4621 "configure"
d4492 1
a4492 1
if { (eval echo configure:4632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4514 1
a4514 1
echo "configure:4654: checking for opendir in -lx" >&5
d4522 1
a4522 1
#line 4662 "configure"
d4533 1
a4533 1
if { (eval echo configure:4673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4557 1
a4557 1
echo "configure:4697: checking for regular-expression headers" >&5
d4563 1
a4563 1
#line 4703 "configure"
d4576 1
a4576 1
if { (eval echo configure:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4585 1
a4585 1
#line 4725 "configure"
d4595 1
a4595 1
if { (eval echo configure:4735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4606 1
a4606 1
#line 4746 "configure"
d4616 1
a4616 1
if { (eval echo configure:4756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4670 1
a4670 1
echo "configure:4810: checking for $ac_hdr" >&5
d4675 1
a4675 1
#line 4815 "configure"
d4680 1
a4680 1
{ (eval echo configure:4820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4711 1
a4711 1
echo "configure:4851: checking for main in -lcposix" >&5
d4719 1
a4719 1
#line 4859 "configure"
d4726 1
a4726 1
if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4754 1
a4754 1
echo "configure:4894: checking for bzero in -linet" >&5
d4762 1
a4762 1
#line 4902 "configure"
d4773 1
a4773 1
if { (eval echo configure:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4796 1
a4796 1
echo "configure:4936: checking if sys/time.h works with sys/select.h" >&5
d4802 1
a4802 1
#line 4942 "configure"
d4817 1
a4817 1
if { (eval echo configure:4957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4846 1
a4846 1
echo "configure:4986: checking for working const" >&5
d4851 1
a4851 1
#line 4991 "configure"
d4900 1
a4900 1
if { (eval echo configure:5040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4921 1
a4921 1
echo "configure:5061: checking for inline" >&5
d4928 1
a4928 1
#line 5068 "configure"
d4935 1
a4935 1
if { (eval echo configure:5075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4967 1
a4967 1
echo "configure:5107: checking if unsigned literals are legal" >&5
d4973 1
a4973 1
#line 5113 "configure"
d4980 1
a4980 1
if { (eval echo configure:5120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4998 1
a4998 1
echo "configure:5138: checking for type of chtype" >&5
d5007 1
a5007 1
#line 5147 "configure"
d5053 1
a5053 1
if { (eval echo configure:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5086 1
a5086 1
echo "configure:5226: checking for number of bits in chtype" >&5
d5095 1
a5095 1
#line 5235 "configure"
d5118 1
a5118 1
if { (eval echo configure:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5138 1
a5138 1
echo "configure:5278: checking for width of character-index" >&5
d5165 1
a5165 1
echo "configure:5305: checking if external errno is declared" >&5
d5171 1
a5171 1
#line 5311 "configure"
d5184 1
a5184 1
if { (eval echo configure:5324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5215 1
a5215 1
echo "configure:5355: checking if external errno exists" >&5
d5221 1
a5221 1
#line 5361 "configure"
d5231 1
a5231 1
if { (eval echo configure:5371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5263 1
a5263 1
echo "configure:5403: checking if data-only library module links" >&5
d5269 2
a5270 2
	cat >conftest.$ac_ext <<EOF
#line 5410 "configure"
d5273 1
a5273 1
	if { (eval echo configure:5413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } ; then
d5278 2
a5279 2
	cat >conftest.$ac_ext <<EOF
#line 5419 "configure"
d5292 1
a5292 1
	if { (eval echo configure:5432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5304 1
a5304 1
#line 5444 "configure"
d5314 1
a5314 1
if { (eval echo configure:5454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5365 1
a5365 1
echo "configure:5505: checking for $ac_func" >&5
d5370 1
a5370 1
#line 5510 "configure"
d5393 1
a5393 1
if { (eval echo configure:5533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5420 1
a5420 1
echo "configure:5560: checking for terminal-capability database functions" >&5
d5426 1
a5426 1
#line 5566 "configure"
d5441 1
a5441 1
if { (eval echo configure:5581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5464 1
a5464 1
echo "configure:5604: checking for isascii" >&5
d5470 1
a5470 1
#line 5610 "configure"
d5477 1
a5477 1
if { (eval echo configure:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5498 1
a5498 1
echo "configure:5638: checking whether sigaction needs _POSIX_SOURCE" >&5
d5500 1
a5500 1
#line 5640 "configure"
d5509 1
a5509 1
if { (eval echo configure:5649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5518 1
a5518 1
#line 5658 "configure"
d5528 1
a5528 1
if { (eval echo configure:5668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5556 1
a5556 1
echo "configure:5696: checking for $ac_hdr" >&5
d5561 1
a5561 1
#line 5701 "configure"
d5566 1
a5566 1
{ (eval echo configure:5706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5597 1
a5597 1
echo "configure:5737: checking for $ac_hdr" >&5
d5602 1
a5602 1
#line 5742 "configure"
d5607 1
a5607 1
{ (eval echo configure:5747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5635 1
a5635 1
	case "$CFLAGS $CPPFLAGS" in
d5642 1
a5642 1
echo "configure:5782: checking whether termios.h needs _POSIX_SOURCE" >&5
d5644 1
a5644 1
#line 5784 "configure"
d5651 1
a5651 1
if { (eval echo configure:5791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5660 1
a5660 1
#line 5800 "configure"
d5669 1
a5669 1
if { (eval echo configure:5809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5692 1
a5692 1
echo "configure:5832: checking for tcgetattr" >&5
d5698 1
a5698 1
#line 5838 "configure"
d5721 1
a5721 1
if { (eval echo configure:5861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5744 1
a5744 1
echo "configure:5884: checking whether setvbuf arguments are reversed" >&5
d5752 1
a5752 1
#line 5892 "configure"
d5766 1
a5766 1
if { (eval echo configure:5906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5791 1
a5791 1
echo "configure:5931: checking return type of signal handlers" >&5
d5796 1
a5796 1
#line 5936 "configure"
d5813 1
a5813 1
if { (eval echo configure:5953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5833 1
a5833 1
echo "configure:5973: checking for type sigaction_t" >&5
d5839 1
a5839 1
#line 5979 "configure"
d5847 1
a5847 1
if { (eval echo configure:5987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5868 1
a5868 1
echo "configure:6008: checking declaration of size-change" >&5
d5874 1
a5874 1
    cf_save_CPPFLAGS="$CPPFLAGS"
d5879 2
a5880 2
    CPPFLAGS="$cf_save_CPPFLAGS"
    test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
d5882 1
a5882 1
#line 6022 "configure"
d5921 1
a5921 1
if { (eval echo configure:6061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5932 1
a5932 1
	CPPFLAGS="$cf_save_CPPFLAGS"
d5960 1
a5960 1
echo "configure:6100: checking for memmove" >&5
d5965 1
a5965 1
#line 6105 "configure"
d5988 1
a5988 1
if { (eval echo configure:6128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6007 1
a6007 1
echo "configure:6147: checking for bcopy" >&5
d6012 1
a6012 1
#line 6152 "configure"
d6035 1
a6035 1
if { (eval echo configure:6175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6051 1
a6051 1
echo "configure:6191: checking if bcopy does overlapping moves" >&5
d6060 1
a6060 1
#line 6200 "configure"
d6073 1
a6073 1
if { (eval echo configure:6213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6111 1
a6111 1
echo "configure:6251: checking if poll really works" >&5
d6120 1
a6120 1
#line 6260 "configure"
d6140 1
a6140 1
if { (eval echo configure:6280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6168 1
a6168 1
echo "configure:6308: checking for builtin bool type" >&5
d6174 1
a6174 1
#line 6314 "configure"
d6184 1
a6184 1
if { (eval echo configure:6324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6221 1
a6221 1
echo "configure:6361: checking for library $cf_stdcpp_libname" >&5
d6229 1
a6229 1
#line 6369 "configure"
d6240 1
a6240 1
if { (eval echo configure:6380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a6257 1

a6258 3
		echo $ac_n "checking version of ${CXX-g++}""... $ac_c" 1>&6
echo "configure:6401: checking version of ${CXX-g++}" >&5
		eval "${CXX-g++} --version"
d6263 1
a6263 1
		*-2.7*|2.7*)
d6276 1
a6276 1
echo "configure:6420: checking for lib$cf_gpp_libname" >&5
d6280 1
a6280 1
#line 6424 "configure"
d6289 1
a6289 1
if { (eval echo configure:6433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6309 1
a6309 1
#line 6453 "configure"
d6318 1
a6318 1
if { (eval echo configure:6462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a6346 1

d6348 1
a6348 1
echo "configure:6493: checking how to run the C++ preprocessor" >&5
d6361 1
a6361 1
#line 6506 "configure"
d6366 1
a6366 1
{ (eval echo configure:6511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6394 1
a6394 1
echo "configure:6539: checking for $ac_hdr" >&5
d6399 1
a6399 1
#line 6544 "configure"
d6404 1
a6404 1
{ (eval echo configure:6549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a6429 1

d6432 1
a6432 1
echo "configure:6578: checking for builtin bool type" >&5
d6438 1
a6438 1
#line 6584 "configure"
d6448 1
a6448 1
if { (eval echo configure:6594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6468 1
a6468 1
echo "configure:6614: checking for size of bool" >&5
d6478 1
a6478 1
#line 6624 "configure"
d6510 1
a6510 1
if { (eval echo configure:6656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6534 1
a6534 1
echo "configure:6680: checking for special defines needed for etip.h" >&5
d6545 1
a6545 1
#line 6691 "configure"
d6554 1
a6554 1
if { (eval echo configure:6700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6579 1
a6579 1
if test -n "$CXX"; then
d6581 1
a6581 1
echo "configure:6727: checking if $CXX accepts parameter initialization" >&5
a6585 1
	
d6597 1
a6597 1
#line 6744 "configure"
d6618 1
a6618 1
if { (eval echo configure:6765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a6629 7
	ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cxx_cross

a6639 155
	
if test -n "$CXX"; then


ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cxx_cross

for ac_hdr in strstream.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:6809: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6814 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


echo $ac_n "checking if $CXX supports vscan function""... $ac_c" 1>&6
echo "configure:6847: checking if $CXX supports vscan function" >&5
if eval "test \"`echo '$''{'cf_cv_cpp_vscan_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
	for cf_vscan_func in strstream stdio
	do
	case $cf_vscan_func in #(vi
	stdio)		cf_vscan_defs=USE_STDIO_VSCAN ;; #(vi
	strstream)	cf_vscan_defs=USE_STRSTREAM_VSCAN ;;
	esac
	cat > conftest.$ac_ext <<EOF
#line 6859 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <stdarg.h>
#define $cf_vscan_defs 1
#if defined(USE_STDIO_VSCAN)
#elif defined(HAVE_STRSTREAM_H) && defined(USE_STRSTREAM_VSCAN)
#include <strstream.h>
#endif

int scanw(const char* fmt, ...)
{
    int result = -1;
#if defined(__GNUG__)
    char buf[BUFSIZ];

    va_list args;
    va_start(args, fmt);
#if defined(USE_STDIO_VSCAN)
    if (::vscanf(fmt, args) != -1)
	result = 0;
#elif defined(USE_STRSTREAM_VSCAN)
    strstreambuf ss(buf, sizeof(buf));
    if (ss.vscan(fmt, (_IO_va_list)args) != -1)
	result = 0;
#else
#error case $cf_vscan_func failed
#endif
    va_end(args);
#else
#error sorry, we only know about the GNU compiler case
#endif
    return result;
}

int main() {
int tmp, foo = scanw("%d", &tmp)
; return 0; }
EOF
if { (eval echo configure:6899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  cf_cv_cpp_vscan_func=$cf_vscan_func; break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_cv_cpp_vscan_func=no
fi
rm -f conftest*
	test "$cf_cv_cpp_vscan_func" != no && break
	done

fi

echo "$ac_t""$cf_cv_cpp_vscan_func" 1>&6

ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cxx_cross

fi

case $cf_cv_cpp_vscan_func in #(vi
stdio) #(vi
	cat >> confdefs.h <<\EOF
#define CPP_HAS_VSCAN_FUNC 1
EOF

	cat >> confdefs.h <<\EOF
#define USE_STDIO_VSCAN 1
EOF

	;;
strstream)
	cat >> confdefs.h <<\EOF
#define CPP_HAS_VSCAN_FUNC 1
EOF

	cat >> confdefs.h <<\EOF
#define USE_STRSTREAM_VSCAN 1
EOF

	;;
esac


d6660 1
a6660 1
echo "configure:6969: checking for fallback type of bool" >&5
d6676 1
a6676 1
echo "configure:6985: checking for $ac_word" >&5
d6730 1
a6730 1
echo "configure:7039: checking for $ac_word" >&5
d6763 1
a6763 1
echo "configure:7072: checking if GNAT works" >&5
d6827 1
a6827 1
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
d6861 1
a6861 1
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
d6907 1
a6907 1
echo "configure:7216: checking for library subsets" >&5
d6918 1
a6918 2
ADA_TRACE=FALSE
case "$CFLAGS $CPPFLAGS" in
a6920 1
	ADA_TRACE=TRUE
a6923 1

d6964 1
a6964 1
echo "configure:7276: checking default library suffix" >&5
a6966 1
	libtool) DFT_ARG_SUFFIX=''   ;;
d6976 1
a6976 1
echo "configure:7289: checking default library-dependency suffix" >&5
a6979 1
	libtool) DFT_DEP_SUFFIX='.la'  ;;
d6993 1
a6993 1
echo "configure:7307: checking default object directory" >&5
a6995 1
	libtool) DFT_OBJ_SUBDIR='obj_lo'  ;;
a7002 24
# libtool thinks it can make c++ shared libraries (perhaps only g++)
echo $ac_n "checking c++ library-dependency suffix""... $ac_c" 1>&6
echo "configure:7320: checking c++ library-dependency suffix" >&5
if test "$with_libtool" = "yes"; then
	CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
else
	
	
	case normal in
	libtool) CXX_LIB_SUFFIX='.la'  ;;
	normal)  CXX_LIB_SUFFIX='.a'   ;;
	debug)   CXX_LIB_SUFFIX='_g.a' ;;
	profile) CXX_LIB_SUFFIX='_p.a' ;;
	shared)
		case $cf_cv_system_name in
		hpux*)	CXX_LIB_SUFFIX='.sl'  ;;
		*)	CXX_LIB_SUFFIX='.so'  ;;
		esac
	esac
	test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
fi
echo "$ac_t""$CXX_LIB_SUFFIX" 1>&6


d7007 1
a7007 1
echo "configure:7346: checking where we will install curses.h" >&5
d7021 1
a7021 5
	if test "$DFT_LWR_MODEL" = "libtool"; then
		TEST_ARGS="${TEST_DEPS}"
	else
		TEST_ARGS="-l${TINFO_NAME}${DFT_ARG_SUFFIX}"
	fi
d7031 1
a7031 1
echo "configure:7374: checking for src modules" >&5
d7035 1
a7035 5
if test "$DFT_LWR_MODEL" = "libtool"; then
	TEST_ARGS="${TEST_DEPS}"
else
	TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
fi
d7078 1
a7078 5
			if test "$DFT_LWR_MODEL" = "libtool"; then
				TEST_ARGS="${TEST_DEPS}"
			else
				TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
			fi
a7123 1
	libtool) cf_subdir='obj_lo'  ;;
a7138 5
cat >> confdefs.h <<EOF
#define NCURSES_PATHSEP '$PATHSEP'
EOF


a7329 1
s%@@LIBTOOL@@%$LIBTOOL%g
a7349 1
s%@@PATHSEP@@%$PATHSEP%g
a7351 1
s%@@NCURSES_OSPEED@@%$NCURSES_OSPEED%g
a7373 1
s%@@ADA_TRACE@@%$ADA_TRACE%g
a7377 1
s%@@CXX_LIB_SUFFIX@@%$CXX_LIB_SUFFIX%g
a7613 1
WITH_CURSES_H="$with_curses_h"
d7631 1
a7631 2
	OS/2*)	LIB_PREFIX=''     ;;
	os2*)	LIB_PREFIX=''     ;;
a7647 1
	libtool) cf_suffix='.la'  ;;
a7697 1
	libtool) cf_suffix='.la'  ;;
a7710 1
	libtool) cf_subdir='obj_lo'  ;;
a7859 2
TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
a7860 19
CF_EOF
if test $WITH_CURSES_H = yes; then
	cat >>headers.sh <<CF_EOF
case \$DST in
/*/include/*)
	END=\`basename \$DST\`
	for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
	do
		NAME=\`basename \$i\`
		echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
	done
	;;
*)
	echo "" >> \$TMPSED
	;;
esac
CF_EOF
else
	cat >>headers.sh <<CF_EOF
d7863 2
a7868 5
		if test "\$NAME" = "curses.h"
		then
			echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
			NAME=ncurses.h
		fi
d7871 4
d7877 1
a7877 1
	echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
a7880 15
fi
cat >>headers.sh <<CF_EOF
rm -f \$TMPSRC
sed -f \$TMPSED \$SRC > \$TMPSRC
NAME=\`basename \$SRC\`
CF_EOF
if test $WITH_CURSES_H != yes; then
	cat >>headers.sh <<CF_EOF
test "\$NAME" = "curses.h" && NAME=ncurses.h
CF_EOF
fi
cat >>headers.sh <<CF_EOF
eval \$PRG \$TMPSRC \$DST/\$NAME
rm -f \$TMPSRC \$TMPSED
CF_EOF
d7905 1
a7905 1
			test $i = curses.h && test $WITH_CURSES_H = yes && echo "	@@ (cd \$(DESTDIR)\$(includedir) && rm -f ncurses.h && \$(LN_S) curses.h ncurses.h)" >>$cf_dir/Makefile
@


1.1.1.6
log
@Import ncurses-5.2-20020518 onto the vendor branch.

Obtained from: ftp://dickey.his.com/ncurses/
@
text
@d3 1
a3 1
# From configure.in Revision: 1.267 
d8 1
a8 1
# Generated automatically using autoconf version 2.13.20020210 
a191 4
  --with-build-cc=XXX     if cross-compiling, the host C compiler (\$BUILD_CC)
  --with-build-cflags=XXX if cross-compiling, the host C compiler-flags
  --with-build-ldflags=XXX if cross-compiling, the host linker-flags
  --with-build-libs=XXX   if cross-compiling, the host libraries
d197 1
a197 1
  --with-install-prefix   prefixes actual install-location (\$DESTDIR)
a198 2
EOF
cat <<EOF
d203 2
a212 2
EOF
cat <<EOF
d214 1
a214 1
  --disable-database      do not use terminfo, only fallbacks/termcap
d217 2
a222 1
  --with-termpath=XXX     specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
a225 2
EOF
cat <<EOF
a226 1
  --with-bool=TYPE        override fallback type of bool variable
d231 2
a239 2
EOF
cat <<EOF
d246 2
a253 2
EOF
cat <<EOF
a257 1
  --with-caps=alt         compile with experimental alternate Caps file
d260 2
a266 2
EOF
cat <<EOF
d421 1
a421 1
    echo "configure generated by autoconf version 2.13.20020210"
d617 1
a617 3
cf_cv_timestamp=`date`
echo "$ac_t""Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" 1>&6

d675 1
a675 1
echo "configure:687: checking host system type" >&5
d696 1
a696 1
echo "configure:708: checking target system type" >&5
d714 1
a714 1
echo "configure:726: checking build system type" >&5
d755 1
a755 1
test -n "$cf_cv_system_name" && echo "$ac_t""Configuring for $cf_cv_system_name" 1>&6
d807 1
a807 1
echo "configure:819: checking for prefix" >&5
d822 1
a822 1
echo "configure:834: checking for default include-directory" >&5
d852 1
a852 1
echo "configure:864: checking for $ac_word" >&5
d882 1
a882 1
echo "configure:894: checking for $ac_word" >&5
d933 1
a933 1
echo "configure:945: checking for $ac_word" >&5
d965 1
a965 1
echo "configure:977: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d976 1
a976 1
#line 988 "configure"
d981 1
a981 1
if { (eval echo configure:993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1007 1
a1007 1
echo "configure:1019: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d1012 1
a1012 1
echo "configure:1024: checking whether we are using GNU C" >&5
d1021 1
a1021 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1040 1
a1040 1
echo "configure:1052: checking whether ${CC-cc} accepts -g" >&5
a1070 1
GCC_VERSION=none
d1073 5
a1077 20
echo "configure:1086: checking version of gcc" >&5
	GCC_VERSION="`${CC} --version|head -1`"
	echo "$ac_t""$GCC_VERSION" 1>&6
fi

# If we're cross-compiling, allow the user to override the tools and their
# options.  The configure script is oriented toward identifying the target
# compiler, etc., but we need a host compiler to generate parts of the source.
BUILD_CC='$(CC)'
BUILD_CFLAGS='$(CFLAGS)'
BUILD_LDFLAGS='$(LDFLAGS)'
BUILD_LIBS='$(LIBS)'
if test "$host_alias" != "$target_alias" ; then
	
# Check whether --with-build-cc or --without-build-cc was given.
if test "${with_build_cc+set}" = set; then
  withval="$with_build_cc"
  BUILD_CC="$withval"
else
  for ac_prog in $CC gcc cc
d1082 1
a1082 1
echo "configure:1110: checking for $ac_word" >&5
d1111 2
a1114 27
	
# Check whether --with-build-cflags or --without-build-cflags was given.
if test "${with_build_cflags+set}" = set; then
  withval="$with_build_cflags"
  BUILD_CFLAGS="$withval"
fi

	
# Check whether --with-build-ldflags or --without-build-ldflags was given.
if test "${with_build_ldflags+set}" = set; then
  withval="$with_build_ldflags"
  BUILD_LDFLAGS="$withval"
fi

	
# Check whether --with-build-libs or --without-build-libs was given.
if test "${with_build_libs+set}" = set; then
  withval="$with_build_libs"
  BUILD_LIBS="$withval"
fi

fi





d1116 1
a1116 1
echo "configure:1169: checking how to run the C preprocessor" >&5
d1131 1
a1131 1
#line 1184 "configure"
d1137 1
a1137 1
{ (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1148 1
a1148 1
#line 1201 "configure"
d1154 1
a1154 1
{ (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1165 1
a1165 1
#line 1218 "configure"
d1171 1
a1171 1
{ (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1197 1
a1197 1
echo "configure:1250: checking whether ${CC-cc} needs -traditional" >&5
d1203 1
a1203 1
#line 1256 "configure"
d1221 1
a1221 1
#line 1274 "configure"
d1243 1
a1243 1
echo "configure:1296: checking for POSIXized ISC" >&5
d1265 1
a1265 1
echo "configure:1318: checking for ${CC-cc} option to accept ANSI C" >&5
a1288 2
cf_new_cflags=
cf_new_cppflags=
d1294 1
a1294 1
		*$cf_add_cflags) #(vi
d1296 2
a1297 2
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
d1302 1
a1302 1
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
a1306 11
if test -n "$cf_new_cflags" ; then
	
	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then
	
	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
fi


d1308 1
a1308 1
#line 1374 "configure"
d1324 1
a1324 1
if { (eval echo configure:1390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1342 2
cf_new_cflags=
cf_new_cppflags=
d1348 1
a1348 1
		*$cf_add_cflags) #(vi
d1350 2
a1351 2
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
d1356 1
a1356 1
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
a1360 11
if test -n "$cf_new_cflags" ; then
	
	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then
	
	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
fi


a1394 4
test -n "$PROG_EXT" && cat >> confdefs.h <<EOF
#define PROG_EXT "$PROG_EXT"
EOF

d1405 1
a1405 1
echo "configure:1488: checking for $ac_word" >&5
d1442 1
a1442 1
echo "configure:1525: checking if you want to ensure bool is consistent with C++" >&5
d1462 1
a1462 1
echo "configure:1545: checking for $ac_word" >&5
d1494 1
a1494 1
echo "configure:1577: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
d1505 1
a1505 1
#line 1588 "configure"
d1510 1
a1510 1
if { (eval echo configure:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1536 1
a1536 1
echo "configure:1619: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
d1541 1
a1541 1
echo "configure:1624: checking whether we are using GNU C++" >&5
d1550 1
a1550 1
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1569 1
a1569 1
echo "configure:1652: checking whether ${CXX-g++} accepts -g" >&5
a1601 1
GXX_VERSION=none
d1603 1
a1603 5
	echo $ac_n "checking version of g++""... $ac_c" 1>&6
echo "configure:1688: checking version of g++" >&5
	GXX_VERSION="`${CXX-g++} --version|head -1`"
	echo "$ac_t""$GXX_VERSION" 1>&6
	case $GXX_VERSION in
d1607 1
a1607 1
		echo "configure: warning: templates do not work" 1>&2
d1613 1
a1613 1
echo "configure:1701: checking if you want to build C++ binding and demo" >&5
d1626 1
a1626 1
echo "configure:1714: checking if you want to build with Ada95" >&5
d1639 1
a1639 1
echo "configure:1727: checking if you want to build programs such as tic" >&5
d1652 1
a1652 1
echo "configure:1740: checking if you wish to install curses.h" >&5
d1694 1
a1694 1
echo "configure:1782: checking for $ac_word" >&5
d1724 1
a1724 1
echo "configure:1812: checking whether ${MAKE-make} sets \${MAKE}" >&5
d1762 1
a1762 1
echo "configure:1850: checking for a BSD compatible install" >&5
d1825 1
a1825 1
echo "configure:1913: checking for long file names" >&5
d1870 1
a1870 1
echo "configure:1958: checking if filesystem supports mixed-case filenames" >&5
d1893 1
a1893 1
echo "configure:1981: checking whether ln -s works" >&5
d1916 1
a1916 1
echo "configure:2004: checking for $ac_word" >&5
d1948 1
a1948 1
echo "configure:2036: checking for $ac_word" >&5
d1980 1
a1980 1
echo "configure:2068: checking for $ac_word" >&5
d2030 1
a2030 1
echo "configure:2118: checking for $ac_word" >&5
d2064 1
a2064 1
echo "configure:2152: checking for $ac_word" >&5
d2100 1
a2100 1
echo "configure:2188: checking for loader (symbol LD)" >&5
d2114 1
a2114 1
echo "configure:2202: checking for archiver (symbol AR)" >&5
d2128 1
a2128 1
echo "configure:2216: checking for archiver options (symbol AR_OPTS)" >&5
d2140 1
a2140 1
echo "configure:2228: checking for makeflags variable" >&5
a2148 1
SHELL = /bin/sh
a2168 1

a2174 1

d2176 1
a2176 1
echo "configure:2267: checking if you have specified an install-prefix" >&5
d2201 1
a2201 1
echo "configure:2292: checking if you want to build libraries with libtool" >&5
d2221 1
a2221 1
echo "configure:2312: checking if you want to build shared libraries" >&5
d2235 1
a2235 1
echo "configure:2326: checking if you want to build static libraries" >&5
d2249 1
a2249 1
echo "configure:2340: checking if you want to build debug libraries" >&5
d2263 1
a2263 1
echo "configure:2354: checking if you want to build profiling libraries" >&5
d2279 1
a2279 1
echo "configure:2370: checking for specified models" >&5
d2287 1
a2287 1
echo "configure:2378: checking for default model" >&5
d2320 1
a2320 1
echo "configure:2411: checking if you want to build a separate terminfo library" >&5
d2334 1
a2334 1
echo "configure:2425: checking if you want to link with dbmalloc for testing" >&5
d2347 1
a2347 1
echo "configure:2438: checking for debug_malloc in -ldbmalloc" >&5
d2355 1
a2355 1
#line 2446 "configure"
d2366 1
a2366 1
if { (eval echo configure:2457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2396 1
a2396 1
echo "configure:2487: checking if you want to link with dmalloc for testing" >&5
d2409 1
a2409 1
echo "configure:2500: checking for dmalloc_debug in -ldmalloc" >&5
d2417 1
a2417 1
#line 2508 "configure"
d2428 1
a2428 1
if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2459 1
a2459 1
echo "configure:2550: checking if you want to link with the gpm mouse library" >&5
d2472 1
a2472 1
echo "configure:2563: checking for Gpm_Open in -lgpm" >&5
d2480 1
a2480 1
#line 2571 "configure"
d2491 1
a2491 1
if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2517 1
a2517 1
echo "configure:2608: checking for $ac_hdr" >&5
d2522 1
a2522 1
#line 2613 "configure"
d2527 1
a2527 1
{ (eval echo configure:2618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2575 1
a2575 1
echo "configure:2666: checking for default loader flags" >&5
d2586 1
a2586 1
echo "configure:2677: checking if rpath option should be used" >&5
d2600 2
a2601 2
	LOCAL_LDFLAGS=
	LOCAL_LDFLAGS2=
d2608 1
a2608 1
echo "configure:2699: checking if release/abi version should be used for shared libs" >&5
d2639 1
a2639 1
echo "configure:2730: checking which $CC option to use" >&5
d2645 1
a2645 1
#line 2736 "configure"
d2652 1
a2652 1
if { (eval echo configure:2743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2664 2
	cf_cv_shlib_version_infix=no

a2668 13
	cygwin*)
		CC_SHARED_OPTS=
		MK_SHARED_LIB='$(CC) -shared -Wl,--out-implib=$(IMPORT_LIB) -Wl,--export-all-symbols -o $(SHARED_LIB)'
		cf_cv_shlib_version=cygdll
		cf_cv_shlib_version_infix=cygdll
		;;
	darwin*)
		EXTRA_CFLAGS="-no-cpp-precomp"
		CC_SHARED_OPTS="-dynamic"
		MK_SHARED_LIB='$(CC) -dynamiclib -install_name $(DESTDIR)$(libdir)/`basename $@@` -compatibility_version $(ABI_VERSION) -current_version $(ABI_VERSION) -o $@@'
		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
		cf_cv_shlib_version_infix=yes
		;;
d2696 2
a2697 2
			LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
d2719 2
a2720 2
			LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
d2736 1
a2736 1
		MK_SHARED_LIB='$(LD) -set_version $(REL_VERSION):$(ABI_VERSION) -expect_unresolved "*" -shared -soname `basename $@@`'
d2739 1
a2739 1
			MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
d2744 2
a2745 2
			LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
d2783 1
a2783 1
			LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
d2820 1
a2820 1
echo "configure:2926: checking if we need a space after rpath option" >&5
d2824 1
a2824 1
#line 2930 "configure"
d2831 1
a2831 1
if { (eval echo configure:2937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2870 1
a2870 1
echo "configure:2976: checking if you wish to install ncurses overwriting curses" >&5
d2883 1
a2883 1
echo "configure:2989: checking if external terminfo-database is used" >&5
a2904 8

	case $cf_cv_system_name in
	os2*)	PATHSEP=';'  ;;
	*)	PATHSEP=':'  ;;
	esac

	

d2911 1
a2911 1
echo "configure:3025: checking which terminfo source-file will be installed" >&5
d2923 1
a2923 1
echo "configure:3037: checking for list of fallback descriptions" >&5
a2936 1
MAKE_TERMINFO=
d2938 3
a2941 1
	MAKE_TERMINFO="#"
d2945 9
a2953 1
echo "configure:3058: checking for list of terminfo directories" >&5
d2962 1
a2962 1
  withval=${TERMINFO_DIRS-${datadir}/terminfo}
d2965 1
a2965 1
IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
d2971 1
a2971 3
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
d2987 1
a2987 1
  { echo "configure: error: expected a pathname, not \"$cf_src_path\"" 1>&2; exit 1; }
d2996 1
a2996 4


eval 'TERMINFO_DIRS="$cf_dst_path"'

d3005 1
a3005 1
echo "configure:3115: checking for default terminfo directory" >&5
d3016 1
a3016 3
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
d3032 1
a3032 1
  { echo "configure: error: expected a pathname, not \"$withval\"" 1>&2; exit 1; }
a3047 1

d3051 1
a3051 1
echo "configure:3164: checking if big-core option selected" >&5
d3062 1
a3062 1
#line 3175 "configure"
d3075 1
a3075 1
if { (eval echo configure:3188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d3097 1
a3097 1
echo "configure:3210: checking if you want termcap-fallback support" >&5
a3109 5
	if test "$use_database" = no ; then
		if test -z $with_fallback ; then
			{ echo "configure: error: You have disabled the database w/o specifying fallbacks" 1>&2; exit 1; }
		fi
	fi
a3115 61
cat >> confdefs.h <<\EOF
#define USE_TERMCAP 1
EOF

echo $ac_n "checking for list of termcap files""... $ac_c" 1>&6
echo "configure:3239: checking for list of termcap files" >&5



# Check whether --with-termpath or --without-termpath was given.
if test "${with_termpath+set}" = set; then
  withval="$with_termpath"
  :
else
  withval=${TERMPATH-/etc/termcap:/usr/share/misc/termcap}
fi

IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
cf_dst_path=
for cf_src_path in $withval
do
  
case ".$cf_src_path" in #(vi
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
  ;;
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  ;;
.\${*prefix}*) #(vi
  eval cf_src_path="$cf_src_path"
  case ".$cf_src_path" in #(vi
  .NONE/*)
    cf_src_path=`echo $cf_src_path | sed -e s@@NONE@@$ac_default_prefix@@`
    ;;
  esac
  ;; #(vi
.NONE/*)
  cf_src_path=`echo $cf_src_path | sed -e s@@NONE@@$ac_default_prefix@@`
  ;;
*)
  { echo "configure: error: expected a pathname, not \"$cf_src_path\"" 1>&2; exit 1; }
  ;;
esac

  test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
  cf_dst_path="${cf_dst_path}${cf_src_path}"
done
IFS="$ac_save_ifs"



eval 'TERMPATH="$cf_dst_path"'


echo "$ac_t""$TERMPATH" 1>&6
test -n "$TERMPATH" && cat >> confdefs.h <<EOF
#define TERMPATH "$TERMPATH"
EOF


d3118 1
a3118 1
echo "configure:3297: checking if fast termcap-loader is needed" >&5
d3135 1
a3135 1
echo "configure:3314: checking if translated termcaps will be cached in ~/.terminfo" >&5
d3161 1
a3161 1
echo "configure:3340: checking for $ac_func" >&5
d3166 1
a3166 1
#line 3345 "configure"
d3189 1
a3189 1
if { (eval echo configure:3368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3220 1
a3220 1
echo "configure:3399: checking for $ac_func" >&5
d3225 1
a3225 1
#line 3404 "configure"
d3248 1
a3248 1
if { (eval echo configure:3427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3274 1
a3274 1
echo "configure:3453: checking if link/symlink functions work" >&5
d3286 1
a3286 1
#line 3465 "configure"
d3315 1
a3315 1
if { (eval echo configure:3494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d3352 1
a3352 1
echo "configure:3531: checking if tic should use symbolic links" >&5
d3361 1
a3361 1
echo "configure:3540: checking if tic should use hard links" >&5
d3370 1
a3370 1
echo "configure:3549: checking if tic should use symbolic links" >&5
d3394 1
a3394 1
echo "configure:3573: checking if you want broken-linker support code" >&5
d3405 1
a3405 12

BROKEN_LINKER=0
if test "$with_broken_linker" = yes ; then
	cat >> confdefs.h <<\EOF
#define BROKEN_LINKER 1
EOF

	BROKEN_LINKER=1
elif test $DFT_LWR_MODEL = shared ; then
	case $cf_cv_system_name in #(vi
	cygwin*)
		cat >> confdefs.h <<\EOF
a3408 22
		BROKEN_LINKER=1
		test -n "$verbose" && echo "	cygwin linker is broken anyway" 1>&6

		;;
	esac
fi


###   use option --with-bool to override bool's type
echo $ac_n "checking for type of bool""... $ac_c" 1>&6
echo "configure:3609: checking for type of bool" >&5

# Check whether --with-bool or --without-bool was given.
if test "${with_bool+set}" = set; then
  withval="$with_bool"
  NCURSES_BOOL="$withval"
else
  NCURSES_BOOL=auto
fi

echo "$ac_t""$NCURSES_BOOL" 1>&6

d3412 1
a3412 1
echo "configure:3624: checking for type of ospeed" >&5
d3417 1
a3417 1
  NCURSES_OSPEED="$withval"
d3427 1
a3427 1
echo "configure:3639: checking if tputs should process BSD-style prefix padding" >&5
d3445 1
a3445 1
echo "configure:3657: checking if RCS identifiers should be compiled-in" >&5
d3467 1
a3467 1
echo "configure:3679: checking format of man-pages" >&5
d3473 1
a3473 1
  MANPAGE_FORMAT=$withval
d3475 1
a3475 1
  MANPAGE_FORMAT=unknown
d3479 1
a3479 1
case ".$MANPAGE_FORMAT" in
d3488 1
a3488 1
  MANPAGE_FORMAT=unknown
d3496 4
a3499 4
	  *.gz) MANPAGE_FORMAT=gzip;;
	  *.Z)  MANPAGE_FORMAT=compress;;
	  *.0)	MANPAGE_FORMAT=BSDI,formatted;;
	  *)    MANPAGE_FORMAT=normal;;
d3504 1
a3504 1
    if test "$MANPAGE_FORMAT" != "unknown" ; then
d3515 1
a3515 1
echo "$ac_t""$MANPAGE_FORMAT" 1>&6
d3519 1
a3519 1
echo "configure:3731: checking for manpage renaming" >&5
d3525 1
a3525 1
  MANPAGE_RENAMES=$withval
d3527 1
a3527 1
  MANPAGE_RENAMES=yes
d3531 1
a3531 1
case ".$MANPAGE_RENAMES" in #(vi
d3537 1
a3537 1
    MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
d3539 1
a3539 1
    MANPAGE_RENAMES=no
d3544 3
a3546 5
if test "$MANPAGE_RENAMES" != no ; then
  if test -f $srcdir/man/$MANPAGE_RENAMES ; then
    MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
  elif test ! -f $MANPAGE_RENAMES ; then
    { echo "configure: error: not a filename: $MANPAGE_RENAMES" 1>&2; exit 1; }
d3552 1
a3552 1
  if test -n "$MANPAGE_RENAMES" ; then
d3554 1
a3554 1
    sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >man/edit_man.sed
d3558 1
a3558 2
echo "$ac_t""$MANPAGE_RENAMES" 1>&6

d3562 1
a3562 1
echo "configure:3777: checking for manpage symlinks" >&5
d3568 1
a3568 1
  MANPAGE_SYMLINKS=$withval
d3570 1
a3570 1
  MANPAGE_SYMLINKS=yes
d3574 1
a3574 1
echo "$ac_t""$MANPAGE_SYMLINKS" 1>&6
d3578 1
a3578 1
echo "configure:3793: checking for manpage tbl" >&5
d3584 1
a3584 1
  MANPAGE_TBL=$withval
d3586 1
a3586 1
  MANPAGE_TBL=no
d3590 1
a3590 1
echo "$ac_t""$MANPAGE_TBL" 1>&6
d3599 1
a3599 1
  case "$MANPAGE_FORMAT" in # (vi
a3615 1
NCURSES_OSPEED="$NCURSES_OSPEED"
d3617 1
a3617 1
MKDIRS="sh `cd $srcdir && pwd`/mkinstalldirs"
d3653 1
a3653 1
if test "$MANPAGE_SYMLINKS" = yes ; then
d3659 1
a3659 1
if test "$MANPAGE_RENAMES" = no ; then
d3670 1
a3670 1
	target=\`grep "^\$source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
a3690 1
		-e "s,@@NCURSES_OSPEED@@,\$NCURSES_OSPEED," \\
a3700 5
if test -f $MANPAGE_RENAMES ; then
cat >>man/edit_man.sh <<CF_EOF
		< \$i | sed -f edit_man.sed >\$TMP
CF_EOF
else
d3704 1
a3704 2
fi
if test $MANPAGE_TBL = yes ; then
d3722 1
a3722 1
case "$MANPAGE_FORMAT" in #(vi
d3817 1
a3817 1
echo "configure:4040: checking if you want to build with function extensions" >&5
a3828 1
	NCURSES_EXT_FUNCS=1
a3852 2
else
	NCURSES_EXT_FUNCS=0
a3854 1

d3857 1
a3857 1
echo "configure:4084: checking for extended use of const keyword" >&5
d3875 1
a3875 1
echo "configure:4102: checking if you want \$NCURSES_NO_PADDING code" >&5
d3893 1
a3893 1
echo "configure:4120: checking if you want SIGWINCH handler" >&5
d3911 1
a3911 1
echo "configure:4138: checking if you want user-definable terminal capabilities like termcap" >&5
d3930 1
a3930 1
echo "configure:4157: checking if you want all development code" >&5
d3944 1
a3944 1
echo "configure:4171: checking if you want colorfgbg code" >&5
d3946 3
a3948 3
# Check whether --enable-enable-colorfgbg or --disable-enable-colorfgbg was given.
if test "${enable_enable_colorfgbg+set}" = set; then
  enableval="$enable_enable_colorfgbg"
d3962 1
a3962 1
echo "configure:4189: checking if you want hard-tabs code" >&5
d3979 1
a3979 1
echo "configure:4206: checking if you want to use restrict environment when running as root" >&5
d3997 1
a3997 1
echo "configure:4224: checking if you want limited support for xmc" >&5
d4018 1
a4018 1
echo "configure:4245: checking if you do not want to assume colors are white-on-black" >&5
d4036 1
a4036 1
echo "configure:4263: checking if you want hashmap scrolling-optimization code" >&5
d4053 1
a4053 1
echo "configure:4280: checking if you want experimental safe-sprintf code" >&5
d4073 1
a4073 1
echo "configure:4300: checking if you want to experiment without scrolling-hints code" >&5
a4090 3
NCURSES_CH_T=chtype
NCURSES_LIBUTF8=0
NCURSES_MBSTATE_T=0
d4092 1
a4092 1
echo "configure:4322: checking if you want experimental wide-character code" >&5
d4109 3
a4111 18
	CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
	with_overwrite=no
	NCURSES_CH_T=cchar_t
	echo $ac_n "checking for putwc""... $ac_c" 1>&6
echo "configure:4343: checking for putwc" >&5
if eval "test \"`echo '$''{'ac_cv_func_putwc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4348 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char putwc(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char putwc();
a4112 1
int main() {
d4114 3
a4116 8
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_putwc) || defined (__stub___putwc)
choke me
#else
putwc();
#endif
d4118 4
a4121 5
; return 0; }
EOF
if { (eval echo configure:4371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_putwc=yes"
d4123 1
a4123 6
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_putwc=no"
fi
rm -f conftest*
d4126 2
a4127 3
if eval "test \"`echo '$ac_cv_func_'putwc`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
d4129 2
a4130 1
  echo "$ac_t""no" 1>&6
d4132 1
a4133 13
if test "$ac_cv_func_putwc" != yes ; then
	
echo $ac_n "checking for putwc in libutf8""... $ac_c" 1>&6
echo "configure:4393: checking for putwc in libutf8" >&5
if eval "test \"`echo '$''{'cf_cv_libutf8'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
	cf_save_LIBS="$LIBS"
	LIBS="-lutf8 $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4401 "configure"
#include "confdefs.h"
d4135 3
a4137 16
#include <libutf8.h>
int main() {
putwc(0,0);
; return 0; }
EOF
if { (eval echo configure:4409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  cf_cv_libutf8=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_cv_libutf8=no
fi
rm -f conftest*
	LIBS="$cf_save_LIBS"
d4139 4
d4145 1
a4145 1
echo "$ac_t""$cf_cv_libutf8" 1>&6
d4147 2
a4148 12
if test "$cf_cv_libutf8" = yes ; then
	cat >> confdefs.h <<\EOF
#define HAVE_LIBUTF8_H 1
EOF

	LIBS="-lutf8 $LIBS"
fi

	if test "$cf_cv_libutf8" = yes ; then
		NCURSES_LIBUTF8=1
	fi
fi
d4150 5
a4154 18
# This is needed on Tru64 5.0 to declare mbstate_t
echo $ac_n "checking if we must include wchar.h to declare mbstate_t""... $ac_c" 1>&6
echo "configure:4440: checking if we must include wchar.h to declare mbstate_t" >&5
if eval "test \"`echo '$''{'cf_cv_mbstate_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 4446 "configure"
#include "confdefs.h"

#include <stdlib.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int main() {
mbstate_t state
; return 0; }
d4156 6
a4161 124
if { (eval echo configure:4457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  cf_cv_mbstate_t=no
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cat > conftest.$ac_ext <<EOF
#line 4465 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <wchar.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int main() {
mbstate_t value
; return 0; }
EOF
if { (eval echo configure:4477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  cf_cv_mbstate_t=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_cv_mbstate_t=unknown
fi
rm -f conftest*
fi
rm -f conftest*
fi

echo "$ac_t""$cf_cv_mbstate_t" 1>&6

if test "$cf_cv_mbstate_t" = yes ; then
	cat >> confdefs.h <<\EOF
#define NEED_WCHAR_H 1
EOF

fi

if test "$cf_cv_mbstate_t" != unknown ; then
	cat >> confdefs.h <<\EOF
#define HAVE_MBSTATE_T 1
EOF

fi

	if test $cf_cv_mbstate_t = yes ; then
		NCURSES_MBSTATE_T=1
	fi
fi




echo $ac_n "checking for terminal capabilities file""... $ac_c" 1>&6
echo "configure:4516: checking for terminal capabilities file" >&5

# Check whether --with-caps or --without-caps was given.
if test "${with_caps+set}" = set; then
  withval="$with_caps"
  TERMINFO_CAPS=Caps.$withval
else
  TERMINFO_CAPS=Caps
fi

test -f ${srcdir}/include/${TERMINFO_CAPS} || TERMINFO_CAPS=Caps
echo "$ac_t""$TERMINFO_CAPS" 1>&6


###############################################################################


###	use option --disable-echo to suppress full display compiling commands
echo $ac_n "checking if you want to display full commands during build""... $ac_c" 1>&6
echo "configure:4535: checking if you want to display full commands during build" >&5

# Check whether --enable-echo or --disable-echo was given.
if test "${enable_echo+set}" = set; then
  enableval="$enable_echo"
  with_echo=$enableval
else
  with_echo=yes
fi

if test "$with_echo" = yes; then
	ECHO_LINK=
else
	ECHO_LINK='@@ echo linking $@@ ... ;'
	test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
fi
echo "$ac_t""$with_echo" 1>&6


###	use option --enable-warnings to turn on all gcc warnings
echo $ac_n "checking if you want to see compiler warnings""... $ac_c" 1>&6
echo "configure:4556: checking if you want to see compiler warnings" >&5

# Check whether --enable-warnings or --disable-warnings was given.
if test "${enable_warnings+set}" = set; then
  enableval="$enable_warnings"
  with_warnings=$enableval
fi

echo "$ac_t""$with_warnings" 1>&6

if test -n "$with_warnings"; then
 	ADAFLAGS="$ADAFLAGS -gnatg"
	
if test "$GCC" = yes
then
	cat > conftest.$ac_ext <<EOF
#line 4572 "configure"
int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
EOF
	echo "checking for $CC warning options" 1>&6
echo "configure:4576: checking for $CC warning options" >&5
	cf_save_CFLAGS="$CFLAGS"
	EXTRA_CFLAGS="-W -Wall"
	cf_warn_CONST=""
	test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
d4175 1
a4175 1
		if { (eval echo configure:4594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4207 1
a4207 1
echo "configure:4626: checking for $CC __attribute__ directives" >&5
d4209 1
a4209 1
#line 4628 "configure"
d4247 1
a4247 1
		if { (eval echo configure:4666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4263 1
a4263 1
echo "configure:4682: checking if you want to enable runtime assertions" >&5
d4330 1
a4330 1
echo "configure:4749: checking for gettimeofday" >&5
d4335 1
a4335 1
#line 4754 "configure"
d4358 1
a4358 1
if { (eval echo configure:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4381 1
a4381 1
echo "configure:4800: checking for gettimeofday in -lbsd" >&5
d4389 1
a4389 1
#line 4808 "configure"
d4400 1
a4400 1
if { (eval echo configure:4819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4428 1
a4428 1
echo "configure:4847: checking if -lm needed for math functions" >&5
d4434 1
a4434 1
#line 4853 "configure"
d4444 1
a4444 1
if { (eval echo configure:4863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a4464 58

echo $ac_n "checking if we must define _GNU_SOURCE""... $ac_c" 1>&6
echo "configure:4886: checking if we must define _GNU_SOURCE" >&5
if eval "test \"`echo '$''{'cf_cv_gnu_source'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 4892 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {

#ifndef _XOPEN_SOURCE
make an error
#endif
; return 0; }
EOF
if { (eval echo configure:4902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  cf_cv_gnu_source=no
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_save="$CPPFLAGS"
	 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
	 cat > conftest.$ac_ext <<EOF
#line 4912 "configure"
#include "confdefs.h"
#include <sys/types.h>
int main() {

#ifdef _XOPEN_SOURCE
make an error
#endif
; return 0; }
EOF
if { (eval echo configure:4922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  cf_cv_gnu_source=no
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_cv_gnu_source=yes
fi
rm -f conftest*
	CPPFLAGS="$cf_save"
	
fi
rm -f conftest*

fi

echo "$ac_t""$cf_cv_gnu_source" 1>&6
test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"

d4466 1
a4466 1
echo "configure:4943: checking for ANSI C header files" >&5
d4471 1
a4471 1
#line 4948 "configure"
d4479 1
a4479 1
{ (eval echo configure:4956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4496 1
a4496 1
#line 4973 "configure"
d4514 1
a4514 1
#line 4991 "configure"
d4535 1
a4535 1
#line 5012 "configure"
d4546 1
a4546 1
if { (eval echo configure:5023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d4574 1
a4574 1
echo "configure:5051: checking for $ac_hdr that defines DIR" >&5
d4579 1
a4579 1
#line 5056 "configure"
d4587 1
a4587 1
if { (eval echo configure:5064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4612 1
a4612 1
echo "configure:5089: checking for opendir in -ldir" >&5
d4620 1
a4620 1
#line 5097 "configure"
d4631 1
a4631 1
if { (eval echo configure:5108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4653 1
a4653 1
echo "configure:5130: checking for opendir in -lx" >&5
d4661 1
a4661 1
#line 5138 "configure"
d4672 1
a4672 1
if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a4693 35
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
echo "configure:5172: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5177 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() {
struct tm *tp;
; return 0; }
EOF
if { (eval echo configure:5186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_header_time=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_time=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_header_time" 1>&6
if test $ac_cv_header_time = yes; then
  cat >> confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF

fi

d4696 1
a4696 1
echo "configure:5208: checking for regular-expression headers" >&5
d4702 1
a4702 1
#line 5214 "configure"
d4715 1
a4715 1
if { (eval echo configure:5227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4724 1
a4724 1
#line 5236 "configure"
d4734 1
a4734 1
if { (eval echo configure:5246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4745 1
a4745 1
#line 5257 "configure"
d4755 1
a4755 1
if { (eval echo configure:5267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4809 1
a4809 1
echo "configure:5321: checking for $ac_hdr" >&5
d4814 1
a4814 1
#line 5326 "configure"
d4819 1
a4819 1
{ (eval echo configure:5331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4850 1
a4850 1
echo "configure:5362: checking for main in -lcposix" >&5
d4858 1
a4858 1
#line 5370 "configure"
d4865 1
a4865 1
if { (eval echo configure:5377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4893 1
a4893 1
echo "configure:5405: checking for bzero in -linet" >&5
d4901 1
a4901 1
#line 5413 "configure"
d4912 1
a4912 1
if { (eval echo configure:5424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4935 1
a4935 1
echo "configure:5447: checking if sys/time.h works with sys/select.h" >&5
d4941 1
a4941 1
#line 5453 "configure"
d4956 1
a4956 1
if { (eval echo configure:5468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4985 1
a4985 1
echo "configure:5497: checking for working const" >&5
d4990 1
a4990 1
#line 5502 "configure"
d5039 1
a5039 1
if { (eval echo configure:5551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5060 1
a5060 1
echo "configure:5572: checking for inline" >&5
d5067 1
a5067 1
#line 5579 "configure"
d5074 1
a5074 1
if { (eval echo configure:5586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5106 1
a5106 1
echo "configure:5618: checking if unsigned literals are legal" >&5
d5112 1
a5112 1
#line 5624 "configure"
d5119 1
a5119 1
if { (eval echo configure:5631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5137 1
a5137 1
echo "configure:5649: checking for type of chtype" >&5
d5146 1
a5146 1
#line 5658 "configure"
d5192 1
a5192 1
if { (eval echo configure:5704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5223 77
d5304 1
a5304 1
echo "configure:5739: checking if external errno is declared" >&5
d5310 1
a5310 1
#line 5745 "configure"
d5323 1
a5323 1
if { (eval echo configure:5758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5325 1
a5325 1
  cf_cv_dcl_errno=yes
d5330 1
a5330 1
  cf_cv_dcl_errno=no
a5335 1
echo "$ac_t""$cf_cv_dcl_errno" 1>&6
d5337 5
a5341 1
if test "$cf_cv_dcl_errno" = no ; then
d5343 1
a5343 1
cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
d5354 1
a5354 1
echo "configure:5786: checking if external errno exists" >&5
d5360 1
a5360 1
#line 5792 "configure"
d5370 1
a5370 1
if { (eval echo configure:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5372 1
a5372 1
  cf_cv_have_errno=yes
d5377 1
a5377 1
  cf_cv_have_errno=no
d5380 1
a5381 1
fi
d5383 2
a5384 1
echo "$ac_t""$cf_cv_have_errno" 1>&6
d5386 2
a5387 1
if test "$cf_cv_have_errno" = yes ; then
d5389 1
a5389 1
cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
d5402 1
a5402 1
echo "configure:5832: checking if data-only library module links" >&5
d5409 1
a5409 1
#line 5839 "configure"
d5412 1
a5412 1
	if { (eval echo configure:5842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } ; then
d5418 1
a5418 1
#line 5848 "configure"
d5431 1
a5431 1
	if { (eval echo configure:5861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5443 1
a5443 1
#line 5873 "configure"
d5453 1
a5453 1
if { (eval echo configure:5883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5470 1
a5470 3

if test "$cf_cv_link_dataonly" = no ; then
	cat >> confdefs.h <<\EOF
a5473 3
	BROKEN_LINKER=1
fi

d5484 1
d5498 1
d5500 1
d5504 1
a5504 1
echo "configure:5936: checking for $ac_func" >&5
d5509 1
a5509 1
#line 5941 "configure"
d5532 1
a5532 1
if { (eval echo configure:5964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5559 1
a5559 1
echo "configure:5991: checking for terminal-capability database functions" >&5
d5565 1
a5565 1
#line 5997 "configure"
d5580 1
a5580 1
if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5603 1
a5603 1
echo "configure:6035: checking for isascii" >&5
d5609 1
a5609 1
#line 6041 "configure"
d5616 1
a5616 1
if { (eval echo configure:6048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5637 1
a5637 1
echo "configure:6069: checking whether sigaction needs _POSIX_SOURCE" >&5
d5639 1
a5639 1
#line 6071 "configure"
d5648 1
a5648 1
if { (eval echo configure:6080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5657 1
a5657 1
#line 6089 "configure"
d5667 1
a5667 1
if { (eval echo configure:6099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5695 1
a5695 1
echo "configure:6127: checking for $ac_hdr" >&5
d5700 1
a5700 1
#line 6132 "configure"
d5705 1
a5705 1
{ (eval echo configure:6137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5736 1
a5736 1
echo "configure:6168: checking for $ac_hdr" >&5
d5741 1
a5741 1
#line 6173 "configure"
d5746 1
a5746 1
{ (eval echo configure:6178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d5781 1
a5781 1
echo "configure:6213: checking whether termios.h needs _POSIX_SOURCE" >&5
d5783 1
a5783 1
#line 6215 "configure"
d5790 1
a5790 1
if { (eval echo configure:6222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5799 1
a5799 1
#line 6231 "configure"
d5808 1
a5808 1
if { (eval echo configure:6240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5831 1
a5831 1
echo "configure:6263: checking for tcgetattr" >&5
d5837 1
a5837 1
#line 6269 "configure"
d5854 1
a5854 225
int main() {

TTY foo;
tcgetattr(1, &foo);
; return 0; }
EOF
if { (eval echo configure:6292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  cf_cv_have_tcgetattr=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  cf_cv_have_tcgetattr=no
fi
rm -f conftest*
fi

echo "$ac_t""$cf_cv_have_tcgetattr" 1>&6
test "$cf_cv_have_tcgetattr" = yes && cat >> confdefs.h <<\EOF
#define HAVE_TCGETATTR 1
EOF



echo $ac_n "checking for vsscanf function or workaround""... $ac_c" 1>&6
echo "configure:6312: checking for vsscanf function or workaround" >&5
if eval "test \"`echo '$''{'cf_cv_func_vsscanf'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 6318 "configure"
#include "confdefs.h"

#include <stdarg.h>
#include <stdio.h>
int main() {

	va_list ap;
	vsscanf("from", "%d", ap)
; return 0; }
EOF
if { (eval echo configure:6329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  cf_cv_func_vsscanf=vsscanf
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  
cat > conftest.$ac_ext <<EOF
#line 6338 "configure"
#include "confdefs.h"

#include <stdarg.h>
#include <stdio.h>
int main() {

    FILE strbuf;
    char *str = "from";

    strbuf._flag = _IOREAD;
    strbuf._ptr = strbuf._base = (unsigned char *) str;
    strbuf._cnt = strlen(str);
    strbuf._file = _NFILE;
    return (vfscanf(&strbuf, "%d", ap))
; return 0; }
EOF
if { (eval echo configure:6355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  cf_cv_func_vsscanf=vfscanf
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  
cat > conftest.$ac_ext <<EOF
#line 6364 "configure"
#include "confdefs.h"

#include <stdarg.h>
#include <stdio.h>
int main() {

    FILE strbuf;
    char *str = "from";

    strbuf._flag = _IOREAD;
    strbuf._ptr = strbuf._base = (unsigned char *) str;
    strbuf._cnt = strlen(str);
    strbuf._file = _NFILE;
    return (_doscan(&strbuf, "%d", ap))
; return 0; }
EOF
if { (eval echo configure:6381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  cf_cv_func_vsscanf=_doscan
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  
cf_cv_func_vsscanf=no
fi
rm -f conftest*
fi
rm -f conftest*
fi
rm -f conftest*
fi

echo "$ac_t""$cf_cv_func_vsscanf" 1>&6

case $cf_cv_func_vsscanf in #(vi
vsscanf) cat >> confdefs.h <<\EOF
#define HAVE_VSSCANF 1
EOF
;; #(vi
vfscanf) cat >> confdefs.h <<\EOF
#define HAVE_VFSCANF 1
EOF
;; #(vi
_doscan) cat >> confdefs.h <<\EOF
#define HAVE__DOSCAN 1
EOF
;;
esac



echo $ac_n "checking for working mkstemp""... $ac_c" 1>&6
echo "configure:6418: checking for working mkstemp" >&5
if eval "test \"`echo '$''{'cf_cv_func_mkstemp'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
rm -f conftest*
if test "$cross_compiling" = yes; then
  echo $ac_n "checking for mkstemp""... $ac_c" 1>&6
echo "configure:6426: checking for mkstemp" >&5
if eval "test \"`echo '$''{'ac_cv_func_mkstemp'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6431 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char mkstemp(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mkstemp();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
choke me
#else
mkstemp();
#endif

; return 0; }
EOF
if { (eval echo configure:6454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_mkstemp=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_mkstemp=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'mkstemp`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi


else
  cat > conftest.$ac_ext <<EOF
#line 6476 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
int main()
{
	char *tmpl = "conftestXXXXXX";
	char name[2][80];
	int n;
	int result = 0;
	int fd;
	struct stat sb;

	umask(077);
	for (n = 0; n < 2; ++n) {
		strcpy(name[n], tmpl);
		if ((fd = mkstemp(name[n])) >= 0) {
			if (!strcmp(name[n], tmpl)
			 || stat(name[n], &sb) != 0
			 || (sb.st_mode & S_IFMT) != S_IFREG
			 || (sb.st_mode & 077) != 0) {
				result = 1;
			}
			close(fd);
		}
	}
	if (result == 0
	 && !strcmp(name[0], name[1]))
		result = 1;
	exit(result);
}
d5856 3
d5860 3
a5862 4
if { (eval echo configure:6513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  cf_cv_func_mkstemp=yes

d5866 2
a5867 3
  rm -fr conftest*
  cf_cv_func_mkstemp=no

d5869 1
a5869 1
rm -fr conftest*
d5872 3
a5874 7

fi

echo "$ac_t""$cf_cv_func_mkstemp" 1>&6
if test "$cf_cv_func_mkstemp" = yes ; then
	cat >> confdefs.h <<\EOF
#define HAVE_MKSTEMP 1
a5876 9
fi


# setup for prototype of fallback for vsscanf()
if test "$cf_cv_func_vsscanf" = vsscanf ; then
	HAVE_VSSCANF=1
else
	HAVE_VSSCANF=0
fi
d5883 1
a5883 1
echo "configure:6551: checking whether setvbuf arguments are reversed" >&5
d5891 1
a5891 1
#line 6559 "configure"
d5905 1
a5905 1
if { (eval echo configure:6573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5930 1
a5930 1
echo "configure:6598: checking return type of signal handlers" >&5
d5935 1
a5935 1
#line 6603 "configure"
d5952 1
a5952 1
if { (eval echo configure:6620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5972 1
a5972 1
echo "configure:6640: checking for type sigaction_t" >&5
d5978 1
a5978 1
#line 6646 "configure"
d5986 1
a5986 1
if { (eval echo configure:6654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6007 1
a6007 1
echo "configure:6675: checking declaration of size-change" >&5
d6021 1
a6021 1
#line 6689 "configure"
d6060 1
a6060 1
if { (eval echo configure:6728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6099 1
a6099 1
echo "configure:6767: checking for memmove" >&5
d6104 1
a6104 1
#line 6772 "configure"
d6127 1
a6127 1
if { (eval echo configure:6795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6146 1
a6146 1
echo "configure:6814: checking for bcopy" >&5
d6151 1
a6151 1
#line 6819 "configure"
d6174 1
a6174 1
if { (eval echo configure:6842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6190 1
a6190 1
echo "configure:6858: checking if bcopy does overlapping moves" >&5
d6199 1
a6199 1
#line 6867 "configure"
d6212 1
a6212 1
if { (eval echo configure:6880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6250 1
a6250 1
echo "configure:6918: checking if poll really works" >&5
d6259 1
a6259 1
#line 6927 "configure"
d6279 1
a6279 1
if { (eval echo configure:6947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a6305 34
ac_safe=`echo "stdbool.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for stdbool.h""... $ac_c" 1>&6
echo "configure:6976: checking for stdbool.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6981 "configure"
#include "confdefs.h"
#include <stdbool.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cf_cv_header_stdbool_h=1
else
  echo "$ac_t""no" 1>&6
cf_cv_header_stdbool_h=0
fi

d6307 1
a6307 1
echo "configure:7009: checking for builtin bool type" >&5
d6313 1
a6313 1
#line 7015 "configure"
d6323 1
a6323 1
if { (eval echo configure:7025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6360 1
a6360 1
echo "configure:7062: checking for library $cf_stdcpp_libname" >&5
d6368 1
a6368 1
#line 7070 "configure"
d6379 1
a6379 1
if { (eval echo configure:7081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6398 10
a6407 6
	case $GXX_VERSION in
	1*|2.0-6*)
		cf_cxx_library=yes
		;;
	*-2.7*|2.7*)
		
d6419 1
a6419 1
echo "configure:7117: checking for lib$cf_gpp_libname" >&5
d6423 1
a6423 1
#line 7121 "configure"
d6432 1
a6432 1
if { (eval echo configure:7130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6452 1
a6452 1
#line 7150 "configure"
d6461 1
a6461 1
if { (eval echo configure:7159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6482 6
a6487 2
		;;
	*)
d6489 1
a6489 2
		;;
	esac
d6492 1
a6492 1
echo "configure:7187: checking how to run the C++ preprocessor" >&5
d6505 1
a6505 1
#line 7200 "configure"
d6510 1
a6510 1
{ (eval echo configure:7205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6538 1
a6538 1
echo "configure:7233: checking for $ac_hdr" >&5
d6543 1
a6543 1
#line 7238 "configure"
d6548 1
a6548 1
{ (eval echo configure:7243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a6575 34
ac_safe=`echo "stdbool.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for stdbool.h""... $ac_c" 1>&6
echo "configure:7273: checking for stdbool.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7278 "configure"
#include "confdefs.h"
#include <stdbool.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:7283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cf_cv_header_stdbool_h=1
else
  echo "$ac_t""no" 1>&6
cf_cv_header_stdbool_h=0
fi

d6577 1
a6577 1
echo "configure:7306: checking for builtin bool type" >&5
d6583 1
a6583 1
#line 7312 "configure"
d6593 1
a6593 1
if { (eval echo configure:7322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6613 1
a6613 1
echo "configure:7342: checking for size of bool" >&5
d6623 1
a6623 1
#line 7352 "configure"
a6630 3

#if defined(__cplusplus)

a6637 9

#else

#if $cf_cv_header_stdbool_h
#include <stdbool.h>
#endif

#endif

d6655 1
a6655 1
if { (eval echo configure:7396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a6657 3
		 if test -z "$cf_cv_type_of_bool"; then
		   cf_cv_type_of_bool=unknown
		 fi
d6673 2
a6674 5
	case .$NCURSES_BOOL in #(vi
	.auto|.) NCURSES_BOOL=unsigned;;
	esac
	echo "configure: warning: Assuming $NCURSES_BOOL for type of bool" 1>&2
	cf_cv_type_of_bool=$NCURSES_BOOL
d6679 1
a6679 1
echo "configure:7426: checking for special defines needed for etip.h" >&5
d6690 1
a6690 1
#line 7437 "configure"
d6699 1
a6699 1
if { (eval echo configure:7446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6726 1
a6726 1
echo "configure:7473: checking if $CXX accepts parameter initialization" >&5
d6743 1
a6743 1
#line 7490 "configure"
d6764 1
a6764 1
if { (eval echo configure:7511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6808 1
a6808 1
echo "configure:7555: checking for $ac_hdr" >&5
d6813 1
a6813 1
#line 7560 "configure"
d6818 1
a6818 1
{ (eval echo configure:7565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6846 1
a6846 1
echo "configure:7593: checking if $CXX supports vscan function" >&5
d6851 1
a6851 1
	for cf_vscan_func in strstream strstream_cast stdio
a6855 1
	strstream_cast)	cf_vscan_defs=USE_STRSTREAM_VSCAN_CAST ;;
d6858 1
a6858 1
#line 7606 "configure"
d6872 1
d6878 1
a6878 1
    if (::vsscanf(buf, fmt, args) != -1)
a6881 4
    if (ss.vscan(fmt, args) != -1)
	result = 0;
#elif defined(USE_STRSTREAM_VSCAN_CAST)
    strstreambuf ss(buf, sizeof(buf));
d6888 3
d6898 1
a6898 1
if { (eval echo configure:7646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a6944 10
strstream_cast)
	cat >> confdefs.h <<\EOF
#define CPP_HAS_VSCAN_FUNC 1
EOF

	cat >> confdefs.h <<\EOF
#define USE_STRSTREAM_VSCAN_CAST 1
EOF

	;;
a6947 2
	CXX_AR='$(AR)'
	CXX_AR_OPTS='$(AR_OPTS)'
d6949 1
a6949 7
	irix*) #(vi
	    if test "$GXX" != yes ; then
		CXX_AR='$(CXX)'
		CXX_AR_OPTS='-ar -o'
	    fi
	    ;;
	sco3.2v5*) #(vi
a6951 6
	solaris2*)
	    if test "$GXX" != yes ; then
		CXX_AR='$(CXX)'
		CXX_AR_OPTS='-xar -o'
	    fi
	    ;;
a6953 2
	
	
d6967 5
a6971 83
	if test "$NCURSES_BOOL" != auto ; then
		cf_cv_type_of_bool=$NCURSES_AUTO
	else
		if test "$cf_cv_header_stdbool_h" = 1 ; then
			
echo $ac_n "checking for size of bool""... $ac_c" 1>&6
echo "configure:7747: checking for size of bool" >&5
if eval "test \"`echo '$''{'cf_cv_type_of_bool'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
	rm -f cf_test.out
	if test "$cross_compiling" = yes; then
  cf_cv_type_of_bool=unknown
else
  cat > conftest.$ac_ext <<EOF
#line 7757 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit(int);
#endif

#include <stdlib.h>
#include <stdio.h>

#if defined(__cplusplus)

#ifdef HAVE_GXX_BUILTIN_H
#include <g++/builtin.h>
#elif HAVE_GPP_BUILTIN_H
#include <gpp/builtin.h>
#elif HAVE_BUILTIN_H
#include <builtin.h>
#endif

#else

#if $cf_cv_header_stdbool_h
#include <stdbool.h>
#endif

#endif

main()
{
	FILE *fp = fopen("cf_test.out", "w");
	if (fp != 0) {
		bool x = true;
		if ((bool)(-x) >= 0)
			fputs("unsigned ", fp);
		if (sizeof(x) == sizeof(int))       fputs("int",  fp);
		else if (sizeof(x) == sizeof(char)) fputs("char", fp);
		else if (sizeof(x) == sizeof(short))fputs("short",fp);
		else if (sizeof(x) == sizeof(long)) fputs("long", fp);
		fclose(fp);
	}
	exit(0);
}
		
EOF
if { (eval echo configure:7801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  cf_cv_type_of_bool=`cat cf_test.out`
		 if test -z "$cf_cv_type_of_bool"; then
		   cf_cv_type_of_bool=unknown
		 fi
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  cf_cv_type_of_bool=unknown
fi
rm -fr conftest*
fi

	
fi

	rm -f cf_test.out
echo "$ac_t""$cf_cv_type_of_bool" 1>&6
if test "$cf_cv_type_of_bool" = unknown ; then
	case .$NCURSES_BOOL in #(vi
	.auto|.) NCURSES_BOOL=unsigned;;
d6973 1
a6973 14
	echo "configure: warning: Assuming $NCURSES_BOOL for type of bool" 1>&2
	cf_cv_type_of_bool=$NCURSES_BOOL
fi

		else
			echo $ac_n "checking for fallback type of bool""... $ac_c" 1>&6
echo "configure:7831: checking for fallback type of bool" >&5
			case "$host_cpu" in #(vi
			i?86)	cf_cv_type_of_bool=char	;; #(vi
			*)	cf_cv_type_of_bool=int	;;
			esac
			echo "$ac_t""$cf_cv_type_of_bool" 1>&6
		fi
	fi
d6984 1
a6984 1
echo "configure:7849: checking for $ac_word" >&5
d7038 1
a7038 1
echo "configure:7903: checking for $ac_word" >&5
d7071 1
a7071 1
echo "configure:7936: checking if GNAT works" >&5
d7133 1
a7133 3
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
d7149 1
a7149 1
  { echo "configure: error: expected a pathname, not \"$withval\"" 1>&2; exit 1; }
d7167 1
a7167 3
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
d7183 1
a7183 1
  { echo "configure: error: expected a pathname, not \"$withval\"" 1>&2; exit 1; }
d7198 8
a7205 3
	case $GCC_VERSION in
	2.6.3)
		if test "$cf_cv_type_of_bool" != "char"; then
d7207 3
a7209 6
		fi
		;;
	2.5*)
		EXTRA_CFLAGS="$EXTRA_CFLAGS -Wconversion"
		;;
	esac
d7215 1
a7215 1
echo "configure:8082: checking for library subsets" >&5
a7221 1
test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
d7275 1
a7275 1
echo "configure:8143: checking default library suffix" >&5
d7288 1
a7288 1
echo "configure:8156: checking default library-dependency suffix" >&5
a7297 2
		cygwin*) DFT_DEP_SUFFIX='.dll' ;;
		darwin*) DFT_DEP_SUFFIX='.dylib' ;;
a7302 7
if test $DFT_LWR_MODEL = shared ; then
	case $cf_cv_system_name in #(vi
	cygwin*)
		DFT_DEP_SUFFIX=".dll.a"
		;;
	esac
fi
d7306 1
a7306 1
echo "configure:8183: checking default object directory" >&5
d7313 1
a7313 7
	shared)
		case $cf_cv_system_name in #(vi
		cygwin) #(vi
			DFT_OBJ_SUBDIR='objects' ;;
		*)
			DFT_OBJ_SUBDIR='obj_s' ;;
		esac
d7319 1
a7319 1
echo "configure:8202: checking c++ library-dependency suffix" >&5
a7331 2
		cygwin*) CXX_LIB_SUFFIX='.dll' ;;
		darwin*) CXX_LIB_SUFFIX='.dylib' ;;
d7345 1
a7345 1
echo "configure:8230: checking where we will install curses.h" >&5
d7373 1
a7373 1
echo "configure:8258: checking for src modules" >&5
d7433 1
a7433 1
TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
d7437 1
a7437 1
PROG_ARGS="-L${LIB_DIR} $PROG_ARGS"
d7445 1
a7445 2
SRC_SUBDIRS="$SRC_SUBDIRS test"
test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
d7478 1
a7478 7
	shared)
		case $cf_cv_system_name in #(vi
		cygwin) #(vi
			cf_subdir='objects' ;;
		*)
			cf_subdir='obj_s' ;;
		esac
d7481 1
a7481 5
	for cf_item2 in $DIRS_TO_MAKE
	do
		test $cf_item2 = $cf_subdir && break
	done
	test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
d7589 1
a7589 1
    echo "$CONFIG_STATUS generated by autoconf version 2.13.20020210"
d7602 1
a7602 1
	include/curses.head:include/curses.h.in \
a7645 1
s%@@cf_cv_header_stdbool_h@@%$cf_cv_header_stdbool_h%g
a7663 3
s%@@BUILD_CFLAGS@@%$BUILD_CFLAGS%g
s%@@BUILD_LDFLAGS@@%$BUILD_LDFLAGS%g
s%@@BUILD_LIBS@@%$BUILD_LIBS%g
d7706 1
a7707 1
s%@@FALLBACK_LIST@@%$FALLBACK_LIST%g
a7709 4
s%@@MAKE_TERMINFO@@%$MAKE_TERMINFO%g
s%@@TERMPATH@@%$TERMPATH%g
s%@@BROKEN_LINKER@@%$BROKEN_LINKER%g
s%@@NCURSES_BOOL@@%$NCURSES_BOOL%g
a7710 2
s%@@MANPAGE_RENAMES@@%$MANPAGE_RENAMES%g
s%@@NCURSES_EXT_FUNCS@@%$NCURSES_EXT_FUNCS%g
a7712 4
s%@@NCURSES_CH_T@@%$NCURSES_CH_T%g
s%@@NCURSES_LIBUTF8@@%$NCURSES_LIBUTF8%g
s%@@NCURSES_MBSTATE_T@@%$NCURSES_MBSTATE_T%g
s%@@TERMINFO_CAPS@@%$TERMINFO_CAPS%g
d7718 2
a7719 1
s%@@HAVE_VSSCANF@@%$HAVE_VSSCANF%g
a7721 2
s%@@CXX_AR@@%$CXX_AR%g
s%@@CXX_AR_OPTS@@%$CXX_AR_OPTS%g
d7790 1
a7790 1
	include/curses.head:include/curses.h.in \
d7967 1
a7968 1
LIB_SUFFIX="$LIB_SUFFIX"
a7969 2
MAKE_TERMINFO="$MAKE_TERMINFO"
NCURSES_OSPEED="$NCURSES_OSPEED"
a7972 1
WITH_CURSES_H="$with_curses_h"
d7975 1
a7979 2
cf_cv_shlib_version="$cf_cv_shlib_version"
cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
d7982 1
d8005 1
a8005 3
		IMPORT_LIB=
		SHARED_LIB=
		LIBS_TO_MAKE=
a8016 2
		cygwin*) cf_suffix='.dll' ;;
		darwin*) cf_suffix='.dylib' ;;
d8026 2
a8027 12
				rel) #(vi
					case "$cf_cv_system_name" in #(vi
					darwin*) cf_suffix='.$(REL_VERSION)'"$cf_suffix" ;; #(vi
					*) cf_suffix="$cf_suffix"'.$(REL_VERSION)' ;;
					esac
					;;
				abi)
					case "$cf_cv_system_name" in #(vi
					darwin*) cf_suffix='.$(ABI_VERSION)'"$cf_suffix" ;; #(vi
					*) cf_suffix="$cf_suffix"'.$(ABI_VERSION)' ;;
					esac
					;;
a8029 7
			# cygwin needs import library, and has unique naming convention
			if test $cf_cv_shlib_version = cygdll ; then
				SHARED_LIB="../lib/${cf_prefix}${cf_dir}\$(ABI_VERSION).dll"
				IMPORT_LIB="../lib/${cf_prefix}${cf_dir}.dll.a"
				LIBS_TO_MAKE="$LIBS_TO_MAKE \$(SHARED_LIB) \$(IMPORT_LIB)"
				continue
			fi
d8031 1
a8031 1
			LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
a8034 1
			cf_subsets="$LIB_SUBSETS"
d8039 2
a8040 2
				cf_item=`echo $LIBS_TO_MAKE |sed -e s/$LIB_NAME/$TINFO_NAME/g`
				LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
a8042 2
		else
			cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib //'`
d8045 1
a8045 3
		sed -e "s@@\@@LIBS_TO_MAKE\@@@@$LIBS_TO_MAKE@@" \
		    -e "s@@\@@IMPORT_LIB\@@@@$IMPORT_LIB@@" \
		    -e "s@@\@@SHARED_LIB\@@@@$SHARED_LIB@@" \
d8050 1
a8050 1
			libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
d8053 1
a8053 1
		for cf_subset in $cf_subsets
d8055 1
a8055 4
			cf_subdirs=
			for cf_item in $CF_LIST_MODELS
			do
			echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
a8067 2
		cygwin*) cf_suffix='.dll' ;;
		darwin*) cf_suffix='.dylib' ;;
d8080 1
a8080 7
	shared)
		case $cf_cv_system_name in #(vi
		cygwin) #(vi
			cf_subdir='objects' ;;
		*)
			cf_subdir='obj_s' ;;
		esac
d8099 2
a8109 1
				ShlibVerInfix=$cf_cv_shlib_version_infix \
d8117 1
a8117 5
			for cf_subdir2 in $cf_subdirs lib
			do
				test $cf_subdir = $cf_subdir2 && break
			done
			test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
a8126 1
			cf_subdirs="$cf_subdirs $cf_subdir"
d8182 1
a8182 1
install.data \\
d8184 1
a8184 1
$MAKE_TERMINFO	cd misc && \$(MAKE) \$(CF_MFLAGS) \$@@
d8186 1
a8186 1
install.man \\
d8201 1
a8201 1
install.man \\
a8278 3
# Just in case someone gzip'd manpages, remove the conflicting copy.
test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz

d8290 1
a8290 1
	sh \$(srcdir)/../mkinstalldirs \$@@
a8320 11
	fi

	if test -f $srcdir/$cf_dir/modules; then
		if test "$cf_dir" != "c++" ; then
			cat >>$cf_dir/Makefile <<"CF_EOF"
depend : $(AUTO_SRC)
	makedepend -- $(CPPFLAGS) -- $(C_SRC)

# DO NOT DELETE THIS LINE -- make depend depends on it.
CF_EOF
		fi
@


1.1.1.7
log
@Import ncurses 5.2-20020615 to fix a first-column display bug.
@
text
@d3 1
a3 1
# From configure.in Revision: 1.268 
d254 1
a259 1
  --disable-hashmap       compile without hashmap scrolling-optimization
d262 1
a262 1
  --enable-colorfgbg      compile with \$COLORFGBG code
d4168 18
d4188 1
a4188 1
echo "configure:4171: checking if you want hard-tabs code" >&5
d4205 1
a4205 1
echo "configure:4188: checking if you want to use restrict environment when running as root" >&5
d4223 1
a4223 1
echo "configure:4206: checking if you want limited support for xmc" >&5
d4244 1
a4244 1
echo "configure:4227: checking if you do not want to assume colors are white-on-black" >&5
d4262 1
a4262 1
echo "configure:4245: checking if you want hashmap scrolling-optimization code" >&5
a4274 18
EOF


###   use option --enable-colorfgbg to turn on use of $COLORFGBG environment
echo $ac_n "checking if you want colorfgbg code""... $ac_c" 1>&6
echo "configure:4263: checking if you want colorfgbg code" >&5

# Check whether --enable-colorfgbg or --disable-colorfgbg was given.
if test "${enable_colorfgbg+set}" = set; then
  enableval="$enable_colorfgbg"
  with_colorfgbg=$enableval
else
  with_colorfgbg=no
fi

echo "$ac_t""$with_colorfgbg" 1>&6
test "$with_colorfgbg" = yes && cat >> confdefs.h <<\EOF
#define USE_COLORFGBG 1
@


1.1.1.7.14.1
log
@MFC: ncurses 5.6-20061217

Approved by:	delphij (mentor)
Tested by:	several people on stable@@
@
text
@d2 5
a6 1
# From configure.in Revision: 1.383 .
d8 2
a9 1
# Generated by Autoconf 2.52.20061216.
a10 2
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
d14 2
a15 86
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Name of the executable.
as_me=`echo "$0" |sed 's,.*[\\/],,'`

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

as_executable_p="test -f"

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

# NLS nuisances.
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }

# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }

# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

exec 6>&1

#
# Initializations.
#
d17 1
a17 47
cross_compiling=no
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}

# Maximum number of lines to put in a shell here document.
# This variable seems obsolete.  It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}

ac_unique_file="ncurses/base/lib_initscr.c"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"
a19 2
ac_init_help=
ac_init_version=false
d22 2
a23 1
cache_file=/dev/null
d25 1
d27 1
d36 1
a39 6

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
d53 6
a58 6
# Identity of this package.
PACKAGE_NAME=
PACKAGE_TARNAME=
PACKAGE_VERSION=
PACKAGE_STRING=
PACKAGE_BUGREPORT=
d63 1
d71 4
a74 1
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
d78 1
a78 1
  case $ac_option in
d83 1
a83 1
    bindir=$ac_optarg ;;
d86 1
a86 1
    ac_prev=build_alias ;;
d88 1
a88 1
    build_alias=$ac_optarg ;;
d95 1
a95 4
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;
d101 1
a101 1
    datadir=$ac_optarg ;;
d104 1
a104 1
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d106 5
a110 5
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    eval "enable_$ac_feature=no" ;;
d113 1
a113 1
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d115 6
a120 6
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
d123 1
a123 1
    eval "enable_$ac_feature='$ac_optarg'" ;;
d132 1
a132 1
    exec_prefix=$ac_optarg ;;
d138 144
a281 6
  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;
d284 1
a284 1
    ac_prev=host_alias ;;
d286 1
a286 1
    host_alias=$ac_optarg ;;
d293 1
a293 1
    includedir=$ac_optarg ;;
d298 1
a298 1
    infodir=$ac_optarg ;;
d303 1
a303 1
    libdir=$ac_optarg ;;
d310 1
a310 1
    libexecdir=$ac_optarg ;;
d319 1
a319 1
    localstatedir=$ac_optarg ;;
d324 1
a324 1
    mandir=$ac_optarg ;;
d345 1
a345 1
    oldincludedir=$ac_optarg ;;
d350 1
a350 1
    prefix=$ac_optarg ;;
d357 1
a357 1
    program_prefix=$ac_optarg ;;
d364 1
a364 1
    program_suffix=$ac_optarg ;;
d381 1
a381 1
    program_transform_name=$ac_optarg ;;
d391 1
a391 1
    sbindir=$ac_optarg ;;
d402 1
a402 1
    sharedstatedir=$ac_optarg ;;
d407 1
a407 1
    site=$ac_optarg ;;
d412 1
a412 1
    srcdir=$ac_optarg ;;
d419 1
a419 1
    sysconfdir=$ac_optarg ;;
d422 1
a422 1
    ac_prev=target_alias ;;
d424 1
a424 1
    target_alias=$ac_optarg ;;
d429 3
a431 2
  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;
d434 1
a434 1
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d436 3
a438 3
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
d440 2
a441 2
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
d444 1
a444 1
    eval "with_$ac_package='$ac_optarg'" ;;
d447 1
a447 1
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d449 5
a453 5
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
    ac_package=`echo $ac_package | sed 's/-/_/g'`
    eval "with_$ac_package=no" ;;
d464 1
a464 1
    x_includes=$ac_optarg ;;
d471 1
a471 1
    x_libraries=$ac_optarg ;;
d473 1
a473 3
  -*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; }
a475 10
  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   { (exit 1); exit 1; }; }
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    eval "$ac_envvar='$ac_optarg'"
    export $ac_envvar ;;

d477 7
a483 5
    # FIXME: should be removed in autoconf 3.0.
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
d490 17
a506 3
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  { echo "$as_me: error: missing argument to $ac_option" >&2
   { (exit 1); exit 1; }; }
d508 1
d510 4
a513 10
# Be sure to have absolute paths.
for ac_var in exec_prefix prefix
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
  esac
done
d515 4
a518 3
# Be sure to have absolute paths.
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
              localstatedir libdir includedir oldincludedir infodir mandir
d520 8
a527 5
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* ) ;;
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
d531 9
a539 16
# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: should be removed in autoconf 3.0.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi
d541 4
a544 2
ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-
d546 3
a548 1
test "$silent" = yes && exec 6>/dev/null
d555 1
a555 1
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
d566 44
a609 2
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
   { (exit 1); exit 1; }; }
d611 36
a646 2
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
   { (exit 1); exit 1; }; }
d648 3
d652 4
a655 45
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
ac_env_build_alias_set=${build_alias+set}
ac_env_build_alias_value=$build_alias
ac_cv_env_build_alias_set=${build_alias+set}
ac_cv_env_build_alias_value=$build_alias
ac_env_host_alias_set=${host_alias+set}
ac_env_host_alias_value=$host_alias
ac_cv_env_host_alias_set=${host_alias+set}
ac_cv_env_host_alias_value=$host_alias
ac_env_target_alias_set=${target_alias+set}
ac_env_target_alias_value=$target_alias
ac_cv_env_target_alias_set=${target_alias+set}
ac_cv_env_target_alias_value=$target_alias
ac_env_CC_set=${CC+set}
ac_env_CC_value=$CC
ac_cv_env_CC_set=${CC+set}
ac_cv_env_CC_value=$CC
ac_env_CFLAGS_set=${CFLAGS+set}
ac_env_CFLAGS_value=$CFLAGS
ac_cv_env_CFLAGS_set=${CFLAGS+set}
ac_cv_env_CFLAGS_value=$CFLAGS
ac_env_LDFLAGS_set=${LDFLAGS+set}
ac_env_LDFLAGS_value=$LDFLAGS
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
ac_cv_env_LDFLAGS_value=$LDFLAGS
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_env_CPPFLAGS_value=$CPPFLAGS
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
ac_env_CPP_set=${CPP+set}
ac_env_CPP_value=$CPP
ac_cv_env_CPP_set=${CPP+set}
ac_cv_env_CPP_value=$CPP
ac_env_CXX_set=${CXX+set}
ac_env_CXX_value=$CXX
ac_cv_env_CXX_set=${CXX+set}
ac_cv_env_CXX_value=$CXX
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_env_CXXFLAGS_value=$CXXFLAGS
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
ac_env_CXXCPP_set=${CXXCPP+set}
ac_env_CXXCPP_value=$CXXCPP
ac_cv_env_CXXCPP_set=${CXXCPP+set}
ac_cv_env_CXXCPP_value=$CXXCPP
d657 5
d663 16
a678 7
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<EOF
\`configure' configures this package to adapt to many kinds of systems.
d680 4
a683 1
Usage: $0 [OPTION]... [VAR=VALUE]...
d685 2
a686 2
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.
d688 53
a740 1
Defaults for the options are specified in brackets.
d742 4
a745 10
Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
d747 9
d758 9
a766 6
  cat <<EOF
Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]
d768 4
a771 4
By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.
a772 1
For better control, use the options below.
d774 6
a779 14
Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --infodir=DIR           info documentation [PREFIX/info]
  --mandir=DIR            man documentation [PREFIX/man]
EOF
a780 1
  cat <<\EOF
d782 9
a790 4
Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
d792 6
a797 5
System types:
  --build=BUILD           configure for building on BUILD [guessed]
  --host=HOST       build programs to run on HOST [BUILD]
  --target=TARGET   configure for building compilers for TARGET [HOST]
EOF
a799 1
if test -n "$ac_init_help"; then
d801 10
a810 1
  cat <<\EOF
d812 2
a813 3
Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
d815 1
a815 3
Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
d817 2
a818 649
  --with-rel-version=XXX  override derived release version
  --with-abi-version=XXX  override derived ABI version
  --with-system-type=XXX  test: override derived host system-type
  --without-cxx           do not adjust ncurses bool to match C++
  --without-cxx-binding   do not build C++ binding and demo
  --without-ada           suppress check for Ada95, don't build demo
  --without-progs         suppress build with programs (e.g., tic)
  --without-curses-h      install curses.h as ncurses.h only
  --with-install-prefix   prefixes actual install-location ($DESTDIR)
Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
  --with-build-cc=XXX     the build C compiler ($BUILD_CC)
  --with-build-cpp=XXX    the build C preprocessor ($BUILD_CPP)
  --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
  --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
  --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
  --with-build-libs=XXX   the build libraries (${BUILD_LIBS})
Options to Specify the Libraries Built/Used:
  --with-libtool          generate libraries with libtool
  --with-shared           generate shared-libraries
  --with-normal           generate normal-libraries (default)
  --with-debug            generate debug-libraries (default)
  --with-profile          generate profile-libraries
  --with-termlib          generate separate terminfo library
  --with-gpm              use Alessandro Rubini's GPM library
  --without-dlsym         do not use dlsym() to load GPM dynamically
  --with-sysmouse         use sysmouse (FreeBSD console)
  --enable-rpath          use rpath option when generating shared libraries
  --with-shlib-version=X  Specify rel or abi version for shared libs
Fine-Tuning Your Configuration:
  --disable-overwrite     leave out the link to -lcurses
  --disable-database      do not use terminfo, only fallbacks/termcap
  --with-database=XXX     specify terminfo source to install
  --with-hashed-db        specify hashed-database library
  --with-fallbacks=XXX    specify list of fallback terminal descriptions
  --without-xterm-new     specify if xterm terminfo should be old version
  --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
  --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
  --disable-big-core      assume machine has little memory
  --enable-termcap        compile in termcap fallback support
  --with-termpath=XXX     specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
  --enable-getcap         fast termcap load, no xrefs to terminfo
  --enable-getcap-cache   cache translated termcaps in ~/.terminfo
  --disable-home-terminfo drop ~/.terminfo from terminfo search-path
  --disable-root-environ  restrict environment when running as root
  --enable-symlinks       make tic use symbolic links not hard links
  --enable-broken_linker  compile with broken-linker support code
  --enable-bsdpad         recognize BSD-style prefix padding
  --enable-widec          compile with wide-char/UTF-8 code
  --disable-lp64          allow chtype to be long (ignore _LP64)
  --disable-largefile     omit support for large files
  --disable-tparm-varargs compile tparm() without varargs interface
  --with-bool=TYPE        override fallback type of bool variable
  --with-caps=alt         compile with alternate Caps file
  --with-chtype=TYPE      override type of chtype
  --with-ospeed=TYPE      override type of ospeed variable
  --with-mmask-t=TYPE     override type of mmask_t
  --with-rcs-ids          compile-in RCS identifiers
Options to Specify How Manpages are Installed:
  --with-manpage-format   specify manpage-format: gzip/compress/BSDI/normal and
                          optionally formatted/catonly, e.g., gzip,formatted
  --with-manpage-renames  specify manpage-renaming
  --with-manpage-aliases  specify manpage-aliases using .so
  --with-manpage-symlinks specify manpage-aliases using symlinks
  --with-manpage-tbl      specify manpage processing with tbl
Extensions:
  --disable-ext-funcs     disable function-extensions
  --enable-const          compile with extra/non-standard const
  --enable-no-padding     compile with $NCURSES_NO_PADDING code
  --enable-signed-char    compile with SIGWINCH handler
  --enable-sigwinch       compile with SIGWINCH handler
  --enable-tcap-names     compile with user-definable terminal capabilities
Development Code:
  --without-develop       disable development options
  --enable-hard-tabs      compile with hard-tabs code
  --enable-xmc-glitch     compile with support for xmc (magic-cookie)
Experimental Code:
  --disable-assumed-color do not assume anything about default-colors
  --disable-hashmap       compile without hashmap scrolling-optimization
  --enable-colorfgbg      compile with $COLORFGBG code
  --enable-ext-colors     compile for experimental 256-color support
  --enable-ext-mouse      compile for experimental mouse-encoding
  --enable-safe-sprintf   compile with experimental safe-sprintf code
  --disable-scroll-hints  compile without scroll-hints code
  --enable-wgetch-events  compile with experimental wgetch-events code
Testing/development Options:
  --enable-echo           build: display "compiling" commands (default)
  --enable-warnings       build: turn on GCC compiler warnings
  --enable-assertions     test: turn on generation of assertion code
  --with-dmalloc          test: use Gray Watson's dmalloc library
  --with-dbmalloc         test: use Conor Cahill's dbmalloc library
  --with-valgrind         test: use valgrind
  --disable-leaks         test: free permanent memory, analyze leaks
  --enable-expanded       test: generate functions for certain macros
  --disable-macros        test: use functions rather than macros
  --with-trace            test: add trace() function to all models of ncurses
Ada95 Binding Options:
  --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
  --with-ada-include=DIR  Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
  --with-ada-objects=DIR  Ada objects are in DIR (default: PREFIX/lib/ada/adalib)

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
              headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      C++ preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

EOF
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  ac_popdir=`pwd`
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    cd $ac_subdir
    # A "../" for each directory in /$ac_subdir.
    ac_dots=`echo $ac_subdir |
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`

    case $srcdir in
    .) # No --srcdir option.  We are building in place.
      ac_sub_srcdir=$srcdir ;;
    [\\/]* | ?:[\\/]* ) # Absolute path.
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
    *) # Relative path.
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
    esac

    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f $ac_sub_srcdir/configure.gnu; then
      echo
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    elif test -f $ac_sub_srcdir/configure; then
      echo
      $SHELL $ac_sub_srcdir/configure  --help=recursive
    elif test -f $ac_sub_srcdir/configure.ac ||
           test -f $ac_sub_srcdir/configure.in; then
      echo
      $ac_configure --help
    else
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
    fi
    cd $ac_popdir
  done
fi

test -n "$ac_init_help" && exit 0
if $ac_init_version; then
  cat <<\EOF

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
EOF
  exit 0
fi
exec 5>config.log
cat >&5 <<EOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by $as_me, which was
generated by GNU Autoconf 2.52.20061216.  Invocation command line was

  $ $0 $@@

EOF
{
cat <<_ASUNAME
## ---------- ##
## Platform.  ##
## ---------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

PATH = $PATH

_ASUNAME
} >&5

cat >&5 <<EOF
## ------------ ##
## Core tests.  ##
## ------------ ##

EOF

# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell meta-characters.
ac_configure_args=
ac_sep=
for ac_arg
do
  case $ac_arg in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    ac_sep=" " ;;
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
     ac_sep=" " ;;
  esac
  # Get rid of the leading space.
done

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  echo >&5
  echo "## ----------------- ##" >&5
  echo "## Cache variables.  ##" >&5
  echo "## ----------------- ##" >&5
  echo >&5
  # The following way of writing the cache mishandles newlines in values,
{
  (set) 2>&1 |
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      sed -n \
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
      ;;
    *)
      sed -n \
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} >&5
  sed "/^$/d" confdefs.h >conftest.log
  if test -s conftest.log; then
    echo >&5
    echo "## ------------ ##" >&5
    echo "## confdefs.h.  ##" >&5
    echo "## ------------ ##" >&5
    echo >&5
    cat conftest.log >&5
  fi
  (echo; echo) >&5
  test "$ac_signal" != 0 &&
    echo "$as_me: caught signal $ac_signal" >&5
  echo "$as_me: exit $exit_status" >&5
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
    exit $exit_status
     ' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo >confdefs.h

# Let the site file select an alternate cache file if it wants to.
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    { echo "$as_me:989: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
    cat "$ac_site_file" >&5
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    { echo "$as_me:1000: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . $cache_file;;
      *)                      . ./$cache_file;;
    esac
  fi
else
  { echo "$as_me:1008: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in `(set) 2>&1 |
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  eval ac_new_val="\$ac_env_${ac_var}_value"
  case $ac_old_set,$ac_new_set in
    set,)
      { echo "$as_me:1024: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { echo "$as_me:1028: error: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
        { echo "$as_me:1034: error: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
        { echo "$as_me:1036:   former value:  $ac_old_val" >&5
echo "$as_me:   former value:  $ac_old_val" >&2;}
        { echo "$as_me:1038:   current value: $ac_new_val" >&5
echo "$as_me:   current value: $ac_new_val" >&2;}
        ac_cache_corrupted=:
      fi;;
  esac
  # Pass precious variables to config.status.  It doesn't matter if
  # we pass some twice (in addition to the command line arguments).
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
      ac_configure_args="$ac_configure_args '$ac_arg'"
      ;;
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
       ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { echo "$as_me:1057: error: changes in the environment can compromise the build" >&5
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  { { echo "$as_me:1059: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
echo "#! $SHELL" >conftest.sh
echo  "exit 0"   >>conftest.sh
chmod +x conftest.sh
if { (echo "$as_me:1080: PATH=\".;.\"; conftest.sh") >&5
  (PATH=".;."; conftest.sh) 2>&5
  ac_status=$?
  echo "$as_me:1083: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_path_separator=';'
else
  ac_path_separator=:
fi
PATH_SEPARATOR="$ac_path_separator"
rm -f conftest.sh

ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"

top_builddir=`pwd`

echo "$as_me:1096: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_prog_egrep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    then ac_cv_prog_egrep='grep -E'
    else ac_cv_prog_egrep='egrep'
    fi
fi
echo "$as_me:1106: result: $ac_cv_prog_egrep" >&5
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 EGREP=$ac_cv_prog_egrep

test -z "$EGREP" && { { echo "$as_me:1110: error: No egrep program found" >&5
echo "$as_me: error: No egrep program found" >&2;}
   { (exit 1); exit 1; }; }

NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ 	]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ 	]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ 	]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
cf_cv_abi_version=${NCURSES_MAJOR}
cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
cf_cv_timestamp=`date`
echo "$as_me:1120: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6

test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0

# Check whether --with-rel-version or --without-rel-version was given.
if test "${with_rel_version+set}" = set; then
  withval="$with_rel_version"
  { echo "$as_me:1128: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
 cf_cv_rel_version=$withval
fi;

 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`

if test -n "$NCURSES_MAJOR" ; then
  case $NCURSES_MAJOR in #(vi
  [0-9]*) #(vi
 	;;
  *)
	{ { echo "$as_me:1141: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
   { (exit 1); exit 1; }; }
 	;;
  esac
else
  { { echo "$as_me:1147: error: Release major-version value is empty" >&5
echo "$as_me: error: Release major-version value is empty" >&2;}
   { (exit 1); exit 1; }; }
fi

if test -n "$NCURSES_MINOR" ; then
  case $NCURSES_MINOR in #(vi
  [0-9]*) #(vi
 	;;
  *)
	{ { echo "$as_me:1157: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
   { (exit 1); exit 1; }; }
 	;;
  esac
else
  { { echo "$as_me:1163: error: Release minor-version value is empty" >&5
echo "$as_me: error: Release minor-version value is empty" >&2;}
   { (exit 1); exit 1; }; }
fi

test -z "$cf_cv_abi_version" && cf_cv_abi_version=0

# Check whether --with-abi-version or --without-abi-version was given.
if test "${with_abi_version+set}" = set; then
  withval="$with_abi_version"
  { echo "$as_me:1173: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
 cf_cv_abi_version=$withval
fi;

if test -n "$cf_cv_abi_version" ; then
  case $cf_cv_abi_version in #(vi
  [0-9]*) #(vi
 	;;
  *)
	{ { echo "$as_me:1183: error: ABI version is not a number: $cf_cv_abi_version" >&5
echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
   { (exit 1); exit 1; }; }
 	;;
  esac
else
  { { echo "$as_me:1189: error: ABI version value is empty" >&5
echo "$as_me: error: ABI version value is empty" >&2;}
   { (exit 1); exit 1; }; }
fi

ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f $ac_dir/shtool; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { { echo "$as_me:1211: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
   { (exit 1); exit 1; }; }
fi
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.

# Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 ||
  { { echo "$as_me:1221: error: cannot run $ac_config_sub" >&5
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   { (exit 1); exit 1; }; }

echo "$as_me:1225: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6
if test "${ac_cv_build+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_build_alias=$build_alias
test -z "$ac_cv_build_alias" &&
  ac_cv_build_alias=`$ac_config_guess`
test -z "$ac_cv_build_alias" &&
  { { echo "$as_me:1234: error: cannot guess build type; you must specify one" >&5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   { (exit 1); exit 1; }; }
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  { { echo "$as_me:1238: error: $ac_config_sub $ac_cv_build_alias failed." >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1243: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6
build=$ac_cv_build
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

echo "$as_me:1250: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6
if test "${ac_cv_host+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_host_alias=$host_alias
test -z "$ac_cv_host_alias" &&
  ac_cv_host_alias=$ac_cv_build_alias
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  { { echo "$as_me:1259: error: $ac_config_sub $ac_cv_host_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1264: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6
host=$ac_cv_host
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
	echo "$as_me:1272: checking target system type" >&5
echo $ECHO_N "checking target system type... $ECHO_C" >&6
if test "${ac_cv_target+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_target_alias=$target_alias
test "x$ac_cv_target_alias" = "x" &&
  ac_cv_target_alias=$ac_cv_host_alias
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  { { echo "$as_me:1281: error: $ac_config_sub $ac_cv_target_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1286: result: $ac_cv_target" >&5
echo "${ECHO_T}$ac_cv_target" >&6
target=$ac_cv_target
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
test -n "$target_alias" &&
  test "$program_prefix$program_suffix$program_transform_name" = \
    NONENONEs,x,x, &&
  program_prefix=${target_alias}-
	system_name="$host_os"
else
	system_name="`(uname -s -r) 2>/dev/null`"
	if test -z "$system_name" ; then
		system_name="`(hostname) 2>/dev/null`"
	fi
fi
test -n "$system_name" && cat >>confdefs.h <<EOF
#define SYSTEM_NAME "$system_name"
EOF

if test "${cf_cv_system_name+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cf_cv_system_name="$system_name"
fi

test -z "$system_name" && system_name="$cf_cv_system_name"
test -n "$cf_cv_system_name" && echo "$as_me:1317: result: Configuring for $cf_cv_system_name" >&5
echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6

if test ".$system_name" != ".$cf_cv_system_name" ; then
	echo "$as_me:1321: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
	{ { echo "$as_me:1323: error: \"Please remove config.cache and try again.\"" >&5
echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
   { (exit 1); exit 1; }; }
fi

# Check whether --with-system-type or --without-system-type was given.
if test "${with_system_type+set}" = set; then
  withval="$with_system_type"
  { echo "$as_me:1331: WARNING: overriding system type to $withval" >&5
echo "$as_me: WARNING: overriding system type to $withval" >&2;}
 cf_cv_system_name=$withval
fi;

###	Save the given $CFLAGS to allow user-override.
cf_user_CFLAGS="$CFLAGS"

###	Default install-location

echo "$as_me:1341: checking for prefix" >&5
echo $ECHO_N "checking for prefix... $ECHO_C" >&6
d822 1
a822 1
	openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
d829 1
a829 2
echo "$as_me:1353: result: $prefix" >&5
echo "${ECHO_T}$prefix" >&6
d832 2
a833 2
echo "$as_me:1357: checking for default include-directory" >&5
echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
d855 1
a855 2
echo "$as_me:1380: result: $includedir" >&5
echo "${ECHO_T}$includedir" >&6
d858 1
d860 6
a865 13
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo "$as_me:1394: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d870 10
a879 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}gcc"
echo "$as_me:1409: found $ac_dir/$ac_word" >&5
break
done

d882 1
a882 1
CC=$ac_cv_prog_CC
d884 1
a884 2
  echo "$as_me:1417: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d886 1
a886 2
  echo "$as_me:1420: result: no" >&5
echo "${ECHO_T}no" >&6
d889 39
a928 23
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "$as_me:1429: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="gcc"
echo "$as_me:1444: found $ac_dir/$ac_word" >&5
break
done

d931 3
a933 4
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1452: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
d935 1
a935 2
  echo "$as_me:1455: result: no" >&5
echo "${ECHO_T}no" >&6
d938 9
a946 13
  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
echo "$as_me:1468: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d951 10
a960 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}cc"
echo "$as_me:1483: found $ac_dir/$ac_word" >&5
break
done

d963 1
a963 1
CC=$ac_cv_prog_CC
d965 1
a965 2
  echo "$as_me:1491: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d967 6
a972 2
  echo "$as_me:1494: result: no" >&5
echo "${ECHO_T}no" >&6
d975 2
a976 23
fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:1503: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="cc"
echo "$as_me:1518: found $ac_dir/$ac_word" >&5
break
done
d978 6
a983 10
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1526: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:1529: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d985 1
a985 4
  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi
d987 2
a988 27
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:1542: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  ac_prog_rejected=yes
  continue
fi
ac_cv_prog_CC="cc"
echo "$as_me:1562: found $ac_dir/$ac_word" >&5
break
done
d990 9
a998 12
if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    set dummy "$ac_dir/$ac_word" ${1+"$@@"}
    shift
    ac_cv_prog_CC="$@@"
a999 7
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:1584: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d1001 3
a1003 2
  echo "$as_me:1587: result: no" >&5
echo "${ECHO_T}no" >&6
d1005 7
d1013 3
d1017 4
a1020 24
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:1598: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
echo "$as_me:1613: found $ac_dir/$ac_word" >&5
break
done
d1022 4
a1025 6
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:1621: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d1027 7
a1033 38
  echo "$as_me:1624: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:1637: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="$ac_prog"
echo "$as_me:1652: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1660: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
d1035 1
a1035 8
  echo "$as_me:1663: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$ac_ct_CC" && break
done

  CC=$ac_ct_CC
a1036 1

d1039 1
a1039 107
test -z "$CC" && { { echo "$as_me:1675: error: no acceptable cc found in \$PATH" >&5
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }

# Provide some information about the compiler.
echo "$as_me:1680:" \
     "checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:1683: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:1686: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:1688: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:1691: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:1693: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:1696: \$? = $ac_status" >&5
  (exit $ac_status); }

cat >conftest.$ac_ext <<_ACEOF
#line 1700 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
echo "$as_me:1716: checking for C compiler default output" >&5
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
if { (eval echo "$as_me:1719: \"$ac_link_default\"") >&5
  (eval $ac_link_default) 2>&5
  ac_status=$?
  echo "$as_me:1722: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # Find the output, starting from the most likely.  This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort.
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
                ls a.out conftest 2>/dev/null;
                ls a.* conftest.* 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    a.out ) # We found the default executable, but exeext='' is most
            # certainly right.
            break;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:1745: error: C compiler cannot create executables" >&5
echo "$as_me: error: C compiler cannot create executables" >&2;}
   { (exit 77); exit 77; }; }
fi

ac_exeext=$ac_cv_exeext
echo "$as_me:1751: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6

# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:1756: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
  { (eval echo "$as_me:1762: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1765: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { echo "$as_me:1772: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&2;}
   { (exit 1); exit 1; }; }
    fi
  fi
fi
echo "$as_me:1780: result: yes" >&5
echo "${ECHO_T}yes" >&6
d1041 2
a1042 29
rm -f a.out a.exe conftest$ac_cv_exeext
ac_clean_files=$ac_clean_files_save
# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:1787: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "$as_me:1789: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6

echo "$as_me:1792: checking for executable suffix" >&5
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
if { (eval echo "$as_me:1794: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:1797: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
d1044 1
a1044 3
  { { echo "$as_me:1813: error: cannot compute EXEEXT: cannot compile and link" >&5
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
   { (exit 1); exit 1; }; }
d1047 7
a1053 103
rm -f conftest$ac_cv_exeext
echo "$as_me:1819: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
echo "$as_me:1825: checking for object suffix" >&5
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1831 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { (eval echo "$as_me:1843: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1846: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:1858: error: cannot compute OBJEXT: cannot compile" >&5
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
echo "$as_me:1865: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
echo "$as_me:1869: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
if test "${ac_cv_c_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1875 "configure"
#include "confdefs.h"

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1890: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1893: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1896: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1899: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:1911: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
CFLAGS="-g"
echo "$as_me:1917: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cc_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1055 2
a1056 24
  cat >conftest.$ac_ext <<_ACEOF
#line 1923 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1935: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1938: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1941: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1944: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d1059 1
a1059 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_prog_cc_g=no
d1061 2
a1062 1
rm -f conftest.$ac_objext conftest.$ac_ext
d1064 2
a1065 2
echo "$as_me:1954: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
d1067 1
a1067 1
  CFLAGS=$ac_save_CFLAGS
d1081 24
a1104 29
# Some people use a C++ compiler to compile C.  Since we use `exit',
# in C++ we need to declare it.  In case someone uses the same compiler
# for both compiling C and C++ we need to have the C++ compiler decide
# the declaration of exit, since it's the most demanding environment.
cat >conftest.$ac_ext <<_ACEOF
#ifndef __cplusplus
  choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1981: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1984: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1987: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1990: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
d1106 9
a1114 26
  cat >conftest.$ac_ext <<_ACEOF
#line 2002 "configure"
#include "confdefs.h"
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2015: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2018: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2021: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2024: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
d1116 15
a1130 30
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 2034 "configure"
#include "confdefs.h"
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2046: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2049: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2052: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2055: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
d1132 1
a1132 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d1134 2
a1135 1
rm -f conftest.$ac_objext conftest.$ac_ext
d1137 15
a1151 5
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
d1154 5
a1158 3
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a1159 7
rm -f conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return
a1160 8
GCC_VERSION=none
if test "$GCC" = yes ; then
	echo "$as_me:2085: checking version of $CC" >&5
echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
	GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
	test -z "$GCC_VERSION" && GCC_VERSION=unknown
	echo "$as_me:2089: result: $GCC_VERSION" >&5
echo "${ECHO_T}$GCC_VERSION" >&6
d1163 6
a1168 8
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return
echo "$as_me:2099: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
d1174 2
a1175 2
  if test "${ac_cv_prog_CPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1177 3
a1179 8
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
d1181 3
a1183 3
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 2120 "configure"
d1186 6
a1191 19
                     Syntax error
_ACEOF
if { (eval echo "$as_me:2125: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:2131: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
d1194 2
a1195 1
  echo "$as_me: failed program was:" >&5
d1197 13
a1209 31
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 2154 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:2158: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:2164: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
d1211 2
a1212 1
  echo "$as_me: failed program was:" >&5
d1214 4
a1217 32
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
echo "$as_me:2201: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 2211 "configure"
d1220 6
a1225 19
                     Syntax error
_ACEOF
if { (eval echo "$as_me:2216: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:2222: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
d1228 2
a1229 1
  echo "$as_me: failed program was:" >&5
d1231 4
a1234 2
  # Broken: fails on valid input.
continue
d1236 1
a1236 24
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 2245 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:2249: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:2255: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
d1238 2
a1239 9
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
d1241 1
a1241 7
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
d1243 1
a1243 3
  { { echo "$as_me:2283: error: C preprocessor \"$CPP\" fails sanity check" >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
   { (exit 1); exit 1; }; }
d1245 1
d1247 5
a1251 12
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

if test $ac_cv_c_compiler_gnu = yes; then
    echo "$as_me:2296: checking whether $CC needs -traditional" >&5
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1254 2
a1255 2
  cat >conftest.$ac_ext <<_ACEOF
#line 2303 "configure"
d1258 2
a1259 2
int Autoconf = TIOCGETP;
_ACEOF
d1262 1
d1265 1
d1270 1
d1272 2
a1273 2
    cat >conftest.$ac_ext <<_ACEOF
#line 2318 "configure"
d1276 2
a1277 2
int Autoconf = TCGETA;
_ACEOF
d1280 1
d1287 2
a1288 2
echo "$as_me:2331: result: $ac_cv_prog_gcc_traditional" >&5
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
d1294 2
a1295 44
echo "$as_me:2338: checking whether $CC understands -c and -o together" >&5
echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
if test "${cf_cv_prog_CC_c_o+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat > conftest.$ac_ext <<CF_EOF
#include <stdio.h>
int main()
{
	${cf_cv_main_return:-return}(0);
}
CF_EOF
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
if { (eval echo "$as_me:2354: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2357: \$? = $ac_status" >&5
  (exit $ac_status); } &&
  test -f conftest2.$ac_objext && { (eval echo "$as_me:2359: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2362: \$? = $ac_status" >&5
  (exit $ac_status); };
then
  eval cf_cv_prog_CC_c_o=yes
else
  eval cf_cv_prog_CC_c_o=no
fi
rm -f conftest*

fi
if test $cf_cv_prog_CC_c_o = yes; then
  echo "$as_me:2373: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:2376: result: no" >&5
echo "${ECHO_T}no" >&6
fi

echo "$as_me:2380: checking for POSIXized ISC" >&5
echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
d1297 1
a1297 1
   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
d1299 1
a1299 2
  echo "$as_me:2385: result: yes" >&5
echo "${ECHO_T}yes" >&6
d1301 1
a1301 2

cat >>confdefs.h <<\EOF
d1311 1
a1311 2
  echo "$as_me:2399: result: no" >&5
echo "${ECHO_T}no" >&6
d1315 5
a1319 4
echo "$as_me:2404: checking for ${CC-cc} option to accept ANSI C" >&5
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
if test "${cf_cv_ansi_cc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1321 1
a1321 1

d1340 1
a1340 2

cf_fix_cppflags=no
a1342 2
cf_new_extra_cppflags=

a1344 2
case $cf_fix_cppflags in
no)
d1347 2
a1348 19
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
a1358 11
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
d1362 1
a1362 1

d1367 2
a1368 2

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
a1370 4
if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi
d1372 2
a1373 2
	cat >conftest.$ac_ext <<_ACEOF
#line 2498 "configure"
d1382 1
a1382 3
int
main ()
{
d1387 4
a1390 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2519: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2522: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2525: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2528: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d1393 2
a1394 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d1396 1
a1396 1
rm -f conftest.$ac_objext conftest.$ac_ext
d1402 2
a1403 2
echo "$as_me:2541: result: $cf_cv_ansi_cc" >&5
echo "${ECHO_T}$cf_cv_ansi_cc" >&6
d1407 1
a1407 2

cf_fix_cppflags=no
a1409 2
cf_new_extra_cppflags=

a1411 2
case $cf_fix_cppflags in
no)
a1413 17
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
a1425 11
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
d1429 1
a1429 1

d1434 2
a1435 2

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
a1437 4
if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi
d1440 1
a1440 1
	cat >>confdefs.h <<\EOF
d1447 1
d1449 1
a1449 6
	{ { echo "$as_me:2624: error: Your compiler does not appear to recognize prototypes.
You have the following choices:
	a. adjust your compiler options
	b. get an up-to-date compiler
	c. use a wrapper such as unproto" >&5
echo "$as_me: error: Your compiler does not appear to recognize prototypes.
d1453 1
a1453 2
	c. use a wrapper such as unproto" >&2;}
   { (exit 1); exit 1; }; }
d1456 3
d1461 1
d1465 5
a1469 3
    # autoconf's macro sets -Zexe and suffix both, which conflict:w
    LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
    ac_cv_exeext=.exe
d1473 1
a1473 3
PROG_EXT="$EXEEXT"

test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
d1477 3
a1479 4
if test "$cross_compiling" = yes ; then
  LDCONFIG=:
else
case "$cf_cv_system_name" in #(vi
d1486 4
a1489 4
echo "$as_me:2664: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_LDCONFIG+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1491 2
a1492 2
  case $LDCONFIG in
  [\\/]* | ?:[\\/]*)
d1495 3
d1499 10
a1508 12
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$LDPATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
   echo "$as_me:2681: found $ac_dir/$ac_word" >&5
   break
fi
done

d1512 1
a1512 2
LDCONFIG=$ac_cv_path_LDCONFIG

d1514 1
a1514 2
  echo "$as_me:2692: result: $LDCONFIG" >&5
echo "${ECHO_T}$LDCONFIG" >&6
d1516 1
a1516 2
  echo "$as_me:2695: result: no" >&5
echo "${ECHO_T}no" >&6
a1520 1
fi
d1522 3
a1524 2
echo "$as_me:2703: checking if you want to ensure bool is consistent with C++" >&5
echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
d1532 3
a1534 3
fi;
echo "$as_me:2713: result: $cf_with_cxx" >&5
echo "${ECHO_T}$cf_with_cxx" >&6
d1539 8
a1546 16
	# with autoconf 2.13, we can change the error to a warning:
		ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return
if test -n "$ac_tool_prefix"; then
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:2731: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1551 10
a1560 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
echo "$as_me:2746: found $ac_dir/$ac_word" >&5
break
done

d1563 1
a1563 1
CXX=$ac_cv_prog_CXX
d1565 1
a1565 2
  echo "$as_me:2754: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6
d1567 1
a1567 2
  echo "$as_me:2757: result: no" >&5
echo "${ECHO_T}no" >&6
d1570 1
a1570 26
    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:2770: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CXX="$ac_prog"
echo "$as_me:2785: found $ac_dir/$ac_word" >&5
break
d1572 17
d1590 10
a1599 6
fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  echo "$as_me:2793: result: $ac_ct_CXX" >&5
echo "${ECHO_T}$ac_ct_CXX" >&6
d1601 3
a1603 2
  echo "$as_me:2796: result: no" >&5
echo "${ECHO_T}no" >&6
d1605 7
d1613 3
a1615 5
  test -n "$ac_ct_CXX" && break
done
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"

  CXX=$ac_ct_CXX
d1617 4
d1622 12
a1633 24
# Provide some information about the compiler.
echo "$as_me:2808:" \
     "checking for C++ compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:2811: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:2814: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:2816: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:2819: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:2821: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:2824: \$? = $ac_status" >&5
  (exit $ac_status); }

echo "$as_me:2827: checking whether we are using the GNU C++ compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1635 3
a1637 3
  cat >conftest.$ac_ext <<_ACEOF
#line 2833 "configure"
#include "confdefs.h"
d1639 1
a1639 6
int
main ()
{
#ifndef __GNUC__
       choke me
#endif
d1641 2
a1642 36
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2848: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2851: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2854: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2857: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:2869: result: $ac_cv_cxx_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
GXX=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="-g"
echo "$as_me:2875: checking whether $CXX accepts -g" >&5
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cxx_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1644 2
a1645 3
  cat >conftest.$ac_ext <<_ACEOF
#line 2881 "configure"
#include "confdefs.h"
d1647 10
a1656 20
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2893: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2896: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2899: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2902: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d1659 1
a1659 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_prog_cxx_g=no
d1661 2
a1662 1
rm -f conftest.$ac_objext conftest.$ac_ext
d1664 2
a1665 2
echo "$as_me:2912: result: $ac_cv_prog_cxx_g" >&5
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
d1667 1
a1667 1
  CXXFLAGS=$ac_save_CXXFLAGS
a1680 124
for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line 2939 "configure"
#include "confdefs.h"
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2952: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2955: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2958: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2961: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 2971 "configure"
#include "confdefs.h"
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2983: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2986: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2989: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2992: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

		# autoconf 2.5x removed the error - by hardcoding it to g++.
	if test "$CXX" = "g++" ; then
		# Extract the first word of "g++", so it can be a program name with args.
set dummy g++; ac_word=$2
echo "$as_me:3019: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $CXX in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
  ;;
  *)
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_CXX="$ac_dir/$ac_word"
   echo "$as_me:3036: found $ac_dir/$ac_word" >&5
   break
fi
done

  ;;
esac
fi
CXX=$ac_cv_path_CXX

if test -n "$CXX"; then
  echo "$as_me:3047: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6
else
  echo "$as_me:3050: result: no" >&5
echo "${ECHO_T}no" >&6
fi
a1682 6
	if test "$CXX" = "g++" ; then
		{ echo "$as_me:3056: WARNING: ignoring hardcoded g++" >&5
echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
		cf_with_cxx=no; CXX=""; GXX="";
	fi
fi
d1686 11
a1696 6
	echo "$as_me:3064: checking version of g++" >&5
echo $ECHO_N "checking version of g++... $ECHO_C" >&6
	GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
	test -z "$GXX_VERSION" && GXX_VERSION=unknown
	echo "$as_me:3068: result: $GXX_VERSION" >&5
echo "${ECHO_T}$GXX_VERSION" >&6
d1699 2
a1700 11
case $GXX_VERSION in
1*|2.[0-6]*)
	# GXX=""; CXX=""; ac_cv_prog_gxx=no
	# cf_cxx_library=no
	{ echo "$as_me:3076: WARNING: templates do not work" >&5
echo "$as_me: WARNING: templates do not work" >&2;}
	;;
esac

echo "$as_me:3081: checking if you want to build C++ binding and demo" >&5
echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
d1708 1
a1708 3
fi;
echo "$as_me:3091: result: $cf_with_cxx_binding" >&5
echo "${ECHO_T}$cf_with_cxx_binding" >&6
d1710 4
a1713 2
echo "$as_me:3094: checking if you want to build with Ada95" >&5
echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
d1721 1
a1721 3
fi;
echo "$as_me:3104: result: $cf_with_ada" >&5
echo "${ECHO_T}$cf_with_ada" >&6
d1723 4
a1726 2
echo "$as_me:3107: checking if you want to build programs such as tic" >&5
echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
d1734 1
a1734 3
fi;
echo "$as_me:3117: result: $cf_with_progs" >&5
echo "${ECHO_T}$cf_with_progs" >&6
d1736 4
a1739 2
echo "$as_me:3120: checking if you wish to install curses.h" >&5
echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
d1747 3
a1749 3
fi;
echo "$as_me:3130: result: $with_curses_h" >&5
echo "${ECHO_T}$with_curses_h" >&6
d1757 10
d1768 1
a1768 1
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
d1771 4
a1774 8
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
# Double any \ or $.  echo might interpret backslashes.
# By default was `s,x,x', remove it if useless.
cat <<\_ACEOF >conftest.sed
s/[\\$]/&&/g;s/;s,x,x,$//
_ACEOF
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
rm conftest.sed
d1778 1
a1778 1
  # Extract the first word of "$ac_prog", so it can be a program name with args.
d1780 4
a1783 4
echo "$as_me:3156: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1788 10
a1797 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_AWK="$ac_prog"
echo "$as_me:3171: found $ac_dir/$ac_word" >&5
break
done

d1800 1
a1800 1
AWK=$ac_cv_prog_AWK
d1802 1
a1802 2
  echo "$as_me:3179: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
d1804 1
a1804 2
  echo "$as_me:3182: result: no" >&5
echo "${ECHO_T}no" >&6
d1807 1
a1807 1
  test -n "$AWK" && break
d1810 25
a1834 13
test -z "$AWK" && { { echo "$as_me:3189: error: No awk program found" >&5
echo "$as_me: error: No awk program found" >&2;}
   { (exit 1); exit 1; }; }

echo "$as_me:3193: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_prog_egrep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    then ac_cv_prog_egrep='grep -E'
    else ac_cv_prog_egrep='egrep'
    fi
a1835 7
echo "$as_me:3203: result: $ac_cv_prog_egrep" >&5
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 EGREP=$ac_cv_prog_egrep

test -z "$EGREP" && { { echo "$as_me:3207: error: No egrep program found" >&5
echo "$as_me: error: No egrep program found" >&2;}
   { (exit 1); exit 1; }; }
a1843 1
# AmigaOS /C/install, which installs bootblocks on floppy discs
d1848 2
a1849 2
echo "$as_me:3223: checking for a BSD compatible install" >&5
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
d1851 2
a1852 2
if test "${ac_cv_path_install+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1854 1
a1854 1
    ac_save_IFS=$IFS; IFS=$ac_path_separator
a1855 1
    IFS=$ac_save_IFS
d1857 2
a1858 4
    case $ac_dir/ in
    / | ./ | .// | /cC/* \
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
    | /usr/ucb/* ) ;;
d1864 1
a1864 1
        if $as_executable_p "$ac_dir/$ac_prog"; then
d1866 1
a1866 1
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
a1868 4
	  elif test $ac_prog = install &&
	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
d1878 1
d1882 1
a1882 1
    INSTALL=$ac_cv_path_install
d1888 1
a1888 1
    INSTALL=$ac_install_sh
d1891 1
a1891 2
echo "$as_me:3272: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6
d1897 1
a1897 1
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
d1905 1
a1905 1
  cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
d1907 1
a1907 1
  INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
d1911 4
a1914 8
for ac_prog in tdlint lint alint
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:3297: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_LINT+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1916 13
a1928 2
  if test -n "$LINT"; then
  ac_cv_prog_LINT="$LINT" # Let the user override the test.
d1930 14
a1943 9
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_LINT="$ac_prog"
echo "$as_me:3312: found $ac_dir/$ac_word" >&5
break
a1944 10

fi
fi
LINT=$ac_cv_prog_LINT
if test -n "$LINT"; then
  echo "$as_me:3320: result: $LINT" >&5
echo "${ECHO_T}$LINT" >&6
else
  echo "$as_me:3323: result: no" >&5
echo "${ECHO_T}no" >&6
d1947 5
a1951 2
  test -n "$LINT" && break
done
a1952 38
echo "$as_me:3330: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  echo "$as_me:3334: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:3337: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6
fi

echo "$as_me:3341: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.make <<\EOF
all:
	@@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
else
  eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftest.make
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$as_me:3361: result: yes" >&5
echo "${ECHO_T}yes" >&6
  SET_MAKE=
else
  echo "$as_me:3365: result: no" >&5
echo "${ECHO_T}no" >&6
  SET_MAKE="MAKE=${MAKE-make}"
a1954 5
echo "$as_me:3370: checking if filesystem supports mixed-case filenames" >&5
echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
if test "${cf_cv_mixedcase+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d1956 4
a1959 9
if test "$cross_compiling" = yes ; then
	case $target_alias in #(vi
	*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
		cf_cv_mixedcase=no
		;;
	*)
		cf_cv_mixedcase=yes
		;;
	esac
d1961 1
d1970 1
d1973 2
a1974 4
fi
echo "$as_me:3397: result: $cf_cv_mixedcase" >&5
echo "${ECHO_T}$cf_cv_mixedcase" >&6
test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
d1978 5
a1982 6
# Extract the first word of "ctags", so it can be a program name with args.
set dummy ctags; ac_word=$2
echo "$as_me:3405: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1984 5
a1988 2
  if test -n "$MAKE_LOWER_TAGS"; then
  ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
d1990 1
a1990 12
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_MAKE_LOWER_TAGS="yes"
echo "$as_me:3420: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
d1993 3
a1995 4
MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
if test -n "$MAKE_LOWER_TAGS"; then
  echo "$as_me:3429: result: $MAKE_LOWER_TAGS" >&5
echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
d1997 1
a1997 2
  echo "$as_me:3432: result: no" >&5
echo "${ECHO_T}no" >&6
d2000 63
d2066 4
a2069 4
echo "$as_me:3439: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2074 10
a2083 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_MAKE_UPPER_TAGS="yes"
echo "$as_me:3454: found $ac_dir/$ac_word" >&5
break
done

d2087 1
a2087 1
MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
d2089 1
a2089 2
  echo "$as_me:3463: result: $MAKE_UPPER_TAGS" >&5
echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
d2091 1
a2091 2
  echo "$as_me:3466: result: no" >&5
echo "${ECHO_T}no" >&6
d2104 1
d2111 101
a2211 4
echo "$as_me:3486: checking for makeflags variable" >&5
echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
if test "${cf_cv_makeflags+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2213 11
d2225 7
d2233 1
a2233 1
	for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
d2240 1
a2240 1
		cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ 	]*$,,'`
d2252 1
a2252 2
		.-)	;;
		*)	echo "given option \"$cf_option\", no match \"$cf_result\""
a2258 2
echo "$as_me:3520: result: $cf_cv_makeflags" >&5
echo "${ECHO_T}$cf_cv_makeflags" >&6
d2260 2
a2261 42
echo "$as_me:3523: checking for long file names" >&5
echo $ECHO_N "checking for long file names... $ECHO_C" >&6
if test "${ac_cv_sys_long_file_names+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_sys_long_file_names=yes
# Test for long file names in all the places we know might matter:
#      .		the current directory, where building will happen
#      $prefix/lib	where we will be installing things
#      $exec_prefix/lib	likewise
# eval it to expand exec_prefix.
#      $TMPDIR		if set, where it might want to write temporary files
# if $TMPDIR is not set:
#      /tmp		where it might want to write temporary files
#      /var/tmp		likewise
#      /usr/tmp		likewise
if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
  ac_tmpdirs=$TMPDIR
else
  ac_tmpdirs='/tmp /var/tmp /usr/tmp'
fi
for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
  test -d $ac_dir || continue
  test -w $ac_dir || continue # It is less confusing to not echo anything here.
  ac_xdir=$ac_dir/cf$$
  (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
  ac_tf1=$ac_xdir/conftest9012345
  ac_tf2=$ac_xdir/conftest9012346
  (echo 1 >$ac_tf1) 2>/dev/null
  (echo 2 >$ac_tf2) 2>/dev/null
  ac_val=`cat $ac_tf1 2>/dev/null`
  if test ! -f $ac_tf1 || test "$ac_val" != 1; then
    ac_cv_sys_long_file_names=no
    rm -rf $ac_xdir 2>/dev/null
    break
  fi
  rm -rf $ac_xdir 2>/dev/null
done
fi
echo "$as_me:3562: result: $ac_cv_sys_long_file_names" >&5
echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
if test $ac_cv_sys_long_file_names = yes; then
a2262 3
cat >>confdefs.h <<\EOF
#define HAVE_LONG_FILE_NAMES 1
EOF
a2263 1
fi
d2265 2
a2266 5
echo "$as_me:3572: checking if filesystem supports mixed-case filenames" >&5
echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
if test "${cf_cv_mixedcase+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d2268 5
a2272 4
if test "$cross_compiling" = yes ; then
	case $target_alias in #(vi
	*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
		cf_cv_mixedcase=no
d2274 1
a2274 2
	*)
		cf_cv_mixedcase=yes
a2276 9
else
	rm -f conftest CONFTEST
	echo test >conftest
	if test -f CONFTEST ; then
		cf_cv_mixedcase=no
	else
		cf_cv_mixedcase=yes
	fi
	rm -f conftest CONFTEST
d2279 13
a2291 6
fi
echo "$as_me:3599: result: $cf_cv_mixedcase" >&5
echo "${ECHO_T}$cf_cv_mixedcase" >&6
test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
#define MIXEDCASE_FILENAMES 1
EOF
d2293 4
a2296 7
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo "$as_me:3608: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2298 2
a2299 13
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
echo "$as_me:3623: found $ac_dir/$ac_word" >&5
break
done
d2301 4
a2304 6
fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  echo "$as_me:3631: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
d2306 1
a2306 2
  echo "$as_me:3634: result: no" >&5
echo "${ECHO_T}no" >&6
a2308 23
fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo "$as_me:3643: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_RANLIB="ranlib"
echo "$as_me:3658: found $ac_dir/$ac_word" >&5
break
done
d2310 7
a2316 7
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  echo "$as_me:3667: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6
d2318 1
a2318 2
  echo "$as_me:3670: result: no" >&5
echo "${ECHO_T}no" >&6
d2321 10
a2330 1
  RANLIB=$ac_ct_RANLIB
d2332 1
a2332 1
  RANLIB="$ac_cv_prog_RANLIB"
d2335 10
a2344 7
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
set dummy ${ac_tool_prefix}ld; ac_word=$2
echo "$as_me:3682: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2346 1
a2346 23
  if test -n "$LD"; then
  ac_cv_prog_LD="$LD" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_LD="${ac_tool_prefix}ld"
echo "$as_me:3697: found $ac_dir/$ac_word" >&5
break
done

fi
fi
LD=$ac_cv_prog_LD
if test -n "$LD"; then
  echo "$as_me:3705: result: $LD" >&5
echo "${ECHO_T}$LD" >&6
else
  echo "$as_me:3708: result: no" >&5
echo "${ECHO_T}no" >&6
d2349 2
a2350 23
fi
if test -z "$ac_cv_prog_LD"; then
  ac_ct_LD=$LD
  # Extract the first word of "ld", so it can be a program name with args.
set dummy ld; ac_word=$2
echo "$as_me:3717: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_LD"; then
  ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_LD="ld"
echo "$as_me:3732: found $ac_dir/$ac_word" >&5
break
done
d2352 2
a2353 11
  test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
fi
fi
ac_ct_LD=$ac_cv_prog_ac_ct_LD
if test -n "$ac_ct_LD"; then
  echo "$as_me:3741: result: $ac_ct_LD" >&5
echo "${ECHO_T}$ac_ct_LD" >&6
else
  echo "$as_me:3744: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d2355 4
a2358 1
  LD=$ac_ct_LD
d2360 1
a2360 1
  LD="$ac_cv_prog_LD"
d2363 2
a2364 21
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
echo "$as_me:3756: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_AR="${ac_tool_prefix}ar"
echo "$as_me:3771: found $ac_dir/$ac_word" >&5
break
done
d2366 1
a2366 10
fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  echo "$as_me:3779: result: $AR" >&5
echo "${ECHO_T}$AR" >&6
else
  echo "$as_me:3782: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d2368 5
a2372 23
fi
if test -z "$ac_cv_prog_AR"; then
  ac_ct_AR=$AR
  # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
echo "$as_me:3791: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_AR="ar"
echo "$as_me:3806: found $ac_dir/$ac_word" >&5
break
done
d2374 6
a2379 11
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  echo "$as_me:3815: result: $ac_ct_AR" >&5
echo "${ECHO_T}$ac_ct_AR" >&6
else
  echo "$as_me:3818: result: no" >&5
echo "${ECHO_T}no" >&6
fi
a2380 4
  AR=$ac_ct_AR
else
  AR="$ac_cv_prog_AR"
fi
d2382 1
a2382 3
if test "${cf_cv_subst_AR_OPTS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
a2383 2
echo "$as_me:3831: checking for archiver options (symbol AR_OPTS)" >&5
echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
d2385 1
a2385 2
if test -z "$AR_OPTS" ; then
	AR_OPTS=rv
a2386 1
fi
d2388 1
a2388 3
cf_cv_subst_AR_OPTS=$AR_OPTS
echo "$as_me:3840: result: $AR_OPTS" >&5
echo "${ECHO_T}$AR_OPTS" >&6
a2389 1
fi
d2391 1
a2391 2
echo "$as_me:3845: checking if you have specified an install-prefix" >&5
echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
d2393 4
a2396 8
# Check whether --with-install-prefix or --without-install-prefix was given.
if test "${with_install_prefix+set}" = set; then
  withval="$with_install_prefix"
  case "$withval" in #(vi
	yes|no) #(vi
		;;
	*)	DESTDIR="$withval"
		;;
d2398 4
a2401 3
fi;
echo "$as_me:3858: result: $DESTDIR" >&5
echo "${ECHO_T}$DESTDIR" >&6
a2402 1
###############################################################################
d2404 2
a2405 3
# If we're cross-compiling, allow the user to override the tools and their
# options.  The configure script is oriented toward identifying the host
# compiler, etc., but we need a build compiler to generate parts of the source.
d2407 1
a2407 1
if test "$cross_compiling" = yes ; then
d2409 2
a2410 7
	# defaults that we might want to override
	: ${BUILD_CFLAGS:=''}
	: ${BUILD_CPPFLAGS:=''}
	: ${BUILD_LDFLAGS:=''}
	: ${BUILD_LIBS:=''}
	: ${BUILD_EXEEXT:='$x'}
	: ${BUILD_OBJEXT:='o'}
d2412 4
a2415 4
# Check whether --with-build-cc or --without-build-cc was given.
if test "${with_build_cc+set}" = set; then
  withval="$with_build_cc"
  BUILD_CC="$withval"
d2417 1
a2417 32
  for ac_prog in gcc cc cl
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:3886: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_BUILD_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$BUILD_CC"; then
  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_BUILD_CC="$ac_prog"
echo "$as_me:3901: found $ac_dir/$ac_word" >&5
break
done

fi
fi
BUILD_CC=$ac_cv_prog_BUILD_CC
if test -n "$BUILD_CC"; then
  echo "$as_me:3909: result: $BUILD_CC" >&5
echo "${ECHO_T}$BUILD_CC" >&6
else
  echo "$as_me:3912: result: no" >&5
echo "${ECHO_T}no" >&6
d2420 1
a2420 2
  test -n "$BUILD_CC" && break
done
d2422 3
a2424 76
fi;
	echo "$as_me:3920: checking for native build C compiler" >&5
echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
	echo "$as_me:3922: result: $BUILD_CC" >&5
echo "${ECHO_T}$BUILD_CC" >&6

	echo "$as_me:3925: checking for native build C preprocessor" >&5
echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6

# Check whether --with-build-cpp or --without-build-cpp was given.
if test "${with_build_cpp+set}" = set; then
  withval="$with_build_cpp"
  BUILD_CPP="$withval"
else
  BUILD_CPP='${BUILD_CC} -E'
fi;
	echo "$as_me:3935: result: $BUILD_CPP" >&5
echo "${ECHO_T}$BUILD_CPP" >&6

	echo "$as_me:3938: checking for native build C flags" >&5
echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6

# Check whether --with-build-cflags or --without-build-cflags was given.
if test "${with_build_cflags+set}" = set; then
  withval="$with_build_cflags"
  BUILD_CFLAGS="$withval"
fi;
	echo "$as_me:3946: result: $BUILD_CFLAGS" >&5
echo "${ECHO_T}$BUILD_CFLAGS" >&6

	echo "$as_me:3949: checking for native build C preprocessor-flags" >&5
echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6

# Check whether --with-build-cppflags or --without-build-cppflags was given.
if test "${with_build_cppflags+set}" = set; then
  withval="$with_build_cppflags"
  BUILD_CPPFLAGS="$withval"
fi;
	echo "$as_me:3957: result: $BUILD_CPPFLAGS" >&5
echo "${ECHO_T}$BUILD_CPPFLAGS" >&6

	echo "$as_me:3960: checking for native build linker-flags" >&5
echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6

# Check whether --with-build-ldflags or --without-build-ldflags was given.
if test "${with_build_ldflags+set}" = set; then
  withval="$with_build_ldflags"
  BUILD_LDFLAGS="$withval"
fi;
	echo "$as_me:3968: result: $BUILD_LDFLAGS" >&5
echo "${ECHO_T}$BUILD_LDFLAGS" >&6

	echo "$as_me:3971: checking for native build linker-libraries" >&5
echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6

# Check whether --with-build-libs or --without-build-libs was given.
if test "${with_build_libs+set}" = set; then
  withval="$with_build_libs"
  BUILD_LIBS="$withval"
fi;
	echo "$as_me:3979: result: $BUILD_LIBS" >&5
echo "${ECHO_T}$BUILD_LIBS" >&6

	# this assumes we're on Unix.
	BUILD_EXEEXT=
	BUILD_OBJEXT=o

	: ${BUILD_CC:='${CC}'}

	if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
		{ { echo "$as_me:3989: error: Cross-build requires two compilers.
Use --with-build-cc to specify the native compiler." >&5
echo "$as_me: error: Cross-build requires two compilers.
Use --with-build-cc to specify the native compiler." >&2;}
   { (exit 1); exit 1; }; }
	fi
d2426 4
d2431 1
a2431 8
	: ${BUILD_CC:='${CC}'}
	: ${BUILD_CPP:='${CPP}'}
	: ${BUILD_CFLAGS:='${CFLAGS}'}
	: ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
	: ${BUILD_LDFLAGS:='${LDFLAGS}'}
	: ${BUILD_LIBS:='${LIBS}'}
	: ${BUILD_EXEEXT:='$x'}
	: ${BUILD_OBJEXT:='o'}
d2434 7
a2440 30
###############################################################################

### Options to allow the user to specify the set of libraries which are used.
### Use "--without-normal --with-shared" to allow the default model to be
### shared, for example.
cf_list_models=""

LIBTOOL=

# common library maintenance symbols that are convenient for libtool scripts:
LIB_CREATE='${AR} -cr'
LIB_OBJECT='${OBJECTS}'
LIB_SUFFIX=.a
LIB_PREP="$RANLIB"

# symbols used to prop libtool up to enable it to determine what it should be
# doing:
LIB_CLEAN=
LIB_COMPILE=
LIB_LINK=
LIB_INSTALL=
LIB_UNINSTALL=

echo "$as_me:4030: checking if you want to build libraries with libtool" >&5
echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6

# Check whether --with-libtool or --without-libtool was given.
if test "${with_libtool+set}" = set; then
  withval="$with_libtool"
  with_libtool=$withval
d2442 9
a2450 5
  with_libtool=no
fi;
echo "$as_me:4040: result: $with_libtool" >&5
echo "${ECHO_T}$with_libtool" >&6
if test "$with_libtool" != "no"; then
d2452 7
a2458 4
 	if test "$with_libtool" != "yes" ; then

if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
d2460 4
a2463 1
  cf_path_syntax="$ac_default_prefix"
d2465 2
a2467 53
case ".$with_libtool" in #(vi
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
  ;;
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  ;;
.\${*prefix}*) #(vi
  eval with_libtool="$with_libtool"
  case ".$with_libtool" in #(vi
  .NONE/*)
    with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
    ;;
  esac
  ;; #(vi
.no|.NONE/*)
  with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
  ;;
*)
  { { echo "$as_me:4071: error: expected a pathname, not \"$with_libtool\"" >&5
echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
   { (exit 1); exit 1; }; }
  ;;
esac

		LIBTOOL=$with_libtool
	else
 		# Extract the first word of "libtool", so it can be a program name with args.
set dummy libtool; ac_word=$2
echo "$as_me:4081: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_LIBTOOL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $LIBTOOL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
  ;;
  *)
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
   echo "$as_me:4098: found $ac_dir/$ac_word" >&5
   break
fi
done

  ;;
esac
d2469 7
a2475 1
LIBTOOL=$ac_cv_path_LIBTOOL
d2477 1
a2477 39
if test -n "$LIBTOOL"; then
  echo "$as_me:4109: result: $LIBTOOL" >&5
echo "${ECHO_T}$LIBTOOL" >&6
else
  echo "$as_me:4112: result: no" >&5
echo "${ECHO_T}no" >&6
fi

 	fi
 	if test -z "$LIBTOOL" ; then
 		{ { echo "$as_me:4118: error: Cannot find libtool" >&5
echo "$as_me: error: Cannot find libtool" >&2;}
   { (exit 1); exit 1; }; }
 	fi
	LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` -o'
	LIB_OBJECT='${OBJECTS}.o=.lo)'
	LIB_SUFFIX=.la
	LIB_CLEAN='${LIBTOOL} --mode=clean'
	LIB_COMPILE='${LIBTOOL} --mode=compile'
	LIB_LINK='${LIBTOOL} --mode=link'
	LIB_INSTALL='${LIBTOOL} --mode=install'
	LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
	LIB_PREP=:

	# Show the version of libtool
	echo "$as_me:4133: checking version of libtool" >&5
echo $ECHO_N "checking version of libtool... $ECHO_C" >&6

	# Save the version in a cache variable - this is not entirely a good
	# thing, but the version string from libtool is very ugly, and for
	# bug reports it might be useful to have the original string.
	cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
	echo "$as_me:4140: result: $cf_cv_libtool_version" >&5
echo "${ECHO_T}$cf_cv_libtool_version" >&6
	if test -z "$cf_cv_libtool_version" ; then
		{ { echo "$as_me:4143: error: This is not libtool" >&5
echo "$as_me: error: This is not libtool" >&2;}
   { (exit 1); exit 1; }; }
	fi
a2478 9
	# special hack to add --tag option for C++ compiler
	case $cf_cv_libtool_version in
	1.[5-9]*|[2-9]*)
		LIBTOOL_CXX="$LIBTOOL --tag=CXX"
		;;
	*)
		LIBTOOL_CXX="$LIBTOOL"
		;;
	esac
d2480 1
a2480 2
	LIBTOOL=""
	LIBTOOL_CXX=""
d2483 1
a2483 1
test -z "$LIBTOOL" && ECHO_LT=
d2485 2
a2486 3
if test "$with_libtool" != "no" ; then

cf_list_models="$cf_list_models libtool"
d2488 4
d2493 2
d2496 7
a2502 7
echo "$as_me:4170: checking if you want to build shared libraries" >&5
echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6

# Check whether --with-shared or --without-shared was given.
if test "${with_shared+set}" = set; then
  withval="$with_shared"
  with_shared=$withval
d2504 9
a2512 5
  with_shared=no
fi;
echo "$as_me:4180: result: $with_shared" >&5
echo "${ECHO_T}$with_shared" >&6
test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
d2514 7
a2520 7
echo "$as_me:4184: checking if you want to build static libraries" >&5
echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6

# Check whether --with-normal or --without-normal was given.
if test "${with_normal+set}" = set; then
  withval="$with_normal"
  with_normal=$withval
d2522 7
a2528 5
  with_normal=yes
fi;
echo "$as_me:4194: result: $with_normal" >&5
echo "${ECHO_T}$with_normal" >&6
test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
d2530 8
a2537 2
echo "$as_me:4198: checking if you want to build debug libraries" >&5
echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
d2539 1
a2539 10
# Check whether --with-debug or --without-debug was given.
if test "${with_debug+set}" = set; then
  withval="$with_debug"
  with_debug=$withval
else
  with_debug=yes
fi;
echo "$as_me:4208: result: $with_debug" >&5
echo "${ECHO_T}$with_debug" >&6
test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
a2540 7
echo "$as_me:4212: checking if you want to build profiling libraries" >&5
echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6

# Check whether --with-profile or --without-profile was given.
if test "${with_profile+set}" = set; then
  withval="$with_profile"
  with_profile=$withval
d2542 2
a2543 5
  with_profile=no
fi;
echo "$as_me:4222: result: $with_profile" >&5
echo "${ECHO_T}$with_profile" >&6
test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
a2546 53
###############################################################################

echo "$as_me:4230: checking for specified models" >&5
echo $ECHO_N "checking for specified models... $ECHO_C" >&6
test -z "$cf_list_models" && cf_list_models=normal
test "$with_libtool" != "no" && cf_list_models=libtool
echo "$as_me:4234: result: $cf_list_models" >&5
echo "${ECHO_T}$cf_list_models" >&6

### Use the first model as the default, and save its suffix for use in building
### up test-applications.
echo "$as_me:4239: checking for default model" >&5
echo $ECHO_N "checking for default model... $ECHO_C" >&6
DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
echo "$as_me:4242: result: $DFT_LWR_MODEL" >&5
echo "${ECHO_T}$DFT_LWR_MODEL" >&6

DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`

TINFO_NAME=tinfo

LIB_NAME=ncurses

LIB_DIR=../lib
LIB_2ND=../../lib

	case $cf_cv_system_name in
	OS/2*)	LIB_PREFIX=''     ;;
	os2*)	LIB_PREFIX=''     ;;
	*)	LIB_PREFIX='lib'  ;;
	esac
cf_prefix=$LIB_PREFIX

LIB_PREFIX=$cf_prefix

LIB_SUFFIX=

###############################################################################

echo "$as_me:4267: checking if you want to build a separate terminfo library" >&5
echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6

# Check whether --with-termlib or --without-termlib was given.
if test "${with_termlib+set}" = set; then
  withval="$with_termlib"
  with_termlib=$withval
else
  with_termlib=no
fi;
echo "$as_me:4277: result: $with_termlib" >&5
echo "${ECHO_T}$with_termlib" >&6

### Checks for special libraries, must be done up-front.
d2548 2
a2549 3

echo "$as_me:4283: checking if you want to link with the GPM mouse library" >&5
echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
d2556 10
a2565 29
  with_gpm=maybe
fi;
echo "$as_me:4293: result: $with_gpm" >&5
echo "${ECHO_T}$with_gpm" >&6

if test "$with_gpm" != no ; then
	echo "$as_me:4297: checking for gpm.h" >&5
echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
if test "${ac_cv_header_gpm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4303 "configure"
#include "confdefs.h"
#include <gpm.h>
_ACEOF
if { (eval echo "$as_me:4307: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:4313: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d2567 17
a2583 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_gpm_h=yes
d2585 1
a2585 1
  echo "$as_me: failed program was:" >&5
d2587 2
a2588 1
  ac_cv_header_gpm_h=no
d2590 3
a2592 1
rm -f conftest.err conftest.$ac_ext
d2594 6
a2599 12
echo "$as_me:4332: result: $ac_cv_header_gpm_h" >&5
echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
if test $ac_cv_header_gpm_h = yes; then

		cat >>confdefs.h <<\EOF
#define HAVE_GPM_H 1
EOF

		if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
			test -n "$verbose" && echo "	assuming we really have GPM library" 1>&6

			cat >>confdefs.h <<\EOF
d2603 7
a2609 5
		else
			echo "$as_me:4348: checking for Gpm_Open in -lgpm" >&5
echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2611 2
a2612 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgpm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 4356 "configure"
d2614 28
d2643 1
a2643 40
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char Gpm_Open ();
int
main ()
{
Gpm_Open ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4375: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4378: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4381: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4384: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_gpm_Gpm_Open=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_gpm_Gpm_Open=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:4395: result: $ac_cv_lib_gpm_Gpm_Open" >&5
echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
if test $ac_cv_lib_gpm_Gpm_Open = yes; then
  :
d2645 5
a2650 5
				{ { echo "$as_me:4401: error: Cannot link with GPM library" >&5
echo "$as_me: error: Cannot link with GPM library" >&2;}
   { (exit 1); exit 1; }; }
		fi
		with_gpm=yes
d2652 3
a2656 1
else
d2658 4
a2661 3
		test "$with_gpm" != maybe && { echo "$as_me:4411: WARNING: Cannot find GPM header" >&5
echo "$as_me: WARNING: Cannot find GPM header" >&2;}
		with_gpm=no
a2662 1
fi
d2664 10
a2673 1
fi
d2675 2
a2676 3
if test "$with_gpm" != no ; then
	echo "$as_me:4420: checking if you want to load GPM dynamically" >&5
echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
d2678 4
a2681 4
# Check whether --with-dlsym or --without-dlsym was given.
if test "${with_dlsym+set}" = set; then
  withval="$with_dlsym"
  with_dlsym=$withval
d2683 2
a2684 5
  with_dlsym=yes
fi;
	echo "$as_me:4430: result: $with_dlsym" >&5
echo "${ECHO_T}$with_dlsym" >&6
	if test "$with_dlsym" = yes ; then
d2686 1
a2686 358
cf_have_dlsym=no
echo "$as_me:4435: checking for dlsym" >&5
echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
if test "${ac_cv_func_dlsym+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4441 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlsym (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlsym ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dlsym) || defined (__stub___dlsym)
choke me
#else
f = dlsym;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4472: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4475: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4478: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4481: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_dlsym=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_dlsym=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:4491: result: $ac_cv_func_dlsym" >&5
echo "${ECHO_T}$ac_cv_func_dlsym" >&6
if test $ac_cv_func_dlsym = yes; then
  cf_have_dlsym=yes
else

cf_have_libdl=no
echo "$as_me:4498: checking for dlsym in -ldl" >&5
echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlsym+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 4506 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlsym ();
int
main ()
{
dlsym ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4525: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4528: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4531: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4534: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlsym=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dl_dlsym=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:4545: result: $ac_cv_lib_dl_dlsym" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
if test $ac_cv_lib_dl_dlsym = yes; then

	cf_have_dlsym=yes
	cf_have_libdl=yes
fi

fi

if test "$cf_have_dlsym" = yes ; then
	test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"

	echo "$as_me:4558: checking whether able to link to dl*() functions" >&5
echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
	cat >conftest.$ac_ext <<_ACEOF
#line 4561 "configure"
#include "confdefs.h"
#include <dlfcn.h>
int
main ()
{

		void *obj;
		if ((obj = dlopen("filename", 0)) != 0) {
			if (dlsym(obj, "symbolname") == 0) {
			dlclose(obj);
			}
		}
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4579: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4582: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4585: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4588: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

		cat >>confdefs.h <<\EOF
#define HAVE_LIBDL 1
EOF

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

		{ { echo "$as_me:4599: error: Cannot link test program for libdl" >&5
echo "$as_me: error: Cannot link test program for libdl" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	echo "$as_me:4604: result: ok" >&5
echo "${ECHO_T}ok" >&6
else
	{ { echo "$as_me:4607: error: Cannot find dlsym function" >&5
echo "$as_me: error: Cannot find dlsym function" >&2;}
   { (exit 1); exit 1; }; }
fi

		if test "$with_gpm" != yes ; then
			test -n "$verbose" && echo "	assuming soname for gpm is $with_gpm" 1>&6

			cf_cv_gpm_soname="$with_gpm"
		else

echo "$as_me:4618: checking for soname of gpm library" >&5
echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
if test "${cf_cv_gpm_soname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_gpm_soname=unknown
if test "$cross_compiling" != yes ; then
cat >conftest.$ac_ext <<CF_EOF
#include <gpm.h>
int main()
{
if (Gpm_Open(0,0)) Gpm_Close();
	${cf_cv_main_return:-return}(0);
}
CF_EOF
cf_save_LIBS="$LIBS"
	LIBS="-lgpm $LIBS"
	if { (eval echo "$as_me:4636: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4639: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
		if { (eval echo "$as_me:4641: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4644: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
			cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
			test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
		fi
	fi
rm -f conftest*
LIBS="$cf_save_LIBS"
fi

fi
echo "$as_me:4655: result: $cf_cv_gpm_soname" >&5
echo "${ECHO_T}$cf_cv_gpm_soname" >&6

		fi
		test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
#define LIBGPM_SONAME "$cf_cv_gpm_soname"
EOF

		SHLIB_LIST="-ldl $SHLIB_LIST"
	else
		SHLIB_LIST="-lgpm $SHLIB_LIST"
	fi
	cat >>confdefs.h <<\EOF
#define HAVE_LIBGPM 1
EOF

	echo "$as_me:4671: checking for Gpm_Wgetch in -lgpm" >&5
echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgpm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 4679 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char Gpm_Wgetch ();
int
main ()
{
Gpm_Wgetch ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4698: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4701: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4704: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4707: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_gpm_Gpm_Wgetch=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_gpm_Gpm_Wgetch=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:4718: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then

		{ echo "$as_me:4722: WARNING: GPM library is already linked with curses - read the FAQ" >&5
echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}

fi

fi

# not everyone has "test -c"
if test -c /dev/sysmouse 2>/dev/null ; then
echo "$as_me:4731: checking if you want to use sysmouse" >&5
echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6

# Check whether --with-sysmouse or --without-sysmouse was given.
if test "${with_sysmouse+set}" = set; then
  withval="$with_sysmouse"
  cf_with_sysmouse=$withval
else
  cf_with_sysmouse=maybe
fi;
	if test "$cf_with_sysmouse" != no ; then
	cat >conftest.$ac_ext <<_ACEOF
#line 4743 "configure"
#include "confdefs.h"

#include <osreldate.h>
#if (__FreeBSD_version >= 400017)
#include <sys/consio.h>
#include <sys/fbio.h>
#else
#include <machine/console.h>
#endif

int
main ()
{

	struct mouse_info the_mouse;
	ioctl(0, CONS_MOUSECTL, &the_mouse);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4766: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4769: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4772: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4775: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_with_sysmouse=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_with_sysmouse=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	fi
echo "$as_me:4785: result: $cf_with_sysmouse" >&5
echo "${ECHO_T}$cf_with_sysmouse" >&6
test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
#define USE_SYSMOUSE 1
EOF

fi
a2687 34
if test X"$CC_G_OPT" = X"" ; then
	CC_G_OPT='-g'
	test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
fi

if test X"$CXX_G_OPT" = X"" ; then
	CXX_G_OPT='-g'
	test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
fi

echo "$as_me:4803: checking for default loader flags" >&5
echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
case $DFT_LWR_MODEL in
libtool) LD_MODEL=''   ;;
normal)  LD_MODEL=''   ;;
debug)   LD_MODEL=$CC_G_OPT ;;
profile) LD_MODEL='-pg';;
shared)  LD_MODEL=''   ;;
esac
echo "$as_me:4812: result: $LD_MODEL" >&5
echo "${ECHO_T}$LD_MODEL" >&6

echo "$as_me:4815: checking if rpath option should be used" >&5
echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6

# Check whether --enable-rpath or --disable-rpath was given.
if test "${enable_rpath+set}" = set; then
  enableval="$enable_rpath"
  cf_cv_ld_rpath=$enableval
else
  cf_cv_ld_rpath=no
fi;
echo "$as_me:4825: result: $cf_cv_ld_rpath" >&5
echo "${ECHO_T}$cf_cv_ld_rpath" >&6
d2689 1
d2697 3
a2699 3
	echo "$as_me:4835: checking if release/abi version should be used for shared libs" >&5
echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6

d2712 1
a2712 3
		{ { echo "$as_me:4850: error: option value must be one of: rel, abi, auto or no" >&5
echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
   { (exit 1); exit 1; }; }
d2715 1
a2715 1

d2718 3
a2720 3
fi;
	echo "$as_me:4859: result: $cf_cv_shlib_version" >&5
echo "${ECHO_T}$cf_cv_shlib_version" >&6
d2728 2
a2729 2
		echo "$as_me:4868: checking which $CC option to use" >&5
echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
d2734 2
a2735 2
			cat >conftest.$ac_ext <<_ACEOF
#line 4875 "configure"
d2738 1
a2738 3
int
main ()
{
d2740 4
a2743 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4887: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4890: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4893: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4896: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d2746 2
a2747 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d2749 1
a2749 1
rm -f conftest.$ac_objext conftest.$ac_ext
d2751 1
a2751 2
		echo "$as_me:4905: result: $CC_SHARED_OPTS" >&5
echo "${ECHO_T}$CC_SHARED_OPTS" >&6
d2759 1
a2759 1
		MK_SHARED_LIB='${CC} ${CFLAGS} -o $@@ -Xlinker -soname=`basename $@@` -nostart -e 0'
d2763 1
a2763 1
		MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,--out-implib=../lib/${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/${SHARED_LIB}'
d2770 1
a2770 1
		MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${DESTDIR}${libdir}/`basename $@@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@@'
a2772 46
		echo "$as_me:4928: checking if ld -search_paths_first works" >&5
echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

			cf_save_LDFLAGS=$LDFLAGS
			LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
			cat >conftest.$ac_ext <<_ACEOF
#line 4937 "configure"
#include "confdefs.h"

int
main ()
{
int i;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4949: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4952: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4955: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4958: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_ldflags_search_paths_first=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_ldflags_search_paths_first=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
				LDFLAGS=$cf_save_LDFLAGS
fi
echo "$as_me:4969: result: $cf_cv_ldflags_search_paths_first" >&5
echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
		if test $cf_cv_ldflags_search_paths_first = yes; then
			LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
		fi
d2777 1
a2777 1
			LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
d2780 1
a2780 1
			LD_SHARED_OPTS='-Wl,+b,${libdir}'
d2782 1
a2782 1
		MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@@'
d2789 2
a2790 7
			if test "$GCC" = yes; then
				cf_ld_rpath_opt="-Wl,-rpath,"
				EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
			else
				cf_ld_rpath_opt="-rpath "
				EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
			fi
d2796 1
a2796 1
		MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@@` -o $@@'
d2799 1
a2799 1
	linux*|gnu*|k*bsd*-gnu)
d2801 1
a2801 1
			LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
d2806 1
a2806 1
			EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
d2808 2
a2809 9

	test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
	if test "$cf_cv_shlib_version" = rel; then
		cf_shared_soname='`basename $@@ .${REL_VERSION}`.${ABI_VERSION}'
	else
		cf_shared_soname='`basename $@@`'
	fi

		MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_shared_soname',-stats,-lc -o $@@'
d2813 1
a2813 1
		MK_SHARED_LIB='${LD} -Bshareable -soname,`basename $@@.${ABI_VERSION}` -o $@@'
d2815 1
a2815 1
	openbsd*|freebsd[23]*)
d2817 1
a2817 1
		MK_SHARED_LIB='${LD} -Bshareable -o $@@'
a2819 18
	freebsd*)
		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
		if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
			LOCAL_LDFLAGS="-rpath \$(LOCAL_LIBDIR)"
			LOCAL_LDFLAGS2="-rpath \${libdir} $LOCAL_LDFLAGS"
			cf_ld_rpath_opt="-rpath "
			EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
		fi

	test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
	if test "$cf_cv_shlib_version" = rel; then
		cf_shared_soname='`basename $@@ .${REL_VERSION}`.${ABI_VERSION}'
	else
		cf_shared_soname='`basename $@@`'
	fi

		MK_SHARED_LIB='${LD} -Bshareable -soname=`basename $@@` -o $@@'
		;;
d2824 1
a2824 1
			LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
d2826 2
a2827 1
			EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
d2829 1
a2829 3
			if test -f /usr/libexec/ld.elf_so; then
				cf_cv_shlib_version=abi
			else
a2832 9

	test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
	if test "$cf_cv_shlib_version" = rel; then
		cf_shared_soname='`basename $@@ .${REL_VERSION}`.${ABI_VERSION}'
	else
		cf_shared_soname='`basename $@@`'
	fi

			MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_shared_soname' -o $@@'
d2834 1
a2834 1
			MK_SHARED_LIB='${LD} -Bshareable -o $@@'
d2841 1
a2841 1
		MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@@`'
d2849 1
a2849 1
			LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
d2860 1
a2860 1
		if test "$GCC" != yes; then
d2863 1
a2863 1
		MK_SHARED_LIB='${LD} -dy -G -h `basename $@@ .${REL_VERSION}`.${ABI_VERSION} -o $@@'
d2869 1
a2869 1
		LINK_PROGS='LD_RUN_PATH=${libdir}'
d2874 1
a2874 1
		if test "$GCC" != yes; then
d2877 1
a2877 1
		MK_SHARED_LIB='${LD} -assert pure-text -o $@@'
d2882 1
a2882 1
		if test "$GCC" != yes; then
d2885 1
d2887 1
a2887 1
			LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
d2894 1
a2894 9

	test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
	if test "$cf_cv_shlib_version" = rel; then
		cf_shared_soname='`basename $@@ .${REL_VERSION}`.${ABI_VERSION}'
	else
		cf_shared_soname='`basename $@@`'
	fi

		MK_SHARED_LIB='${CC} -dy -G -h '$cf_shared_soname' -o $@@'
d2898 1
a2898 1
		if test "$GCC" != yes; then
d2901 1
a2901 1
		MK_SHARED_LIB='${LD} -d y -G -o $@@'
d2917 1
a2917 2
			{ echo "$as_me:5165: WARNING: ignored --with-shlib-version" >&5
echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
d2924 2
a2925 2
		echo "$as_me:5173: checking if we need a space after rpath option" >&5
echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
d2928 2
a2929 2
		cat >conftest.$ac_ext <<_ACEOF
#line 5178 "configure"
d2932 1
a2932 3
int
main ()
{
d2934 4
a2937 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5190: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5193: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5196: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5199: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d2940 4
a2943 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_rpath_space=yes
d2945 1
a2945 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d2947 1
a2947 2
		echo "$as_me:5209: result: $cf_rpath_space" >&5
echo "${ECHO_T}$cf_rpath_space" >&6
d2949 1
a2949 1
		MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${libdir}"
d2952 10
d2965 1
a2965 3
			{ { echo "$as_me:5218: error: Shared libraries are not supported in this version" >&5
echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
   { (exit 1); exit 1; }; }
d2972 1
d2974 2
a2975 2
echo "$as_me:5228: checking if you wish to install ncurses overwriting curses" >&5
echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
d2982 2
a2983 4
  if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
fi;
echo "$as_me:5238: result: $with_overwrite" >&5
echo "${ECHO_T}$with_overwrite" >&6
d2985 4
a2988 2
echo "$as_me:5241: checking if external terminfo-database is used" >&5
echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
d2996 3
a2998 3
fi;
echo "$as_me:5251: result: $use_database" >&5
echo "${ECHO_T}$use_database" >&6
d3009 2
d3016 2
d3019 1
a3019 1
	cat >>confdefs.h <<\EOF
d3023 3
a3025 3
	echo "$as_me:5273: checking which terminfo source-file will be installed" >&5
echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6

d3030 1
a3030 3
fi;
	echo "$as_me:5281: result: $TERMINFO_SRC" >&5
echo "${ECHO_T}$TERMINFO_SRC" >&6
d3032 1
a3032 12
	echo "$as_me:5284: checking whether to use hashed database instead of directory/tree" >&5
echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6

# Check whether --with-hashed-db or --without-hashed-db was given.
if test "${with_hashed_db+set}" = set; then
  withval="$with_hashed_db"

else
  with_hashed_db=no
fi;
	echo "$as_me:5294: result: $with_hashed_db" >&5
echo "${ECHO_T}$with_hashed_db" >&6
d3035 2
a3036 2
echo "$as_me:5298: checking for list of fallback descriptions" >&5
echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
d3044 5
a3048 22
fi;
echo "$as_me:5308: result: $with_fallback" >&5
echo "${ECHO_T}$with_fallback" >&6
FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`

echo "$as_me:5312: checking if you want modern xterm or antique" >&5
echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6

# Check whether --with-xterm-new or --without-xterm-new was given.
if test "${with_xterm_new+set}" = set; then
  withval="$with_xterm_new"
  with_xterm_new=$withval
else
  with_xterm_new=yes
fi;
case $with_xterm_new in
no)	with_xterm_new=xterm-old;;
*)	with_xterm_new=xterm-new;;
esac
echo "$as_me:5326: result: $with_xterm_new" >&5
echo "${ECHO_T}$with_xterm_new" >&6
WHICH_XTERM=$with_xterm_new
d3056 4
a3059 2
echo "$as_me:5336: checking for list of terminfo directories" >&5
echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
d3064 1
a3064 1

d3067 2
a3068 1
fi;
d3073 1
a3073 7

if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
fi

d3085 1
a3085 1
    cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
d3089 2
a3090 2
.no|.NONE/*)
  cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
d3093 1
a3093 3
  { { echo "$as_me:5376: error: expected a pathname, not \"$cf_src_path\"" >&5
echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
   { (exit 1); exit 1; }; }
d3102 2
d3106 3
a3108 3
echo "$as_me:5389: result: $TERMINFO_DIRS" >&5
echo "${ECHO_T}$TERMINFO_DIRS" >&6
test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
d3112 3
a3114 2
echo "$as_me:5395: checking for default terminfo directory" >&5
echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
d3119 1
a3119 1

a3121 5
fi;
if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
d3135 1
a3135 1
    withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
d3139 2
a3140 2
.no|.NONE/*)
  withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
d3143 1
a3143 3
  { { echo "$as_me:5430: error: expected a pathname, not \"$withval\"" >&5
echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
   { (exit 1); exit 1; }; }
d3147 1
a3147 1
TERMINFO="$withval"
d3149 2
a3150 3
echo "$as_me:5438: result: $TERMINFO" >&5
echo "${ECHO_T}$TERMINFO" >&6
cat >>confdefs.h <<EOF
d3154 1
d3157 3
d3162 2
a3163 2
echo "$as_me:5448: checking if big-core option selected" >&5
echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
d3173 2
a3174 2
  cat >conftest.$ac_ext <<_ACEOF
#line 5460 "configure"
d3184 1
a3184 1
	${cf_cv_main_return:-return}(s == 0);
d3186 3
a3188 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:5474: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5477: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:5479: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5482: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d3191 12
a3202 11
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
with_big_core=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi;
echo "$as_me:5494: result: $with_big_core" >&5
echo "${ECHO_T}$with_big_core" >&6
test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
d3206 1
d3208 2
a3209 2
echo "$as_me:5501: checking if you want termcap-fallback support" >&5
echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
d3217 3
a3219 3
fi;
echo "$as_me:5511: result: $with_termcap" >&5
echo "${ECHO_T}$with_termcap" >&6
d3223 2
a3224 4
		if test -z "$with_fallback" ; then
			{ { echo "$as_me:5517: error: You have disabled the database w/o specifying fallbacks" >&5
echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
   { (exit 1); exit 1; }; }
d3227 1
a3227 1
	cat >>confdefs.h <<\EOF
d3233 1
a3233 1
cat >>confdefs.h <<\EOF
d3237 4
a3240 2
echo "$as_me:5532: checking for list of termcap files" >&5
echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
d3245 1
a3245 1

d3248 2
a3249 1
fi;
d3254 1
a3254 7

if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
fi

d3266 1
a3266 1
    cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
d3270 2
a3271 2
.no|.NONE/*)
  cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
d3274 1
a3274 3
  { { echo "$as_me:5572: error: expected a pathname, not \"$cf_src_path\"" >&5
echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
   { (exit 1); exit 1; }; }
d3283 2
d3287 3
a3289 3
echo "$as_me:5585: result: $TERMPATH" >&5
echo "${ECHO_T}$TERMPATH" >&6
test -n "$TERMPATH" && cat >>confdefs.h <<EOF
d3293 1
d3295 2
a3296 2
echo "$as_me:5592: checking if fast termcap-loader is needed" >&5
echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
a3303 1461
fi;
echo "$as_me:5602: result: $with_getcap" >&5
echo "${ECHO_T}$with_getcap" >&6
test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
#define USE_GETCAP 1
EOF

echo "$as_me:5608: checking if translated termcaps will be cached in ~/.terminfo" >&5
echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6

# Check whether --enable-getcap-cache or --disable-getcap-cache was given.
if test "${enable_getcap_cache+set}" = set; then
  enableval="$enable_getcap_cache"
  with_getcap_cache=$enableval
else
  with_getcap_cache=no
fi;
echo "$as_me:5618: result: $with_getcap_cache" >&5
echo "${ECHO_T}$with_getcap_cache" >&6
test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
#define USE_GETCAP_CACHE 1
EOF

fi

###   Use option --disable-home-terminfo to completely remove ~/.terminfo
echo "$as_me:5627: checking if ~/.terminfo is wanted" >&5
echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6

# Check whether --enable-home-terminfo or --disable-home-terminfo was given.
if test "${enable_home_terminfo+set}" = set; then
  enableval="$enable_home_terminfo"
  with_home_terminfo=$enableval
else
  with_home_terminfo=yes
fi;
echo "$as_me:5637: result: $with_home_terminfo" >&5
echo "${ECHO_T}$with_home_terminfo" >&6
test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
#define USE_HOME_TERMINFO 1
EOF

echo "$as_me:5643: checking if you want to use restricted environment when running as root" >&5
echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6

# Check whether --enable-root-environ or --disable-root-environ was given.
if test "${enable_root_environ+set}" = set; then
  enableval="$enable_root_environ"
  with_root_environ=$enableval
else
  with_root_environ=yes
fi;
echo "$as_me:5653: result: $with_root_environ" >&5
echo "${ECHO_T}$with_root_environ" >&6
test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
#define USE_ROOT_ENVIRON 1
EOF

###   Use option --enable-symlinks to make tic use symlinks, not hard links
###   to reduce storage requirements for the terminfo database.

for ac_func in \
	remove \
	unlink
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:5667: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5673 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5704: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5707: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5710: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5713: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:5723: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

if test "$cross_compiling" = yes ; then

for ac_func in \
		link \
		symlink
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:5740: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5746 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5777: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5780: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5783: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5786: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:5796: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

else
	echo "$as_me:5807: checking if link/symlink functions work" >&5
echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
if test "${cf_cv_link_funcs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

		cf_cv_link_funcs=
		for cf_func in link symlink ; do
			if test "$cross_compiling" = yes; then

			eval 'ac_cv_func_'$cf_func'=error'
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5820 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
int main()
{
	int fail = 0;
	char *src = "config.log";
	char *dst = "conftest.chk";
	struct stat src_sb;
	struct stat dst_sb;

	stat(src, &src_sb);
	fail = ($cf_func("config.log", "conftest.chk") < 0)
	    || (stat(dst, &dst_sb) < 0)
	    || (dst_sb.st_mtime != src_sb.st_mtime);
#ifdef HAVE_UNLINK
	unlink(dst);
#else
	remove(dst);
#endif
	${cf_cv_main_return:-return} (fail);
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:5850: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5853: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:5855: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5858: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

			cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
			eval 'ac_cv_func_'$cf_func'=yes'
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

			eval 'ac_cv_func_'$cf_func'=no'
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
		done
		test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no

fi
echo "$as_me:5876: result: $cf_cv_link_funcs" >&5
echo "${ECHO_T}$cf_cv_link_funcs" >&6
	test "$ac_cv_func_link"    = yes && cat >>confdefs.h <<\EOF
#define HAVE_LINK 1
EOF

	test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
#define HAVE_SYMLINK 1
EOF

fi

with_links=no
with_symlinks=no

# soft links (symbolic links) are useful for some systems where hard links do
# not work, or to make it simpler to copy terminfo trees around.
if test "$ac_cv_func_symlink" = yes ; then
    echo "$as_me:5894: checking if tic should use symbolic links" >&5
echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6

# Check whether --enable-symlinks or --disable-symlinks was given.
if test "${enable_symlinks+set}" = set; then
  enableval="$enable_symlinks"
  with_symlinks=$enableval
else
  with_symlinks=no
fi;
    echo "$as_me:5904: result: $with_symlinks" >&5
echo "${ECHO_T}$with_symlinks" >&6
fi

# If we have hard links and did not choose to use soft links instead, there is
# no reason to make this choice optional - use the hard links.
if test "$with_symlinks" = no ; then
    echo "$as_me:5911: checking if tic should use hard links" >&5
echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
    if test "$ac_cv_func_link" = yes ; then
	with_links=yes
    else
	with_links=no
    fi
    echo "$as_me:5918: result: $with_links" >&5
echo "${ECHO_T}$with_links" >&6
fi

test "$with_links" = yes && cat >>confdefs.h <<\EOF
#define USE_LINKS 1
EOF

test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
#define USE_SYMLINKS 1
EOF

###   use option --enable-broken-linker to force on use of broken-linker support
echo "$as_me:5931: checking if you want broken-linker support code" >&5
echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6

# Check whether --enable-broken_linker or --disable-broken_linker was given.
if test "${enable_broken_linker+set}" = set; then
  enableval="$enable_broken_linker"
  with_broken_linker=$enableval
else
  with_broken_linker=${BROKEN_LINKER-no}
fi;
echo "$as_me:5941: result: $with_broken_linker" >&5
echo "${ECHO_T}$with_broken_linker" >&6

BROKEN_LINKER=0
if test "$with_broken_linker" = yes ; then
	cat >>confdefs.h <<\EOF
#define BROKEN_LINKER 1
EOF

	BROKEN_LINKER=1
elif test "$DFT_LWR_MODEL" = shared ; then
	case $cf_cv_system_name in #(vi
	cygwin*)
		cat >>confdefs.h <<\EOF
#define BROKEN_LINKER 1
EOF

		BROKEN_LINKER=1
		test -n "$verbose" && echo "	cygwin linker is broken anyway" 1>&6

		;;
	esac
fi

###   use option --enable-bsdpad to have tputs process BSD-style prefix padding
echo "$as_me:5966: checking if tputs should process BSD-style prefix padding" >&5
echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6

# Check whether --enable-bsdpad or --disable-bsdpad was given.
if test "${enable_bsdpad+set}" = set; then
  enableval="$enable_bsdpad"
  with_bsdpad=$enableval
else
  with_bsdpad=no
fi;
echo "$as_me:5976: result: $with_bsdpad" >&5
echo "${ECHO_T}$with_bsdpad" >&6
test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
#define BSD_TPUTS 1
EOF

###   use option --enable-widec to turn on use of wide-character support
NCURSES_CH_T=chtype
NCURSES_LIBUTF8=0

NEED_WCHAR_H=0
NCURSES_MBSTATE_T=0
NCURSES_WCHAR_T=0
NCURSES_WINT_T=0

# Check to define _XOPEN_SOURCE "automatically"

echo "$as_me:5993: checking if $CC -U and -D options work together" >&5
echo $ECHO_N "checking if $CC -U and -D options work together... $ECHO_C" >&6
if test "${cf_cv_cc_u_d_options+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cf_save_CPPFLAGS="$CPPFLAGS"
	CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS"
	cat >conftest.$ac_ext <<_ACEOF
#line 6002 "configure"
#include "confdefs.h"

int
main ()
{

#ifndef U_D_OPTIONS
make an undefined-error
#endif
#ifdef  D_U_OPTIONS
make a defined-error
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6021: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6024: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6027: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6030: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

	cf_cv_cc_u_d_options=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

	cf_cv_cc_u_d_options=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	CPPFLAGS="$cf_save_CPPFLAGS"

fi
echo "$as_me:6044: result: $cf_cv_cc_u_d_options" >&5
echo "${ECHO_T}$cf_cv_cc_u_d_options" >&6

cf_XOPEN_SOURCE=500
cf_POSIX_C_SOURCE=199506L

case $host_os in #(vi
aix[45]*) #(vi
	CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE"
	;;
freebsd*) #(vi
	# 5.x headers associate
	#	_XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
	#	_XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
	cf_POSIX_C_SOURCE=200112L
	cf_XOPEN_SOURCE=600
	CPPFLAGS="$CPPFLAGS -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
	;;
hpux*) #(vi
	CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
	;;
irix[56].*) #(vi
	CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
	;;
linux*|gnu*) #(vi

echo "$as_me:6070: checking if we must define _GNU_SOURCE" >&5
echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
if test "${cf_cv_gnu_source+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 6077 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifndef _XOPEN_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6092: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6095: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6098: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6101: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_gnu_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_save="$CPPFLAGS"
	 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
	 cat >conftest.$ac_ext <<_ACEOF
#line 6110 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifdef _XOPEN_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6125: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6128: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6131: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6134: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_gnu_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_gnu_source=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	CPPFLAGS="$cf_save"

fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:6149: result: $cf_cv_gnu_source" >&5
echo "${ECHO_T}$cf_cv_gnu_source" >&6
test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"

	;;
mirbsd*) #(vi
	# setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
	;;
netbsd*) #(vi
	# setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
	;;
openbsd*) #(vi
	# setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
	;;
osf[45]*) #(vi
	CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE"
	;;
nto-qnx*) #(vi
	CPPFLAGS="$CPPFLAGS -D_QNX_SOURCE"
	;;
sco*) #(vi
	# setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
	;;
solaris*) #(vi
	CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
	;;
*)
	echo "$as_me:6176: checking if we should define _XOPEN_SOURCE" >&5
echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
if test "${cf_cv_xopen_source+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 6183 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifndef _XOPEN_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6198: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6201: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6204: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6207: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_xopen_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_save="$CPPFLAGS"
	 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
	 cat >conftest.$ac_ext <<_ACEOF
#line 6216 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifdef _XOPEN_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6231: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6234: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6237: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6240: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_xopen_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_xopen_source=$cf_XOPEN_SOURCE
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	CPPFLAGS="$cf_save"

fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:6255: result: $cf_cv_xopen_source" >&5
echo "${ECHO_T}$cf_cv_xopen_source" >&6
	if test "$cf_cv_xopen_source" != no ; then

# remove _XOPEN_SOURCE symbol from $CFLAGS
CFLAGS=`echo "$CFLAGS" | \
	sed	-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
		-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?$//g'`

# remove _XOPEN_SOURCE symbol from $CPPFLAGS
CPPFLAGS=`echo "$CPPFLAGS" | \
	sed	-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
		-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?$//g'`

		test "$cf_cv_cc_u_d_options" = yes && \
			CPPFLAGS="$CPPFLAGS -U_XOPEN_SOURCE"
		CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_cv_xopen_source"
	fi

cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE

cf_save_CFLAGS="$CFLAGS"
cf_save_CPPFLAGS="$CPPFLAGS"

# remove _POSIX_C_SOURCE symbol from $cf_save_CFLAGS
cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
	sed	-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
		-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?$//g'`

# remove _POSIX_C_SOURCE symbol from $cf_save_CPPFLAGS
cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
	sed	-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
		-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?$//g'`

echo "$as_me:6289: checking if we should define _POSIX_C_SOURCE" >&5
echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
if test "${cf_cv_posix_c_source+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

echo "(line 6295) testing if the symbol is already defined go no further ..." 1>&5

	cat >conftest.$ac_ext <<_ACEOF
#line 6298 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifndef _POSIX_C_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6313: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6316: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6319: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6322: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_posix_c_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_want_posix_source=no
	 case .$cf_POSIX_C_SOURCE in #(vi
	 .[12]??*) #(vi
		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
		;;
	 .2) #(vi
		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
		cf_want_posix_source=yes
		;;
	 .*)
		cf_want_posix_source=yes
		;;
	 esac
	 if test "$cf_want_posix_source" = yes ; then
		cat >conftest.$ac_ext <<_ACEOF
#line 6343 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifdef _POSIX_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6358: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6361: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6364: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6367: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	 fi

echo "(line 6378) testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5

	 CFLAGS="$cf_trim_CFLAGS"
	 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"

echo "(line 6383) testing if the second compile does not leave our definition intact error ..." 1>&5

	 cat >conftest.$ac_ext <<_ACEOF
#line 6386 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifndef _POSIX_C_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6401: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6404: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6407: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6410: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_posix_c_source=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	 CFLAGS="$cf_save_CFLAGS"
	 CPPFLAGS="$cf_save_CPPFLAGS"

fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:6426: result: $cf_cv_posix_c_source" >&5
echo "${ECHO_T}$cf_cv_posix_c_source" >&6

if test "$cf_cv_posix_c_source" != no ; then
	CFLAGS="$cf_trim_CFLAGS"
	CPPFLAGS="$cf_trim_CPPFLAGS"
	if test "$cf_cv_cc_u_d_options" = yes ; then
		cf_temp_posix_c_source=`echo "$cf_cv_posix_c_source" | \
				sed -e 's/-D/-U/g' -e 's/=[^ 	]*//g'`
		CPPFLAGS="$CPPFLAGS $cf_temp_posix_c_source"
	fi
	CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source"
fi

	;;
esac

# Work around breakage on OS X

echo "$as_me:6445: checking if SIGWINCH is defined" >&5
echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
if test "${cf_cv_define_sigwinch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 6452 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/signal.h>

int
main ()
{
int x = SIGWINCH
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6467: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6470: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6473: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6476: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_define_sigwinch=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 6483 "configure"
#include "confdefs.h"

#undef _XOPEN_SOURCE
#undef _POSIX_SOURCE
#undef _POSIX_C_SOURCE
#include <sys/types.h>
#include <sys/signal.h>

int
main ()
{
int x = SIGWINCH
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6501: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6504: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6507: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6510: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_define_sigwinch=maybe
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_define_sigwinch=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:6524: result: $cf_cv_define_sigwinch" >&5
echo "${ECHO_T}$cf_cv_define_sigwinch" >&6

if test "$cf_cv_define_sigwinch" = maybe ; then
echo "$as_me:6528: checking for actual SIGWINCH definition" >&5
echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
if test "${cf_cv_fixup_sigwinch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_fixup_sigwinch=unknown
cf_sigwinch=32
while test $cf_sigwinch != 1
do
	cat >conftest.$ac_ext <<_ACEOF
#line 6539 "configure"
#include "confdefs.h"

#undef _XOPEN_SOURCE
#undef _POSIX_SOURCE
#undef _POSIX_C_SOURCE
#include <sys/types.h>
#include <sys/signal.h>

int
main ()
{

#if SIGWINCH != $cf_sigwinch
make an error
#endif
int x = SIGWINCH
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6561: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6564: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6567: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6570: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_fixup_sigwinch=$cf_sigwinch
	 break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext

cf_sigwinch=`expr $cf_sigwinch - 1`
done

fi
echo "$as_me:6584: result: $cf_cv_fixup_sigwinch" >&5
echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6

	if test "$cf_cv_fixup_sigwinch" != unknown ; then
		CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
	fi
fi

# Checks for CODESET support.

  echo "$as_me:6594: checking for nl_langinfo and CODESET" >&5
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
if test "${am_cv_langinfo_codeset+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6600 "configure"
#include "confdefs.h"
#include <langinfo.h>
int
main ()
{
char* cs = nl_langinfo(CODESET);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6612: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6615: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6618: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6621: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  am_cv_langinfo_codeset=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
am_cv_langinfo_codeset=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi
echo "$as_me:6632: result: $am_cv_langinfo_codeset" >&5
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
  if test $am_cv_langinfo_codeset = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_LANGINFO_CODESET 1
EOF

  fi

# use these variables to work around a defect in gcc's fixincludes.
NCURSES_OK_WCHAR_T=
NCURSES_OK_WINT_T=

echo "$as_me:6646: checking if you want wide-character code" >&5
echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6

# Check whether --enable-widec or --disable-widec was given.
if test "${enable_widec+set}" = set; then
  enableval="$enable_widec"
  with_widec=$enableval
else
  with_widec=no
fi;
echo "$as_me:6656: result: $with_widec" >&5
echo "${ECHO_T}$with_widec" >&6
if test "$with_widec" = yes ; then
	LIB_SUFFIX="w${LIB_SUFFIX}"
	cat >>confdefs.h <<\EOF
#define USE_WIDEC_SUPPORT 1
EOF

echo "$as_me:6664: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line 6667 "configure"
#include "confdefs.h"
#include <sys/types.h>

int
main ()
{

#ifndef _XOPEN_SOURCE_EXTENDED
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6683: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6686: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6689: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6692: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_result=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_result=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:6701: result: $cf_result" >&5
echo "${ECHO_T}$cf_result" >&6

if test "$cf_result" = yes ; then
	CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
elif test "x" != "x" ; then
	echo "$as_me:6707: checking checking for compatible value versus " >&5
echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
	cat >conftest.$ac_ext <<_ACEOF
#line 6710 "configure"
#include "confdefs.h"
#include <sys/types.h>

int
main ()
{

#if _XOPEN_SOURCE_EXTENDED- < 0
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6726: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6729: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6732: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6735: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_result=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_result=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	echo "$as_me:6744: result: $cf_result" >&5
echo "${ECHO_T}$cf_result" >&6
	if test "$cf_result" = no ; then
		# perhaps we can override it - try...
		CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
	fi
fi

	# with_overwrite=no
	NCURSES_CH_T=cchar_t

for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:6758: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6764 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6795: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6798: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6801: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6804: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:6814: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

	if test "$ac_cv_func_putwc" != yes ; then

echo "$as_me:6826: checking for putwc in libutf8" >&5
echo $ECHO_N "checking for putwc in libutf8... $ECHO_C" >&6
if test "${cf_cv_libutf8+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cf_save_LIBS="$LIBS"
	LIBS="-lutf8 $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 6835 "configure"
#include "confdefs.h"

#include <libutf8.h>
int
main ()
{
putwc(0,0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6848: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6851: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6854: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6857: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_libutf8=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_libutf8=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	LIBS="$cf_save_LIBS"

fi
echo "$as_me:6869: result: $cf_cv_libutf8" >&5
echo "${ECHO_T}$cf_cv_libutf8" >&6

if test "$cf_cv_libutf8" = yes ; then
	cat >>confdefs.h <<\EOF
#define HAVE_LIBUTF8_H 1
EOF

	LIBS="-lutf8 $LIBS"
fi

		if test "$cf_cv_libutf8" = yes ; then
			NCURSES_LIBUTF8=1
		fi
	fi

# This is needed on Tru64 5.0 to declare mbstate_t
echo "$as_me:6886: checking if we must include wchar.h to declare mbstate_t" >&5
echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
if test "${cf_cv_mbstate_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 6893 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
mbstate_t state
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6911: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6914: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6917: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6920: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_mbstate_t=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 6927 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <wchar.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
mbstate_t value
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6946: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6949: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6952: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6955: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_mbstate_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_mbstate_t=unknown
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:6967: result: $cf_cv_mbstate_t" >&5
echo "${ECHO_T}$cf_cv_mbstate_t" >&6

if test "$cf_cv_mbstate_t" = yes ; then
	cat >>confdefs.h <<\EOF
#define NEED_WCHAR_H 1
EOF

	NEED_WCHAR_H=1
fi

# if we do not find mbstate_t in either place, use substitution to provide a fallback.
if test "$cf_cv_mbstate_t" = unknown ; then
	NCURSES_MBSTATE_T=1
fi

# This is needed on Tru64 5.0 to declare wchar_t
echo "$as_me:6984: checking if we must include wchar.h to declare wchar_t" >&5
echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
if test "${cf_cv_wchar_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 6991 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
wchar_t state
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7009: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7012: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7015: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7018: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_wchar_t=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 7025 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <wchar.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
wchar_t value
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7044: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7047: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7050: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7053: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_wchar_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_wchar_t=unknown
fi
rm -f conftest.$ac_objext conftest.$ac_ext
d3305 16
a3320 1
rm -f conftest.$ac_objext conftest.$ac_ext
a3321 2
echo "$as_me:7065: result: $cf_cv_wchar_t" >&5
echo "${ECHO_T}$cf_cv_wchar_t" >&6
d3323 3
a3325 3
if test "$cf_cv_wchar_t" = yes ; then
	cat >>confdefs.h <<\EOF
#define NEED_WCHAR_H 1
a3327 2
	NEED_WCHAR_H=1
fi
a3328 3
# if we do not find wchar_t in either place, use substitution to provide a fallback.
if test "$cf_cv_wchar_t" = unknown ; then
	NCURSES_WCHAR_T=1
d3331 2
a3332 4
# if we find wchar_t in either place, use substitution to provide a fallback.
if test "$cf_cv_wchar_t" != unknown ; then
	NCURSES_OK_WCHAR_T=1
fi
d3334 8
a3341 5
# This is needed on Tru64 5.0 to declare wint_t
echo "$as_me:7087: checking if we must include wchar.h to declare wint_t" >&5
echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
if test "${cf_cv_wint_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3343 2
a3344 3

cat >conftest.$ac_ext <<_ACEOF
#line 7094 "configure"
d3346 7
d3354 1
a3354 33
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
wint_t state
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7112: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7115: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7118: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7121: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_wint_t=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 7128 "configure"
#include "confdefs.h"
d3356 7
a3362 6
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <wchar.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
a3363 32
int
main ()
{
wint_t value
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7147: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7150: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7153: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7156: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_wint_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_wint_t=unknown
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:7168: result: $cf_cv_wint_t" >&5
echo "${ECHO_T}$cf_cv_wint_t" >&6
d3365 1
a3365 3
if test "$cf_cv_wint_t" = yes ; then
	cat >>confdefs.h <<\EOF
#define NEED_WCHAR_H 1
d3367 8
a3374 2

	NEED_WCHAR_H=1
d3376 1
a3376 4

# if we do not find wint_t in either place, use substitution to provide a fallback.
if test "$cf_cv_wint_t" = unknown ; then
	NCURSES_WINT_T=1
d3379 5
a3383 8
# if we find wint_t in either place, use substitution to provide a fallback.
if test "$cf_cv_wint_t" != unknown ; then
	NCURSES_OK_WINT_T=1
fi

	if test "$NCURSES_MBSTATE_T" != 0; then
		cat >>confdefs.h <<\EOF
#define NEED_MBSTATE_T_DEF 1
d3385 3
a3387 2

	fi
d3389 1
a3390 9
###   use option --disable-lp64 to allow long chtype
case $cf_cv_abi_version in
[345]*)
	default_with_lp64=no
	;;
*)
	default_with_lp64=yes
	;;
esac
d3392 12
a3403 39
echo "$as_me:7207: checking whether to enable _LP64 definition in curses.h" >&5
echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6

# Check whether --enable-lp64 or --disable-lp64 was given.
if test "${enable_lp64+set}" = set; then
  enableval="$enable_lp64"
  with_lp64=$enableval
else
  with_lp64=$default_with_lp64
fi;
echo "$as_me:7217: result: $with_lp64" >&5
echo "${ECHO_T}$with_lp64" >&6

if test "$with_lp64" = yes ; then
	cf_cv_enable_lp64=1
else
	cf_cv_enable_lp64=0
fi

# Check whether --enable-largefile or --disable-largefile was given.
if test "${enable_largefile+set}" = set; then
  enableval="$enable_largefile"

fi;
if test "$enable_largefile" != no; then

  echo "$as_me:7233: checking for special C compiler options needed for large files" >&5
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_largefile_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_sys_largefile_CC=no
     if test "$GCC" != yes; then
       ac_save_CC=$CC
       while :; do
     	 # IRIX 6.2 and later do not support large files by default,
     	 # so use the C compiler's -n32 option if that helps.
         cat >conftest.$ac_ext <<_ACEOF
#line 7245 "configure"
d3405 7
a3411 12
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{
d3413 1
a3413 52
  ;
  return 0;
}
_ACEOF
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:7265: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7268: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7271: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7274: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
     	 CC="$CC -n32"
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:7284: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7287: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7290: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7293: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_largefile_CC=' -n32'; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
         break
       done
       CC=$ac_save_CC
       rm -f conftest.$ac_ext
    fi
fi
echo "$as_me:7307: result: $ac_cv_sys_largefile_CC" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  if test "$ac_cv_sys_largefile_CC" != no; then
    CC=$CC$ac_cv_sys_largefile_CC
  fi
d3415 8
a3422 22
  echo "$as_me:7313: checking for _FILE_OFFSET_BITS value needed for large files" >&5
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_file_offset_bits=no
  cat >conftest.$ac_ext <<_ACEOF
#line 7321 "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{
d3424 5
a3428 17
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7341: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7344: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7347: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7350: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
d3430 6
a3435 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a3436 17
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 7359 "configure"
#include "confdefs.h"
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{
d3438 7
a3444 17
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7380: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7383: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7386: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7389: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_file_offset_bits=64; break
d3446 1
a3446 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a3447 2
rm -f conftest.$ac_objext conftest.$ac_ext
  break
a3448 4
fi
echo "$as_me:7400: result: $ac_cv_sys_file_offset_bits" >&5
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
if test "$ac_cv_sys_file_offset_bits" != no; then
d3450 16
a3465 3
cat >>confdefs.h <<EOF
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
EOF
a3466 12
fi
rm -f conftest*
  echo "$as_me:7410: checking for _LARGE_FILES value needed for large files" >&5
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_large_files+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_large_files=no
  cat >conftest.$ac_ext <<_ACEOF
#line 7418 "configure"
#include "confdefs.h"
d3468 5
a3472 10
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
d3474 5
d3480 10
a3489 2
  ;
  return 0;
d3491 7
a3497 14
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7438: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7441: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7444: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7447: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
d3499 7
a3505 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a3506 17
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 7456 "configure"
#include "confdefs.h"
#define _LARGE_FILES 1
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{
d3508 3
a3510 20
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7477: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7480: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7483: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7486: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_large_files=1; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a3511 7
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
fi
echo "$as_me:7497: result: $ac_cv_sys_large_files" >&5
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
if test "$ac_cv_sys_large_files" != no; then
d3513 7
a3519 2
cat >>confdefs.h <<EOF
#define _LARGE_FILES $ac_cv_sys_large_files
a3522 2
rm -f conftest*
fi
d3524 22
a3545 33
    if test "$enable_largefile" != no ; then
	echo "$as_me:7510: checking for _LARGEFILE_SOURCE value needed for large files" >&5
echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_largefile_source+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_largefile_source=no
  cat >conftest.$ac_ext <<_ACEOF
#line 7518 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
return !fseeko;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7530: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7533: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7536: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7539: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
d3547 7
a3553 30
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 7548 "configure"
#include "confdefs.h"
#define _LARGEFILE_SOURCE 1
#include <stdio.h>
int
main ()
{
return !fseeko;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7561: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7564: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7567: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7570: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_largefile_source=1; break
d3555 1
a3555 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d3557 2
a3558 3
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
a3559 3
echo "$as_me:7581: result: $ac_cv_sys_largefile_source" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
if test "$ac_cv_sys_largefile_source" != no; then
d3561 2
a3562 2
cat >>confdefs.h <<EOF
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
d3565 3
a3567 2
fi
rm -f conftest*
a3568 47
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
# in glibc 2.1.3, but that breaks too many other things.
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
echo "$as_me:7595: checking for fseeko" >&5
echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
if test "${ac_cv_func_fseeko+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7601 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
return fseeko && fseeko (stdin, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7613: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7616: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7619: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7622: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_fseeko=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_fseeko=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7632: result: $ac_cv_func_fseeko" >&5
echo "${ECHO_T}$ac_cv_func_fseeko" >&6
if test $ac_cv_func_fseeko = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_FSEEKO 1
EOF
d3570 3
a3572 1
fi
d3574 4
a3577 14
	# Normally we would collect these definitions in the config.h,
	# but (like _XOPEN_SOURCE), some environments rely on having these
	# defined before any of the system headers are included.  Another
	# case comes up with C++, e.g., on AIX the compiler compiles the
	# header files by themselves before looking at the body files it is
	# told to compile.  For ncurses, those header files do not include
	# the config.h
	test "$ac_cv_sys_large_files"      != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
	test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "

	echo "$as_me:7652: checking whether to use struct dirent64" >&5
echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
if test "${cf_cv_struct_dirent64+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3579 2
d3582 1
a3582 3
		cat >conftest.$ac_ext <<_ACEOF
#line 7659 "configure"
#include "confdefs.h"
d3584 5
a3588 2
#include <sys/types.h>
#include <dirent.h>
d3590 7
a3596 3
int
main ()
{
d3598 2
a3599 5
		/* if transitional largefile support is setup, this is true */
		extern struct dirent64 * readdir(DIR *);
		struct dirent64 *x = readdir((DIR *)0);
		struct dirent *y = readdir((DIR *)0);
		int z = x - y;
d3601 3
a3603 32
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7680: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7683: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7686: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7689: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_struct_dirent64=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_struct_dirent64=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:7700: result: $cf_cv_struct_dirent64" >&5
echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
	test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_DIRENT64 1
EOF

    fi
a3604 15
###   use option --disable-tparm-varargs to make tparm() conform to X/Open
echo "$as_me:7709: checking if you want tparm not to use X/Open fixed-parameter list" >&5
echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6

# Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
if test "${enable_tparm_varargs+set}" = set; then
  enableval="$enable_tparm_varargs"
  with_tparm_varargs=$enableval
else
  with_tparm_varargs=yes
fi;
echo "$as_me:7719: result: $with_tparm_varargs" >&5
echo "${ECHO_T}$with_tparm_varargs" >&6
NCURSES_TPARM_VARARGS=0
test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
d3607 2
a3608 2
echo "$as_me:7725: checking for type of bool" >&5
echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
d3616 1
a3616 3
fi;
echo "$as_me:7735: result: $NCURSES_BOOL" >&5
echo "${ECHO_T}$NCURSES_BOOL" >&6
d3618 1
a3618 2
echo "$as_me:7738: checking for alternate terminal capabilities file" >&5
echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
a3619 24
# Check whether --with-caps or --without-caps was given.
if test "${with_caps+set}" = set; then
  withval="$with_caps"
  TERMINFO_CAPS=Caps.$withval
else
  TERMINFO_CAPS=Caps
fi;
test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
echo "$as_me:7749: result: $TERMINFO_CAPS" >&5
echo "${ECHO_T}$TERMINFO_CAPS" >&6

###   use option --with-chtype to override chtype's type
echo "$as_me:7753: checking for type of chtype" >&5
echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6

# Check whether --with-chtype or --without-chtype was given.
if test "${with_chtype+set}" = set; then
  withval="$with_chtype"
  NCURSES_CHTYPE="$withval"
else
  NCURSES_CHTYPE=auto
fi;
echo "$as_me:7763: result: $NCURSES_CHTYPE" >&5
echo "${ECHO_T}$NCURSES_CHTYPE" >&6
d3622 2
a3623 2
echo "$as_me:7767: checking for type of ospeed" >&5
echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
d3631 22
a3652 17
fi;
echo "$as_me:7777: result: $NCURSES_OSPEED" >&5
echo "${ECHO_T}$NCURSES_OSPEED" >&6

###   use option --with-mmask-t to override mmask_t's type
echo "$as_me:7781: checking for type of mmask_t" >&5
echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6

# Check whether --with-mmask-t or --without-mmask-t was given.
if test "${with_mmask_t+set}" = set; then
  withval="$with_mmask_t"
  NCURSES_MMASK_T="$withval"
else
  NCURSES_MMASK_T=auto
fi;
echo "$as_me:7791: result: $NCURSES_MMASK_T" >&5
echo "${ECHO_T}$NCURSES_MMASK_T" >&6
d3655 2
a3656 2
echo "$as_me:7795: checking if RCS identifiers should be compiled-in" >&5
echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
d3664 4
a3667 4
fi;
echo "$as_me:7805: result: $with_rcs_ids" >&5
echo "${ECHO_T}$with_rcs_ids" >&6
test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
d3671 1
d3674 6
a3679 2
echo "$as_me:7813: checking format of man-pages" >&5
echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
d3687 1
a3687 1
fi;
a3688 2
test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
d3690 4
a3693 4
cf_unknown=

case $MANPAGE_FORMAT in
unknown)
a3696 1

a3697 5
  MANPAGE_FORMAT=
  cf_preform=no
  cf_catonly=yes
  cf_example=date

d3699 1
d3702 1
a3702 1
    for cf_name in $cf_dir/man*/$cf_example.[01]* $cf_dir/cat*/$cf_example.[01]* $cf_dir/man*/$cf_example $cf_dir/cat*/$cf_example
d3704 10
a3713 33
      cf_test=`echo $cf_name | sed -e 's/*//'`
      if test "x$cf_test" = "x$cf_name" ; then

	case "$cf_name" in
	*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
	*.Z)  MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
	*.0)	MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
	*)    MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
	esac

	case "$cf_name" in
	$cf_dir/man*)
	  cf_catonly=no
	  ;;
	$cf_dir/cat*)
	  cf_preform=yes
	  ;;
	esac
	break
      fi

      # if we found a match in either man* or cat*, stop looking
      if test -n "$MANPAGE_FORMAT" ; then
	cf_found=no
	test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
	test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
	case "$cf_name" in
	$cf_dir/cat*)
	  cf_found=yes
	  ;;
	esac
	test $cf_found=yes && break
      fi
d3715 1
a3715 2
    # only check the first directory in $MANPATH where we find manpages
    if test -n "$MANPAGE_FORMAT" ; then
a3718 2
  # if we did not find the example, just assume it is normal
  test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
d3721 2
a3722 10
*)
  for cf_option in $MANPAGE_FORMAT; do
     case $cf_option in #(vi
     gzip|compress|BSDI|normal|formatted|catonly)
       ;;
     *)
       cf_unknown="$cf_unknown $cf_option"
       ;;
     esac
  done
d3726 5
a3730 6
echo "$as_me:7902: result: $MANPAGE_FORMAT" >&5
echo "${ECHO_T}$MANPAGE_FORMAT" >&6
if test -n "$cf_unknown" ; then
  { echo "$as_me:7905: WARNING: Unexpected manpage-format $cf_unknown" >&5
echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
fi
a3731 2
echo "$as_me:7909: checking for manpage renaming" >&5
echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
d3739 2
a3740 1
fi;
d3759 1
a3759 3
    { { echo "$as_me:7937: error: not a filename: $MANPAGE_RENAMES" >&5
echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
   { (exit 1); exit 1; }; }
d3767 1
a3767 1
    sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
d3771 1
a3771 5
echo "$as_me:7951: result: $MANPAGE_RENAMES" >&5
echo "${ECHO_T}$MANPAGE_RENAMES" >&6

echo "$as_me:7954: checking if manpage aliases will be installed" >&5
echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
a3772 7
# Check whether --with-manpage-aliases or --without-manpage-aliases was given.
if test "${with_manpage_aliases+set}" = set; then
  withval="$with_manpage_aliases"
  MANPAGE_ALIASES=$withval
else
  MANPAGE_ALIASES=yes
fi;
a3773 2
echo "$as_me:7965: result: $MANPAGE_ALIASES" >&5
echo "${ECHO_T}$MANPAGE_ALIASES" >&6
d3775 2
a3776 5
if test "$LN_S" = "ln -s"; then
	cf_use_symlinks=yes
else
	cf_use_symlinks=no
fi
a3777 4
MANPAGE_SYMLINKS=no
if test "$MANPAGE_ALIASES" = yes ; then
echo "$as_me:7976: checking if manpage symlinks should be used" >&5
echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
d3784 5
a3788 2
  MANPAGE_SYMLINKS=$cf_use_symlinks
fi;
a3789 7
if test "$$cf_use_symlinks" = no; then
if test "$MANPAGE_SYMLINKS" = yes ; then
	{ echo "$as_me:7989: WARNING: cannot make symlinks" >&5
echo "$as_me: WARNING: cannot make symlinks" >&2;}
	MANPAGE_SYMLINKS=no
fi
fi
d3791 2
a3792 3
echo "$as_me:7995: result: $MANPAGE_SYMLINKS" >&5
echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
fi
a3793 2
echo "$as_me:7999: checking for manpage tbl" >&5
echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
d3801 4
a3804 1
fi;
a3805 2
echo "$as_me:8010: result: $MANPAGE_TBL" >&5
echo "${ECHO_T}$MANPAGE_TBL" >&6
a3813 4
  *catonly*) # (vi
    cf_format=yes
    cf_inboth=no
    ;;
d3815 1
a3816 1
    cf_inboth=yes
d3819 1
a3820 1
    cf_inboth=no
d3825 1
a3825 17

cf_so_strip=
cf_compress=
case "$MANPAGE_FORMAT" in #(vi
*compress*) #(vi
	cf_so_strip="Z"
	cf_compress=compress
  ;;
*gzip*) #(vi
	cf_so_strip="gz"
	cf_compress=gzip
  ;;
esac

cf_edit_man=./edit_man.sh

cat >$cf_edit_man <<CF_EOF
d3827 1
a3827 2
# this script is generated by the configure-script CF_MAN_PAGES macro.

a3829 5

NCURSES_MAJOR="$NCURSES_MAJOR"
NCURSES_MINOR="$NCURSES_MINOR"
NCURSES_PATCH="$NCURSES_PATCH"

a3831 1

a3832 1

a3834 1

a3839 3
form=\$1
shift || exit 1

d3841 1
a3841 1
shift || exit 1
d3844 1
a3844 1
shift || exit 1
d3847 1
a3847 16
top_srcdir=\$srcdir/..
shift || exit 1

if test "\$form" = normal ; then
	if test "$cf_format" = yes ; then
	if test "$cf_inboth" = no ; then
		sh \$0 format \$verb \$mandir \$srcdir \$*
		exit $?
	fi
	fi
	cf_subdir=\$mandir/man
	cf_tables=$MANPAGE_TBL
else
	cf_subdir=\$mandir/cat
	cf_tables=yes
fi
a3848 1
# process the list of source-files
d3855 2
a3856 2
	if test ! -d \$cf_subdir\${section} ; then
		\$MKDIRS \$cf_subdir\$section
d3860 2
a3861 2
	cf_source=\`basename \$i\`
	inalias=\$cf_source
d3864 1
a3864 1
		echo .. skipped \$cf_source
d3868 3
a3870 4

if test "$MANPAGE_ALIASES" != no ; then
cat >>$cf_edit_man <<CF_EOF
	aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias | sort -u\`
d3875 1
a3875 1
cat >>$cf_edit_man <<CF_EOF
d3878 1
a3878 1
		cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
d3880 1
a3880 1
		cf_target=\$cf_subdir\${section}/\$cf_source
d3884 5
a3888 5
cat >>$cf_edit_man <<CF_EOF
	cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
	if test -z "\$cf_target" ; then
		echo '? missing rename for '\$cf_source
		cf_target="\$cf_source"
d3890 1
a3890 1
	cf_target="\$cf_subdir\${section}/\${cf_target}"
d3895 2
a3896 2

	for cf_name in  captoinfo clear infocmp infotocap tic toe tput
d3898 1
a3898 1
cat >>$cf_edit_man <<CF_EOF
d3902 2
a3903 2

cat >>$cf_edit_man <<CF_EOF
a3905 3
		-e "s,@@NCURSES_MAJOR@@,\$NCURSES_MAJOR," \\
		-e "s,@@NCURSES_MINOR@@,\$NCURSES_MINOR," \\
		-e "s,@@NCURSES_PATCH@@,\$NCURSES_PATCH," \\
d3908 2
a3909 2

	for cf_name in  captoinfo clear infocmp infotocap tic toe tput
d3912 1
a3912 1
cat >>$cf_edit_man <<CF_EOF
d3916 1
a3916 1

d3918 2
a3919 2
cat >>$cf_edit_man <<CF_EOF
		< \$i | sed -f `pwd`/edit_man.sed >\$TMP
d3922 1
a3922 1
cat >>$cf_edit_man <<CF_EOF
d3926 2
a3927 3

cat >>$cf_edit_man <<CF_EOF
if test \$cf_tables = yes ; then
d3930 1
a3931 2
CF_EOF

d3933 1
a3933 1
cat >>$cf_edit_man <<CF_EOF
d3938 14
a3951 5

cat >>$cf_edit_man <<CF_EOF
	if test \$form = format ; then
		nroff -man \$TMP >\$TMP.out
		mv \$TMP.out \$TMP
d3953 1
d3955 3
a3957 3

if test -n "$cf_compress" ; then
cat >>$cf_edit_man <<CF_EOF
d3959 1
a3959 1
	if ( $cf_compress -f \$TMP )
d3961 1
a3961 1
		mv \$TMP.$cf_so_strip \$TMP
d3964 1
a3964 1
	cf_target="\$cf_target.$cf_so_strip"
d3966 1
a3966 3
fi

case "$MANPAGE_FORMAT" in #(vi
d3968 3
a3970 5
cat >>$cf_edit_man <<CF_EOF
	if test \$form = format ; then
		# BSDI installs only .0 suffixes in the cat directories
		cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
	fi
d3974 2
a3975 3

cat >>$cf_edit_man <<CF_EOF
	suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
d3977 2
a3978 2
		echo \$verb \$cf_target
		\$INSTALL_DATA \$TMP \$cf_target
d3980 2
a3981 4
			cd \$cf_subdir\${section} && (
				cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
				test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
				cf_target=\`basename \$cf_target\`
d3988 8
a3995 18
					if test "$MANPAGE_SYMLINKS" = yes ; then
						if test -f \$cf_alias\${suffix} ; then
							if ( cmp -s \$cf_target \$cf_alias\${suffix} )
							then
								continue
							fi
						fi
						echo .. \$verb alias \$cf_alias\${suffix}
						rm -f \$cf_alias\${suffix}
						$LN_S \$cf_target \$cf_alias\${suffix}
					elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
						echo ".so \$cf_source" >\$TMP
CF_EOF
if test -n "$cf_compress" ; then
cat >>$cf_edit_man <<CF_EOF
						if test -n "$cf_so_strip" ; then
							$cf_compress -f \$TMP
							mv \$TMP.$cf_so_strip \$TMP
d3997 1
a3997 3
CF_EOF
fi
cat >>$cf_edit_man <<CF_EOF
d4000 1
a4000 1
						\$INSTALL_DATA \$TMP \$cf_alias\${suffix}
d4006 2
a4007 2
		echo \$verb \$cf_target
		rm -f \$cf_target
d4009 1
a4009 1
			cd \$cf_subdir\${section} && (
d4028 3
a4031 5
if test $cf_inboth = yes ; then
if test \$form != format ; then
	sh \$0 format \$verb \$mandir \$srcdir \$*
fi
fi
a4032 3
exit 0
CF_EOF
chmod 755 $cf_edit_man
d4036 1
d4038 2
a4039 2
echo "$as_me:8311: checking if you want to build with function extensions" >&5
echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
d4047 3
a4049 3
fi;
echo "$as_me:8321: result: $with_ext_funcs" >&5
echo "${ECHO_T}$with_ext_funcs" >&6
d4052 1
a4052 1
	cat >>confdefs.h <<\EOF
d4056 1
a4056 1
	cat >>confdefs.h <<\EOF
d4060 1
a4060 1
	cat >>confdefs.h <<\EOF
d4064 1
a4064 5
	cat >>confdefs.h <<\EOF
#define HAVE_RESIZE_TERM 1
EOF

	cat >>confdefs.h <<\EOF
d4068 1
a4068 1
	cat >>confdefs.h <<\EOF
d4072 1
a4072 1
	cat >>confdefs.h <<\EOF
d4080 1
d4082 2
a4083 2
echo "$as_me:8358: checking for extended use of const keyword" >&5
echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
d4091 3
a4093 3
fi;
echo "$as_me:8368: result: $with_ext_const" >&5
echo "${ECHO_T}$with_ext_const" >&6
d4099 3
a4101 2
echo "$as_me:8375: checking if you want \$NCURSES_NO_PADDING code" >&5
echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
a4108 36
fi;
echo "$as_me:8385: result: $with_no_padding" >&5
echo "${ECHO_T}$with_no_padding" >&6
test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
#define NCURSES_NO_PADDING 1
EOF

echo "$as_me:8391: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 8397 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

_ACEOF
if { (eval echo "$as_me:8405: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:8411: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
a4109 8
if test -z "$ac_cpp_err"; then
  ac_cv_header_stdc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_stdc=no
fi
rm -f conftest.err conftest.$ac_ext
d4111 3
a4113 141
if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 8433 "configure"
#include "confdefs.h"
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 8451 "configure"
#include "confdefs.h"
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 8472 "configure"
#include "confdefs.h"
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      $ac_main_return(2);
  $ac_main_return (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:8498: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8501: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:8503: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8506: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
fi
echo "$as_me:8519: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.

for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                  inttypes.h stdint.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:8535: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 8541 "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8547: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8550: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8553: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8556: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_Header=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:8566: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a4115 258
fi
done

echo "$as_me:8576: checking for signed char" >&5
echo $ECHO_N "checking for signed char... $ECHO_C" >&6
if test "${ac_cv_type_signed_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 8582 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((signed char *) 0)
  return 0;
if (sizeof (signed char))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8597: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8600: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8603: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8606: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_signed_char=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_signed_char=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:8616: result: $ac_cv_type_signed_char" >&5
echo "${ECHO_T}$ac_cv_type_signed_char" >&6

echo "$as_me:8619: checking size of signed char" >&5
echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
if test "${ac_cv_sizeof_signed_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_signed_char" = yes; then
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line 8628 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8640: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8643: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8646: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8649: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line 8654 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8666: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8669: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8672: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8675: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line 8691 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8703: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8706: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8709: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8712: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line 8728 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8740: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8743: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8746: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8749: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
ac_cv_sizeof_signed_char=$ac_lo
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:8762: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 8767 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (!f)
  $ac_main_return (1);
fprintf (f, "%d", (sizeof (signed char)));
fclose (f);
  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:8783: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8786: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:8788: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8791: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_signed_char=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_signed_char=0
fi
fi
echo "$as_me:8807: result: $ac_cv_sizeof_signed_char" >&5
echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
cat >>confdefs.h <<EOF
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
EOF

if test "$ac_cv_sizeof_signed_char" = 1 ; then
	NCURSES_SBOOL="signed char"
else
	NCURSES_SBOOL="char"
fi
echo "$as_me:8818: checking if you want to use signed Boolean array in term.h" >&5
echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6

# Check whether --enable-signed-char or --disable-signed-char was given.
if test "${enable_signed_char+set}" = set; then
  enableval="$enable_signed_char"
  with_signed_char=$enableval
else
  with_signed_char=no
fi;
echo "$as_me:8828: result: $with_signed_char" >&5
echo "${ECHO_T}$with_signed_char" >&6
test "$with_signed_char" != yes && NCURSES_SBOOL="char"
d4118 2
a4119 2
echo "$as_me:8833: checking if you want SIGWINCH handler" >&5
echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
d4127 4
a4130 4
fi;
echo "$as_me:8843: result: $with_sigwinch" >&5
echo "${ECHO_T}$with_sigwinch" >&6
test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
d4134 1
d4136 2
a4137 2
echo "$as_me:8850: checking if you want user-definable terminal capabilities like termcap" >&5
echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
d4145 3
a4147 3
fi;
echo "$as_me:8860: result: $with_tcap_names" >&5
echo "${ECHO_T}$with_tcap_names" >&6
d4151 1
d4155 2
a4156 2
echo "$as_me:8868: checking if you want all development code" >&5
echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
d4164 3
a4166 3
fi;
echo "$as_me:8878: result: $with_develop" >&5
echo "${ECHO_T}$with_develop" >&6
d4169 2
a4170 2
echo "$as_me:8882: checking if you want hard-tabs code" >&5
echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
d4175 10
d4186 7
d4194 6
a4199 6
  enable_hard_tabs=$with_develop
fi;
echo "$as_me:8892: result: $enable_hard_tabs" >&5
echo "${ECHO_T}$enable_hard_tabs" >&6
test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
#define USE_HARD_TABS 1
d4202 1
d4204 2
a4205 2
echo "$as_me:8899: checking if you want limited support for xmc" >&5
echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
d4210 4
d4215 2
a4216 6
else
  enable_xmc_glitch=$with_develop
fi;
echo "$as_me:8909: result: $enable_xmc_glitch" >&5
echo "${ECHO_T}$enable_xmc_glitch" >&6
test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
d4220 1
d4224 3
a4226 2
echo "$as_me:8918: checking if you do not want to assume colors are white-on-black" >&5
echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
d4234 4
a4237 4
fi;
echo "$as_me:8928: result: $with_assumed_color" >&5
echo "${ECHO_T}$with_assumed_color" >&6
test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
d4241 1
d4243 2
a4244 2
echo "$as_me:8935: checking if you want hashmap scrolling-optimization code" >&5
echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
d4252 4
a4255 4
fi;
echo "$as_me:8945: result: $with_hashmap" >&5
echo "${ECHO_T}$with_hashmap" >&6
test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
d4259 1
d4261 2
a4262 2
echo "$as_me:8952: checking if you want colorfgbg code" >&5
echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
a4269 37
fi;
echo "$as_me:8962: result: $with_colorfgbg" >&5
echo "${ECHO_T}$with_colorfgbg" >&6
test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
#define USE_COLORFGBG 1
EOF

###   use option --enable-ext-colors to turn on use of colors beyond 16.
echo "$as_me:8969: checking if you want to use experimental extended colors" >&5
echo $ECHO_N "checking if you want to use experimental extended colors... $ECHO_C" >&6

# Check whether --enable-ext-colors or --disable-ext-colors was given.
if test "${enable_ext_colors+set}" = set; then
  enableval="$enable_ext_colors"
  with_ext_colors=$enableval
else
  with_ext_colors=no
fi;
echo "$as_me:8979: result: $with_ext_colors" >&5
echo "${ECHO_T}$with_ext_colors" >&6
NCURSES_EXT_COLORS=0
if test "$with_ext_colors" = yes ; then
	if test "$with_widec" != yes ; then
		{ echo "$as_me:8984: WARNING: This option applies only to wide-character library" >&5
echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
	else
		# cannot be ABI 5 since it changes sizeof(cchar_t)

if test "${with_abi_version+set}" != set; then
	case $cf_cv_rel_version in
	5.*)
		cf_cv_rel_version=6.0
		cf_cv_abi_version=6
		{ echo "$as_me:8994: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
		;;
	esac
d4272 3
a4274 4
	fi
	NCURSES_EXT_COLORS=1
	cat >>confdefs.h <<\EOF
#define NCURSES_EXT_COLORS 1
a4276 31
fi

###   use option --enable-ext-mouse to modify coding to support 5-button mice
echo "$as_me:9009: checking if you want to use experimental extended mouse encoding" >&5
echo $ECHO_N "checking if you want to use experimental extended mouse encoding... $ECHO_C" >&6

# Check whether --enable-ext-mouse or --disable-ext-mouse was given.
if test "${enable_ext_mouse+set}" = set; then
  enableval="$enable_ext_mouse"
  with_ext_mouse=$enableval
else
  with_ext_mouse=no
fi;
echo "$as_me:9019: result: $with_ext_mouse" >&5
echo "${ECHO_T}$with_ext_mouse" >&6
NCURSES_MOUSE_VERSION=1
if test "$with_ext_mouse" = yes ; then
	NCURSES_MOUSE_VERSION=2

if test "${with_abi_version+set}" != set; then
	case $cf_cv_rel_version in
	5.*)
		cf_cv_rel_version=6.0
		cf_cv_abi_version=6
		{ echo "$as_me:9030: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
		;;
	esac
fi

fi
d4278 2
a4279 2
echo "$as_me:9038: checking if you want experimental safe-sprintf code" >&5
echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
d4287 4
a4290 4
fi;
echo "$as_me:9048: result: $with_safe_sprintf" >&5
echo "${ECHO_T}$with_safe_sprintf" >&6
test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
d4294 1
d4298 2
a4299 2
echo "$as_me:9057: checking if you want to experiment without scrolling-hints code" >&5
echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
a4306 7
fi;
echo "$as_me:9067: result: $with_scroll_hints" >&5
echo "${ECHO_T}$with_scroll_hints" >&6
test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
#define USE_SCROLL_HINTS 1
EOF

d4309 3
a4311 465
echo "$as_me:9075: checking if you want experimental wgetch-events code" >&5
echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6

# Check whether --enable-wgetch-events or --disable-wgetch-events was given.
if test "${enable_wgetch_events+set}" = set; then
  enableval="$enable_wgetch_events"
  with_wgetch_events=$enableval
else
  with_wgetch_events=no
fi;
echo "$as_me:9085: result: $with_wgetch_events" >&5
echo "${ECHO_T}$with_wgetch_events" >&6
test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
#define NCURSES_WGETCH_EVENTS 1
EOF

###############################################################################

###	use option --disable-echo to suppress full display compiling commands
echo "$as_me:9094: checking if you want to display full commands during build" >&5
echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6

# Check whether --enable-echo or --disable-echo was given.
if test "${enable_echo+set}" = set; then
  enableval="$enable_echo"
  with_echo=$enableval
else
  with_echo=yes
fi;
if test "$with_echo" = yes; then
	ECHO_LINK=
else
	ECHO_LINK='@@ echo linking $@@ ... ;'
	test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
fi
echo "$as_me:9110: result: $with_echo" >&5
echo "${ECHO_T}$with_echo" >&6

###	use option --enable-warnings to turn on all gcc warnings
echo "$as_me:9114: checking if you want to see compiler warnings" >&5
echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6

# Check whether --enable-warnings or --disable-warnings was given.
if test "${enable_warnings+set}" = set; then
  enableval="$enable_warnings"
  with_warnings=$enableval
fi;
echo "$as_me:9122: result: $with_warnings" >&5
echo "${ECHO_T}$with_warnings" >&6

if test -n "$with_warnings"; then
 	ADAFLAGS="$ADAFLAGS -gnatg"

INTEL_COMPILER=no

if test "$GCC" = yes ; then
	case $host_os in
	linux*|gnu*)
		echo "$as_me:9133: checking if this is really Intel C compiler" >&5
echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
		cf_save_CFLAGS="$CFLAGS"
		CFLAGS="$CFLAGS -no-gcc"
		cat >conftest.$ac_ext <<_ACEOF
#line 9138 "configure"
#include "confdefs.h"

int
main ()
{

#ifdef __INTEL_COMPILER
#else
make an error
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9155: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9158: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9161: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9164: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  INTEL_COMPILER=yes
cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		CFLAGS="$cf_save_CFLAGS"
		echo "$as_me:9175: result: $INTEL_COMPILER" >&5
echo "${ECHO_T}$INTEL_COMPILER" >&6
		;;
	esac
fi

cat > conftest.$ac_ext <<EOF
#line 9182 "configure"
int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
EOF

if test "$INTEL_COMPILER" = yes
then
# The "-wdXXX" options suppress warnings:
# remark #1419: external declaration in primary source file
# remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
# remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
# remark #193: zero used for undefined preprocessing identifier
# remark #593: variable "curs_sb_left_arrow" was set but never used
# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
# remark #869: parameter "tw" was never referenced
# remark #981: operands are evaluated in unspecified order
# warning #269: invalid format string conversion

	{ echo "$as_me:9200: checking for $CC warning options..." >&5
echo "$as_me: checking for $CC warning options..." >&6;}
	cf_save_CFLAGS="$CFLAGS"
	EXTRA_CFLAGS="-Wall"
	for cf_opt in  \
		wd1419 \
		wd1682 \
		wd1683 \
		wd1684 \
		wd193 \
		wd279 \
		wd593 \
		wd810 \
		wd869 \
		wd981
	do
		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
		if { (eval echo "$as_me:9217: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9220: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:9222: result: ... -$cf_opt" >&5
echo "${ECHO_T}... -$cf_opt" >&6
			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
		fi
	done
	CFLAGS="$cf_save_CFLAGS"

elif test "$GCC" = yes
then
	{ echo "$as_me:9231: checking for $CC warning options..." >&5
echo "$as_me: checking for $CC warning options..." >&6;}
	cf_save_CFLAGS="$CFLAGS"
	EXTRA_CFLAGS="-W -Wall"
	cf_warn_CONST=""
	test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
	for cf_opt in \
		Wbad-function-cast \
		Wcast-align \
		Wcast-qual \
		Winline \
		Wmissing-declarations \
		Wmissing-prototypes \
		Wnested-externs \
		Wpointer-arith \
		Wshadow \
		Wstrict-prototypes \
		Wundef $cf_warn_CONST
	do
		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
		if { (eval echo "$as_me:9251: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9254: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:9256: result: ... -$cf_opt" >&5
echo "${ECHO_T}... -$cf_opt" >&6
			case $cf_opt in #(vi
			Wcast-qual) #(vi
				CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
				;;
			Winline) #(vi
				case $GCC_VERSION in
				3.3*)
					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6

					continue;;
				esac
				;;
			esac
			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
		fi
	done
	CFLAGS="$cf_save_CFLAGS"
fi
rm -f conftest*

	if test "$cf_with_cxx" = yes ; then

INTEL_CPLUSPLUS=no

if test "$GCC" = yes ; then
	case $host_os in
	linux*|gnu*)
		echo "$as_me:9285: checking if this is really Intel C++ compiler" >&5
echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
		cf_save_CFLAGS="$CXXFLAGS"
		CXXFLAGS="$CXXFLAGS -no-gcc"
		cat >conftest.$ac_ext <<_ACEOF
#line 9290 "configure"
#include "confdefs.h"

int
main ()
{

#ifdef __INTEL_COMPILER
#else
make an error
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9307: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9310: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9313: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9316: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  INTEL_CPLUSPLUS=yes
cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		CXXFLAGS="$cf_save_CFLAGS"
		echo "$as_me:9327: result: $INTEL_CPLUSPLUS" >&5
echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
		;;
	esac
fi

ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

cat > conftest.$ac_ext <<EOF
#line 9341 "configure"
int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
EOF

if test "$INTEL_CPLUSPLUS" = yes
then
# The "-wdXXX" options suppress warnings:
# remark #1419: external declaration in primary source file
# remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
# remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
# remark #193: zero used for undefined preprocessing identifier
# remark #593: variable "curs_sb_left_arrow" was set but never used
# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
# remark #869: parameter "tw" was never referenced
# remark #981: operands are evaluated in unspecified order
# warning #269: invalid format string conversion

	{ echo "$as_me:9359: checking for $CC warning options..." >&5
echo "$as_me: checking for $CC warning options..." >&6;}
	cf_save_CXXFLAGS="$CXXFLAGS"
	EXTRA_CXXFLAGS="-Wall"
	for cf_opt in \
		wd1419 \
		wd1682 \
		wd1683 \
		wd1684 \
		wd193 \
		wd279 \
		wd593 \
		wd810 \
		wd869 \
		wd981
	do
		CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
		if { (eval echo "$as_me:9376: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9379: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:9381: result: ... -$cf_opt" >&5
echo "${ECHO_T}... -$cf_opt" >&6
			EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
		fi
	done
	CXXFLAGS="$cf_save_CXXFLAGS"

elif test "$GXX" = yes
then
	{ echo "$as_me:9390: checking for $CXX warning options..." >&5
echo "$as_me: checking for $CXX warning options..." >&6;}
	cf_save_CXXFLAGS="$CXXFLAGS"
	EXTRA_CXXFLAGS="-W -Wall"
	cf_gxx_extra_warnings=""
	test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
	case "$GCC_VERSION" in
	[1-2].*)
		;;
	*)
		cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
		;;
	esac
	for cf_opt in \
		Wabi \
		fabi-version=0 \
		Woverloaded-virtual \
		Wsign-promo \
		Wsynth \
		Wold-style-cast \
		Wcast-align \
		Wcast-qual \
		Wmissing-prototypes \
		Wpointer-arith \
		Wshadow \
		Wstrict-prototypes \
		Wundef $cf_gxx_extra_warnings Wno-unused
	do
		CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
		if { (eval echo "$as_me:9419: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9422: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:9424: result: ... -$cf_opt" >&5
echo "${ECHO_T}... -$cf_opt" >&6
			EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
		else
			test -n "$verbose" && echo "$as_me:9428: result: ... no -$cf_opt" >&5
echo "${ECHO_T}... no -$cf_opt" >&6
		fi
	done
	CXXFLAGS="$cf_save_CXXFLAGS"
fi

rm -f conftest*
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

	fi
fi

if test "$GCC" = yes
then
cat > conftest.i <<EOF
#ifndef GCC_PRINTF
#define GCC_PRINTF 0
#endif
#ifndef GCC_SCANF
#define GCC_SCANF 0
#endif
#ifndef GCC_NORETURN
#define GCC_NORETURN /* nothing */
#endif
#ifndef GCC_UNUSED
#define GCC_UNUSED /* nothing */
#endif
EOF
if test "$GCC" = yes
then
	{ echo "$as_me:9464: checking for $CC __attribute__ directives..." >&5
echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
cat > conftest.$ac_ext <<EOF
#line 9467 "configure"
#include "confdefs.h"
#include "conftest.h"
#include "conftest.i"
#if	GCC_PRINTF
#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
#else
#define GCC_PRINTFLIKE(fmt,var) /*nothing*/
#endif
#if	GCC_SCANF
#define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
#else
#define GCC_SCANFLIKE(fmt,var)  /*nothing*/
#endif
extern void wow(char *,...) GCC_SCANFLIKE(1,2);
extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
extern void foo(void) GCC_NORETURN;
int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
EOF
	for cf_attribute in scanf printf unused noreturn
	do

cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`

		cf_directive="__attribute__(($cf_attribute))"
		echo "checking for $CC $cf_directive" 1>&5
		case $cf_attribute in
		scanf|printf)
		cat >conftest.h <<EOF
#define GCC_$cf_ATTRIBUTE 1
EOF
			;;
		*)
		cat >conftest.h <<EOF
#define GCC_$cf_ATTRIBUTE $cf_directive
EOF
			;;
		esac
		if { (eval echo "$as_me:9505: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9508: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:9510: result: ... $cf_attribute" >&5
echo "${ECHO_T}... $cf_attribute" >&6
			cat conftest.h >>confdefs.h
		fi
	done
else
	fgrep define conftest.i >>confdefs.h
fi
rm -rf conftest*
fi

###	use option --enable-assertions to turn on generation of assertion code
echo "$as_me:9522: checking if you want to enable runtime assertions" >&5
echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6

# Check whether --enable-assertions or --disable-assertions was given.
if test "${enable_assertions+set}" = set; then
  enableval="$enable_assertions"
  with_assertions=$enableval
else
  with_assertions=no
fi;
echo "$as_me:9532: result: $with_assertions" >&5
echo "${ECHO_T}$with_assertions" >&6
if test -n "$GCC"
then
	if test "$with_assertions" = no
	then
		cat >>confdefs.h <<\EOF
#define NDEBUG 1
a4313 4
		CPPFLAGS="$CPPFLAGS -DNDEBUG"
	else
		ADAFLAGS="$ADAFLAGS -gnata"
	fi
d4316 6
a4321 1
###	use option --disable-leaks to suppress "permanent" leaks, for testing
d4323 7
a4329 2
echo "$as_me:9550: checking if you want to use dmalloc for testing" >&5
echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
d4331 5
a4335 5
# Check whether --with-dmalloc or --without-dmalloc was given.
if test "${with_dmalloc+set}" = set; then
  withval="$with_dmalloc"
  cat >>confdefs.h <<\EOF
#define USE_DMALLOC 1
d4338 18
a4355 15
	: ${with_cflags:=-g}
	: ${with_no_leaks:=yes}
	 with_dmalloc=yes
else
  with_dmalloc=
fi;
echo "$as_me:9566: result: ${with_dmalloc:-no}" >&5
echo "${ECHO_T}${with_dmalloc:-no}" >&6

case .$with_cflags in #(vi
.*-g*)
	case .$CFLAGS in #(vi
	.*-g*) #(vi
		;;
	*)
d4357 1
a4357 4
cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=
d4359 8
a4366 13
for cf_add_cflags in -g
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes
d4368 13
a4380 24
			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
d4382 6
a4387 1
	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
d4389 13
a4401 6
	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done
d4403 16
a4418 1
if test -n "$cf_new_cflags" ; then
a4419 1
	CFLAGS="$CFLAGS $cf_new_cflags"
d4422 1
a4422 1
if test -n "$cf_new_cppflags" ; then
d4424 4
a4427 2
	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi
d4429 1
a4429 3
if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
d4432 3
a4434 31
		;;
	esac
	;;
esac

if test "$with_dmalloc" = yes ; then
	echo "$as_me:9650: checking for dmalloc.h" >&5
echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
if test "${ac_cv_header_dmalloc_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9656 "configure"
#include "confdefs.h"
#include <dmalloc.h>
_ACEOF
if { (eval echo "$as_me:9660: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:9666: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
d4436 6
a4441 2
if test -z "$ac_cpp_err"; then
  ac_cv_header_dmalloc_h=yes
d4443 4
a4446 9
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_dmalloc_h=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:9685: result: $ac_cv_header_dmalloc_h" >&5
echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
if test $ac_cv_header_dmalloc_h = yes; then
d4448 11
a4458 4
echo "$as_me:9689: checking for dmalloc_debug in -ldmalloc" >&5
echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4460 5
a4464 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldmalloc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 9697 "configure"
d4467 4
a4470 3
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d4472 3
a4474 37
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dmalloc_debug ();
int
main ()
{
dmalloc_debug ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9716: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9719: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9722: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9725: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dmalloc_dmalloc_debug=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dmalloc_dmalloc_debug=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:9736: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
  cat >>confdefs.h <<EOF
#define HAVE_LIBDMALLOC 1
d4476 8
a4483 3

  LIBS="-ldmalloc $LIBS"

d4485 1
a4485 1

d4487 1
a4487 1

d4490 1
a4490 2
echo "$as_me:9751: checking if you want to use dbmalloc for testing" >&5
echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
d4492 3
a4494 5
# Check whether --with-dbmalloc or --without-dbmalloc was given.
if test "${with_dbmalloc+set}" = set; then
  withval="$with_dbmalloc"
  cat >>confdefs.h <<\EOF
#define USE_DBMALLOC 1
d4497 6
a4502 15
	: ${with_cflags:=-g}
	: ${with_no_leaks:=yes}
	 with_dbmalloc=yes
else
  with_dbmalloc=
fi;
echo "$as_me:9767: result: ${with_dbmalloc:-no}" >&5
echo "${ECHO_T}${with_dbmalloc:-no}" >&6

case .$with_cflags in #(vi
.*-g*)
	case .$CFLAGS in #(vi
	.*-g*) #(vi
		;;
	*)
d4504 1
a4504 4
cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=
d4506 4
a4509 13
for cf_add_cflags in -g
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes
a4510 24
			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
a4511 1
	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
a4512 6
	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done
d4514 2
a4515 1
if test -n "$cf_new_cflags" ; then
d4517 6
a4522 1
	CFLAGS="$CFLAGS $cf_new_cflags"
d4525 2
a4526 1
if test -n "$cf_new_cppflags" ; then
a4527 2
	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi
d4529 1
a4529 1
if test -n "$cf_new_extra_cppflags" ; then
a4530 2
	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi
d4532 3
a4534 4
		;;
	esac
	;;
esac
d4536 4
a4539 24
if test "$with_dbmalloc" = yes ; then
	echo "$as_me:9851: checking for dbmalloc.h" >&5
echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
if test "${ac_cv_header_dbmalloc_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9857 "configure"
#include "confdefs.h"
#include <dbmalloc.h>
_ACEOF
if { (eval echo "$as_me:9861: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:9867: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d4541 1
a4541 1
  ac_cpp_err=yes
d4543 3
a4545 2
if test -z "$ac_cpp_err"; then
  ac_cv_header_dbmalloc_h=yes
d4547 2
a4548 3
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_dbmalloc_h=no
d4550 11
a4560 1
rm -f conftest.err conftest.$ac_ext
a4561 3
echo "$as_me:9886: result: $ac_cv_header_dbmalloc_h" >&5
echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
if test $ac_cv_header_dbmalloc_h = yes; then
d4563 1
a4563 55
echo "$as_me:9890: checking for debug_malloc in -ldbmalloc" >&5
echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldbmalloc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 9898 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char debug_malloc ();
int
main ()
{
debug_malloc ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9917: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9920: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9923: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9926: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dbmalloc_debug_malloc=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dbmalloc_debug_malloc=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:9937: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
  cat >>confdefs.h <<EOF
#define HAVE_LIBDBMALLOC 1
EOF

  LIBS="-ldbmalloc $LIBS"
d4565 36
a4602 1
fi
d4606 44
a4649 2
echo "$as_me:9952: checking if you want to use valgrind for testing" >&5
echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
d4651 7
a4657 49
# Check whether --with-valgrind or --without-valgrind was given.
if test "${with_valgrind+set}" = set; then
  withval="$with_valgrind"
  cat >>confdefs.h <<\EOF
#define USE_VALGRIND 1
EOF

	: ${with_cflags:=-g}
	: ${with_no_leaks:=yes}
	 with_valgrind=yes
else
  with_valgrind=
fi;
echo "$as_me:9968: result: ${with_valgrind:-no}" >&5
echo "${ECHO_T}${with_valgrind:-no}" >&6

case .$with_cflags in #(vi
.*-g*)
	case .$CFLAGS in #(vi
	.*-g*) #(vi
		;;
	*)

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in -g
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
d4659 4
a4662 6
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
d4665 12
a4676 8
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
a4677 1
	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
d4679 3
a4681 6
	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done
d4683 6
a4688 3
if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
d4691 8
a4698 1
if test -n "$cf_new_cppflags" ; then
d4700 4
a4703 1
	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
d4706 1
a4706 12
if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

		;;
	esac
	;;
esac

echo "$as_me:10051: checking if you want to perform memory-leak testing" >&5
echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
d4711 1
a4711 9
  with_no_leaks=yes
else
  : ${with_no_leaks:=no}
fi;
echo "$as_me:10061: result: $with_no_leaks" >&5
echo "${ECHO_T}$with_no_leaks" >&6

if test "$with_no_leaks" = yes ; then
	cat >>confdefs.h <<\EOF
d4717 1
a4717 1
cat >>confdefs.h <<\EOF
d4721 1
d4727 1
a4727 1
  test "$enableval" = yes && cat >>confdefs.h <<\EOF
d4731 2
a4732 1
fi;
d4739 1
a4739 1
  test "$enableval" = no && cat >>confdefs.h <<\EOF
a4742 89
fi;

# Normally we only add trace() to the debug-library.  Allow this to be
# extended to all models of the ncurses library:
cf_all_traces=no
case "$CFLAGS $CPPFLAGS" in
*-DTRACE*)
	cf_all_traces=yes
	;;
esac

echo "$as_me:10106: checking whether to add trace feature to all models" >&5
echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6

# Check whether --with-trace or --without-trace was given.
if test "${with_trace+set}" = set; then
  withval="$with_trace"
  cf_with_trace=$withval
else
  cf_with_trace=$cf_all_traces
fi;
echo "$as_me:10116: result: $cf_with_trace" >&5
echo "${ECHO_T}$cf_with_trace" >&6

if test "$cf_with_trace" = yes ; then
	LIB_TRACING=all
	ADA_TRACE=TRUE

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in -DTRACE
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
a4744 9
if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

else
	LIB_TRACING=DEBUG
	ADA_TRACE=FALSE
fi
d4747 4
a4750 4
echo "$as_me:10197: checking for gettimeofday" >&5
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
if test "${ac_cv_func_gettimeofday+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4752 2
a4753 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10203 "configure"
d4756 1
a4756 1
    which can conflict with char gettimeofday (); below.  */
a4758 3
#ifdef __cplusplus
extern "C"
#endif
d4760 4
a4763 3
   builtin and then its argument prototype would still apply.  */
char gettimeofday ();
char (*f) ();
a4764 3
int
main ()
{
d4771 1
a4771 1
f = gettimeofday;
d4774 17
a4790 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10234: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10237: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10240: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10243: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_gettimeofday=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_gettimeofday=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:10253: result: $ac_cv_func_gettimeofday" >&5
echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
if test $ac_cv_func_gettimeofday = yes; then
  cat >>confdefs.h <<\EOF
d4795 1
d4797 6
a4802 4
echo "$as_me:10262: checking for gettimeofday in -lbsd" >&5
echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4804 1
a4804 1
  ac_check_lib_save_LIBS=$LIBS
d4806 2
a4807 2
cat >conftest.$ac_ext <<_ACEOF
#line 10270 "configure"
a4808 1

a4809 3
#ifdef __cplusplus
extern "C"
#endif
d4811 23
a4833 35
   builtin and then its argument prototype would still apply.  */
char gettimeofday ();
int
main ()
{
gettimeofday ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10289: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10292: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10295: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10298: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_bsd_gettimeofday=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_bsd_gettimeofday=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:10309: result: $ac_cv_lib_bsd_gettimeofday" >&5
echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
if test $ac_cv_lib_bsd_gettimeofday = yes; then
  cat >>confdefs.h <<\EOF
d4838 2
d4844 5
a4848 4
echo "$as_me:10321: checking if -lm needed for math functions" >&5
echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
if test "${cf_cv_need_libm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4850 3
a4852 3

	cat >conftest.$ac_ext <<_ACEOF
#line 10328 "configure"
d4857 58
d4916 8
a4923 21
int
main ()
{
double x = rand(); printf("result = %g\n", sin(x))
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10343: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10346: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10349: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10352: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_need_libm=no
d4925 4
a4928 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_need_libm=yes
d4930 3
a4932 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d4934 2
a4935 5
echo "$as_me:10362: result: $cf_cv_need_libm" >&5
echo "${ECHO_T}$cf_cv_need_libm" >&6
if test "$cf_cv_need_libm" = yes
then
MATH_LIB=-lm
d4938 7
a4944 5
###	Checks for header files.
echo "$as_me:10370: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4946 2
a4947 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10376 "configure"
d4953 6
a4958 19

_ACEOF
if { (eval echo "$as_me:10384: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:10390: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
d4961 2
a4962 1
  echo "$as_me: failed program was:" >&5
d4964 1
d4967 1
a4967 1
rm -f conftest.err conftest.$ac_ext
d4971 2
a4972 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10412 "configure"
d4975 1
a4975 2

_ACEOF
d4980 1
d4989 2
a4990 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10430 "configure"
d4993 1
a4993 2

_ACEOF
d4998 1
d5007 1
a5007 1
  if test "$cross_compiling" = yes; then
d5010 2
a5011 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10451 "configure"
d5014 6
a5019 9
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
d5021 3
a5023 23
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      $ac_main_return(2);
  $ac_main_return (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10477: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10480: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10482: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10485: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5026 4
a5029 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
d5031 1
a5031 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d5033 1
d5036 2
a5037 2
echo "$as_me:10498: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
d5039 1
a5039 2

cat >>confdefs.h <<\EOF
d5046 7
a5052 6
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
echo "$as_me:10511: checking for $ac_hdr that defines DIR" >&5
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5054 2
a5055 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10517 "configure"
d5059 20
a5078 35

int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10532: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10535: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10538: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10541: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_Header=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:10551: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d5080 3
a5082 2

ac_header_dirent=$ac_hdr; break
a5083 1

d5087 5
a5091 4
  echo "$as_me:10564: checking for opendir in -ldir" >&5
echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
if test "${ac_cv_lib_dir_opendir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5093 1
a5093 1
  ac_check_lib_save_LIBS=$LIBS
d5095 2
a5096 2
cat >conftest.$ac_ext <<_ACEOF
#line 10572 "configure"
a5097 1

a5098 3
#ifdef __cplusplus
extern "C"
#endif
d5100 22
a5121 34
   builtin and then its argument prototype would still apply.  */
char opendir ();
int
main ()
{
opendir ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10591: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10594: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10597: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10600: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dir_opendir=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dir_opendir=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:10611: result: $ac_cv_lib_dir_opendir" >&5
echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
if test $ac_cv_lib_dir_opendir = yes; then
d5123 2
d5128 5
a5132 4
  echo "$as_me:10618: checking for opendir in -lx" >&5
echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
if test "${ac_cv_lib_x_opendir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5134 1
a5134 1
  ac_check_lib_save_LIBS=$LIBS
d5136 2
a5137 2
cat >conftest.$ac_ext <<_ACEOF
#line 10626 "configure"
a5138 1

a5139 3
#ifdef __cplusplus
extern "C"
#endif
d5141 22
a5162 34
   builtin and then its argument prototype would still apply.  */
char opendir ();
int
main ()
{
opendir ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10645: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10648: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10651: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10654: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_x_opendir=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_x_opendir=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:10665: result: $ac_cv_lib_x_opendir" >&5
echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
if test $ac_cv_lib_x_opendir = yes; then
d5164 2
d5170 4
a5173 4
echo "$as_me:10673: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5175 2
a5176 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10679 "configure"
d5181 6
a5186 22

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10695: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10698: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10701: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10704: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5189 4
a5192 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_time=no
d5194 1
a5194 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5196 2
a5197 2
echo "$as_me:10714: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
d5199 1
a5199 2

cat >>confdefs.h <<\EOF
d5205 5
a5209 4
echo "$as_me:10724: checking for regular-expression headers" >&5
echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
if test "${cf_cv_regex+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5211 3
a5213 3

cat >conftest.$ac_ext <<_ACEOF
#line 10731 "configure"
d5217 1
a5217 3
int
main ()
{
d5223 5
a5227 17

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10749: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10752: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10755: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10758: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5230 6
a5235 5
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
#line 10766 "configure"
d5238 1
a5238 3
int
main ()
{
d5242 5
a5246 17

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10781: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10784: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10787: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10790: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5249 4
a5252 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

d5255 2
a5256 2
		cat >conftest.$ac_ext <<_ACEOF
#line 10800 "configure"
d5259 1
a5259 3
int
main ()
{
d5263 5
a5267 17

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10815: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10818: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10821: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10824: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5270 4
a5273 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
LIBS="$cf_save_LIBS"
d5275 1
a5275 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5277 1
a5277 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5279 1
a5279 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5283 1
a5283 2
echo "$as_me:10840: result: $cf_cv_regex" >&5
echo "${ECHO_T}$cf_cv_regex" >&6
d5285 1
a5285 1
	regex.h)   cat >>confdefs.h <<\EOF
d5289 1
a5289 1
	regexp.h)  cat >>confdefs.h <<\EOF
d5293 1
a5293 1
	regexpr.h) cat >>confdefs.h <<\EOF
d5299 2
a5300 1
for ac_header in \
d5303 1
a5315 1
wctype.h \
d5318 5
a5322 24
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:10876: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10882 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:10886: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:10892: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d5324 11
a5334 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
d5336 2
a5337 1
  echo "$as_me: failed program was:" >&5
d5339 2
a5340 1
  eval "$as_ac_Header=no"
d5342 1
a5342 1
rm -f conftest.err conftest.$ac_ext
d5344 5
a5348 5
echo "$as_me:10911: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d5350 3
a5352 1

d5356 1
d5360 5
a5364 5

echo "$as_me:10925: checking for main in -lcposix" >&5
echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
if test "${ac_cv_lib_cposix_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5366 1
a5366 1
  ac_check_lib_save_LIBS=$LIBS
d5368 2
a5369 2
cat >conftest.$ac_ext <<_ACEOF
#line 10933 "configure"
d5372 23
a5394 34
int
main ()
{
main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10945: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10948: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10951: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10954: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_cposix_main=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_cposix_main=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:10965: result: $ac_cv_lib_cposix_main" >&5
echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
if test $ac_cv_lib_cposix_main = yes; then
  cat >>confdefs.h <<EOF
#define HAVE_LIBCPOSIX 1
d5399 2
d5403 5
a5407 4
	echo "$as_me:10976: checking for bzero in -linet" >&5
echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
if test "${ac_cv_lib_inet_bzero+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5409 1
a5409 1
  ac_check_lib_save_LIBS=$LIBS
d5411 2
a5412 2
cat >conftest.$ac_ext <<_ACEOF
#line 10984 "configure"
a5413 1

a5414 3
#ifdef __cplusplus
extern "C"
#endif
d5416 22
a5437 34
   builtin and then its argument prototype would still apply.  */
char bzero ();
int
main ()
{
bzero ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11003: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11006: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11009: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11012: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_inet_bzero=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_inet_bzero=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:11023: result: $ac_cv_lib_inet_bzero" >&5
echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
if test $ac_cv_lib_inet_bzero = yes; then
d5439 2
d5444 5
a5448 4
echo "$as_me:11030: checking if sys/time.h works with sys/select.h" >&5
echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
if test "${cf_cv_sys_time_select+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5450 3
a5452 3

cat >conftest.$ac_ext <<_ACEOF
#line 11037 "configure"
d5463 1
a5463 3
int
main ()
{
d5465 4
a5468 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11057: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11060: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11063: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11066: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5471 4
a5474 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_sys_time_select=no
d5476 2
a5477 2
rm -f conftest.$ac_objext conftest.$ac_ext

d5480 2
a5481 3
echo "$as_me:11078: result: $cf_cv_sys_time_select" >&5
echo "${ECHO_T}$cf_cv_sys_time_select" >&6
test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
d5485 2
d5489 1
d5491 8
a5498 100
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

echo "$as_me:11092: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
if test "${ac_cv_prog_cc_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_prog_cc_stdc=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
#line 11100 "configure"
#include "confdefs.h"
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX			-qlanglvl=ansi
# Ultrix and OSF/1	-std1
# HP-UX 10.20 and later	-Ae
# HP-UX older versions	-Aa -D_HPUX_SOURCE
# SVR4			-Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
if { (eval echo "$as_me:11149: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11152: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11155: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11158: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_stdc=$ac_arg
break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
done
rm -f conftest.$ac_ext conftest.$ac_objext
CC=$ac_save_CC

fi

case "x$ac_cv_prog_cc_stdc" in
  x|xno)
    echo "$as_me:11175: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;;
  *)
    echo "$as_me:11178: result: $ac_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    CC="$CC $ac_cv_prog_cc_stdc" ;;
esac

echo "$as_me:11183: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5500 2
a5501 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11189 "configure"
d5504 1
a5504 49
int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
#endif
d5506 40
a5545 2
  ;
  return 0;
d5547 5
a5551 13
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11247: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11250: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11253: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11256: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5554 4
a5557 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_const=no
d5559 1
a5559 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5561 2
a5562 2
echo "$as_me:11266: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
d5564 2
a5565 3

cat >>confdefs.h <<\EOF
#define const
d5570 4
a5573 4
echo "$as_me:11276: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5577 2
a5578 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11284 "configure"
a5579 4
#ifndef __cplusplus
static $ac_kw int static_foo () {return 0; }
$ac_kw int foo () {return 0; }
#endif
d5581 6
a5586 13
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11293: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11296: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11299: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11302: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5589 2
a5590 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5592 1
a5592 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5596 3
a5598 3
echo "$as_me:11313: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
d5600 2
a5601 3
  no)
cat >>confdefs.h <<\EOF
#define inline
d5604 1
a5604 1
  *)  cat >>confdefs.h <<EOF
d5610 1
a5610 3
NCURSES_INLINE=
if test "$ac_cv_c_inline" != no ; then
	cat >>confdefs.h <<\EOF
d5614 27
a5640 1
	NCURSES_INLINE=inline
d5643 1
a5643 1
if test $NCURSES_CHTYPE = auto ; then
d5645 6
a5650 4
echo "$as_me:11339: checking for type of chtype" >&5
echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
if test "${cf_cv_typeof_chtype+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5652 1
a5652 1

d5656 2
a5657 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11349 "configure"
d5660 4
d5665 1
d5672 8
d5682 1
a5682 1
			unsigned int x, y;
d5684 1
a5684 2
				x = (1 << n);
				y = (x >> n);
d5699 1
a5699 1
	${cf_cv_main_return:-return}(0);
d5701 4
a5704 13

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11384: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11387: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11389: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11392: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5707 4
a5710 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_typeof_chtype=long
d5712 1
a5712 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d5714 1
d5716 1
a5716 12

fi

echo "$as_me:11407: result: $cf_cv_typeof_chtype" >&5
echo "${ECHO_T}$cf_cv_typeof_chtype" >&6

cat >>confdefs.h <<EOF
#define TYPEOF_CHTYPE $cf_cv_typeof_chtype
EOF

else
	cf_cv_typeof_chtype=$NCURSES_CHTYPE
d5719 1
a5719 9
echo "$as_me:11418: checking if unsigned literals are legal" >&5
echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
if test "${cf_cv_unsigned_literals+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 11425 "configure"
#include "confdefs.h"
a5720 27
int
main ()
{
long x = 1L + 1UL + 1U + 1
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11437: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11440: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11443: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11446: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_unsigned_literals=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_unsigned_literals=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
d5722 3
a5724 1
fi
a5725 2
echo "$as_me:11458: result: $cf_cv_unsigned_literals" >&5
echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
d5731 2
a5732 5
if test $NCURSES_MMASK_T = auto ; then
	cf_cv_typeof_mmask_t=long
else
	cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
fi
a5735 5
echo "$as_me:11473: checking if external errno is declared" >&5
echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
if test "${cf_cv_dcl_errno+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d5737 8
a5744 2
    cat >conftest.$ac_ext <<_ACEOF
#line 11480 "configure"
d5752 2
a5753 4
#include <errno.h>
int
main ()
{
d5755 4
a5758 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11498: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11501: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11504: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11507: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5761 4
a5764 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_dcl_errno=no
d5766 1
a5766 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5769 2
a5770 2
echo "$as_me:11518: result: $cf_cv_dcl_errno" >&5
echo "${ECHO_T}$cf_cv_dcl_errno" >&6
d5773 1
a5773 1

d5776 1
a5776 1
    cat >>confdefs.h <<EOF
d5784 8
a5791 8
echo "$as_me:11533: checking if external errno exists" >&5
echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
if test "${cf_cv_have_errno+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    cat >conftest.$ac_ext <<_ACEOF
#line 11540 "configure"
d5797 1
a5797 3
int
main ()
{
d5799 4
a5802 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11555: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11558: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11561: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11564: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5805 4
a5808 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_have_errno=no
d5810 1
a5810 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5813 2
a5814 2
echo "$as_me:11575: result: $cf_cv_have_errno" >&5
echo "${ECHO_T}$cf_cv_have_errno" >&6
d5817 1
a5817 1

d5820 1
a5820 1
    cat >>confdefs.h <<EOF
d5826 8
a5833 4
echo "$as_me:11588: checking if data-only library module links" >&5
echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
if test "${cf_cv_link_dataonly+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5835 1
a5835 1

d5838 1
a5838 1
#line 11596 "configure"
d5841 1
a5841 5
	if { (eval echo "$as_me:11599: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11602: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
d5847 1
a5847 1
#line 11609 "configure"
d5851 1
a5851 1
	${cf_cv_main_return:-return}(1);	/* I'm told this linker is broken */
d5860 1
a5860 5
	if { (eval echo "$as_me:11622: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11625: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d5865 1
a5865 1
	( eval $RANLIB conftest.a ) 2>&5 >/dev/null
d5871 2
a5872 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11638 "configure"
d5878 1
a5878 1
		${cf_cv_main_return:-return} (!testfunc());
d5880 4
a5883 13

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11649: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11652: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11654: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11657: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5886 4
a5889 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_link_dataonly=no
d5891 1
a5891 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d5893 1
d5895 1
a5895 1

d5898 1
a5898 2
echo "$as_me:11672: result: $cf_cv_link_dataonly" >&5
echo "${ECHO_T}$cf_cv_link_dataonly" >&6
d5901 1
a5901 1
	cat >>confdefs.h <<\EOF
d5908 2
a5910 1

d5917 2
d5934 4
a5937 5
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:11707: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5939 2
a5940 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11713 "configure"
d5943 1
a5943 1
    which can conflict with char $ac_func (); below.  */
a5945 3
#ifdef __cplusplus
extern "C"
#endif
d5947 4
a5950 3
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a5951 3
int
main ()
{
d5958 1
a5958 1
f = $ac_func;
d5961 1
a5961 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11744: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11747: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11750: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11753: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:11763: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d5963 11
d5975 9
d5988 5
a5992 5

echo "$as_me:11775: checking for terminal-capability database functions" >&5
echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
if test "${cf_cv_cgetent+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5994 3
a5996 3

cat >conftest.$ac_ext <<_ACEOF
#line 11782 "configure"
d6000 1
a6000 3
int
main ()
{
d6008 5
a6012 17

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11802: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11805: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11808: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11811: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6015 4
a6018 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_cgetent=no
d6020 1
a6020 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6024 2
a6025 3
echo "$as_me:11823: result: $cf_cv_cgetent" >&5
echo "${ECHO_T}$cf_cv_cgetent" >&6
test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
d6029 1
a6031 5
echo "$as_me:11831: checking for isascii" >&5
echo $ECHO_N "checking for isascii... $ECHO_C" >&6
if test "${cf_cv_have_isascii+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d6033 8
a6040 2
	cat >conftest.$ac_ext <<_ACEOF
#line 11838 "configure"
d6043 1
a6043 3
int
main ()
{
d6045 4
a6048 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11850: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11853: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11856: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11859: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6051 4
a6054 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_have_isascii=no
d6056 1
a6056 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6059 2
a6060 3
echo "$as_me:11870: result: $cf_cv_have_isascii" >&5
echo "${ECHO_T}$cf_cv_have_isascii" >&6
test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
d6064 2
d6067 4
a6070 4
echo "$as_me:11877: checking whether sigaction needs _POSIX_SOURCE" >&5
echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line 11880 "configure"
d6075 1
a6075 3
int
main ()
{
d6077 4
a6080 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11894: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11897: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11900: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11903: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6083 6
a6088 5
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line 11911 "configure"
d6094 1
a6094 3
int
main ()
{
d6096 4
a6099 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11926: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11929: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11932: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11935: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6101 1
a6101 1
	 cat >>confdefs.h <<\EOF
d6106 4
a6109 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
sigact_bad=unknown
d6111 1
a6111 60
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:11950: result: $sigact_bad" >&5
echo "${ECHO_T}$sigact_bad" >&6
fi

echo "$as_me:11954: checking if nanosleep really works" >&5
echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
if test "${cf_cv_func_nanosleep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test "$cross_compiling" = yes; then
  cf_cv_func_nanosleep=unknown
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11964 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <errno.h>
#include <time.h>

#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif

int main() {
	struct timespec ts1, ts2;
	int code;
	ts1.tv_sec  = 0;
	ts1.tv_nsec = 750000000;
	ts2.tv_sec  = 0;
	ts2.tv_nsec = 0;
	errno = 0;
	code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
	${cf_cv_main_return:-return}(code != 0);
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11989: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11992: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11994: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11997: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_func_nanosleep=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_func_nanosleep=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d6113 2
a6115 2
echo "$as_me:12009: result: $cf_cv_func_nanosleep" >&5
echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
a6116 3
test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
#define HAVE_NANOSLEEP 1
EOF
d6118 1
a6118 1
for ac_header in \
d6124 5
a6128 24
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:12023: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12029 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:12033: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:12039: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d6130 11
a6140 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
d6142 2
a6143 1
  echo "$as_me: failed program was:" >&5
d6145 2
a6146 1
  eval "$as_ac_Header=no"
d6148 1
a6148 1
rm -f conftest.err conftest.$ac_ext
d6150 5
a6154 5
echo "$as_me:12058: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d6156 3
a6158 1

d6163 1
a6163 2

for ac_header in sys/termio.h
d6165 5
a6169 24
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:12073: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12079 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:12083: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:12089: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d6171 11
a6181 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
d6183 2
a6184 1
  echo "$as_me: failed program was:" >&5
d6186 2
a6187 1
  eval "$as_ac_Header=no"
d6189 1
a6189 1
rm -f conftest.err conftest.$ac_ext
d6191 5
a6195 5
echo "$as_me:12108: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d6197 3
a6199 1

d6211 4
a6214 4
	echo "$as_me:12126: checking whether termios.h needs _POSIX_SOURCE" >&5
echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
	cat >conftest.$ac_ext <<_ACEOF
#line 12129 "configure"
d6217 1
a6217 3
int
main ()
{
d6219 4
a6222 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12141: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12144: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12147: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12150: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6225 6
a6230 5
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

		cat >conftest.$ac_ext <<_ACEOF
#line 12158 "configure"
d6235 1
a6235 3
int
main ()
{
d6237 4
a6240 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12172: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12175: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12178: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12181: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6243 4
a6246 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
termios_bad=yes cat >>confdefs.h <<\EOF
d6251 2
a6252 2
rm -f conftest.$ac_objext conftest.$ac_ext

d6254 2
a6255 3
rm -f conftest.$ac_objext conftest.$ac_ext
	echo "$as_me:12196: result: $termios_bad" >&5
echo "${ECHO_T}$termios_bad" >&6
d6259 6
a6264 4
echo "$as_me:12201: checking for tcgetattr" >&5
echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
if test "${cf_cv_have_tcgetattr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6266 3
a6268 3

cat >conftest.$ac_ext <<_ACEOF
#line 12208 "configure"
d6285 1
a6285 3
int
main ()
{
d6289 4
a6292 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12236: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12239: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12242: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12245: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6295 10
a6304 9
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_have_tcgetattr=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12255: result: $cf_cv_have_tcgetattr" >&5
echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
d6308 6
a6313 4
echo "$as_me:12261: checking for vsscanf function or workaround" >&5
echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
if test "${cf_cv_func_vsscanf+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6315 3
a6317 3

cat >conftest.$ac_ext <<_ACEOF
#line 12268 "configure"
d6322 1
a6322 3
int
main ()
{
d6326 4
a6329 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12284: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12287: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12290: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12293: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6332 6
a6337 5
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line 12301 "configure"
d6342 1
a6342 3
int
main ()
{
d6352 4
a6355 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12323: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12326: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12329: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12332: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6358 6
a6363 5
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line 12340 "configure"
d6368 1
a6368 3
int
main ()
{
d6378 4
a6381 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12362: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12365: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12368: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12371: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6384 4
a6387 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

d6390 1
a6390 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6392 1
a6392 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6394 1
a6394 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6396 2
a6397 2
echo "$as_me:12386: result: $cf_cv_func_vsscanf" >&5
echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
d6400 1
a6400 1
vsscanf) cat >>confdefs.h <<\EOF
d6404 1
a6404 1
vfscanf) cat >>confdefs.h <<\EOF
d6408 1
a6408 1
_doscan) cat >>confdefs.h <<\EOF
d6414 6
a6419 4
echo "$as_me:12404: checking for working mkstemp" >&5
echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
if test "${cf_cv_func_mkstemp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6421 1
a6421 1

d6424 4
a6427 4
  echo "$as_me:12412: checking for mkstemp" >&5
echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6429 2
a6430 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12418 "configure"
d6433 1
a6433 1
    which can conflict with char mkstemp (); below.  */
a6435 3
#ifdef __cplusplus
extern "C"
#endif
d6437 4
a6440 3
   builtin and then its argument prototype would still apply.  */
char mkstemp ();
char (*f) ();
a6441 3
int
main ()
{
d6448 1
a6448 1
f = mkstemp;
d6451 12
a6462 21
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12449: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12452: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12455: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12458: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_mkstemp=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_mkstemp=no
d6464 6
a6469 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6471 1
a6471 2
echo "$as_me:12468: result: $ac_cv_func_mkstemp" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
d6474 2
a6475 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12473 "configure"
d6508 1
a6508 1
	${cf_cv_main_return:-return}(result);
d6511 3
a6513 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12511: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12514: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12516: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12519: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6517 4
a6520 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_func_mkstemp=no
d6523 1
a6523 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d6526 1
d6528 2
a6529 2
echo "$as_me:12534: result: $cf_cv_func_mkstemp" >&5
echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
d6531 1
a6531 1
	cat >>confdefs.h <<\EOF
d6537 1
a6538 1

d6545 1
d6547 1
a6547 2
	{ echo "$as_me:12552: WARNING: cross compiling: assume setvbuf params not reversed" >&5
echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
d6549 4
a6552 4
	echo "$as_me:12555: checking whether setvbuf arguments are reversed" >&5
echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6555 1
a6555 3
  { { echo "$as_me:12561: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d6557 2
a6558 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12566 "configure"
d6562 1
a6562 3
int
main ()
{
d6567 1
a6567 1
    $ac_main_return(1);
d6569 1
a6569 1
  $ac_main_return(0);			/* Non-reversed systems segv here.  */
d6571 3
a6573 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12583: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12586: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12588: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12591: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6576 4
a6579 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_setvbuf_reversed=no
d6581 1
a6581 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d6583 1
d6586 2
a6587 2
echo "$as_me:12604: result: $ac_cv_func_setvbuf_reversed" >&5
echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
d6589 1
a6589 2

cat >>confdefs.h <<\EOF
d6596 4
a6599 4
echo "$as_me:12615: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6601 2
a6602 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12621 "configure"
d6607 1
a6607 1
# undef signal
d6615 1
a6615 3
int
main ()
{
d6617 4
a6620 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12643: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12646: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12649: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12652: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6623 4
a6626 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_signal=int
d6628 1
a6628 1
rm -f conftest.$ac_objext conftest.$ac_ext
a6629 2
echo "$as_me:12662: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6
d6631 2
a6632 1
cat >>confdefs.h <<EOF
a6635 5
echo "$as_me:12669: checking for type sigaction_t" >&5
echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
if test "${cf_cv_type_sigaction+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d6637 9
a6645 2
	cat >conftest.$ac_ext <<_ACEOF
#line 12676 "configure"
d6649 1
a6649 3
int
main ()
{
d6651 4
a6654 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12689: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12692: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12695: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12698: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6657 4
a6660 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_type_sigaction=no
d6662 1
a6662 1
rm -f conftest.$ac_objext conftest.$ac_ext
d6665 2
a6666 3
echo "$as_me:12709: result: $cf_cv_type_sigaction" >&5
echo "${ECHO_T}$cf_cv_type_sigaction" >&6
test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
d6670 7
a6676 4
echo "$as_me:12715: checking declaration of size-change" >&5
echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
if test "${cf_cv_sizechange+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6678 1
a6678 1

d6687 2
a6688 2
    cat >conftest.$ac_ext <<_ACEOF
#line 12730 "configure"
d6709 1
a6709 3
int
main ()
{
d6724 5
a6728 17

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12774: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12777: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12780: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12783: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6731 4
a6734 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_sizechange=no
d6736 1
a6736 1
rm -f conftest.$ac_objext conftest.$ac_ext
d6747 2
a6748 2
echo "$as_me:12802: result: $cf_cv_sizechange" >&5
echo "${ECHO_T}$cf_cv_sizechange" >&6
d6750 1
a6750 1
	cat >>confdefs.h <<\EOF
d6756 1
a6756 1
		cat >>confdefs.h <<EOF
d6764 5
a6768 4
echo "$as_me:12819: checking for memmove" >&5
echo $ECHO_N "checking for memmove... $ECHO_C" >&6
if test "${ac_cv_func_memmove+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6770 2
a6771 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12825 "configure"
d6774 1
a6774 1
    which can conflict with char memmove (); below.  */
a6776 3
#ifdef __cplusplus
extern "C"
#endif
d6778 4
a6781 3
   builtin and then its argument prototype would still apply.  */
char memmove ();
char (*f) ();
a6782 3
int
main ()
{
d6789 16
a6804 2
f = memmove;
#endif
d6806 2
a6807 27
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12856: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12859: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12862: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12865: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_memmove=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_memmove=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12875: result: $ac_cv_func_memmove" >&5
echo "${ECHO_T}$ac_cv_func_memmove" >&6
if test $ac_cv_func_memmove = yes; then
d6810 1
d6812 4
a6815 4
echo "$as_me:12881: checking for bcopy" >&5
echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
if test "${ac_cv_func_bcopy+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6817 2
a6818 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12887 "configure"
d6821 1
a6821 1
    which can conflict with char bcopy (); below.  */
a6823 3
#ifdef __cplusplus
extern "C"
#endif
d6825 4
a6828 3
   builtin and then its argument prototype would still apply.  */
char bcopy ();
char (*f) ();
a6829 3
int
main ()
{
d6836 1
a6836 1
f = bcopy;
d6839 5
a6843 32
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12918: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12921: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12924: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12927: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_bcopy=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_bcopy=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12937: result: $ac_cv_func_bcopy" >&5
echo "${ECHO_T}$ac_cv_func_bcopy" >&6
if test $ac_cv_func_bcopy = yes; then

	echo "$as_me:12941: checking if bcopy does overlapping moves" >&5
echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
if test "${cf_cv_good_bcopy+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6845 7
d6853 9
d6865 2
a6866 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12951 "configure"
d6875 1
a6875 1
	${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
d6877 4
a6880 13

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12965: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12968: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12970: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12973: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6883 4
a6886 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_good_bcopy=no
d6888 1
a6888 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d6891 1
a6892 2
echo "$as_me:12986: result: $cf_cv_good_bcopy" >&5
echo "${ECHO_T}$cf_cv_good_bcopy" >&6
d6894 2
d6897 2
a6898 1
  cf_cv_good_bcopy=no
d6902 1
a6902 1
		cat >>confdefs.h <<\EOF
d6907 1
a6907 1
		cat >>confdefs.h <<\EOF
d6915 5
a6919 4
echo "$as_me:13007: checking if poll really works" >&5
echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
if test "${cf_cv_working_poll+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6921 1
a6921 1

d6925 2
a6926 2
  cat >conftest.$ac_ext <<_ACEOF
#line 13017 "configure"
d6943 1
a6943 1
	${cf_cv_main_return:-return}(ret != 0);
d6945 3
a6947 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:13038: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13041: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:13043: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13046: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6950 4
a6953 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_working_poll=no
d6955 1
a6955 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d6957 1
d6959 3
a6961 3
echo "$as_me:13058: result: $cf_cv_working_poll" >&5
echo "${ECHO_T}$cf_cv_working_poll" >&6
test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
a6964 102
if test "$with_hashed_db" != no ; then
	cat >>confdefs.h <<\EOF
#define USE_HASHED_DB 1
EOF

echo "$as_me:13069: checking for db.h" >&5
echo $ECHO_N "checking for db.h... $ECHO_C" >&6
if test "${ac_cv_header_db_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13075 "configure"
#include "confdefs.h"
#include <db.h>
_ACEOF
if { (eval echo "$as_me:13079: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:13085: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_db_h=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_db_h=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:13104: result: $ac_cv_header_db_h" >&5
echo "${ECHO_T}$ac_cv_header_db_h" >&6
if test $ac_cv_header_db_h = yes; then

echo "$as_me:13108: checking for version of db" >&5
echo $ECHO_N "checking for version of db... $ECHO_C" >&6
if test "${cf_cv_hashed_db_version+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_hashed_db_version=unknown

for cf_db_version in 1 2 3 4
do

echo "(line 13119) testing checking for db version $cf_db_version ..." 1>&5

	cat >conftest.$ac_ext <<_ACEOF
#line 13122 "configure"
#include "confdefs.h"

$ac_includes_default
#include <db.h>

#ifdef DB_VERSION_MAJOR
	/* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
#if $cf_db_version == DB_VERSION_MAJOR
	/* ok */
#else
	make an error
#endif
#else
#if $cf_db_version == 1
	/* ok: assuming this is DB 1.8.5 */
#else
	make an error
#endif
#endif

int
main ()
{
DBT *foo = 0
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13152: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13155: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13158: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13161: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

	cf_cv_hashed_db_version=$cf_db_version
	break
a6965 6
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
d6967 3
a6970 2
echo "$as_me:13175: result: $cf_cv_hashed_db_version" >&5
echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
a6971 5
if test "$cf_cv_hashed_db_version" = unknown ; then
	{ { echo "$as_me:13179: error: Cannot determine version of db" >&5
echo "$as_me: error: Cannot determine version of db" >&2;}
   { (exit 1); exit 1; }; }
else
d6973 5
a6977 4
echo "$as_me:13184: checking for db libraries" >&5
echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
if test "${cf_cv_hashed_db_libs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6979 2
a6980 13

cf_cv_hashed_db_libs=unknown
for cf_db_libs in db$cf_cv_hashed_db_version db ''
do
	cf_save_libs="$LIBS"
	if test -n "$cf_db_libs"; then
		LIBS="-l$cf_db_libs $LIBS"
	fi

echo "(line 13198) testing checking for library "$cf_db_libs" ..." 1>&5

	cat >conftest.$ac_ext <<_ACEOF
#line 13201 "configure"
d6982 8
a6989 73

$ac_includes_default
#include <db.h>

int
main ()
{

	char *path = "/tmp/foo";
#ifdef DB_VERSION_MAJOR
#if DB_VERSION_MAJOR >= 4
	DB *result = 0;
	db_create(&result, NULL, 0);
	result->open(result,
		NULL,
		path,
		path,
		DB_HASH,
		DB_CREATE,
		0644);
#elif DB_VERSION_MAJOR >= 3
	DB *result = 0;
	db_create(&result, NULL, 0);
	result->open(result,
		path,
		path,
		DB_HASH,
		DB_CREATE,
		0644);
#elif DB_VERSION_MAJOR >= 2
	DB *result = 0;
	db_open(path,
		DB_HASH,
		DB_CREATE,
		0644,
		(DB_ENV *) 0,
		(DB_INFO *) 0,
		&result);
#endif /* DB_VERSION_MAJOR */
#else
	DB *result = dbopen(path,
		     2,
		     0644,
		     DB_HASH,
		     0);
#endif
	${cf_cv_main_return:-return}(result != 0)

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13256: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13259: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13262: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13265: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

	if test -n "$cf_db_libs" ; then
		cf_cv_hashed_db_libs=$cf_db_libs
	else
		cf_cv_hashed_db_libs=default
	fi
	LIBS="$cf_save_libs"
	break

d6991 5
a6995 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d6997 1
a6997 30
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	LIBS="$cf_save_libs"
done

fi
echo "$as_me:13285: result: $cf_cv_hashed_db_libs" >&5
echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6

	if test "$cf_cv_hashed_db_libs" = unknown ; then
		{ { echo "$as_me:13289: error: Cannot determine library for db" >&5
echo "$as_me: error: Cannot determine library for db" >&2;}
   { (exit 1); exit 1; }; }
	elif test "$cf_cv_hashed_db_libs" != default ; then
		LIBS="-l$cf_cv_hashed_db_libs $LIBS"
	fi
fi

else

	{ { echo "$as_me:13299: error: Cannot find db.h" >&5
echo "$as_me: error: Cannot find db.h" >&2;}
   { (exit 1); exit 1; }; }

fi

fi

if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
	CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
	CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
d6999 2
a7000 66

# Just in case, check if the C compiler has a bool type.

echo "$as_me:13314: checking if we should include stdbool.h" >&5
echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6

if test "${cf_cv_header_stdbool_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 13322 "configure"
#include "confdefs.h"

int
main ()
{
bool foo = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13334: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13337: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13340: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13343: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_header_stdbool_h=0
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 13350 "configure"
#include "confdefs.h"

#ifndef __BEOS__
#include <stdbool.h>
#endif

int
main ()
{
bool foo = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13366: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13369: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13372: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13375: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7003 1
a7003 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a7005 14
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

if test "$cf_cv_header_stdbool_h" = 1
then	echo "$as_me:13389: result: yes" >&5
echo "${ECHO_T}yes" >&6
else	echo "$as_me:13391: result: no" >&5
echo "${ECHO_T}no" >&6
fi

echo "$as_me:13395: checking for builtin bool type" >&5
echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
d7007 8
a7014 6
if test "${cf_cv_cc_bool_type+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 13403 "configure"
d7020 1
a7020 3
int
main ()
{
d7022 4
a7025 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13418: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13421: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13424: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13427: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7028 4
a7031 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_cc_bool_type=0
d7033 2
a7034 2
rm -f conftest.$ac_objext conftest.$ac_ext

d7038 2
a7039 4
then	echo "$as_me:13440: result: yes" >&5
echo "${ECHO_T}yes" >&6
else	echo "$as_me:13442: result: no" >&5
echo "${ECHO_T}no" >&6
a7041 1
# Check for C++ compiler characteristics (and ensure that it's there!)
d7043 2
a7044 1
	ac_ext=cc
d7046 3
a7048 4
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return
d7050 1
d7060 4
a7063 4
echo "$as_me:13464: checking for library $cf_stdcpp_libname" >&5
echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
if test "${cf_cv_libstdcpp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7065 1
a7065 1

d7068 2
a7069 2
cat >conftest.$ac_ext <<_ACEOF
#line 13473 "configure"
d7073 1
a7073 3
int
main ()
{
d7078 4
a7081 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13489: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13492: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13495: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13498: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7084 4
a7087 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_libstdcpp=no
d7089 1
a7089 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7093 2
a7094 2
echo "$as_me:13510: result: $cf_cv_libstdcpp" >&5
echo "${ECHO_T}$cf_cv_libstdcpp" >&6
a7097 41
	echo "$as_me:13515: checking whether $CXX understands -c and -o together" >&5
echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
if test "${cf_cv_prog_CXX_c_o+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat > conftest.$ac_ext <<CF_EOF
#include <stdio.h>
int main()
{
	${cf_cv_main_return:-return}(0);
}
CF_EOF
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
if { (eval echo "$as_me:13531: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13534: \$? = $ac_status" >&5
  (exit $ac_status); } &&
  test -f conftest2.$ac_objext && { (eval echo "$as_me:13536: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13539: \$? = $ac_status" >&5
  (exit $ac_status); };
then
  eval cf_cv_prog_CXX_c_o=yes
else
  eval cf_cv_prog_CXX_c_o=no
fi
rm -f conftest*

fi
if test $cf_cv_prog_CXX_c_o = yes; then
  echo "$as_me:13550: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:13553: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d7104 1
a7104 1

d7114 3
a7116 3
if test "$GXX" = yes; then
	echo "$as_me:13573: checking for lib$cf_gpp_libname" >&5
echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
d7119 2
a7120 2
	cat >conftest.$ac_ext <<_ACEOF
#line 13578 "configure"
d7124 2
a7125 4

int
main ()
{
d7127 4
a7130 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13592: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13595: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13598: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13601: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7134 1
a7134 1
	    cat >>confdefs.h <<\EOF
d7139 1
a7139 1
	    cat >>confdefs.h <<\EOF
d7145 5
a7149 4
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 13620 "configure"
d7153 2
a7154 4

int
main ()
{
d7156 4
a7159 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13634: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13637: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13640: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13643: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7162 1
a7162 1
	 cat >>confdefs.h <<\EOF
d7167 4
a7170 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cxx_library=no
d7172 1
a7172 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7174 1
a7174 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7176 1
a7176 2
	echo "$as_me:13660: result: $cf_cxx_library" >&5
echo "${ECHO_T}$cf_cxx_library" >&6
d7185 2
a7186 8
	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return
echo "$as_me:13676: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
d7188 2
a7189 2
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7191 9
a7199 12
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 13693 "configure"
d7201 6
a7206 20
#include <assert.h>
                     Syntax error
_ACEOF
if { (eval echo "$as_me:13698: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:13704: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
d7209 2
a7210 1
  echo "$as_me: failed program was:" >&5
d7212 2
a7213 2
  # Broken: fails on valid input.
continue
d7215 8
a7222 24
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 13727 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:13731: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:13737: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
a7223 9
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
d7225 2
a7226 1
rm -f conftest.err conftest.$ac_ext
d7228 7
a7234 12
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
d7236 2
a7237 13
  ac_cv_prog_CXXCPP=$CXXCPP
fi
echo "$as_me:13774: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 13784 "configure"
d7239 8
a7246 21
#include <assert.h>
                     Syntax error
_ACEOF
if { (eval echo "$as_me:13789: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:13795: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
d7248 2
a7249 1
  echo "$as_me: failed program was:" >&5
d7251 2
a7252 2
  # Broken: fails on valid input.
continue
d7254 1
a7254 24
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 13818 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:13822: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:13828: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
d7256 7
a7262 3
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
d7264 1
a7264 5
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
a7265 2
rm -f conftest.err conftest.$ac_ext

a7266 9
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:13856: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
   { (exit 1); exit 1; }; }
fi
a7267 6
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return
d7269 6
a7274 26
for ac_header in typeinfo
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:13871: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13877 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:13881: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:13887: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d7276 11
a7286 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
d7288 2
a7289 1
  echo "$as_me: failed program was:" >&5
d7291 2
a7292 1
  eval "$as_ac_Header=no"
d7294 1
a7294 1
rm -f conftest.err conftest.$ac_ext
d7296 2
a7297 73
echo "$as_me:13906: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF

fi
done

echo "$as_me:13916: checking if we should include stdbool.h" >&5
echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6

if test "${cf_cv_header_stdbool_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 13924 "configure"
#include "confdefs.h"

int
main ()
{
bool foo = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13936: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13939: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13942: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13945: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_header_stdbool_h=0
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 13952 "configure"
#include "confdefs.h"

#ifndef __BEOS__
#include <stdbool.h>
#endif

int
main ()
{
bool foo = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13968: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13971: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13974: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13977: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7300 1
a7300 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a7302 14
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

if test "$cf_cv_header_stdbool_h" = 1
then	echo "$as_me:13991: result: yes" >&5
echo "${ECHO_T}yes" >&6
else	echo "$as_me:13993: result: no" >&5
echo "${ECHO_T}no" >&6
fi

echo "$as_me:13997: checking for builtin bool type" >&5
echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
d7304 8
a7311 6
if test "${cf_cv_builtin_bool+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 14005 "configure"
d7317 1
a7317 3
int
main ()
{
d7319 4
a7322 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14020: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14023: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14026: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14029: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7325 4
a7328 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_builtin_bool=0
d7330 2
a7331 2
rm -f conftest.$ac_objext conftest.$ac_ext

d7335 2
a7336 4
then	echo "$as_me:14042: result: yes" >&5
echo "${ECHO_T}yes" >&6
else	echo "$as_me:14044: result: no" >&5
echo "${ECHO_T}no" >&6
d7339 5
a7343 4
echo "$as_me:14048: checking for size of bool" >&5
echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
if test "${cf_cv_type_of_bool+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7345 1
a7345 1

d7350 2
a7351 2
  cat >conftest.$ac_ext <<_ACEOF
#line 14059 "configure"
d7353 3
d7391 1
a7391 1
	${cf_cv_main_return:-return}(0);
d7393 4
a7396 13

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:14101: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14104: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:14106: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14109: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7402 4
a7405 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_type_of_bool=unknown
d7407 1
a7407 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d7410 1
d7414 1
a7414 2
echo "$as_me:14127: result: $cf_cv_type_of_bool" >&5
echo "${ECHO_T}$cf_cv_type_of_bool" >&6
d7419 1
a7419 2
	{ echo "$as_me:14133: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
d7423 3
a7425 2
echo "$as_me:14138: checking for special defines needed for etip.h" >&5
echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
d7432 1
a7432 1
	CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
d7435 2
a7436 2
cat >conftest.$ac_ext <<_ACEOF
#line 14150 "configure"
d7441 1
a7441 3
int
main ()
{
d7443 6
a7448 18
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14164: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14167: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14170: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14173: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

	test -n "$cf_math" && cat >>confdefs.h <<EOF
d7452 1
a7452 1
	test -n "$cf_excp" && cat >>confdefs.h <<EOF
d7460 2
a7461 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d7463 1
a7463 1
rm -f conftest.$ac_objext conftest.$ac_ext
d7466 1
a7466 2
echo "$as_me:14194: result: $cf_result" >&5
echo "${ECHO_T}$cf_result" >&6
d7469 1
d7471 9
a7479 7
echo "$as_me:14199: checking if $CXX accepts parameter initialization" >&5
echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
if test "${cf_cv_cpp_param_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	ac_ext=cc
d7481 3
a7483 4
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return
d7488 2
a7489 2
  cat >conftest.$ac_ext <<_ACEOF
#line 14216 "configure"
d7491 3
d7509 3
a7511 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:14235: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14238: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:14240: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14243: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7514 4
a7517 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_cpp_param_init=no
d7519 1
a7519 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d7521 3
a7523 1
	ac_ext=cc
d7525 4
a7528 4
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return
d7531 2
a7532 2
echo "$as_me:14262: result: $cf_cv_cpp_param_init" >&5
echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
d7534 1
a7534 1
test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
d7538 2
a7541 5
echo "$as_me:14271: checking if $CXX accepts static_cast" >&5
echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
if test "${cf_cv_cpp_static_cast+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d7543 2
a7544 1
	ac_ext=cc
d7546 14
a7559 7
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

	cat >conftest.$ac_ext <<_ACEOF
#line 14285 "configure"
d7561 1
a7561 76

class NCursesPanel
{
public:
  NCursesPanel(int nlines,
	       int ncols,
	       int begin_y = 0,
	       int begin_x = 0)
  {
  }

  ~NCursesPanel();
};

template<class T> class NCursesUserPanel : public NCursesPanel
{
public:
  NCursesUserPanel (int nlines,
		    int ncols,
		    int begin_y = 0,
		    int begin_x = 0,
		    const T* p_UserData = static_cast<T*>(0))
    : NCursesPanel (nlines, ncols, begin_y, begin_x)
  {
  };
  NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
  {
  };

  virtual ~NCursesUserPanel() {};
};

int
main ()
{

	const char* p_UserData = static_cast<char*>(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14329: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14332: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14335: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14338: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_cpp_static_cast=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_cpp_static_cast=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

fi
echo "$as_me:14356: result: $cf_cv_cpp_static_cast" >&5
echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6

fi

test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
#define CPP_HAS_STATIC_CAST 1
d7563 6
a7568 41

if test -n "$CXX"; then

ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

for ac_header in strstream.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:14377: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 14383 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:14387: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:14393: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
d7570 2
a7571 1
  echo "$as_me: failed program was:" >&5
d7573 2
a7574 1
  eval "$as_ac_Header=no"
d7576 1
a7576 1
rm -f conftest.err conftest.$ac_ext
d7578 5
a7582 5
echo "$as_me:14412: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d7584 3
a7586 1

d7590 5
a7594 4
echo "$as_me:14422: checking if $CXX supports vscan function" >&5
echo $ECHO_N "checking if $CXX supports vscan function... $ECHO_C" >&6
if test "${cf_cv_cpp_vscan_func+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7596 1
a7596 1

d7604 2
a7605 2
	cat >conftest.$ac_ext <<_ACEOF
#line 14436 "configure"
d7641 1
a7641 3
int
main ()
{
d7643 4
a7646 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14481: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14484: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14487: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14490: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7649 4
a7652 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_cpp_vscan_func=no
d7654 1
a7654 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a7658 2
echo "$as_me:14503: result: $cf_cv_cpp_vscan_func" >&5
echo "${ECHO_T}$cf_cv_cpp_vscan_func" >&6
d7660 4
a7663 1
ac_ext=cc
d7665 3
a7667 4
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return
d7673 1
a7673 1
	cat >>confdefs.h <<\EOF
d7677 1
a7677 1
	cat >>confdefs.h <<\EOF
d7683 1
a7683 1
	cat >>confdefs.h <<\EOF
d7687 1
a7687 1
	cat >>confdefs.h <<\EOF
d7693 1
a7693 1
	cat >>confdefs.h <<\EOF
d7697 1
a7697 1
	cat >>confdefs.h <<\EOF
d7704 1
d7724 3
a7726 1

d7741 1
a7741 2
		cf_cv_type_of_bool=$NCURSES_BOOL
		cf_cv_header_stdbool_h=0
d7744 5
a7748 5

echo "$as_me:14587: checking for size of bool" >&5
echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
if test "${cf_cv_type_of_bool+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7750 1
a7750 1

d7755 2
a7756 2
  cat >conftest.$ac_ext <<_ACEOF
#line 14598 "configure"
d7758 3
d7796 1
a7796 1
	${cf_cv_main_return:-return}(0);
d7798 4
a7801 13

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:14640: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14643: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:14645: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14648: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7807 4
a7810 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_type_of_bool=unknown
d7812 1
a7812 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d7815 1
d7819 1
a7819 2
echo "$as_me:14666: result: $cf_cv_type_of_bool" >&5
echo "${ECHO_T}$cf_cv_type_of_bool" >&6
d7824 1
a7824 2
	{ echo "$as_me:14672: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
d7829 2
a7830 2
			echo "$as_me:14678: checking for fallback type of bool" >&5
echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
d7835 1
a7835 2
			echo "$as_me:14684: result: $cf_cv_type_of_bool" >&5
echo "${ECHO_T}$cf_cv_type_of_bool" >&6
a7839 18
# If the C compiler did not declare bool, and we did not determine that the C++
# compiler does not declare bool, turn on an ifdef in curses.h that makes the
# ncurses library use the same type as C++ bool.  Note that this allows one to
# specify the type of bool in a configure-script option and postpone
# integration with the C++ compiler provided that the types are compatible.
USE_CXX_BOOL=1
if test $cf_cv_cc_bool_type = 1
then
	# oops: C has a bool.  Unlikely, but C++ could differ.
	USE_CXX_BOOL=0
elif test $cf_cv_builtin_bool = 0
then
	# C++ has no bool
	USE_CXX_BOOL=0
else
	# this is the normal case
	USE_CXX_BOOL='defined(__cplusplus)'
fi
d7841 2
a7842 1
if test -f "${srcdir}/Ada95/Makefile.in" ; then
d7847 4
a7850 4
echo "$as_me:14714: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_gnat_exists+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7855 10
a7864 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_gnat_exists="yes"
echo "$as_me:14729: found $ac_dir/$ac_word" >&5
break
done

d7868 1
a7868 1
gnat_exists=$ac_cv_prog_gnat_exists
d7870 1
a7870 2
  echo "$as_me:14738: result: $gnat_exists" >&5
echo "${ECHO_T}$gnat_exists" >&6
d7872 1
a7872 2
  echo "$as_me:14741: result: no" >&5
echo "${ECHO_T}no" >&6
d7878 4
a7881 9

echo "$as_me:14749: checking for gnat version" >&5
echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
  sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
echo "$as_me:14753: result: $cf_gnat_version" >&5
echo "${ECHO_T}$cf_gnat_version" >&6

case $cf_gnat_version in
d7885 1
a7885 1
  *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
d7889 2
a7890 2
case $cf_gnat_version in
  3.[1-9]*|[4-9].*)
d7892 1
a7892 1
      cf_generic_objects="\${GENOBJS}"
d7901 4
a7904 4
echo "$as_me:14776: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_M4_exists+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7909 10
a7918 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_M4_exists="yes"
echo "$as_me:14791: found $ac_dir/$ac_word" >&5
break
done

d7922 1
a7922 1
M4_exists=$ac_cv_prog_M4_exists
d7924 1
a7924 2
  echo "$as_me:14800: result: $M4_exists" >&5
echo "${ECHO_T}$M4_exists" >&6
d7926 1
a7926 2
  echo "$as_me:14803: result: no" >&5
echo "${ECHO_T}no" >&6
d7934 3
a7936 3
      echo "$as_me:14812: checking if GNAT works" >&5
echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6

d7951 1
a7951 1
if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
d7962 1
a7962 2
      echo "$as_me:14840: result: $cf_cv_prog_gnat_correct" >&5
echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
d7968 1
a7968 37
   echo "$as_me:14847: checking if GNAT pragma Unreferenced works" >&5
echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6

rm -f conftest*
cat >>conftest.ads <<CF_EOF
procedure conftest;
CF_EOF
cat >>conftest.adb <<CF_EOF
with Text_IO;
with GNAT.OS_Lib;
procedure conftest is
   test : Integer;
   pragma Unreferenced (test);
begin
   test := 1;
   Text_IO.Put ("Hello World");
   Text_IO.New_Line;
   GNAT.OS_Lib.OS_Exit (0);
end conftest;
CF_EOF
if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
      cf_cv_pragma_unreferenced=yes
else
   cf_cv_pragma_unreferenced=no
fi
rm -f conftest*

   echo "$as_me:14874: result: $cf_cv_pragma_unreferenced" >&5
echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6

   # if the pragma is supported, use it (needed in the Trace code).
   if test $cf_cv_pragma_unreferenced = yes ; then
      PRAGMA_UNREF=TRUE
   else
      PRAGMA_UNREF=FALSE
   fi

d7975 2
a7976 1
fi;
d7980 8
d7991 1
a7991 1

a7993 5
fi;
if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
d8007 1
a8007 1
    withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
d8011 2
a8012 2
.no|.NONE/*)
  withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
d8015 1
a8015 3
  { { echo "$as_me:14926: error: expected a pathname, not \"$withval\"" >&5
echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
   { (exit 1); exit 1; }; }
d8019 3
a8021 1
ADA_INCLUDE="$withval"
d8023 1
d8027 1
a8027 1

a8029 5
fi;
if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
d8043 1
a8043 1
    withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
d8047 2
a8048 2
.no|.NONE/*)
  withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
d8051 1
a8051 3
  { { echo "$as_me:14966: error: expected a pathname, not \"$withval\"" >&5
echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
   { (exit 1); exit 1; }; }
d8055 3
a8057 1
ADA_OBJECTS="$withval"
d8061 15
d8079 5
a8083 7
### none, base, ext_funcs, ext_tinfo, termlib, widechar (see CF_LIB_RULES).
echo "$as_me:14980: checking for library subsets" >&5
echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
if test "$with_termlib" != no ; then
	LIB_SUBSETS="termlib"
	test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
	LIB_SUBSETS="${LIB_SUBSETS} "
a8085 1
	test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}ext_tinfo+"
d8088 1
a8088 1
test "$with_widec"     = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
d8090 11
a8100 2
echo "$as_me:14993: result: $LIB_SUBSETS" >&5
echo "${ECHO_T}$LIB_SUBSETS" >&6
d8104 1
a8104 1
CPPFLAGS="-I. -I../include $CPPFLAGS"
d8106 1
a8106 1
	CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
d8109 1
a8109 1
	CPPFLAGS="$CPPFLAGS -I\${includedir}"
d8113 1
a8113 1
			CPPFLAGS="$CPPFLAGS -I\${includedir}"
d8116 1
a8116 1
		CPPFLAGS="$CPPFLAGS -I\${includedir}"
d8120 3
a8122 1
ACPPFLAGS="-I. -I../../include $ACPPFLAGS"
d8124 1
a8124 1
	ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
d8127 1
a8127 1
	ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
d8131 1
a8131 1
			ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
d8134 1
a8134 1
		ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
d8138 2
d8141 2
a8142 2
echo "$as_me:15031: checking default library suffix" >&5
echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
d8152 1
a8152 2
echo "$as_me:15042: result: $DFT_ARG_SUFFIX" >&5
echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
d8154 2
a8155 2
echo "$as_me:15045: checking default library-dependency suffix" >&5
echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
d8157 1
d8167 1
a8167 6
		hpux*)
			case $target in
			ia64*)	DFT_DEP_SUFFIX='.so' ;;
			*)	DFT_DEP_SUFFIX='.sl' ;;
			esac
			;;
d8179 1
a8179 2
echo "$as_me:15074: result: $DFT_DEP_SUFFIX" >&5
echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
d8181 2
a8182 2
echo "$as_me:15077: checking default object directory" >&5
echo $ECHO_N "checking default object directory... $ECHO_C" >&6
d8197 1
a8197 2
echo "$as_me:15093: result: $DFT_OBJ_SUBDIR" >&5
echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
d8200 3
a8202 4
if test "$cf_with_cxx" = yes ; then
echo "$as_me:15098: checking c++ library-dependency suffix" >&5
echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
if test "$with_libtool" != "no"; then
d8205 2
a8206 1

d8216 1
a8216 6
		hpux*)
			case $target in
			ia64*)	CXX_LIB_SUFFIX='.so' ;;
			*)	CXX_LIB_SUFFIX='.sl' ;;
			esac
			;;
d8222 1
a8222 2
echo "$as_me:15124: result: $CXX_LIB_SUFFIX" >&5
echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
a8223 1
fi
a8224 1
### Set up low-level terminfo dependencies for makefiles.
d8226 11
a8236 1
if test "$with_termlib" != no ; then
a8237 10
	if test "$with_termlib" != yes ; then
		TINFO_NAME=$with_termlib
		TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TINFO_LIB_SUFFIX="${with_termlib}"
	else
		TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
		TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
		TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
	fi
d8239 4
a8242 2
	TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
	TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
a8244 2
		TEST_ARG2="${TEST_DEP2}"
		TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
d8246 1
a8246 4
		TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
		TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
		TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
		SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
a8247 22
else
	TINFO_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
fi

# needed for Ada95
TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`

echo "$as_me:15163: checking where we will install curses.h" >&5
echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
test "$with_overwrite" = no && \
test "x$includedir" = 'x${prefix}/include' && \
	includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
echo "$as_me:15168: result: $includedir" >&5
echo "${ECHO_T}$includedir" >&6

### Resolve a conflict between normal and wide-curses by forcing applications
### that will need libutf8 to add it to their configure script.
if test "$with_overwrite" != no ; then
if test "$NCURSES_LIBUTF8" = 1 ; then
	NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
	{ echo "$as_me:15176: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
d8249 2
a8250 6
fi

### predefined stuff for the test programs
cat >>confdefs.h <<\EOF
#define HAVE_SLK_COLOR 1
EOF
d8255 3
a8257 2
echo "$as_me:15189: checking for src modules" >&5
echo $ECHO_N "checking for src modules... $ECHO_C" >&6
a8260 1
TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
a8262 1
	TEST_ARG2="${TEST_DEP2}"
a8264 1
	TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
d8267 3
d8296 1
a8296 1

d8299 1
a8299 1
			cat >>confdefs.h <<EOF
d8303 1
a8303 1
			cat >>confdefs.h <<EOF
a8307 1
			TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
a8309 1
				TEST_ARG2="${TEST_DEP2}"
a8311 1
				TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
d8316 6
a8321 2
echo "$as_me:15252: result: $cf_cv_src_modules" >&5
echo "${ECHO_T}$cf_cv_src_modules" >&6
a8322 2
TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
d8350 2
a8352 1
fi
d8357 1
a8357 1

d8383 3
a8385 1
cat >>confdefs.h <<EOF
a8388 3
cat >>confdefs.h <<EOF
#define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
EOF
d8391 1
a8391 88

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in $EXTRA_CFLAGS
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

### Define substitutions for header files to avoid name-pollution

if test "$cf_cv_have_tcgetattr" = yes ; then
	HAVE_TCGETATTR=1
else
	HAVE_TCGETATTR=0
fi

if test "$ac_cv_header_termio_h" = yes ; then
	HAVE_TERMIO_H=1
else
	HAVE_TERMIO_H=0
fi

if test "$ac_cv_header_termios_h" = yes ; then
	HAVE_TERMIOS_H=1
else
	HAVE_TERMIOS_H=0
fi
d8394 2
a8395 5
test "$use_database" = yes && SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/termcap.h include/unctrl.h $SUB_MAKEFILES Makefile"
ac_config_commands="$ac_config_commands default"
cat >confcache <<\_ACEOF
d8398 2
a8399 3
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
d8401 8
a8408 2
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
d8410 1
a8410 6
# `ac_cv_env_foo' variables (set or unset) will be overriden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

d8416 17
a8432 25
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
        "s/'/'\\\\''/g;
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if cmp -s $cache_file confcache; then :; else
d8434 2
a8435 2
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
d8442 2
d8448 3
a8450 4
# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @@srcdir@@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
d8452 1
a8452 8
  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@@srcdir@@:*/:/;
s/^\([^=]*=[ 	]*\):*/\1/;
s/:*$//;
s/^[^=]*=[ 	]*$//;
}'
d8455 2
d8459 1
d8461 5
a8465 6
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ echo "$as_me:15498: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
d8468 5
d8474 1
a8474 1
# configure, is in config.log if it exists.
d8476 2
a8477 139
debug=false
SHELL=\${CONFIG_SHELL-$SHELL}
ac_cs_invocation="\$0 \$@@"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Name of the executable.
as_me=`echo "$0" |sed 's,.*[\\/],,'`

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

as_executable_p="test -f"

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

# NLS nuisances.
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }

# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }

exec 6>&1

_ACEOF

# Files that config.status was made for.
if test -n "$ac_config_files"; then
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_headers"; then
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_links"; then
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_commands"; then
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
fi

cat >>$CONFIG_STATUS <<\EOF

ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.

Usage: $0 [OPTIONS] [FILE]...

  -h, --help       print this help, then exit
  -V, --version    print version number, then exit
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
  --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
  --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to <bug-autoconf@@gnu.org>."
EOF

cat >>$CONFIG_STATUS <<EOF
ac_cs_version="\\
config.status
configured by $0, generated by GNU Autoconf 2.52.20061216,
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
srcdir=$srcdir
INSTALL="$INSTALL"
EOF

cat >>$CONFIG_STATUS <<\EOF
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
d8479 1
a8479 18
  case $1 in
  --*=*)
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    shift
    set dummy "$ac_option" "$ac_optarg" ${1+"$@@"}
    shift
    ;;
  -*);;
  *) # This is not an option, so the user has probably given explicit
     # arguments.
     ac_need_defaults=false;;
  esac

  case $1 in
  # Handling of the options.
EOF
cat >>$CONFIG_STATUS <<EOF
d8481 8
a8488 35
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
EOF
cat >>$CONFIG_STATUS <<\EOF
  --version | --vers* | -V )
    echo "$ac_cs_version"; exit 0 ;;
  --he | --h)
    # Conflict between --help and --header
    { { echo "$as_me:15674: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit 0 ;;
  --debug | --d* | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    shift
    CONFIG_FILES="$CONFIG_FILES $1"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    shift
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
    ac_need_defaults=false;;

  # This is an error.
  -*) { { echo "$as_me:15693: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; } ;;

  *) ac_config_targets="$ac_config_targets $1" ;;

a8489 1
  shift
d8492 2
a8493 2
exec 5>>config.log
cat >&5 << _ACEOF
d8495 162
a8656 3
## ----------------------- ##
## Running config.status.  ##
## ----------------------- ##
d8658 1
a8658 9
This file was extended by $as_me 2.52.20061216, executed with
  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  > $ac_cs_invocation
on `(hostname || uname -n) 2>/dev/null | sed 1q`

_ACEOF
d8661 1
a8661 4
cat >>$CONFIG_STATUS <<EOF
#
# INIT-COMMANDS section.
#
d8663 27
a8689 59
### Special initialization commands, used to pass information from the
### configuration-run into config.status

AWK="$AWK"
DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
DFT_LWR_MODEL="$DFT_LWR_MODEL"
ECHO_LINK="$ECHO_LINK"
LDCONFIG="$LDCONFIG"
LIB_NAME="$LIB_NAME"
LIB_SUBSETS="$LIB_SUBSETS"
LIB_SUFFIX="$LIB_SUFFIX"
LIB_TRACING="$LIB_TRACING"
MAKE_TERMINFO="$MAKE_TERMINFO"
NCURSES_MAJOR="$NCURSES_MAJOR"
NCURSES_MINOR="$NCURSES_MINOR"
NCURSES_OSPEED="$NCURSES_OSPEED"
NCURSES_PATCH="$NCURSES_PATCH"
SRC_SUBDIRS="$SRC_SUBDIRS"
TERMINFO="$TERMINFO"
TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
TINFO_NAME="$TINFO_NAME"
WITH_CURSES_H="$with_curses_h"
WITH_ECHO="$with_echo"
WITH_OVERWRITE="$with_overwrite"
cf_LIST_MODELS="$cf_list_models"
cf_cv_abi_version="$cf_cv_abi_version"
cf_cv_do_symlinks="$cf_cv_do_symlinks"
cf_cv_enable_lp64="$cf_cv_enable_lp64"
cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
cf_cv_rel_version="$cf_cv_rel_version"
cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
cf_cv_shlib_version="$cf_cv_shlib_version"
cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
cf_cv_system_name="$cf_cv_system_name"
cf_with_cxx_binding="$cf_with_cxx_binding"
host="$host"
target="$target"

EOF

cat >>$CONFIG_STATUS <<\EOF
for ac_config_target in $ac_config_targets
do
  case "$ac_config_target" in
  # Handling of arguments.
  "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
  "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
  "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
  "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
  "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
  *) { { echo "$as_me:15783: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   { (exit 1); exit 1; }; };;
  esac
d8691 2
a8692 9

# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
a8693 239

# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  trap '{ (exit 1); exit 1; }' 1 2 13 15
}

# Create a (secure) tmp directory for tmp files.
: ${TMPDIR=/tmp}
{
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=$TMPDIR/cs$$-$RANDOM
  (umask 077 && mkdir $tmp)
} ||
{
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   { (exit 1); exit 1; }
}

EOF

cat >>$CONFIG_STATUS <<EOF

#
# CONFIG_FILES section.
#

# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
  # Protect against being on the right side of a sed subst in config.status.
  sed 's/,@@/@@@@/; s/@@,/@@@@/; s/,;t t\$/@@;t t/; /@@;t t\$/s/[\\\\&,]/\\\\&/g;
   s/@@@@/,@@/; s/@@@@/@@,/; s/@@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@@SHELL@@,$SHELL,;t t
s,@@exec_prefix@@,$exec_prefix,;t t
s,@@prefix@@,$prefix,;t t
s,@@program_transform_name@@,$program_transform_name,;t t
s,@@bindir@@,$bindir,;t t
s,@@sbindir@@,$sbindir,;t t
s,@@libexecdir@@,$libexecdir,;t t
s,@@datadir@@,$datadir,;t t
s,@@sysconfdir@@,$sysconfdir,;t t
s,@@sharedstatedir@@,$sharedstatedir,;t t
s,@@localstatedir@@,$localstatedir,;t t
s,@@libdir@@,$libdir,;t t
s,@@includedir@@,$includedir,;t t
s,@@oldincludedir@@,$oldincludedir,;t t
s,@@infodir@@,$infodir,;t t
s,@@mandir@@,$mandir,;t t
s,@@PACKAGE_NAME@@,$PACKAGE_NAME,;t t
s,@@PACKAGE_TARNAME@@,$PACKAGE_TARNAME,;t t
s,@@PACKAGE_VERSION@@,$PACKAGE_VERSION,;t t
s,@@PACKAGE_STRING@@,$PACKAGE_STRING,;t t
s,@@PACKAGE_BUGREPORT@@,$PACKAGE_BUGREPORT,;t t
s,@@build_alias@@,$build_alias,;t t
s,@@host_alias@@,$host_alias,;t t
s,@@target_alias@@,$target_alias,;t t
s,@@ECHO_C@@,$ECHO_C,;t t
s,@@ECHO_N@@,$ECHO_N,;t t
s,@@ECHO_T@@,$ECHO_T,;t t
s,@@PATH_SEPARATOR@@,$PATH_SEPARATOR,;t t
s,@@DEFS@@,$DEFS,;t t
s,@@LIBS@@,$LIBS,;t t
s,@@top_builddir@@,$top_builddir,;t t
s,@@EGREP@@,$EGREP,;t t
s,@@NCURSES_MAJOR@@,$NCURSES_MAJOR,;t t
s,@@NCURSES_MINOR@@,$NCURSES_MINOR,;t t
s,@@NCURSES_PATCH@@,$NCURSES_PATCH,;t t
s,@@cf_cv_rel_version@@,$cf_cv_rel_version,;t t
s,@@cf_cv_abi_version@@,$cf_cv_abi_version,;t t
s,@@cf_cv_builtin_bool@@,$cf_cv_builtin_bool,;t t
s,@@cf_cv_header_stdbool_h@@,$cf_cv_header_stdbool_h,;t t
s,@@cf_cv_type_of_bool@@,$cf_cv_type_of_bool,;t t
s,@@build@@,$build,;t t
s,@@build_cpu@@,$build_cpu,;t t
s,@@build_vendor@@,$build_vendor,;t t
s,@@build_os@@,$build_os,;t t
s,@@host@@,$host,;t t
s,@@host_cpu@@,$host_cpu,;t t
s,@@host_vendor@@,$host_vendor,;t t
s,@@host_os@@,$host_os,;t t
s,@@target@@,$target,;t t
s,@@target_cpu@@,$target_cpu,;t t
s,@@target_vendor@@,$target_vendor,;t t
s,@@target_os@@,$target_os,;t t
s,@@CC@@,$CC,;t t
s,@@CFLAGS@@,$CFLAGS,;t t
s,@@LDFLAGS@@,$LDFLAGS,;t t
s,@@CPPFLAGS@@,$CPPFLAGS,;t t
s,@@ac_ct_CC@@,$ac_ct_CC,;t t
s,@@EXEEXT@@,$EXEEXT,;t t
s,@@OBJEXT@@,$OBJEXT,;t t
s,@@CPP@@,$CPP,;t t
s,@@EXTRA_CPPFLAGS@@,$EXTRA_CPPFLAGS,;t t
s,@@PROG_EXT@@,$PROG_EXT,;t t
s,@@LDCONFIG@@,$LDCONFIG,;t t
s,@@CXX@@,$CXX,;t t
s,@@CXXFLAGS@@,$CXXFLAGS,;t t
s,@@ac_ct_CXX@@,$ac_ct_CXX,;t t
s,@@AWK@@,$AWK,;t t
s,@@INSTALL_PROGRAM@@,$INSTALL_PROGRAM,;t t
s,@@INSTALL_SCRIPT@@,$INSTALL_SCRIPT,;t t
s,@@INSTALL_DATA@@,$INSTALL_DATA,;t t
s,@@LINT@@,$LINT,;t t
s,@@LINT_OPTS@@,$LINT_OPTS,;t t
s,@@LN_S@@,$LN_S,;t t
s,@@SET_MAKE@@,$SET_MAKE,;t t
s,@@MAKE_LOWER_TAGS@@,$MAKE_LOWER_TAGS,;t t
s,@@MAKE_UPPER_TAGS@@,$MAKE_UPPER_TAGS,;t t
s,@@cf_cv_makeflags@@,$cf_cv_makeflags,;t t
s,@@RANLIB@@,$RANLIB,;t t
s,@@ac_ct_RANLIB@@,$ac_ct_RANLIB,;t t
s,@@LD@@,$LD,;t t
s,@@ac_ct_LD@@,$ac_ct_LD,;t t
s,@@AR@@,$AR,;t t
s,@@ac_ct_AR@@,$ac_ct_AR,;t t
s,@@AR_OPTS@@,$AR_OPTS,;t t
s,@@DESTDIR@@,$DESTDIR,;t t
s,@@BUILD_CC@@,$BUILD_CC,;t t
s,@@BUILD_CPP@@,$BUILD_CPP,;t t
s,@@BUILD_CFLAGS@@,$BUILD_CFLAGS,;t t
s,@@BUILD_CPPFLAGS@@,$BUILD_CPPFLAGS,;t t
s,@@BUILD_LDFLAGS@@,$BUILD_LDFLAGS,;t t
s,@@BUILD_LIBS@@,$BUILD_LIBS,;t t
s,@@BUILD_EXEEXT@@,$BUILD_EXEEXT,;t t
s,@@BUILD_OBJEXT@@,$BUILD_OBJEXT,;t t
s,@@cf_list_models@@,$cf_list_models,;t t
s,@@LIBTOOL@@,$LIBTOOL,;t t
s,@@LIBTOOL_CXX@@,$LIBTOOL_CXX,;t t
s,@@LIB_CREATE@@,$LIB_CREATE,;t t
s,@@LIB_OBJECT@@,$LIB_OBJECT,;t t
s,@@LIB_SUFFIX@@,$LIB_SUFFIX,;t t
s,@@LIB_PREP@@,$LIB_PREP,;t t
s,@@LIB_CLEAN@@,$LIB_CLEAN,;t t
s,@@LIB_COMPILE@@,$LIB_COMPILE,;t t
s,@@LIB_LINK@@,$LIB_LINK,;t t
s,@@LIB_INSTALL@@,$LIB_INSTALL,;t t
s,@@LIB_UNINSTALL@@,$LIB_UNINSTALL,;t t
s,@@DFT_LWR_MODEL@@,$DFT_LWR_MODEL,;t t
s,@@DFT_UPR_MODEL@@,$DFT_UPR_MODEL,;t t
s,@@TINFO_NAME@@,$TINFO_NAME,;t t
s,@@LIB_NAME@@,$LIB_NAME,;t t
s,@@LIB_PREFIX@@,$LIB_PREFIX,;t t
s,@@CC_G_OPT@@,$CC_G_OPT,;t t
s,@@CXX_G_OPT@@,$CXX_G_OPT,;t t
s,@@LD_MODEL@@,$LD_MODEL,;t t
s,@@CC_SHARED_OPTS@@,$CC_SHARED_OPTS,;t t
s,@@LD_SHARED_OPTS@@,$LD_SHARED_OPTS,;t t
s,@@MK_SHARED_LIB@@,$MK_SHARED_LIB,;t t
s,@@LINK_PROGS@@,$LINK_PROGS,;t t
s,@@LINK_TESTS@@,$LINK_TESTS,;t t
s,@@EXTRA_LDFLAGS@@,$EXTRA_LDFLAGS,;t t
s,@@LOCAL_LDFLAGS@@,$LOCAL_LDFLAGS,;t t
s,@@LOCAL_LDFLAGS2@@,$LOCAL_LDFLAGS2,;t t
s,@@INSTALL_LIB@@,$INSTALL_LIB,;t t
s,@@TERMINFO_SRC@@,$TERMINFO_SRC,;t t
s,@@PATHSEP@@,$PATHSEP,;t t
s,@@FALLBACK_LIST@@,$FALLBACK_LIST,;t t
s,@@WHICH_XTERM@@,$WHICH_XTERM,;t t
s,@@TERMINFO_DIRS@@,$TERMINFO_DIRS,;t t
s,@@TERMINFO@@,$TERMINFO,;t t
s,@@MAKE_TERMINFO@@,$MAKE_TERMINFO,;t t
s,@@TERMPATH@@,$TERMPATH,;t t
s,@@BROKEN_LINKER@@,$BROKEN_LINKER,;t t
s,@@NCURSES_CH_T@@,$NCURSES_CH_T,;t t
s,@@NCURSES_LIBUTF8@@,$NCURSES_LIBUTF8,;t t
s,@@NEED_WCHAR_H@@,$NEED_WCHAR_H,;t t
s,@@NCURSES_MBSTATE_T@@,$NCURSES_MBSTATE_T,;t t
s,@@NCURSES_WCHAR_T@@,$NCURSES_WCHAR_T,;t t
s,@@NCURSES_WINT_T@@,$NCURSES_WINT_T,;t t
s,@@NCURSES_OK_WCHAR_T@@,$NCURSES_OK_WCHAR_T,;t t
s,@@NCURSES_OK_WINT_T@@,$NCURSES_OK_WINT_T,;t t
s,@@cf_cv_enable_lp64@@,$cf_cv_enable_lp64,;t t
s,@@NCURSES_TPARM_VARARGS@@,$NCURSES_TPARM_VARARGS,;t t
s,@@NCURSES_BOOL@@,$NCURSES_BOOL,;t t
s,@@TERMINFO_CAPS@@,$TERMINFO_CAPS,;t t
s,@@NCURSES_OSPEED@@,$NCURSES_OSPEED,;t t
s,@@MANPAGE_RENAMES@@,$MANPAGE_RENAMES,;t t
s,@@NCURSES_EXT_FUNCS@@,$NCURSES_EXT_FUNCS,;t t
s,@@NCURSES_CONST@@,$NCURSES_CONST,;t t
s,@@NCURSES_SBOOL@@,$NCURSES_SBOOL,;t t
s,@@NCURSES_XNAMES@@,$NCURSES_XNAMES,;t t
s,@@NCURSES_EXT_COLORS@@,$NCURSES_EXT_COLORS,;t t
s,@@NCURSES_MOUSE_VERSION@@,$NCURSES_MOUSE_VERSION,;t t
s,@@ECHO_LINK@@,$ECHO_LINK,;t t
s,@@EXTRA_CFLAGS@@,$EXTRA_CFLAGS,;t t
s,@@EXTRA_CXXFLAGS@@,$EXTRA_CXXFLAGS,;t t
s,@@ADA_TRACE@@,$ADA_TRACE,;t t
s,@@MATH_LIB@@,$MATH_LIB,;t t
s,@@NCURSES_INLINE@@,$NCURSES_INLINE,;t t
s,@@cf_cv_typeof_chtype@@,$cf_cv_typeof_chtype,;t t
s,@@cf_cv_1UL@@,$cf_cv_1UL,;t t
s,@@cf_cv_typeof_mmask_t@@,$cf_cv_typeof_mmask_t,;t t
s,@@HAVE_VSSCANF@@,$HAVE_VSSCANF,;t t
s,@@CXXCPP@@,$CXXCPP,;t t
s,@@CXXLDFLAGS@@,$CXXLDFLAGS,;t t
s,@@CXX_AR@@,$CXX_AR,;t t
s,@@CXX_AR_OPTS@@,$CXX_AR_OPTS,;t t
s,@@CXXLIBS@@,$CXXLIBS,;t t
s,@@USE_CXX_BOOL@@,$USE_CXX_BOOL,;t t
s,@@gnat_exists@@,$gnat_exists,;t t
s,@@M4_exists@@,$M4_exists,;t t
s,@@cf_ada_make@@,$cf_ada_make,;t t
s,@@cf_ada_compiler@@,$cf_ada_compiler,;t t
s,@@cf_ada_package@@,$cf_ada_package,;t t
s,@@ADAFLAGS@@,$ADAFLAGS,;t t
s,@@cf_compile_generics@@,$cf_compile_generics,;t t
s,@@cf_generic_objects@@,$cf_generic_objects,;t t
s,@@PRAGMA_UNREF@@,$PRAGMA_UNREF,;t t
s,@@ADA_INCLUDE@@,$ADA_INCLUDE,;t t
s,@@ADA_OBJECTS@@,$ADA_OBJECTS,;t t
s,@@ACPPFLAGS@@,$ACPPFLAGS,;t t
s,@@DFT_ARG_SUFFIX@@,$DFT_ARG_SUFFIX,;t t
s,@@DFT_DEP_SUFFIX@@,$DFT_DEP_SUFFIX,;t t
s,@@DFT_OBJ_SUBDIR@@,$DFT_OBJ_SUBDIR,;t t
s,@@CXX_LIB_SUFFIX@@,$CXX_LIB_SUFFIX,;t t
s,@@TINFO_ARG_SUFFIX@@,$TINFO_ARG_SUFFIX,;t t
s,@@TINFO_DEP_SUFFIX@@,$TINFO_DEP_SUFFIX,;t t
s,@@TINFO_LIB_SUFFIX@@,$TINFO_LIB_SUFFIX,;t t
s,@@TINFO_ARGS@@,$TINFO_ARGS,;t t
s,@@TINFO_ARGS2@@,$TINFO_ARGS2,;t t
s,@@WITH_OVERWRITE@@,$WITH_OVERWRITE,;t t
s,@@TINFO_LIST@@,$TINFO_LIST,;t t
s,@@SHLIB_LIST@@,$SHLIB_LIST,;t t
s,@@TEST_ARGS@@,$TEST_ARGS,;t t
s,@@TEST_DEPS@@,$TEST_DEPS,;t t
s,@@TEST_ARG2@@,$TEST_ARG2,;t t
s,@@TEST_DEP2@@,$TEST_DEP2,;t t
s,@@ADA_SUBDIRS@@,$ADA_SUBDIRS,;t t
s,@@DIRS_TO_MAKE@@,$DIRS_TO_MAKE,;t t
s,@@HAVE_TCGETATTR@@,$HAVE_TCGETATTR,;t t
s,@@HAVE_TERMIO_H@@,$HAVE_TERMIO_H,;t t
s,@@HAVE_TERMIOS_H@@,$HAVE_TERMIOS_H,;t t
CEOF

d8696 1
a8696 38
  cat >>$CONFIG_STATUS <<\EOF
  # Split the substitutions into bite-sized pieces for seds with
  # small command number limits, like on Digital OSF/1 and HP-UX.
  ac_max_sed_lines=48
  ac_sed_frag=1 # Number of current file.
  ac_beg=1 # First line for current file.
  ac_end=$ac_max_sed_lines # Line after last line for current file.
  ac_more_lines=:
  ac_sed_cmds=
  while $ac_more_lines; do
    if test $ac_beg -gt 1; then
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    else
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    fi
    if test ! -s $tmp/subs.frag; then
      ac_more_lines=false
    else
      # The purpose of the label and of the branching condition is to
      # speed up the sed processing (if there are no `@@' at all, there
      # is no need to browse any of the substitutions).
      # These are the two extra sed commands mentioned above.
      (echo ':t
  /@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
      if test -z "$ac_sed_cmds"; then
  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
      else
  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
      fi
      ac_sed_frag=`expr $ac_sed_frag + 1`
      ac_beg=$ac_end
      ac_end=`expr $ac_end + $ac_max_sed_lines`
    fi
  done
  if test -z "$ac_sed_cmds"; then
    ac_sed_cmds=cat
  fi
fi # test -n "$CONFIG_FILES"
d8698 8
d8707 2
a8708 2
cat >>$CONFIG_STATUS <<\EOF
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
d8710 4
a8713 8
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
d8716 4
a8719 12
  # Compute @@srcdir@@, @@top_srcdir@@, and @@INSTALL@@ for subdirectories.
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d8721 3
a8723 17
    { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done; }

    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
d8725 1
a8725 1
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
d8730 5
a8734 10
  case $srcdir in
  .)  ac_srcdir=.
      if test -z "$ac_dots"; then
         ac_top_srcdir=.
      else
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
      fi ;;
  [\\/]* | ?:[\\/]* )
      ac_srcdir=$srcdir$ac_dir_suffix;
      ac_top_srcdir=$srcdir ;;
d8736 2
a8737 2
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_dots$srcdir ;;
d8740 3
a8742 3
  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_dots$INSTALL ;;
d8745 8
a8752 62
  if test x"$ac_file" != x-; then
    { echo "$as_me:16149: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    rm -f "$ac_file"
  fi
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated automatically by config.status.  */
  configure_input="Generated automatically from `echo $ac_file_in |
                                                 sed 's,.*/,,'` by configure."

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:16167: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:16180: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
EOF
cat >>$CONFIG_STATUS <<EOF
  sed "$ac_vpsub
$extrasub
EOF
cat >>$CONFIG_STATUS <<\EOF
:t
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
s,@@configure_input@@,$configure_input,;t t
s,@@srcdir@@,$ac_srcdir,;t t
s,@@top_srcdir@@,$ac_top_srcdir,;t t
s,@@INSTALL@@,$ac_INSTALL,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  rm -f $tmp/stdin
  if test x"$ac_file" != x-; then
    mv $tmp/out $ac_file
  else
    cat $tmp/out
    rm -f $tmp/out
  fi

done
EOF
cat >>$CONFIG_STATUS <<\EOF
d8754 9
a8762 3
#
# CONFIG_HEADER section.
#
d8768 7
a8774 12
ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='[ 	].*$,\1#\2'
ac_dC=' '
ac_dD=',;t'
# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_iA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_iB='\([ 	]\),\1#\2define\3'
ac_iC=' '
ac_iD='\4,;t'
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='$,\1#\2define\3'
d8776 6
a8781 1
ac_uD=',;t'
d8783 8
a8790 1
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
d8792 4
a8795 8
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
d8798 1
a8798 2
  test x"$ac_file" != x- && { echo "$as_me:16246: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
d8800 3
a8802 29
  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:16257: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:16270: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
  # Remove the trailing spaces.
  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
d8806 1
d8810 1
a8810 1
cat confdefs.h | uniq >conftest.vals
d8817 1
a8817 1
while grep . conftest.vals >/dev/null
d8819 3
d8824 1
a8824 1
  sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
d8832 1
a8832 1
# Run sed to substitute the contents of conftest.frag into $tmp/in at the
d8838 3
a8840 3
sed -f conftest.edit $tmp/in > $tmp/out
rm -f $tmp/in
mv $tmp/out $tmp/in
d8844 9
a8852 6
cat >>$CONFIG_STATUS <<\EOF
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated automatically by config.status.  */
  if test x"$ac_file" = x-; then
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
d8854 2
a8855 20
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
  fi
  cat $tmp/in >>$tmp/config.h
  rm -f $tmp/in
  if test x"$ac_file" != x-; then
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
      { echo "$as_me:16328: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
    else
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d8857 2
a8858 19
        { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done; }

      fi
      rm -f $ac_file
      mv $tmp/config.h $ac_file
d8860 2
a8861 3
  else
    cat $tmp/config.h
    rm -f $tmp/config.h
d8863 2
a8864 1
done
d8866 32
a8897 1
cat >>$CONFIG_STATUS <<\EOF
d8899 3
a8901 6
#
# CONFIG_COMMANDS section.
#
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
a8902 2
  case $ac_dest in
    default )
a8903 8
for cf_dir in test
do
	if test ! -d $srcdir/$cf_dir; then
		continue
	elif test -f $srcdir/$cf_dir/programs; then
		$AWK -f $srcdir/test/mk-test.awk ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
	fi
done
d8911 2
d8916 1
a8916 3
	if test ! -d $srcdir/$cf_dir ; then
		continue
	elif test -f $srcdir/$cf_dir/modules; then
d8921 1
a8921 1
		for cf_item in $cf_LIST_MODELS
d8923 2
a8924 1

d8934 1
a8934 6
		hpux*)
			case $target in
			ia64*)	cf_suffix='.so' ;;
			*)	cf_suffix='.sl' ;;
			esac
			;;
d8945 2
a8946 12
					darwin*)
					case .${LIB_SUFFIX} in
					.w*)
						cf_suffix=`echo $cf_suffix | sed 's/^w//'`
						cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
						;;
					*)
						cf_suffix='.${REL_VERSION}'"$cf_suffix"
						;;
					esac
					;; #(vi
					*) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
d8951 2
a8952 12
					darwin*)
					case .${LIB_SUFFIX} in
					.w*)
						cf_suffix=`echo $cf_suffix | sed 's/^w//'`
						cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
						;;
					*)
						cf_suffix='.${ABI_VERSION}'"$cf_suffix"
						;;
					esac
					;; #(vi
					*) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
a8957 2
			# use autodetected ${cf_prefix} for import lib and static lib, but
			# use 'cyg' prefix for shared lib.
d8959 3
a8961 3
				SHARED_LIB="cyg${cf_dir}\${ABI_VERSION}.dll"
				IMPORT_LIB="${cf_prefix}${cf_dir}.dll.a"
				LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/\${SHARED_LIB} ../lib/\${IMPORT_LIB}"
d8970 5
a8974 3
			cf_termlib=`echo "$cf_subsets" |sed -e 's/ .*$//'`
			if test "$cf_termlib" != "$cf_subsets" ; then
				cf_item=`echo $LIBS_TO_MAKE |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
d8976 2
a8977 1
			fi
d8979 1
a8979 1
			cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
d8982 3
a8984 3
		sed -e "s%@@LIBS_TO_MAKE@@%$LIBS_TO_MAKE%" \
		    -e "s%@@IMPORT_LIB@@%$IMPORT_LIB%" \
		    -e "s%@@SHARED_LIB@@%$SHARED_LIB%" \
d8995 1
a8995 1
			for cf_item in $cf_LIST_MODELS
d8998 2
d9001 2
a9002 2
cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`

d9012 1
a9012 6
		hpux*)
			case $target in
			ia64*)	cf_suffix='.so' ;;
			*)	cf_suffix='.sl' ;;
			esac
			;;
d9018 1
a9032 15
			# Test for case where we build libtinfo with a different name.
			cf_libname=$cf_dir
			if test $cf_dir = ncurses ; then
				case $cf_subset in
				*base*)
					;;
				termlib*)
					cf_libname=$TINFO_LIB_SUFFIX
					if test -n "${DFT_ARG_SUFFIX}" ; then
						# undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
						cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
					fi
				;;
				esac
			fi
d9040 1
a9040 1
				cf_reldir="\${srcdir}"
a9048 14
 			cf_dir_suffix=
 			old_cf_suffix="$cf_suffix"
 			if test "$cf_cv_shlib_version_infix" = yes ; then
			if test -n "$LIB_SUFFIX" ; then
				case $LIB_SUFFIX in
				w*)
					cf_libname=`echo $cf_libname | sed 's/w$//'`
					cf_suffix=`echo $cf_suffix | sed 's/^w//'`
					cf_dir_suffix=w
					;;
				esac
			fi
 			fi

d9050 1
a9050 1
				name=${cf_libname}${cf_dir_suffix} \
d9052 1
a9052 1
				MODEL=$cf_ITEM \
d9064 1
a9064 1
				host="$host" \
a9065 3

			cf_suffix="$old_cf_suffix"

d9074 1
a9074 1
				MODEL=$cf_ITEM \
a9078 2
				crenames=$cf_cv_prog_CC_c_o \
				cxxrenames=$cf_cv_prog_CXX_c_o \
d9085 1
a9085 1
	echo '	cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@@' >>Makefile
a9089 4
	if test ! -d $srcdir/$cf_dir ; then
		continue
	fi

d9096 1
a9096 1
			echo '	cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@@' >> Makefile
d9119 1
a9119 1
	cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@@
d9129 1
a9129 1
	cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@@
d9138 1
a9138 1
$MAKE_TERMINFO	cd misc && \${MAKE} \${CF_MFLAGS} \$@@
d9142 1
a9142 1
	cd man && \${MAKE} \${CF_MFLAGS} \$@@
d9147 1
a9147 1
	rm -rf \${DIRS_TO_MAKE}
d9157 1
a9157 1
	cd tack && \${MAKE} \${CF_MFLAGS} \$@@
d9162 1
a9183 1

a9199 1

a9243 4
	if test ! -d $srcdir/$cf_dir ; then
		continue
	fi

d9246 2
a9247 2
\${DESTDIR}\${includedir} :
	sh \${srcdir}/../mkinstalldirs \$@@
d9251 1
a9251 1
install.includes :: \${AUTO_SRC} \${DESTDIR}\${includedir} \\
a9258 1

a9259 1

d9262 2
a9263 2
			echo "	@@ (cd \${DESTDIR}\${includedir} && rm -f `basename $i`) ; ../headers.sh \${INSTALL_DATA} \${DESTDIR}\${includedir} \${srcdir} $i" >>$cf_dir/Makefile
			test $i = curses.h && test $WITH_CURSES_H = yes && echo "	@@ (cd \${DESTDIR}\${includedir} && rm -f ncurses.h && \${LN_S} curses.h ncurses.h)" >>$cf_dir/Makefile
d9275 2
a9276 2
			echo "	-@@ (cd \${DESTDIR}\${includedir} && rm -f $i)" >>$cf_dir/Makefile
			test $i = curses.h && echo "	-@@ (cd \${DESTDIR}\${includedir} && rm -f ncurses.h)" >>$cf_dir/Makefile
d9283 2
a9284 2
depend : ${AUTO_SRC}
	makedepend -- ${CPPFLAGS} -- ${C_SRC}
a9291 4
 ;;
  esac
done
EOF
a9292 1
cat >>$CONFIG_STATUS <<\EOF
d9294 1
a9294 1
{ (exit 0); exit 0; }
d9297 2
a9298 19
ac_clean_files=$ac_clean_files_save

# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || { (exit 1); exit 1; }
fi
@


1.1.1.7.14.2
log
@SVN rev 180142 on 2008-07-01 09:28:27Z by rafan

MFC ncurses 5.6-20080503

 rev 174993, 176187, 178866
@
text
@d2 1
a2 1
# From configure.in Revision: 1.433 .
d4 1
a4 1
# Generated by Autoconf 2.52.20080325.
a701 1
  --enable-mixed-case     tic should assume mixed-case filenames
a716 1
  --with-ticlib           generate separate tic library
a720 1
  --disable-relink        relink shared libraries during install
a731 1
  --disable-big-strings   assume compiler has only standard-size strings
d762 1
a762 1
  --enable-signed-char    compile using signed Boolean's in term.h
a774 2
  --with-pthread          use POSIX thread library
  --enable-reentrant      compile with experimental reentrant code
d865 1
a865 1
generated by GNU Autoconf 2.52.20080325.  Invocation command line was
d989 1
a989 1
    { echo "$as_me:995: loading site script $ac_site_file" >&5
d1000 1
a1000 1
    { echo "$as_me:1006: loading cache $cache_file" >&5
d1008 1
a1008 1
  { echo "$as_me:1014: creating cache $cache_file" >&5
d1024 1
a1024 1
      { echo "$as_me:1030: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
d1028 1
a1028 1
      { echo "$as_me:1034: error: \`$ac_var' was not set in the previous run" >&5
d1034 1
a1034 1
        { echo "$as_me:1040: error: \`$ac_var' has changed since the previous run:" >&5
d1036 1
a1036 1
        { echo "$as_me:1042:   former value:  $ac_old_val" >&5
d1038 1
a1038 1
        { echo "$as_me:1044:   current value: $ac_new_val" >&5
d1057 1
a1057 1
  { echo "$as_me:1063: error: changes in the environment can compromise the build" >&5
d1059 1
a1059 1
  { { echo "$as_me:1065: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
d1080 1
a1080 1
if { (echo "$as_me:1086: PATH=\".;.\"; conftest.sh") >&5
d1083 1
a1083 1
  echo "$as_me:1089: \$? = $ac_status" >&5
d1096 1
a1096 1
echo "$as_me:1102: checking for egrep" >&5
d1106 1
a1106 1
echo "$as_me:1112: result: $ac_cv_prog_egrep" >&5
d1110 1
a1110 1
test -z "$EGREP" && { { echo "$as_me:1116: error: No egrep program found" >&5
d1120 1
a1120 1
echo "$as_me:1126: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
d1128 1
a1128 1
  { echo "$as_me:1134: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
d1141 1
a1141 1
	{ { echo "$as_me:1147: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
d1147 1
a1147 1
  { { echo "$as_me:1153: error: Release major-version value is empty" >&5
d1157 1
a1157 1
	{ { echo "$as_me:1163: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
d1163 1
a1163 1
  { { echo "$as_me:1169: error: Release minor-version value is empty" >&5
d1173 1
a1173 1
  { echo "$as_me:1179: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
d1183 1
a1183 1
	{ { echo "$as_me:1189: error: ABI version is not a number: $cf_cv_abi_version" >&5
d1189 1
a1189 1
  { { echo "$as_me:1195: error: ABI version value is empty" >&5
d1211 1
a1211 1
  { { echo "$as_me:1217: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
d1221 1
a1221 1
  { { echo "$as_me:1227: error: cannot run $ac_config_sub" >&5
d1225 1
a1225 1
echo "$as_me:1231: checking build system type" >&5
d1234 1
a1234 1
  { { echo "$as_me:1240: error: cannot guess build type; you must specify one" >&5
d1238 1
a1238 1
  { { echo "$as_me:1244: error: $ac_config_sub $ac_cv_build_alias failed." >&5
d1243 1
a1243 1
echo "$as_me:1249: result: $ac_cv_build" >&5
d1250 1
a1250 1
echo "$as_me:1256: checking host system type" >&5
d1259 1
a1259 1
  { { echo "$as_me:1265: error: $ac_config_sub $ac_cv_host_alias failed" >&5
d1264 1
a1264 1
echo "$as_me:1270: result: $ac_cv_host" >&5
d1272 1
a1272 1
	echo "$as_me:1278: checking target system type" >&5
d1281 1
a1281 1
  { { echo "$as_me:1287: error: $ac_config_sub $ac_cv_target_alias failed" >&5
d1286 1
a1286 1
echo "$as_me:1292: result: $ac_cv_target" >&5
d1317 1
a1317 1
test -n "$cf_cv_system_name" && echo "$as_me:1323: result: Configuring for $cf_cv_system_name" >&5
d1321 1
a1321 1
	echo "$as_me:1327: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
d1323 1
a1323 1
	{ { echo "$as_me:1329: error: \"Please remove config.cache and try again.\"" >&5
d1331 1
a1331 1
  { echo "$as_me:1337: WARNING: overriding system type to $withval" >&5
d1341 1
a1341 1
echo "$as_me:1347: checking for prefix" >&5
d1353 1
a1353 1
echo "$as_me:1359: result: $prefix" >&5
d1357 1
a1357 1
echo "$as_me:1363: checking for default include-directory" >&5
d1380 1
a1380 1
echo "$as_me:1386: result: $includedir" >&5
d1394 1
a1394 1
echo "$as_me:1400: checking for $ac_word" >&5
d1409 1
a1409 1
echo "$as_me:1415: found $ac_dir/$ac_word" >&5
d1417 1
a1417 1
  echo "$as_me:1423: result: $CC" >&5
d1420 1
a1420 1
  echo "$as_me:1426: result: no" >&5
d1429 1
a1429 1
echo "$as_me:1435: checking for $ac_word" >&5
d1444 1
a1444 1
echo "$as_me:1450: found $ac_dir/$ac_word" >&5
d1452 1
a1452 1
  echo "$as_me:1458: result: $ac_ct_CC" >&5
d1455 1
a1455 1
  echo "$as_me:1461: result: no" >&5
d1468 1
a1468 1
echo "$as_me:1474: checking for $ac_word" >&5
d1483 1
a1483 1
echo "$as_me:1489: found $ac_dir/$ac_word" >&5
d1491 1
a1491 1
  echo "$as_me:1497: result: $CC" >&5
d1494 1
a1494 1
  echo "$as_me:1500: result: no" >&5
d1503 1
a1503 1
echo "$as_me:1509: checking for $ac_word" >&5
d1518 1
a1518 1
echo "$as_me:1524: found $ac_dir/$ac_word" >&5
d1526 1
a1526 1
  echo "$as_me:1532: result: $ac_ct_CC" >&5
d1529 1
a1529 1
  echo "$as_me:1535: result: no" >&5
d1542 1
a1542 1
echo "$as_me:1548: checking for $ac_word" >&5
d1562 1
a1562 1
echo "$as_me:1568: found $ac_dir/$ac_word" >&5
d1584 1
a1584 1
  echo "$as_me:1590: result: $CC" >&5
d1587 1
a1587 1
  echo "$as_me:1593: result: no" >&5
d1598 1
a1598 1
echo "$as_me:1604: checking for $ac_word" >&5
d1613 1
a1613 1
echo "$as_me:1619: found $ac_dir/$ac_word" >&5
d1621 1
a1621 1
  echo "$as_me:1627: result: $CC" >&5
d1624 1
a1624 1
  echo "$as_me:1630: result: no" >&5
d1637 1
a1637 1
echo "$as_me:1643: checking for $ac_word" >&5
d1652 1
a1652 1
echo "$as_me:1658: found $ac_dir/$ac_word" >&5
d1660 1
a1660 1
  echo "$as_me:1666: result: $ac_ct_CC" >&5
d1663 1
a1663 1
  echo "$as_me:1669: result: no" >&5
d1675 1
a1675 1
test -z "$CC" && { { echo "$as_me:1681: error: no acceptable cc found in \$PATH" >&5
d1680 1
a1680 1
echo "$as_me:1686:" \
d1683 1
a1683 1
{ (eval echo "$as_me:1689: \"$ac_compiler --version </dev/null >&5\"") >&5
d1686 1
a1686 1
  echo "$as_me:1692: \$? = $ac_status" >&5
d1688 1
a1688 1
{ (eval echo "$as_me:1694: \"$ac_compiler -v </dev/null >&5\"") >&5
d1691 1
a1691 1
  echo "$as_me:1697: \$? = $ac_status" >&5
d1693 1
a1693 1
{ (eval echo "$as_me:1699: \"$ac_compiler -V </dev/null >&5\"") >&5
d1696 1
a1696 1
  echo "$as_me:1702: \$? = $ac_status" >&5
d1700 1
a1700 1
#line 1706 "configure"
d1716 1
a1716 1
echo "$as_me:1722: checking for C compiler default output" >&5
d1719 1
a1719 1
if { (eval echo "$as_me:1725: \"$ac_link_default\"") >&5
d1722 1
a1722 1
  echo "$as_me:1728: \$? = $ac_status" >&5
d1745 1
a1745 1
{ { echo "$as_me:1751: error: C compiler cannot create executables" >&5
d1751 1
a1751 1
echo "$as_me:1757: result: $ac_file" >&5
d1756 1
a1756 1
echo "$as_me:1762: checking whether the C compiler works" >&5
d1762 1
a1762 1
  { (eval echo "$as_me:1768: \"$ac_try\"") >&5
d1765 1
a1765 1
  echo "$as_me:1771: \$? = $ac_status" >&5
d1772 1
a1772 1
	{ { echo "$as_me:1778: error: cannot run C compiled programs.
d1780 1
a1780 1
echo "$as_me:1786: result: yes" >&5
d1787 1
a1787 1
echo "$as_me:1793: checking whether we are cross compiling" >&5
d1789 1
a1789 1
echo "$as_me:1795: result: $cross_compiling" >&5
d1792 1
a1792 1
echo "$as_me:1798: checking for executable suffix" >&5
d1794 1
a1794 1
if { (eval echo "$as_me:1800: \"$ac_link\"") >&5
d1797 1
a1797 1
  echo "$as_me:1803: \$? = $ac_status" >&5
d1813 1
a1813 1
  { { echo "$as_me:1819: error: cannot compute EXEEXT: cannot compile and link" >&5
d1819 1
a1819 1
echo "$as_me:1825: result: $ac_cv_exeext" >&5
d1825 1
a1825 1
echo "$as_me:1831: checking for object suffix" >&5
d1831 1
a1831 1
#line 1837 "configure"
d1843 1
a1843 1
if { (eval echo "$as_me:1849: \"$ac_compile\"") >&5
d1846 1
a1846 1
  echo "$as_me:1852: \$? = $ac_status" >&5
d1858 1
a1858 1
{ { echo "$as_me:1864: error: cannot compute OBJEXT: cannot compile" >&5
d1865 1
a1865 1
echo "$as_me:1871: result: $ac_cv_objext" >&5
d1869 1
a1869 1
echo "$as_me:1875: checking whether we are using the GNU C compiler" >&5
d1875 1
a1875 1
#line 1881 "configure"
d1890 1
a1890 1
if { (eval echo "$as_me:1896: \"$ac_compile\"") >&5
d1893 1
a1893 1
  echo "$as_me:1899: \$? = $ac_status" >&5
d1896 1
a1896 1
  { (eval echo "$as_me:1902: \"$ac_try\"") >&5
d1899 1
a1899 1
  echo "$as_me:1905: \$? = $ac_status" >&5
d1911 1
a1911 1
echo "$as_me:1917: result: $ac_cv_c_compiler_gnu" >&5
d1917 1
a1917 1
echo "$as_me:1923: checking whether $CC accepts -g" >&5
d1923 1
a1923 1
#line 1929 "configure"
d1935 1
a1935 1
if { (eval echo "$as_me:1941: \"$ac_compile\"") >&5
d1938 1
a1938 1
  echo "$as_me:1944: \$? = $ac_status" >&5
d1941 1
a1941 1
  { (eval echo "$as_me:1947: \"$ac_try\"") >&5
d1944 1
a1944 1
  echo "$as_me:1950: \$? = $ac_status" >&5
d1954 1
a1954 1
echo "$as_me:1960: result: $ac_cv_prog_cc_g" >&5
d1981 1
a1981 1
if { (eval echo "$as_me:1987: \"$ac_compile\"") >&5
d1984 1
a1984 1
  echo "$as_me:1990: \$? = $ac_status" >&5
d1987 1
a1987 1
  { (eval echo "$as_me:1993: \"$ac_try\"") >&5
d1990 1
a1990 1
  echo "$as_me:1996: \$? = $ac_status" >&5
d2002 1
a2002 1
#line 2008 "configure"
d2015 1
a2015 1
if { (eval echo "$as_me:2021: \"$ac_compile\"") >&5
d2018 1
a2018 1
  echo "$as_me:2024: \$? = $ac_status" >&5
d2021 1
a2021 1
  { (eval echo "$as_me:2027: \"$ac_try\"") >&5
d2024 1
a2024 1
  echo "$as_me:2030: \$? = $ac_status" >&5
d2034 1
a2034 1
#line 2040 "configure"
d2046 1
a2046 1
if { (eval echo "$as_me:2052: \"$ac_compile\"") >&5
d2049 1
a2049 1
  echo "$as_me:2055: \$? = $ac_status" >&5
d2052 1
a2052 1
  { (eval echo "$as_me:2058: \"$ac_try\"") >&5
d2055 1
a2055 1
  echo "$as_me:2061: \$? = $ac_status" >&5
d2085 1
a2085 1
	echo "$as_me:2091: checking version of $CC" >&5
d2089 1
a2089 1
	echo "$as_me:2095: result: $GCC_VERSION" >&5
d2099 1
a2099 1
echo "$as_me:2105: checking how to run the C preprocessor" >&5
d2120 1
a2120 1
#line 2126 "configure"
d2125 1
a2125 1
if { (eval echo "$as_me:2131: \"$ac_cpp conftest.$ac_ext\"") >&5
d2131 1
a2131 1
  echo "$as_me:2137: \$? = $ac_status" >&5
d2154 1
a2154 1
#line 2160 "configure"
d2158 1
a2158 1
if { (eval echo "$as_me:2164: \"$ac_cpp conftest.$ac_ext\"") >&5
d2164 1
a2164 1
  echo "$as_me:2170: \$? = $ac_status" >&5
d2201 1
a2201 1
echo "$as_me:2207: result: $CPP" >&5
d2211 1
a2211 1
#line 2217 "configure"
d2216 1
a2216 1
if { (eval echo "$as_me:2222: \"$ac_cpp conftest.$ac_ext\"") >&5
d2222 1
a2222 1
  echo "$as_me:2228: \$? = $ac_status" >&5
d2245 1
a2245 1
#line 2251 "configure"
d2249 1
a2249 1
if { (eval echo "$as_me:2255: \"$ac_cpp conftest.$ac_ext\"") >&5
d2255 1
a2255 1
  echo "$as_me:2261: \$? = $ac_status" >&5
d2283 1
a2283 1
  { { echo "$as_me:2289: error: C preprocessor \"$CPP\" fails sanity check" >&5
d2296 1
a2296 1
    echo "$as_me:2302: checking whether $CC needs -traditional" >&5
d2303 1
a2303 1
#line 2309 "configure"
d2318 1
a2318 1
#line 2324 "configure"
d2331 1
a2331 1
echo "$as_me:2337: result: $ac_cv_prog_gcc_traditional" >&5
d2338 1
a2338 1
echo "$as_me:2344: checking whether $CC understands -c and -o together" >&5
d2354 1
a2354 1
if { (eval echo "$as_me:2360: \"$ac_try\"") >&5
d2357 1
a2357 1
  echo "$as_me:2363: \$? = $ac_status" >&5
d2359 1
a2359 1
  test -f conftest2.$ac_objext && { (eval echo "$as_me:2365: \"$ac_try\"") >&5
d2362 1
a2362 1
  echo "$as_me:2368: \$? = $ac_status" >&5
d2373 1
a2373 1
  echo "$as_me:2379: result: yes" >&5
d2376 1
a2376 1
  echo "$as_me:2382: result: no" >&5
d2380 1
a2380 1
echo "$as_me:2386: checking for POSIXized ISC" >&5
d2385 1
a2385 1
  echo "$as_me:2391: result: yes" >&5
d2399 1
a2399 1
  echo "$as_me:2405: result: no" >&5
d2404 1
a2404 1
echo "$as_me:2410: checking for ${CC-cc} option to accept ANSI C" >&5
d2498 1
a2498 1
#line 2504 "configure"
d2519 1
a2519 1
if { (eval echo "$as_me:2525: \"$ac_compile\"") >&5
d2522 1
a2522 1
  echo "$as_me:2528: \$? = $ac_status" >&5
d2525 1
a2525 1
  { (eval echo "$as_me:2531: \"$ac_try\"") >&5
d2528 1
a2528 1
  echo "$as_me:2534: \$? = $ac_status" >&5
d2541 1
a2541 1
echo "$as_me:2547: result: $cf_cv_ansi_cc" >&5
d2624 1
a2624 1
	{ { echo "$as_me:2630: error: Your compiler does not appear to recognize prototypes.
d2664 1
a2664 1
echo "$as_me:2670: checking for $ac_word" >&5
d2681 1
a2681 1
   echo "$as_me:2687: found $ac_dir/$ac_word" >&5
d2692 1
a2692 1
  echo "$as_me:2698: result: $LDCONFIG" >&5
d2695 1
a2695 1
  echo "$as_me:2701: result: no" >&5
d2703 1
a2703 1
echo "$as_me:2709: checking if you want to ensure bool is consistent with C++" >&5
d2713 1
a2713 1
echo "$as_me:2719: result: $cf_with_cxx" >&5
d2731 1
a2731 1
echo "$as_me:2737: checking for $ac_word" >&5
d2746 1
a2746 1
echo "$as_me:2752: found $ac_dir/$ac_word" >&5
d2754 1
a2754 1
  echo "$as_me:2760: result: $CXX" >&5
d2757 1
a2757 1
  echo "$as_me:2763: result: no" >&5
d2770 1
a2770 1
echo "$as_me:2776: checking for $ac_word" >&5
d2785 1
a2785 1
echo "$as_me:2791: found $ac_dir/$ac_word" >&5
d2793 1
a2793 1
  echo "$as_me:2799: result: $ac_ct_CXX" >&5
d2796 1
a2796 1
  echo "$as_me:2802: result: no" >&5
d2808 1
a2808 1
echo "$as_me:2814:" \
d2811 1
a2811 1
{ (eval echo "$as_me:2817: \"$ac_compiler --version </dev/null >&5\"") >&5
d2814 1
a2814 1
  echo "$as_me:2820: \$? = $ac_status" >&5
d2816 1
a2816 1
{ (eval echo "$as_me:2822: \"$ac_compiler -v </dev/null >&5\"") >&5
d2819 1
a2819 1
  echo "$as_me:2825: \$? = $ac_status" >&5
d2821 1
a2821 1
{ (eval echo "$as_me:2827: \"$ac_compiler -V </dev/null >&5\"") >&5
d2824 1
a2824 1
  echo "$as_me:2830: \$? = $ac_status" >&5
d2827 1
a2827 1
echo "$as_me:2833: checking whether we are using the GNU C++ compiler" >&5
d2833 1
a2833 1
#line 2839 "configure"
d2848 1
a2848 1
if { (eval echo "$as_me:2854: \"$ac_compile\"") >&5
d2851 1
a2851 1
  echo "$as_me:2857: \$? = $ac_status" >&5
d2854 1
a2854 1
  { (eval echo "$as_me:2860: \"$ac_try\"") >&5
d2857 1
a2857 1
  echo "$as_me:2863: \$? = $ac_status" >&5
d2869 1
a2869 1
echo "$as_me:2875: result: $ac_cv_cxx_compiler_gnu" >&5
d2875 1
a2875 1
echo "$as_me:2881: checking whether $CXX accepts -g" >&5
d2881 1
a2881 1
#line 2887 "configure"
d2893 1
a2893 1
if { (eval echo "$as_me:2899: \"$ac_compile\"") >&5
d2896 1
a2896 1
  echo "$as_me:2902: \$? = $ac_status" >&5
d2899 1
a2899 1
  { (eval echo "$as_me:2905: \"$ac_try\"") >&5
d2902 1
a2902 1
  echo "$as_me:2908: \$? = $ac_status" >&5
d2912 1
a2912 1
echo "$as_me:2918: result: $ac_cv_prog_cxx_g" >&5
d2939 1
a2939 1
#line 2945 "configure"
d2952 1
a2952 1
if { (eval echo "$as_me:2958: \"$ac_compile\"") >&5
d2955 1
a2955 1
  echo "$as_me:2961: \$? = $ac_status" >&5
d2958 1
a2958 1
  { (eval echo "$as_me:2964: \"$ac_try\"") >&5
d2961 1
a2961 1
  echo "$as_me:2967: \$? = $ac_status" >&5
d2971 1
a2971 1
#line 2977 "configure"
d2983 1
a2983 1
if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5
d2986 1
a2986 1
  echo "$as_me:2992: \$? = $ac_status" >&5
d2989 1
a2989 1
  { (eval echo "$as_me:2995: \"$ac_try\"") >&5
d2992 1
a2992 1
  echo "$as_me:2998: \$? = $ac_status" >&5
d3019 1
a3019 1
echo "$as_me:3025: checking for $ac_word" >&5
d3036 1
a3036 1
   echo "$as_me:3042: found $ac_dir/$ac_word" >&5
d3047 1
a3047 1
  echo "$as_me:3053: result: $CXX" >&5
d3050 1
a3050 1
  echo "$as_me:3056: result: no" >&5
d3056 1
a3056 1
		{ echo "$as_me:3062: WARNING: ignoring hardcoded g++" >&5
d3064 1
a3064 1
	echo "$as_me:3070: checking version of g++" >&5
d3068 1
a3068 1
	echo "$as_me:3074: result: $GXX_VERSION" >&5
d3076 1
a3076 1
	{ echo "$as_me:3082: WARNING: templates do not work" >&5
d3081 1
a3081 1
echo "$as_me:3087: checking if you want to build C++ binding and demo" >&5
d3091 1
a3091 1
echo "$as_me:3097: result: $cf_with_cxx_binding" >&5
d3094 1
a3094 1
echo "$as_me:3100: checking if you want to build with Ada95" >&5
d3104 1
a3104 1
echo "$as_me:3110: result: $cf_with_ada" >&5
d3107 1
a3107 1
echo "$as_me:3113: checking if you want to build programs such as tic" >&5
d3117 1
a3117 1
echo "$as_me:3123: result: $cf_with_progs" >&5
d3120 1
a3120 1
echo "$as_me:3126: checking if you wish to install curses.h" >&5
d3130 1
a3130 1
echo "$as_me:3136: result: $with_curses_h" >&5
d3156 1
a3156 1
echo "$as_me:3162: checking for $ac_word" >&5
d3171 1
a3171 1
echo "$as_me:3177: found $ac_dir/$ac_word" >&5
d3179 1
a3179 1
  echo "$as_me:3185: result: $AWK" >&5
d3182 1
a3182 1
  echo "$as_me:3188: result: no" >&5
d3189 1
a3189 1
test -z "$AWK" && { { echo "$as_me:3195: error: No awk program found" >&5
d3193 1
a3193 1
echo "$as_me:3199: checking for egrep" >&5
d3203 1
a3203 1
echo "$as_me:3209: result: $ac_cv_prog_egrep" >&5
d3207 1
a3207 1
test -z "$EGREP" && { { echo "$as_me:3213: error: No egrep program found" >&5
d3223 1
a3223 1
echo "$as_me:3229: checking for a BSD compatible install" >&5
d3272 1
a3272 1
echo "$as_me:3278: result: $INSTALL" >&5
d3297 1
a3297 1
echo "$as_me:3303: checking for $ac_word" >&5
d3312 1
a3312 1
echo "$as_me:3318: found $ac_dir/$ac_word" >&5
d3320 1
a3320 1
  echo "$as_me:3326: result: $LINT" >&5
d3323 1
a3323 1
  echo "$as_me:3329: result: no" >&5
d3330 1
a3330 1
echo "$as_me:3336: checking whether ln -s works" >&5
d3334 1
a3334 1
  echo "$as_me:3340: result: yes" >&5
d3337 1
a3337 1
  echo "$as_me:3343: result: no, using $LN_S" >&5
d3341 4
a3344 3
echo "$as_me:3347: checking for long file names" >&5
echo $ECHO_N "checking for long file names... $ECHO_C" >&6
if test "${ac_cv_sys_long_file_names+set}" = set; then
d3347 8
a3354 13
  ac_cv_sys_long_file_names=yes
# Test for long file names in all the places we know might matter:
#      .		the current directory, where building will happen
#      $prefix/lib	where we will be installing things
#      $exec_prefix/lib	likewise
# eval it to expand exec_prefix.
#      $TMPDIR		if set, where it might want to write temporary files
# if $TMPDIR is not set:
#      /tmp		where it might want to write temporary files
#      /var/tmp		likewise
#      /usr/tmp		likewise
if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
  ac_tmpdirs=$TMPDIR
d3356 1
a3356 1
  ac_tmpdirs='/tmp /var/tmp /usr/tmp'
d3358 1
a3358 17
for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
  test -d $ac_dir || continue
  test -w $ac_dir || continue # It is less confusing to not echo anything here.
  ac_xdir=$ac_dir/cf$$
  (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
  ac_tf1=$ac_xdir/conftest9012345
  ac_tf2=$ac_xdir/conftest9012346
  (echo 1 >$ac_tf1) 2>/dev/null
  (echo 2 >$ac_tf2) 2>/dev/null
  ac_val=`cat $ac_tf1 2>/dev/null`
  if test ! -f $ac_tf1 || test "$ac_val" != 1; then
    ac_cv_sys_long_file_names=no
    rm -rf $ac_xdir 2>/dev/null
    break
  fi
  rm -rf $ac_xdir 2>/dev/null
done
d3360 8
a3367 8
echo "$as_me:3386: result: $ac_cv_sys_long_file_names" >&5
echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
if test $ac_cv_sys_long_file_names = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_LONG_FILE_NAMES 1
EOF

d3370 1
a3370 15
echo "$as_me:3396: checking if we should assume mixed-case filenames" >&5
echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6

# Check whether --enable-mixed-case or --disable-mixed-case was given.
if test "${enable_mixed_case+set}" = set; then
  enableval="$enable_mixed_case"
  enable_mixedcase=$enableval
else
  enable_mixedcase=auto
fi;
echo "$as_me:3406: result: $enable_mixedcase" >&5
echo "${ECHO_T}$enable_mixedcase" >&6
if test "$enable_mixedcase" = "auto" ; then

echo "$as_me:3410: checking if filesystem supports mixed-case filenames" >&5
d3397 1
a3397 1
echo "$as_me:3437: result: $cf_cv_mixedcase" >&5
a3402 40
else
    cf_cv_mixedcase=$enable_mixedcase
    if test "$enable_mixedcase" = "yes" ; then
        cat >>confdefs.h <<\EOF
#define MIXEDCASE_FILENAMES 1
EOF

    fi
fi

# do this after mixed-case option (tags/TAGS is not as important as tic).
echo "$as_me:3454: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.make <<\EOF
all:
	@@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
else
  eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftest.make
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$as_me:3474: result: yes" >&5
echo "${ECHO_T}yes" >&6
  SET_MAKE=
else
  echo "$as_me:3478: result: no" >&5
echo "${ECHO_T}no" >&6
  SET_MAKE="MAKE=${MAKE-make}"
fi

d3405 1
a3405 1
echo "$as_me:3485: checking for $ac_word" >&5
d3420 1
a3420 1
echo "$as_me:3500: found $ac_dir/$ac_word" >&5
d3429 1
a3429 1
  echo "$as_me:3509: result: $MAKE_LOWER_TAGS" >&5
d3432 1
a3432 1
  echo "$as_me:3512: result: no" >&5
d3439 1
a3439 1
echo "$as_me:3519: checking for $ac_word" >&5
d3454 1
a3454 1
echo "$as_me:3534: found $ac_dir/$ac_word" >&5
d3463 1
a3463 1
  echo "$as_me:3543: result: $MAKE_UPPER_TAGS" >&5
d3466 1
a3466 1
  echo "$as_me:3546: result: no" >&5
d3486 1
a3486 1
echo "$as_me:3566: checking for makeflags variable" >&5
d3520 1
a3520 1
echo "$as_me:3600: result: $cf_cv_makeflags" >&5
d3523 82
d3608 1
a3608 1
echo "$as_me:3606: checking for $ac_word" >&5
d3623 1
a3623 1
echo "$as_me:3621: found $ac_dir/$ac_word" >&5
d3631 1
a3631 1
  echo "$as_me:3629: result: $RANLIB" >&5
d3634 1
a3634 1
  echo "$as_me:3632: result: no" >&5
d3643 1
a3643 1
echo "$as_me:3641: checking for $ac_word" >&5
d3658 1
a3658 1
echo "$as_me:3656: found $ac_dir/$ac_word" >&5
d3667 1
a3667 1
  echo "$as_me:3665: result: $ac_ct_RANLIB" >&5
d3670 1
a3670 1
  echo "$as_me:3668: result: no" >&5
d3682 1
a3682 1
echo "$as_me:3680: checking for $ac_word" >&5
d3697 1
a3697 1
echo "$as_me:3695: found $ac_dir/$ac_word" >&5
d3705 1
a3705 1
  echo "$as_me:3703: result: $LD" >&5
d3708 1
a3708 1
  echo "$as_me:3706: result: no" >&5
d3717 1
a3717 1
echo "$as_me:3715: checking for $ac_word" >&5
d3732 1
a3732 1
echo "$as_me:3730: found $ac_dir/$ac_word" >&5
d3741 1
a3741 1
  echo "$as_me:3739: result: $ac_ct_LD" >&5
d3744 1
a3744 1
  echo "$as_me:3742: result: no" >&5
d3756 1
a3756 1
echo "$as_me:3754: checking for $ac_word" >&5
d3771 1
a3771 1
echo "$as_me:3769: found $ac_dir/$ac_word" >&5
d3779 1
a3779 1
  echo "$as_me:3777: result: $AR" >&5
d3782 1
a3782 1
  echo "$as_me:3780: result: no" >&5
d3791 1
a3791 1
echo "$as_me:3789: checking for $ac_word" >&5
d3806 1
a3806 1
echo "$as_me:3804: found $ac_dir/$ac_word" >&5
d3815 1
a3815 1
  echo "$as_me:3813: result: $ac_ct_AR" >&5
d3818 1
a3818 1
  echo "$as_me:3816: result: no" >&5
d3831 1
a3831 1
echo "$as_me:3829: checking for archiver options (symbol AR_OPTS)" >&5
d3840 1
a3840 1
echo "$as_me:3838: result: $AR_OPTS" >&5
d3845 1
a3845 1
echo "$as_me:3843: checking if you have specified an install-prefix" >&5
d3858 1
a3858 1
echo "$as_me:3856: result: $DESTDIR" >&5
d3886 1
a3886 1
echo "$as_me:3884: checking for $ac_word" >&5
d3901 1
a3901 1
echo "$as_me:3899: found $ac_dir/$ac_word" >&5
d3909 1
a3909 1
  echo "$as_me:3907: result: $BUILD_CC" >&5
d3912 1
a3912 1
  echo "$as_me:3910: result: no" >&5
d3920 1
a3920 1
	echo "$as_me:3918: checking for native build C compiler" >&5
d3922 1
a3922 1
	echo "$as_me:3920: result: $BUILD_CC" >&5
d3925 1
a3925 1
	echo "$as_me:3923: checking for native build C preprocessor" >&5
d3935 1
a3935 1
	echo "$as_me:3933: result: $BUILD_CPP" >&5
d3938 1
a3938 1
	echo "$as_me:3936: checking for native build C flags" >&5
d3946 1
a3946 1
	echo "$as_me:3944: result: $BUILD_CFLAGS" >&5
d3949 1
a3949 1
	echo "$as_me:3947: checking for native build C preprocessor-flags" >&5
d3957 1
a3957 1
	echo "$as_me:3955: result: $BUILD_CPPFLAGS" >&5
d3960 1
a3960 1
	echo "$as_me:3958: checking for native build linker-flags" >&5
d3968 1
a3968 1
	echo "$as_me:3966: result: $BUILD_LDFLAGS" >&5
d3971 1
a3971 1
	echo "$as_me:3969: checking for native build linker-libraries" >&5
d3979 1
a3979 1
	echo "$as_me:3977: result: $BUILD_LIBS" >&5
d3989 1
a3989 1
		{ { echo "$as_me:3987: error: Cross-build requires two compilers.
d4026 1
a4026 1
LIB_LINK='${CC}'
d4030 1
a4030 1
echo "$as_me:4028: checking if you want to build libraries with libtool" >&5
d4040 1
a4040 1
echo "$as_me:4038: result: $with_libtool" >&5
d4071 1
a4071 1
  { { echo "$as_me:4069: error: expected a pathname, not \"$with_libtool\"" >&5
d4081 1
a4081 1
echo "$as_me:4079: checking for $ac_word" >&5
d4098 1
a4098 1
   echo "$as_me:4096: found $ac_dir/$ac_word" >&5
d4109 1
a4109 1
  echo "$as_me:4107: result: $LIBTOOL" >&5
d4112 1
a4112 1
  echo "$as_me:4110: result: no" >&5
d4118 1
a4118 1
 		{ { echo "$as_me:4116: error: Cannot find libtool" >&5
d4122 2
a4123 2
	LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} -o'
	LIB_OBJECT='${OBJECTS:.o=.lo}'
d4127 1
a4127 1
	LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
d4133 1
a4133 1
	echo "$as_me:4131: checking version of libtool" >&5
d4139 2
a4140 2
	cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
	echo "$as_me:4138: result: $cf_cv_libtool_version" >&5
d4143 2
a4144 2
		{ { echo "$as_me:4141: error: This is not GNU libtool" >&5
echo "$as_me: error: This is not GNU libtool" >&2;}
a4151 1
		LIBTOOL="$LIBTOOL --tag=CC"
d4170 1
a4170 1
echo "$as_me:4169: checking if you want to build shared libraries" >&5
d4180 1
a4180 1
echo "$as_me:4179: result: $with_shared" >&5
d4184 1
a4184 1
echo "$as_me:4183: checking if you want to build static libraries" >&5
d4194 1
a4194 1
echo "$as_me:4193: result: $with_normal" >&5
d4198 1
a4198 1
echo "$as_me:4197: checking if you want to build debug libraries" >&5
d4208 1
a4208 1
echo "$as_me:4207: result: $with_debug" >&5
d4212 1
a4212 1
echo "$as_me:4211: checking if you want to build profiling libraries" >&5
d4222 1
a4222 1
echo "$as_me:4221: result: $with_profile" >&5
d4230 1
a4230 1
echo "$as_me:4229: checking for specified models" >&5
d4234 1
a4234 1
echo "$as_me:4233: result: $cf_list_models" >&5
d4239 1
a4239 1
echo "$as_me:4238: checking for default model" >&5
d4242 1
a4242 1
echo "$as_me:4241: result: $DFT_LWR_MODEL" >&5
a4246 2
TICS_NAME=tic

d4267 1
a4267 1
echo "$as_me:4268: checking if you want to build a separate terminfo library" >&5
d4277 1
a4277 1
echo "$as_me:4278: result: $with_termlib" >&5
a4279 13
echo "$as_me:4281: checking if you want to build a separate tic library" >&5
echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6

# Check whether --with-ticlib or --without-ticlib was given.
if test "${with_ticlib+set}" = set; then
  withval="$with_ticlib"
  with_ticlib=$withval
else
  with_ticlib=no
fi;
echo "$as_me:4291: result: $with_ticlib" >&5
echo "${ECHO_T}$with_ticlib" >&6

d4283 1
a4283 1
echo "$as_me:4297: checking if you want to link with the GPM mouse library" >&5
d4293 1
a4293 1
echo "$as_me:4307: result: $with_gpm" >&5
d4297 1
a4297 1
	echo "$as_me:4311: checking for gpm.h" >&5
d4303 1
a4303 1
#line 4317 "configure"
d4307 1
a4307 1
if { (eval echo "$as_me:4321: \"$ac_cpp conftest.$ac_ext\"") >&5
d4313 1
a4313 1
  echo "$as_me:4327: \$? = $ac_status" >&5
d4332 1
a4332 1
echo "$as_me:4346: result: $ac_cv_header_gpm_h" >&5
a4342 2
echo "${as_me-configure}:4357: testing assuming we really have GPM library ..." 1>&5

d4348 1
a4348 1
			echo "$as_me:4364: checking for Gpm_Open in -lgpm" >&5
d4356 1
a4356 1
#line 4372 "configure"
d4375 1
a4375 1
if { (eval echo "$as_me:4391: \"$ac_link\"") >&5
d4378 1
a4378 1
  echo "$as_me:4394: \$? = $ac_status" >&5
d4381 1
a4381 1
  { (eval echo "$as_me:4397: \"$ac_try\"") >&5
d4384 1
a4384 1
  echo "$as_me:4400: \$? = $ac_status" >&5
d4395 1
a4395 1
echo "$as_me:4411: result: $ac_cv_lib_gpm_Gpm_Open" >&5
d4401 1
a4401 1
				{ { echo "$as_me:4417: error: Cannot link with GPM library" >&5
d4411 1
a4411 1
		test "$with_gpm" != maybe && { echo "$as_me:4427: WARNING: Cannot find GPM header" >&5
d4420 1
a4420 1
	echo "$as_me:4436: checking if you want to load GPM dynamically" >&5
d4430 1
a4430 1
	echo "$as_me:4446: result: $with_dlsym" >&5
d4435 1
a4435 1
echo "$as_me:4451: checking for dlsym" >&5
d4441 1
a4441 1
#line 4457 "configure"
d4472 1
a4472 1
if { (eval echo "$as_me:4488: \"$ac_link\"") >&5
d4475 1
a4475 1
  echo "$as_me:4491: \$? = $ac_status" >&5
d4478 1
a4478 1
  { (eval echo "$as_me:4494: \"$ac_try\"") >&5
d4481 1
a4481 1
  echo "$as_me:4497: \$? = $ac_status" >&5
d4491 1
a4491 1
echo "$as_me:4507: result: $ac_cv_func_dlsym" >&5
d4498 1
a4498 1
echo "$as_me:4514: checking for dlsym in -ldl" >&5
d4506 1
a4506 1
#line 4522 "configure"
d4525 1
a4525 1
if { (eval echo "$as_me:4541: \"$ac_link\"") >&5
d4528 1
a4528 1
  echo "$as_me:4544: \$? = $ac_status" >&5
d4531 1
a4531 1
  { (eval echo "$as_me:4547: \"$ac_try\"") >&5
d4534 1
a4534 1
  echo "$as_me:4550: \$? = $ac_status" >&5
d4545 1
a4545 1
echo "$as_me:4561: result: $ac_cv_lib_dl_dlsym" >&5
d4558 1
a4558 1
	echo "$as_me:4574: checking whether able to link to dl*() functions" >&5
d4561 1
a4561 1
#line 4577 "configure"
d4579 1
a4579 1
if { (eval echo "$as_me:4595: \"$ac_link\"") >&5
d4582 1
a4582 1
  echo "$as_me:4598: \$? = $ac_status" >&5
d4585 1
a4585 1
  { (eval echo "$as_me:4601: \"$ac_try\"") >&5
d4588 1
a4588 1
  echo "$as_me:4604: \$? = $ac_status" >&5
d4599 1
a4599 1
		{ { echo "$as_me:4615: error: Cannot link test program for libdl" >&5
d4604 1
a4604 1
	echo "$as_me:4620: result: ok" >&5
d4607 1
a4607 1
	{ { echo "$as_me:4623: error: Cannot find dlsym function" >&5
a4614 2
echo "${as_me-configure}:4631: testing assuming soname for gpm is $with_gpm ..." 1>&5

d4618 1
a4618 1
echo "$as_me:4636: checking for soname of gpm library" >&5
d4636 1
a4636 1
	if { (eval echo "$as_me:4654: \"$ac_compile\"") >&5
d4639 1
a4639 1
  echo "$as_me:4657: \$? = $ac_status" >&5
d4641 1
a4641 1
		if { (eval echo "$as_me:4659: \"$ac_link\"") >&5
d4644 1
a4644 1
  echo "$as_me:4662: \$? = $ac_status" >&5
d4655 1
a4655 1
echo "$as_me:4673: result: $cf_cv_gpm_soname" >&5
d4671 1
a4671 1
echo "$as_me:4689: checking for Gpm_Wgetch in -lgpm" >&5
d4679 1
a4679 1
#line 4697 "configure"
d4698 1
a4698 1
if { (eval echo "$as_me:4716: \"$ac_link\"") >&5
d4701 1
a4701 1
  echo "$as_me:4719: \$? = $ac_status" >&5
d4704 1
a4704 1
  { (eval echo "$as_me:4722: \"$ac_try\"") >&5
d4707 1
a4707 1
  echo "$as_me:4725: \$? = $ac_status" >&5
d4718 1
a4718 1
echo "$as_me:4736: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
d4722 1
a4722 49
echo "$as_me:4740: checking if GPM is weakly bound to curses library" >&5
echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
if test "${cf_cv_check_gpm_wgetch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_check_gpm_wgetch=unknown
if test "$cross_compiling" != yes ; then

cat >conftest.$ac_ext <<CF_EOF
#include <gpm.h>
int main()
{
	Gpm_Wgetch();
	${cf_cv_main_return:-return}(0);
}
CF_EOF

	cf_save_LIBS="$LIBS"
	# This only works if we can look at the symbol table.  If a shared
	# library is stripped for install, we cannot use that.  So we're forced
	# to rely on the static library, noting that some packagers may not
	# include it.
	LIBS="-static -lgpm -dynamic $LIBS"
	if { (eval echo "$as_me:4764: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4767: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
		if { (eval echo "$as_me:4769: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4772: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
			cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
			test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
			test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
		fi
	fi
	rm -f conftest*
	LIBS="$cf_save_LIBS"
fi

fi
echo "$as_me:4784: result: $cf_cv_check_gpm_wgetch" >&5
echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6

if test "$cf_cv_check_gpm_wgetch" != yes ; then
	{ echo "$as_me:4788: WARNING: GPM library is already linked with curses - read the FAQ" >&5
a4723 1
fi
d4731 1
a4731 1
echo "$as_me:4798: checking if you want to use sysmouse" >&5
d4743 1
a4743 1
#line 4810 "configure"
d4766 1
a4766 1
if { (eval echo "$as_me:4833: \"$ac_compile\"") >&5
d4769 1
a4769 1
  echo "$as_me:4836: \$? = $ac_status" >&5
d4772 1
a4772 1
  { (eval echo "$as_me:4839: \"$ac_try\"") >&5
d4775 1
a4775 1
  echo "$as_me:4842: \$? = $ac_status" >&5
d4785 1
a4785 1
echo "$as_me:4852: result: $cf_with_sysmouse" >&5
d4803 1
a4803 1
echo "$as_me:4870: checking for default loader flags" >&5
d4812 1
a4812 1
echo "$as_me:4879: result: $LD_MODEL" >&5
d4815 1
a4815 3
case $DFT_LWR_MODEL in
shared)
echo "$as_me:4884: checking if rpath option should be used" >&5
d4825 1
a4825 1
echo "$as_me:4894: result: $cf_cv_ld_rpath" >&5
a4826 14
echo "$as_me:4896: checking if shared libraries should be relinked during install" >&5
echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6

# Check whether --enable-relink or --disable-relink was given.
if test "${enable_relink+set}" = set; then
  enableval="$enable_relink"
  cf_cv_do_relink=$enableval
else
  cf_cv_do_relink=yes
fi;
echo "$as_me:4906: result: $cf_cv_do_relink" >&5
echo "${ECHO_T}$cf_cv_do_relink" >&6
	;;
esac
d4835 1
a4835 1
	echo "$as_me:4918: checking if release/abi version should be used for shared libs" >&5
d4850 1
a4850 1
		{ { echo "$as_me:4933: error: option value must be one of: rel, abi, auto or no" >&5
d4859 1
a4859 1
	echo "$as_me:4942: result: $cf_cv_shlib_version" >&5
d4868 1
a4868 1
		echo "$as_me:4951: checking which $CC option to use" >&5
d4875 1
a4875 1
#line 4958 "configure"
d4887 1
a4887 1
if { (eval echo "$as_me:4970: \"$ac_compile\"") >&5
d4890 1
a4890 1
  echo "$as_me:4973: \$? = $ac_status" >&5
d4893 1
a4893 1
  { (eval echo "$as_me:4976: \"$ac_try\"") >&5
d4896 1
a4896 1
  echo "$as_me:4979: \$? = $ac_status" >&5
d4905 1
a4905 1
		echo "$as_me:4988: result: $CC_SHARED_OPTS" >&5
d4918 1
a4918 1
		MK_SHARED_LIB='sh ../mk_shared_lib.sh $@@ ${CC} ${CFLAGS}'
a4920 13
		cat >mk_shared_lib.sh <<-CF_EOF
		#!/bin/sh
		SHARED_LIB=\$1
		IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
		shift
		cat <<-EOF
		Linking shared library
		** SHARED_LIB \$SHARED_LIB
		** IMPORT_LIB \$IMPORT_LIB
EOF
		exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
CF_EOF
		chmod +x mk_shared_lib.sh
d4925 1
a4925 1
		MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@@'
d4928 1
a4928 1
		echo "$as_me:5024: checking if ld -search_paths_first works" >&5
d4937 1
a4937 1
#line 5033 "configure"
d4949 1
a4949 1
if { (eval echo "$as_me:5045: \"$ac_link\"") >&5
d4952 1
a4952 1
  echo "$as_me:5048: \$? = $ac_status" >&5
d4955 1
a4955 1
  { (eval echo "$as_me:5051: \"$ac_try\"") >&5
d4958 1
a4958 1
  echo "$as_me:5054: \$? = $ac_status" >&5
d4969 1
a4969 1
echo "$as_me:5065: result: $cf_cv_ldflags_search_paths_first" >&5
d5024 1
a5024 1
	openbsd[2-9].*)
d5028 1
a5028 1
	openbsd*|freebsd[12].*)
d5165 1
a5165 1
			{ echo "$as_me:5261: WARNING: ignored --with-shlib-version" >&5
d5173 1
a5173 1
		echo "$as_me:5269: checking if we need a space after rpath option" >&5
d5178 1
a5178 1
#line 5274 "configure"
d5190 1
a5190 1
if { (eval echo "$as_me:5286: \"$ac_link\"") >&5
d5193 1
a5193 1
  echo "$as_me:5289: \$? = $ac_status" >&5
d5196 1
a5196 1
  { (eval echo "$as_me:5292: \"$ac_try\"") >&5
d5199 1
a5199 1
  echo "$as_me:5295: \$? = $ac_status" >&5
d5209 1
a5209 1
		echo "$as_me:5305: result: $cf_rpath_space" >&5
d5218 1
a5218 1
			{ { echo "$as_me:5314: error: Shared libraries are not supported in this version" >&5
d5228 1
a5228 1
echo "$as_me:5324: checking if you wish to install ncurses overwriting curses" >&5
d5238 1
a5238 1
echo "$as_me:5334: result: $with_overwrite" >&5
d5241 1
a5241 1
echo "$as_me:5337: checking if external terminfo-database is used" >&5
d5251 1
a5251 1
echo "$as_me:5347: result: $use_database" >&5
d5273 1
a5273 1
	echo "$as_me:5369: checking which terminfo source-file will be installed" >&5
d5281 1
a5281 1
	echo "$as_me:5377: result: $TERMINFO_SRC" >&5
d5284 1
a5284 1
	echo "$as_me:5380: checking whether to use hashed database instead of directory/tree" >&5
d5294 1
a5294 1
	echo "$as_me:5390: result: $with_hashed_db" >&5
d5298 1
a5298 1
echo "$as_me:5394: checking for list of fallback descriptions" >&5
d5308 1
a5308 1
echo "$as_me:5404: result: $with_fallback" >&5
d5312 1
a5312 1
echo "$as_me:5408: checking if you want modern xterm or antique" >&5
d5326 1
a5326 1
echo "$as_me:5422: result: $with_xterm_new" >&5
d5336 1
a5336 1
echo "$as_me:5432: checking for list of terminfo directories" >&5
d5376 1
a5376 1
  { { echo "$as_me:5472: error: expected a pathname, not \"$cf_src_path\"" >&5
d5389 1
a5389 1
echo "$as_me:5485: result: $TERMINFO_DIRS" >&5
d5395 1
a5395 1
echo "$as_me:5491: checking for default terminfo directory" >&5
d5404 1
a5404 2
fi; if test -n "${datadir}/terminfo" ; then

d5430 1
a5430 1
  { { echo "$as_me:5527: error: expected a pathname, not \"$withval\"" >&5
a5435 1
fi
d5438 1
a5438 1
echo "$as_me:5536: result: $TERMINFO" >&5
d5448 1
a5448 1
echo "$as_me:5546: checking if big-core option selected" >&5
d5460 1
a5460 1
#line 5558 "configure"
d5474 1
a5474 1
if { (eval echo "$as_me:5572: \"$ac_link\"") >&5
d5477 1
a5477 1
  echo "$as_me:5575: \$? = $ac_status" >&5
d5479 1
a5479 1
  { (eval echo "$as_me:5577: \"$ac_try\"") >&5
d5482 1
a5482 1
  echo "$as_me:5580: \$? = $ac_status" >&5
d5494 1
a5494 1
echo "$as_me:5592: result: $with_big_core" >&5
a5499 18
### ISO C only guarantees 512-char strings, we have tables which load faster
### when constructed using "big" strings.
echo "$as_me:5600: checking if big-strings option selected" >&5
echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6

# Check whether --enable-big-strings or --disable-big-strings was given.
if test "${enable_big_strings+set}" = set; then
  enableval="$enable_big_strings"
  with_big_strings=no
else
  with_big_strings=yes
fi;
echo "$as_me:5610: result: $with_big_strings" >&5
echo "${ECHO_T}$with_big_strings" >&6

USE_BIG_STRINGS=0
test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1

d5501 1
a5501 1
echo "$as_me:5617: checking if you want termcap-fallback support" >&5
d5511 1
a5511 1
echo "$as_me:5627: result: $with_termcap" >&5
d5517 1
a5517 1
			{ { echo "$as_me:5633: error: You have disabled the database w/o specifying fallbacks" >&5
a5527 6
if test "$with_ticlib" != no ; then
	{ { echo "$as_me:5645: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
   { (exit 1); exit 1; }; }
fi

d5532 1
a5532 1
echo "$as_me:5654: checking for list of termcap files" >&5
d5572 1
a5572 1
  { { echo "$as_me:5694: error: expected a pathname, not \"$cf_src_path\"" >&5
d5585 1
a5585 1
echo "$as_me:5707: result: $TERMPATH" >&5
d5592 1
a5592 1
echo "$as_me:5714: checking if fast termcap-loader is needed" >&5
d5602 1
a5602 1
echo "$as_me:5724: result: $with_getcap" >&5
d5608 1
a5608 1
echo "$as_me:5730: checking if translated termcaps will be cached in ~/.terminfo" >&5
d5618 1
a5618 1
echo "$as_me:5740: result: $with_getcap_cache" >&5
d5627 1
a5627 1
echo "$as_me:5749: checking if ~/.terminfo is wanted" >&5
d5637 1
a5637 1
echo "$as_me:5759: result: $with_home_terminfo" >&5
d5643 1
a5643 1
echo "$as_me:5765: checking if you want to use restricted environment when running as root" >&5
d5653 1
a5653 1
echo "$as_me:5775: result: $with_root_environ" >&5
d5667 1
a5667 1
echo "$as_me:5789: checking for $ac_func" >&5
d5673 1
a5673 1
#line 5795 "configure"
d5704 1
a5704 1
if { (eval echo "$as_me:5826: \"$ac_link\"") >&5
d5707 1
a5707 1
  echo "$as_me:5829: \$? = $ac_status" >&5
d5710 1
a5710 1
  { (eval echo "$as_me:5832: \"$ac_try\"") >&5
d5713 1
a5713 1
  echo "$as_me:5835: \$? = $ac_status" >&5
d5723 1
a5723 1
echo "$as_me:5845: result: `eval echo '${'$as_ac_var'}'`" >&5
d5740 1
a5740 1
echo "$as_me:5862: checking for $ac_func" >&5
d5746 1
a5746 1
#line 5868 "configure"
d5777 1
a5777 1
if { (eval echo "$as_me:5899: \"$ac_link\"") >&5
d5780 1
a5780 1
  echo "$as_me:5902: \$? = $ac_status" >&5
d5783 1
a5783 1
  { (eval echo "$as_me:5905: \"$ac_try\"") >&5
d5786 1
a5786 1
  echo "$as_me:5908: \$? = $ac_status" >&5
d5796 1
a5796 1
echo "$as_me:5918: result: `eval echo '${'$as_ac_var'}'`" >&5
d5807 1
a5807 1
	echo "$as_me:5929: checking if link/symlink functions work" >&5
d5820 1
a5820 1
#line 5942 "configure"
d5850 1
a5850 1
if { (eval echo "$as_me:5972: \"$ac_link\"") >&5
d5853 1
a5853 1
  echo "$as_me:5975: \$? = $ac_status" >&5
d5855 1
a5855 1
  { (eval echo "$as_me:5977: \"$ac_try\"") >&5
d5858 1
a5858 1
  echo "$as_me:5980: \$? = $ac_status" >&5
d5876 1
a5876 1
echo "$as_me:5998: result: $cf_cv_link_funcs" >&5
d5894 1
a5894 1
    echo "$as_me:6016: checking if tic should use symbolic links" >&5
d5904 1
a5904 1
    echo "$as_me:6026: result: $with_symlinks" >&5
d5911 1
a5911 1
    echo "$as_me:6033: checking if tic should use hard links" >&5
d5918 1
a5918 1
    echo "$as_me:6040: result: $with_links" >&5
d5931 1
a5931 1
echo "$as_me:6053: checking if you want broken-linker support code" >&5
d5941 1
a5941 1
echo "$as_me:6063: result: $with_broken_linker" >&5
a5960 2
echo "${as_me-configure}:6083: testing cygwin linker is broken anyway ..." 1>&5

d5966 1
a5966 1
echo "$as_me:6090: checking if tputs should process BSD-style prefix padding" >&5
d5976 1
a5976 1
echo "$as_me:6100: result: $with_bsdpad" >&5
d5993 1
a5993 1
echo "$as_me:6117: checking if $CC -U and -D options work together" >&5
d6002 1
a6002 1
#line 6126 "configure"
d6021 1
a6021 1
if { (eval echo "$as_me:6145: \"$ac_compile\"") >&5
d6024 1
a6024 1
  echo "$as_me:6148: \$? = $ac_status" >&5
d6027 1
a6027 1
  { (eval echo "$as_me:6151: \"$ac_try\"") >&5
d6030 1
a6030 1
  echo "$as_me:6154: \$? = $ac_status" >&5
d6044 1
a6044 1
echo "$as_me:6168: result: $cf_cv_cc_u_d_options" >&5
d6068 1
a6068 1
linux*|gnu*|k*bsd*-gnu) #(vi
d6070 1
a6070 1
echo "$as_me:6194: checking if we must define _GNU_SOURCE" >&5
d6077 1
a6077 1
#line 6201 "configure"
d6092 1
a6092 1
if { (eval echo "$as_me:6216: \"$ac_compile\"") >&5
d6095 1
a6095 1
  echo "$as_me:6219: \$? = $ac_status" >&5
d6098 1
a6098 1
  { (eval echo "$as_me:6222: \"$ac_try\"") >&5
d6101 1
a6101 1
  echo "$as_me:6225: \$? = $ac_status" >&5
d6110 1
a6110 1
#line 6234 "configure"
d6125 1
a6125 1
if { (eval echo "$as_me:6249: \"$ac_compile\"") >&5
d6128 1
a6128 1
  echo "$as_me:6252: \$? = $ac_status" >&5
d6131 1
a6131 1
  { (eval echo "$as_me:6255: \"$ac_try\"") >&5
d6134 1
a6134 1
  echo "$as_me:6258: \$? = $ac_status" >&5
d6149 1
a6149 1
echo "$as_me:6273: result: $cf_cv_gnu_source" >&5
d6176 1
a6176 1
	echo "$as_me:6300: checking if we should define _XOPEN_SOURCE" >&5
d6183 1
a6183 1
#line 6307 "configure"
d6198 1
a6198 1
if { (eval echo "$as_me:6322: \"$ac_compile\"") >&5
d6201 1
a6201 1
  echo "$as_me:6325: \$? = $ac_status" >&5
d6204 1
a6204 1
  { (eval echo "$as_me:6328: \"$ac_try\"") >&5
d6207 1
a6207 1
  echo "$as_me:6331: \$? = $ac_status" >&5
d6216 1
a6216 1
#line 6340 "configure"
d6231 1
a6231 1
if { (eval echo "$as_me:6355: \"$ac_compile\"") >&5
d6234 1
a6234 1
  echo "$as_me:6358: \$? = $ac_status" >&5
d6237 1
a6237 1
  { (eval echo "$as_me:6361: \"$ac_try\"") >&5
d6240 1
a6240 1
  echo "$as_me:6364: \$? = $ac_status" >&5
d6255 1
a6255 1
echo "$as_me:6379: result: $cf_cv_xopen_source" >&5
d6289 1
a6289 1
echo "$as_me:6413: checking if we should define _POSIX_C_SOURCE" >&5
d6295 1
a6295 1
echo "${as_me-configure}:6419: testing if the symbol is already defined go no further ..." 1>&5
d6298 1
a6298 1
#line 6422 "configure"
d6313 1
a6313 1
if { (eval echo "$as_me:6437: \"$ac_compile\"") >&5
d6316 1
a6316 1
  echo "$as_me:6440: \$? = $ac_status" >&5
d6319 1
a6319 1
  { (eval echo "$as_me:6443: \"$ac_try\"") >&5
d6322 1
a6322 1
  echo "$as_me:6446: \$? = $ac_status" >&5
d6343 1
a6343 1
#line 6467 "configure"
d6358 1
a6358 1
if { (eval echo "$as_me:6482: \"$ac_compile\"") >&5
d6361 1
a6361 1
  echo "$as_me:6485: \$? = $ac_status" >&5
d6364 1
a6364 1
  { (eval echo "$as_me:6488: \"$ac_try\"") >&5
d6367 1
a6367 1
  echo "$as_me:6491: \$? = $ac_status" >&5
d6378 1
a6378 1
echo "${as_me-configure}:6502: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
d6383 1
a6383 1
echo "${as_me-configure}:6507: testing if the second compile does not leave our definition intact error ..." 1>&5
d6386 1
a6386 1
#line 6510 "configure"
d6401 1
a6401 1
if { (eval echo "$as_me:6525: \"$ac_compile\"") >&5
d6404 1
a6404 1
  echo "$as_me:6528: \$? = $ac_status" >&5
d6407 1
a6407 1
  { (eval echo "$as_me:6531: \"$ac_try\"") >&5
d6410 1
a6410 1
  echo "$as_me:6534: \$? = $ac_status" >&5
d6426 1
a6426 1
echo "$as_me:6550: result: $cf_cv_posix_c_source" >&5
d6445 1
a6445 1
echo "$as_me:6569: checking if SIGWINCH is defined" >&5
d6452 1
a6452 1
#line 6576 "configure"
d6467 1
a6467 1
if { (eval echo "$as_me:6591: \"$ac_compile\"") >&5
d6470 1
a6470 1
  echo "$as_me:6594: \$? = $ac_status" >&5
d6473 1
a6473 1
  { (eval echo "$as_me:6597: \"$ac_try\"") >&5
d6476 1
a6476 1
  echo "$as_me:6600: \$? = $ac_status" >&5
d6483 1
a6483 1
#line 6607 "configure"
d6501 1
a6501 1
if { (eval echo "$as_me:6625: \"$ac_compile\"") >&5
d6504 1
a6504 1
  echo "$as_me:6628: \$? = $ac_status" >&5
d6507 1
a6507 1
  { (eval echo "$as_me:6631: \"$ac_try\"") >&5
d6510 1
a6510 1
  echo "$as_me:6634: \$? = $ac_status" >&5
d6524 1
a6524 1
echo "$as_me:6648: result: $cf_cv_define_sigwinch" >&5
d6528 1
a6528 1
echo "$as_me:6652: checking for actual SIGWINCH definition" >&5
d6539 1
a6539 1
#line 6663 "configure"
d6561 1
a6561 1
if { (eval echo "$as_me:6685: \"$ac_compile\"") >&5
d6564 1
a6564 1
  echo "$as_me:6688: \$? = $ac_status" >&5
d6567 1
a6567 1
  { (eval echo "$as_me:6691: \"$ac_try\"") >&5
d6570 1
a6570 1
  echo "$as_me:6694: \$? = $ac_status" >&5
d6584 1
a6584 1
echo "$as_me:6708: result: $cf_cv_fixup_sigwinch" >&5
d6594 1
a6594 1
  echo "$as_me:6718: checking for nl_langinfo and CODESET" >&5
d6600 1
a6600 1
#line 6724 "configure"
d6612 1
a6612 1
if { (eval echo "$as_me:6736: \"$ac_link\"") >&5
d6615 1
a6615 1
  echo "$as_me:6739: \$? = $ac_status" >&5
d6618 1
a6618 1
  { (eval echo "$as_me:6742: \"$ac_try\"") >&5
d6621 1
a6621 1
  echo "$as_me:6745: \$? = $ac_status" >&5
d6632 1
a6632 1
echo "$as_me:6756: result: $am_cv_langinfo_codeset" >&5
d6646 1
a6646 1
echo "$as_me:6770: checking if you want wide-character code" >&5
d6656 1
a6656 1
echo "$as_me:6780: result: $with_widec" >&5
d6664 1
a6664 1
echo "$as_me:6788: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
d6667 1
a6667 1
#line 6791 "configure"
d6683 1
a6683 1
if { (eval echo "$as_me:6807: \"$ac_compile\"") >&5
d6686 1
a6686 1
  echo "$as_me:6810: \$? = $ac_status" >&5
d6689 1
a6689 1
  { (eval echo "$as_me:6813: \"$ac_try\"") >&5
d6692 1
a6692 1
  echo "$as_me:6816: \$? = $ac_status" >&5
d6701 1
a6701 1
echo "$as_me:6825: result: $cf_result" >&5
d6707 1
a6707 1
	echo "$as_me:6831: checking checking for compatible value versus " >&5
d6710 1
a6710 1
#line 6834 "configure"
d6726 1
a6726 1
if { (eval echo "$as_me:6850: \"$ac_compile\"") >&5
d6729 1
a6729 1
  echo "$as_me:6853: \$? = $ac_status" >&5
d6732 1
a6732 1
  { (eval echo "$as_me:6856: \"$ac_try\"") >&5
d6735 1
a6735 1
  echo "$as_me:6859: \$? = $ac_status" >&5
d6744 1
a6744 1
	echo "$as_me:6868: result: $cf_result" >&5
d6758 1
a6758 1
echo "$as_me:6882: checking for $ac_func" >&5
d6764 1
a6764 1
#line 6888 "configure"
d6795 1
a6795 1
if { (eval echo "$as_me:6919: \"$ac_link\"") >&5
d6798 1
a6798 1
  echo "$as_me:6922: \$? = $ac_status" >&5
d6801 1
a6801 1
  { (eval echo "$as_me:6925: \"$ac_try\"") >&5
d6804 1
a6804 1
  echo "$as_me:6928: \$? = $ac_status" >&5
d6814 1
a6814 1
echo "$as_me:6938: result: `eval echo '${'$as_ac_var'}'`" >&5
d6826 1
a6826 1
echo "$as_me:6950: checking for putwc in libutf8" >&5
d6835 1
a6835 1
#line 6959 "configure"
d6848 1
a6848 1
if { (eval echo "$as_me:6972: \"$ac_link\"") >&5
d6851 1
a6851 1
  echo "$as_me:6975: \$? = $ac_status" >&5
d6854 1
a6854 1
  { (eval echo "$as_me:6978: \"$ac_try\"") >&5
d6857 1
a6857 1
  echo "$as_me:6981: \$? = $ac_status" >&5
d6869 1
a6869 1
echo "$as_me:6993: result: $cf_cv_libutf8" >&5
d6886 1
a6886 1
echo "$as_me:7010: checking if we must include wchar.h to declare mbstate_t" >&5
d6893 1
a6893 1
#line 7017 "configure"
d6911 1
a6911 1
if { (eval echo "$as_me:7035: \"$ac_compile\"") >&5
d6914 1
a6914 1
  echo "$as_me:7038: \$? = $ac_status" >&5
d6917 1
a6917 1
  { (eval echo "$as_me:7041: \"$ac_try\"") >&5
d6920 1
a6920 1
  echo "$as_me:7044: \$? = $ac_status" >&5
d6927 1
a6927 1
#line 7051 "configure"
d6946 1
a6946 1
if { (eval echo "$as_me:7070: \"$ac_compile\"") >&5
d6949 1
a6949 1
  echo "$as_me:7073: \$? = $ac_status" >&5
d6952 1
a6952 1
  { (eval echo "$as_me:7076: \"$ac_try\"") >&5
d6955 1
a6955 1
  echo "$as_me:7079: \$? = $ac_status" >&5
d6967 1
a6967 1
echo "$as_me:7091: result: $cf_cv_mbstate_t" >&5
d6984 1
a6984 1
echo "$as_me:7108: checking if we must include wchar.h to declare wchar_t" >&5
d6991 1
a6991 1
#line 7115 "configure"
d7009 1
a7009 1
if { (eval echo "$as_me:7133: \"$ac_compile\"") >&5
d7012 1
a7012 1
  echo "$as_me:7136: \$? = $ac_status" >&5
d7015 1
a7015 1
  { (eval echo "$as_me:7139: \"$ac_try\"") >&5
d7018 1
a7018 1
  echo "$as_me:7142: \$? = $ac_status" >&5
d7025 1
a7025 1
#line 7149 "configure"
d7044 1
a7044 1
if { (eval echo "$as_me:7168: \"$ac_compile\"") >&5
d7047 1
a7047 1
  echo "$as_me:7171: \$? = $ac_status" >&5
d7050 1
a7050 1
  { (eval echo "$as_me:7174: \"$ac_try\"") >&5
d7053 1
a7053 1
  echo "$as_me:7177: \$? = $ac_status" >&5
d7065 1
a7065 1
echo "$as_me:7189: result: $cf_cv_wchar_t" >&5
d7087 1
a7087 1
echo "$as_me:7211: checking if we must include wchar.h to declare wint_t" >&5
d7094 1
a7094 1
#line 7218 "configure"
d7112 1
a7112 1
if { (eval echo "$as_me:7236: \"$ac_compile\"") >&5
d7115 1
a7115 1
  echo "$as_me:7239: \$? = $ac_status" >&5
d7118 1
a7118 1
  { (eval echo "$as_me:7242: \"$ac_try\"") >&5
d7121 1
a7121 1
  echo "$as_me:7245: \$? = $ac_status" >&5
d7128 1
a7128 1
#line 7252 "configure"
d7147 1
a7147 1
if { (eval echo "$as_me:7271: \"$ac_compile\"") >&5
d7150 1
a7150 1
  echo "$as_me:7274: \$? = $ac_status" >&5
d7153 1
a7153 1
  { (eval echo "$as_me:7277: \"$ac_try\"") >&5
d7156 1
a7156 1
  echo "$as_me:7280: \$? = $ac_status" >&5
d7168 1
a7168 1
echo "$as_me:7292: result: $cf_cv_wint_t" >&5
d7207 1
a7207 1
echo "$as_me:7331: checking whether to enable _LP64 definition in curses.h" >&5
d7217 1
a7217 1
echo "$as_me:7341: result: $with_lp64" >&5
d7233 1
a7233 1
  echo "$as_me:7357: checking for special C compiler options needed for large files" >&5
d7245 1
a7245 1
#line 7369 "configure"
d7265 1
a7265 1
if { (eval echo "$as_me:7389: \"$ac_compile\"") >&5
d7268 1
a7268 1
  echo "$as_me:7392: \$? = $ac_status" >&5
d7271 1
a7271 1
  { (eval echo "$as_me:7395: \"$ac_try\"") >&5
d7274 1
a7274 1
  echo "$as_me:7398: \$? = $ac_status" >&5
d7284 1
a7284 1
if { (eval echo "$as_me:7408: \"$ac_compile\"") >&5
d7287 1
a7287 1
  echo "$as_me:7411: \$? = $ac_status" >&5
d7290 1
a7290 1
  { (eval echo "$as_me:7414: \"$ac_try\"") >&5
d7293 1
a7293 1
  echo "$as_me:7417: \$? = $ac_status" >&5
d7307 1
a7307 1
echo "$as_me:7431: result: $ac_cv_sys_largefile_CC" >&5
d7313 1
a7313 1
  echo "$as_me:7437: checking for _FILE_OFFSET_BITS value needed for large files" >&5
d7321 1
a7321 1
#line 7445 "configure"
d7341 1
a7341 1
if { (eval echo "$as_me:7465: \"$ac_compile\"") >&5
d7344 1
a7344 1
  echo "$as_me:7468: \$? = $ac_status" >&5
d7347 1
a7347 1
  { (eval echo "$as_me:7471: \"$ac_try\"") >&5
d7350 1
a7350 1
  echo "$as_me:7474: \$? = $ac_status" >&5
d7359 1
a7359 1
#line 7483 "configure"
d7380 1
a7380 1
if { (eval echo "$as_me:7504: \"$ac_compile\"") >&5
d7383 1
a7383 1
  echo "$as_me:7507: \$? = $ac_status" >&5
d7386 1
a7386 1
  { (eval echo "$as_me:7510: \"$ac_try\"") >&5
d7389 1
a7389 1
  echo "$as_me:7513: \$? = $ac_status" >&5
d7400 1
a7400 1
echo "$as_me:7524: result: $ac_cv_sys_file_offset_bits" >&5
d7410 1
a7410 1
  echo "$as_me:7534: checking for _LARGE_FILES value needed for large files" >&5
d7418 1
a7418 1
#line 7542 "configure"
d7438 1
a7438 1
if { (eval echo "$as_me:7562: \"$ac_compile\"") >&5
d7441 1
a7441 1
  echo "$as_me:7565: \$? = $ac_status" >&5
d7444 1
a7444 1
  { (eval echo "$as_me:7568: \"$ac_try\"") >&5
d7447 1
a7447 1
  echo "$as_me:7571: \$? = $ac_status" >&5
d7456 1
a7456 1
#line 7580 "configure"
d7477 1
a7477 1
if { (eval echo "$as_me:7601: \"$ac_compile\"") >&5
d7480 1
a7480 1
  echo "$as_me:7604: \$? = $ac_status" >&5
d7483 1
a7483 1
  { (eval echo "$as_me:7607: \"$ac_try\"") >&5
d7486 1
a7486 1
  echo "$as_me:7610: \$? = $ac_status" >&5
d7497 1
a7497 1
echo "$as_me:7621: result: $ac_cv_sys_large_files" >&5
d7510 1
a7510 1
	echo "$as_me:7634: checking for _LARGEFILE_SOURCE value needed for large files" >&5
d7518 1
a7518 1
#line 7642 "configure"
d7530 1
a7530 1
if { (eval echo "$as_me:7654: \"$ac_compile\"") >&5
d7533 1
a7533 1
  echo "$as_me:7657: \$? = $ac_status" >&5
d7536 1
a7536 1
  { (eval echo "$as_me:7660: \"$ac_try\"") >&5
d7539 1
a7539 1
  echo "$as_me:7663: \$? = $ac_status" >&5
d7548 1
a7548 1
#line 7672 "configure"
d7561 1
a7561 1
if { (eval echo "$as_me:7685: \"$ac_compile\"") >&5
d7564 1
a7564 1
  echo "$as_me:7688: \$? = $ac_status" >&5
d7567 1
a7567 1
  { (eval echo "$as_me:7691: \"$ac_try\"") >&5
d7570 1
a7570 1
  echo "$as_me:7694: \$? = $ac_status" >&5
d7581 1
a7581 1
echo "$as_me:7705: result: $ac_cv_sys_largefile_source" >&5
d7595 1
a7595 1
echo "$as_me:7719: checking for fseeko" >&5
d7601 1
a7601 1
#line 7725 "configure"
d7613 1
a7613 1
if { (eval echo "$as_me:7737: \"$ac_link\"") >&5
d7616 1
a7616 1
  echo "$as_me:7740: \$? = $ac_status" >&5
d7619 1
a7619 1
  { (eval echo "$as_me:7743: \"$ac_try\"") >&5
d7622 1
a7622 1
  echo "$as_me:7746: \$? = $ac_status" >&5
d7632 1
a7632 1
echo "$as_me:7756: result: $ac_cv_func_fseeko" >&5
a7650 1
	test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
d7652 1
a7652 1
	echo "$as_me:7777: checking whether to use struct dirent64" >&5
d7659 1
a7659 1
#line 7784 "configure"
d7680 1
a7680 1
if { (eval echo "$as_me:7805: \"$ac_compile\"") >&5
d7683 1
a7683 1
  echo "$as_me:7808: \$? = $ac_status" >&5
d7686 1
a7686 1
  { (eval echo "$as_me:7811: \"$ac_try\"") >&5
d7689 1
a7689 1
  echo "$as_me:7814: \$? = $ac_status" >&5
d7700 1
a7700 1
echo "$as_me:7825: result: $cf_cv_struct_dirent64" >&5
d7709 1
a7709 1
echo "$as_me:7834: checking if you want tparm not to use X/Open fixed-parameter list" >&5
d7719 1
a7719 1
echo "$as_me:7844: result: $with_tparm_varargs" >&5
d7725 1
a7725 1
echo "$as_me:7850: checking for type of bool" >&5
d7735 1
a7735 1
echo "$as_me:7860: result: $NCURSES_BOOL" >&5
d7738 1
a7738 1
echo "$as_me:7863: checking for alternate terminal capabilities file" >&5
d7749 1
a7749 1
echo "$as_me:7874: result: $TERMINFO_CAPS" >&5
d7753 1
a7753 1
echo "$as_me:7878: checking for type of chtype" >&5
d7763 1
a7763 1
echo "$as_me:7888: result: $NCURSES_CHTYPE" >&5
d7767 1
a7767 1
echo "$as_me:7892: checking for type of ospeed" >&5
d7777 1
a7777 1
echo "$as_me:7902: result: $NCURSES_OSPEED" >&5
d7781 1
a7781 1
echo "$as_me:7906: checking for type of mmask_t" >&5
d7791 1
a7791 1
echo "$as_me:7916: result: $NCURSES_MMASK_T" >&5
d7795 1
a7795 1
echo "$as_me:7920: checking if RCS identifiers should be compiled-in" >&5
d7805 1
a7805 1
echo "$as_me:7930: result: $with_rcs_ids" >&5
d7813 1
a7813 1
echo "$as_me:7938: checking format of man-pages" >&5
d7902 1
a7902 1
echo "$as_me:8027: result: $MANPAGE_FORMAT" >&5
d7905 1
a7905 1
  { echo "$as_me:8030: WARNING: Unexpected manpage-format $cf_unknown" >&5
d7909 1
a7909 1
echo "$as_me:8034: checking for manpage renaming" >&5
d7937 1
a7937 1
    { { echo "$as_me:8062: error: not a filename: $MANPAGE_RENAMES" >&5
d7951 1
a7951 1
echo "$as_me:8076: result: $MANPAGE_RENAMES" >&5
d7954 1
a7954 1
echo "$as_me:8079: checking if manpage aliases will be installed" >&5
d7965 1
a7965 1
echo "$as_me:8090: result: $MANPAGE_ALIASES" >&5
d7976 1
a7976 1
echo "$as_me:8101: checking if manpage symlinks should be used" >&5
d7989 1
a7989 1
	{ echo "$as_me:8114: WARNING: cannot make symlinks" >&5
d7995 1
a7995 1
echo "$as_me:8120: result: $MANPAGE_SYMLINKS" >&5
d7999 1
a7999 1
echo "$as_me:8124: checking for manpage tbl" >&5
d8010 1
a8010 1
echo "$as_me:8135: result: $MANPAGE_TBL" >&5
a8049 1
cf_man_alias=`pwd`/man_alias.sed
d8065 1
a8065 1
MKDIRS="sh `cd $srcdir && pwd`/mkdirs.sh"
d8113 6
a8118 32

	# replace variables in man page
	if test ! -f $cf_man_alias ; then
cat >>$cf_man_alias <<-CF_EOF2
		s,@@DATADIR@@,\$datadir,g
		s,@@TERMINFO@@,\$TERMINFO,g
		s,@@NCURSES_MAJOR@@,\$NCURSES_MAJOR,g
		s,@@NCURSES_MINOR@@,\$NCURSES_MINOR,g
		s,@@NCURSES_PATCH@@,\$NCURSES_PATCH,g
		s,@@NCURSES_OSPEED@@,\$NCURSES_OSPEED,g
CF_EOF

	for cf_name in  captoinfo clear infocmp infotocap tic toe tput
	do
		cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
		cf_name=`echo $cf_name|sed "$program_transform_name"`
cat >>$cf_edit_man <<-CF_EOF
		s,@@$cf_NAME@@,$cf_name,
CF_EOF
	done

cat >>$cf_edit_man <<CF_EOF
CF_EOF2
		echo "...made $cf_man_alias"
	fi

	aliases=
	cf_source=\`basename \$i\`
	inalias=\$cf_source
	test ! -f \$inalias && inalias="\$srcdir/\$inalias"
	if test ! -f \$inalias ; then
		echo .. skipped \$cf_source
d8125 1
a8125 1
	aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u\`
d8146 11
d8158 7
a8165 1
fi
d8167 3
d8171 1
a8171 1
	sed	-f $cf_man_alias \\
d8173 1
a8233 1
		test -d \$cf_subdir\${section} &&
d8275 2
a8276 5
		test -f \$cf_target && (
			echo \$verb \$cf_target
			rm -f \$cf_target
		)
		test -d \$cf_subdir\${section} &&
d8311 1
a8311 1
echo "$as_me:8446: checking if you want to build with function extensions" >&5
d8321 1
a8321 1
echo "$as_me:8456: result: $with_ext_funcs" >&5
d8358 1
a8358 1
echo "$as_me:8493: checking for extended use of const keyword" >&5
d8368 1
a8368 1
echo "$as_me:8503: result: $with_ext_const" >&5
d8375 1
a8375 1
echo "$as_me:8510: checking if you want \$NCURSES_NO_PADDING code" >&5
d8385 1
a8385 1
echo "$as_me:8520: result: $with_no_padding" >&5
d8391 1
a8391 1
echo "$as_me:8526: checking for ANSI C header files" >&5
d8397 1
a8397 1
#line 8532 "configure"
d8405 1
a8405 1
if { (eval echo "$as_me:8540: \"$ac_cpp conftest.$ac_ext\"") >&5
d8411 1
a8411 1
  echo "$as_me:8546: \$? = $ac_status" >&5
d8433 1
a8433 1
#line 8568 "configure"
d8451 1
a8451 1
#line 8586 "configure"
d8472 1
a8472 1
#line 8607 "configure"
d8498 1
a8498 1
if { (eval echo "$as_me:8633: \"$ac_link\"") >&5
d8501 1
a8501 1
  echo "$as_me:8636: \$? = $ac_status" >&5
d8503 1
a8503 1
  { (eval echo "$as_me:8638: \"$ac_try\"") >&5
d8506 1
a8506 1
  echo "$as_me:8641: \$? = $ac_status" >&5
d8519 1
a8519 1
echo "$as_me:8654: result: $ac_cv_header_stdc" >&5
d8535 1
a8535 1
echo "$as_me:8670: checking for $ac_header" >&5
d8541 1
a8541 1
#line 8676 "configure"
d8547 1
a8547 1
if { (eval echo "$as_me:8682: \"$ac_compile\"") >&5
d8550 1
a8550 1
  echo "$as_me:8685: \$? = $ac_status" >&5
d8553 1
a8553 1
  { (eval echo "$as_me:8688: \"$ac_try\"") >&5
d8556 1
a8556 1
  echo "$as_me:8691: \$? = $ac_status" >&5
d8566 1
a8566 1
echo "$as_me:8701: result: `eval echo '${'$as_ac_Header'}'`" >&5
d8576 1
a8576 1
echo "$as_me:8711: checking for signed char" >&5
d8582 1
a8582 1
#line 8717 "configure"
d8597 1
a8597 1
if { (eval echo "$as_me:8732: \"$ac_compile\"") >&5
d8600 1
a8600 1
  echo "$as_me:8735: \$? = $ac_status" >&5
d8603 1
a8603 1
  { (eval echo "$as_me:8738: \"$ac_try\"") >&5
d8606 1
a8606 1
  echo "$as_me:8741: \$? = $ac_status" >&5
d8616 1
a8616 1
echo "$as_me:8751: result: $ac_cv_type_signed_char" >&5
d8619 1
a8619 1
echo "$as_me:8754: checking size of signed char" >&5
d8628 1
a8628 1
#line 8763 "configure"
d8640 1
a8640 1
if { (eval echo "$as_me:8775: \"$ac_compile\"") >&5
d8643 1
a8643 1
  echo "$as_me:8778: \$? = $ac_status" >&5
d8646 1
a8646 1
  { (eval echo "$as_me:8781: \"$ac_try\"") >&5
d8649 1
a8649 1
  echo "$as_me:8784: \$? = $ac_status" >&5
d8654 1
a8654 1
#line 8789 "configure"
d8666 1
a8666 1
if { (eval echo "$as_me:8801: \"$ac_compile\"") >&5
d8669 1
a8669 1
  echo "$as_me:8804: \$? = $ac_status" >&5
d8672 1
a8672 1
  { (eval echo "$as_me:8807: \"$ac_try\"") >&5
d8675 1
a8675 1
  echo "$as_me:8810: \$? = $ac_status" >&5
d8691 1
a8691 1
#line 8826 "configure"
d8703 1
a8703 1
if { (eval echo "$as_me:8838: \"$ac_compile\"") >&5
d8706 1
a8706 1
  echo "$as_me:8841: \$? = $ac_status" >&5
d8709 1
a8709 1
  { (eval echo "$as_me:8844: \"$ac_try\"") >&5
d8712 1
a8712 1
  echo "$as_me:8847: \$? = $ac_status" >&5
d8728 1
a8728 1
#line 8863 "configure"
d8740 1
a8740 1
if { (eval echo "$as_me:8875: \"$ac_compile\"") >&5
d8743 1
a8743 1
  echo "$as_me:8878: \$? = $ac_status" >&5
d8746 1
a8746 1
  { (eval echo "$as_me:8881: \"$ac_try\"") >&5
d8749 1
a8749 1
  echo "$as_me:8884: \$? = $ac_status" >&5
d8762 1
a8762 1
  { { echo "$as_me:8897: error: cannot run test program while cross compiling" >&5
d8767 1
a8767 1
#line 8902 "configure"
d8783 1
a8783 1
if { (eval echo "$as_me:8918: \"$ac_link\"") >&5
d8786 1
a8786 1
  echo "$as_me:8921: \$? = $ac_status" >&5
d8788 1
a8788 1
  { (eval echo "$as_me:8923: \"$ac_try\"") >&5
d8791 1
a8791 1
  echo "$as_me:8926: \$? = $ac_status" >&5
d8807 1
a8807 1
echo "$as_me:8942: result: $ac_cv_sizeof_signed_char" >&5
d8818 1
a8818 1
echo "$as_me:8953: checking if you want to use signed Boolean array in term.h" >&5
d8828 1
a8828 1
echo "$as_me:8963: result: $with_signed_char" >&5
d8833 1
a8833 1
echo "$as_me:8968: checking if you want SIGWINCH handler" >&5
d8843 1
a8843 1
echo "$as_me:8978: result: $with_sigwinch" >&5
d8850 1
a8850 1
echo "$as_me:8985: checking if you want user-definable terminal capabilities like termcap" >&5
d8860 1
a8860 1
echo "$as_me:8995: result: $with_tcap_names" >&5
d8868 1
a8868 1
echo "$as_me:9003: checking if you want all development code" >&5
d8878 1
a8878 1
echo "$as_me:9013: result: $with_develop" >&5
d8882 1
a8882 1
echo "$as_me:9017: checking if you want hard-tabs code" >&5
d8892 1
a8892 1
echo "$as_me:9027: result: $enable_hard_tabs" >&5
d8899 1
a8899 1
echo "$as_me:9034: checking if you want limited support for xmc" >&5
d8909 1
a8909 1
echo "$as_me:9044: result: $enable_xmc_glitch" >&5
d8918 1
a8918 1
echo "$as_me:9053: checking if you do not want to assume colors are white-on-black" >&5
d8928 1
a8928 1
echo "$as_me:9063: result: $with_assumed_color" >&5
d8935 1
a8935 1
echo "$as_me:9070: checking if you want hashmap scrolling-optimization code" >&5
d8945 1
a8945 1
echo "$as_me:9080: result: $with_hashmap" >&5
d8952 1
a8952 1
echo "$as_me:9087: checking if you want colorfgbg code" >&5
d8962 1
a8962 1
echo "$as_me:9097: result: $with_colorfgbg" >&5
d8969 1
a8969 1
echo "$as_me:9104: checking if you want to use experimental extended colors" >&5
d8979 1
a8979 1
echo "$as_me:9114: result: $with_ext_colors" >&5
d8984 2
a8985 3
		{ { echo "$as_me:9119: error: This option applies only to wide-character library" >&5
echo "$as_me: error: This option applies only to wide-character library" >&2;}
   { (exit 1); exit 1; }; }
d8994 1
a8994 1
		{ echo "$as_me:9130: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
d9009 1
a9009 1
echo "$as_me:9145: checking if you want to use experimental extended mouse encoding" >&5
d9019 1
a9019 1
echo "$as_me:9155: result: $with_ext_mouse" >&5
d9030 1
a9030 178
		{ echo "$as_me:9166: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
		;;
	esac
fi

fi

# This is still experimental (20080329), but should ultimately be moved to
# the script-block --with-normal, etc.

echo "$as_me:9177: checking if you want to link with the pthread library" >&5
echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6

# Check whether --with-pthread or --without-pthread was given.
if test "${with_pthread+set}" = set; then
  withval="$with_pthread"
  with_pthread=$withval
else
  with_pthread=no
fi;
echo "$as_me:9187: result: $with_pthread" >&5
echo "${ECHO_T}$with_pthread" >&6

if test "$with_pthread" != no ; then
    echo "$as_me:9191: checking for pthread.h" >&5
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
if test "${ac_cv_header_pthread_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9197 "configure"
#include "confdefs.h"
#include <pthread.h>
_ACEOF
if { (eval echo "$as_me:9201: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:9207: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_pthread_h=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_pthread_h=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:9226: result: $ac_cv_header_pthread_h" >&5
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
if test $ac_cv_header_pthread_h = yes; then

        cat >>confdefs.h <<\EOF
#define HAVE_PTHREADS_H 1
EOF

        echo "$as_me:9234: checking for pthread_create in -lpthread" >&5
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 9242 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char pthread_create ();
int
main ()
{
pthread_create ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9261: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9264: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9267: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9270: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_pthread_pthread_create=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_pthread_pthread_create=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:9281: result: $ac_cv_lib_pthread_pthread_create" >&5
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
if test $ac_cv_lib_pthread_pthread_create = yes; then

            LIBS="-lpthread $LIBS"
            cat >>confdefs.h <<\EOF
#define HAVE_LIBPTHREADS 1
EOF

            with_pthread=yes

else

            { { echo "$as_me:9294: error: Cannot link with pthread library" >&5
echo "$as_me: error: Cannot link with pthread library" >&2;}
   { (exit 1); exit 1; }; }

fi

fi

fi

if test "$with_pthread" = "yes" ; then
    cat >>confdefs.h <<\EOF
#define USE_PTHREADS 1
EOF

    enable_reentrant=yes
fi

# Reentrant code has to be opaque; there's little advantage to making ncurses
# opaque outside of that, so there is no --enable-opaque option.  We can use
# this option without --with-pthreads, but this will be always set for
# pthreads.
echo "$as_me:9316: checking if you want experimental reentrant code" >&5
echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6

# Check whether --enable-reentrant or --disable-reentrant was given.
if test "${enable_reentrant+set}" = set; then
  enableval="$enable_reentrant"
  with_reentrant=$enableval
else
  with_reentrant=no
fi;
echo "$as_me:9326: result: $with_reentrant" >&5
echo "${ECHO_T}$with_reentrant" >&6
if test "$with_reentrant" = yes ; then
	cf_cv_enable_reentrant=1
	cf_cv_enable_opaque="NCURSES_INTERNALS"
	NCURSES_OPAQUE=1
	NCURSES_SIZE_T=int
	LIB_SUFFIX="t${LIB_SUFFIX}"
	cat >>confdefs.h <<\EOF
#define USE_REENTRANT 1
EOF

if test "${with_abi_version+set}" != set; then
	case $cf_cv_rel_version in
	5.*)
		cf_cv_rel_version=6.0
		cf_cv_abi_version=6
		{ echo "$as_me:9343: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
a9035 5
else
	cf_cv_enable_reentrant=0
	cf_cv_enable_opaque="NCURSES_OPAQUE"
	NCURSES_OPAQUE=0
	NCURSES_SIZE_T=short
d9038 1
a9038 1
echo "$as_me:9356: checking if you want experimental safe-sprintf code" >&5
d9048 1
a9048 1
echo "$as_me:9366: result: $with_safe_sprintf" >&5
d9057 1
a9057 1
echo "$as_me:9375: checking if you want to experiment without scrolling-hints code" >&5
d9067 1
a9067 1
echo "$as_me:9385: result: $with_scroll_hints" >&5
d9075 1
a9075 1
echo "$as_me:9393: checking if you want experimental wgetch-events code" >&5
d9085 1
a9085 1
echo "$as_me:9403: result: $with_wgetch_events" >&5
d9094 1
a9094 1
echo "$as_me:9412: checking if you want to display full commands during build" >&5
a9108 1
	test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
d9110 1
a9110 1
echo "$as_me:9429: result: $with_echo" >&5
d9114 1
a9114 1
echo "$as_me:9433: checking if you want to see compiler warnings" >&5
d9122 1
a9122 1
echo "$as_me:9441: result: $with_warnings" >&5
d9125 1
a9125 1
if test "x$with_warnings" = "xyes"; then
d9133 1
a9133 1
		echo "$as_me:9452: checking if this is really Intel C compiler" >&5
d9138 1
a9138 1
#line 9457 "configure"
d9155 1
a9155 1
if { (eval echo "$as_me:9474: \"$ac_compile\"") >&5
d9158 1
a9158 1
  echo "$as_me:9477: \$? = $ac_status" >&5
d9161 1
a9161 1
  { (eval echo "$as_me:9480: \"$ac_try\"") >&5
d9164 1
a9164 1
  echo "$as_me:9483: \$? = $ac_status" >&5
d9175 1
a9175 1
		echo "$as_me:9494: result: $INTEL_COMPILER" >&5
d9182 1
a9182 1
#line 9501 "${as_me-configure}"
d9200 1
a9200 1
	{ echo "$as_me:9519: checking for $CC warning options..." >&5
d9204 1
a9204 1
	for cf_opt in \
d9217 1
a9217 1
		if { (eval echo "$as_me:9536: \"$ac_compile\"") >&5
d9220 1
a9220 1
  echo "$as_me:9539: \$? = $ac_status" >&5
d9222 1
a9222 1
			test -n "$verbose" && echo "$as_me:9541: result: ... -$cf_opt" >&5
d9231 1
a9231 1
	{ echo "$as_me:9550: checking for $CC warning options..." >&5
d9248 1
a9248 1
		Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
d9251 1
a9251 1
		if { (eval echo "$as_me:9570: \"$ac_compile\"") >&5
d9254 1
a9254 1
  echo "$as_me:9573: \$? = $ac_status" >&5
d9256 1
a9256 1
			test -n "$verbose" && echo "$as_me:9575: result: ... -$cf_opt" >&5
a9266 2
echo "${as_me-configure}:9586: testing feature is broken in gcc $GCC_VERSION ..." 1>&5

d9285 1
a9285 1
		echo "$as_me:9606: checking if this is really Intel C++ compiler" >&5
d9290 1
a9290 1
#line 9611 "configure"
d9307 1
a9307 1
if { (eval echo "$as_me:9628: \"$ac_compile\"") >&5
d9310 1
a9310 1
  echo "$as_me:9631: \$? = $ac_status" >&5
d9313 1
a9313 1
  { (eval echo "$as_me:9634: \"$ac_try\"") >&5
d9316 1
a9316 1
  echo "$as_me:9637: \$? = $ac_status" >&5
d9327 1
a9327 1
		echo "$as_me:9648: result: $INTEL_CPLUSPLUS" >&5
d9341 1
a9341 1
#line 9662 "configure"
d9359 1
a9359 1
	{ echo "$as_me:9680: checking for $CC warning options..." >&5
d9376 1
a9376 1
		if { (eval echo "$as_me:9697: \"$ac_compile\"") >&5
d9379 1
a9379 1
  echo "$as_me:9700: \$? = $ac_status" >&5
d9381 1
a9381 1
			test -n "$verbose" && echo "$as_me:9702: result: ... -$cf_opt" >&5
d9390 1
a9390 1
	{ echo "$as_me:9711: checking for $CXX warning options..." >&5
d9419 1
a9419 1
		if { (eval echo "$as_me:9740: \"$ac_compile\"") >&5
d9422 1
a9422 1
  echo "$as_me:9743: \$? = $ac_status" >&5
d9424 1
a9424 1
			test -n "$verbose" && echo "$as_me:9745: result: ... -$cf_opt" >&5
d9428 1
a9428 1
			test -n "$verbose" && echo "$as_me:9749: result: ... no -$cf_opt" >&5
d9464 1
a9464 1
	{ echo "$as_me:9785: checking for $CC __attribute__ directives..." >&5
d9467 1
a9467 1
#line 9788 "${as_me-configure}"
d9505 1
a9505 1
		if { (eval echo "$as_me:9826: \"$ac_compile\"") >&5
d9508 1
a9508 1
  echo "$as_me:9829: \$? = $ac_status" >&5
d9510 1
a9510 1
			test -n "$verbose" && echo "$as_me:9831: result: ... $cf_attribute" >&5
d9522 1
a9522 1
echo "$as_me:9843: checking if you want to enable runtime assertions" >&5
d9532 1
a9532 1
echo "$as_me:9853: result: $with_assertions" >&5
d9550 1
a9550 1
echo "$as_me:9871: checking if you want to use dmalloc for testing" >&5
d9566 1
a9566 1
echo "$as_me:9887: result: ${with_dmalloc:-no}" >&5
d9650 1
a9650 1
	echo "$as_me:9971: checking for dmalloc.h" >&5
d9656 1
a9656 1
#line 9977 "configure"
d9660 1
a9660 1
if { (eval echo "$as_me:9981: \"$ac_cpp conftest.$ac_ext\"") >&5
d9666 1
a9666 1
  echo "$as_me:9987: \$? = $ac_status" >&5
d9685 1
a9685 1
echo "$as_me:10006: result: $ac_cv_header_dmalloc_h" >&5
d9689 1
a9689 1
echo "$as_me:10010: checking for dmalloc_debug in -ldmalloc" >&5
d9697 1
a9697 1
#line 10018 "configure"
d9716 1
a9716 1
if { (eval echo "$as_me:10037: \"$ac_link\"") >&5
d9719 1
a9719 1
  echo "$as_me:10040: \$? = $ac_status" >&5
d9722 1
a9722 1
  { (eval echo "$as_me:10043: \"$ac_try\"") >&5
d9725 1
a9725 1
  echo "$as_me:10046: \$? = $ac_status" >&5
d9736 1
a9736 1
echo "$as_me:10057: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
d9751 1
a9751 1
echo "$as_me:10072: checking if you want to use dbmalloc for testing" >&5
d9767 1
a9767 1
echo "$as_me:10088: result: ${with_dbmalloc:-no}" >&5
d9851 1
a9851 1
	echo "$as_me:10172: checking for dbmalloc.h" >&5
d9857 1
a9857 1
#line 10178 "configure"
d9861 1
a9861 1
if { (eval echo "$as_me:10182: \"$ac_cpp conftest.$ac_ext\"") >&5
d9867 1
a9867 1
  echo "$as_me:10188: \$? = $ac_status" >&5
d9886 1
a9886 1
echo "$as_me:10207: result: $ac_cv_header_dbmalloc_h" >&5
d9890 1
a9890 1
echo "$as_me:10211: checking for debug_malloc in -ldbmalloc" >&5
d9898 1
a9898 1
#line 10219 "configure"
d9917 1
a9917 1
if { (eval echo "$as_me:10238: \"$ac_link\"") >&5
d9920 1
a9920 1
  echo "$as_me:10241: \$? = $ac_status" >&5
d9923 1
a9923 1
  { (eval echo "$as_me:10244: \"$ac_try\"") >&5
d9926 1
a9926 1
  echo "$as_me:10247: \$? = $ac_status" >&5
d9937 1
a9937 1
echo "$as_me:10258: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
d9952 1
a9952 1
echo "$as_me:10273: checking if you want to use valgrind for testing" >&5
d9968 1
a9968 1
echo "$as_me:10289: result: ${with_valgrind:-no}" >&5
d10051 1
a10051 1
echo "$as_me:10372: checking if you want to perform memory-leak testing" >&5
d10061 1
a10061 1
echo "$as_me:10382: result: $with_no_leaks" >&5
d10106 1
a10106 1
echo "$as_me:10427: checking whether to add trace feature to all models" >&5
d10116 1
a10116 1
echo "$as_me:10437: result: $cf_with_trace" >&5
d10197 1
a10197 1
echo "$as_me:10518: checking for gettimeofday" >&5
d10203 1
a10203 1
#line 10524 "configure"
d10234 1
a10234 1
if { (eval echo "$as_me:10555: \"$ac_link\"") >&5
d10237 1
a10237 1
  echo "$as_me:10558: \$? = $ac_status" >&5
d10240 1
a10240 1
  { (eval echo "$as_me:10561: \"$ac_try\"") >&5
d10243 1
a10243 1
  echo "$as_me:10564: \$? = $ac_status" >&5
d10253 1
a10253 1
echo "$as_me:10574: result: $ac_cv_func_gettimeofday" >&5
d10262 1
a10262 1
echo "$as_me:10583: checking for gettimeofday in -lbsd" >&5
d10270 1
a10270 1
#line 10591 "configure"
d10289 1
a10289 1
if { (eval echo "$as_me:10610: \"$ac_link\"") >&5
d10292 1
a10292 1
  echo "$as_me:10613: \$? = $ac_status" >&5
d10295 1
a10295 1
  { (eval echo "$as_me:10616: \"$ac_try\"") >&5
d10298 1
a10298 1
  echo "$as_me:10619: \$? = $ac_status" >&5
d10309 1
a10309 1
echo "$as_me:10630: result: $ac_cv_lib_bsd_gettimeofday" >&5
d10321 1
a10321 1
echo "$as_me:10642: checking if -lm needed for math functions" >&5
d10328 1
a10328 1
#line 10649 "configure"
d10343 1
a10343 1
if { (eval echo "$as_me:10664: \"$ac_link\"") >&5
d10346 1
a10346 1
  echo "$as_me:10667: \$? = $ac_status" >&5
d10349 1
a10349 1
  { (eval echo "$as_me:10670: \"$ac_try\"") >&5
d10352 1
a10352 1
  echo "$as_me:10673: \$? = $ac_status" >&5
d10362 1
a10362 1
echo "$as_me:10683: result: $cf_cv_need_libm" >&5
d10370 1
a10370 1
echo "$as_me:10691: checking for ANSI C header files" >&5
d10376 1
a10376 1
#line 10697 "configure"
d10384 1
a10384 1
if { (eval echo "$as_me:10705: \"$ac_cpp conftest.$ac_ext\"") >&5
d10390 1
a10390 1
  echo "$as_me:10711: \$? = $ac_status" >&5
d10412 1
a10412 1
#line 10733 "configure"
d10430 1
a10430 1
#line 10751 "configure"
d10451 1
a10451 1
#line 10772 "configure"
d10477 1
a10477 1
if { (eval echo "$as_me:10798: \"$ac_link\"") >&5
d10480 1
a10480 1
  echo "$as_me:10801: \$? = $ac_status" >&5
d10482 1
a10482 1
  { (eval echo "$as_me:10803: \"$ac_try\"") >&5
d10485 1
a10485 1
  echo "$as_me:10806: \$? = $ac_status" >&5
d10498 1
a10498 1
echo "$as_me:10819: result: $ac_cv_header_stdc" >&5
d10511 1
a10511 1
echo "$as_me:10832: checking for $ac_hdr that defines DIR" >&5
d10517 1
a10517 1
#line 10838 "configure"
d10532 1
a10532 1
if { (eval echo "$as_me:10853: \"$ac_compile\"") >&5
d10535 1
a10535 1
  echo "$as_me:10856: \$? = $ac_status" >&5
d10538 1
a10538 1
  { (eval echo "$as_me:10859: \"$ac_try\"") >&5
d10541 1
a10541 1
  echo "$as_me:10862: \$? = $ac_status" >&5
d10551 1
a10551 1
echo "$as_me:10872: result: `eval echo '${'$as_ac_Header'}'`" >&5
d10564 1
a10564 1
  echo "$as_me:10885: checking for opendir in -ldir" >&5
d10572 1
a10572 1
#line 10893 "configure"
d10591 1
a10591 1
if { (eval echo "$as_me:10912: \"$ac_link\"") >&5
d10594 1
a10594 1
  echo "$as_me:10915: \$? = $ac_status" >&5
d10597 1
a10597 1
  { (eval echo "$as_me:10918: \"$ac_try\"") >&5
d10600 1
a10600 1
  echo "$as_me:10921: \$? = $ac_status" >&5
d10611 1
a10611 1
echo "$as_me:10932: result: $ac_cv_lib_dir_opendir" >&5
d10618 1
a10618 1
  echo "$as_me:10939: checking for opendir in -lx" >&5
d10626 1
a10626 1
#line 10947 "configure"
d10645 1
a10645 1
if { (eval echo "$as_me:10966: \"$ac_link\"") >&5
d10648 1
a10648 1
  echo "$as_me:10969: \$? = $ac_status" >&5
d10651 1
a10651 1
  { (eval echo "$as_me:10972: \"$ac_try\"") >&5
d10654 1
a10654 1
  echo "$as_me:10975: \$? = $ac_status" >&5
d10665 1
a10665 1
echo "$as_me:10986: result: $ac_cv_lib_x_opendir" >&5
d10673 1
a10673 1
echo "$as_me:10994: checking whether time.h and sys/time.h may both be included" >&5
d10679 1
a10679 1
#line 11000 "configure"
d10695 1
a10695 1
if { (eval echo "$as_me:11016: \"$ac_compile\"") >&5
d10698 1
a10698 1
  echo "$as_me:11019: \$? = $ac_status" >&5
d10701 1
a10701 1
  { (eval echo "$as_me:11022: \"$ac_try\"") >&5
d10704 1
a10704 1
  echo "$as_me:11025: \$? = $ac_status" >&5
d10714 1
a10714 1
echo "$as_me:11035: result: $ac_cv_header_time" >&5
d10724 1
a10724 1
echo "$as_me:11045: checking for regular-expression headers" >&5
d10731 1
a10731 1
#line 11052 "configure"
d10749 1
a10749 1
if { (eval echo "$as_me:11070: \"$ac_link\"") >&5
d10752 1
a10752 1
  echo "$as_me:11073: \$? = $ac_status" >&5
d10755 1
a10755 1
  { (eval echo "$as_me:11076: \"$ac_try\"") >&5
d10758 1
a10758 1
  echo "$as_me:11079: \$? = $ac_status" >&5
d10766 1
a10766 1
#line 11087 "configure"
d10781 1
a10781 1
if { (eval echo "$as_me:11102: \"$ac_link\"") >&5
d10784 1
a10784 1
  echo "$as_me:11105: \$? = $ac_status" >&5
d10787 1
a10787 1
  { (eval echo "$as_me:11108: \"$ac_try\"") >&5
d10790 1
a10790 1
  echo "$as_me:11111: \$? = $ac_status" >&5
d10800 1
a10800 1
#line 11121 "configure"
d10815 1
a10815 1
if { (eval echo "$as_me:11136: \"$ac_link\"") >&5
d10818 1
a10818 1
  echo "$as_me:11139: \$? = $ac_status" >&5
d10821 1
a10821 1
  { (eval echo "$as_me:11142: \"$ac_try\"") >&5
d10824 1
a10824 1
  echo "$as_me:11145: \$? = $ac_status" >&5
d10840 1
a10840 1
echo "$as_me:11161: result: $cf_cv_regex" >&5
d10876 1
a10876 1
echo "$as_me:11197: checking for $ac_header" >&5
d10882 1
a10882 1
#line 11203 "configure"
d10886 1
a10886 1
if { (eval echo "$as_me:11207: \"$ac_cpp conftest.$ac_ext\"") >&5
d10892 1
a10892 1
  echo "$as_me:11213: \$? = $ac_status" >&5
d10911 1
a10911 1
echo "$as_me:11232: result: `eval echo '${'$as_ac_Header'}'`" >&5
d10925 1
a10925 1
echo "$as_me:11246: checking for main in -lcposix" >&5
d10933 1
a10933 1
#line 11254 "configure"
d10945 1
a10945 1
if { (eval echo "$as_me:11266: \"$ac_link\"") >&5
d10948 1
a10948 1
  echo "$as_me:11269: \$? = $ac_status" >&5
d10951 1
a10951 1
  { (eval echo "$as_me:11272: \"$ac_try\"") >&5
d10954 1
a10954 1
  echo "$as_me:11275: \$? = $ac_status" >&5
d10965 1
a10965 1
echo "$as_me:11286: result: $ac_cv_lib_cposix_main" >&5
d10976 1
a10976 1
	echo "$as_me:11297: checking for bzero in -linet" >&5
d10984 1
a10984 1
#line 11305 "configure"
d11003 1
a11003 1
if { (eval echo "$as_me:11324: \"$ac_link\"") >&5
d11006 1
a11006 1
  echo "$as_me:11327: \$? = $ac_status" >&5
d11009 1
a11009 1
  { (eval echo "$as_me:11330: \"$ac_try\"") >&5
d11012 1
a11012 1
  echo "$as_me:11333: \$? = $ac_status" >&5
d11023 1
a11023 1
echo "$as_me:11344: result: $ac_cv_lib_inet_bzero" >&5
d11030 1
a11030 1
echo "$as_me:11351: checking if sys/time.h works with sys/select.h" >&5
d11037 1
a11037 1
#line 11358 "configure"
d11057 1
a11057 1
if { (eval echo "$as_me:11378: \"$ac_compile\"") >&5
d11060 1
a11060 1
  echo "$as_me:11381: \$? = $ac_status" >&5
d11063 1
a11063 1
  { (eval echo "$as_me:11384: \"$ac_try\"") >&5
d11066 1
a11066 1
  echo "$as_me:11387: \$? = $ac_status" >&5
d11078 1
a11078 1
echo "$as_me:11399: result: $cf_cv_sys_time_select" >&5
d11092 1
a11092 1
echo "$as_me:11413: checking for $CC option to accept ANSI C" >&5
d11100 1
a11100 1
#line 11421 "configure"
d11149 1
a11149 1
if { (eval echo "$as_me:11470: \"$ac_compile\"") >&5
d11152 1
a11152 1
  echo "$as_me:11473: \$? = $ac_status" >&5
d11155 1
a11155 1
  { (eval echo "$as_me:11476: \"$ac_try\"") >&5
d11158 1
a11158 1
  echo "$as_me:11479: \$? = $ac_status" >&5
d11175 1
a11175 1
    echo "$as_me:11496: result: none needed" >&5
d11178 1
a11178 1
    echo "$as_me:11499: result: $ac_cv_prog_cc_stdc" >&5
d11183 1
a11183 1
echo "$as_me:11504: checking for an ANSI C-conforming const" >&5
d11189 1
a11189 1
#line 11510 "configure"
d11247 1
a11247 1
if { (eval echo "$as_me:11568: \"$ac_compile\"") >&5
d11250 1
a11250 1
  echo "$as_me:11571: \$? = $ac_status" >&5
d11253 1
a11253 1
  { (eval echo "$as_me:11574: \"$ac_try\"") >&5
d11256 1
a11256 1
  echo "$as_me:11577: \$? = $ac_status" >&5
d11266 1
a11266 1
echo "$as_me:11587: result: $ac_cv_c_const" >&5
d11276 1
a11276 1
echo "$as_me:11597: checking for inline" >&5
d11284 1
a11284 1
#line 11605 "configure"
d11293 1
a11293 1
if { (eval echo "$as_me:11614: \"$ac_compile\"") >&5
d11296 1
a11296 1
  echo "$as_me:11617: \$? = $ac_status" >&5
d11299 1
a11299 1
  { (eval echo "$as_me:11620: \"$ac_try\"") >&5
d11302 1
a11302 1
  echo "$as_me:11623: \$? = $ac_status" >&5
d11313 1
a11313 1
echo "$as_me:11634: result: $ac_cv_c_inline" >&5
d11330 91
a11420 9
  NCURSES_INLINE=inline
  if test "$INTEL_COMPILER" = yes
  then
    :
  elif test "$GCC" = yes
  then
    echo "$as_me:11657: checking if gcc supports options to tune inlining" >&5
echo $ECHO_N "checking if gcc supports options to tune inlining... $ECHO_C" >&6
if test "${cf_cv_gcc_inline+set}" = set; then
d11424 2
a11425 4
      cf_save_CFLAGS=$CFLAGS
      CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
      cat >conftest.$ac_ext <<_ACEOF
#line 11666 "configure"
d11427 1
a11427 1
inline int foo(void) { return 1; }
d11431 1
a11431 1
${cf_cv_main_return:-return} foo()
d11437 1
a11437 1
if { (eval echo "$as_me:11678: \"$ac_compile\"") >&5
d11440 1
a11440 1
  echo "$as_me:11681: \$? = $ac_status" >&5
d11443 1
a11443 1
  { (eval echo "$as_me:11684: \"$ac_try\"") >&5
d11446 1
a11446 1
  echo "$as_me:11687: \$? = $ac_status" >&5
d11448 1
a11448 1
  cf_cv_gcc_inline=yes
d11452 1
a11452 1
cf_cv_gcc_inline=no
a11454 1
      CFLAGS=$cf_save_CFLAGS
a11456 3
echo "$as_me:11699: result: $cf_cv_gcc_inline" >&5
echo "${ECHO_T}$cf_cv_gcc_inline" >&6
    if test "$cf_cv_gcc_inline" = yes ; then
d11458 14
a11471 4
cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=
d11473 5
a11477 9
for cf_add_cflags in --param max-inline-insns-single=1200
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
d11479 3
a11481 3
			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes
d11483 1
a11483 266
			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

    fi
  fi
fi

echo "$as_me:11775: checking for signal global datatype" >&5
echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
if test "${cf_cv_sig_atomic_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	for cf_type in \
		"volatile sig_atomic_t" \
		"sig_atomic_t" \
		"int"
	do
	cat >conftest.$ac_ext <<_ACEOF
#line 11787 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <signal.h>
#include <stdio.h>

extern $cf_type x;
$cf_type x;
static void handler(int sig)
{
	x = 5;
}
int
main ()
{
signal(SIGINT, handler);
		 x = 1
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11810: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11813: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11816: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11819: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_sig_atomic_t=$cf_type
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_sig_atomic_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		test "$cf_cv_sig_atomic_t" != no && break
	done

fi

echo "$as_me:11833: result: $cf_cv_sig_atomic_t" >&5
echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
#define SIG_ATOMIC_T $cf_cv_sig_atomic_t
EOF

if test $NCURSES_CHTYPE = auto ; then

echo "$as_me:11841: checking for type of chtype" >&5
echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
if test "${cf_cv_typeof_chtype+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

		if test "$cross_compiling" = yes; then
  cf_cv_typeof_chtype=long
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11851 "configure"
#include "confdefs.h"

#define WANT_BITS 31
#include <stdio.h>
int main()
{
	FILE *fp = fopen("cf_test.out", "w");
	if (fp != 0) {
		char *result = "long";
		if (sizeof(unsigned long) > sizeof(unsigned int)) {
			int n;
			unsigned int x, y;
			for (n = 0; n < WANT_BITS; n++) {
				x = (1 << n);
				y = (x >> n);
				if (y != 1 || x == 0) {
					x = 0;
					break;
				}
			}
			/*
			 * If x is nonzero, an int is big enough for the bits
			 * that we want.
			 */
			result = (x != 0) ? "int" : "long";
		}
		fputs(result, fp);
		fclose(fp);
	}
	${cf_cv_main_return:-return}(0);
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11886: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11889: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11891: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11894: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_typeof_chtype=`cat cf_test.out`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_typeof_chtype=long
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
		rm -f cf_test.out

fi

echo "$as_me:11909: result: $cf_cv_typeof_chtype" >&5
echo "${ECHO_T}$cf_cv_typeof_chtype" >&6

cat >>confdefs.h <<EOF
#define TYPEOF_CHTYPE $cf_cv_typeof_chtype
EOF

else
	cf_cv_typeof_chtype=$NCURSES_CHTYPE
fi
test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""

echo "$as_me:11921: checking if unsigned literals are legal" >&5
echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
if test "${cf_cv_unsigned_literals+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 11928 "configure"
#include "confdefs.h"

int
main ()
{
long x = 1L + 1UL + 1U + 1
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11940: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11943: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11946: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11949: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_unsigned_literals=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_unsigned_literals=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi

echo "$as_me:11961: result: $cf_cv_unsigned_literals" >&5
echo "${ECHO_T}$cf_cv_unsigned_literals" >&6

cf_cv_1UL="1"
test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
test ".$cf_cv_typeof_chtype"    = .long && cf_cv_1UL="${cf_cv_1UL}L"

if test $NCURSES_MMASK_T = auto ; then
	cf_cv_typeof_mmask_t=long
else
	cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
fi
test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""

###	Checks for external-data

echo "$as_me:11977: checking if external errno is declared" >&5
echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
if test "${cf_cv_dcl_errno+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    cat >conftest.$ac_ext <<_ACEOF
#line 11984 "configure"
#include "confdefs.h"

#ifdef HAVE_STDLIB_H
d11498 1
a11498 1
if { (eval echo "$as_me:12002: \"$ac_compile\"") >&5
d11501 1
a11501 1
  echo "$as_me:12005: \$? = $ac_status" >&5
d11504 1
a11504 1
  { (eval echo "$as_me:12008: \"$ac_try\"") >&5
d11507 1
a11507 1
  echo "$as_me:12011: \$? = $ac_status" >&5
d11518 1
a11518 1
echo "$as_me:12022: result: $cf_cv_dcl_errno" >&5
d11533 1
a11533 1
echo "$as_me:12037: checking if external errno exists" >&5
d11540 1
a11540 1
#line 12044 "configure"
d11555 1
a11555 1
if { (eval echo "$as_me:12059: \"$ac_link\"") >&5
d11558 1
a11558 1
  echo "$as_me:12062: \$? = $ac_status" >&5
d11561 1
a11561 1
  { (eval echo "$as_me:12065: \"$ac_try\"") >&5
d11564 1
a11564 1
  echo "$as_me:12068: \$? = $ac_status" >&5
d11575 1
a11575 1
echo "$as_me:12079: result: $cf_cv_have_errno" >&5
d11588 1
a11588 1
echo "$as_me:12092: checking if data-only library module links" >&5
d11596 1
a11596 1
#line 12100 "configure"
d11599 1
a11599 1
	if { (eval echo "$as_me:12103: \"$ac_compile\"") >&5
d11602 1
a11602 1
  echo "$as_me:12106: \$? = $ac_status" >&5
d11609 1
a11609 1
#line 12113 "configure"
d11622 1
a11622 1
	if { (eval echo "$as_me:12126: \"$ac_compile\"") >&5
d11625 1
a11625 1
  echo "$as_me:12129: \$? = $ac_status" >&5
d11638 1
a11638 1
#line 12142 "configure"
d11649 1
a11649 1
if { (eval echo "$as_me:12153: \"$ac_link\"") >&5
d11652 1
a11652 1
  echo "$as_me:12156: \$? = $ac_status" >&5
d11654 1
a11654 1
  { (eval echo "$as_me:12158: \"$ac_try\"") >&5
d11657 1
a11657 1
  echo "$as_me:12161: \$? = $ac_status" >&5
d11672 1
a11672 1
echo "$as_me:12176: result: $cf_cv_link_dataonly" >&5
d11707 1
a11707 1
echo "$as_me:12211: checking for $ac_func" >&5
d11713 1
a11713 1
#line 12217 "configure"
d11744 1
a11744 1
if { (eval echo "$as_me:12248: \"$ac_link\"") >&5
d11747 1
a11747 1
  echo "$as_me:12251: \$? = $ac_status" >&5
d11750 1
a11750 1
  { (eval echo "$as_me:12254: \"$ac_try\"") >&5
d11753 1
a11753 1
  echo "$as_me:12257: \$? = $ac_status" >&5
d11763 1
a11763 1
echo "$as_me:12267: result: `eval echo '${'$as_ac_var'}'`" >&5
d11775 1
a11775 1
echo "$as_me:12279: checking for terminal-capability database functions" >&5
d11782 1
a11782 1
#line 12286 "configure"
d11802 1
a11802 1
if { (eval echo "$as_me:12306: \"$ac_link\"") >&5
d11805 1
a11805 1
  echo "$as_me:12309: \$? = $ac_status" >&5
d11808 1
a11808 1
  { (eval echo "$as_me:12312: \"$ac_try\"") >&5
d11811 1
a11811 1
  echo "$as_me:12315: \$? = $ac_status" >&5
d11823 1
a11823 1
echo "$as_me:12327: result: $cf_cv_cgetent" >&5
d11831 1
a11831 1
echo "$as_me:12335: checking for isascii" >&5
d11838 1
a11838 1
#line 12342 "configure"
d11850 1
a11850 1
if { (eval echo "$as_me:12354: \"$ac_link\"") >&5
d11853 1
a11853 1
  echo "$as_me:12357: \$? = $ac_status" >&5
d11856 1
a11856 1
  { (eval echo "$as_me:12360: \"$ac_try\"") >&5
d11859 1
a11859 1
  echo "$as_me:12363: \$? = $ac_status" >&5
d11870 1
a11870 1
echo "$as_me:12374: result: $cf_cv_have_isascii" >&5
d11877 1
a11877 1
echo "$as_me:12381: checking whether sigaction needs _POSIX_SOURCE" >&5
d11880 1
a11880 1
#line 12384 "configure"
d11894 1
a11894 1
if { (eval echo "$as_me:12398: \"$ac_compile\"") >&5
d11897 1
a11897 1
  echo "$as_me:12401: \$? = $ac_status" >&5
d11900 1
a11900 1
  { (eval echo "$as_me:12404: \"$ac_try\"") >&5
d11903 1
a11903 1
  echo "$as_me:12407: \$? = $ac_status" >&5
d11911 1
a11911 1
#line 12415 "configure"
d11926 1
a11926 1
if { (eval echo "$as_me:12430: \"$ac_compile\"") >&5
d11929 1
a11929 1
  echo "$as_me:12433: \$? = $ac_status" >&5
d11932 1
a11932 1
  { (eval echo "$as_me:12436: \"$ac_try\"") >&5
d11935 1
a11935 1
  echo "$as_me:12439: \$? = $ac_status" >&5
d11950 1
a11950 1
echo "$as_me:12454: result: $sigact_bad" >&5
d11954 1
a11954 1
echo "$as_me:12458: checking if nanosleep really works" >&5
d11964 1
a11964 1
#line 12468 "configure"
d11989 1
a11989 1
if { (eval echo "$as_me:12493: \"$ac_link\"") >&5
d11992 1
a11992 1
  echo "$as_me:12496: \$? = $ac_status" >&5
d11994 1
a11994 1
  { (eval echo "$as_me:12498: \"$ac_try\"") >&5
d11997 1
a11997 1
  echo "$as_me:12501: \$? = $ac_status" >&5
d12009 1
a12009 1
echo "$as_me:12513: result: $cf_cv_func_nanosleep" >&5
d12023 1
a12023 1
echo "$as_me:12527: checking for $ac_header" >&5
d12029 1
a12029 1
#line 12533 "configure"
d12033 1
a12033 1
if { (eval echo "$as_me:12537: \"$ac_cpp conftest.$ac_ext\"") >&5
d12039 1
a12039 1
  echo "$as_me:12543: \$? = $ac_status" >&5
d12058 1
a12058 1
echo "$as_me:12562: result: `eval echo '${'$as_ac_Header'}'`" >&5
d12073 1
a12073 1
echo "$as_me:12577: checking for $ac_header" >&5
d12079 1
a12079 1
#line 12583 "configure"
d12083 1
a12083 1
if { (eval echo "$as_me:12587: \"$ac_cpp conftest.$ac_ext\"") >&5
d12089 1
a12089 1
  echo "$as_me:12593: \$? = $ac_status" >&5
d12108 1
a12108 1
echo "$as_me:12612: result: `eval echo '${'$as_ac_Header'}'`" >&5
d12126 1
a12126 1
	echo "$as_me:12630: checking whether termios.h needs _POSIX_SOURCE" >&5
d12129 1
a12129 1
#line 12633 "configure"
d12141 1
a12141 1
if { (eval echo "$as_me:12645: \"$ac_compile\"") >&5
d12144 1
a12144 1
  echo "$as_me:12648: \$? = $ac_status" >&5
d12147 1
a12147 1
  { (eval echo "$as_me:12651: \"$ac_try\"") >&5
d12150 1
a12150 1
  echo "$as_me:12654: \$? = $ac_status" >&5
d12158 1
a12158 1
#line 12662 "configure"
d12172 1
a12172 1
if { (eval echo "$as_me:12676: \"$ac_compile\"") >&5
d12175 1
a12175 1
  echo "$as_me:12679: \$? = $ac_status" >&5
d12178 1
a12178 1
  { (eval echo "$as_me:12682: \"$ac_try\"") >&5
d12181 1
a12181 1
  echo "$as_me:12685: \$? = $ac_status" >&5
d12196 1
a12196 1
	echo "$as_me:12700: result: $termios_bad" >&5
d12201 1
a12201 1
echo "$as_me:12705: checking for tcgetattr" >&5
d12208 1
a12208 1
#line 12712 "configure"
d12236 1
a12236 1
if { (eval echo "$as_me:12740: \"$ac_link\"") >&5
d12239 1
a12239 1
  echo "$as_me:12743: \$? = $ac_status" >&5
d12242 1
a12242 1
  { (eval echo "$as_me:12746: \"$ac_try\"") >&5
d12245 1
a12245 1
  echo "$as_me:12749: \$? = $ac_status" >&5
d12255 1
a12255 1
echo "$as_me:12759: result: $cf_cv_have_tcgetattr" >&5
d12261 1
a12261 1
echo "$as_me:12765: checking for vsscanf function or workaround" >&5
d12268 1
a12268 1
#line 12772 "configure"
d12284 1
a12284 1
if { (eval echo "$as_me:12788: \"$ac_link\"") >&5
d12287 1
a12287 1
  echo "$as_me:12791: \$? = $ac_status" >&5
d12290 1
a12290 1
  { (eval echo "$as_me:12794: \"$ac_try\"") >&5
d12293 1
a12293 1
  echo "$as_me:12797: \$? = $ac_status" >&5
d12301 1
a12301 1
#line 12805 "configure"
d12323 1
a12323 1
if { (eval echo "$as_me:12827: \"$ac_link\"") >&5
d12326 1
a12326 1
  echo "$as_me:12830: \$? = $ac_status" >&5
d12329 1
a12329 1
  { (eval echo "$as_me:12833: \"$ac_try\"") >&5
d12332 1
a12332 1
  echo "$as_me:12836: \$? = $ac_status" >&5
d12340 1
a12340 1
#line 12844 "configure"
d12362 1
a12362 1
if { (eval echo "$as_me:12866: \"$ac_link\"") >&5
d12365 1
a12365 1
  echo "$as_me:12869: \$? = $ac_status" >&5
d12368 1
a12368 1
  { (eval echo "$as_me:12872: \"$ac_try\"") >&5
d12371 1
a12371 1
  echo "$as_me:12875: \$? = $ac_status" >&5
d12386 1
a12386 1
echo "$as_me:12890: result: $cf_cv_func_vsscanf" >&5
d12404 1
a12404 1
echo "$as_me:12908: checking for working mkstemp" >&5
d12412 1
a12412 1
  echo "$as_me:12916: checking for mkstemp" >&5
d12418 1
a12418 1
#line 12922 "configure"
d12449 1
a12449 1
if { (eval echo "$as_me:12953: \"$ac_link\"") >&5
d12452 1
a12452 1
  echo "$as_me:12956: \$? = $ac_status" >&5
d12455 1
a12455 1
  { (eval echo "$as_me:12959: \"$ac_try\"") >&5
d12458 1
a12458 1
  echo "$as_me:12962: \$? = $ac_status" >&5
d12468 1
a12468 1
echo "$as_me:12972: result: $ac_cv_func_mkstemp" >&5
d12473 1
a12473 1
#line 12977 "configure"
d12511 1
a12511 1
if { (eval echo "$as_me:13015: \"$ac_link\"") >&5
d12514 1
a12514 1
  echo "$as_me:13018: \$? = $ac_status" >&5
d12516 1
a12516 1
  { (eval echo "$as_me:13020: \"$ac_try\"") >&5
d12519 1
a12519 1
  echo "$as_me:13023: \$? = $ac_status" >&5
d12534 1
a12534 1
echo "$as_me:13038: result: $cf_cv_func_mkstemp" >&5
d12552 1
a12552 1
	{ echo "$as_me:13056: WARNING: cross compiling: assume setvbuf params not reversed" >&5
d12555 1
a12555 1
	echo "$as_me:13059: checking whether setvbuf arguments are reversed" >&5
d12561 1
a12561 1
  { { echo "$as_me:13065: error: cannot run test program while cross compiling" >&5
d12566 1
a12566 1
#line 13070 "configure"
d12583 1
a12583 1
if { (eval echo "$as_me:13087: \"$ac_link\"") >&5
d12586 1
a12586 1
  echo "$as_me:13090: \$? = $ac_status" >&5
d12588 1
a12588 1
  { (eval echo "$as_me:13092: \"$ac_try\"") >&5
d12591 1
a12591 1
  echo "$as_me:13095: \$? = $ac_status" >&5
d12604 1
a12604 1
echo "$as_me:13108: result: $ac_cv_func_setvbuf_reversed" >&5
d12615 1
a12615 1
echo "$as_me:13119: checking return type of signal handlers" >&5
d12621 1
a12621 1
#line 13125 "configure"
d12643 1
a12643 1
if { (eval echo "$as_me:13147: \"$ac_compile\"") >&5
d12646 1
a12646 1
  echo "$as_me:13150: \$? = $ac_status" >&5
d12649 1
a12649 1
  { (eval echo "$as_me:13153: \"$ac_try\"") >&5
d12652 1
a12652 1
  echo "$as_me:13156: \$? = $ac_status" >&5
d12662 1
a12662 1
echo "$as_me:13166: result: $ac_cv_type_signal" >&5
d12669 1
a12669 1
echo "$as_me:13173: checking for type sigaction_t" >&5
d12676 1
a12676 1
#line 13180 "configure"
d12689 1
a12689 1
if { (eval echo "$as_me:13193: \"$ac_compile\"") >&5
d12692 1
a12692 1
  echo "$as_me:13196: \$? = $ac_status" >&5
d12695 1
a12695 1
  { (eval echo "$as_me:13199: \"$ac_try\"") >&5
d12698 1
a12698 1
  echo "$as_me:13202: \$? = $ac_status" >&5
d12709 1
a12709 1
echo "$as_me:13213: result: $cf_cv_type_sigaction" >&5
d12715 1
a12715 1
echo "$as_me:13219: checking declaration of size-change" >&5
d12730 1
a12730 1
#line 13234 "configure"
d12774 1
a12774 1
if { (eval echo "$as_me:13278: \"$ac_compile\"") >&5
d12777 1
a12777 1
  echo "$as_me:13281: \$? = $ac_status" >&5
d12780 1
a12780 1
  { (eval echo "$as_me:13284: \"$ac_try\"") >&5
d12783 1
a12783 1
  echo "$as_me:13287: \$? = $ac_status" >&5
d12802 1
a12802 1
echo "$as_me:13306: result: $cf_cv_sizechange" >&5
d12819 1
a12819 1
echo "$as_me:13323: checking for memmove" >&5
d12825 1
a12825 1
#line 13329 "configure"
d12856 1
a12856 1
if { (eval echo "$as_me:13360: \"$ac_link\"") >&5
d12859 1
a12859 1
  echo "$as_me:13363: \$? = $ac_status" >&5
d12862 1
a12862 1
  { (eval echo "$as_me:13366: \"$ac_try\"") >&5
d12865 1
a12865 1
  echo "$as_me:13369: \$? = $ac_status" >&5
d12875 1
a12875 1
echo "$as_me:13379: result: $ac_cv_func_memmove" >&5
d12881 1
a12881 1
echo "$as_me:13385: checking for bcopy" >&5
d12887 1
a12887 1
#line 13391 "configure"
d12918 1
a12918 1
if { (eval echo "$as_me:13422: \"$ac_link\"") >&5
d12921 1
a12921 1
  echo "$as_me:13425: \$? = $ac_status" >&5
d12924 1
a12924 1
  { (eval echo "$as_me:13428: \"$ac_try\"") >&5
d12927 1
a12927 1
  echo "$as_me:13431: \$? = $ac_status" >&5
d12937 1
a12937 1
echo "$as_me:13441: result: $ac_cv_func_bcopy" >&5
d12941 1
a12941 1
	echo "$as_me:13445: checking if bcopy does overlapping moves" >&5
d12951 1
a12951 1
#line 13455 "configure"
d12965 1
a12965 1
if { (eval echo "$as_me:13469: \"$ac_link\"") >&5
d12968 1
a12968 1
  echo "$as_me:13472: \$? = $ac_status" >&5
d12970 1
a12970 1
  { (eval echo "$as_me:13474: \"$ac_try\"") >&5
d12973 1
a12973 1
  echo "$as_me:13477: \$? = $ac_status" >&5
d12986 1
a12986 1
echo "$as_me:13490: result: $cf_cv_good_bcopy" >&5
d13007 1
a13007 1
echo "$as_me:13511: checking if poll really works" >&5
d13017 1
a13017 1
#line 13521 "configure"
d13038 1
a13038 1
if { (eval echo "$as_me:13542: \"$ac_link\"") >&5
d13041 1
a13041 1
  echo "$as_me:13545: \$? = $ac_status" >&5
d13043 1
a13043 1
  { (eval echo "$as_me:13547: \"$ac_try\"") >&5
d13046 1
a13046 1
  echo "$as_me:13550: \$? = $ac_status" >&5
d13058 1
a13058 1
echo "$as_me:13562: result: $cf_cv_working_poll" >&5
a13063 129
# special check for test/ditto.c

echo "$as_me:13570: checking for openpty in -lutil" >&5
echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
if test "${ac_cv_lib_util_openpty+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lutil  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 13578 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char openpty ();
int
main ()
{
openpty ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13597: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13600: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13603: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13606: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_util_openpty=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_util_openpty=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:13617: result: $ac_cv_lib_util_openpty" >&5
echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
if test $ac_cv_lib_util_openpty = yes; then
  cf_cv_lib_util=yes
else
  cf_cv_lib_util=no
fi

echo "$as_me:13625: checking for openpty header" >&5
echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
if test "${cf_cv_func_openpty+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    cf_save_LIBS="$LIBS"
    test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
    for cf_header in pty.h libutil.h util.h
    do
    cat >conftest.$ac_ext <<_ACEOF
#line 13636 "configure"
#include "confdefs.h"

#include <$cf_header>

int
main ()
{

    int x = openpty((int *)0, (int *)0, (char *)0,
                   (struct termios *)0, (struct winsize *)0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13653: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13656: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13659: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13662: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

        cf_cv_func_openpty=$cf_header
        break

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

        cf_cv_func_openpty=no

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    done
    LIBS="$cf_save_LIBS"

fi
echo "$as_me:13680: result: $cf_cv_func_openpty" >&5
echo "${ECHO_T}$cf_cv_func_openpty" >&6

if test "$cf_cv_func_openpty" != no ; then
    cat >>confdefs.h <<EOF
#define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
EOF

    cat >>confdefs.h <<\EOF
#define USE_XTERM_PTY 1
EOF

    if test "$cf_cv_lib_util" = yes ; then
        TEST_LIBS="-lutil $TEST_LIBS"
    fi
fi

d13069 1
a13069 114
case $with_hashed_db in #(vi
yes|*able*) #(vi
    ;;
*)
    if test -d "$with_hashed_db" ; then

if test -n "$with_hashed_db/include" ; then
  for cf_add_incdir in $with_hashed_db/include
  do
	while test $cf_add_incdir != /usr/include
	do
	  if test -d $cf_add_incdir
	  then
		cf_have_incdir=no
		if test -n "$CFLAGS$CPPFLAGS" ; then
		  # a loop is needed to ensure we can add subdirs of existing dirs
		  for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
			if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
			  cf_have_incdir=yes; break
			fi
		  done
		fi

		if test "$cf_have_incdir" = no ; then
          if test "$cf_add_incdir" = /usr/local/include ; then
			if test "$GCC" = yes
			then
			  cf_save_CPPFLAGS=$CPPFLAGS
			  CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
			  cat >conftest.$ac_ext <<_ACEOF
#line 13732 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
printf("Hello")
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13744: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13747: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13750: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13753: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_have_incdir=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
			  CPPFLAGS=$cf_save_CPPFLAGS
			fi
		  fi
		fi

		if test "$cf_have_incdir" = no ; then
		  test -n "$verbose" && echo "	adding $cf_add_incdir to include-path" 1>&6

echo "${as_me-configure}:13770: testing adding $cf_add_incdir to include-path ..." 1>&5

		  CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"

          cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
          test "$cf_top_incdir" = "$cf_add_incdir" && break
          cf_add_incdir="$cf_top_incdir"
		else
		  break
		fi
	  fi
	done
  done
fi

if test -n "$with_hashed_db/lib" ; then
  for cf_add_libdir in $with_hashed_db/lib
  do
    if test $cf_add_libdir = /usr/lib ; then
      :
    elif test -d $cf_add_libdir
    then
      cf_have_libdir=no
      if test -n "$LDFLAGS$LIBS" ; then
        # a loop is needed to ensure we can add subdirs of existing dirs
        for cf_test_libdir in $LDFLAGS $LIBS ; do
          if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
            cf_have_libdir=yes; break
          fi
        done
      fi
      if test "$cf_have_libdir" = no ; then
        test -n "$verbose" && echo "	adding $cf_add_libdir to library-path" 1>&6

echo "${as_me-configure}:13804: testing adding $cf_add_libdir to library-path ..." 1>&5

        LDFLAGS="-L$cf_add_libdir $LDFLAGS"
      fi
    fi
  done
fi

    fi
esac

echo "$as_me:13815: checking for db.h" >&5
d13075 1
a13075 1
#line 13821 "configure"
d13079 1
a13079 1
if { (eval echo "$as_me:13825: \"$ac_cpp conftest.$ac_ext\"") >&5
d13085 1
a13085 1
  echo "$as_me:13831: \$? = $ac_status" >&5
d13104 1
a13104 1
echo "$as_me:13850: result: $ac_cv_header_db_h" >&5
d13108 1
a13108 1
echo "$as_me:13854: checking for version of db" >&5
d13116 1
a13116 1
for cf_db_version in 1 2 3 4 5
d13119 1
a13119 1
echo "${as_me-configure}:13865: testing checking for db version $cf_db_version ..." 1>&5
d13122 1
a13122 1
#line 13868 "configure"
d13152 1
a13152 1
if { (eval echo "$as_me:13898: \"$ac_compile\"") >&5
d13155 1
a13155 1
  echo "$as_me:13901: \$? = $ac_status" >&5
d13158 1
a13158 1
  { (eval echo "$as_me:13904: \"$ac_try\"") >&5
d13161 1
a13161 1
  echo "$as_me:13907: \$? = $ac_status" >&5
d13175 1
a13175 1
echo "$as_me:13921: result: $cf_cv_hashed_db_version" >&5
d13179 1
a13179 1
	{ { echo "$as_me:13925: error: Cannot determine version of db" >&5
d13184 1
a13184 1
echo "$as_me:13930: checking for db libraries" >&5
d13191 1
a13191 1
for cf_db_libs in db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
d13198 1
a13198 1
echo "${as_me-configure}:13944: testing checking for library "$cf_db_libs" ..." 1>&5
d13201 1
a13201 1
#line 13947 "configure"
d13256 1
a13256 1
if { (eval echo "$as_me:14002: \"$ac_link\"") >&5
d13259 1
a13259 1
  echo "$as_me:14005: \$? = $ac_status" >&5
d13262 1
a13262 1
  { (eval echo "$as_me:14008: \"$ac_try\"") >&5
d13265 1
a13265 1
  echo "$as_me:14011: \$? = $ac_status" >&5
d13285 1
a13285 1
echo "$as_me:14031: result: $cf_cv_hashed_db_libs" >&5
d13289 1
a13289 1
		{ { echo "$as_me:14035: error: Cannot determine library for db" >&5
d13299 1
a13299 1
	{ { echo "$as_me:14045: error: Cannot find db.h" >&5
d13314 1
a13314 1
echo "$as_me:14060: checking if we should include stdbool.h" >&5
d13322 1
a13322 1
#line 14068 "configure"
d13334 1
a13334 1
if { (eval echo "$as_me:14080: \"$ac_compile\"") >&5
d13337 1
a13337 1
  echo "$as_me:14083: \$? = $ac_status" >&5
d13340 1
a13340 1
  { (eval echo "$as_me:14086: \"$ac_try\"") >&5
d13343 1
a13343 1
  echo "$as_me:14089: \$? = $ac_status" >&5
d13350 1
a13350 1
#line 14096 "configure"
d13366 1
a13366 1
if { (eval echo "$as_me:14112: \"$ac_compile\"") >&5
d13369 1
a13369 1
  echo "$as_me:14115: \$? = $ac_status" >&5
d13372 1
a13372 1
  { (eval echo "$as_me:14118: \"$ac_try\"") >&5
d13375 1
a13375 1
  echo "$as_me:14121: \$? = $ac_status" >&5
d13389 1
a13389 1
then	echo "$as_me:14135: result: yes" >&5
d13391 1
a13391 1
else	echo "$as_me:14137: result: no" >&5
d13395 1
a13395 1
echo "$as_me:14141: checking for builtin bool type" >&5
d13403 1
a13403 1
#line 14149 "configure"
d13418 1
a13418 1
if { (eval echo "$as_me:14164: \"$ac_compile\"") >&5
d13421 1
a13421 1
  echo "$as_me:14167: \$? = $ac_status" >&5
d13424 1
a13424 1
  { (eval echo "$as_me:14170: \"$ac_try\"") >&5
d13427 1
a13427 1
  echo "$as_me:14173: \$? = $ac_status" >&5
d13440 1
a13440 1
then	echo "$as_me:14186: result: yes" >&5
d13442 1
a13442 1
else	echo "$as_me:14188: result: no" >&5
d13464 1
a13464 1
echo "$as_me:14210: checking for library $cf_stdcpp_libname" >&5
d13473 1
a13473 1
#line 14219 "configure"
d13489 1
a13489 1
if { (eval echo "$as_me:14235: \"$ac_link\"") >&5
d13492 1
a13492 1
  echo "$as_me:14238: \$? = $ac_status" >&5
d13495 1
a13495 1
  { (eval echo "$as_me:14241: \"$ac_try\"") >&5
d13498 1
a13498 1
  echo "$as_me:14244: \$? = $ac_status" >&5
d13510 1
a13510 1
echo "$as_me:14256: result: $cf_cv_libstdcpp" >&5
d13515 1
a13515 1
	echo "$as_me:14261: checking whether $CXX understands -c and -o together" >&5
d13531 1
a13531 1
if { (eval echo "$as_me:14277: \"$ac_try\"") >&5
d13534 1
a13534 1
  echo "$as_me:14280: \$? = $ac_status" >&5
d13536 1
a13536 1
  test -f conftest2.$ac_objext && { (eval echo "$as_me:14282: \"$ac_try\"") >&5
d13539 1
a13539 1
  echo "$as_me:14285: \$? = $ac_status" >&5
d13550 1
a13550 1
  echo "$as_me:14296: result: yes" >&5
d13553 1
a13553 1
  echo "$as_me:14299: result: no" >&5
d13573 1
a13573 1
	echo "$as_me:14319: checking for lib$cf_gpp_libname" >&5
d13578 1
a13578 1
#line 14324 "configure"
d13592 1
a13592 1
if { (eval echo "$as_me:14338: \"$ac_link\"") >&5
d13595 1
a13595 1
  echo "$as_me:14341: \$? = $ac_status" >&5
d13598 1
a13598 1
  { (eval echo "$as_me:14344: \"$ac_try\"") >&5
d13601 1
a13601 1
  echo "$as_me:14347: \$? = $ac_status" >&5
d13620 1
a13620 1
#line 14366 "configure"
d13634 1
a13634 1
if { (eval echo "$as_me:14380: \"$ac_link\"") >&5
d13637 1
a13637 1
  echo "$as_me:14383: \$? = $ac_status" >&5
d13640 1
a13640 1
  { (eval echo "$as_me:14386: \"$ac_try\"") >&5
d13643 1
a13643 1
  echo "$as_me:14389: \$? = $ac_status" >&5
d13660 1
a13660 1
	echo "$as_me:14406: result: $cf_cxx_library" >&5
d13676 1
a13676 1
echo "$as_me:14422: checking how to run the C++ preprocessor" >&5
d13693 1
a13693 1
#line 14439 "configure"
d13698 1
a13698 1
if { (eval echo "$as_me:14444: \"$ac_cpp conftest.$ac_ext\"") >&5
d13704 1
a13704 1
  echo "$as_me:14450: \$? = $ac_status" >&5
d13727 1
a13727 1
#line 14473 "configure"
d13731 1
a13731 1
if { (eval echo "$as_me:14477: \"$ac_cpp conftest.$ac_ext\"") >&5
d13737 1
a13737 1
  echo "$as_me:14483: \$? = $ac_status" >&5
d13774 1
a13774 1
echo "$as_me:14520: result: $CXXCPP" >&5
d13784 1
a13784 1
#line 14530 "configure"
d13789 1
a13789 1
if { (eval echo "$as_me:14535: \"$ac_cpp conftest.$ac_ext\"") >&5
d13795 1
a13795 1
  echo "$as_me:14541: \$? = $ac_status" >&5
d13818 1
a13818 1
#line 14564 "configure"
d13822 1
a13822 1
if { (eval echo "$as_me:14568: \"$ac_cpp conftest.$ac_ext\"") >&5
d13828 1
a13828 1
  echo "$as_me:14574: \$? = $ac_status" >&5
d13856 1
a13856 1
  { { echo "$as_me:14602: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
d13868 1
a13868 1
for ac_header in iostream typeinfo
d13871 1
a13871 1
echo "$as_me:14617: checking for $ac_header" >&5
d13877 1
a13877 1
#line 14623 "configure"
d13881 1
a13881 1
if { (eval echo "$as_me:14627: \"$ac_cpp conftest.$ac_ext\"") >&5
d13887 1
a13887 1
  echo "$as_me:14633: \$? = $ac_status" >&5
d13906 1
a13906 1
echo "$as_me:14652: result: `eval echo '${'$as_ac_Header'}'`" >&5
d13916 1
a13916 1
echo "$as_me:14662: checking if we should include stdbool.h" >&5
d13924 1
a13924 1
#line 14670 "configure"
d13936 1
a13936 1
if { (eval echo "$as_me:14682: \"$ac_compile\"") >&5
d13939 1
a13939 1
  echo "$as_me:14685: \$? = $ac_status" >&5
d13942 1
a13942 1
  { (eval echo "$as_me:14688: \"$ac_try\"") >&5
d13945 1
a13945 1
  echo "$as_me:14691: \$? = $ac_status" >&5
d13952 1
a13952 1
#line 14698 "configure"
d13968 1
a13968 1
if { (eval echo "$as_me:14714: \"$ac_compile\"") >&5
d13971 1
a13971 1
  echo "$as_me:14717: \$? = $ac_status" >&5
d13974 1
a13974 1
  { (eval echo "$as_me:14720: \"$ac_try\"") >&5
d13977 1
a13977 1
  echo "$as_me:14723: \$? = $ac_status" >&5
d13991 1
a13991 1
then	echo "$as_me:14737: result: yes" >&5
d13993 1
a13993 1
else	echo "$as_me:14739: result: no" >&5
d13997 1
a13997 1
echo "$as_me:14743: checking for builtin bool type" >&5
d14005 1
a14005 1
#line 14751 "configure"
d14020 1
a14020 1
if { (eval echo "$as_me:14766: \"$ac_compile\"") >&5
d14023 1
a14023 1
  echo "$as_me:14769: \$? = $ac_status" >&5
d14026 1
a14026 1
  { (eval echo "$as_me:14772: \"$ac_try\"") >&5
d14029 1
a14029 1
  echo "$as_me:14775: \$? = $ac_status" >&5
d14042 1
a14042 1
then	echo "$as_me:14788: result: yes" >&5
d14044 1
a14044 1
else	echo "$as_me:14790: result: no" >&5
d14048 1
a14048 1
echo "$as_me:14794: checking for size of bool" >&5
d14059 1
a14059 1
#line 14805 "configure"
d14101 1
a14101 1
if { (eval echo "$as_me:14847: \"$ac_link\"") >&5
d14104 1
a14104 1
  echo "$as_me:14850: \$? = $ac_status" >&5
d14106 1
a14106 1
  { (eval echo "$as_me:14852: \"$ac_try\"") >&5
d14109 1
a14109 1
  echo "$as_me:14855: \$? = $ac_status" >&5
d14127 1
a14127 1
echo "$as_me:14873: result: $cf_cv_type_of_bool" >&5
d14133 1
a14133 1
	{ echo "$as_me:14879: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
d14138 1
a14138 1
echo "$as_me:14884: checking for special defines needed for etip.h" >&5
d14150 1
a14150 1
#line 14896 "configure"
d14164 1
a14164 1
if { (eval echo "$as_me:14910: \"$ac_compile\"") >&5
d14167 1
a14167 1
  echo "$as_me:14913: \$? = $ac_status" >&5
d14170 1
a14170 1
  { (eval echo "$as_me:14916: \"$ac_try\"") >&5
d14173 1
a14173 1
  echo "$as_me:14919: \$? = $ac_status" >&5
d14194 1
a14194 1
echo "$as_me:14940: result: $cf_result" >&5
d14199 1
a14199 1
echo "$as_me:14945: checking if $CXX accepts parameter initialization" >&5
d14216 1
a14216 1
#line 14962 "configure"
d14235 1
a14235 1
if { (eval echo "$as_me:14981: \"$ac_link\"") >&5
d14238 1
a14238 1
  echo "$as_me:14984: \$? = $ac_status" >&5
d14240 1
a14240 1
  { (eval echo "$as_me:14986: \"$ac_try\"") >&5
d14243 1
a14243 1
  echo "$as_me:14989: \$? = $ac_status" >&5
d14262 1
a14262 1
echo "$as_me:15008: result: $cf_cv_cpp_param_init" >&5
d14271 1
a14271 1
echo "$as_me:15017: checking if $CXX accepts static_cast" >&5
d14285 1
a14285 1
#line 15031 "configure"
d14329 1
a14329 1
if { (eval echo "$as_me:15075: \"$ac_compile\"") >&5
d14332 1
a14332 1
  echo "$as_me:15078: \$? = $ac_status" >&5
d14335 1
a14335 1
  { (eval echo "$as_me:15081: \"$ac_try\"") >&5
d14338 1
a14338 1
  echo "$as_me:15084: \$? = $ac_status" >&5
d14356 1
a14356 1
echo "$as_me:15102: result: $cf_cv_cpp_static_cast" >&5
d14365 183
d14587 1
a14587 1
echo "$as_me:15150: checking for size of bool" >&5
d14598 1
a14598 1
#line 15161 "configure"
d14640 1
a14640 1
if { (eval echo "$as_me:15203: \"$ac_link\"") >&5
d14643 1
a14643 1
  echo "$as_me:15206: \$? = $ac_status" >&5
d14645 1
a14645 1
  { (eval echo "$as_me:15208: \"$ac_try\"") >&5
d14648 1
a14648 1
  echo "$as_me:15211: \$? = $ac_status" >&5
d14666 1
a14666 1
echo "$as_me:15229: result: $cf_cv_type_of_bool" >&5
d14672 1
a14672 1
	{ echo "$as_me:15235: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
d14678 1
a14678 1
			echo "$as_me:15241: checking for fallback type of bool" >&5
d14684 1
a14684 1
			echo "$as_me:15247: result: $cf_cv_type_of_bool" >&5
a14709 9

if test "$cf_with_ada" != "no" ; then
    if test "$with_libtool" != "no"; then
	{ echo "$as_me:15276: WARNING: libtool does not support Ada - disabling feature" >&5
echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
	cf_with_ada=no
    fi
fi

d14714 1
a14714 1
echo "$as_me:15286: checking for $ac_word" >&5
d14729 1
a14729 1
echo "$as_me:15301: found $ac_dir/$ac_word" >&5
d14738 1
a14738 1
  echo "$as_me:15310: result: $gnat_exists" >&5
d14741 1
a14741 1
  echo "$as_me:15313: result: no" >&5
d14749 1
a14749 1
echo "$as_me:15321: checking for gnat version" >&5
d14753 1
a14753 1
echo "$as_me:15325: result: $cf_gnat_version" >&5
d14776 1
a14776 1
echo "$as_me:15348: checking for $ac_word" >&5
d14791 1
a14791 1
echo "$as_me:15363: found $ac_dir/$ac_word" >&5
d14800 1
a14800 1
  echo "$as_me:15372: result: $M4_exists" >&5
d14803 1
a14803 1
  echo "$as_me:15375: result: no" >&5
d14812 1
a14812 1
      echo "$as_me:15384: checking if GNAT works" >&5
d14840 1
a14840 1
      echo "$as_me:15412: result: $cf_cv_prog_gnat_correct" >&5
d14847 1
a14847 1
   echo "$as_me:15419: checking if GNAT pragma Unreferenced works" >&5
d14874 1
a14874 1
   echo "$as_me:15446: result: $cf_cv_pragma_unreferenced" >&5
d14900 1
a14900 2
fi; if test -n "$prefix/lib/ada/adainclude" ; then

d14926 1
a14926 1
  { { echo "$as_me:15499: error: expected a pathname, not \"$withval\"" >&5
a14931 1
fi
d14940 1
a14940 2
fi; if test -n "$prefix/lib/ada/adalib" ; then

d14966 1
a14966 1
  { { echo "$as_me:15541: error: expected a pathname, not \"$withval\"" >&5
a14971 1
fi
a14975 2
else
   cf_with_ada=no
d14978 3
a14980 11
### Construct the ncurses library-subsets, if any, from this set of keywords:
###	none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
###
### ticlib modules may be a separate library, otherwise contained in termlib.
### termlib modules may be a separate library, otherwise contained in ncurses.
###
### The of "+" or " " between the tokens controls the way the script
### chooses to split module lists into libraries.
###
### (see CF_LIB_RULES).
echo "$as_me:15566: checking for library subsets" >&5
a14981 13
LIB_SUBSETS=

if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
	LIB_SUBSETS="${LIB_SUBSETS}ticlib"
	if test "$with_ticlib" != no ; then
		LIB_SUBSETS="${LIB_SUBSETS} "
	else
		LIB_SUBSETS="${LIB_SUBSETS}+"
	fi
fi

LIB_SUBSETS="${LIB_SUBSETS}termlib"
test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
d14983 2
d14987 2
a14988 1
	LIB_SUBSETS="${LIB_SUBSETS}+"
a14989 1

d14993 1
a14993 2

echo "$as_me:15591: result: $LIB_SUBSETS" >&5
d15031 1
a15031 1
echo "$as_me:15629: checking default library suffix" >&5
d15042 1
a15042 1
echo "$as_me:15640: result: $DFT_ARG_SUFFIX" >&5
d15045 1
a15045 1
echo "$as_me:15643: checking default library-dependency suffix" >&5
a15066 1
DFT_LIB_SUFFIX=$DFT_DEP_SUFFIX
a15070 1
		DFT_LIB_SUFFIX=".dll"
d15074 1
a15074 1
echo "$as_me:15674: result: $DFT_DEP_SUFFIX" >&5
d15077 1
a15077 1
echo "$as_me:15677: checking default object directory" >&5
d15093 1
a15093 1
echo "$as_me:15693: result: $DFT_OBJ_SUBDIR" >&5
d15098 1
a15098 1
echo "$as_me:15698: checking c++ library-dependency suffix" >&5
d15124 1
a15124 1
echo "$as_me:15724: result: $CXX_LIB_SUFFIX" >&5
a15128 10
# do not want -ldl in build except as needed for -lncurses dependency
if test "$with_dlsym" = yes ; then
if test $DFT_LWR_MODEL = shared || \
   test $DFT_LWR_MODEL = libtool ; then

# remove dl library from $LIBS
LIBS=`echo "$LIBS" | sed -e 's/-ldl[ 	]//g' -e 's/-ldl$//'`

fi
fi
d15130 1
a15130 28

# TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
# do not need libdl
TICS_LIST=
if test "$with_dlsym" = yes ; then

# remove dl library from $SHLIB_LIST
TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ 	]//g' -e 's/-ldl$//'`

fi

if test "$with_ticlib" != no ; then

	if test "$with_ticlib" != yes ; then
		TICS_NAME=$with_ticlib
		TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TICS_LIB_SUFFIX="${with_ticlib}"
	else
		TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
		TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
		TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
	fi
	TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}"
else
	TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
fi

a15134 1
		TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
a15138 1
		TINFO_SUFFIX=${DFT_LIB_SUFFIX}
a15152 1
		TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
a15156 6
	# the next lines are needed for linking libtic over libncurses
	TINFO_NAME=${LIB_NAME}
	TINFO_SUFFIX=${DFT_LIB_SUFFIX}
	TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
	TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"

a15159 20
if test "$DFT_LWR_MODEL" = shared ; then
	case $cf_cv_system_name in #(vi
	cygwin*)
		# "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
		TINFO_SUFFIX=.dll
		;;
	esac
fi

if test "$with_dlsym" = yes ; then

# remove dl library from $TICS_LIST
TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ 	]//g' -e 's/-ldl$//'`

fi

if test "$DFT_LWR_MODEL" = "libtool"; then
    OBJEXT=lo
fi

d15163 1
a15163 37
case $DFT_LWR_MODEL in
normal|debug|profile)

if test "$GCC" = yes ; then
	LDFLAGS_STATIC=-static
	LDFLAGS_SHARED=-dynamic
else
	case $cf_cv_system_name in #(
	aix[45]*) 	#( from ld manpage
		LDFLAGS_STATIC=-bstatic
		LDFLAGS_SHARED=-bdynamic
		;;
	hpux*)		#( from ld manpage for hpux10.20, hpux11.11
		# We could also use just "archive" and "shared".
		LDFLAGS_STATIC=-Wl,-a,archive_shared
		LDFLAGS_SHARED=-Wl,-a,shared_archive
		;;
	irix*)		#( from ld manpage IRIX64
		LDFLAGS_STATIC=-Bstatic
		LDFLAGS_SHARED=-Bdynamic
		;;
	osf[45]*)	#( from ld manpage osf4.0d, osf5.1
		# alternative "-oldstyle_liblookup" (not in cc manpage)
		LDFLAGS_STATIC=-noso
		LDFLAGS_SHARED=-so_archive
		;;
	solaris2*)
		LDFLAGS_STATIC=-Bstatic
		LDFLAGS_SHARED=-Bdynamic
		;;
	esac
fi

	;;
esac

echo "$as_me:15865: checking where we will install curses.h" >&5
d15168 1
a15168 1
echo "$as_me:15870: result: $includedir" >&5
d15176 1
a15176 1
	{ echo "$as_me:15878: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
a15180 3
# used to separate tack out of the tree
NCURSES_TREE=

d15189 1
a15189 1
echo "$as_me:15894: checking for src modules" >&5
d15252 1
a15252 1
echo "$as_me:15957: result: $cf_cv_src_modules" >&5
a15286 4
if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
   SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses-config"
fi

a15393 73
### If we're building with rpath, try to link non-standard libs that way too.
if test "$DFT_LWR_MODEL" = "shared"; then

echo "$as_me:16106: checking for updated LDFLAGS" >&5
echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
if test -n "$LDFLAGS" ; then
echo "$as_me:16109: result: maybe" >&5
echo "${ECHO_T}maybe" >&6
test -n "$verbose" && echo "	...checking LDFLAGS $LDFLAGS" 1>&6

echo "${as_me-configure}:16113: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5

test -n "$verbose" && echo "	...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6

echo "${as_me-configure}:16117: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5

case "$EXTRA_LDFLAGS" in #(vi
-Wl,-rpath,*) #(vi
    cf_rpath_hack="-Wl,-rpath,"
    ;;
-R\ *)
    cf_rpath_hack="-R "
    ;;
-R*)
    cf_rpath_hack="-R"
    ;;
*)
    cf_rpath_hack=
    ;;
esac
if test -n "$cf_rpath_hack" ; then
    cf_rpath_dst=
    for cf_rpath_src in $LDFLAGS
    do
        test -n "$verbose" && echo "	Filtering $cf_rpath_src" 1>&6

echo "${as_me-configure}:16139: testing Filtering $cf_rpath_src ..." 1>&5

        case $cf_rpath_src in #(vi
        -L*) #(vi
            if test "$cf_rpath_hack" = "-R " ; then
                cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e 's%-L%-R %'`
            else
                cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e s%-L%$cf_rpath_hack%`
            fi
            test -n "$verbose" && echo "	...Filter $cf_rpath_tmp" 1>&6

echo "${as_me-configure}:16150: testing ...Filter $cf_rpath_tmp ..." 1>&5

            EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
            ;;
        *)
            cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
            ;;
        esac
    done
    LDFLAGS=$cf_rpath_dst
    test -n "$verbose" && echo "	...checked LDFLAGS $LDFLAGS" 1>&6

echo "${as_me-configure}:16162: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5

    test -n "$verbose" && echo "	...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6

echo "${as_me-configure}:16166: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5

fi
else
echo "$as_me:16170: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi

d15498 1
a15498 1
{ echo "$as_me:16280: creating $CONFIG_STATUS" >&5
d15630 1
a15630 1
configured by $0, generated by GNU Autoconf 2.52.20080325,
d15674 1
a15674 1
    { { echo "$as_me:16456: error: ambiguous option: $1
d15693 1
a15693 1
  -*) { { echo "$as_me:16475: error: unrecognized option: $1
d15712 1
a15712 1
This file was extended by $as_me 2.52.20080325, executed with
a15749 4
TINFO_SUFFIX="$TINFO_SUFFIX"
TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
TICS_NAME="$TICS_NAME"
a15754 1
cf_cv_do_relink="$cf_cv_do_relink"
a15756 1
cf_cv_enable_opaque="$cf_cv_enable_opaque"
d15783 1
a15783 1
  *) { { echo "$as_me:16571: error: invalid argument: $ac_config_target" >&5
a15930 1
s,@@LIBTOOL_OPTS@@,$LIBTOOL_OPTS,;t t
a15941 1
s,@@TICS_NAME@@,$TICS_NAME,;t t
a15963 1
s,@@USE_BIG_STRINGS@@,$USE_BIG_STRINGS,;t t
a15985 4
s,@@cf_cv_enable_reentrant@@,$cf_cv_enable_reentrant,;t t
s,@@cf_cv_enable_opaque@@,$cf_cv_enable_opaque,;t t
s,@@NCURSES_OPAQUE@@,$NCURSES_OPAQUE,;t t
s,@@NCURSES_SIZE_T@@,$NCURSES_SIZE_T,;t t
a15995 1
s,@@TEST_LIBS@@,$TEST_LIBS,;t t
a16017 4
s,@@TICS_ARG_SUFFIX@@,$TICS_ARG_SUFFIX,;t t
s,@@TICS_DEP_SUFFIX@@,$TICS_DEP_SUFFIX,;t t
s,@@TICS_LIB_SUFFIX@@,$TICS_LIB_SUFFIX,;t t
s,@@TICS_ARGS@@,$TICS_ARGS,;t t
a16022 2
s,@@LDFLAGS_STATIC@@,$LDFLAGS_STATIC,;t t
s,@@LDFLAGS_SHARED@@,$LDFLAGS_SHARED,;t t
a16023 1
s,@@TICS_LIST@@,$TICS_LIST,;t t
a16025 1
s,@@NCURSES_TREE@@,$NCURSES_TREE,;t t
d16149 1
a16149 1
    { echo "$as_me:16953: creating $ac_file" >&5
d16167 1
a16167 1
         test -f "$f" || { { echo "$as_me:16971: error: cannot find input file: $f" >&5
d16180 1
a16180 1
           { { echo "$as_me:16984: error: cannot find input file: $f" >&5
d16246 1
a16246 1
  test x"$ac_file" != x- && { echo "$as_me:17050: creating $ac_file" >&5
d16257 1
a16257 1
         test -f "$f" || { { echo "$as_me:17061: error: cannot find input file: $f" >&5
d16270 1
a16270 1
           { { echo "$as_me:17074: error: cannot find input file: $f" >&5
d16328 1
a16328 1
      { echo "$as_me:17132: $ac_file is unchanged" >&5
d16403 1
d16470 3
a16472 1
				LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}\${ABI_VERSION}.dll"
d16481 5
a16485 23
			cf_r_parts="$cf_subsets"

			while test -n "$cf_r_parts"
			do
				cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
				cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
				if test "$cf_l_parts" != "$cf_r_parts" ; then
					case $cf_l_parts in #(vi
					*termlib*) #(vi
						cf_item=`echo $LIBS_TO_MAKE |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
						;;
					*ticlib*)
						cf_item=`echo $LIBS_TO_MAKE |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
						;;
					*)
						break
						;;
					esac
					LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
				else
					break
				fi
			done
d16491 1
d16549 1
a16549 1
				*termlib*)
d16555 1
a16555 8
					;;
				ticlib*)
					cf_libname=$TICS_LIB_SUFFIX
					if test -n "${DFT_ARG_SUFFIX}" ; then
						# undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
						cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
					fi
					;;
a16595 2
				TermlibRoot=$TINFO_NAME \
				TermlibSuffix=$TINFO_SUFFIX \
a16597 1
				ReLink=${cf_cv_do_relink-no} \
d16684 2
a16685 2
install.libs uninstall.libs \\
install.data uninstall.data ::
d16694 1
a16694 1
	rm -f headers.sh headers.sed mk_shared_lib.sh
d16798 35
a16832 4
		$AWK -f $srcdir/mk-hdr.awk \
			subset="$LIB_SUBSETS" \
			compat="$WITH_CURSES_H" \
			$srcdir/$cf_dir/headers >>$cf_dir/Makefile
@


1.1.1.8
log
@Import ncurses 5.6-20061217 onto the vender branch

Approved by:	delphij
@
text
@d2 5
a6 1
# From configure.in Revision: 1.383 .
d8 2
a9 1
# Generated by Autoconf 2.52.20061216.
a10 2
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
d14 2
a15 86
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Name of the executable.
as_me=`echo "$0" |sed 's,.*[\\/],,'`

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

as_executable_p="test -f"

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

# NLS nuisances.
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }

# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }

# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

exec 6>&1

#
# Initializations.
#
d17 1
a17 47
cross_compiling=no
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}

# Maximum number of lines to put in a shell here document.
# This variable seems obsolete.  It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}

ac_unique_file="ncurses/base/lib_initscr.c"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"
a19 2
ac_init_help=
ac_init_version=false
d22 2
a23 1
cache_file=/dev/null
d25 1
d27 1
d36 1
a39 6

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
d53 6
a58 6
# Identity of this package.
PACKAGE_NAME=
PACKAGE_TARNAME=
PACKAGE_VERSION=
PACKAGE_STRING=
PACKAGE_BUGREPORT=
d63 1
d71 4
a74 1
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
d78 1
a78 1
  case $ac_option in
d83 1
a83 1
    bindir=$ac_optarg ;;
d86 1
a86 1
    ac_prev=build_alias ;;
d88 1
a88 1
    build_alias=$ac_optarg ;;
d95 1
a95 4
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;
d101 1
a101 1
    datadir=$ac_optarg ;;
d104 1
a104 1
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d106 5
a110 5
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    eval "enable_$ac_feature=no" ;;
d113 1
a113 1
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d115 6
a120 6
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
d123 1
a123 1
    eval "enable_$ac_feature='$ac_optarg'" ;;
d132 1
a132 1
    exec_prefix=$ac_optarg ;;
d138 144
a281 6
  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;
d284 1
a284 1
    ac_prev=host_alias ;;
d286 1
a286 1
    host_alias=$ac_optarg ;;
d293 1
a293 1
    includedir=$ac_optarg ;;
d298 1
a298 1
    infodir=$ac_optarg ;;
d303 1
a303 1
    libdir=$ac_optarg ;;
d310 1
a310 1
    libexecdir=$ac_optarg ;;
d319 1
a319 1
    localstatedir=$ac_optarg ;;
d324 1
a324 1
    mandir=$ac_optarg ;;
d345 1
a345 1
    oldincludedir=$ac_optarg ;;
d350 1
a350 1
    prefix=$ac_optarg ;;
d357 1
a357 1
    program_prefix=$ac_optarg ;;
d364 1
a364 1
    program_suffix=$ac_optarg ;;
d381 1
a381 1
    program_transform_name=$ac_optarg ;;
d391 1
a391 1
    sbindir=$ac_optarg ;;
d402 1
a402 1
    sharedstatedir=$ac_optarg ;;
d407 1
a407 1
    site=$ac_optarg ;;
d412 1
a412 1
    srcdir=$ac_optarg ;;
d419 1
a419 1
    sysconfdir=$ac_optarg ;;
d422 1
a422 1
    ac_prev=target_alias ;;
d424 1
a424 1
    target_alias=$ac_optarg ;;
d429 3
a431 2
  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;
d434 1
a434 1
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d436 3
a438 3
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
d440 2
a441 2
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
d444 1
a444 1
    eval "with_$ac_package='$ac_optarg'" ;;
d447 1
a447 1
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d449 5
a453 5
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
    ac_package=`echo $ac_package | sed 's/-/_/g'`
    eval "with_$ac_package=no" ;;
d464 1
a464 1
    x_includes=$ac_optarg ;;
d471 1
a471 1
    x_libraries=$ac_optarg ;;
d473 1
a473 3
  -*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; }
a475 10
  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   { (exit 1); exit 1; }; }
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    eval "$ac_envvar='$ac_optarg'"
    export $ac_envvar ;;

d477 7
a483 5
    # FIXME: should be removed in autoconf 3.0.
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
d490 17
a506 3
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  { echo "$as_me: error: missing argument to $ac_option" >&2
   { (exit 1); exit 1; }; }
d508 1
d510 4
a513 10
# Be sure to have absolute paths.
for ac_var in exec_prefix prefix
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
  esac
done
d515 4
a518 3
# Be sure to have absolute paths.
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
              localstatedir libdir includedir oldincludedir infodir mandir
d520 8
a527 5
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* ) ;;
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
d531 9
a539 16
# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: should be removed in autoconf 3.0.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi
d541 4
a544 2
ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-
d546 3
a548 1
test "$silent" = yes && exec 6>/dev/null
d555 1
a555 1
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
d566 44
a609 2
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
   { (exit 1); exit 1; }; }
d611 36
a646 2
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
   { (exit 1); exit 1; }; }
d648 3
d652 4
a655 45
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
ac_env_build_alias_set=${build_alias+set}
ac_env_build_alias_value=$build_alias
ac_cv_env_build_alias_set=${build_alias+set}
ac_cv_env_build_alias_value=$build_alias
ac_env_host_alias_set=${host_alias+set}
ac_env_host_alias_value=$host_alias
ac_cv_env_host_alias_set=${host_alias+set}
ac_cv_env_host_alias_value=$host_alias
ac_env_target_alias_set=${target_alias+set}
ac_env_target_alias_value=$target_alias
ac_cv_env_target_alias_set=${target_alias+set}
ac_cv_env_target_alias_value=$target_alias
ac_env_CC_set=${CC+set}
ac_env_CC_value=$CC
ac_cv_env_CC_set=${CC+set}
ac_cv_env_CC_value=$CC
ac_env_CFLAGS_set=${CFLAGS+set}
ac_env_CFLAGS_value=$CFLAGS
ac_cv_env_CFLAGS_set=${CFLAGS+set}
ac_cv_env_CFLAGS_value=$CFLAGS
ac_env_LDFLAGS_set=${LDFLAGS+set}
ac_env_LDFLAGS_value=$LDFLAGS
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
ac_cv_env_LDFLAGS_value=$LDFLAGS
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_env_CPPFLAGS_value=$CPPFLAGS
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
ac_env_CPP_set=${CPP+set}
ac_env_CPP_value=$CPP
ac_cv_env_CPP_set=${CPP+set}
ac_cv_env_CPP_value=$CPP
ac_env_CXX_set=${CXX+set}
ac_env_CXX_value=$CXX
ac_cv_env_CXX_set=${CXX+set}
ac_cv_env_CXX_value=$CXX
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_env_CXXFLAGS_value=$CXXFLAGS
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
ac_env_CXXCPP_set=${CXXCPP+set}
ac_env_CXXCPP_value=$CXXCPP
ac_cv_env_CXXCPP_set=${CXXCPP+set}
ac_cv_env_CXXCPP_value=$CXXCPP
d657 5
d663 16
a678 7
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<EOF
\`configure' configures this package to adapt to many kinds of systems.
d680 4
a683 1
Usage: $0 [OPTION]... [VAR=VALUE]...
d685 2
a686 2
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.
d688 53
a740 1
Defaults for the options are specified in brackets.
d742 4
a745 10
Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
d747 9
d758 9
a766 6
  cat <<EOF
Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]
d768 4
a771 4
By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.
a772 1
For better control, use the options below.
d774 6
a779 14
Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --infodir=DIR           info documentation [PREFIX/info]
  --mandir=DIR            man documentation [PREFIX/man]
EOF
a780 1
  cat <<\EOF
d782 9
a790 4
Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
d792 6
a797 5
System types:
  --build=BUILD           configure for building on BUILD [guessed]
  --host=HOST       build programs to run on HOST [BUILD]
  --target=TARGET   configure for building compilers for TARGET [HOST]
EOF
a799 1
if test -n "$ac_init_help"; then
d801 10
a810 1
  cat <<\EOF
d812 2
a813 3
Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
d815 1
a815 3
Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
d817 2
a818 649
  --with-rel-version=XXX  override derived release version
  --with-abi-version=XXX  override derived ABI version
  --with-system-type=XXX  test: override derived host system-type
  --without-cxx           do not adjust ncurses bool to match C++
  --without-cxx-binding   do not build C++ binding and demo
  --without-ada           suppress check for Ada95, don't build demo
  --without-progs         suppress build with programs (e.g., tic)
  --without-curses-h      install curses.h as ncurses.h only
  --with-install-prefix   prefixes actual install-location ($DESTDIR)
Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
  --with-build-cc=XXX     the build C compiler ($BUILD_CC)
  --with-build-cpp=XXX    the build C preprocessor ($BUILD_CPP)
  --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
  --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
  --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
  --with-build-libs=XXX   the build libraries (${BUILD_LIBS})
Options to Specify the Libraries Built/Used:
  --with-libtool          generate libraries with libtool
  --with-shared           generate shared-libraries
  --with-normal           generate normal-libraries (default)
  --with-debug            generate debug-libraries (default)
  --with-profile          generate profile-libraries
  --with-termlib          generate separate terminfo library
  --with-gpm              use Alessandro Rubini's GPM library
  --without-dlsym         do not use dlsym() to load GPM dynamically
  --with-sysmouse         use sysmouse (FreeBSD console)
  --enable-rpath          use rpath option when generating shared libraries
  --with-shlib-version=X  Specify rel or abi version for shared libs
Fine-Tuning Your Configuration:
  --disable-overwrite     leave out the link to -lcurses
  --disable-database      do not use terminfo, only fallbacks/termcap
  --with-database=XXX     specify terminfo source to install
  --with-hashed-db        specify hashed-database library
  --with-fallbacks=XXX    specify list of fallback terminal descriptions
  --without-xterm-new     specify if xterm terminfo should be old version
  --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
  --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
  --disable-big-core      assume machine has little memory
  --enable-termcap        compile in termcap fallback support
  --with-termpath=XXX     specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
  --enable-getcap         fast termcap load, no xrefs to terminfo
  --enable-getcap-cache   cache translated termcaps in ~/.terminfo
  --disable-home-terminfo drop ~/.terminfo from terminfo search-path
  --disable-root-environ  restrict environment when running as root
  --enable-symlinks       make tic use symbolic links not hard links
  --enable-broken_linker  compile with broken-linker support code
  --enable-bsdpad         recognize BSD-style prefix padding
  --enable-widec          compile with wide-char/UTF-8 code
  --disable-lp64          allow chtype to be long (ignore _LP64)
  --disable-largefile     omit support for large files
  --disable-tparm-varargs compile tparm() without varargs interface
  --with-bool=TYPE        override fallback type of bool variable
  --with-caps=alt         compile with alternate Caps file
  --with-chtype=TYPE      override type of chtype
  --with-ospeed=TYPE      override type of ospeed variable
  --with-mmask-t=TYPE     override type of mmask_t
  --with-rcs-ids          compile-in RCS identifiers
Options to Specify How Manpages are Installed:
  --with-manpage-format   specify manpage-format: gzip/compress/BSDI/normal and
                          optionally formatted/catonly, e.g., gzip,formatted
  --with-manpage-renames  specify manpage-renaming
  --with-manpage-aliases  specify manpage-aliases using .so
  --with-manpage-symlinks specify manpage-aliases using symlinks
  --with-manpage-tbl      specify manpage processing with tbl
Extensions:
  --disable-ext-funcs     disable function-extensions
  --enable-const          compile with extra/non-standard const
  --enable-no-padding     compile with $NCURSES_NO_PADDING code
  --enable-signed-char    compile with SIGWINCH handler
  --enable-sigwinch       compile with SIGWINCH handler
  --enable-tcap-names     compile with user-definable terminal capabilities
Development Code:
  --without-develop       disable development options
  --enable-hard-tabs      compile with hard-tabs code
  --enable-xmc-glitch     compile with support for xmc (magic-cookie)
Experimental Code:
  --disable-assumed-color do not assume anything about default-colors
  --disable-hashmap       compile without hashmap scrolling-optimization
  --enable-colorfgbg      compile with $COLORFGBG code
  --enable-ext-colors     compile for experimental 256-color support
  --enable-ext-mouse      compile for experimental mouse-encoding
  --enable-safe-sprintf   compile with experimental safe-sprintf code
  --disable-scroll-hints  compile without scroll-hints code
  --enable-wgetch-events  compile with experimental wgetch-events code
Testing/development Options:
  --enable-echo           build: display "compiling" commands (default)
  --enable-warnings       build: turn on GCC compiler warnings
  --enable-assertions     test: turn on generation of assertion code
  --with-dmalloc          test: use Gray Watson's dmalloc library
  --with-dbmalloc         test: use Conor Cahill's dbmalloc library
  --with-valgrind         test: use valgrind
  --disable-leaks         test: free permanent memory, analyze leaks
  --enable-expanded       test: generate functions for certain macros
  --disable-macros        test: use functions rather than macros
  --with-trace            test: add trace() function to all models of ncurses
Ada95 Binding Options:
  --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
  --with-ada-include=DIR  Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
  --with-ada-objects=DIR  Ada objects are in DIR (default: PREFIX/lib/ada/adalib)

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
              headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      C++ preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

EOF
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  ac_popdir=`pwd`
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    cd $ac_subdir
    # A "../" for each directory in /$ac_subdir.
    ac_dots=`echo $ac_subdir |
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`

    case $srcdir in
    .) # No --srcdir option.  We are building in place.
      ac_sub_srcdir=$srcdir ;;
    [\\/]* | ?:[\\/]* ) # Absolute path.
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
    *) # Relative path.
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
    esac

    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f $ac_sub_srcdir/configure.gnu; then
      echo
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    elif test -f $ac_sub_srcdir/configure; then
      echo
      $SHELL $ac_sub_srcdir/configure  --help=recursive
    elif test -f $ac_sub_srcdir/configure.ac ||
           test -f $ac_sub_srcdir/configure.in; then
      echo
      $ac_configure --help
    else
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
    fi
    cd $ac_popdir
  done
fi

test -n "$ac_init_help" && exit 0
if $ac_init_version; then
  cat <<\EOF

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
EOF
  exit 0
fi
exec 5>config.log
cat >&5 <<EOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by $as_me, which was
generated by GNU Autoconf 2.52.20061216.  Invocation command line was

  $ $0 $@@

EOF
{
cat <<_ASUNAME
## ---------- ##
## Platform.  ##
## ---------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

PATH = $PATH

_ASUNAME
} >&5

cat >&5 <<EOF
## ------------ ##
## Core tests.  ##
## ------------ ##

EOF

# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell meta-characters.
ac_configure_args=
ac_sep=
for ac_arg
do
  case $ac_arg in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    ac_sep=" " ;;
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
     ac_sep=" " ;;
  esac
  # Get rid of the leading space.
done

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  echo >&5
  echo "## ----------------- ##" >&5
  echo "## Cache variables.  ##" >&5
  echo "## ----------------- ##" >&5
  echo >&5
  # The following way of writing the cache mishandles newlines in values,
{
  (set) 2>&1 |
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      sed -n \
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
      ;;
    *)
      sed -n \
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} >&5
  sed "/^$/d" confdefs.h >conftest.log
  if test -s conftest.log; then
    echo >&5
    echo "## ------------ ##" >&5
    echo "## confdefs.h.  ##" >&5
    echo "## ------------ ##" >&5
    echo >&5
    cat conftest.log >&5
  fi
  (echo; echo) >&5
  test "$ac_signal" != 0 &&
    echo "$as_me: caught signal $ac_signal" >&5
  echo "$as_me: exit $exit_status" >&5
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
    exit $exit_status
     ' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo >confdefs.h

# Let the site file select an alternate cache file if it wants to.
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    { echo "$as_me:989: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
    cat "$ac_site_file" >&5
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    { echo "$as_me:1000: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . $cache_file;;
      *)                      . ./$cache_file;;
    esac
  fi
else
  { echo "$as_me:1008: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in `(set) 2>&1 |
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  eval ac_new_val="\$ac_env_${ac_var}_value"
  case $ac_old_set,$ac_new_set in
    set,)
      { echo "$as_me:1024: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { echo "$as_me:1028: error: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
        { echo "$as_me:1034: error: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
        { echo "$as_me:1036:   former value:  $ac_old_val" >&5
echo "$as_me:   former value:  $ac_old_val" >&2;}
        { echo "$as_me:1038:   current value: $ac_new_val" >&5
echo "$as_me:   current value: $ac_new_val" >&2;}
        ac_cache_corrupted=:
      fi;;
  esac
  # Pass precious variables to config.status.  It doesn't matter if
  # we pass some twice (in addition to the command line arguments).
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
      ac_configure_args="$ac_configure_args '$ac_arg'"
      ;;
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
       ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { echo "$as_me:1057: error: changes in the environment can compromise the build" >&5
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  { { echo "$as_me:1059: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
echo "#! $SHELL" >conftest.sh
echo  "exit 0"   >>conftest.sh
chmod +x conftest.sh
if { (echo "$as_me:1080: PATH=\".;.\"; conftest.sh") >&5
  (PATH=".;."; conftest.sh) 2>&5
  ac_status=$?
  echo "$as_me:1083: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  ac_path_separator=';'
else
  ac_path_separator=:
fi
PATH_SEPARATOR="$ac_path_separator"
rm -f conftest.sh

ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"

top_builddir=`pwd`

echo "$as_me:1096: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_prog_egrep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    then ac_cv_prog_egrep='grep -E'
    else ac_cv_prog_egrep='egrep'
    fi
fi
echo "$as_me:1106: result: $ac_cv_prog_egrep" >&5
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 EGREP=$ac_cv_prog_egrep

test -z "$EGREP" && { { echo "$as_me:1110: error: No egrep program found" >&5
echo "$as_me: error: No egrep program found" >&2;}
   { (exit 1); exit 1; }; }

NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ 	]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ 	]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ 	]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
cf_cv_abi_version=${NCURSES_MAJOR}
cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
cf_cv_timestamp=`date`
echo "$as_me:1120: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6

test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0

# Check whether --with-rel-version or --without-rel-version was given.
if test "${with_rel_version+set}" = set; then
  withval="$with_rel_version"
  { echo "$as_me:1128: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
 cf_cv_rel_version=$withval
fi;

 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`

if test -n "$NCURSES_MAJOR" ; then
  case $NCURSES_MAJOR in #(vi
  [0-9]*) #(vi
 	;;
  *)
	{ { echo "$as_me:1141: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
   { (exit 1); exit 1; }; }
 	;;
  esac
else
  { { echo "$as_me:1147: error: Release major-version value is empty" >&5
echo "$as_me: error: Release major-version value is empty" >&2;}
   { (exit 1); exit 1; }; }
fi

if test -n "$NCURSES_MINOR" ; then
  case $NCURSES_MINOR in #(vi
  [0-9]*) #(vi
 	;;
  *)
	{ { echo "$as_me:1157: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
   { (exit 1); exit 1; }; }
 	;;
  esac
else
  { { echo "$as_me:1163: error: Release minor-version value is empty" >&5
echo "$as_me: error: Release minor-version value is empty" >&2;}
   { (exit 1); exit 1; }; }
fi

test -z "$cf_cv_abi_version" && cf_cv_abi_version=0

# Check whether --with-abi-version or --without-abi-version was given.
if test "${with_abi_version+set}" = set; then
  withval="$with_abi_version"
  { echo "$as_me:1173: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
 cf_cv_abi_version=$withval
fi;

if test -n "$cf_cv_abi_version" ; then
  case $cf_cv_abi_version in #(vi
  [0-9]*) #(vi
 	;;
  *)
	{ { echo "$as_me:1183: error: ABI version is not a number: $cf_cv_abi_version" >&5
echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
   { (exit 1); exit 1; }; }
 	;;
  esac
else
  { { echo "$as_me:1189: error: ABI version value is empty" >&5
echo "$as_me: error: ABI version value is empty" >&2;}
   { (exit 1); exit 1; }; }
fi

ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f $ac_dir/shtool; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { { echo "$as_me:1211: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
   { (exit 1); exit 1; }; }
fi
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.

# Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 ||
  { { echo "$as_me:1221: error: cannot run $ac_config_sub" >&5
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   { (exit 1); exit 1; }; }

echo "$as_me:1225: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6
if test "${ac_cv_build+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_build_alias=$build_alias
test -z "$ac_cv_build_alias" &&
  ac_cv_build_alias=`$ac_config_guess`
test -z "$ac_cv_build_alias" &&
  { { echo "$as_me:1234: error: cannot guess build type; you must specify one" >&5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   { (exit 1); exit 1; }; }
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  { { echo "$as_me:1238: error: $ac_config_sub $ac_cv_build_alias failed." >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1243: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6
build=$ac_cv_build
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

echo "$as_me:1250: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6
if test "${ac_cv_host+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_host_alias=$host_alias
test -z "$ac_cv_host_alias" &&
  ac_cv_host_alias=$ac_cv_build_alias
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  { { echo "$as_me:1259: error: $ac_config_sub $ac_cv_host_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1264: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6
host=$ac_cv_host
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
	echo "$as_me:1272: checking target system type" >&5
echo $ECHO_N "checking target system type... $ECHO_C" >&6
if test "${ac_cv_target+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_target_alias=$target_alias
test "x$ac_cv_target_alias" = "x" &&
  ac_cv_target_alias=$ac_cv_host_alias
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  { { echo "$as_me:1281: error: $ac_config_sub $ac_cv_target_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:1286: result: $ac_cv_target" >&5
echo "${ECHO_T}$ac_cv_target" >&6
target=$ac_cv_target
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`

# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
test -n "$target_alias" &&
  test "$program_prefix$program_suffix$program_transform_name" = \
    NONENONEs,x,x, &&
  program_prefix=${target_alias}-
	system_name="$host_os"
else
	system_name="`(uname -s -r) 2>/dev/null`"
	if test -z "$system_name" ; then
		system_name="`(hostname) 2>/dev/null`"
	fi
fi
test -n "$system_name" && cat >>confdefs.h <<EOF
#define SYSTEM_NAME "$system_name"
EOF

if test "${cf_cv_system_name+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cf_cv_system_name="$system_name"
fi

test -z "$system_name" && system_name="$cf_cv_system_name"
test -n "$cf_cv_system_name" && echo "$as_me:1317: result: Configuring for $cf_cv_system_name" >&5
echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6

if test ".$system_name" != ".$cf_cv_system_name" ; then
	echo "$as_me:1321: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
	{ { echo "$as_me:1323: error: \"Please remove config.cache and try again.\"" >&5
echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
   { (exit 1); exit 1; }; }
fi

# Check whether --with-system-type or --without-system-type was given.
if test "${with_system_type+set}" = set; then
  withval="$with_system_type"
  { echo "$as_me:1331: WARNING: overriding system type to $withval" >&5
echo "$as_me: WARNING: overriding system type to $withval" >&2;}
 cf_cv_system_name=$withval
fi;

###	Save the given $CFLAGS to allow user-override.
cf_user_CFLAGS="$CFLAGS"

###	Default install-location

echo "$as_me:1341: checking for prefix" >&5
echo $ECHO_N "checking for prefix... $ECHO_C" >&6
d822 1
a822 1
	openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
d829 1
a829 2
echo "$as_me:1353: result: $prefix" >&5
echo "${ECHO_T}$prefix" >&6
d832 2
a833 2
echo "$as_me:1357: checking for default include-directory" >&5
echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
d855 1
a855 2
echo "$as_me:1380: result: $includedir" >&5
echo "${ECHO_T}$includedir" >&6
d858 1
d860 6
a865 13
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo "$as_me:1394: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d870 10
a879 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}gcc"
echo "$as_me:1409: found $ac_dir/$ac_word" >&5
break
done

d882 1
a882 1
CC=$ac_cv_prog_CC
d884 1
a884 2
  echo "$as_me:1417: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d886 1
a886 2
  echo "$as_me:1420: result: no" >&5
echo "${ECHO_T}no" >&6
d889 39
a928 23
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "$as_me:1429: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="gcc"
echo "$as_me:1444: found $ac_dir/$ac_word" >&5
break
done

d931 3
a933 4
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1452: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
d935 1
a935 2
  echo "$as_me:1455: result: no" >&5
echo "${ECHO_T}no" >&6
d938 9
a946 13
  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
echo "$as_me:1468: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d951 10
a960 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}cc"
echo "$as_me:1483: found $ac_dir/$ac_word" >&5
break
done

d963 1
a963 1
CC=$ac_cv_prog_CC
d965 1
a965 2
  echo "$as_me:1491: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d967 6
a972 2
  echo "$as_me:1494: result: no" >&5
echo "${ECHO_T}no" >&6
d975 2
a976 23
fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:1503: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="cc"
echo "$as_me:1518: found $ac_dir/$ac_word" >&5
break
done
d978 6
a983 10
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1526: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:1529: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d985 1
a985 4
  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi
d987 2
a988 27
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:1542: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  ac_prog_rejected=yes
  continue
fi
ac_cv_prog_CC="cc"
echo "$as_me:1562: found $ac_dir/$ac_word" >&5
break
done
d990 9
a998 12
if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    set dummy "$ac_dir/$ac_word" ${1+"$@@"}
    shift
    ac_cv_prog_CC="$@@"
a999 7
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:1584: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d1001 3
a1003 2
  echo "$as_me:1587: result: no" >&5
echo "${ECHO_T}no" >&6
d1005 7
d1013 3
d1017 4
a1020 24
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:1598: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
echo "$as_me:1613: found $ac_dir/$ac_word" >&5
break
done
d1022 4
a1025 6
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:1621: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
d1027 7
a1033 38
  echo "$as_me:1624: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:1637: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="$ac_prog"
echo "$as_me:1652: found $ac_dir/$ac_word" >&5
break
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:1660: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
d1035 1
a1035 8
  echo "$as_me:1663: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$ac_ct_CC" && break
done

  CC=$ac_ct_CC
a1036 1

d1039 1
a1039 107
test -z "$CC" && { { echo "$as_me:1675: error: no acceptable cc found in \$PATH" >&5
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }

# Provide some information about the compiler.
echo "$as_me:1680:" \
     "checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:1683: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:1686: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:1688: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:1691: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:1693: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:1696: \$? = $ac_status" >&5
  (exit $ac_status); }

cat >conftest.$ac_ext <<_ACEOF
#line 1700 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
echo "$as_me:1716: checking for C compiler default output" >&5
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
if { (eval echo "$as_me:1719: \"$ac_link_default\"") >&5
  (eval $ac_link_default) 2>&5
  ac_status=$?
  echo "$as_me:1722: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # Find the output, starting from the most likely.  This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort.
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
                ls a.out conftest 2>/dev/null;
                ls a.* conftest.* 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    a.out ) # We found the default executable, but exeext='' is most
            # certainly right.
            break;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:1745: error: C compiler cannot create executables" >&5
echo "$as_me: error: C compiler cannot create executables" >&2;}
   { (exit 77); exit 77; }; }
fi

ac_exeext=$ac_cv_exeext
echo "$as_me:1751: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6

# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:1756: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
  { (eval echo "$as_me:1762: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1765: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { echo "$as_me:1772: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&2;}
   { (exit 1); exit 1; }; }
    fi
  fi
fi
echo "$as_me:1780: result: yes" >&5
echo "${ECHO_T}yes" >&6
d1041 2
a1042 29
rm -f a.out a.exe conftest$ac_cv_exeext
ac_clean_files=$ac_clean_files_save
# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:1787: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "$as_me:1789: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6

echo "$as_me:1792: checking for executable suffix" >&5
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
if { (eval echo "$as_me:1794: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:1797: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
d1044 1
a1044 3
  { { echo "$as_me:1813: error: cannot compute EXEEXT: cannot compile and link" >&5
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
   { (exit 1); exit 1; }; }
d1047 7
a1053 103
rm -f conftest$ac_cv_exeext
echo "$as_me:1819: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
echo "$as_me:1825: checking for object suffix" >&5
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1831 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { (eval echo "$as_me:1843: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1846: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
{ { echo "$as_me:1858: error: cannot compute OBJEXT: cannot compile" >&5
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
echo "$as_me:1865: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
echo "$as_me:1869: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
if test "${ac_cv_c_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 1875 "configure"
#include "confdefs.h"

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1890: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1893: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1896: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1899: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:1911: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
CFLAGS="-g"
echo "$as_me:1917: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cc_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1055 2
a1056 24
  cat >conftest.$ac_ext <<_ACEOF
#line 1923 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1935: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1938: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1941: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1944: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d1059 1
a1059 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_prog_cc_g=no
d1061 2
a1062 1
rm -f conftest.$ac_objext conftest.$ac_ext
d1064 2
a1065 2
echo "$as_me:1954: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
d1067 1
a1067 1
  CFLAGS=$ac_save_CFLAGS
d1081 24
a1104 29
# Some people use a C++ compiler to compile C.  Since we use `exit',
# in C++ we need to declare it.  In case someone uses the same compiler
# for both compiling C and C++ we need to have the C++ compiler decide
# the declaration of exit, since it's the most demanding environment.
cat >conftest.$ac_ext <<_ACEOF
#ifndef __cplusplus
  choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:1981: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:1984: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:1987: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:1990: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
d1106 9
a1114 26
  cat >conftest.$ac_ext <<_ACEOF
#line 2002 "configure"
#include "confdefs.h"
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2015: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2018: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2021: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2024: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
d1116 15
a1130 30
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 2034 "configure"
#include "confdefs.h"
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2046: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2049: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2052: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2055: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
d1132 1
a1132 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d1134 2
a1135 1
rm -f conftest.$ac_objext conftest.$ac_ext
d1137 15
a1151 5
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
d1154 5
a1158 3
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a1159 7
rm -f conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return
a1160 8
GCC_VERSION=none
if test "$GCC" = yes ; then
	echo "$as_me:2085: checking version of $CC" >&5
echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
	GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
	test -z "$GCC_VERSION" && GCC_VERSION=unknown
	echo "$as_me:2089: result: $GCC_VERSION" >&5
echo "${ECHO_T}$GCC_VERSION" >&6
d1163 6
a1168 8
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return
echo "$as_me:2099: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
d1174 2
a1175 2
  if test "${ac_cv_prog_CPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1177 3
a1179 8
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
d1181 3
a1183 3
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 2120 "configure"
d1186 6
a1191 19
                     Syntax error
_ACEOF
if { (eval echo "$as_me:2125: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:2131: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
d1194 2
a1195 1
  echo "$as_me: failed program was:" >&5
d1197 13
a1209 31
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 2154 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:2158: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:2164: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
d1211 2
a1212 1
  echo "$as_me: failed program was:" >&5
d1214 4
a1217 32
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
echo "$as_me:2201: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 2211 "configure"
d1220 6
a1225 19
                     Syntax error
_ACEOF
if { (eval echo "$as_me:2216: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:2222: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
d1228 2
a1229 1
  echo "$as_me: failed program was:" >&5
d1231 4
a1234 2
  # Broken: fails on valid input.
continue
d1236 1
a1236 24
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 2245 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:2249: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:2255: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
d1238 2
a1239 9
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
d1241 1
a1241 7
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
d1243 1
a1243 3
  { { echo "$as_me:2283: error: C preprocessor \"$CPP\" fails sanity check" >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
   { (exit 1); exit 1; }; }
d1245 1
d1247 5
a1251 12
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

if test $ac_cv_c_compiler_gnu = yes; then
    echo "$as_me:2296: checking whether $CC needs -traditional" >&5
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1254 2
a1255 2
  cat >conftest.$ac_ext <<_ACEOF
#line 2303 "configure"
d1258 2
a1259 2
int Autoconf = TIOCGETP;
_ACEOF
d1262 1
d1265 1
d1270 1
d1272 2
a1273 2
    cat >conftest.$ac_ext <<_ACEOF
#line 2318 "configure"
d1276 2
a1277 2
int Autoconf = TCGETA;
_ACEOF
d1280 1
d1287 2
a1288 2
echo "$as_me:2331: result: $ac_cv_prog_gcc_traditional" >&5
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
d1294 2
a1295 44
echo "$as_me:2338: checking whether $CC understands -c and -o together" >&5
echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
if test "${cf_cv_prog_CC_c_o+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat > conftest.$ac_ext <<CF_EOF
#include <stdio.h>
int main()
{
	${cf_cv_main_return:-return}(0);
}
CF_EOF
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
if { (eval echo "$as_me:2354: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2357: \$? = $ac_status" >&5
  (exit $ac_status); } &&
  test -f conftest2.$ac_objext && { (eval echo "$as_me:2359: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2362: \$? = $ac_status" >&5
  (exit $ac_status); };
then
  eval cf_cv_prog_CC_c_o=yes
else
  eval cf_cv_prog_CC_c_o=no
fi
rm -f conftest*

fi
if test $cf_cv_prog_CC_c_o = yes; then
  echo "$as_me:2373: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:2376: result: no" >&5
echo "${ECHO_T}no" >&6
fi

echo "$as_me:2380: checking for POSIXized ISC" >&5
echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
d1297 1
a1297 1
   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
d1299 1
a1299 2
  echo "$as_me:2385: result: yes" >&5
echo "${ECHO_T}yes" >&6
d1301 1
a1301 2

cat >>confdefs.h <<\EOF
d1311 1
a1311 2
  echo "$as_me:2399: result: no" >&5
echo "${ECHO_T}no" >&6
d1315 5
a1319 4
echo "$as_me:2404: checking for ${CC-cc} option to accept ANSI C" >&5
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
if test "${cf_cv_ansi_cc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1321 1
a1321 1

d1340 1
a1340 2

cf_fix_cppflags=no
a1342 2
cf_new_extra_cppflags=

a1344 2
case $cf_fix_cppflags in
no)
d1347 2
a1348 19
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
a1358 11
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
d1362 1
a1362 1

d1367 2
a1368 2

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
a1370 4
if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi
d1372 2
a1373 2
	cat >conftest.$ac_ext <<_ACEOF
#line 2498 "configure"
d1382 1
a1382 3
int
main ()
{
d1387 4
a1390 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2519: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2522: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2525: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2528: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d1393 2
a1394 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d1396 1
a1396 1
rm -f conftest.$ac_objext conftest.$ac_ext
d1402 2
a1403 2
echo "$as_me:2541: result: $cf_cv_ansi_cc" >&5
echo "${ECHO_T}$cf_cv_ansi_cc" >&6
d1407 1
a1407 2

cf_fix_cppflags=no
a1409 2
cf_new_extra_cppflags=

a1411 2
case $cf_fix_cppflags in
no)
a1413 17
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
a1425 11
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
d1429 1
a1429 1

d1434 2
a1435 2

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
a1437 4
if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi
d1440 1
a1440 1
	cat >>confdefs.h <<\EOF
d1447 1
d1449 1
a1449 6
	{ { echo "$as_me:2624: error: Your compiler does not appear to recognize prototypes.
You have the following choices:
	a. adjust your compiler options
	b. get an up-to-date compiler
	c. use a wrapper such as unproto" >&5
echo "$as_me: error: Your compiler does not appear to recognize prototypes.
d1453 1
a1453 2
	c. use a wrapper such as unproto" >&2;}
   { (exit 1); exit 1; }; }
d1456 3
d1461 1
d1465 5
a1469 3
    # autoconf's macro sets -Zexe and suffix both, which conflict:w
    LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
    ac_cv_exeext=.exe
d1473 1
a1473 3
PROG_EXT="$EXEEXT"

test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
d1477 3
a1479 4
if test "$cross_compiling" = yes ; then
  LDCONFIG=:
else
case "$cf_cv_system_name" in #(vi
d1486 4
a1489 4
echo "$as_me:2664: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_LDCONFIG+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1491 2
a1492 2
  case $LDCONFIG in
  [\\/]* | ?:[\\/]*)
d1495 3
d1499 10
a1508 12
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$LDPATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
   echo "$as_me:2681: found $ac_dir/$ac_word" >&5
   break
fi
done

d1512 1
a1512 2
LDCONFIG=$ac_cv_path_LDCONFIG

d1514 1
a1514 2
  echo "$as_me:2692: result: $LDCONFIG" >&5
echo "${ECHO_T}$LDCONFIG" >&6
d1516 1
a1516 2
  echo "$as_me:2695: result: no" >&5
echo "${ECHO_T}no" >&6
a1520 1
fi
d1522 3
a1524 2
echo "$as_me:2703: checking if you want to ensure bool is consistent with C++" >&5
echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
d1532 3
a1534 3
fi;
echo "$as_me:2713: result: $cf_with_cxx" >&5
echo "${ECHO_T}$cf_with_cxx" >&6
d1539 8
a1546 16
	# with autoconf 2.13, we can change the error to a warning:
		ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return
if test -n "$ac_tool_prefix"; then
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:2731: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1551 10
a1560 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
echo "$as_me:2746: found $ac_dir/$ac_word" >&5
break
done

d1563 1
a1563 1
CXX=$ac_cv_prog_CXX
d1565 1
a1565 2
  echo "$as_me:2754: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6
d1567 1
a1567 2
  echo "$as_me:2757: result: no" >&5
echo "${ECHO_T}no" >&6
d1570 1
a1570 26
    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:2770: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CXX="$ac_prog"
echo "$as_me:2785: found $ac_dir/$ac_word" >&5
break
d1572 17
d1590 10
a1599 6
fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  echo "$as_me:2793: result: $ac_ct_CXX" >&5
echo "${ECHO_T}$ac_ct_CXX" >&6
d1601 3
a1603 2
  echo "$as_me:2796: result: no" >&5
echo "${ECHO_T}no" >&6
d1605 7
d1613 3
a1615 5
  test -n "$ac_ct_CXX" && break
done
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"

  CXX=$ac_ct_CXX
d1617 4
d1622 12
a1633 24
# Provide some information about the compiler.
echo "$as_me:2808:" \
     "checking for C++ compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:2811: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:2814: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:2816: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:2819: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:2821: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:2824: \$? = $ac_status" >&5
  (exit $ac_status); }

echo "$as_me:2827: checking whether we are using the GNU C++ compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1635 3
a1637 3
  cat >conftest.$ac_ext <<_ACEOF
#line 2833 "configure"
#include "confdefs.h"
d1639 1
a1639 6
int
main ()
{
#ifndef __GNUC__
       choke me
#endif
d1641 2
a1642 36
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2848: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2851: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2854: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2857: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:2869: result: $ac_cv_cxx_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
GXX=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="-g"
echo "$as_me:2875: checking whether $CXX accepts -g" >&5
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cxx_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1644 2
a1645 3
  cat >conftest.$ac_ext <<_ACEOF
#line 2881 "configure"
#include "confdefs.h"
d1647 10
a1656 20
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2893: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2896: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2899: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2902: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d1659 1
a1659 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_prog_cxx_g=no
d1661 2
a1662 1
rm -f conftest.$ac_objext conftest.$ac_ext
d1664 2
a1665 2
echo "$as_me:2912: result: $ac_cv_prog_cxx_g" >&5
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
d1667 1
a1667 1
  CXXFLAGS=$ac_save_CXXFLAGS
a1680 124
for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line 2939 "configure"
#include "confdefs.h"
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2952: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2955: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2958: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2961: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 2971 "configure"
#include "confdefs.h"
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:2983: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:2986: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:2989: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:2992: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

		# autoconf 2.5x removed the error - by hardcoding it to g++.
	if test "$CXX" = "g++" ; then
		# Extract the first word of "g++", so it can be a program name with args.
set dummy g++; ac_word=$2
echo "$as_me:3019: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $CXX in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
  ;;
  *)
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_CXX="$ac_dir/$ac_word"
   echo "$as_me:3036: found $ac_dir/$ac_word" >&5
   break
fi
done

  ;;
esac
fi
CXX=$ac_cv_path_CXX

if test -n "$CXX"; then
  echo "$as_me:3047: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6
else
  echo "$as_me:3050: result: no" >&5
echo "${ECHO_T}no" >&6
fi
a1682 6
	if test "$CXX" = "g++" ; then
		{ echo "$as_me:3056: WARNING: ignoring hardcoded g++" >&5
echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
		cf_with_cxx=no; CXX=""; GXX="";
	fi
fi
d1686 11
a1696 6
	echo "$as_me:3064: checking version of g++" >&5
echo $ECHO_N "checking version of g++... $ECHO_C" >&6
	GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
	test -z "$GXX_VERSION" && GXX_VERSION=unknown
	echo "$as_me:3068: result: $GXX_VERSION" >&5
echo "${ECHO_T}$GXX_VERSION" >&6
d1699 2
a1700 11
case $GXX_VERSION in
1*|2.[0-6]*)
	# GXX=""; CXX=""; ac_cv_prog_gxx=no
	# cf_cxx_library=no
	{ echo "$as_me:3076: WARNING: templates do not work" >&5
echo "$as_me: WARNING: templates do not work" >&2;}
	;;
esac

echo "$as_me:3081: checking if you want to build C++ binding and demo" >&5
echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
d1708 1
a1708 3
fi;
echo "$as_me:3091: result: $cf_with_cxx_binding" >&5
echo "${ECHO_T}$cf_with_cxx_binding" >&6
d1710 4
a1713 2
echo "$as_me:3094: checking if you want to build with Ada95" >&5
echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
d1721 1
a1721 3
fi;
echo "$as_me:3104: result: $cf_with_ada" >&5
echo "${ECHO_T}$cf_with_ada" >&6
d1723 4
a1726 2
echo "$as_me:3107: checking if you want to build programs such as tic" >&5
echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
d1734 1
a1734 3
fi;
echo "$as_me:3117: result: $cf_with_progs" >&5
echo "${ECHO_T}$cf_with_progs" >&6
d1736 4
a1739 2
echo "$as_me:3120: checking if you wish to install curses.h" >&5
echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
d1747 3
a1749 3
fi;
echo "$as_me:3130: result: $with_curses_h" >&5
echo "${ECHO_T}$with_curses_h" >&6
d1757 10
d1768 1
a1768 1
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
d1771 4
a1774 8
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
# Double any \ or $.  echo might interpret backslashes.
# By default was `s,x,x', remove it if useless.
cat <<\_ACEOF >conftest.sed
s/[\\$]/&&/g;s/;s,x,x,$//
_ACEOF
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
rm conftest.sed
d1778 1
a1778 1
  # Extract the first word of "$ac_prog", so it can be a program name with args.
d1780 4
a1783 4
echo "$as_me:3156: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1788 10
a1797 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_AWK="$ac_prog"
echo "$as_me:3171: found $ac_dir/$ac_word" >&5
break
done

d1800 1
a1800 1
AWK=$ac_cv_prog_AWK
d1802 1
a1802 2
  echo "$as_me:3179: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
d1804 1
a1804 2
  echo "$as_me:3182: result: no" >&5
echo "${ECHO_T}no" >&6
d1807 1
a1807 1
  test -n "$AWK" && break
d1810 25
a1834 13
test -z "$AWK" && { { echo "$as_me:3189: error: No awk program found" >&5
echo "$as_me: error: No awk program found" >&2;}
   { (exit 1); exit 1; }; }

echo "$as_me:3193: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_prog_egrep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    then ac_cv_prog_egrep='grep -E'
    else ac_cv_prog_egrep='egrep'
    fi
a1835 7
echo "$as_me:3203: result: $ac_cv_prog_egrep" >&5
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 EGREP=$ac_cv_prog_egrep

test -z "$EGREP" && { { echo "$as_me:3207: error: No egrep program found" >&5
echo "$as_me: error: No egrep program found" >&2;}
   { (exit 1); exit 1; }; }
a1843 1
# AmigaOS /C/install, which installs bootblocks on floppy discs
d1848 2
a1849 2
echo "$as_me:3223: checking for a BSD compatible install" >&5
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
d1851 2
a1852 2
if test "${ac_cv_path_install+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1854 1
a1854 1
    ac_save_IFS=$IFS; IFS=$ac_path_separator
a1855 1
    IFS=$ac_save_IFS
d1857 2
a1858 4
    case $ac_dir/ in
    / | ./ | .// | /cC/* \
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
    | /usr/ucb/* ) ;;
d1864 1
a1864 1
        if $as_executable_p "$ac_dir/$ac_prog"; then
d1866 1
a1866 1
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
a1868 4
	  elif test $ac_prog = install &&
	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
d1878 1
d1882 1
a1882 1
    INSTALL=$ac_cv_path_install
d1888 1
a1888 1
    INSTALL=$ac_install_sh
d1891 1
a1891 2
echo "$as_me:3272: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6
d1897 1
a1897 1
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
d1905 1
a1905 1
  cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
d1907 1
a1907 1
  INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
d1911 4
a1914 8
for ac_prog in tdlint lint alint
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:3297: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_LINT+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1916 13
a1928 2
  if test -n "$LINT"; then
  ac_cv_prog_LINT="$LINT" # Let the user override the test.
d1930 14
a1943 9
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_LINT="$ac_prog"
echo "$as_me:3312: found $ac_dir/$ac_word" >&5
break
a1944 10

fi
fi
LINT=$ac_cv_prog_LINT
if test -n "$LINT"; then
  echo "$as_me:3320: result: $LINT" >&5
echo "${ECHO_T}$LINT" >&6
else
  echo "$as_me:3323: result: no" >&5
echo "${ECHO_T}no" >&6
d1947 5
a1951 2
  test -n "$LINT" && break
done
a1952 38
echo "$as_me:3330: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  echo "$as_me:3334: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:3337: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6
fi

echo "$as_me:3341: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.make <<\EOF
all:
	@@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
else
  eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftest.make
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$as_me:3361: result: yes" >&5
echo "${ECHO_T}yes" >&6
  SET_MAKE=
else
  echo "$as_me:3365: result: no" >&5
echo "${ECHO_T}no" >&6
  SET_MAKE="MAKE=${MAKE-make}"
a1954 5
echo "$as_me:3370: checking if filesystem supports mixed-case filenames" >&5
echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
if test "${cf_cv_mixedcase+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d1956 4
a1959 9
if test "$cross_compiling" = yes ; then
	case $target_alias in #(vi
	*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
		cf_cv_mixedcase=no
		;;
	*)
		cf_cv_mixedcase=yes
		;;
	esac
d1961 1
d1970 1
d1973 2
a1974 4
fi
echo "$as_me:3397: result: $cf_cv_mixedcase" >&5
echo "${ECHO_T}$cf_cv_mixedcase" >&6
test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
d1978 5
a1982 6
# Extract the first word of "ctags", so it can be a program name with args.
set dummy ctags; ac_word=$2
echo "$as_me:3405: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d1984 5
a1988 2
  if test -n "$MAKE_LOWER_TAGS"; then
  ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
d1990 1
a1990 12
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_MAKE_LOWER_TAGS="yes"
echo "$as_me:3420: found $ac_dir/$ac_word" >&5
break
done

  test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
d1993 3
a1995 4
MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
if test -n "$MAKE_LOWER_TAGS"; then
  echo "$as_me:3429: result: $MAKE_LOWER_TAGS" >&5
echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
d1997 1
a1997 2
  echo "$as_me:3432: result: no" >&5
echo "${ECHO_T}no" >&6
d2000 63
d2066 4
a2069 4
echo "$as_me:3439: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2074 10
a2083 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_MAKE_UPPER_TAGS="yes"
echo "$as_me:3454: found $ac_dir/$ac_word" >&5
break
done

d2087 1
a2087 1
MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
d2089 1
a2089 2
  echo "$as_me:3463: result: $MAKE_UPPER_TAGS" >&5
echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
d2091 1
a2091 2
  echo "$as_me:3466: result: no" >&5
echo "${ECHO_T}no" >&6
d2104 1
d2111 101
a2211 4
echo "$as_me:3486: checking for makeflags variable" >&5
echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
if test "${cf_cv_makeflags+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2213 11
d2225 7
d2233 1
a2233 1
	for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
d2240 1
a2240 1
		cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ 	]*$,,'`
d2252 1
a2252 2
		.-)	;;
		*)	echo "given option \"$cf_option\", no match \"$cf_result\""
a2258 2
echo "$as_me:3520: result: $cf_cv_makeflags" >&5
echo "${ECHO_T}$cf_cv_makeflags" >&6
d2260 2
a2261 42
echo "$as_me:3523: checking for long file names" >&5
echo $ECHO_N "checking for long file names... $ECHO_C" >&6
if test "${ac_cv_sys_long_file_names+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_sys_long_file_names=yes
# Test for long file names in all the places we know might matter:
#      .		the current directory, where building will happen
#      $prefix/lib	where we will be installing things
#      $exec_prefix/lib	likewise
# eval it to expand exec_prefix.
#      $TMPDIR		if set, where it might want to write temporary files
# if $TMPDIR is not set:
#      /tmp		where it might want to write temporary files
#      /var/tmp		likewise
#      /usr/tmp		likewise
if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
  ac_tmpdirs=$TMPDIR
else
  ac_tmpdirs='/tmp /var/tmp /usr/tmp'
fi
for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
  test -d $ac_dir || continue
  test -w $ac_dir || continue # It is less confusing to not echo anything here.
  ac_xdir=$ac_dir/cf$$
  (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
  ac_tf1=$ac_xdir/conftest9012345
  ac_tf2=$ac_xdir/conftest9012346
  (echo 1 >$ac_tf1) 2>/dev/null
  (echo 2 >$ac_tf2) 2>/dev/null
  ac_val=`cat $ac_tf1 2>/dev/null`
  if test ! -f $ac_tf1 || test "$ac_val" != 1; then
    ac_cv_sys_long_file_names=no
    rm -rf $ac_xdir 2>/dev/null
    break
  fi
  rm -rf $ac_xdir 2>/dev/null
done
fi
echo "$as_me:3562: result: $ac_cv_sys_long_file_names" >&5
echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
if test $ac_cv_sys_long_file_names = yes; then
a2262 3
cat >>confdefs.h <<\EOF
#define HAVE_LONG_FILE_NAMES 1
EOF
a2263 1
fi
d2265 2
a2266 5
echo "$as_me:3572: checking if filesystem supports mixed-case filenames" >&5
echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
if test "${cf_cv_mixedcase+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d2268 5
a2272 4
if test "$cross_compiling" = yes ; then
	case $target_alias in #(vi
	*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
		cf_cv_mixedcase=no
d2274 1
a2274 2
	*)
		cf_cv_mixedcase=yes
a2276 9
else
	rm -f conftest CONFTEST
	echo test >conftest
	if test -f CONFTEST ; then
		cf_cv_mixedcase=no
	else
		cf_cv_mixedcase=yes
	fi
	rm -f conftest CONFTEST
d2279 13
a2291 6
fi
echo "$as_me:3599: result: $cf_cv_mixedcase" >&5
echo "${ECHO_T}$cf_cv_mixedcase" >&6
test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
#define MIXEDCASE_FILENAMES 1
EOF
d2293 4
a2296 7
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo "$as_me:3608: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2298 2
a2299 13
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
echo "$as_me:3623: found $ac_dir/$ac_word" >&5
break
done
d2301 4
a2304 6
fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  echo "$as_me:3631: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
d2306 1
a2306 2
  echo "$as_me:3634: result: no" >&5
echo "${ECHO_T}no" >&6
a2308 23
fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo "$as_me:3643: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_RANLIB="ranlib"
echo "$as_me:3658: found $ac_dir/$ac_word" >&5
break
done
d2310 7
a2316 7
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  echo "$as_me:3667: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6
d2318 1
a2318 2
  echo "$as_me:3670: result: no" >&5
echo "${ECHO_T}no" >&6
d2321 10
a2330 1
  RANLIB=$ac_ct_RANLIB
d2332 1
a2332 1
  RANLIB="$ac_cv_prog_RANLIB"
d2335 10
a2344 7
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
set dummy ${ac_tool_prefix}ld; ac_word=$2
echo "$as_me:3682: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2346 1
a2346 23
  if test -n "$LD"; then
  ac_cv_prog_LD="$LD" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_LD="${ac_tool_prefix}ld"
echo "$as_me:3697: found $ac_dir/$ac_word" >&5
break
done

fi
fi
LD=$ac_cv_prog_LD
if test -n "$LD"; then
  echo "$as_me:3705: result: $LD" >&5
echo "${ECHO_T}$LD" >&6
else
  echo "$as_me:3708: result: no" >&5
echo "${ECHO_T}no" >&6
d2349 2
a2350 23
fi
if test -z "$ac_cv_prog_LD"; then
  ac_ct_LD=$LD
  # Extract the first word of "ld", so it can be a program name with args.
set dummy ld; ac_word=$2
echo "$as_me:3717: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_LD"; then
  ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_LD="ld"
echo "$as_me:3732: found $ac_dir/$ac_word" >&5
break
done
d2352 2
a2353 11
  test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
fi
fi
ac_ct_LD=$ac_cv_prog_ac_ct_LD
if test -n "$ac_ct_LD"; then
  echo "$as_me:3741: result: $ac_ct_LD" >&5
echo "${ECHO_T}$ac_ct_LD" >&6
else
  echo "$as_me:3744: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d2355 4
a2358 1
  LD=$ac_ct_LD
d2360 1
a2360 1
  LD="$ac_cv_prog_LD"
d2363 2
a2364 21
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
echo "$as_me:3756: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_AR="${ac_tool_prefix}ar"
echo "$as_me:3771: found $ac_dir/$ac_word" >&5
break
done
d2366 1
a2366 10
fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  echo "$as_me:3779: result: $AR" >&5
echo "${ECHO_T}$AR" >&6
else
  echo "$as_me:3782: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d2368 5
a2372 23
fi
if test -z "$ac_cv_prog_AR"; then
  ac_ct_AR=$AR
  # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
echo "$as_me:3791: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_AR="ar"
echo "$as_me:3806: found $ac_dir/$ac_word" >&5
break
done
d2374 6
a2379 11
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  echo "$as_me:3815: result: $ac_ct_AR" >&5
echo "${ECHO_T}$ac_ct_AR" >&6
else
  echo "$as_me:3818: result: no" >&5
echo "${ECHO_T}no" >&6
fi
a2380 4
  AR=$ac_ct_AR
else
  AR="$ac_cv_prog_AR"
fi
d2382 1
a2382 3
if test "${cf_cv_subst_AR_OPTS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
a2383 2
echo "$as_me:3831: checking for archiver options (symbol AR_OPTS)" >&5
echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
d2385 1
a2385 2
if test -z "$AR_OPTS" ; then
	AR_OPTS=rv
a2386 1
fi
d2388 1
a2388 3
cf_cv_subst_AR_OPTS=$AR_OPTS
echo "$as_me:3840: result: $AR_OPTS" >&5
echo "${ECHO_T}$AR_OPTS" >&6
a2389 1
fi
d2391 1
a2391 2
echo "$as_me:3845: checking if you have specified an install-prefix" >&5
echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
d2393 4
a2396 8
# Check whether --with-install-prefix or --without-install-prefix was given.
if test "${with_install_prefix+set}" = set; then
  withval="$with_install_prefix"
  case "$withval" in #(vi
	yes|no) #(vi
		;;
	*)	DESTDIR="$withval"
		;;
d2398 4
a2401 3
fi;
echo "$as_me:3858: result: $DESTDIR" >&5
echo "${ECHO_T}$DESTDIR" >&6
a2402 1
###############################################################################
d2404 2
a2405 3
# If we're cross-compiling, allow the user to override the tools and their
# options.  The configure script is oriented toward identifying the host
# compiler, etc., but we need a build compiler to generate parts of the source.
d2407 1
a2407 1
if test "$cross_compiling" = yes ; then
d2409 2
a2410 7
	# defaults that we might want to override
	: ${BUILD_CFLAGS:=''}
	: ${BUILD_CPPFLAGS:=''}
	: ${BUILD_LDFLAGS:=''}
	: ${BUILD_LIBS:=''}
	: ${BUILD_EXEEXT:='$x'}
	: ${BUILD_OBJEXT:='o'}
d2412 4
a2415 4
# Check whether --with-build-cc or --without-build-cc was given.
if test "${with_build_cc+set}" = set; then
  withval="$with_build_cc"
  BUILD_CC="$withval"
d2417 1
a2417 32
  for ac_prog in gcc cc cl
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:3886: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_BUILD_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$BUILD_CC"; then
  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
else
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_BUILD_CC="$ac_prog"
echo "$as_me:3901: found $ac_dir/$ac_word" >&5
break
done

fi
fi
BUILD_CC=$ac_cv_prog_BUILD_CC
if test -n "$BUILD_CC"; then
  echo "$as_me:3909: result: $BUILD_CC" >&5
echo "${ECHO_T}$BUILD_CC" >&6
else
  echo "$as_me:3912: result: no" >&5
echo "${ECHO_T}no" >&6
d2420 1
a2420 2
  test -n "$BUILD_CC" && break
done
d2422 3
a2424 76
fi;
	echo "$as_me:3920: checking for native build C compiler" >&5
echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
	echo "$as_me:3922: result: $BUILD_CC" >&5
echo "${ECHO_T}$BUILD_CC" >&6

	echo "$as_me:3925: checking for native build C preprocessor" >&5
echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6

# Check whether --with-build-cpp or --without-build-cpp was given.
if test "${with_build_cpp+set}" = set; then
  withval="$with_build_cpp"
  BUILD_CPP="$withval"
else
  BUILD_CPP='${BUILD_CC} -E'
fi;
	echo "$as_me:3935: result: $BUILD_CPP" >&5
echo "${ECHO_T}$BUILD_CPP" >&6

	echo "$as_me:3938: checking for native build C flags" >&5
echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6

# Check whether --with-build-cflags or --without-build-cflags was given.
if test "${with_build_cflags+set}" = set; then
  withval="$with_build_cflags"
  BUILD_CFLAGS="$withval"
fi;
	echo "$as_me:3946: result: $BUILD_CFLAGS" >&5
echo "${ECHO_T}$BUILD_CFLAGS" >&6

	echo "$as_me:3949: checking for native build C preprocessor-flags" >&5
echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6

# Check whether --with-build-cppflags or --without-build-cppflags was given.
if test "${with_build_cppflags+set}" = set; then
  withval="$with_build_cppflags"
  BUILD_CPPFLAGS="$withval"
fi;
	echo "$as_me:3957: result: $BUILD_CPPFLAGS" >&5
echo "${ECHO_T}$BUILD_CPPFLAGS" >&6

	echo "$as_me:3960: checking for native build linker-flags" >&5
echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6

# Check whether --with-build-ldflags or --without-build-ldflags was given.
if test "${with_build_ldflags+set}" = set; then
  withval="$with_build_ldflags"
  BUILD_LDFLAGS="$withval"
fi;
	echo "$as_me:3968: result: $BUILD_LDFLAGS" >&5
echo "${ECHO_T}$BUILD_LDFLAGS" >&6

	echo "$as_me:3971: checking for native build linker-libraries" >&5
echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6

# Check whether --with-build-libs or --without-build-libs was given.
if test "${with_build_libs+set}" = set; then
  withval="$with_build_libs"
  BUILD_LIBS="$withval"
fi;
	echo "$as_me:3979: result: $BUILD_LIBS" >&5
echo "${ECHO_T}$BUILD_LIBS" >&6

	# this assumes we're on Unix.
	BUILD_EXEEXT=
	BUILD_OBJEXT=o

	: ${BUILD_CC:='${CC}'}

	if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
		{ { echo "$as_me:3989: error: Cross-build requires two compilers.
Use --with-build-cc to specify the native compiler." >&5
echo "$as_me: error: Cross-build requires two compilers.
Use --with-build-cc to specify the native compiler." >&2;}
   { (exit 1); exit 1; }; }
	fi
d2426 4
d2431 1
a2431 8
	: ${BUILD_CC:='${CC}'}
	: ${BUILD_CPP:='${CPP}'}
	: ${BUILD_CFLAGS:='${CFLAGS}'}
	: ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
	: ${BUILD_LDFLAGS:='${LDFLAGS}'}
	: ${BUILD_LIBS:='${LIBS}'}
	: ${BUILD_EXEEXT:='$x'}
	: ${BUILD_OBJEXT:='o'}
d2434 7
a2440 30
###############################################################################

### Options to allow the user to specify the set of libraries which are used.
### Use "--without-normal --with-shared" to allow the default model to be
### shared, for example.
cf_list_models=""

LIBTOOL=

# common library maintenance symbols that are convenient for libtool scripts:
LIB_CREATE='${AR} -cr'
LIB_OBJECT='${OBJECTS}'
LIB_SUFFIX=.a
LIB_PREP="$RANLIB"

# symbols used to prop libtool up to enable it to determine what it should be
# doing:
LIB_CLEAN=
LIB_COMPILE=
LIB_LINK=
LIB_INSTALL=
LIB_UNINSTALL=

echo "$as_me:4030: checking if you want to build libraries with libtool" >&5
echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6

# Check whether --with-libtool or --without-libtool was given.
if test "${with_libtool+set}" = set; then
  withval="$with_libtool"
  with_libtool=$withval
d2442 9
a2450 5
  with_libtool=no
fi;
echo "$as_me:4040: result: $with_libtool" >&5
echo "${ECHO_T}$with_libtool" >&6
if test "$with_libtool" != "no"; then
d2452 7
a2458 4
 	if test "$with_libtool" != "yes" ; then

if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
d2460 4
a2463 1
  cf_path_syntax="$ac_default_prefix"
d2465 2
a2467 53
case ".$with_libtool" in #(vi
.\$\(*\)*|.\'*\'*) #(vi
  ;;
..|./*|.\\*) #(vi
  ;;
.[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  ;;
.\${*prefix}*) #(vi
  eval with_libtool="$with_libtool"
  case ".$with_libtool" in #(vi
  .NONE/*)
    with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
    ;;
  esac
  ;; #(vi
.no|.NONE/*)
  with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
  ;;
*)
  { { echo "$as_me:4071: error: expected a pathname, not \"$with_libtool\"" >&5
echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
   { (exit 1); exit 1; }; }
  ;;
esac

		LIBTOOL=$with_libtool
	else
 		# Extract the first word of "libtool", so it can be a program name with args.
set dummy libtool; ac_word=$2
echo "$as_me:4081: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_LIBTOOL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $LIBTOOL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
  ;;
  *)
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  if $as_executable_p "$ac_dir/$ac_word"; then
   ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
   echo "$as_me:4098: found $ac_dir/$ac_word" >&5
   break
fi
done

  ;;
esac
d2469 7
a2475 1
LIBTOOL=$ac_cv_path_LIBTOOL
d2477 1
a2477 39
if test -n "$LIBTOOL"; then
  echo "$as_me:4109: result: $LIBTOOL" >&5
echo "${ECHO_T}$LIBTOOL" >&6
else
  echo "$as_me:4112: result: no" >&5
echo "${ECHO_T}no" >&6
fi

 	fi
 	if test -z "$LIBTOOL" ; then
 		{ { echo "$as_me:4118: error: Cannot find libtool" >&5
echo "$as_me: error: Cannot find libtool" >&2;}
   { (exit 1); exit 1; }; }
 	fi
	LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` -o'
	LIB_OBJECT='${OBJECTS}.o=.lo)'
	LIB_SUFFIX=.la
	LIB_CLEAN='${LIBTOOL} --mode=clean'
	LIB_COMPILE='${LIBTOOL} --mode=compile'
	LIB_LINK='${LIBTOOL} --mode=link'
	LIB_INSTALL='${LIBTOOL} --mode=install'
	LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
	LIB_PREP=:

	# Show the version of libtool
	echo "$as_me:4133: checking version of libtool" >&5
echo $ECHO_N "checking version of libtool... $ECHO_C" >&6

	# Save the version in a cache variable - this is not entirely a good
	# thing, but the version string from libtool is very ugly, and for
	# bug reports it might be useful to have the original string.
	cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
	echo "$as_me:4140: result: $cf_cv_libtool_version" >&5
echo "${ECHO_T}$cf_cv_libtool_version" >&6
	if test -z "$cf_cv_libtool_version" ; then
		{ { echo "$as_me:4143: error: This is not libtool" >&5
echo "$as_me: error: This is not libtool" >&2;}
   { (exit 1); exit 1; }; }
	fi
a2478 9
	# special hack to add --tag option for C++ compiler
	case $cf_cv_libtool_version in
	1.[5-9]*|[2-9]*)
		LIBTOOL_CXX="$LIBTOOL --tag=CXX"
		;;
	*)
		LIBTOOL_CXX="$LIBTOOL"
		;;
	esac
d2480 1
a2480 2
	LIBTOOL=""
	LIBTOOL_CXX=""
d2483 1
a2483 1
test -z "$LIBTOOL" && ECHO_LT=
d2485 2
a2486 3
if test "$with_libtool" != "no" ; then

cf_list_models="$cf_list_models libtool"
d2488 4
d2493 2
d2496 7
a2502 7
echo "$as_me:4170: checking if you want to build shared libraries" >&5
echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6

# Check whether --with-shared or --without-shared was given.
if test "${with_shared+set}" = set; then
  withval="$with_shared"
  with_shared=$withval
d2504 9
a2512 5
  with_shared=no
fi;
echo "$as_me:4180: result: $with_shared" >&5
echo "${ECHO_T}$with_shared" >&6
test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
d2514 7
a2520 7
echo "$as_me:4184: checking if you want to build static libraries" >&5
echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6

# Check whether --with-normal or --without-normal was given.
if test "${with_normal+set}" = set; then
  withval="$with_normal"
  with_normal=$withval
d2522 7
a2528 5
  with_normal=yes
fi;
echo "$as_me:4194: result: $with_normal" >&5
echo "${ECHO_T}$with_normal" >&6
test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
d2530 8
a2537 2
echo "$as_me:4198: checking if you want to build debug libraries" >&5
echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
d2539 1
a2539 10
# Check whether --with-debug or --without-debug was given.
if test "${with_debug+set}" = set; then
  withval="$with_debug"
  with_debug=$withval
else
  with_debug=yes
fi;
echo "$as_me:4208: result: $with_debug" >&5
echo "${ECHO_T}$with_debug" >&6
test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
a2540 7
echo "$as_me:4212: checking if you want to build profiling libraries" >&5
echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6

# Check whether --with-profile or --without-profile was given.
if test "${with_profile+set}" = set; then
  withval="$with_profile"
  with_profile=$withval
d2542 2
a2543 5
  with_profile=no
fi;
echo "$as_me:4222: result: $with_profile" >&5
echo "${ECHO_T}$with_profile" >&6
test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
a2546 53
###############################################################################

echo "$as_me:4230: checking for specified models" >&5
echo $ECHO_N "checking for specified models... $ECHO_C" >&6
test -z "$cf_list_models" && cf_list_models=normal
test "$with_libtool" != "no" && cf_list_models=libtool
echo "$as_me:4234: result: $cf_list_models" >&5
echo "${ECHO_T}$cf_list_models" >&6

### Use the first model as the default, and save its suffix for use in building
### up test-applications.
echo "$as_me:4239: checking for default model" >&5
echo $ECHO_N "checking for default model... $ECHO_C" >&6
DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
echo "$as_me:4242: result: $DFT_LWR_MODEL" >&5
echo "${ECHO_T}$DFT_LWR_MODEL" >&6

DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`

TINFO_NAME=tinfo

LIB_NAME=ncurses

LIB_DIR=../lib
LIB_2ND=../../lib

	case $cf_cv_system_name in
	OS/2*)	LIB_PREFIX=''     ;;
	os2*)	LIB_PREFIX=''     ;;
	*)	LIB_PREFIX='lib'  ;;
	esac
cf_prefix=$LIB_PREFIX

LIB_PREFIX=$cf_prefix

LIB_SUFFIX=

###############################################################################

echo "$as_me:4267: checking if you want to build a separate terminfo library" >&5
echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6

# Check whether --with-termlib or --without-termlib was given.
if test "${with_termlib+set}" = set; then
  withval="$with_termlib"
  with_termlib=$withval
else
  with_termlib=no
fi;
echo "$as_me:4277: result: $with_termlib" >&5
echo "${ECHO_T}$with_termlib" >&6

### Checks for special libraries, must be done up-front.
d2548 2
a2549 3

echo "$as_me:4283: checking if you want to link with the GPM mouse library" >&5
echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
d2556 10
a2565 29
  with_gpm=maybe
fi;
echo "$as_me:4293: result: $with_gpm" >&5
echo "${ECHO_T}$with_gpm" >&6

if test "$with_gpm" != no ; then
	echo "$as_me:4297: checking for gpm.h" >&5
echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
if test "${ac_cv_header_gpm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4303 "configure"
#include "confdefs.h"
#include <gpm.h>
_ACEOF
if { (eval echo "$as_me:4307: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:4313: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d2567 17
a2583 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_gpm_h=yes
d2585 1
a2585 1
  echo "$as_me: failed program was:" >&5
d2587 2
a2588 1
  ac_cv_header_gpm_h=no
d2590 3
a2592 1
rm -f conftest.err conftest.$ac_ext
d2594 6
a2599 12
echo "$as_me:4332: result: $ac_cv_header_gpm_h" >&5
echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
if test $ac_cv_header_gpm_h = yes; then

		cat >>confdefs.h <<\EOF
#define HAVE_GPM_H 1
EOF

		if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
			test -n "$verbose" && echo "	assuming we really have GPM library" 1>&6

			cat >>confdefs.h <<\EOF
d2603 7
a2609 5
		else
			echo "$as_me:4348: checking for Gpm_Open in -lgpm" >&5
echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d2611 2
a2612 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgpm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 4356 "configure"
d2614 28
d2643 1
a2643 40
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char Gpm_Open ();
int
main ()
{
Gpm_Open ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4375: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4378: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4381: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4384: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_gpm_Gpm_Open=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_gpm_Gpm_Open=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:4395: result: $ac_cv_lib_gpm_Gpm_Open" >&5
echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
if test $ac_cv_lib_gpm_Gpm_Open = yes; then
  :
d2645 5
a2650 5
				{ { echo "$as_me:4401: error: Cannot link with GPM library" >&5
echo "$as_me: error: Cannot link with GPM library" >&2;}
   { (exit 1); exit 1; }; }
		fi
		with_gpm=yes
d2652 3
a2656 1
else
d2658 4
a2661 3
		test "$with_gpm" != maybe && { echo "$as_me:4411: WARNING: Cannot find GPM header" >&5
echo "$as_me: WARNING: Cannot find GPM header" >&2;}
		with_gpm=no
a2662 1
fi
d2664 10
a2673 1
fi
d2675 2
a2676 3
if test "$with_gpm" != no ; then
	echo "$as_me:4420: checking if you want to load GPM dynamically" >&5
echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
d2678 4
a2681 4
# Check whether --with-dlsym or --without-dlsym was given.
if test "${with_dlsym+set}" = set; then
  withval="$with_dlsym"
  with_dlsym=$withval
d2683 2
a2684 5
  with_dlsym=yes
fi;
	echo "$as_me:4430: result: $with_dlsym" >&5
echo "${ECHO_T}$with_dlsym" >&6
	if test "$with_dlsym" = yes ; then
d2686 1
a2686 358
cf_have_dlsym=no
echo "$as_me:4435: checking for dlsym" >&5
echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
if test "${ac_cv_func_dlsym+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 4441 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlsym (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlsym ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dlsym) || defined (__stub___dlsym)
choke me
#else
f = dlsym;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4472: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4475: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4478: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4481: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_dlsym=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_dlsym=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:4491: result: $ac_cv_func_dlsym" >&5
echo "${ECHO_T}$ac_cv_func_dlsym" >&6
if test $ac_cv_func_dlsym = yes; then
  cf_have_dlsym=yes
else

cf_have_libdl=no
echo "$as_me:4498: checking for dlsym in -ldl" >&5
echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlsym+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 4506 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlsym ();
int
main ()
{
dlsym ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4525: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4528: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4531: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4534: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlsym=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dl_dlsym=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:4545: result: $ac_cv_lib_dl_dlsym" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
if test $ac_cv_lib_dl_dlsym = yes; then

	cf_have_dlsym=yes
	cf_have_libdl=yes
fi

fi

if test "$cf_have_dlsym" = yes ; then
	test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"

	echo "$as_me:4558: checking whether able to link to dl*() functions" >&5
echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
	cat >conftest.$ac_ext <<_ACEOF
#line 4561 "configure"
#include "confdefs.h"
#include <dlfcn.h>
int
main ()
{

		void *obj;
		if ((obj = dlopen("filename", 0)) != 0) {
			if (dlsym(obj, "symbolname") == 0) {
			dlclose(obj);
			}
		}
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4579: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4582: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4585: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4588: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

		cat >>confdefs.h <<\EOF
#define HAVE_LIBDL 1
EOF

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

		{ { echo "$as_me:4599: error: Cannot link test program for libdl" >&5
echo "$as_me: error: Cannot link test program for libdl" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	echo "$as_me:4604: result: ok" >&5
echo "${ECHO_T}ok" >&6
else
	{ { echo "$as_me:4607: error: Cannot find dlsym function" >&5
echo "$as_me: error: Cannot find dlsym function" >&2;}
   { (exit 1); exit 1; }; }
fi

		if test "$with_gpm" != yes ; then
			test -n "$verbose" && echo "	assuming soname for gpm is $with_gpm" 1>&6

			cf_cv_gpm_soname="$with_gpm"
		else

echo "$as_me:4618: checking for soname of gpm library" >&5
echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
if test "${cf_cv_gpm_soname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_gpm_soname=unknown
if test "$cross_compiling" != yes ; then
cat >conftest.$ac_ext <<CF_EOF
#include <gpm.h>
int main()
{
if (Gpm_Open(0,0)) Gpm_Close();
	${cf_cv_main_return:-return}(0);
}
CF_EOF
cf_save_LIBS="$LIBS"
	LIBS="-lgpm $LIBS"
	if { (eval echo "$as_me:4636: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4639: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
		if { (eval echo "$as_me:4641: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4644: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
			cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
			test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
		fi
	fi
rm -f conftest*
LIBS="$cf_save_LIBS"
fi

fi
echo "$as_me:4655: result: $cf_cv_gpm_soname" >&5
echo "${ECHO_T}$cf_cv_gpm_soname" >&6

		fi
		test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
#define LIBGPM_SONAME "$cf_cv_gpm_soname"
EOF

		SHLIB_LIST="-ldl $SHLIB_LIST"
	else
		SHLIB_LIST="-lgpm $SHLIB_LIST"
	fi
	cat >>confdefs.h <<\EOF
#define HAVE_LIBGPM 1
EOF

	echo "$as_me:4671: checking for Gpm_Wgetch in -lgpm" >&5
echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgpm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 4679 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char Gpm_Wgetch ();
int
main ()
{
Gpm_Wgetch ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4698: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4701: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4704: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4707: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_gpm_Gpm_Wgetch=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_gpm_Gpm_Wgetch=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:4718: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then

		{ echo "$as_me:4722: WARNING: GPM library is already linked with curses - read the FAQ" >&5
echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}

fi

fi

# not everyone has "test -c"
if test -c /dev/sysmouse 2>/dev/null ; then
echo "$as_me:4731: checking if you want to use sysmouse" >&5
echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6

# Check whether --with-sysmouse or --without-sysmouse was given.
if test "${with_sysmouse+set}" = set; then
  withval="$with_sysmouse"
  cf_with_sysmouse=$withval
else
  cf_with_sysmouse=maybe
fi;
	if test "$cf_with_sysmouse" != no ; then
	cat >conftest.$ac_ext <<_ACEOF
#line 4743 "configure"
#include "confdefs.h"

#include <osreldate.h>
#if (__FreeBSD_version >= 400017)
#include <sys/consio.h>
#include <sys/fbio.h>
#else
#include <machine/console.h>
#endif

int
main ()
{

	struct mouse_info the_mouse;
	ioctl(0, CONS_MOUSECTL, &the_mouse);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4766: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4769: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4772: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4775: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_with_sysmouse=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_with_sysmouse=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	fi
echo "$as_me:4785: result: $cf_with_sysmouse" >&5
echo "${ECHO_T}$cf_with_sysmouse" >&6
test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
#define USE_SYSMOUSE 1
EOF

fi
a2687 34
if test X"$CC_G_OPT" = X"" ; then
	CC_G_OPT='-g'
	test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
fi

if test X"$CXX_G_OPT" = X"" ; then
	CXX_G_OPT='-g'
	test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
fi

echo "$as_me:4803: checking for default loader flags" >&5
echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
case $DFT_LWR_MODEL in
libtool) LD_MODEL=''   ;;
normal)  LD_MODEL=''   ;;
debug)   LD_MODEL=$CC_G_OPT ;;
profile) LD_MODEL='-pg';;
shared)  LD_MODEL=''   ;;
esac
echo "$as_me:4812: result: $LD_MODEL" >&5
echo "${ECHO_T}$LD_MODEL" >&6

echo "$as_me:4815: checking if rpath option should be used" >&5
echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6

# Check whether --enable-rpath or --disable-rpath was given.
if test "${enable_rpath+set}" = set; then
  enableval="$enable_rpath"
  cf_cv_ld_rpath=$enableval
else
  cf_cv_ld_rpath=no
fi;
echo "$as_me:4825: result: $cf_cv_ld_rpath" >&5
echo "${ECHO_T}$cf_cv_ld_rpath" >&6
d2689 1
d2697 3
a2699 3
	echo "$as_me:4835: checking if release/abi version should be used for shared libs" >&5
echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6

d2712 1
a2712 3
		{ { echo "$as_me:4850: error: option value must be one of: rel, abi, auto or no" >&5
echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
   { (exit 1); exit 1; }; }
d2715 1
a2715 1

d2718 3
a2720 3
fi;
	echo "$as_me:4859: result: $cf_cv_shlib_version" >&5
echo "${ECHO_T}$cf_cv_shlib_version" >&6
d2728 2
a2729 2
		echo "$as_me:4868: checking which $CC option to use" >&5
echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
d2734 2
a2735 2
			cat >conftest.$ac_ext <<_ACEOF
#line 4875 "configure"
d2738 1
a2738 3
int
main ()
{
d2740 4
a2743 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:4887: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4890: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:4893: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4896: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d2746 2
a2747 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d2749 1
a2749 1
rm -f conftest.$ac_objext conftest.$ac_ext
d2751 1
a2751 2
		echo "$as_me:4905: result: $CC_SHARED_OPTS" >&5
echo "${ECHO_T}$CC_SHARED_OPTS" >&6
d2759 1
a2759 1
		MK_SHARED_LIB='${CC} ${CFLAGS} -o $@@ -Xlinker -soname=`basename $@@` -nostart -e 0'
d2763 1
a2763 1
		MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,--out-implib=../lib/${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/${SHARED_LIB}'
d2770 1
a2770 1
		MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${DESTDIR}${libdir}/`basename $@@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@@'
a2772 46
		echo "$as_me:4928: checking if ld -search_paths_first works" >&5
echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

			cf_save_LDFLAGS=$LDFLAGS
			LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
			cat >conftest.$ac_ext <<_ACEOF
#line 4937 "configure"
#include "confdefs.h"

int
main ()
{
int i;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:4949: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4952: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:4955: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:4958: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_ldflags_search_paths_first=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_ldflags_search_paths_first=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
				LDFLAGS=$cf_save_LDFLAGS
fi
echo "$as_me:4969: result: $cf_cv_ldflags_search_paths_first" >&5
echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
		if test $cf_cv_ldflags_search_paths_first = yes; then
			LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
		fi
d2777 1
a2777 1
			LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
d2780 1
a2780 1
			LD_SHARED_OPTS='-Wl,+b,${libdir}'
d2782 1
a2782 1
		MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@@'
d2789 2
a2790 7
			if test "$GCC" = yes; then
				cf_ld_rpath_opt="-Wl,-rpath,"
				EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
			else
				cf_ld_rpath_opt="-rpath "
				EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
			fi
d2796 1
a2796 1
		MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@@` -o $@@'
d2799 1
a2799 1
	linux*|gnu*|k*bsd*-gnu)
d2801 1
a2801 1
			LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
d2806 1
a2806 1
			EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
d2808 2
a2809 9

	test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
	if test "$cf_cv_shlib_version" = rel; then
		cf_shared_soname='`basename $@@ .${REL_VERSION}`.${ABI_VERSION}'
	else
		cf_shared_soname='`basename $@@`'
	fi

		MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_shared_soname',-stats,-lc -o $@@'
d2813 1
a2813 1
		MK_SHARED_LIB='${LD} -Bshareable -soname,`basename $@@.${ABI_VERSION}` -o $@@'
d2815 1
a2815 1
	openbsd*|freebsd[23]*)
d2817 1
a2817 1
		MK_SHARED_LIB='${LD} -Bshareable -o $@@'
a2819 18
	freebsd*)
		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
		if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
			LOCAL_LDFLAGS="-rpath \$(LOCAL_LIBDIR)"
			LOCAL_LDFLAGS2="-rpath \${libdir} $LOCAL_LDFLAGS"
			cf_ld_rpath_opt="-rpath "
			EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
		fi

	test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
	if test "$cf_cv_shlib_version" = rel; then
		cf_shared_soname='`basename $@@ .${REL_VERSION}`.${ABI_VERSION}'
	else
		cf_shared_soname='`basename $@@`'
	fi

		MK_SHARED_LIB='${LD} -Bshareable -soname=`basename $@@` -o $@@'
		;;
d2824 1
a2824 1
			LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
d2826 2
a2827 1
			EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
d2829 1
a2829 3
			if test -f /usr/libexec/ld.elf_so; then
				cf_cv_shlib_version=abi
			else
a2832 9

	test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
	if test "$cf_cv_shlib_version" = rel; then
		cf_shared_soname='`basename $@@ .${REL_VERSION}`.${ABI_VERSION}'
	else
		cf_shared_soname='`basename $@@`'
	fi

			MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_shared_soname' -o $@@'
d2834 1
a2834 1
			MK_SHARED_LIB='${LD} -Bshareable -o $@@'
d2841 1
a2841 1
		MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@@`'
d2849 1
a2849 1
			LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
d2860 1
a2860 1
		if test "$GCC" != yes; then
d2863 1
a2863 1
		MK_SHARED_LIB='${LD} -dy -G -h `basename $@@ .${REL_VERSION}`.${ABI_VERSION} -o $@@'
d2869 1
a2869 1
		LINK_PROGS='LD_RUN_PATH=${libdir}'
d2874 1
a2874 1
		if test "$GCC" != yes; then
d2877 1
a2877 1
		MK_SHARED_LIB='${LD} -assert pure-text -o $@@'
d2882 1
a2882 1
		if test "$GCC" != yes; then
d2885 1
d2887 1
a2887 1
			LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
d2894 1
a2894 9

	test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
	if test "$cf_cv_shlib_version" = rel; then
		cf_shared_soname='`basename $@@ .${REL_VERSION}`.${ABI_VERSION}'
	else
		cf_shared_soname='`basename $@@`'
	fi

		MK_SHARED_LIB='${CC} -dy -G -h '$cf_shared_soname' -o $@@'
d2898 1
a2898 1
		if test "$GCC" != yes; then
d2901 1
a2901 1
		MK_SHARED_LIB='${LD} -d y -G -o $@@'
d2917 1
a2917 2
			{ echo "$as_me:5165: WARNING: ignored --with-shlib-version" >&5
echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
d2924 2
a2925 2
		echo "$as_me:5173: checking if we need a space after rpath option" >&5
echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
d2928 2
a2929 2
		cat >conftest.$ac_ext <<_ACEOF
#line 5178 "configure"
d2932 1
a2932 3
int
main ()
{
d2934 4
a2937 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5190: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5193: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5196: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5199: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d2940 4
a2943 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_rpath_space=yes
d2945 1
a2945 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d2947 1
a2947 2
		echo "$as_me:5209: result: $cf_rpath_space" >&5
echo "${ECHO_T}$cf_rpath_space" >&6
d2949 1
a2949 1
		MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${libdir}"
d2952 10
d2965 1
a2965 3
			{ { echo "$as_me:5218: error: Shared libraries are not supported in this version" >&5
echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
   { (exit 1); exit 1; }; }
d2972 1
d2974 2
a2975 2
echo "$as_me:5228: checking if you wish to install ncurses overwriting curses" >&5
echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
d2982 2
a2983 4
  if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
fi;
echo "$as_me:5238: result: $with_overwrite" >&5
echo "${ECHO_T}$with_overwrite" >&6
d2985 4
a2988 2
echo "$as_me:5241: checking if external terminfo-database is used" >&5
echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
d2996 3
a2998 3
fi;
echo "$as_me:5251: result: $use_database" >&5
echo "${ECHO_T}$use_database" >&6
d3009 2
d3016 2
d3019 1
a3019 1
	cat >>confdefs.h <<\EOF
d3023 3
a3025 3
	echo "$as_me:5273: checking which terminfo source-file will be installed" >&5
echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6

d3030 1
a3030 3
fi;
	echo "$as_me:5281: result: $TERMINFO_SRC" >&5
echo "${ECHO_T}$TERMINFO_SRC" >&6
d3032 1
a3032 12
	echo "$as_me:5284: checking whether to use hashed database instead of directory/tree" >&5
echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6

# Check whether --with-hashed-db or --without-hashed-db was given.
if test "${with_hashed_db+set}" = set; then
  withval="$with_hashed_db"

else
  with_hashed_db=no
fi;
	echo "$as_me:5294: result: $with_hashed_db" >&5
echo "${ECHO_T}$with_hashed_db" >&6
d3035 2
a3036 2
echo "$as_me:5298: checking for list of fallback descriptions" >&5
echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
d3044 5
a3048 22
fi;
echo "$as_me:5308: result: $with_fallback" >&5
echo "${ECHO_T}$with_fallback" >&6
FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`

echo "$as_me:5312: checking if you want modern xterm or antique" >&5
echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6

# Check whether --with-xterm-new or --without-xterm-new was given.
if test "${with_xterm_new+set}" = set; then
  withval="$with_xterm_new"
  with_xterm_new=$withval
else
  with_xterm_new=yes
fi;
case $with_xterm_new in
no)	with_xterm_new=xterm-old;;
*)	with_xterm_new=xterm-new;;
esac
echo "$as_me:5326: result: $with_xterm_new" >&5
echo "${ECHO_T}$with_xterm_new" >&6
WHICH_XTERM=$with_xterm_new
d3056 4
a3059 2
echo "$as_me:5336: checking for list of terminfo directories" >&5
echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
d3064 1
a3064 1

d3067 2
a3068 1
fi;
d3073 1
a3073 7

if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
fi

d3085 1
a3085 1
    cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
d3089 2
a3090 2
.no|.NONE/*)
  cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
d3093 1
a3093 3
  { { echo "$as_me:5376: error: expected a pathname, not \"$cf_src_path\"" >&5
echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
   { (exit 1); exit 1; }; }
d3102 2
d3106 3
a3108 3
echo "$as_me:5389: result: $TERMINFO_DIRS" >&5
echo "${ECHO_T}$TERMINFO_DIRS" >&6
test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
d3112 3
a3114 2
echo "$as_me:5395: checking for default terminfo directory" >&5
echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
d3119 1
a3119 1

a3121 5
fi;
if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
d3135 1
a3135 1
    withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
d3139 2
a3140 2
.no|.NONE/*)
  withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
d3143 1
a3143 3
  { { echo "$as_me:5430: error: expected a pathname, not \"$withval\"" >&5
echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
   { (exit 1); exit 1; }; }
d3147 1
a3147 1
TERMINFO="$withval"
d3149 2
a3150 3
echo "$as_me:5438: result: $TERMINFO" >&5
echo "${ECHO_T}$TERMINFO" >&6
cat >>confdefs.h <<EOF
d3154 1
d3157 3
d3162 2
a3163 2
echo "$as_me:5448: checking if big-core option selected" >&5
echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
d3173 2
a3174 2
  cat >conftest.$ac_ext <<_ACEOF
#line 5460 "configure"
d3184 1
a3184 1
	${cf_cv_main_return:-return}(s == 0);
d3186 3
a3188 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:5474: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5477: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:5479: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5482: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d3191 12
a3202 11
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
with_big_core=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi;
echo "$as_me:5494: result: $with_big_core" >&5
echo "${ECHO_T}$with_big_core" >&6
test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
d3206 1
d3208 2
a3209 2
echo "$as_me:5501: checking if you want termcap-fallback support" >&5
echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
d3217 3
a3219 3
fi;
echo "$as_me:5511: result: $with_termcap" >&5
echo "${ECHO_T}$with_termcap" >&6
d3223 2
a3224 4
		if test -z "$with_fallback" ; then
			{ { echo "$as_me:5517: error: You have disabled the database w/o specifying fallbacks" >&5
echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
   { (exit 1); exit 1; }; }
d3227 1
a3227 1
	cat >>confdefs.h <<\EOF
d3233 1
a3233 1
cat >>confdefs.h <<\EOF
d3237 4
a3240 2
echo "$as_me:5532: checking for list of termcap files" >&5
echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
d3245 1
a3245 1

d3248 2
a3249 1
fi;
d3254 1
a3254 7

if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
fi

d3266 1
a3266 1
    cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
d3270 2
a3271 2
.no|.NONE/*)
  cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
d3274 1
a3274 3
  { { echo "$as_me:5572: error: expected a pathname, not \"$cf_src_path\"" >&5
echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
   { (exit 1); exit 1; }; }
d3283 2
d3287 3
a3289 3
echo "$as_me:5585: result: $TERMPATH" >&5
echo "${ECHO_T}$TERMPATH" >&6
test -n "$TERMPATH" && cat >>confdefs.h <<EOF
d3293 1
d3295 2
a3296 2
echo "$as_me:5592: checking if fast termcap-loader is needed" >&5
echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
a3303 1461
fi;
echo "$as_me:5602: result: $with_getcap" >&5
echo "${ECHO_T}$with_getcap" >&6
test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
#define USE_GETCAP 1
EOF

echo "$as_me:5608: checking if translated termcaps will be cached in ~/.terminfo" >&5
echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6

# Check whether --enable-getcap-cache or --disable-getcap-cache was given.
if test "${enable_getcap_cache+set}" = set; then
  enableval="$enable_getcap_cache"
  with_getcap_cache=$enableval
else
  with_getcap_cache=no
fi;
echo "$as_me:5618: result: $with_getcap_cache" >&5
echo "${ECHO_T}$with_getcap_cache" >&6
test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
#define USE_GETCAP_CACHE 1
EOF

fi

###   Use option --disable-home-terminfo to completely remove ~/.terminfo
echo "$as_me:5627: checking if ~/.terminfo is wanted" >&5
echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6

# Check whether --enable-home-terminfo or --disable-home-terminfo was given.
if test "${enable_home_terminfo+set}" = set; then
  enableval="$enable_home_terminfo"
  with_home_terminfo=$enableval
else
  with_home_terminfo=yes
fi;
echo "$as_me:5637: result: $with_home_terminfo" >&5
echo "${ECHO_T}$with_home_terminfo" >&6
test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
#define USE_HOME_TERMINFO 1
EOF

echo "$as_me:5643: checking if you want to use restricted environment when running as root" >&5
echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6

# Check whether --enable-root-environ or --disable-root-environ was given.
if test "${enable_root_environ+set}" = set; then
  enableval="$enable_root_environ"
  with_root_environ=$enableval
else
  with_root_environ=yes
fi;
echo "$as_me:5653: result: $with_root_environ" >&5
echo "${ECHO_T}$with_root_environ" >&6
test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
#define USE_ROOT_ENVIRON 1
EOF

###   Use option --enable-symlinks to make tic use symlinks, not hard links
###   to reduce storage requirements for the terminfo database.

for ac_func in \
	remove \
	unlink
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:5667: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5673 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5704: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5707: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5710: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5713: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:5723: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

if test "$cross_compiling" = yes ; then

for ac_func in \
		link \
		symlink
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:5740: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5746 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:5777: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5780: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:5783: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5786: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:5796: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

else
	echo "$as_me:5807: checking if link/symlink functions work" >&5
echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
if test "${cf_cv_link_funcs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

		cf_cv_link_funcs=
		for cf_func in link symlink ; do
			if test "$cross_compiling" = yes; then

			eval 'ac_cv_func_'$cf_func'=error'
else
  cat >conftest.$ac_ext <<_ACEOF
#line 5820 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
int main()
{
	int fail = 0;
	char *src = "config.log";
	char *dst = "conftest.chk";
	struct stat src_sb;
	struct stat dst_sb;

	stat(src, &src_sb);
	fail = ($cf_func("config.log", "conftest.chk") < 0)
	    || (stat(dst, &dst_sb) < 0)
	    || (dst_sb.st_mtime != src_sb.st_mtime);
#ifdef HAVE_UNLINK
	unlink(dst);
#else
	remove(dst);
#endif
	${cf_cv_main_return:-return} (fail);
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:5850: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:5853: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:5855: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:5858: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

			cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
			eval 'ac_cv_func_'$cf_func'=yes'
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

			eval 'ac_cv_func_'$cf_func'=no'
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
		done
		test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no

fi
echo "$as_me:5876: result: $cf_cv_link_funcs" >&5
echo "${ECHO_T}$cf_cv_link_funcs" >&6
	test "$ac_cv_func_link"    = yes && cat >>confdefs.h <<\EOF
#define HAVE_LINK 1
EOF

	test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
#define HAVE_SYMLINK 1
EOF

fi

with_links=no
with_symlinks=no

# soft links (symbolic links) are useful for some systems where hard links do
# not work, or to make it simpler to copy terminfo trees around.
if test "$ac_cv_func_symlink" = yes ; then
    echo "$as_me:5894: checking if tic should use symbolic links" >&5
echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6

# Check whether --enable-symlinks or --disable-symlinks was given.
if test "${enable_symlinks+set}" = set; then
  enableval="$enable_symlinks"
  with_symlinks=$enableval
else
  with_symlinks=no
fi;
    echo "$as_me:5904: result: $with_symlinks" >&5
echo "${ECHO_T}$with_symlinks" >&6
fi

# If we have hard links and did not choose to use soft links instead, there is
# no reason to make this choice optional - use the hard links.
if test "$with_symlinks" = no ; then
    echo "$as_me:5911: checking if tic should use hard links" >&5
echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
    if test "$ac_cv_func_link" = yes ; then
	with_links=yes
    else
	with_links=no
    fi
    echo "$as_me:5918: result: $with_links" >&5
echo "${ECHO_T}$with_links" >&6
fi

test "$with_links" = yes && cat >>confdefs.h <<\EOF
#define USE_LINKS 1
EOF

test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
#define USE_SYMLINKS 1
EOF

###   use option --enable-broken-linker to force on use of broken-linker support
echo "$as_me:5931: checking if you want broken-linker support code" >&5
echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6

# Check whether --enable-broken_linker or --disable-broken_linker was given.
if test "${enable_broken_linker+set}" = set; then
  enableval="$enable_broken_linker"
  with_broken_linker=$enableval
else
  with_broken_linker=${BROKEN_LINKER-no}
fi;
echo "$as_me:5941: result: $with_broken_linker" >&5
echo "${ECHO_T}$with_broken_linker" >&6

BROKEN_LINKER=0
if test "$with_broken_linker" = yes ; then
	cat >>confdefs.h <<\EOF
#define BROKEN_LINKER 1
EOF

	BROKEN_LINKER=1
elif test "$DFT_LWR_MODEL" = shared ; then
	case $cf_cv_system_name in #(vi
	cygwin*)
		cat >>confdefs.h <<\EOF
#define BROKEN_LINKER 1
EOF

		BROKEN_LINKER=1
		test -n "$verbose" && echo "	cygwin linker is broken anyway" 1>&6

		;;
	esac
fi

###   use option --enable-bsdpad to have tputs process BSD-style prefix padding
echo "$as_me:5966: checking if tputs should process BSD-style prefix padding" >&5
echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6

# Check whether --enable-bsdpad or --disable-bsdpad was given.
if test "${enable_bsdpad+set}" = set; then
  enableval="$enable_bsdpad"
  with_bsdpad=$enableval
else
  with_bsdpad=no
fi;
echo "$as_me:5976: result: $with_bsdpad" >&5
echo "${ECHO_T}$with_bsdpad" >&6
test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
#define BSD_TPUTS 1
EOF

###   use option --enable-widec to turn on use of wide-character support
NCURSES_CH_T=chtype
NCURSES_LIBUTF8=0

NEED_WCHAR_H=0
NCURSES_MBSTATE_T=0
NCURSES_WCHAR_T=0
NCURSES_WINT_T=0

# Check to define _XOPEN_SOURCE "automatically"

echo "$as_me:5993: checking if $CC -U and -D options work together" >&5
echo $ECHO_N "checking if $CC -U and -D options work together... $ECHO_C" >&6
if test "${cf_cv_cc_u_d_options+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cf_save_CPPFLAGS="$CPPFLAGS"
	CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS"
	cat >conftest.$ac_ext <<_ACEOF
#line 6002 "configure"
#include "confdefs.h"

int
main ()
{

#ifndef U_D_OPTIONS
make an undefined-error
#endif
#ifdef  D_U_OPTIONS
make a defined-error
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6021: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6024: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6027: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6030: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

	cf_cv_cc_u_d_options=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

	cf_cv_cc_u_d_options=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	CPPFLAGS="$cf_save_CPPFLAGS"

fi
echo "$as_me:6044: result: $cf_cv_cc_u_d_options" >&5
echo "${ECHO_T}$cf_cv_cc_u_d_options" >&6

cf_XOPEN_SOURCE=500
cf_POSIX_C_SOURCE=199506L

case $host_os in #(vi
aix[45]*) #(vi
	CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE"
	;;
freebsd*) #(vi
	# 5.x headers associate
	#	_XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
	#	_XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
	cf_POSIX_C_SOURCE=200112L
	cf_XOPEN_SOURCE=600
	CPPFLAGS="$CPPFLAGS -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
	;;
hpux*) #(vi
	CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
	;;
irix[56].*) #(vi
	CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
	;;
linux*|gnu*) #(vi

echo "$as_me:6070: checking if we must define _GNU_SOURCE" >&5
echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
if test "${cf_cv_gnu_source+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 6077 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifndef _XOPEN_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6092: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6095: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6098: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6101: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_gnu_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_save="$CPPFLAGS"
	 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
	 cat >conftest.$ac_ext <<_ACEOF
#line 6110 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifdef _XOPEN_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6125: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6128: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6131: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6134: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_gnu_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_gnu_source=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	CPPFLAGS="$cf_save"

fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:6149: result: $cf_cv_gnu_source" >&5
echo "${ECHO_T}$cf_cv_gnu_source" >&6
test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"

	;;
mirbsd*) #(vi
	# setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
	;;
netbsd*) #(vi
	# setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
	;;
openbsd*) #(vi
	# setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
	;;
osf[45]*) #(vi
	CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE"
	;;
nto-qnx*) #(vi
	CPPFLAGS="$CPPFLAGS -D_QNX_SOURCE"
	;;
sco*) #(vi
	# setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
	;;
solaris*) #(vi
	CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
	;;
*)
	echo "$as_me:6176: checking if we should define _XOPEN_SOURCE" >&5
echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
if test "${cf_cv_xopen_source+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 6183 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifndef _XOPEN_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6198: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6201: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6204: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6207: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_xopen_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_save="$CPPFLAGS"
	 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
	 cat >conftest.$ac_ext <<_ACEOF
#line 6216 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifdef _XOPEN_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6231: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6234: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6237: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6240: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_xopen_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_xopen_source=$cf_XOPEN_SOURCE
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	CPPFLAGS="$cf_save"

fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:6255: result: $cf_cv_xopen_source" >&5
echo "${ECHO_T}$cf_cv_xopen_source" >&6
	if test "$cf_cv_xopen_source" != no ; then

# remove _XOPEN_SOURCE symbol from $CFLAGS
CFLAGS=`echo "$CFLAGS" | \
	sed	-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
		-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?$//g'`

# remove _XOPEN_SOURCE symbol from $CPPFLAGS
CPPFLAGS=`echo "$CPPFLAGS" | \
	sed	-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
		-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?$//g'`

		test "$cf_cv_cc_u_d_options" = yes && \
			CPPFLAGS="$CPPFLAGS -U_XOPEN_SOURCE"
		CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_cv_xopen_source"
	fi

cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE

cf_save_CFLAGS="$CFLAGS"
cf_save_CPPFLAGS="$CPPFLAGS"

# remove _POSIX_C_SOURCE symbol from $cf_save_CFLAGS
cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
	sed	-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
		-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?$//g'`

# remove _POSIX_C_SOURCE symbol from $cf_save_CPPFLAGS
cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
	sed	-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
		-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?$//g'`

echo "$as_me:6289: checking if we should define _POSIX_C_SOURCE" >&5
echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
if test "${cf_cv_posix_c_source+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

echo "(line 6295) testing if the symbol is already defined go no further ..." 1>&5

	cat >conftest.$ac_ext <<_ACEOF
#line 6298 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifndef _POSIX_C_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6313: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6316: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6319: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6322: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_posix_c_source=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_want_posix_source=no
	 case .$cf_POSIX_C_SOURCE in #(vi
	 .[12]??*) #(vi
		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
		;;
	 .2) #(vi
		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
		cf_want_posix_source=yes
		;;
	 .*)
		cf_want_posix_source=yes
		;;
	 esac
	 if test "$cf_want_posix_source" = yes ; then
		cat >conftest.$ac_ext <<_ACEOF
#line 6343 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifdef _POSIX_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6358: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6361: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6364: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6367: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	 fi

echo "(line 6378) testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5

	 CFLAGS="$cf_trim_CFLAGS"
	 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"

echo "(line 6383) testing if the second compile does not leave our definition intact error ..." 1>&5

	 cat >conftest.$ac_ext <<_ACEOF
#line 6386 "configure"
#include "confdefs.h"
#include <sys/types.h>
int
main ()
{

#ifndef _POSIX_C_SOURCE
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6401: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6404: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6407: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6410: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_posix_c_source=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	 CFLAGS="$cf_save_CFLAGS"
	 CPPFLAGS="$cf_save_CPPFLAGS"

fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:6426: result: $cf_cv_posix_c_source" >&5
echo "${ECHO_T}$cf_cv_posix_c_source" >&6

if test "$cf_cv_posix_c_source" != no ; then
	CFLAGS="$cf_trim_CFLAGS"
	CPPFLAGS="$cf_trim_CPPFLAGS"
	if test "$cf_cv_cc_u_d_options" = yes ; then
		cf_temp_posix_c_source=`echo "$cf_cv_posix_c_source" | \
				sed -e 's/-D/-U/g' -e 's/=[^ 	]*//g'`
		CPPFLAGS="$CPPFLAGS $cf_temp_posix_c_source"
	fi
	CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source"
fi

	;;
esac

# Work around breakage on OS X

echo "$as_me:6445: checking if SIGWINCH is defined" >&5
echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
if test "${cf_cv_define_sigwinch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 6452 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/signal.h>

int
main ()
{
int x = SIGWINCH
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6467: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6470: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6473: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6476: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_define_sigwinch=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 6483 "configure"
#include "confdefs.h"

#undef _XOPEN_SOURCE
#undef _POSIX_SOURCE
#undef _POSIX_C_SOURCE
#include <sys/types.h>
#include <sys/signal.h>

int
main ()
{
int x = SIGWINCH
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6501: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6504: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6507: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6510: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_define_sigwinch=maybe
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_define_sigwinch=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:6524: result: $cf_cv_define_sigwinch" >&5
echo "${ECHO_T}$cf_cv_define_sigwinch" >&6

if test "$cf_cv_define_sigwinch" = maybe ; then
echo "$as_me:6528: checking for actual SIGWINCH definition" >&5
echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
if test "${cf_cv_fixup_sigwinch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_fixup_sigwinch=unknown
cf_sigwinch=32
while test $cf_sigwinch != 1
do
	cat >conftest.$ac_ext <<_ACEOF
#line 6539 "configure"
#include "confdefs.h"

#undef _XOPEN_SOURCE
#undef _POSIX_SOURCE
#undef _POSIX_C_SOURCE
#include <sys/types.h>
#include <sys/signal.h>

int
main ()
{

#if SIGWINCH != $cf_sigwinch
make an error
#endif
int x = SIGWINCH
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6561: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6564: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6567: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6570: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_fixup_sigwinch=$cf_sigwinch
	 break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext

cf_sigwinch=`expr $cf_sigwinch - 1`
done

fi
echo "$as_me:6584: result: $cf_cv_fixup_sigwinch" >&5
echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6

	if test "$cf_cv_fixup_sigwinch" != unknown ; then
		CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
	fi
fi

# Checks for CODESET support.

  echo "$as_me:6594: checking for nl_langinfo and CODESET" >&5
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
if test "${am_cv_langinfo_codeset+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6600 "configure"
#include "confdefs.h"
#include <langinfo.h>
int
main ()
{
char* cs = nl_langinfo(CODESET);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6612: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6615: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6618: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6621: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  am_cv_langinfo_codeset=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
am_cv_langinfo_codeset=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi
echo "$as_me:6632: result: $am_cv_langinfo_codeset" >&5
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
  if test $am_cv_langinfo_codeset = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_LANGINFO_CODESET 1
EOF

  fi

# use these variables to work around a defect in gcc's fixincludes.
NCURSES_OK_WCHAR_T=
NCURSES_OK_WINT_T=

echo "$as_me:6646: checking if you want wide-character code" >&5
echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6

# Check whether --enable-widec or --disable-widec was given.
if test "${enable_widec+set}" = set; then
  enableval="$enable_widec"
  with_widec=$enableval
else
  with_widec=no
fi;
echo "$as_me:6656: result: $with_widec" >&5
echo "${ECHO_T}$with_widec" >&6
if test "$with_widec" = yes ; then
	LIB_SUFFIX="w${LIB_SUFFIX}"
	cat >>confdefs.h <<\EOF
#define USE_WIDEC_SUPPORT 1
EOF

echo "$as_me:6664: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line 6667 "configure"
#include "confdefs.h"
#include <sys/types.h>

int
main ()
{

#ifndef _XOPEN_SOURCE_EXTENDED
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6683: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6686: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6689: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6692: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_result=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_result=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:6701: result: $cf_result" >&5
echo "${ECHO_T}$cf_result" >&6

if test "$cf_result" = yes ; then
	CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
elif test "x" != "x" ; then
	echo "$as_me:6707: checking checking for compatible value versus " >&5
echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
	cat >conftest.$ac_ext <<_ACEOF
#line 6710 "configure"
#include "confdefs.h"
#include <sys/types.h>

int
main ()
{

#if _XOPEN_SOURCE_EXTENDED- < 0
make an error
#endif
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6726: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6729: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6732: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6735: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_result=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_result=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
	echo "$as_me:6744: result: $cf_result" >&5
echo "${ECHO_T}$cf_result" >&6
	if test "$cf_result" = no ; then
		# perhaps we can override it - try...
		CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
	fi
fi

	# with_overwrite=no
	NCURSES_CH_T=cchar_t

for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:6758: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 6764 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
f = $ac_func;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6795: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6798: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6801: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6804: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:6814: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF

fi
done

	if test "$ac_cv_func_putwc" != yes ; then

echo "$as_me:6826: checking for putwc in libutf8" >&5
echo $ECHO_N "checking for putwc in libutf8... $ECHO_C" >&6
if test "${cf_cv_libutf8+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cf_save_LIBS="$LIBS"
	LIBS="-lutf8 $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 6835 "configure"
#include "confdefs.h"

#include <libutf8.h>
int
main ()
{
putwc(0,0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:6848: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:6851: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:6854: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6857: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_libutf8=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_libutf8=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	LIBS="$cf_save_LIBS"

fi
echo "$as_me:6869: result: $cf_cv_libutf8" >&5
echo "${ECHO_T}$cf_cv_libutf8" >&6

if test "$cf_cv_libutf8" = yes ; then
	cat >>confdefs.h <<\EOF
#define HAVE_LIBUTF8_H 1
EOF

	LIBS="-lutf8 $LIBS"
fi

		if test "$cf_cv_libutf8" = yes ; then
			NCURSES_LIBUTF8=1
		fi
	fi

# This is needed on Tru64 5.0 to declare mbstate_t
echo "$as_me:6886: checking if we must include wchar.h to declare mbstate_t" >&5
echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
if test "${cf_cv_mbstate_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 6893 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
mbstate_t state
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6911: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6914: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6917: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6920: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_mbstate_t=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 6927 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <wchar.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
mbstate_t value
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:6946: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:6949: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:6952: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:6955: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_mbstate_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_mbstate_t=unknown
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:6967: result: $cf_cv_mbstate_t" >&5
echo "${ECHO_T}$cf_cv_mbstate_t" >&6

if test "$cf_cv_mbstate_t" = yes ; then
	cat >>confdefs.h <<\EOF
#define NEED_WCHAR_H 1
EOF

	NEED_WCHAR_H=1
fi

# if we do not find mbstate_t in either place, use substitution to provide a fallback.
if test "$cf_cv_mbstate_t" = unknown ; then
	NCURSES_MBSTATE_T=1
fi

# This is needed on Tru64 5.0 to declare wchar_t
echo "$as_me:6984: checking if we must include wchar.h to declare wchar_t" >&5
echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
if test "${cf_cv_wchar_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat >conftest.$ac_ext <<_ACEOF
#line 6991 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
wchar_t state
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7009: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7012: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7015: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7018: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_wchar_t=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 7025 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <wchar.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
wchar_t value
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7044: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7047: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7050: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7053: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_wchar_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_wchar_t=unknown
fi
rm -f conftest.$ac_objext conftest.$ac_ext
d3305 16
a3320 1
rm -f conftest.$ac_objext conftest.$ac_ext
a3321 2
echo "$as_me:7065: result: $cf_cv_wchar_t" >&5
echo "${ECHO_T}$cf_cv_wchar_t" >&6
d3323 3
a3325 3
if test "$cf_cv_wchar_t" = yes ; then
	cat >>confdefs.h <<\EOF
#define NEED_WCHAR_H 1
a3327 2
	NEED_WCHAR_H=1
fi
a3328 3
# if we do not find wchar_t in either place, use substitution to provide a fallback.
if test "$cf_cv_wchar_t" = unknown ; then
	NCURSES_WCHAR_T=1
d3331 2
a3332 4
# if we find wchar_t in either place, use substitution to provide a fallback.
if test "$cf_cv_wchar_t" != unknown ; then
	NCURSES_OK_WCHAR_T=1
fi
d3334 8
a3341 5
# This is needed on Tru64 5.0 to declare wint_t
echo "$as_me:7087: checking if we must include wchar.h to declare wint_t" >&5
echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
if test "${cf_cv_wint_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3343 2
a3344 3

cat >conftest.$ac_ext <<_ACEOF
#line 7094 "configure"
d3346 7
d3354 1
a3354 33
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
#endif
int
main ()
{
wint_t state
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7112: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7115: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7118: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7121: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_wint_t=no
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 7128 "configure"
#include "confdefs.h"
d3356 7
a3362 6
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <wchar.h>
#ifdef HAVE_LIBUTF8_H
#include <libutf8.h>
a3363 32
int
main ()
{
wint_t value
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7147: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7150: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7153: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7156: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_wint_t=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_wint_t=unknown
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:7168: result: $cf_cv_wint_t" >&5
echo "${ECHO_T}$cf_cv_wint_t" >&6
d3365 1
a3365 3
if test "$cf_cv_wint_t" = yes ; then
	cat >>confdefs.h <<\EOF
#define NEED_WCHAR_H 1
d3367 8
a3374 2

	NEED_WCHAR_H=1
d3376 1
a3376 4

# if we do not find wint_t in either place, use substitution to provide a fallback.
if test "$cf_cv_wint_t" = unknown ; then
	NCURSES_WINT_T=1
d3379 5
a3383 8
# if we find wint_t in either place, use substitution to provide a fallback.
if test "$cf_cv_wint_t" != unknown ; then
	NCURSES_OK_WINT_T=1
fi

	if test "$NCURSES_MBSTATE_T" != 0; then
		cat >>confdefs.h <<\EOF
#define NEED_MBSTATE_T_DEF 1
d3385 3
a3387 2

	fi
d3389 1
a3390 9
###   use option --disable-lp64 to allow long chtype
case $cf_cv_abi_version in
[345]*)
	default_with_lp64=no
	;;
*)
	default_with_lp64=yes
	;;
esac
d3392 12
a3403 39
echo "$as_me:7207: checking whether to enable _LP64 definition in curses.h" >&5
echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6

# Check whether --enable-lp64 or --disable-lp64 was given.
if test "${enable_lp64+set}" = set; then
  enableval="$enable_lp64"
  with_lp64=$enableval
else
  with_lp64=$default_with_lp64
fi;
echo "$as_me:7217: result: $with_lp64" >&5
echo "${ECHO_T}$with_lp64" >&6

if test "$with_lp64" = yes ; then
	cf_cv_enable_lp64=1
else
	cf_cv_enable_lp64=0
fi

# Check whether --enable-largefile or --disable-largefile was given.
if test "${enable_largefile+set}" = set; then
  enableval="$enable_largefile"

fi;
if test "$enable_largefile" != no; then

  echo "$as_me:7233: checking for special C compiler options needed for large files" >&5
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_largefile_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_sys_largefile_CC=no
     if test "$GCC" != yes; then
       ac_save_CC=$CC
       while :; do
     	 # IRIX 6.2 and later do not support large files by default,
     	 # so use the C compiler's -n32 option if that helps.
         cat >conftest.$ac_ext <<_ACEOF
#line 7245 "configure"
d3405 7
a3411 12
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{
d3413 1
a3413 52
  ;
  return 0;
}
_ACEOF
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:7265: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7268: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7271: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7274: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
     	 CC="$CC -n32"
     	 rm -f conftest.$ac_objext
if { (eval echo "$as_me:7284: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7287: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7290: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7293: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_largefile_CC=' -n32'; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
         break
       done
       CC=$ac_save_CC
       rm -f conftest.$ac_ext
    fi
fi
echo "$as_me:7307: result: $ac_cv_sys_largefile_CC" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  if test "$ac_cv_sys_largefile_CC" != no; then
    CC=$CC$ac_cv_sys_largefile_CC
  fi
d3415 8
a3422 22
  echo "$as_me:7313: checking for _FILE_OFFSET_BITS value needed for large files" >&5
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_file_offset_bits=no
  cat >conftest.$ac_ext <<_ACEOF
#line 7321 "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{
d3424 5
a3428 17
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7341: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7344: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7347: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7350: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
d3430 6
a3435 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a3436 17
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 7359 "configure"
#include "confdefs.h"
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{
d3438 7
a3444 17
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7380: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7383: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7386: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7389: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_file_offset_bits=64; break
d3446 1
a3446 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a3447 2
rm -f conftest.$ac_objext conftest.$ac_ext
  break
a3448 4
fi
echo "$as_me:7400: result: $ac_cv_sys_file_offset_bits" >&5
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
if test "$ac_cv_sys_file_offset_bits" != no; then
d3450 16
a3465 3
cat >>confdefs.h <<EOF
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
EOF
a3466 12
fi
rm -f conftest*
  echo "$as_me:7410: checking for _LARGE_FILES value needed for large files" >&5
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_large_files+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_large_files=no
  cat >conftest.$ac_ext <<_ACEOF
#line 7418 "configure"
#include "confdefs.h"
d3468 5
a3472 10
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
d3474 5
d3480 10
a3489 2
  ;
  return 0;
d3491 7
a3497 14
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7438: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7441: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7444: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7447: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
d3499 7
a3505 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a3506 17
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 7456 "configure"
#include "confdefs.h"
#define _LARGE_FILES 1
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{
d3508 3
a3510 20
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7477: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7480: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7483: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7486: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_large_files=1; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a3511 7
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
fi
echo "$as_me:7497: result: $ac_cv_sys_large_files" >&5
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
if test "$ac_cv_sys_large_files" != no; then
d3513 7
a3519 2
cat >>confdefs.h <<EOF
#define _LARGE_FILES $ac_cv_sys_large_files
a3522 2
rm -f conftest*
fi
d3524 22
a3545 33
    if test "$enable_largefile" != no ; then
	echo "$as_me:7510: checking for _LARGEFILE_SOURCE value needed for large files" >&5
echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_largefile_source+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  while :; do
  ac_cv_sys_largefile_source=no
  cat >conftest.$ac_ext <<_ACEOF
#line 7518 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
return !fseeko;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7530: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7533: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7536: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7539: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
d3547 7
a3553 30
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line 7548 "configure"
#include "confdefs.h"
#define _LARGEFILE_SOURCE 1
#include <stdio.h>
int
main ()
{
return !fseeko;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7561: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7564: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7567: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7570: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sys_largefile_source=1; break
d3555 1
a3555 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d3557 2
a3558 3
rm -f conftest.$ac_objext conftest.$ac_ext
  break
done
a3559 3
echo "$as_me:7581: result: $ac_cv_sys_largefile_source" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
if test "$ac_cv_sys_largefile_source" != no; then
d3561 2
a3562 2
cat >>confdefs.h <<EOF
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
d3565 3
a3567 2
fi
rm -f conftest*
a3568 47
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
# in glibc 2.1.3, but that breaks too many other things.
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
echo "$as_me:7595: checking for fseeko" >&5
echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
if test "${ac_cv_func_fseeko+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 7601 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
return fseeko && fseeko (stdin, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7613: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:7616: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:7619: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7622: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_fseeko=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_fseeko=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7632: result: $ac_cv_func_fseeko" >&5
echo "${ECHO_T}$ac_cv_func_fseeko" >&6
if test $ac_cv_func_fseeko = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_FSEEKO 1
EOF
d3570 3
a3572 1
fi
d3574 4
a3577 14
	# Normally we would collect these definitions in the config.h,
	# but (like _XOPEN_SOURCE), some environments rely on having these
	# defined before any of the system headers are included.  Another
	# case comes up with C++, e.g., on AIX the compiler compiles the
	# header files by themselves before looking at the body files it is
	# told to compile.  For ncurses, those header files do not include
	# the config.h
	test "$ac_cv_sys_large_files"      != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
	test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "

	echo "$as_me:7652: checking whether to use struct dirent64" >&5
echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
if test "${cf_cv_struct_dirent64+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d3579 2
d3582 1
a3582 3
		cat >conftest.$ac_ext <<_ACEOF
#line 7659 "configure"
#include "confdefs.h"
d3584 5
a3588 2
#include <sys/types.h>
#include <dirent.h>
d3590 7
a3596 3
int
main ()
{
d3598 2
a3599 5
		/* if transitional largefile support is setup, this is true */
		extern struct dirent64 * readdir(DIR *);
		struct dirent64 *x = readdir((DIR *)0);
		struct dirent *y = readdir((DIR *)0);
		int z = x - y;
d3601 3
a3603 32
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:7680: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:7683: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:7686: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:7689: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_struct_dirent64=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_struct_dirent64=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:7700: result: $cf_cv_struct_dirent64" >&5
echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
	test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_DIRENT64 1
EOF

    fi
a3604 15
###   use option --disable-tparm-varargs to make tparm() conform to X/Open
echo "$as_me:7709: checking if you want tparm not to use X/Open fixed-parameter list" >&5
echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6

# Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
if test "${enable_tparm_varargs+set}" = set; then
  enableval="$enable_tparm_varargs"
  with_tparm_varargs=$enableval
else
  with_tparm_varargs=yes
fi;
echo "$as_me:7719: result: $with_tparm_varargs" >&5
echo "${ECHO_T}$with_tparm_varargs" >&6
NCURSES_TPARM_VARARGS=0
test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
d3607 2
a3608 2
echo "$as_me:7725: checking for type of bool" >&5
echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
d3616 1
a3616 3
fi;
echo "$as_me:7735: result: $NCURSES_BOOL" >&5
echo "${ECHO_T}$NCURSES_BOOL" >&6
d3618 1
a3618 2
echo "$as_me:7738: checking for alternate terminal capabilities file" >&5
echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
a3619 24
# Check whether --with-caps or --without-caps was given.
if test "${with_caps+set}" = set; then
  withval="$with_caps"
  TERMINFO_CAPS=Caps.$withval
else
  TERMINFO_CAPS=Caps
fi;
test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
echo "$as_me:7749: result: $TERMINFO_CAPS" >&5
echo "${ECHO_T}$TERMINFO_CAPS" >&6

###   use option --with-chtype to override chtype's type
echo "$as_me:7753: checking for type of chtype" >&5
echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6

# Check whether --with-chtype or --without-chtype was given.
if test "${with_chtype+set}" = set; then
  withval="$with_chtype"
  NCURSES_CHTYPE="$withval"
else
  NCURSES_CHTYPE=auto
fi;
echo "$as_me:7763: result: $NCURSES_CHTYPE" >&5
echo "${ECHO_T}$NCURSES_CHTYPE" >&6
d3622 2
a3623 2
echo "$as_me:7767: checking for type of ospeed" >&5
echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
d3631 22
a3652 17
fi;
echo "$as_me:7777: result: $NCURSES_OSPEED" >&5
echo "${ECHO_T}$NCURSES_OSPEED" >&6

###   use option --with-mmask-t to override mmask_t's type
echo "$as_me:7781: checking for type of mmask_t" >&5
echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6

# Check whether --with-mmask-t or --without-mmask-t was given.
if test "${with_mmask_t+set}" = set; then
  withval="$with_mmask_t"
  NCURSES_MMASK_T="$withval"
else
  NCURSES_MMASK_T=auto
fi;
echo "$as_me:7791: result: $NCURSES_MMASK_T" >&5
echo "${ECHO_T}$NCURSES_MMASK_T" >&6
d3655 2
a3656 2
echo "$as_me:7795: checking if RCS identifiers should be compiled-in" >&5
echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
d3664 4
a3667 4
fi;
echo "$as_me:7805: result: $with_rcs_ids" >&5
echo "${ECHO_T}$with_rcs_ids" >&6
test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
d3671 1
d3674 6
a3679 2
echo "$as_me:7813: checking format of man-pages" >&5
echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
d3687 1
a3687 1
fi;
a3688 2
test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
d3690 4
a3693 4
cf_unknown=

case $MANPAGE_FORMAT in
unknown)
a3696 1

a3697 5
  MANPAGE_FORMAT=
  cf_preform=no
  cf_catonly=yes
  cf_example=date

d3699 1
d3702 1
a3702 1
    for cf_name in $cf_dir/man*/$cf_example.[01]* $cf_dir/cat*/$cf_example.[01]* $cf_dir/man*/$cf_example $cf_dir/cat*/$cf_example
d3704 10
a3713 33
      cf_test=`echo $cf_name | sed -e 's/*//'`
      if test "x$cf_test" = "x$cf_name" ; then

	case "$cf_name" in
	*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
	*.Z)  MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
	*.0)	MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
	*)    MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
	esac

	case "$cf_name" in
	$cf_dir/man*)
	  cf_catonly=no
	  ;;
	$cf_dir/cat*)
	  cf_preform=yes
	  ;;
	esac
	break
      fi

      # if we found a match in either man* or cat*, stop looking
      if test -n "$MANPAGE_FORMAT" ; then
	cf_found=no
	test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
	test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
	case "$cf_name" in
	$cf_dir/cat*)
	  cf_found=yes
	  ;;
	esac
	test $cf_found=yes && break
      fi
d3715 1
a3715 2
    # only check the first directory in $MANPATH where we find manpages
    if test -n "$MANPAGE_FORMAT" ; then
a3718 2
  # if we did not find the example, just assume it is normal
  test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
d3721 2
a3722 10
*)
  for cf_option in $MANPAGE_FORMAT; do
     case $cf_option in #(vi
     gzip|compress|BSDI|normal|formatted|catonly)
       ;;
     *)
       cf_unknown="$cf_unknown $cf_option"
       ;;
     esac
  done
d3726 5
a3730 6
echo "$as_me:7902: result: $MANPAGE_FORMAT" >&5
echo "${ECHO_T}$MANPAGE_FORMAT" >&6
if test -n "$cf_unknown" ; then
  { echo "$as_me:7905: WARNING: Unexpected manpage-format $cf_unknown" >&5
echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
fi
a3731 2
echo "$as_me:7909: checking for manpage renaming" >&5
echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
d3739 2
a3740 1
fi;
d3759 1
a3759 3
    { { echo "$as_me:7937: error: not a filename: $MANPAGE_RENAMES" >&5
echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
   { (exit 1); exit 1; }; }
d3767 1
a3767 1
    sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
d3771 1
a3771 5
echo "$as_me:7951: result: $MANPAGE_RENAMES" >&5
echo "${ECHO_T}$MANPAGE_RENAMES" >&6

echo "$as_me:7954: checking if manpage aliases will be installed" >&5
echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
a3772 7
# Check whether --with-manpage-aliases or --without-manpage-aliases was given.
if test "${with_manpage_aliases+set}" = set; then
  withval="$with_manpage_aliases"
  MANPAGE_ALIASES=$withval
else
  MANPAGE_ALIASES=yes
fi;
a3773 2
echo "$as_me:7965: result: $MANPAGE_ALIASES" >&5
echo "${ECHO_T}$MANPAGE_ALIASES" >&6
d3775 2
a3776 5
if test "$LN_S" = "ln -s"; then
	cf_use_symlinks=yes
else
	cf_use_symlinks=no
fi
a3777 4
MANPAGE_SYMLINKS=no
if test "$MANPAGE_ALIASES" = yes ; then
echo "$as_me:7976: checking if manpage symlinks should be used" >&5
echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
d3784 5
a3788 2
  MANPAGE_SYMLINKS=$cf_use_symlinks
fi;
a3789 7
if test "$$cf_use_symlinks" = no; then
if test "$MANPAGE_SYMLINKS" = yes ; then
	{ echo "$as_me:7989: WARNING: cannot make symlinks" >&5
echo "$as_me: WARNING: cannot make symlinks" >&2;}
	MANPAGE_SYMLINKS=no
fi
fi
d3791 2
a3792 3
echo "$as_me:7995: result: $MANPAGE_SYMLINKS" >&5
echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
fi
a3793 2
echo "$as_me:7999: checking for manpage tbl" >&5
echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
d3801 4
a3804 1
fi;
a3805 2
echo "$as_me:8010: result: $MANPAGE_TBL" >&5
echo "${ECHO_T}$MANPAGE_TBL" >&6
a3813 4
  *catonly*) # (vi
    cf_format=yes
    cf_inboth=no
    ;;
d3815 1
a3816 1
    cf_inboth=yes
d3819 1
a3820 1
    cf_inboth=no
d3825 1
a3825 17

cf_so_strip=
cf_compress=
case "$MANPAGE_FORMAT" in #(vi
*compress*) #(vi
	cf_so_strip="Z"
	cf_compress=compress
  ;;
*gzip*) #(vi
	cf_so_strip="gz"
	cf_compress=gzip
  ;;
esac

cf_edit_man=./edit_man.sh

cat >$cf_edit_man <<CF_EOF
d3827 1
a3827 2
# this script is generated by the configure-script CF_MAN_PAGES macro.

a3829 5

NCURSES_MAJOR="$NCURSES_MAJOR"
NCURSES_MINOR="$NCURSES_MINOR"
NCURSES_PATCH="$NCURSES_PATCH"

a3831 1

a3832 1

a3834 1

a3839 3
form=\$1
shift || exit 1

d3841 1
a3841 1
shift || exit 1
d3844 1
a3844 1
shift || exit 1
d3847 1
a3847 16
top_srcdir=\$srcdir/..
shift || exit 1

if test "\$form" = normal ; then
	if test "$cf_format" = yes ; then
	if test "$cf_inboth" = no ; then
		sh \$0 format \$verb \$mandir \$srcdir \$*
		exit $?
	fi
	fi
	cf_subdir=\$mandir/man
	cf_tables=$MANPAGE_TBL
else
	cf_subdir=\$mandir/cat
	cf_tables=yes
fi
a3848 1
# process the list of source-files
d3855 2
a3856 2
	if test ! -d \$cf_subdir\${section} ; then
		\$MKDIRS \$cf_subdir\$section
d3860 2
a3861 2
	cf_source=\`basename \$i\`
	inalias=\$cf_source
d3864 1
a3864 1
		echo .. skipped \$cf_source
d3868 3
a3870 4

if test "$MANPAGE_ALIASES" != no ; then
cat >>$cf_edit_man <<CF_EOF
	aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias | sort -u\`
d3875 1
a3875 1
cat >>$cf_edit_man <<CF_EOF
d3878 1
a3878 1
		cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
d3880 1
a3880 1
		cf_target=\$cf_subdir\${section}/\$cf_source
d3884 5
a3888 5
cat >>$cf_edit_man <<CF_EOF
	cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
	if test -z "\$cf_target" ; then
		echo '? missing rename for '\$cf_source
		cf_target="\$cf_source"
d3890 1
a3890 1
	cf_target="\$cf_subdir\${section}/\${cf_target}"
d3895 2
a3896 2

	for cf_name in  captoinfo clear infocmp infotocap tic toe tput
d3898 1
a3898 1
cat >>$cf_edit_man <<CF_EOF
d3902 2
a3903 2

cat >>$cf_edit_man <<CF_EOF
a3905 3
		-e "s,@@NCURSES_MAJOR@@,\$NCURSES_MAJOR," \\
		-e "s,@@NCURSES_MINOR@@,\$NCURSES_MINOR," \\
		-e "s,@@NCURSES_PATCH@@,\$NCURSES_PATCH," \\
d3908 2
a3909 2

	for cf_name in  captoinfo clear infocmp infotocap tic toe tput
d3912 1
a3912 1
cat >>$cf_edit_man <<CF_EOF
d3916 1
a3916 1

d3918 2
a3919 2
cat >>$cf_edit_man <<CF_EOF
		< \$i | sed -f `pwd`/edit_man.sed >\$TMP
d3922 1
a3922 1
cat >>$cf_edit_man <<CF_EOF
d3926 2
a3927 3

cat >>$cf_edit_man <<CF_EOF
if test \$cf_tables = yes ; then
d3930 1
a3931 2
CF_EOF

d3933 1
a3933 1
cat >>$cf_edit_man <<CF_EOF
d3938 14
a3951 5

cat >>$cf_edit_man <<CF_EOF
	if test \$form = format ; then
		nroff -man \$TMP >\$TMP.out
		mv \$TMP.out \$TMP
d3953 1
d3955 3
a3957 3

if test -n "$cf_compress" ; then
cat >>$cf_edit_man <<CF_EOF
d3959 1
a3959 1
	if ( $cf_compress -f \$TMP )
d3961 1
a3961 1
		mv \$TMP.$cf_so_strip \$TMP
d3964 1
a3964 1
	cf_target="\$cf_target.$cf_so_strip"
d3966 1
a3966 3
fi

case "$MANPAGE_FORMAT" in #(vi
d3968 3
a3970 5
cat >>$cf_edit_man <<CF_EOF
	if test \$form = format ; then
		# BSDI installs only .0 suffixes in the cat directories
		cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
	fi
d3974 2
a3975 3

cat >>$cf_edit_man <<CF_EOF
	suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
d3977 2
a3978 2
		echo \$verb \$cf_target
		\$INSTALL_DATA \$TMP \$cf_target
d3980 2
a3981 4
			cd \$cf_subdir\${section} && (
				cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
				test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
				cf_target=\`basename \$cf_target\`
d3988 8
a3995 18
					if test "$MANPAGE_SYMLINKS" = yes ; then
						if test -f \$cf_alias\${suffix} ; then
							if ( cmp -s \$cf_target \$cf_alias\${suffix} )
							then
								continue
							fi
						fi
						echo .. \$verb alias \$cf_alias\${suffix}
						rm -f \$cf_alias\${suffix}
						$LN_S \$cf_target \$cf_alias\${suffix}
					elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
						echo ".so \$cf_source" >\$TMP
CF_EOF
if test -n "$cf_compress" ; then
cat >>$cf_edit_man <<CF_EOF
						if test -n "$cf_so_strip" ; then
							$cf_compress -f \$TMP
							mv \$TMP.$cf_so_strip \$TMP
d3997 1
a3997 3
CF_EOF
fi
cat >>$cf_edit_man <<CF_EOF
d4000 1
a4000 1
						\$INSTALL_DATA \$TMP \$cf_alias\${suffix}
d4006 2
a4007 2
		echo \$verb \$cf_target
		rm -f \$cf_target
d4009 1
a4009 1
			cd \$cf_subdir\${section} && (
d4028 3
a4031 5
if test $cf_inboth = yes ; then
if test \$form != format ; then
	sh \$0 format \$verb \$mandir \$srcdir \$*
fi
fi
a4032 3
exit 0
CF_EOF
chmod 755 $cf_edit_man
d4036 1
d4038 2
a4039 2
echo "$as_me:8311: checking if you want to build with function extensions" >&5
echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
d4047 3
a4049 3
fi;
echo "$as_me:8321: result: $with_ext_funcs" >&5
echo "${ECHO_T}$with_ext_funcs" >&6
d4052 1
a4052 1
	cat >>confdefs.h <<\EOF
d4056 1
a4056 1
	cat >>confdefs.h <<\EOF
d4060 1
a4060 1
	cat >>confdefs.h <<\EOF
d4064 1
a4064 5
	cat >>confdefs.h <<\EOF
#define HAVE_RESIZE_TERM 1
EOF

	cat >>confdefs.h <<\EOF
d4068 1
a4068 1
	cat >>confdefs.h <<\EOF
d4072 1
a4072 1
	cat >>confdefs.h <<\EOF
d4080 1
d4082 2
a4083 2
echo "$as_me:8358: checking for extended use of const keyword" >&5
echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
d4091 3
a4093 3
fi;
echo "$as_me:8368: result: $with_ext_const" >&5
echo "${ECHO_T}$with_ext_const" >&6
d4099 3
a4101 2
echo "$as_me:8375: checking if you want \$NCURSES_NO_PADDING code" >&5
echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
a4108 36
fi;
echo "$as_me:8385: result: $with_no_padding" >&5
echo "${ECHO_T}$with_no_padding" >&6
test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
#define NCURSES_NO_PADDING 1
EOF

echo "$as_me:8391: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 8397 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

_ACEOF
if { (eval echo "$as_me:8405: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:8411: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
a4109 8
if test -z "$ac_cpp_err"; then
  ac_cv_header_stdc=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_stdc=no
fi
rm -f conftest.err conftest.$ac_ext
d4111 3
a4113 141
if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 8433 "configure"
#include "confdefs.h"
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line 8451 "configure"
#include "confdefs.h"
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line 8472 "configure"
#include "confdefs.h"
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      $ac_main_return(2);
  $ac_main_return (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:8498: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8501: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:8503: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8506: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
fi
echo "$as_me:8519: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.

for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                  inttypes.h stdint.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:8535: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 8541 "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8547: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8550: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8553: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8556: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_Header=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:8566: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a4115 258
fi
done

echo "$as_me:8576: checking for signed char" >&5
echo $ECHO_N "checking for signed char... $ECHO_C" >&6
if test "${ac_cv_type_signed_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 8582 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((signed char *) 0)
  return 0;
if (sizeof (signed char))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8597: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8600: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8603: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8606: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_signed_char=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_signed_char=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:8616: result: $ac_cv_type_signed_char" >&5
echo "${ECHO_T}$ac_cv_type_signed_char" >&6

echo "$as_me:8619: checking size of signed char" >&5
echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
if test "${ac_cv_sizeof_signed_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_signed_char" = yes; then
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line 8628 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8640: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8643: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8646: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8649: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line 8654 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8666: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8669: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8672: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8675: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line 8691 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8703: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8706: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8709: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8712: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line 8728 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:8740: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:8743: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:8746: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8749: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
ac_cv_sizeof_signed_char=$ac_lo
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:8762: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line 8767 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (!f)
  $ac_main_return (1);
fprintf (f, "%d", (sizeof (signed char)));
fclose (f);
  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:8783: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:8786: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:8788: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:8791: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_signed_char=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_signed_char=0
fi
fi
echo "$as_me:8807: result: $ac_cv_sizeof_signed_char" >&5
echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
cat >>confdefs.h <<EOF
#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
EOF

if test "$ac_cv_sizeof_signed_char" = 1 ; then
	NCURSES_SBOOL="signed char"
else
	NCURSES_SBOOL="char"
fi
echo "$as_me:8818: checking if you want to use signed Boolean array in term.h" >&5
echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6

# Check whether --enable-signed-char or --disable-signed-char was given.
if test "${enable_signed_char+set}" = set; then
  enableval="$enable_signed_char"
  with_signed_char=$enableval
else
  with_signed_char=no
fi;
echo "$as_me:8828: result: $with_signed_char" >&5
echo "${ECHO_T}$with_signed_char" >&6
test "$with_signed_char" != yes && NCURSES_SBOOL="char"
d4118 2
a4119 2
echo "$as_me:8833: checking if you want SIGWINCH handler" >&5
echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
d4127 4
a4130 4
fi;
echo "$as_me:8843: result: $with_sigwinch" >&5
echo "${ECHO_T}$with_sigwinch" >&6
test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
d4134 1
d4136 2
a4137 2
echo "$as_me:8850: checking if you want user-definable terminal capabilities like termcap" >&5
echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
d4145 3
a4147 3
fi;
echo "$as_me:8860: result: $with_tcap_names" >&5
echo "${ECHO_T}$with_tcap_names" >&6
d4151 1
d4155 2
a4156 2
echo "$as_me:8868: checking if you want all development code" >&5
echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
d4164 3
a4166 3
fi;
echo "$as_me:8878: result: $with_develop" >&5
echo "${ECHO_T}$with_develop" >&6
d4169 2
a4170 2
echo "$as_me:8882: checking if you want hard-tabs code" >&5
echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
d4175 10
d4186 7
d4194 6
a4199 6
  enable_hard_tabs=$with_develop
fi;
echo "$as_me:8892: result: $enable_hard_tabs" >&5
echo "${ECHO_T}$enable_hard_tabs" >&6
test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
#define USE_HARD_TABS 1
d4202 1
d4204 2
a4205 2
echo "$as_me:8899: checking if you want limited support for xmc" >&5
echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
d4210 4
d4215 2
a4216 6
else
  enable_xmc_glitch=$with_develop
fi;
echo "$as_me:8909: result: $enable_xmc_glitch" >&5
echo "${ECHO_T}$enable_xmc_glitch" >&6
test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
d4220 1
d4224 3
a4226 2
echo "$as_me:8918: checking if you do not want to assume colors are white-on-black" >&5
echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
d4234 4
a4237 4
fi;
echo "$as_me:8928: result: $with_assumed_color" >&5
echo "${ECHO_T}$with_assumed_color" >&6
test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
d4241 1
d4243 2
a4244 2
echo "$as_me:8935: checking if you want hashmap scrolling-optimization code" >&5
echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
d4252 4
a4255 4
fi;
echo "$as_me:8945: result: $with_hashmap" >&5
echo "${ECHO_T}$with_hashmap" >&6
test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
d4259 1
d4261 2
a4262 2
echo "$as_me:8952: checking if you want colorfgbg code" >&5
echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
a4269 37
fi;
echo "$as_me:8962: result: $with_colorfgbg" >&5
echo "${ECHO_T}$with_colorfgbg" >&6
test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
#define USE_COLORFGBG 1
EOF

###   use option --enable-ext-colors to turn on use of colors beyond 16.
echo "$as_me:8969: checking if you want to use experimental extended colors" >&5
echo $ECHO_N "checking if you want to use experimental extended colors... $ECHO_C" >&6

# Check whether --enable-ext-colors or --disable-ext-colors was given.
if test "${enable_ext_colors+set}" = set; then
  enableval="$enable_ext_colors"
  with_ext_colors=$enableval
else
  with_ext_colors=no
fi;
echo "$as_me:8979: result: $with_ext_colors" >&5
echo "${ECHO_T}$with_ext_colors" >&6
NCURSES_EXT_COLORS=0
if test "$with_ext_colors" = yes ; then
	if test "$with_widec" != yes ; then
		{ echo "$as_me:8984: WARNING: This option applies only to wide-character library" >&5
echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
	else
		# cannot be ABI 5 since it changes sizeof(cchar_t)

if test "${with_abi_version+set}" != set; then
	case $cf_cv_rel_version in
	5.*)
		cf_cv_rel_version=6.0
		cf_cv_abi_version=6
		{ echo "$as_me:8994: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
		;;
	esac
d4272 3
a4274 4
	fi
	NCURSES_EXT_COLORS=1
	cat >>confdefs.h <<\EOF
#define NCURSES_EXT_COLORS 1
a4276 31
fi

###   use option --enable-ext-mouse to modify coding to support 5-button mice
echo "$as_me:9009: checking if you want to use experimental extended mouse encoding" >&5
echo $ECHO_N "checking if you want to use experimental extended mouse encoding... $ECHO_C" >&6

# Check whether --enable-ext-mouse or --disable-ext-mouse was given.
if test "${enable_ext_mouse+set}" = set; then
  enableval="$enable_ext_mouse"
  with_ext_mouse=$enableval
else
  with_ext_mouse=no
fi;
echo "$as_me:9019: result: $with_ext_mouse" >&5
echo "${ECHO_T}$with_ext_mouse" >&6
NCURSES_MOUSE_VERSION=1
if test "$with_ext_mouse" = yes ; then
	NCURSES_MOUSE_VERSION=2

if test "${with_abi_version+set}" != set; then
	case $cf_cv_rel_version in
	5.*)
		cf_cv_rel_version=6.0
		cf_cv_abi_version=6
		{ echo "$as_me:9030: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
		;;
	esac
fi

fi
d4278 2
a4279 2
echo "$as_me:9038: checking if you want experimental safe-sprintf code" >&5
echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
d4287 4
a4290 4
fi;
echo "$as_me:9048: result: $with_safe_sprintf" >&5
echo "${ECHO_T}$with_safe_sprintf" >&6
test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
d4294 1
d4298 2
a4299 2
echo "$as_me:9057: checking if you want to experiment without scrolling-hints code" >&5
echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
a4306 7
fi;
echo "$as_me:9067: result: $with_scroll_hints" >&5
echo "${ECHO_T}$with_scroll_hints" >&6
test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
#define USE_SCROLL_HINTS 1
EOF

d4309 3
a4311 465
echo "$as_me:9075: checking if you want experimental wgetch-events code" >&5
echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6

# Check whether --enable-wgetch-events or --disable-wgetch-events was given.
if test "${enable_wgetch_events+set}" = set; then
  enableval="$enable_wgetch_events"
  with_wgetch_events=$enableval
else
  with_wgetch_events=no
fi;
echo "$as_me:9085: result: $with_wgetch_events" >&5
echo "${ECHO_T}$with_wgetch_events" >&6
test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
#define NCURSES_WGETCH_EVENTS 1
EOF

###############################################################################

###	use option --disable-echo to suppress full display compiling commands
echo "$as_me:9094: checking if you want to display full commands during build" >&5
echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6

# Check whether --enable-echo or --disable-echo was given.
if test "${enable_echo+set}" = set; then
  enableval="$enable_echo"
  with_echo=$enableval
else
  with_echo=yes
fi;
if test "$with_echo" = yes; then
	ECHO_LINK=
else
	ECHO_LINK='@@ echo linking $@@ ... ;'
	test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
fi
echo "$as_me:9110: result: $with_echo" >&5
echo "${ECHO_T}$with_echo" >&6

###	use option --enable-warnings to turn on all gcc warnings
echo "$as_me:9114: checking if you want to see compiler warnings" >&5
echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6

# Check whether --enable-warnings or --disable-warnings was given.
if test "${enable_warnings+set}" = set; then
  enableval="$enable_warnings"
  with_warnings=$enableval
fi;
echo "$as_me:9122: result: $with_warnings" >&5
echo "${ECHO_T}$with_warnings" >&6

if test -n "$with_warnings"; then
 	ADAFLAGS="$ADAFLAGS -gnatg"

INTEL_COMPILER=no

if test "$GCC" = yes ; then
	case $host_os in
	linux*|gnu*)
		echo "$as_me:9133: checking if this is really Intel C compiler" >&5
echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
		cf_save_CFLAGS="$CFLAGS"
		CFLAGS="$CFLAGS -no-gcc"
		cat >conftest.$ac_ext <<_ACEOF
#line 9138 "configure"
#include "confdefs.h"

int
main ()
{

#ifdef __INTEL_COMPILER
#else
make an error
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9155: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9158: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9161: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9164: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  INTEL_COMPILER=yes
cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		CFLAGS="$cf_save_CFLAGS"
		echo "$as_me:9175: result: $INTEL_COMPILER" >&5
echo "${ECHO_T}$INTEL_COMPILER" >&6
		;;
	esac
fi

cat > conftest.$ac_ext <<EOF
#line 9182 "configure"
int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
EOF

if test "$INTEL_COMPILER" = yes
then
# The "-wdXXX" options suppress warnings:
# remark #1419: external declaration in primary source file
# remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
# remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
# remark #193: zero used for undefined preprocessing identifier
# remark #593: variable "curs_sb_left_arrow" was set but never used
# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
# remark #869: parameter "tw" was never referenced
# remark #981: operands are evaluated in unspecified order
# warning #269: invalid format string conversion

	{ echo "$as_me:9200: checking for $CC warning options..." >&5
echo "$as_me: checking for $CC warning options..." >&6;}
	cf_save_CFLAGS="$CFLAGS"
	EXTRA_CFLAGS="-Wall"
	for cf_opt in  \
		wd1419 \
		wd1682 \
		wd1683 \
		wd1684 \
		wd193 \
		wd279 \
		wd593 \
		wd810 \
		wd869 \
		wd981
	do
		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
		if { (eval echo "$as_me:9217: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9220: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:9222: result: ... -$cf_opt" >&5
echo "${ECHO_T}... -$cf_opt" >&6
			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
		fi
	done
	CFLAGS="$cf_save_CFLAGS"

elif test "$GCC" = yes
then
	{ echo "$as_me:9231: checking for $CC warning options..." >&5
echo "$as_me: checking for $CC warning options..." >&6;}
	cf_save_CFLAGS="$CFLAGS"
	EXTRA_CFLAGS="-W -Wall"
	cf_warn_CONST=""
	test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
	for cf_opt in \
		Wbad-function-cast \
		Wcast-align \
		Wcast-qual \
		Winline \
		Wmissing-declarations \
		Wmissing-prototypes \
		Wnested-externs \
		Wpointer-arith \
		Wshadow \
		Wstrict-prototypes \
		Wundef $cf_warn_CONST
	do
		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
		if { (eval echo "$as_me:9251: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9254: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:9256: result: ... -$cf_opt" >&5
echo "${ECHO_T}... -$cf_opt" >&6
			case $cf_opt in #(vi
			Wcast-qual) #(vi
				CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
				;;
			Winline) #(vi
				case $GCC_VERSION in
				3.3*)
					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6

					continue;;
				esac
				;;
			esac
			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
		fi
	done
	CFLAGS="$cf_save_CFLAGS"
fi
rm -f conftest*

	if test "$cf_with_cxx" = yes ; then

INTEL_CPLUSPLUS=no

if test "$GCC" = yes ; then
	case $host_os in
	linux*|gnu*)
		echo "$as_me:9285: checking if this is really Intel C++ compiler" >&5
echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
		cf_save_CFLAGS="$CXXFLAGS"
		CXXFLAGS="$CXXFLAGS -no-gcc"
		cat >conftest.$ac_ext <<_ACEOF
#line 9290 "configure"
#include "confdefs.h"

int
main ()
{

#ifdef __INTEL_COMPILER
#else
make an error
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:9307: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9310: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:9313: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9316: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  INTEL_CPLUSPLUS=yes
cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		CXXFLAGS="$cf_save_CFLAGS"
		echo "$as_me:9327: result: $INTEL_CPLUSPLUS" >&5
echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
		;;
	esac
fi

ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

cat > conftest.$ac_ext <<EOF
#line 9341 "configure"
int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
EOF

if test "$INTEL_CPLUSPLUS" = yes
then
# The "-wdXXX" options suppress warnings:
# remark #1419: external declaration in primary source file
# remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
# remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
# remark #193: zero used for undefined preprocessing identifier
# remark #593: variable "curs_sb_left_arrow" was set but never used
# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
# remark #869: parameter "tw" was never referenced
# remark #981: operands are evaluated in unspecified order
# warning #269: invalid format string conversion

	{ echo "$as_me:9359: checking for $CC warning options..." >&5
echo "$as_me: checking for $CC warning options..." >&6;}
	cf_save_CXXFLAGS="$CXXFLAGS"
	EXTRA_CXXFLAGS="-Wall"
	for cf_opt in \
		wd1419 \
		wd1682 \
		wd1683 \
		wd1684 \
		wd193 \
		wd279 \
		wd593 \
		wd810 \
		wd869 \
		wd981
	do
		CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
		if { (eval echo "$as_me:9376: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9379: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:9381: result: ... -$cf_opt" >&5
echo "${ECHO_T}... -$cf_opt" >&6
			EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
		fi
	done
	CXXFLAGS="$cf_save_CXXFLAGS"

elif test "$GXX" = yes
then
	{ echo "$as_me:9390: checking for $CXX warning options..." >&5
echo "$as_me: checking for $CXX warning options..." >&6;}
	cf_save_CXXFLAGS="$CXXFLAGS"
	EXTRA_CXXFLAGS="-W -Wall"
	cf_gxx_extra_warnings=""
	test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
	case "$GCC_VERSION" in
	[1-2].*)
		;;
	*)
		cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
		;;
	esac
	for cf_opt in \
		Wabi \
		fabi-version=0 \
		Woverloaded-virtual \
		Wsign-promo \
		Wsynth \
		Wold-style-cast \
		Wcast-align \
		Wcast-qual \
		Wmissing-prototypes \
		Wpointer-arith \
		Wshadow \
		Wstrict-prototypes \
		Wundef $cf_gxx_extra_warnings Wno-unused
	do
		CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
		if { (eval echo "$as_me:9419: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9422: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:9424: result: ... -$cf_opt" >&5
echo "${ECHO_T}... -$cf_opt" >&6
			EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
		else
			test -n "$verbose" && echo "$as_me:9428: result: ... no -$cf_opt" >&5
echo "${ECHO_T}... no -$cf_opt" >&6
		fi
	done
	CXXFLAGS="$cf_save_CXXFLAGS"
fi

rm -f conftest*
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

	fi
fi

if test "$GCC" = yes
then
cat > conftest.i <<EOF
#ifndef GCC_PRINTF
#define GCC_PRINTF 0
#endif
#ifndef GCC_SCANF
#define GCC_SCANF 0
#endif
#ifndef GCC_NORETURN
#define GCC_NORETURN /* nothing */
#endif
#ifndef GCC_UNUSED
#define GCC_UNUSED /* nothing */
#endif
EOF
if test "$GCC" = yes
then
	{ echo "$as_me:9464: checking for $CC __attribute__ directives..." >&5
echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
cat > conftest.$ac_ext <<EOF
#line 9467 "configure"
#include "confdefs.h"
#include "conftest.h"
#include "conftest.i"
#if	GCC_PRINTF
#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
#else
#define GCC_PRINTFLIKE(fmt,var) /*nothing*/
#endif
#if	GCC_SCANF
#define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
#else
#define GCC_SCANFLIKE(fmt,var)  /*nothing*/
#endif
extern void wow(char *,...) GCC_SCANFLIKE(1,2);
extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
extern void foo(void) GCC_NORETURN;
int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
EOF
	for cf_attribute in scanf printf unused noreturn
	do

cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`

		cf_directive="__attribute__(($cf_attribute))"
		echo "checking for $CC $cf_directive" 1>&5
		case $cf_attribute in
		scanf|printf)
		cat >conftest.h <<EOF
#define GCC_$cf_ATTRIBUTE 1
EOF
			;;
		*)
		cat >conftest.h <<EOF
#define GCC_$cf_ATTRIBUTE $cf_directive
EOF
			;;
		esac
		if { (eval echo "$as_me:9505: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:9508: \$? = $ac_status" >&5
  (exit $ac_status); }; then
			test -n "$verbose" && echo "$as_me:9510: result: ... $cf_attribute" >&5
echo "${ECHO_T}... $cf_attribute" >&6
			cat conftest.h >>confdefs.h
		fi
	done
else
	fgrep define conftest.i >>confdefs.h
fi
rm -rf conftest*
fi

###	use option --enable-assertions to turn on generation of assertion code
echo "$as_me:9522: checking if you want to enable runtime assertions" >&5
echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6

# Check whether --enable-assertions or --disable-assertions was given.
if test "${enable_assertions+set}" = set; then
  enableval="$enable_assertions"
  with_assertions=$enableval
else
  with_assertions=no
fi;
echo "$as_me:9532: result: $with_assertions" >&5
echo "${ECHO_T}$with_assertions" >&6
if test -n "$GCC"
then
	if test "$with_assertions" = no
	then
		cat >>confdefs.h <<\EOF
#define NDEBUG 1
a4313 4
		CPPFLAGS="$CPPFLAGS -DNDEBUG"
	else
		ADAFLAGS="$ADAFLAGS -gnata"
	fi
d4316 6
a4321 1
###	use option --disable-leaks to suppress "permanent" leaks, for testing
d4323 7
a4329 2
echo "$as_me:9550: checking if you want to use dmalloc for testing" >&5
echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
d4331 5
a4335 5
# Check whether --with-dmalloc or --without-dmalloc was given.
if test "${with_dmalloc+set}" = set; then
  withval="$with_dmalloc"
  cat >>confdefs.h <<\EOF
#define USE_DMALLOC 1
d4338 18
a4355 15
	: ${with_cflags:=-g}
	: ${with_no_leaks:=yes}
	 with_dmalloc=yes
else
  with_dmalloc=
fi;
echo "$as_me:9566: result: ${with_dmalloc:-no}" >&5
echo "${ECHO_T}${with_dmalloc:-no}" >&6

case .$with_cflags in #(vi
.*-g*)
	case .$CFLAGS in #(vi
	.*-g*) #(vi
		;;
	*)
d4357 1
a4357 4
cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=
d4359 8
a4366 13
for cf_add_cflags in -g
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes
d4368 13
a4380 24
			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
d4382 6
a4387 1
	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
d4389 13
a4401 6
	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done
d4403 16
a4418 1
if test -n "$cf_new_cflags" ; then
a4419 1
	CFLAGS="$CFLAGS $cf_new_cflags"
d4422 1
a4422 1
if test -n "$cf_new_cppflags" ; then
d4424 4
a4427 2
	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi
d4429 1
a4429 3
if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
d4432 3
a4434 31
		;;
	esac
	;;
esac

if test "$with_dmalloc" = yes ; then
	echo "$as_me:9650: checking for dmalloc.h" >&5
echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
if test "${ac_cv_header_dmalloc_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9656 "configure"
#include "confdefs.h"
#include <dmalloc.h>
_ACEOF
if { (eval echo "$as_me:9660: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:9666: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
d4436 6
a4441 2
if test -z "$ac_cpp_err"; then
  ac_cv_header_dmalloc_h=yes
d4443 4
a4446 9
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_dmalloc_h=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:9685: result: $ac_cv_header_dmalloc_h" >&5
echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
if test $ac_cv_header_dmalloc_h = yes; then
d4448 11
a4458 4
echo "$as_me:9689: checking for dmalloc_debug in -ldmalloc" >&5
echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4460 5
a4464 4
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldmalloc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 9697 "configure"
d4467 4
a4470 3
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
d4472 3
a4474 37
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dmalloc_debug ();
int
main ()
{
dmalloc_debug ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9716: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9719: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9722: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9725: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dmalloc_dmalloc_debug=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dmalloc_dmalloc_debug=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:9736: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
  cat >>confdefs.h <<EOF
#define HAVE_LIBDMALLOC 1
d4476 8
a4483 3

  LIBS="-ldmalloc $LIBS"

d4485 1
a4485 1

d4487 1
a4487 1

d4490 1
a4490 2
echo "$as_me:9751: checking if you want to use dbmalloc for testing" >&5
echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
d4492 3
a4494 5
# Check whether --with-dbmalloc or --without-dbmalloc was given.
if test "${with_dbmalloc+set}" = set; then
  withval="$with_dbmalloc"
  cat >>confdefs.h <<\EOF
#define USE_DBMALLOC 1
d4497 6
a4502 15
	: ${with_cflags:=-g}
	: ${with_no_leaks:=yes}
	 with_dbmalloc=yes
else
  with_dbmalloc=
fi;
echo "$as_me:9767: result: ${with_dbmalloc:-no}" >&5
echo "${ECHO_T}${with_dbmalloc:-no}" >&6

case .$with_cflags in #(vi
.*-g*)
	case .$CFLAGS in #(vi
	.*-g*) #(vi
		;;
	*)
d4504 1
a4504 4
cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=
d4506 4
a4509 13
for cf_add_cflags in -g
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes
a4510 24
			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
a4511 1
	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
a4512 6
	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done
d4514 2
a4515 1
if test -n "$cf_new_cflags" ; then
d4517 6
a4522 1
	CFLAGS="$CFLAGS $cf_new_cflags"
d4525 2
a4526 1
if test -n "$cf_new_cppflags" ; then
a4527 2
	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi
d4529 1
a4529 1
if test -n "$cf_new_extra_cppflags" ; then
a4530 2
	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi
d4532 3
a4534 4
		;;
	esac
	;;
esac
d4536 4
a4539 24
if test "$with_dbmalloc" = yes ; then
	echo "$as_me:9851: checking for dbmalloc.h" >&5
echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
if test "${ac_cv_header_dbmalloc_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9857 "configure"
#include "confdefs.h"
#include <dbmalloc.h>
_ACEOF
if { (eval echo "$as_me:9861: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:9867: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d4541 1
a4541 1
  ac_cpp_err=yes
d4543 3
a4545 2
if test -z "$ac_cpp_err"; then
  ac_cv_header_dbmalloc_h=yes
d4547 2
a4548 3
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_dbmalloc_h=no
d4550 11
a4560 1
rm -f conftest.err conftest.$ac_ext
a4561 3
echo "$as_me:9886: result: $ac_cv_header_dbmalloc_h" >&5
echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
if test $ac_cv_header_dbmalloc_h = yes; then
d4563 1
a4563 55
echo "$as_me:9890: checking for debug_malloc in -ldbmalloc" >&5
echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldbmalloc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 9898 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char debug_malloc ();
int
main ()
{
debug_malloc ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9917: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9920: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9923: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9926: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dbmalloc_debug_malloc=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dbmalloc_debug_malloc=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:9937: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
  cat >>confdefs.h <<EOF
#define HAVE_LIBDBMALLOC 1
EOF

  LIBS="-ldbmalloc $LIBS"
d4565 36
a4602 1
fi
d4606 44
a4649 2
echo "$as_me:9952: checking if you want to use valgrind for testing" >&5
echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
d4651 7
a4657 49
# Check whether --with-valgrind or --without-valgrind was given.
if test "${with_valgrind+set}" = set; then
  withval="$with_valgrind"
  cat >>confdefs.h <<\EOF
#define USE_VALGRIND 1
EOF

	: ${with_cflags:=-g}
	: ${with_no_leaks:=yes}
	 with_valgrind=yes
else
  with_valgrind=
fi;
echo "$as_me:9968: result: ${with_valgrind:-no}" >&5
echo "${ECHO_T}${with_valgrind:-no}" >&6

case .$with_cflags in #(vi
.*-g*)
	case .$CFLAGS in #(vi
	.*-g*) #(vi
		;;
	*)

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in -g
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
d4659 4
a4662 6
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
d4665 12
a4676 8
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
a4677 1
	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
d4679 3
a4681 6
	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done
d4683 6
a4688 3
if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
d4691 8
a4698 1
if test -n "$cf_new_cppflags" ; then
d4700 4
a4703 1
	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
d4706 1
a4706 12
if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

		;;
	esac
	;;
esac

echo "$as_me:10051: checking if you want to perform memory-leak testing" >&5
echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
d4711 1
a4711 9
  with_no_leaks=yes
else
  : ${with_no_leaks:=no}
fi;
echo "$as_me:10061: result: $with_no_leaks" >&5
echo "${ECHO_T}$with_no_leaks" >&6

if test "$with_no_leaks" = yes ; then
	cat >>confdefs.h <<\EOF
d4717 1
a4717 1
cat >>confdefs.h <<\EOF
d4721 1
d4727 1
a4727 1
  test "$enableval" = yes && cat >>confdefs.h <<\EOF
d4731 2
a4732 1
fi;
d4739 1
a4739 1
  test "$enableval" = no && cat >>confdefs.h <<\EOF
a4742 89
fi;

# Normally we only add trace() to the debug-library.  Allow this to be
# extended to all models of the ncurses library:
cf_all_traces=no
case "$CFLAGS $CPPFLAGS" in
*-DTRACE*)
	cf_all_traces=yes
	;;
esac

echo "$as_me:10106: checking whether to add trace feature to all models" >&5
echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6

# Check whether --with-trace or --without-trace was given.
if test "${with_trace+set}" = set; then
  withval="$with_trace"
  cf_with_trace=$withval
else
  cf_with_trace=$cf_all_traces
fi;
echo "$as_me:10116: result: $cf_with_trace" >&5
echo "${ECHO_T}$cf_with_trace" >&6

if test "$cf_with_trace" = yes ; then
	LIB_TRACING=all
	ADA_TRACE=TRUE

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in -DTRACE
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
a4744 9
if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

else
	LIB_TRACING=DEBUG
	ADA_TRACE=FALSE
fi
d4747 4
a4750 4
echo "$as_me:10197: checking for gettimeofday" >&5
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
if test "${ac_cv_func_gettimeofday+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4752 2
a4753 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10203 "configure"
d4756 1
a4756 1
    which can conflict with char gettimeofday (); below.  */
a4758 3
#ifdef __cplusplus
extern "C"
#endif
d4760 4
a4763 3
   builtin and then its argument prototype would still apply.  */
char gettimeofday ();
char (*f) ();
a4764 3
int
main ()
{
d4771 1
a4771 1
f = gettimeofday;
d4774 17
a4790 28
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10234: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10237: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10240: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10243: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_gettimeofday=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_gettimeofday=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:10253: result: $ac_cv_func_gettimeofday" >&5
echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
if test $ac_cv_func_gettimeofday = yes; then
  cat >>confdefs.h <<\EOF
d4795 1
d4797 6
a4802 4
echo "$as_me:10262: checking for gettimeofday in -lbsd" >&5
echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4804 1
a4804 1
  ac_check_lib_save_LIBS=$LIBS
d4806 2
a4807 2
cat >conftest.$ac_ext <<_ACEOF
#line 10270 "configure"
a4808 1

a4809 3
#ifdef __cplusplus
extern "C"
#endif
d4811 23
a4833 35
   builtin and then its argument prototype would still apply.  */
char gettimeofday ();
int
main ()
{
gettimeofday ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10289: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10292: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10295: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10298: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_bsd_gettimeofday=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_bsd_gettimeofday=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:10309: result: $ac_cv_lib_bsd_gettimeofday" >&5
echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
if test $ac_cv_lib_bsd_gettimeofday = yes; then
  cat >>confdefs.h <<\EOF
d4838 2
d4844 5
a4848 4
echo "$as_me:10321: checking if -lm needed for math functions" >&5
echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
if test "${cf_cv_need_libm+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4850 3
a4852 3

	cat >conftest.$ac_ext <<_ACEOF
#line 10328 "configure"
d4857 58
d4916 8
a4923 21
int
main ()
{
double x = rand(); printf("result = %g\n", sin(x))
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10343: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10346: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10349: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10352: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_need_libm=no
d4925 4
a4928 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_need_libm=yes
d4930 3
a4932 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d4934 2
a4935 5
echo "$as_me:10362: result: $cf_cv_need_libm" >&5
echo "${ECHO_T}$cf_cv_need_libm" >&6
if test "$cf_cv_need_libm" = yes
then
MATH_LIB=-lm
d4938 7
a4944 5
###	Checks for header files.
echo "$as_me:10370: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d4946 2
a4947 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10376 "configure"
d4953 6
a4958 19

_ACEOF
if { (eval echo "$as_me:10384: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:10390: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
d4961 2
a4962 1
  echo "$as_me: failed program was:" >&5
d4964 1
d4967 1
a4967 1
rm -f conftest.err conftest.$ac_ext
d4971 2
a4972 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10412 "configure"
d4975 1
a4975 2

_ACEOF
d4980 1
d4989 2
a4990 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10430 "configure"
d4993 1
a4993 2

_ACEOF
d4998 1
d5007 1
a5007 1
  if test "$cross_compiling" = yes; then
d5010 2
a5011 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10451 "configure"
d5014 6
a5019 9
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
d5021 3
a5023 23
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      $ac_main_return(2);
  $ac_main_return (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:10477: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10480: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:10482: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10485: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5026 4
a5029 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
d5031 1
a5031 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d5033 1
d5036 2
a5037 2
echo "$as_me:10498: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
d5039 1
a5039 2

cat >>confdefs.h <<\EOF
d5046 7
a5052 6
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
echo "$as_me:10511: checking for $ac_hdr that defines DIR" >&5
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5054 2
a5055 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10517 "configure"
d5059 20
a5078 35

int
main ()
{
if ((DIR *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10532: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10535: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10538: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10541: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_Header=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:10551: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d5080 3
a5082 2

ac_header_dirent=$ac_hdr; break
a5083 1

d5087 5
a5091 4
  echo "$as_me:10564: checking for opendir in -ldir" >&5
echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
if test "${ac_cv_lib_dir_opendir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5093 1
a5093 1
  ac_check_lib_save_LIBS=$LIBS
d5095 2
a5096 2
cat >conftest.$ac_ext <<_ACEOF
#line 10572 "configure"
a5097 1

a5098 3
#ifdef __cplusplus
extern "C"
#endif
d5100 22
a5121 34
   builtin and then its argument prototype would still apply.  */
char opendir ();
int
main ()
{
opendir ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10591: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10594: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10597: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10600: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dir_opendir=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dir_opendir=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:10611: result: $ac_cv_lib_dir_opendir" >&5
echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
if test $ac_cv_lib_dir_opendir = yes; then
d5123 2
d5128 5
a5132 4
  echo "$as_me:10618: checking for opendir in -lx" >&5
echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
if test "${ac_cv_lib_x_opendir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5134 1
a5134 1
  ac_check_lib_save_LIBS=$LIBS
d5136 2
a5137 2
cat >conftest.$ac_ext <<_ACEOF
#line 10626 "configure"
a5138 1

a5139 3
#ifdef __cplusplus
extern "C"
#endif
d5141 22
a5162 34
   builtin and then its argument prototype would still apply.  */
char opendir ();
int
main ()
{
opendir ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10645: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10648: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10651: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10654: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_x_opendir=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_x_opendir=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:10665: result: $ac_cv_lib_x_opendir" >&5
echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
if test $ac_cv_lib_x_opendir = yes; then
d5164 2
d5170 4
a5173 4
echo "$as_me:10673: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5175 2
a5176 2
  cat >conftest.$ac_ext <<_ACEOF
#line 10679 "configure"
d5181 6
a5186 22

int
main ()
{
if ((struct tm *) 0)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:10695: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:10698: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:10701: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10704: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5189 4
a5192 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_time=no
d5194 1
a5194 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5196 2
a5197 2
echo "$as_me:10714: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
d5199 1
a5199 2

cat >>confdefs.h <<\EOF
d5205 5
a5209 4
echo "$as_me:10724: checking for regular-expression headers" >&5
echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
if test "${cf_cv_regex+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5211 3
a5213 3

cat >conftest.$ac_ext <<_ACEOF
#line 10731 "configure"
d5217 1
a5217 3
int
main ()
{
d5223 5
a5227 17

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10749: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10752: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10755: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10758: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5230 6
a5235 5
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
#line 10766 "configure"
d5238 1
a5238 3
int
main ()
{
d5242 5
a5246 17

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10781: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10784: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10787: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10790: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5249 4
a5252 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

d5255 2
a5256 2
		cat >conftest.$ac_ext <<_ACEOF
#line 10800 "configure"
d5259 1
a5259 3
int
main ()
{
d5263 5
a5267 17

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10815: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10818: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10821: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10824: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5270 4
a5273 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
LIBS="$cf_save_LIBS"
d5275 1
a5275 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5277 1
a5277 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5279 1
a5279 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5283 1
a5283 2
echo "$as_me:10840: result: $cf_cv_regex" >&5
echo "${ECHO_T}$cf_cv_regex" >&6
d5285 1
a5285 1
	regex.h)   cat >>confdefs.h <<\EOF
d5289 1
a5289 1
	regexp.h)  cat >>confdefs.h <<\EOF
d5293 1
a5293 1
	regexpr.h) cat >>confdefs.h <<\EOF
d5299 2
a5300 1
for ac_header in \
d5303 1
a5315 1
wctype.h \
d5318 5
a5322 24
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:10876: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 10882 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:10886: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:10892: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d5324 11
a5334 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
d5336 2
a5337 1
  echo "$as_me: failed program was:" >&5
d5339 2
a5340 1
  eval "$as_ac_Header=no"
d5342 1
a5342 1
rm -f conftest.err conftest.$ac_ext
d5344 5
a5348 5
echo "$as_me:10911: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d5350 3
a5352 1

d5356 1
d5360 5
a5364 5

echo "$as_me:10925: checking for main in -lcposix" >&5
echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
if test "${ac_cv_lib_cposix_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5366 1
a5366 1
  ac_check_lib_save_LIBS=$LIBS
d5368 2
a5369 2
cat >conftest.$ac_ext <<_ACEOF
#line 10933 "configure"
d5372 23
a5394 34
int
main ()
{
main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:10945: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:10948: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:10951: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:10954: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_cposix_main=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_cposix_main=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:10965: result: $ac_cv_lib_cposix_main" >&5
echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
if test $ac_cv_lib_cposix_main = yes; then
  cat >>confdefs.h <<EOF
#define HAVE_LIBCPOSIX 1
d5399 2
d5403 5
a5407 4
	echo "$as_me:10976: checking for bzero in -linet" >&5
echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
if test "${ac_cv_lib_inet_bzero+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5409 1
a5409 1
  ac_check_lib_save_LIBS=$LIBS
d5411 2
a5412 2
cat >conftest.$ac_ext <<_ACEOF
#line 10984 "configure"
a5413 1

a5414 3
#ifdef __cplusplus
extern "C"
#endif
d5416 22
a5437 34
   builtin and then its argument prototype would still apply.  */
char bzero ();
int
main ()
{
bzero ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11003: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11006: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11009: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11012: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_inet_bzero=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_inet_bzero=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:11023: result: $ac_cv_lib_inet_bzero" >&5
echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
if test $ac_cv_lib_inet_bzero = yes; then
d5439 2
d5444 5
a5448 4
echo "$as_me:11030: checking if sys/time.h works with sys/select.h" >&5
echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
if test "${cf_cv_sys_time_select+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5450 3
a5452 3

cat >conftest.$ac_ext <<_ACEOF
#line 11037 "configure"
d5463 1
a5463 3
int
main ()
{
d5465 4
a5468 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11057: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11060: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11063: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11066: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5471 4
a5474 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_sys_time_select=no
d5476 2
a5477 2
rm -f conftest.$ac_objext conftest.$ac_ext

d5480 2
a5481 3
echo "$as_me:11078: result: $cf_cv_sys_time_select" >&5
echo "${ECHO_T}$cf_cv_sys_time_select" >&6
test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
d5485 2
d5489 1
d5491 8
a5498 100
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return=return

echo "$as_me:11092: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
if test "${ac_cv_prog_cc_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_prog_cc_stdc=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
#line 11100 "configure"
#include "confdefs.h"
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX			-qlanglvl=ansi
# Ultrix and OSF/1	-std1
# HP-UX 10.20 and later	-Ae
# HP-UX older versions	-Aa -D_HPUX_SOURCE
# SVR4			-Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
if { (eval echo "$as_me:11149: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11152: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11155: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11158: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_stdc=$ac_arg
break
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext
done
rm -f conftest.$ac_ext conftest.$ac_objext
CC=$ac_save_CC

fi

case "x$ac_cv_prog_cc_stdc" in
  x|xno)
    echo "$as_me:11175: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;;
  *)
    echo "$as_me:11178: result: $ac_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    CC="$CC $ac_cv_prog_cc_stdc" ;;
esac

echo "$as_me:11183: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5500 2
a5501 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11189 "configure"
d5504 1
a5504 49
int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset x;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *ccp;
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  ccp = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++ccp;
  p = (char**) ccp;
  ccp = (char const *const *) p;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
  }
#endif
d5506 40
a5545 2
  ;
  return 0;
d5547 5
a5551 13
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11247: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11250: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11253: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11256: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5554 4
a5557 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_const=no
d5559 1
a5559 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5561 2
a5562 2
echo "$as_me:11266: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
d5564 2
a5565 3

cat >>confdefs.h <<\EOF
#define const
d5570 4
a5573 4
echo "$as_me:11276: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5577 2
a5578 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11284 "configure"
a5579 4
#ifndef __cplusplus
static $ac_kw int static_foo () {return 0; }
$ac_kw int foo () {return 0; }
#endif
d5581 6
a5586 13
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11293: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11296: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11299: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11302: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5589 2
a5590 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d5592 1
a5592 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5596 3
a5598 3
echo "$as_me:11313: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
d5600 2
a5601 3
  no)
cat >>confdefs.h <<\EOF
#define inline
d5604 1
a5604 1
  *)  cat >>confdefs.h <<EOF
d5610 1
a5610 3
NCURSES_INLINE=
if test "$ac_cv_c_inline" != no ; then
	cat >>confdefs.h <<\EOF
d5614 27
a5640 1
	NCURSES_INLINE=inline
d5643 1
a5643 1
if test $NCURSES_CHTYPE = auto ; then
d5645 6
a5650 4
echo "$as_me:11339: checking for type of chtype" >&5
echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
if test "${cf_cv_typeof_chtype+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5652 1
a5652 1

d5656 2
a5657 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11349 "configure"
d5660 4
d5665 1
d5672 8
d5682 1
a5682 1
			unsigned int x, y;
d5684 1
a5684 2
				x = (1 << n);
				y = (x >> n);
d5699 1
a5699 1
	${cf_cv_main_return:-return}(0);
d5701 4
a5704 13

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11384: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11387: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11389: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11392: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5707 4
a5710 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_typeof_chtype=long
d5712 1
a5712 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d5714 1
d5716 1
a5716 12

fi

echo "$as_me:11407: result: $cf_cv_typeof_chtype" >&5
echo "${ECHO_T}$cf_cv_typeof_chtype" >&6

cat >>confdefs.h <<EOF
#define TYPEOF_CHTYPE $cf_cv_typeof_chtype
EOF

else
	cf_cv_typeof_chtype=$NCURSES_CHTYPE
d5719 1
a5719 9
echo "$as_me:11418: checking if unsigned literals are legal" >&5
echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
if test "${cf_cv_unsigned_literals+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 11425 "configure"
#include "confdefs.h"
a5720 27
int
main ()
{
long x = 1L + 1UL + 1U + 1
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11437: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11440: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11443: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11446: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_unsigned_literals=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_unsigned_literals=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
d5722 3
a5724 1
fi
a5725 2
echo "$as_me:11458: result: $cf_cv_unsigned_literals" >&5
echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
d5731 2
a5732 5
if test $NCURSES_MMASK_T = auto ; then
	cf_cv_typeof_mmask_t=long
else
	cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
fi
a5735 5
echo "$as_me:11473: checking if external errno is declared" >&5
echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
if test "${cf_cv_dcl_errno+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d5737 8
a5744 2
    cat >conftest.$ac_ext <<_ACEOF
#line 11480 "configure"
d5752 2
a5753 4
#include <errno.h>
int
main ()
{
d5755 4
a5758 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11498: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11501: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11504: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11507: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5761 4
a5764 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_dcl_errno=no
d5766 1
a5766 1
rm -f conftest.$ac_objext conftest.$ac_ext
d5769 2
a5770 2
echo "$as_me:11518: result: $cf_cv_dcl_errno" >&5
echo "${ECHO_T}$cf_cv_dcl_errno" >&6
d5773 1
a5773 1

d5776 1
a5776 1
    cat >>confdefs.h <<EOF
d5784 8
a5791 8
echo "$as_me:11533: checking if external errno exists" >&5
echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
if test "${cf_cv_have_errno+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    cat >conftest.$ac_ext <<_ACEOF
#line 11540 "configure"
d5797 1
a5797 3
int
main ()
{
d5799 4
a5802 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11555: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11558: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11561: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11564: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5805 4
a5808 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_have_errno=no
d5810 1
a5810 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d5813 2
a5814 2
echo "$as_me:11575: result: $cf_cv_have_errno" >&5
echo "${ECHO_T}$cf_cv_have_errno" >&6
d5817 1
a5817 1

d5820 1
a5820 1
    cat >>confdefs.h <<EOF
d5826 8
a5833 4
echo "$as_me:11588: checking if data-only library module links" >&5
echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
if test "${cf_cv_link_dataonly+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5835 1
a5835 1

d5838 1
a5838 1
#line 11596 "configure"
d5841 1
a5841 5
	if { (eval echo "$as_me:11599: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11602: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
d5847 1
a5847 1
#line 11609 "configure"
d5851 1
a5851 1
	${cf_cv_main_return:-return}(1);	/* I'm told this linker is broken */
d5860 1
a5860 5
	if { (eval echo "$as_me:11622: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11625: \$? = $ac_status" >&5
  (exit $ac_status); }; then
d5865 1
a5865 1
	( eval $RANLIB conftest.a ) 2>&5 >/dev/null
d5871 2
a5872 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11638 "configure"
d5878 1
a5878 1
		${cf_cv_main_return:-return} (!testfunc());
d5880 4
a5883 13

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11649: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11652: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11654: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11657: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d5886 4
a5889 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_link_dataonly=no
d5891 1
a5891 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d5893 1
d5895 1
a5895 1

d5898 1
a5898 2
echo "$as_me:11672: result: $cf_cv_link_dataonly" >&5
echo "${ECHO_T}$cf_cv_link_dataonly" >&6
d5901 1
a5901 1
	cat >>confdefs.h <<\EOF
d5908 2
a5910 1

d5917 2
d5934 4
a5937 5
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:11707: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5939 2
a5940 2
  cat >conftest.$ac_ext <<_ACEOF
#line 11713 "configure"
d5943 1
a5943 1
    which can conflict with char $ac_func (); below.  */
a5945 3
#ifdef __cplusplus
extern "C"
#endif
d5947 4
a5950 3
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
char (*f) ();
a5951 3
int
main ()
{
d5958 1
a5958 1
f = $ac_func;
d5961 1
a5961 29
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11744: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11747: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11750: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11753: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:11763: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d5963 11
d5975 9
d5988 5
a5992 5

echo "$as_me:11775: checking for terminal-capability database functions" >&5
echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
if test "${cf_cv_cgetent+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d5994 3
a5996 3

cat >conftest.$ac_ext <<_ACEOF
#line 11782 "configure"
d6000 1
a6000 3
int
main ()
{
d6008 5
a6012 17

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11802: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11805: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11808: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11811: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6015 4
a6018 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_cgetent=no
d6020 1
a6020 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6024 2
a6025 3
echo "$as_me:11823: result: $cf_cv_cgetent" >&5
echo "${ECHO_T}$cf_cv_cgetent" >&6
test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
d6029 1
a6031 5
echo "$as_me:11831: checking for isascii" >&5
echo $ECHO_N "checking for isascii... $ECHO_C" >&6
if test "${cf_cv_have_isascii+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d6033 8
a6040 2
	cat >conftest.$ac_ext <<_ACEOF
#line 11838 "configure"
d6043 1
a6043 3
int
main ()
{
d6045 4
a6048 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:11850: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11853: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:11856: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11859: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6051 4
a6054 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_have_isascii=no
d6056 1
a6056 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6059 2
a6060 3
echo "$as_me:11870: result: $cf_cv_have_isascii" >&5
echo "${ECHO_T}$cf_cv_have_isascii" >&6
test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
d6064 2
d6067 4
a6070 4
echo "$as_me:11877: checking whether sigaction needs _POSIX_SOURCE" >&5
echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line 11880 "configure"
d6075 1
a6075 3
int
main ()
{
d6077 4
a6080 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11894: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11897: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11900: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11903: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6083 6
a6088 5
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line 11911 "configure"
d6094 1
a6094 3
int
main ()
{
d6096 4
a6099 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11926: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11929: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11932: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11935: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6101 1
a6101 1
	 cat >>confdefs.h <<\EOF
d6106 4
a6109 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
sigact_bad=unknown
d6111 1
a6111 60
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:11950: result: $sigact_bad" >&5
echo "${ECHO_T}$sigact_bad" >&6
fi

echo "$as_me:11954: checking if nanosleep really works" >&5
echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
if test "${cf_cv_func_nanosleep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

if test "$cross_compiling" = yes; then
  cf_cv_func_nanosleep=unknown
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11964 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <errno.h>
#include <time.h>

#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif

int main() {
	struct timespec ts1, ts2;
	int code;
	ts1.tv_sec  = 0;
	ts1.tv_nsec = 750000000;
	ts2.tv_sec  = 0;
	ts2.tv_nsec = 0;
	errno = 0;
	code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
	${cf_cv_main_return:-return}(code != 0);
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11989: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11992: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11994: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11997: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_func_nanosleep=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_func_nanosleep=no
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d6113 2
a6115 2
echo "$as_me:12009: result: $cf_cv_func_nanosleep" >&5
echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
a6116 3
test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
#define HAVE_NANOSLEEP 1
EOF
d6118 1
a6118 1
for ac_header in \
d6124 5
a6128 24
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:12023: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12029 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:12033: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:12039: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d6130 11
a6140 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
d6142 2
a6143 1
  echo "$as_me: failed program was:" >&5
d6145 2
a6146 1
  eval "$as_ac_Header=no"
d6148 1
a6148 1
rm -f conftest.err conftest.$ac_ext
d6150 5
a6154 5
echo "$as_me:12058: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d6156 3
a6158 1

d6163 1
a6163 2

for ac_header in sys/termio.h
d6165 5
a6169 24
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:12073: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 12079 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:12083: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:12089: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d6171 11
a6181 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
d6183 2
a6184 1
  echo "$as_me: failed program was:" >&5
d6186 2
a6187 1
  eval "$as_ac_Header=no"
d6189 1
a6189 1
rm -f conftest.err conftest.$ac_ext
d6191 5
a6195 5
echo "$as_me:12108: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d6197 3
a6199 1

d6211 4
a6214 4
	echo "$as_me:12126: checking whether termios.h needs _POSIX_SOURCE" >&5
echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
	cat >conftest.$ac_ext <<_ACEOF
#line 12129 "configure"
d6217 1
a6217 3
int
main ()
{
d6219 4
a6222 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12141: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12144: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12147: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12150: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6225 6
a6230 5
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

		cat >conftest.$ac_ext <<_ACEOF
#line 12158 "configure"
d6235 1
a6235 3
int
main ()
{
d6237 4
a6240 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12172: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12175: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12178: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12181: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6243 4
a6246 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
termios_bad=yes cat >>confdefs.h <<\EOF
d6251 2
a6252 2
rm -f conftest.$ac_objext conftest.$ac_ext

d6254 2
a6255 3
rm -f conftest.$ac_objext conftest.$ac_ext
	echo "$as_me:12196: result: $termios_bad" >&5
echo "${ECHO_T}$termios_bad" >&6
d6259 6
a6264 4
echo "$as_me:12201: checking for tcgetattr" >&5
echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
if test "${cf_cv_have_tcgetattr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6266 3
a6268 3

cat >conftest.$ac_ext <<_ACEOF
#line 12208 "configure"
d6285 1
a6285 3
int
main ()
{
d6289 4
a6292 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12236: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12239: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12242: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12245: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6295 10
a6304 9
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_have_tcgetattr=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12255: result: $cf_cv_have_tcgetattr" >&5
echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
d6308 6
a6313 4
echo "$as_me:12261: checking for vsscanf function or workaround" >&5
echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
if test "${cf_cv_func_vsscanf+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6315 3
a6317 3

cat >conftest.$ac_ext <<_ACEOF
#line 12268 "configure"
d6322 1
a6322 3
int
main ()
{
d6326 4
a6329 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12284: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12287: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12290: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12293: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6332 6
a6337 5
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line 12301 "configure"
d6342 1
a6342 3
int
main ()
{
d6352 4
a6355 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12323: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12326: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12329: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12332: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6358 6
a6363 5
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line 12340 "configure"
d6368 1
a6368 3
int
main ()
{
d6378 4
a6381 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12362: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12365: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12368: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12371: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6384 4
a6387 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

d6390 1
a6390 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6392 1
a6392 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6394 1
a6394 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6396 2
a6397 2
echo "$as_me:12386: result: $cf_cv_func_vsscanf" >&5
echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
d6400 1
a6400 1
vsscanf) cat >>confdefs.h <<\EOF
d6404 1
a6404 1
vfscanf) cat >>confdefs.h <<\EOF
d6408 1
a6408 1
_doscan) cat >>confdefs.h <<\EOF
d6414 6
a6419 4
echo "$as_me:12404: checking for working mkstemp" >&5
echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
if test "${cf_cv_func_mkstemp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6421 1
a6421 1

d6424 4
a6427 4
  echo "$as_me:12412: checking for mkstemp" >&5
echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6429 2
a6430 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12418 "configure"
d6433 1
a6433 1
    which can conflict with char mkstemp (); below.  */
a6435 3
#ifdef __cplusplus
extern "C"
#endif
d6437 4
a6440 3
   builtin and then its argument prototype would still apply.  */
char mkstemp ();
char (*f) ();
a6441 3
int
main ()
{
d6448 1
a6448 1
f = mkstemp;
d6451 12
a6462 21
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12449: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12452: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12455: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12458: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_mkstemp=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_mkstemp=no
d6464 6
a6469 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d6471 1
a6471 2
echo "$as_me:12468: result: $ac_cv_func_mkstemp" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
d6474 2
a6475 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12473 "configure"
d6508 1
a6508 1
	${cf_cv_main_return:-return}(result);
d6511 3
a6513 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12511: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12514: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12516: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12519: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6517 4
a6520 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_func_mkstemp=no
d6523 1
a6523 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d6526 1
d6528 2
a6529 2
echo "$as_me:12534: result: $cf_cv_func_mkstemp" >&5
echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
d6531 1
a6531 1
	cat >>confdefs.h <<\EOF
d6537 1
a6538 1

d6545 1
d6547 1
a6547 2
	{ echo "$as_me:12552: WARNING: cross compiling: assume setvbuf params not reversed" >&5
echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
d6549 4
a6552 4
	echo "$as_me:12555: checking whether setvbuf arguments are reversed" >&5
echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6555 1
a6555 3
  { { echo "$as_me:12561: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
   { (exit 1); exit 1; }; }
d6557 2
a6558 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12566 "configure"
d6562 1
a6562 3
int
main ()
{
d6567 1
a6567 1
    $ac_main_return(1);
d6569 1
a6569 1
  $ac_main_return(0);			/* Non-reversed systems segv here.  */
d6571 3
a6573 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12583: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12586: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12588: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12591: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6576 4
a6579 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_setvbuf_reversed=no
d6581 1
a6581 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d6583 1
d6586 2
a6587 2
echo "$as_me:12604: result: $ac_cv_func_setvbuf_reversed" >&5
echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
d6589 1
a6589 2

cat >>confdefs.h <<\EOF
d6596 4
a6599 4
echo "$as_me:12615: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6601 2
a6602 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12621 "configure"
d6607 1
a6607 1
# undef signal
d6615 1
a6615 3
int
main ()
{
d6617 4
a6620 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12643: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12646: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12649: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12652: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6623 4
a6626 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_signal=int
d6628 1
a6628 1
rm -f conftest.$ac_objext conftest.$ac_ext
a6629 2
echo "$as_me:12662: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6
d6631 2
a6632 1
cat >>confdefs.h <<EOF
a6635 5
echo "$as_me:12669: checking for type sigaction_t" >&5
echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
if test "${cf_cv_type_sigaction+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d6637 9
a6645 2
	cat >conftest.$ac_ext <<_ACEOF
#line 12676 "configure"
d6649 1
a6649 3
int
main ()
{
d6651 4
a6654 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12689: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12692: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12695: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12698: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6657 4
a6660 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_type_sigaction=no
d6662 1
a6662 1
rm -f conftest.$ac_objext conftest.$ac_ext
d6665 2
a6666 3
echo "$as_me:12709: result: $cf_cv_type_sigaction" >&5
echo "${ECHO_T}$cf_cv_type_sigaction" >&6
test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
d6670 7
a6676 4
echo "$as_me:12715: checking declaration of size-change" >&5
echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
if test "${cf_cv_sizechange+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6678 1
a6678 1

d6687 2
a6688 2
    cat >conftest.$ac_ext <<_ACEOF
#line 12730 "configure"
d6709 1
a6709 3
int
main ()
{
d6724 5
a6728 17

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:12774: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:12777: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:12780: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12783: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6731 4
a6734 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_sizechange=no
d6736 1
a6736 1
rm -f conftest.$ac_objext conftest.$ac_ext
d6747 2
a6748 2
echo "$as_me:12802: result: $cf_cv_sizechange" >&5
echo "${ECHO_T}$cf_cv_sizechange" >&6
d6750 1
a6750 1
	cat >>confdefs.h <<\EOF
d6756 1
a6756 1
		cat >>confdefs.h <<EOF
d6764 5
a6768 4
echo "$as_me:12819: checking for memmove" >&5
echo $ECHO_N "checking for memmove... $ECHO_C" >&6
if test "${ac_cv_func_memmove+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6770 2
a6771 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12825 "configure"
d6774 1
a6774 1
    which can conflict with char memmove (); below.  */
a6776 3
#ifdef __cplusplus
extern "C"
#endif
d6778 4
a6781 3
   builtin and then its argument prototype would still apply.  */
char memmove ();
char (*f) ();
a6782 3
int
main ()
{
d6789 16
a6804 2
f = memmove;
#endif
d6806 2
a6807 27
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12856: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12859: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12862: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12865: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_memmove=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_memmove=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12875: result: $ac_cv_func_memmove" >&5
echo "${ECHO_T}$ac_cv_func_memmove" >&6
if test $ac_cv_func_memmove = yes; then
d6810 1
d6812 4
a6815 4
echo "$as_me:12881: checking for bcopy" >&5
echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
if test "${ac_cv_func_bcopy+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6817 2
a6818 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12887 "configure"
d6821 1
a6821 1
    which can conflict with char bcopy (); below.  */
a6823 3
#ifdef __cplusplus
extern "C"
#endif
d6825 4
a6828 3
   builtin and then its argument prototype would still apply.  */
char bcopy ();
char (*f) ();
a6829 3
int
main ()
{
d6836 1
a6836 1
f = bcopy;
d6839 5
a6843 32
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:12918: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12921: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:12924: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12927: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_bcopy=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_bcopy=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:12937: result: $ac_cv_func_bcopy" >&5
echo "${ECHO_T}$ac_cv_func_bcopy" >&6
if test $ac_cv_func_bcopy = yes; then

	echo "$as_me:12941: checking if bcopy does overlapping moves" >&5
echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
if test "${cf_cv_good_bcopy+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6845 7
d6853 9
d6865 2
a6866 2
  cat >conftest.$ac_ext <<_ACEOF
#line 12951 "configure"
d6875 1
a6875 1
	${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
d6877 4
a6880 13

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:12965: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:12968: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:12970: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:12973: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6883 4
a6886 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_good_bcopy=no
d6888 1
a6888 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d6891 1
a6892 2
echo "$as_me:12986: result: $cf_cv_good_bcopy" >&5
echo "${ECHO_T}$cf_cv_good_bcopy" >&6
d6894 2
d6897 2
a6898 1
  cf_cv_good_bcopy=no
d6902 1
a6902 1
		cat >>confdefs.h <<\EOF
d6907 1
a6907 1
		cat >>confdefs.h <<\EOF
d6915 5
a6919 4
echo "$as_me:13007: checking if poll really works" >&5
echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
if test "${cf_cv_working_poll+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6921 1
a6921 1

d6925 2
a6926 2
  cat >conftest.$ac_ext <<_ACEOF
#line 13017 "configure"
d6943 1
a6943 1
	${cf_cv_main_return:-return}(ret != 0);
d6945 3
a6947 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:13038: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13041: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:13043: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13046: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d6950 4
a6953 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_working_poll=no
d6955 1
a6955 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d6957 1
d6959 3
a6961 3
echo "$as_me:13058: result: $cf_cv_working_poll" >&5
echo "${ECHO_T}$cf_cv_working_poll" >&6
test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
a6964 102
if test "$with_hashed_db" != no ; then
	cat >>confdefs.h <<\EOF
#define USE_HASHED_DB 1
EOF

echo "$as_me:13069: checking for db.h" >&5
echo $ECHO_N "checking for db.h... $ECHO_C" >&6
if test "${ac_cv_header_db_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13075 "configure"
#include "confdefs.h"
#include <db.h>
_ACEOF
if { (eval echo "$as_me:13079: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:13085: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_db_h=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_db_h=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:13104: result: $ac_cv_header_db_h" >&5
echo "${ECHO_T}$ac_cv_header_db_h" >&6
if test $ac_cv_header_db_h = yes; then

echo "$as_me:13108: checking for version of db" >&5
echo $ECHO_N "checking for version of db... $ECHO_C" >&6
if test "${cf_cv_hashed_db_version+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_hashed_db_version=unknown

for cf_db_version in 1 2 3 4
do

echo "(line 13119) testing checking for db version $cf_db_version ..." 1>&5

	cat >conftest.$ac_ext <<_ACEOF
#line 13122 "configure"
#include "confdefs.h"

$ac_includes_default
#include <db.h>

#ifdef DB_VERSION_MAJOR
	/* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
#if $cf_db_version == DB_VERSION_MAJOR
	/* ok */
#else
	make an error
#endif
#else
#if $cf_db_version == 1
	/* ok: assuming this is DB 1.8.5 */
#else
	make an error
#endif
#endif

int
main ()
{
DBT *foo = 0
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13152: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13155: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13158: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13161: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

	cf_cv_hashed_db_version=$cf_db_version
	break
a6965 6
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
d6967 3
a6970 2
echo "$as_me:13175: result: $cf_cv_hashed_db_version" >&5
echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
a6971 5
if test "$cf_cv_hashed_db_version" = unknown ; then
	{ { echo "$as_me:13179: error: Cannot determine version of db" >&5
echo "$as_me: error: Cannot determine version of db" >&2;}
   { (exit 1); exit 1; }; }
else
d6973 5
a6977 4
echo "$as_me:13184: checking for db libraries" >&5
echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
if test "${cf_cv_hashed_db_libs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d6979 2
a6980 13

cf_cv_hashed_db_libs=unknown
for cf_db_libs in db$cf_cv_hashed_db_version db ''
do
	cf_save_libs="$LIBS"
	if test -n "$cf_db_libs"; then
		LIBS="-l$cf_db_libs $LIBS"
	fi

echo "(line 13198) testing checking for library "$cf_db_libs" ..." 1>&5

	cat >conftest.$ac_ext <<_ACEOF
#line 13201 "configure"
d6982 8
a6989 73

$ac_includes_default
#include <db.h>

int
main ()
{

	char *path = "/tmp/foo";
#ifdef DB_VERSION_MAJOR
#if DB_VERSION_MAJOR >= 4
	DB *result = 0;
	db_create(&result, NULL, 0);
	result->open(result,
		NULL,
		path,
		path,
		DB_HASH,
		DB_CREATE,
		0644);
#elif DB_VERSION_MAJOR >= 3
	DB *result = 0;
	db_create(&result, NULL, 0);
	result->open(result,
		path,
		path,
		DB_HASH,
		DB_CREATE,
		0644);
#elif DB_VERSION_MAJOR >= 2
	DB *result = 0;
	db_open(path,
		DB_HASH,
		DB_CREATE,
		0644,
		(DB_ENV *) 0,
		(DB_INFO *) 0,
		&result);
#endif /* DB_VERSION_MAJOR */
#else
	DB *result = dbopen(path,
		     2,
		     0644,
		     DB_HASH,
		     0);
#endif
	${cf_cv_main_return:-return}(result != 0)

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13256: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13259: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13262: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13265: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

	if test -n "$cf_db_libs" ; then
		cf_cv_hashed_db_libs=$cf_db_libs
	else
		cf_cv_hashed_db_libs=default
	fi
	LIBS="$cf_save_libs"
	break

d6991 5
a6995 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d6997 1
a6997 30
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
	LIBS="$cf_save_libs"
done

fi
echo "$as_me:13285: result: $cf_cv_hashed_db_libs" >&5
echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6

	if test "$cf_cv_hashed_db_libs" = unknown ; then
		{ { echo "$as_me:13289: error: Cannot determine library for db" >&5
echo "$as_me: error: Cannot determine library for db" >&2;}
   { (exit 1); exit 1; }; }
	elif test "$cf_cv_hashed_db_libs" != default ; then
		LIBS="-l$cf_cv_hashed_db_libs $LIBS"
	fi
fi

else

	{ { echo "$as_me:13299: error: Cannot find db.h" >&5
echo "$as_me: error: Cannot find db.h" >&2;}
   { (exit 1); exit 1; }; }

fi

fi

if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
	CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
	CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
d6999 2
a7000 66

# Just in case, check if the C compiler has a bool type.

echo "$as_me:13314: checking if we should include stdbool.h" >&5
echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6

if test "${cf_cv_header_stdbool_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 13322 "configure"
#include "confdefs.h"

int
main ()
{
bool foo = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13334: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13337: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13340: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13343: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_header_stdbool_h=0
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 13350 "configure"
#include "confdefs.h"

#ifndef __BEOS__
#include <stdbool.h>
#endif

int
main ()
{
bool foo = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13366: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13369: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13372: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13375: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7003 1
a7003 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a7005 14
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

if test "$cf_cv_header_stdbool_h" = 1
then	echo "$as_me:13389: result: yes" >&5
echo "${ECHO_T}yes" >&6
else	echo "$as_me:13391: result: no" >&5
echo "${ECHO_T}no" >&6
fi

echo "$as_me:13395: checking for builtin bool type" >&5
echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
d7007 8
a7014 6
if test "${cf_cv_cc_bool_type+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 13403 "configure"
d7020 1
a7020 3
int
main ()
{
d7022 4
a7025 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13418: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13421: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13424: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13427: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7028 4
a7031 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_cc_bool_type=0
d7033 2
a7034 2
rm -f conftest.$ac_objext conftest.$ac_ext

d7038 2
a7039 4
then	echo "$as_me:13440: result: yes" >&5
echo "${ECHO_T}yes" >&6
else	echo "$as_me:13442: result: no" >&5
echo "${ECHO_T}no" >&6
a7041 1
# Check for C++ compiler characteristics (and ensure that it's there!)
d7043 2
a7044 1
	ac_ext=cc
d7046 3
a7048 4
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return
d7050 1
d7060 4
a7063 4
echo "$as_me:13464: checking for library $cf_stdcpp_libname" >&5
echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
if test "${cf_cv_libstdcpp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7065 1
a7065 1

d7068 2
a7069 2
cat >conftest.$ac_ext <<_ACEOF
#line 13473 "configure"
d7073 1
a7073 3
int
main ()
{
d7078 4
a7081 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13489: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13492: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13495: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13498: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7084 4
a7087 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_libstdcpp=no
d7089 1
a7089 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7093 2
a7094 2
echo "$as_me:13510: result: $cf_cv_libstdcpp" >&5
echo "${ECHO_T}$cf_cv_libstdcpp" >&6
a7097 41
	echo "$as_me:13515: checking whether $CXX understands -c and -o together" >&5
echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
if test "${cf_cv_prog_CXX_c_o+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cat > conftest.$ac_ext <<CF_EOF
#include <stdio.h>
int main()
{
	${cf_cv_main_return:-return}(0);
}
CF_EOF
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
if { (eval echo "$as_me:13531: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13534: \$? = $ac_status" >&5
  (exit $ac_status); } &&
  test -f conftest2.$ac_objext && { (eval echo "$as_me:13536: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13539: \$? = $ac_status" >&5
  (exit $ac_status); };
then
  eval cf_cv_prog_CXX_c_o=yes
else
  eval cf_cv_prog_CXX_c_o=no
fi
rm -f conftest*

fi
if test $cf_cv_prog_CXX_c_o = yes; then
  echo "$as_me:13550: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:13553: result: no" >&5
echo "${ECHO_T}no" >&6
fi
d7104 1
a7104 1

d7114 3
a7116 3
if test "$GXX" = yes; then
	echo "$as_me:13573: checking for lib$cf_gpp_libname" >&5
echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
d7119 2
a7120 2
	cat >conftest.$ac_ext <<_ACEOF
#line 13578 "configure"
d7124 2
a7125 4

int
main ()
{
d7127 4
a7130 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13592: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13595: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13598: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13601: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7134 1
a7134 1
	    cat >>confdefs.h <<\EOF
d7139 1
a7139 1
	    cat >>confdefs.h <<\EOF
d7145 5
a7149 4
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 13620 "configure"
d7153 2
a7154 4

int
main ()
{
d7156 4
a7159 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13634: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13637: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13640: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13643: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7162 1
a7162 1
	 cat >>confdefs.h <<\EOF
d7167 4
a7170 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cxx_library=no
d7172 1
a7172 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7174 1
a7174 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d7176 1
a7176 2
	echo "$as_me:13660: result: $cf_cxx_library" >&5
echo "${ECHO_T}$cf_cxx_library" >&6
d7185 2
a7186 8
	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return
echo "$as_me:13676: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
d7188 2
a7189 2
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7191 9
a7199 12
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 13693 "configure"
d7201 6
a7206 20
#include <assert.h>
                     Syntax error
_ACEOF
if { (eval echo "$as_me:13698: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:13704: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
d7209 2
a7210 1
  echo "$as_me: failed program was:" >&5
d7212 2
a7213 2
  # Broken: fails on valid input.
continue
d7215 8
a7222 24
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 13727 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:13731: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:13737: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
a7223 9
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
d7225 2
a7226 1
rm -f conftest.err conftest.$ac_ext
d7228 7
a7234 12
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
d7236 2
a7237 13
  ac_cv_prog_CXXCPP=$CXXCPP
fi
echo "$as_me:13774: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line 13784 "configure"
d7239 8
a7246 21
#include <assert.h>
                     Syntax error
_ACEOF
if { (eval echo "$as_me:13789: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:13795: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
d7248 2
a7249 1
  echo "$as_me: failed program was:" >&5
d7251 2
a7252 2
  # Broken: fails on valid input.
continue
d7254 1
a7254 24
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line 13818 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:13822: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:13828: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
d7256 7
a7262 3
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
d7264 1
a7264 5
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  # Passes both tests.
ac_preproc_ok=:
break
a7265 2
rm -f conftest.err conftest.$ac_ext

a7266 9
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:13856: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
   { (exit 1); exit 1; }; }
fi
a7267 6
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return
d7269 6
a7274 26
for ac_header in typeinfo
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:13871: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 13877 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:13881: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:13887: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
d7276 11
a7286 4
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
d7288 2
a7289 1
  echo "$as_me: failed program was:" >&5
d7291 2
a7292 1
  eval "$as_ac_Header=no"
d7294 1
a7294 1
rm -f conftest.err conftest.$ac_ext
d7296 2
a7297 73
echo "$as_me:13906: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF

fi
done

echo "$as_me:13916: checking if we should include stdbool.h" >&5
echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6

if test "${cf_cv_header_stdbool_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 13924 "configure"
#include "confdefs.h"

int
main ()
{
bool foo = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13936: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13939: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13942: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13945: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_header_stdbool_h=0
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line 13952 "configure"
#include "confdefs.h"

#ifndef __BEOS__
#include <stdbool.h>
#endif

int
main ()
{
bool foo = false
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13968: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13971: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13974: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13977: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7300 1
a7300 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
a7302 14
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

if test "$cf_cv_header_stdbool_h" = 1
then	echo "$as_me:13991: result: yes" >&5
echo "${ECHO_T}yes" >&6
else	echo "$as_me:13993: result: no" >&5
echo "${ECHO_T}no" >&6
fi

echo "$as_me:13997: checking for builtin bool type" >&5
echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
d7304 8
a7311 6
if test "${cf_cv_builtin_bool+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 14005 "configure"
d7317 1
a7317 3
int
main ()
{
d7319 4
a7322 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14020: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14023: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14026: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14029: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7325 4
a7328 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_builtin_bool=0
d7330 2
a7331 2
rm -f conftest.$ac_objext conftest.$ac_ext

d7335 2
a7336 4
then	echo "$as_me:14042: result: yes" >&5
echo "${ECHO_T}yes" >&6
else	echo "$as_me:14044: result: no" >&5
echo "${ECHO_T}no" >&6
d7339 5
a7343 4
echo "$as_me:14048: checking for size of bool" >&5
echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
if test "${cf_cv_type_of_bool+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7345 1
a7345 1

d7350 2
a7351 2
  cat >conftest.$ac_ext <<_ACEOF
#line 14059 "configure"
d7353 3
d7391 1
a7391 1
	${cf_cv_main_return:-return}(0);
d7393 4
a7396 13

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:14101: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14104: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:14106: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14109: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7402 4
a7405 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_type_of_bool=unknown
d7407 1
a7407 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d7410 1
d7414 1
a7414 2
echo "$as_me:14127: result: $cf_cv_type_of_bool" >&5
echo "${ECHO_T}$cf_cv_type_of_bool" >&6
d7419 1
a7419 2
	{ echo "$as_me:14133: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
d7423 3
a7425 2
echo "$as_me:14138: checking for special defines needed for etip.h" >&5
echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
d7432 1
a7432 1
	CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
d7435 2
a7436 2
cat >conftest.$ac_ext <<_ACEOF
#line 14150 "configure"
d7441 1
a7441 3
int
main ()
{
d7443 6
a7448 18
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14164: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14167: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14170: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14173: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

	test -n "$cf_math" && cat >>confdefs.h <<EOF
d7452 1
a7452 1
	test -n "$cf_excp" && cat >>confdefs.h <<EOF
d7460 2
a7461 2
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
d7463 1
a7463 1
rm -f conftest.$ac_objext conftest.$ac_ext
d7466 1
a7466 2
echo "$as_me:14194: result: $cf_result" >&5
echo "${ECHO_T}$cf_result" >&6
d7469 1
d7471 9
a7479 7
echo "$as_me:14199: checking if $CXX accepts parameter initialization" >&5
echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
if test "${cf_cv_cpp_param_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	ac_ext=cc
d7481 3
a7483 4
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return
d7488 2
a7489 2
  cat >conftest.$ac_ext <<_ACEOF
#line 14216 "configure"
d7491 3
d7509 3
a7511 12
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:14235: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14238: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:14240: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14243: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7514 4
a7517 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_cpp_param_init=no
d7519 1
a7519 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d7521 3
a7523 1
	ac_ext=cc
d7525 4
a7528 4
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return
d7531 2
a7532 2
echo "$as_me:14262: result: $cf_cv_cpp_param_init" >&5
echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
d7534 1
a7534 1
test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
d7538 2
a7541 5
echo "$as_me:14271: checking if $CXX accepts static_cast" >&5
echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
if test "${cf_cv_cpp_static_cast+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
d7543 2
a7544 1
	ac_ext=cc
d7546 14
a7559 7
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

	cat >conftest.$ac_ext <<_ACEOF
#line 14285 "configure"
d7561 1
a7561 76

class NCursesPanel
{
public:
  NCursesPanel(int nlines,
	       int ncols,
	       int begin_y = 0,
	       int begin_x = 0)
  {
  }

  ~NCursesPanel();
};

template<class T> class NCursesUserPanel : public NCursesPanel
{
public:
  NCursesUserPanel (int nlines,
		    int ncols,
		    int begin_y = 0,
		    int begin_x = 0,
		    const T* p_UserData = static_cast<T*>(0))
    : NCursesPanel (nlines, ncols, begin_y, begin_x)
  {
  };
  NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
  {
  };

  virtual ~NCursesUserPanel() {};
};

int
main ()
{

	const char* p_UserData = static_cast<char*>(0)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:14329: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:14332: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:14335: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14338: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_cpp_static_cast=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_cpp_static_cast=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

	ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

fi
echo "$as_me:14356: result: $cf_cv_cpp_static_cast" >&5
echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6

fi

test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
#define CPP_HAS_STATIC_CAST 1
d7563 6
a7568 41

if test -n "$CXX"; then

ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return

for ac_header in strstream.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:14377: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 14383 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:14387: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:14393: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  eval "$as_ac_Header=yes"
d7570 2
a7571 1
  echo "$as_me: failed program was:" >&5
d7573 2
a7574 1
  eval "$as_ac_Header=no"
d7576 1
a7576 1
rm -f conftest.err conftest.$ac_ext
d7578 5
a7582 5
echo "$as_me:14412: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d7584 3
a7586 1

d7590 5
a7594 4
echo "$as_me:14422: checking if $CXX supports vscan function" >&5
echo $ECHO_N "checking if $CXX supports vscan function... $ECHO_C" >&6
if test "${cf_cv_cpp_vscan_func+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7596 1
a7596 1

d7604 2
a7605 2
	cat >conftest.$ac_ext <<_ACEOF
#line 14436 "configure"
d7641 1
a7641 3
int
main ()
{
d7643 4
a7646 16
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:14481: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14484: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:14487: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14490: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7649 4
a7652 3
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_cpp_vscan_func=no
d7654 1
a7654 1
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a7658 2
echo "$as_me:14503: result: $cf_cv_cpp_vscan_func" >&5
echo "${ECHO_T}$cf_cv_cpp_vscan_func" >&6
d7660 4
a7663 1
ac_ext=cc
d7665 3
a7667 4
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_main_return=return
d7673 1
a7673 1
	cat >>confdefs.h <<\EOF
d7677 1
a7677 1
	cat >>confdefs.h <<\EOF
d7683 1
a7683 1
	cat >>confdefs.h <<\EOF
d7687 1
a7687 1
	cat >>confdefs.h <<\EOF
d7693 1
a7693 1
	cat >>confdefs.h <<\EOF
d7697 1
a7697 1
	cat >>confdefs.h <<\EOF
d7704 1
d7724 3
a7726 1

d7741 1
a7741 2
		cf_cv_type_of_bool=$NCURSES_BOOL
		cf_cv_header_stdbool_h=0
d7744 5
a7748 5

echo "$as_me:14587: checking for size of bool" >&5
echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
if test "${cf_cv_type_of_bool+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7750 1
a7750 1

d7755 2
a7756 2
  cat >conftest.$ac_ext <<_ACEOF
#line 14598 "configure"
d7758 3
d7796 1
a7796 1
	${cf_cv_main_return:-return}(0);
d7798 4
a7801 13

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:14640: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:14643: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:14645: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:14648: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
d7807 4
a7810 4
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_type_of_bool=unknown
d7812 1
a7812 1
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d7815 1
d7819 1
a7819 2
echo "$as_me:14666: result: $cf_cv_type_of_bool" >&5
echo "${ECHO_T}$cf_cv_type_of_bool" >&6
d7824 1
a7824 2
	{ echo "$as_me:14672: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
d7829 2
a7830 2
			echo "$as_me:14678: checking for fallback type of bool" >&5
echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
d7835 1
a7835 2
			echo "$as_me:14684: result: $cf_cv_type_of_bool" >&5
echo "${ECHO_T}$cf_cv_type_of_bool" >&6
a7839 18
# If the C compiler did not declare bool, and we did not determine that the C++
# compiler does not declare bool, turn on an ifdef in curses.h that makes the
# ncurses library use the same type as C++ bool.  Note that this allows one to
# specify the type of bool in a configure-script option and postpone
# integration with the C++ compiler provided that the types are compatible.
USE_CXX_BOOL=1
if test $cf_cv_cc_bool_type = 1
then
	# oops: C has a bool.  Unlikely, but C++ could differ.
	USE_CXX_BOOL=0
elif test $cf_cv_builtin_bool = 0
then
	# C++ has no bool
	USE_CXX_BOOL=0
else
	# this is the normal case
	USE_CXX_BOOL='defined(__cplusplus)'
fi
d7841 2
a7842 1
if test -f "${srcdir}/Ada95/Makefile.in" ; then
d7847 4
a7850 4
echo "$as_me:14714: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_gnat_exists+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7855 10
a7864 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_gnat_exists="yes"
echo "$as_me:14729: found $ac_dir/$ac_word" >&5
break
done

d7868 1
a7868 1
gnat_exists=$ac_cv_prog_gnat_exists
d7870 1
a7870 2
  echo "$as_me:14738: result: $gnat_exists" >&5
echo "${ECHO_T}$gnat_exists" >&6
d7872 1
a7872 2
  echo "$as_me:14741: result: no" >&5
echo "${ECHO_T}no" >&6
d7878 4
a7881 9

echo "$as_me:14749: checking for gnat version" >&5
echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
  sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
echo "$as_me:14753: result: $cf_gnat_version" >&5
echo "${ECHO_T}$cf_gnat_version" >&6

case $cf_gnat_version in
d7885 1
a7885 1
  *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
d7889 2
a7890 2
case $cf_gnat_version in
  3.[1-9]*|[4-9].*)
d7892 1
a7892 1
      cf_generic_objects="\${GENOBJS}"
d7901 4
a7904 4
echo "$as_me:14776: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_M4_exists+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
d7909 10
a7918 11
  ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
  IFS=$ac_save_IFS
  test -z "$ac_dir" && ac_dir=.
  $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_M4_exists="yes"
echo "$as_me:14791: found $ac_dir/$ac_word" >&5
break
done

d7922 1
a7922 1
M4_exists=$ac_cv_prog_M4_exists
d7924 1
a7924 2
  echo "$as_me:14800: result: $M4_exists" >&5
echo "${ECHO_T}$M4_exists" >&6
d7926 1
a7926 2
  echo "$as_me:14803: result: no" >&5
echo "${ECHO_T}no" >&6
d7934 3
a7936 3
      echo "$as_me:14812: checking if GNAT works" >&5
echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6

d7951 1
a7951 1
if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
d7962 1
a7962 2
      echo "$as_me:14840: result: $cf_cv_prog_gnat_correct" >&5
echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
d7968 1
a7968 37
   echo "$as_me:14847: checking if GNAT pragma Unreferenced works" >&5
echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6

rm -f conftest*
cat >>conftest.ads <<CF_EOF
procedure conftest;
CF_EOF
cat >>conftest.adb <<CF_EOF
with Text_IO;
with GNAT.OS_Lib;
procedure conftest is
   test : Integer;
   pragma Unreferenced (test);
begin
   test := 1;
   Text_IO.Put ("Hello World");
   Text_IO.New_Line;
   GNAT.OS_Lib.OS_Exit (0);
end conftest;
CF_EOF
if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
      cf_cv_pragma_unreferenced=yes
else
   cf_cv_pragma_unreferenced=no
fi
rm -f conftest*

   echo "$as_me:14874: result: $cf_cv_pragma_unreferenced" >&5
echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6

   # if the pragma is supported, use it (needed in the Trace code).
   if test $cf_cv_pragma_unreferenced = yes ; then
      PRAGMA_UNREF=TRUE
   else
      PRAGMA_UNREF=FALSE
   fi

d7975 2
a7976 1
fi;
d7980 8
d7991 1
a7991 1

a7993 5
fi;
if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
d8007 1
a8007 1
    withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
d8011 2
a8012 2
.no|.NONE/*)
  withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
d8015 1
a8015 3
  { { echo "$as_me:14926: error: expected a pathname, not \"$withval\"" >&5
echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
   { (exit 1); exit 1; }; }
d8019 3
a8021 1
ADA_INCLUDE="$withval"
d8023 1
d8027 1
a8027 1

a8029 5
fi;
if test "x$prefix" != xNONE; then
  cf_path_syntax="$prefix"
else
  cf_path_syntax="$ac_default_prefix"
d8043 1
a8043 1
    withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
d8047 2
a8048 2
.no|.NONE/*)
  withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
d8051 1
a8051 3
  { { echo "$as_me:14966: error: expected a pathname, not \"$withval\"" >&5
echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
   { (exit 1); exit 1; }; }
d8055 3
a8057 1
ADA_OBJECTS="$withval"
d8061 15
d8079 5
a8083 7
### none, base, ext_funcs, ext_tinfo, termlib, widechar (see CF_LIB_RULES).
echo "$as_me:14980: checking for library subsets" >&5
echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
if test "$with_termlib" != no ; then
	LIB_SUBSETS="termlib"
	test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
	LIB_SUBSETS="${LIB_SUBSETS} "
a8085 1
	test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}ext_tinfo+"
d8088 1
a8088 1
test "$with_widec"     = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
d8090 11
a8100 2
echo "$as_me:14993: result: $LIB_SUBSETS" >&5
echo "${ECHO_T}$LIB_SUBSETS" >&6
d8104 1
a8104 1
CPPFLAGS="-I. -I../include $CPPFLAGS"
d8106 1
a8106 1
	CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
d8109 1
a8109 1
	CPPFLAGS="$CPPFLAGS -I\${includedir}"
d8113 1
a8113 1
			CPPFLAGS="$CPPFLAGS -I\${includedir}"
d8116 1
a8116 1
		CPPFLAGS="$CPPFLAGS -I\${includedir}"
d8120 3
a8122 1
ACPPFLAGS="-I. -I../../include $ACPPFLAGS"
d8124 1
a8124 1
	ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
d8127 1
a8127 1
	ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
d8131 1
a8131 1
			ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
d8134 1
a8134 1
		ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
d8138 2
d8141 2
a8142 2
echo "$as_me:15031: checking default library suffix" >&5
echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
d8152 1
a8152 2
echo "$as_me:15042: result: $DFT_ARG_SUFFIX" >&5
echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
d8154 2
a8155 2
echo "$as_me:15045: checking default library-dependency suffix" >&5
echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
d8157 1
d8167 1
a8167 6
		hpux*)
			case $target in
			ia64*)	DFT_DEP_SUFFIX='.so' ;;
			*)	DFT_DEP_SUFFIX='.sl' ;;
			esac
			;;
d8179 1
a8179 2
echo "$as_me:15074: result: $DFT_DEP_SUFFIX" >&5
echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
d8181 2
a8182 2
echo "$as_me:15077: checking default object directory" >&5
echo $ECHO_N "checking default object directory... $ECHO_C" >&6
d8197 1
a8197 2
echo "$as_me:15093: result: $DFT_OBJ_SUBDIR" >&5
echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
d8200 3
a8202 4
if test "$cf_with_cxx" = yes ; then
echo "$as_me:15098: checking c++ library-dependency suffix" >&5
echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
if test "$with_libtool" != "no"; then
d8205 2
a8206 1

d8216 1
a8216 6
		hpux*)
			case $target in
			ia64*)	CXX_LIB_SUFFIX='.so' ;;
			*)	CXX_LIB_SUFFIX='.sl' ;;
			esac
			;;
d8222 1
a8222 2
echo "$as_me:15124: result: $CXX_LIB_SUFFIX" >&5
echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
a8223 1
fi
a8224 1
### Set up low-level terminfo dependencies for makefiles.
d8226 11
a8236 1
if test "$with_termlib" != no ; then
a8237 10
	if test "$with_termlib" != yes ; then
		TINFO_NAME=$with_termlib
		TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TINFO_LIB_SUFFIX="${with_termlib}"
	else
		TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
		TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
		TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
	fi
d8239 4
a8242 2
	TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
	TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
a8244 2
		TEST_ARG2="${TEST_DEP2}"
		TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
d8246 1
a8246 4
		TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
		TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
		TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
		SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
a8247 22
else
	TINFO_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
fi

# needed for Ada95
TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`

echo "$as_me:15163: checking where we will install curses.h" >&5
echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
test "$with_overwrite" = no && \
test "x$includedir" = 'x${prefix}/include' && \
	includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
echo "$as_me:15168: result: $includedir" >&5
echo "${ECHO_T}$includedir" >&6

### Resolve a conflict between normal and wide-curses by forcing applications
### that will need libutf8 to add it to their configure script.
if test "$with_overwrite" != no ; then
if test "$NCURSES_LIBUTF8" = 1 ; then
	NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
	{ echo "$as_me:15176: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
d8249 2
a8250 6
fi

### predefined stuff for the test programs
cat >>confdefs.h <<\EOF
#define HAVE_SLK_COLOR 1
EOF
d8255 3
a8257 2
echo "$as_me:15189: checking for src modules" >&5
echo $ECHO_N "checking for src modules... $ECHO_C" >&6
a8260 1
TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
a8262 1
	TEST_ARG2="${TEST_DEP2}"
a8264 1
	TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
d8267 3
d8296 1
a8296 1

d8299 1
a8299 1
			cat >>confdefs.h <<EOF
d8303 1
a8303 1
			cat >>confdefs.h <<EOF
a8307 1
			TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
a8309 1
				TEST_ARG2="${TEST_DEP2}"
a8311 1
				TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
d8316 6
a8321 2
echo "$as_me:15252: result: $cf_cv_src_modules" >&5
echo "${ECHO_T}$cf_cv_src_modules" >&6
a8322 2
TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
d8350 2
a8352 1
fi
d8357 1
a8357 1

d8383 3
a8385 1
cat >>confdefs.h <<EOF
a8388 3
cat >>confdefs.h <<EOF
#define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
EOF
d8391 1
a8391 88

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in $EXTRA_CFLAGS
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

### Define substitutions for header files to avoid name-pollution

if test "$cf_cv_have_tcgetattr" = yes ; then
	HAVE_TCGETATTR=1
else
	HAVE_TCGETATTR=0
fi

if test "$ac_cv_header_termio_h" = yes ; then
	HAVE_TERMIO_H=1
else
	HAVE_TERMIO_H=0
fi

if test "$ac_cv_header_termios_h" = yes ; then
	HAVE_TERMIOS_H=1
else
	HAVE_TERMIOS_H=0
fi
d8394 2
a8395 5
test "$use_database" = yes && SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/termcap.h include/unctrl.h $SUB_MAKEFILES Makefile"
ac_config_commands="$ac_config_commands default"
cat >confcache <<\_ACEOF
d8398 2
a8399 3
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
d8401 8
a8408 2
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
d8410 1
a8410 6
# `ac_cv_env_foo' variables (set or unset) will be overriden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

d8416 17
a8432 25
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
        "s/'/'\\\\''/g;
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if cmp -s $cache_file confcache; then :; else
d8434 2
a8435 2
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
d8442 2
d8448 3
a8450 4
# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @@srcdir@@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
d8452 1
a8452 8
  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@@srcdir@@:*/:/;
s/^\([^=]*=[ 	]*\):*/\1/;
s/:*$//;
s/^[^=]*=[ 	]*$//;
}'
d8455 2
d8459 1
d8461 5
a8465 6
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ echo "$as_me:15498: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
d8468 5
d8474 1
a8474 1
# configure, is in config.log if it exists.
d8476 2
a8477 139
debug=false
SHELL=\${CONFIG_SHELL-$SHELL}
ac_cs_invocation="\$0 \$@@"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Name of the executable.
as_me=`echo "$0" |sed 's,.*[\\/],,'`

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

as_executable_p="test -f"

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi

# NLS nuisances.
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }

# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }

exec 6>&1

_ACEOF

# Files that config.status was made for.
if test -n "$ac_config_files"; then
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_headers"; then
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_links"; then
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_commands"; then
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
fi

cat >>$CONFIG_STATUS <<\EOF

ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.

Usage: $0 [OPTIONS] [FILE]...

  -h, --help       print this help, then exit
  -V, --version    print version number, then exit
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
  --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
  --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to <bug-autoconf@@gnu.org>."
EOF

cat >>$CONFIG_STATUS <<EOF
ac_cs_version="\\
config.status
configured by $0, generated by GNU Autoconf 2.52.20061216,
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
srcdir=$srcdir
INSTALL="$INSTALL"
EOF

cat >>$CONFIG_STATUS <<\EOF
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
d8479 1
a8479 18
  case $1 in
  --*=*)
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    shift
    set dummy "$ac_option" "$ac_optarg" ${1+"$@@"}
    shift
    ;;
  -*);;
  *) # This is not an option, so the user has probably given explicit
     # arguments.
     ac_need_defaults=false;;
  esac

  case $1 in
  # Handling of the options.
EOF
cat >>$CONFIG_STATUS <<EOF
d8481 8
a8488 35
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
EOF
cat >>$CONFIG_STATUS <<\EOF
  --version | --vers* | -V )
    echo "$ac_cs_version"; exit 0 ;;
  --he | --h)
    # Conflict between --help and --header
    { { echo "$as_me:15674: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit 0 ;;
  --debug | --d* | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    shift
    CONFIG_FILES="$CONFIG_FILES $1"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    shift
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
    ac_need_defaults=false;;

  # This is an error.
  -*) { { echo "$as_me:15693: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; } ;;

  *) ac_config_targets="$ac_config_targets $1" ;;

a8489 1
  shift
d8492 2
a8493 2
exec 5>>config.log
cat >&5 << _ACEOF
d8495 162
a8656 3
## ----------------------- ##
## Running config.status.  ##
## ----------------------- ##
d8658 1
a8658 9
This file was extended by $as_me 2.52.20061216, executed with
  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  > $ac_cs_invocation
on `(hostname || uname -n) 2>/dev/null | sed 1q`

_ACEOF
d8661 1
a8661 4
cat >>$CONFIG_STATUS <<EOF
#
# INIT-COMMANDS section.
#
d8663 27
a8689 59
### Special initialization commands, used to pass information from the
### configuration-run into config.status

AWK="$AWK"
DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
DFT_LWR_MODEL="$DFT_LWR_MODEL"
ECHO_LINK="$ECHO_LINK"
LDCONFIG="$LDCONFIG"
LIB_NAME="$LIB_NAME"
LIB_SUBSETS="$LIB_SUBSETS"
LIB_SUFFIX="$LIB_SUFFIX"
LIB_TRACING="$LIB_TRACING"
MAKE_TERMINFO="$MAKE_TERMINFO"
NCURSES_MAJOR="$NCURSES_MAJOR"
NCURSES_MINOR="$NCURSES_MINOR"
NCURSES_OSPEED="$NCURSES_OSPEED"
NCURSES_PATCH="$NCURSES_PATCH"
SRC_SUBDIRS="$SRC_SUBDIRS"
TERMINFO="$TERMINFO"
TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
TINFO_NAME="$TINFO_NAME"
WITH_CURSES_H="$with_curses_h"
WITH_ECHO="$with_echo"
WITH_OVERWRITE="$with_overwrite"
cf_LIST_MODELS="$cf_list_models"
cf_cv_abi_version="$cf_cv_abi_version"
cf_cv_do_symlinks="$cf_cv_do_symlinks"
cf_cv_enable_lp64="$cf_cv_enable_lp64"
cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
cf_cv_rel_version="$cf_cv_rel_version"
cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
cf_cv_shlib_version="$cf_cv_shlib_version"
cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
cf_cv_system_name="$cf_cv_system_name"
cf_with_cxx_binding="$cf_with_cxx_binding"
host="$host"
target="$target"

EOF

cat >>$CONFIG_STATUS <<\EOF
for ac_config_target in $ac_config_targets
do
  case "$ac_config_target" in
  # Handling of arguments.
  "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
  "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
  "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
  "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
  "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
  *) { { echo "$as_me:15783: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   { (exit 1); exit 1; }; };;
  esac
d8691 2
a8692 9

# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
a8693 239

# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  trap '{ (exit 1); exit 1; }' 1 2 13 15
}

# Create a (secure) tmp directory for tmp files.
: ${TMPDIR=/tmp}
{
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=$TMPDIR/cs$$-$RANDOM
  (umask 077 && mkdir $tmp)
} ||
{
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   { (exit 1); exit 1; }
}

EOF

cat >>$CONFIG_STATUS <<EOF

#
# CONFIG_FILES section.
#

# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
  # Protect against being on the right side of a sed subst in config.status.
  sed 's/,@@/@@@@/; s/@@,/@@@@/; s/,;t t\$/@@;t t/; /@@;t t\$/s/[\\\\&,]/\\\\&/g;
   s/@@@@/,@@/; s/@@@@/@@,/; s/@@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@@SHELL@@,$SHELL,;t t
s,@@exec_prefix@@,$exec_prefix,;t t
s,@@prefix@@,$prefix,;t t
s,@@program_transform_name@@,$program_transform_name,;t t
s,@@bindir@@,$bindir,;t t
s,@@sbindir@@,$sbindir,;t t
s,@@libexecdir@@,$libexecdir,;t t
s,@@datadir@@,$datadir,;t t
s,@@sysconfdir@@,$sysconfdir,;t t
s,@@sharedstatedir@@,$sharedstatedir,;t t
s,@@localstatedir@@,$localstatedir,;t t
s,@@libdir@@,$libdir,;t t
s,@@includedir@@,$includedir,;t t
s,@@oldincludedir@@,$oldincludedir,;t t
s,@@infodir@@,$infodir,;t t
s,@@mandir@@,$mandir,;t t
s,@@PACKAGE_NAME@@,$PACKAGE_NAME,;t t
s,@@PACKAGE_TARNAME@@,$PACKAGE_TARNAME,;t t
s,@@PACKAGE_VERSION@@,$PACKAGE_VERSION,;t t
s,@@PACKAGE_STRING@@,$PACKAGE_STRING,;t t
s,@@PACKAGE_BUGREPORT@@,$PACKAGE_BUGREPORT,;t t
s,@@build_alias@@,$build_alias,;t t
s,@@host_alias@@,$host_alias,;t t
s,@@target_alias@@,$target_alias,;t t
s,@@ECHO_C@@,$ECHO_C,;t t
s,@@ECHO_N@@,$ECHO_N,;t t
s,@@ECHO_T@@,$ECHO_T,;t t
s,@@PATH_SEPARATOR@@,$PATH_SEPARATOR,;t t
s,@@DEFS@@,$DEFS,;t t
s,@@LIBS@@,$LIBS,;t t
s,@@top_builddir@@,$top_builddir,;t t
s,@@EGREP@@,$EGREP,;t t
s,@@NCURSES_MAJOR@@,$NCURSES_MAJOR,;t t
s,@@NCURSES_MINOR@@,$NCURSES_MINOR,;t t
s,@@NCURSES_PATCH@@,$NCURSES_PATCH,;t t
s,@@cf_cv_rel_version@@,$cf_cv_rel_version,;t t
s,@@cf_cv_abi_version@@,$cf_cv_abi_version,;t t
s,@@cf_cv_builtin_bool@@,$cf_cv_builtin_bool,;t t
s,@@cf_cv_header_stdbool_h@@,$cf_cv_header_stdbool_h,;t t
s,@@cf_cv_type_of_bool@@,$cf_cv_type_of_bool,;t t
s,@@build@@,$build,;t t
s,@@build_cpu@@,$build_cpu,;t t
s,@@build_vendor@@,$build_vendor,;t t
s,@@build_os@@,$build_os,;t t
s,@@host@@,$host,;t t
s,@@host_cpu@@,$host_cpu,;t t
s,@@host_vendor@@,$host_vendor,;t t
s,@@host_os@@,$host_os,;t t
s,@@target@@,$target,;t t
s,@@target_cpu@@,$target_cpu,;t t
s,@@target_vendor@@,$target_vendor,;t t
s,@@target_os@@,$target_os,;t t
s,@@CC@@,$CC,;t t
s,@@CFLAGS@@,$CFLAGS,;t t
s,@@LDFLAGS@@,$LDFLAGS,;t t
s,@@CPPFLAGS@@,$CPPFLAGS,;t t
s,@@ac_ct_CC@@,$ac_ct_CC,;t t
s,@@EXEEXT@@,$EXEEXT,;t t
s,@@OBJEXT@@,$OBJEXT,;t t
s,@@CPP@@,$CPP,;t t
s,@@EXTRA_CPPFLAGS@@,$EXTRA_CPPFLAGS,;t t
s,@@PROG_EXT@@,$PROG_EXT,;t t
s,@@LDCONFIG@@,$LDCONFIG,;t t
s,@@CXX@@,$CXX,;t t
s,@@CXXFLAGS@@,$CXXFLAGS,;t t
s,@@ac_ct_CXX@@,$ac_ct_CXX,;t t
s,@@AWK@@,$AWK,;t t
s,@@INSTALL_PROGRAM@@,$INSTALL_PROGRAM,;t t
s,@@INSTALL_SCRIPT@@,$INSTALL_SCRIPT,;t t
s,@@INSTALL_DATA@@,$INSTALL_DATA,;t t
s,@@LINT@@,$LINT,;t t
s,@@LINT_OPTS@@,$LINT_OPTS,;t t
s,@@LN_S@@,$LN_S,;t t
s,@@SET_MAKE@@,$SET_MAKE,;t t
s,@@MAKE_LOWER_TAGS@@,$MAKE_LOWER_TAGS,;t t
s,@@MAKE_UPPER_TAGS@@,$MAKE_UPPER_TAGS,;t t
s,@@cf_cv_makeflags@@,$cf_cv_makeflags,;t t
s,@@RANLIB@@,$RANLIB,;t t
s,@@ac_ct_RANLIB@@,$ac_ct_RANLIB,;t t
s,@@LD@@,$LD,;t t
s,@@ac_ct_LD@@,$ac_ct_LD,;t t
s,@@AR@@,$AR,;t t
s,@@ac_ct_AR@@,$ac_ct_AR,;t t
s,@@AR_OPTS@@,$AR_OPTS,;t t
s,@@DESTDIR@@,$DESTDIR,;t t
s,@@BUILD_CC@@,$BUILD_CC,;t t
s,@@BUILD_CPP@@,$BUILD_CPP,;t t
s,@@BUILD_CFLAGS@@,$BUILD_CFLAGS,;t t
s,@@BUILD_CPPFLAGS@@,$BUILD_CPPFLAGS,;t t
s,@@BUILD_LDFLAGS@@,$BUILD_LDFLAGS,;t t
s,@@BUILD_LIBS@@,$BUILD_LIBS,;t t
s,@@BUILD_EXEEXT@@,$BUILD_EXEEXT,;t t
s,@@BUILD_OBJEXT@@,$BUILD_OBJEXT,;t t
s,@@cf_list_models@@,$cf_list_models,;t t
s,@@LIBTOOL@@,$LIBTOOL,;t t
s,@@LIBTOOL_CXX@@,$LIBTOOL_CXX,;t t
s,@@LIB_CREATE@@,$LIB_CREATE,;t t
s,@@LIB_OBJECT@@,$LIB_OBJECT,;t t
s,@@LIB_SUFFIX@@,$LIB_SUFFIX,;t t
s,@@LIB_PREP@@,$LIB_PREP,;t t
s,@@LIB_CLEAN@@,$LIB_CLEAN,;t t
s,@@LIB_COMPILE@@,$LIB_COMPILE,;t t
s,@@LIB_LINK@@,$LIB_LINK,;t t
s,@@LIB_INSTALL@@,$LIB_INSTALL,;t t
s,@@LIB_UNINSTALL@@,$LIB_UNINSTALL,;t t
s,@@DFT_LWR_MODEL@@,$DFT_LWR_MODEL,;t t
s,@@DFT_UPR_MODEL@@,$DFT_UPR_MODEL,;t t
s,@@TINFO_NAME@@,$TINFO_NAME,;t t
s,@@LIB_NAME@@,$LIB_NAME,;t t
s,@@LIB_PREFIX@@,$LIB_PREFIX,;t t
s,@@CC_G_OPT@@,$CC_G_OPT,;t t
s,@@CXX_G_OPT@@,$CXX_G_OPT,;t t
s,@@LD_MODEL@@,$LD_MODEL,;t t
s,@@CC_SHARED_OPTS@@,$CC_SHARED_OPTS,;t t
s,@@LD_SHARED_OPTS@@,$LD_SHARED_OPTS,;t t
s,@@MK_SHARED_LIB@@,$MK_SHARED_LIB,;t t
s,@@LINK_PROGS@@,$LINK_PROGS,;t t
s,@@LINK_TESTS@@,$LINK_TESTS,;t t
s,@@EXTRA_LDFLAGS@@,$EXTRA_LDFLAGS,;t t
s,@@LOCAL_LDFLAGS@@,$LOCAL_LDFLAGS,;t t
s,@@LOCAL_LDFLAGS2@@,$LOCAL_LDFLAGS2,;t t
s,@@INSTALL_LIB@@,$INSTALL_LIB,;t t
s,@@TERMINFO_SRC@@,$TERMINFO_SRC,;t t
s,@@PATHSEP@@,$PATHSEP,;t t
s,@@FALLBACK_LIST@@,$FALLBACK_LIST,;t t
s,@@WHICH_XTERM@@,$WHICH_XTERM,;t t
s,@@TERMINFO_DIRS@@,$TERMINFO_DIRS,;t t
s,@@TERMINFO@@,$TERMINFO,;t t
s,@@MAKE_TERMINFO@@,$MAKE_TERMINFO,;t t
s,@@TERMPATH@@,$TERMPATH,;t t
s,@@BROKEN_LINKER@@,$BROKEN_LINKER,;t t
s,@@NCURSES_CH_T@@,$NCURSES_CH_T,;t t
s,@@NCURSES_LIBUTF8@@,$NCURSES_LIBUTF8,;t t
s,@@NEED_WCHAR_H@@,$NEED_WCHAR_H,;t t
s,@@NCURSES_MBSTATE_T@@,$NCURSES_MBSTATE_T,;t t
s,@@NCURSES_WCHAR_T@@,$NCURSES_WCHAR_T,;t t
s,@@NCURSES_WINT_T@@,$NCURSES_WINT_T,;t t
s,@@NCURSES_OK_WCHAR_T@@,$NCURSES_OK_WCHAR_T,;t t
s,@@NCURSES_OK_WINT_T@@,$NCURSES_OK_WINT_T,;t t
s,@@cf_cv_enable_lp64@@,$cf_cv_enable_lp64,;t t
s,@@NCURSES_TPARM_VARARGS@@,$NCURSES_TPARM_VARARGS,;t t
s,@@NCURSES_BOOL@@,$NCURSES_BOOL,;t t
s,@@TERMINFO_CAPS@@,$TERMINFO_CAPS,;t t
s,@@NCURSES_OSPEED@@,$NCURSES_OSPEED,;t t
s,@@MANPAGE_RENAMES@@,$MANPAGE_RENAMES,;t t
s,@@NCURSES_EXT_FUNCS@@,$NCURSES_EXT_FUNCS,;t t
s,@@NCURSES_CONST@@,$NCURSES_CONST,;t t
s,@@NCURSES_SBOOL@@,$NCURSES_SBOOL,;t t
s,@@NCURSES_XNAMES@@,$NCURSES_XNAMES,;t t
s,@@NCURSES_EXT_COLORS@@,$NCURSES_EXT_COLORS,;t t
s,@@NCURSES_MOUSE_VERSION@@,$NCURSES_MOUSE_VERSION,;t t
s,@@ECHO_LINK@@,$ECHO_LINK,;t t
s,@@EXTRA_CFLAGS@@,$EXTRA_CFLAGS,;t t
s,@@EXTRA_CXXFLAGS@@,$EXTRA_CXXFLAGS,;t t
s,@@ADA_TRACE@@,$ADA_TRACE,;t t
s,@@MATH_LIB@@,$MATH_LIB,;t t
s,@@NCURSES_INLINE@@,$NCURSES_INLINE,;t t
s,@@cf_cv_typeof_chtype@@,$cf_cv_typeof_chtype,;t t
s,@@cf_cv_1UL@@,$cf_cv_1UL,;t t
s,@@cf_cv_typeof_mmask_t@@,$cf_cv_typeof_mmask_t,;t t
s,@@HAVE_VSSCANF@@,$HAVE_VSSCANF,;t t
s,@@CXXCPP@@,$CXXCPP,;t t
s,@@CXXLDFLAGS@@,$CXXLDFLAGS,;t t
s,@@CXX_AR@@,$CXX_AR,;t t
s,@@CXX_AR_OPTS@@,$CXX_AR_OPTS,;t t
s,@@CXXLIBS@@,$CXXLIBS,;t t
s,@@USE_CXX_BOOL@@,$USE_CXX_BOOL,;t t
s,@@gnat_exists@@,$gnat_exists,;t t
s,@@M4_exists@@,$M4_exists,;t t
s,@@cf_ada_make@@,$cf_ada_make,;t t
s,@@cf_ada_compiler@@,$cf_ada_compiler,;t t
s,@@cf_ada_package@@,$cf_ada_package,;t t
s,@@ADAFLAGS@@,$ADAFLAGS,;t t
s,@@cf_compile_generics@@,$cf_compile_generics,;t t
s,@@cf_generic_objects@@,$cf_generic_objects,;t t
s,@@PRAGMA_UNREF@@,$PRAGMA_UNREF,;t t
s,@@ADA_INCLUDE@@,$ADA_INCLUDE,;t t
s,@@ADA_OBJECTS@@,$ADA_OBJECTS,;t t
s,@@ACPPFLAGS@@,$ACPPFLAGS,;t t
s,@@DFT_ARG_SUFFIX@@,$DFT_ARG_SUFFIX,;t t
s,@@DFT_DEP_SUFFIX@@,$DFT_DEP_SUFFIX,;t t
s,@@DFT_OBJ_SUBDIR@@,$DFT_OBJ_SUBDIR,;t t
s,@@CXX_LIB_SUFFIX@@,$CXX_LIB_SUFFIX,;t t
s,@@TINFO_ARG_SUFFIX@@,$TINFO_ARG_SUFFIX,;t t
s,@@TINFO_DEP_SUFFIX@@,$TINFO_DEP_SUFFIX,;t t
s,@@TINFO_LIB_SUFFIX@@,$TINFO_LIB_SUFFIX,;t t
s,@@TINFO_ARGS@@,$TINFO_ARGS,;t t
s,@@TINFO_ARGS2@@,$TINFO_ARGS2,;t t
s,@@WITH_OVERWRITE@@,$WITH_OVERWRITE,;t t
s,@@TINFO_LIST@@,$TINFO_LIST,;t t
s,@@SHLIB_LIST@@,$SHLIB_LIST,;t t
s,@@TEST_ARGS@@,$TEST_ARGS,;t t
s,@@TEST_DEPS@@,$TEST_DEPS,;t t
s,@@TEST_ARG2@@,$TEST_ARG2,;t t
s,@@TEST_DEP2@@,$TEST_DEP2,;t t
s,@@ADA_SUBDIRS@@,$ADA_SUBDIRS,;t t
s,@@DIRS_TO_MAKE@@,$DIRS_TO_MAKE,;t t
s,@@HAVE_TCGETATTR@@,$HAVE_TCGETATTR,;t t
s,@@HAVE_TERMIO_H@@,$HAVE_TERMIO_H,;t t
s,@@HAVE_TERMIOS_H@@,$HAVE_TERMIOS_H,;t t
CEOF

d8696 1
a8696 38
  cat >>$CONFIG_STATUS <<\EOF
  # Split the substitutions into bite-sized pieces for seds with
  # small command number limits, like on Digital OSF/1 and HP-UX.
  ac_max_sed_lines=48
  ac_sed_frag=1 # Number of current file.
  ac_beg=1 # First line for current file.
  ac_end=$ac_max_sed_lines # Line after last line for current file.
  ac_more_lines=:
  ac_sed_cmds=
  while $ac_more_lines; do
    if test $ac_beg -gt 1; then
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    else
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    fi
    if test ! -s $tmp/subs.frag; then
      ac_more_lines=false
    else
      # The purpose of the label and of the branching condition is to
      # speed up the sed processing (if there are no `@@' at all, there
      # is no need to browse any of the substitutions).
      # These are the two extra sed commands mentioned above.
      (echo ':t
  /@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
      if test -z "$ac_sed_cmds"; then
  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
      else
  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
      fi
      ac_sed_frag=`expr $ac_sed_frag + 1`
      ac_beg=$ac_end
      ac_end=`expr $ac_end + $ac_max_sed_lines`
    fi
  done
  if test -z "$ac_sed_cmds"; then
    ac_sed_cmds=cat
  fi
fi # test -n "$CONFIG_FILES"
d8698 8
d8707 2
a8708 2
cat >>$CONFIG_STATUS <<\EOF
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
d8710 4
a8713 8
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
d8716 4
a8719 12
  # Compute @@srcdir@@, @@top_srcdir@@, and @@INSTALL@@ for subdirectories.
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d8721 3
a8723 17
    { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done; }

    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
d8725 1
a8725 1
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
d8730 5
a8734 10
  case $srcdir in
  .)  ac_srcdir=.
      if test -z "$ac_dots"; then
         ac_top_srcdir=.
      else
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
      fi ;;
  [\\/]* | ?:[\\/]* )
      ac_srcdir=$srcdir$ac_dir_suffix;
      ac_top_srcdir=$srcdir ;;
d8736 2
a8737 2
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_dots$srcdir ;;
d8740 3
a8742 3
  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_dots$INSTALL ;;
d8745 8
a8752 62
  if test x"$ac_file" != x-; then
    { echo "$as_me:16149: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    rm -f "$ac_file"
  fi
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated automatically by config.status.  */
  configure_input="Generated automatically from `echo $ac_file_in |
                                                 sed 's,.*/,,'` by configure."

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:16167: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:16180: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
EOF
cat >>$CONFIG_STATUS <<EOF
  sed "$ac_vpsub
$extrasub
EOF
cat >>$CONFIG_STATUS <<\EOF
:t
/@@[a-zA-Z_][a-zA-Z_0-9]*@@/!b
s,@@configure_input@@,$configure_input,;t t
s,@@srcdir@@,$ac_srcdir,;t t
s,@@top_srcdir@@,$ac_top_srcdir,;t t
s,@@INSTALL@@,$ac_INSTALL,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  rm -f $tmp/stdin
  if test x"$ac_file" != x-; then
    mv $tmp/out $ac_file
  else
    cat $tmp/out
    rm -f $tmp/out
  fi

done
EOF
cat >>$CONFIG_STATUS <<\EOF
d8754 9
a8762 3
#
# CONFIG_HEADER section.
#
d8768 7
a8774 12
ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='[ 	].*$,\1#\2'
ac_dC=' '
ac_dD=',;t'
# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_iA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_iB='\([ 	]\),\1#\2define\3'
ac_iC=' '
ac_iD='\4,;t'
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='$,\1#\2define\3'
d8776 6
a8781 1
ac_uD=',;t'
d8783 8
a8790 1
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
d8792 4
a8795 8
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
d8798 1
a8798 2
  test x"$ac_file" != x- && { echo "$as_me:16246: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
d8800 3
a8802 29
  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:16257: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:16270: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
  # Remove the trailing spaces.
  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
d8806 1
d8810 1
a8810 1
cat confdefs.h | uniq >conftest.vals
d8817 1
a8817 1
while grep . conftest.vals >/dev/null
d8819 3
d8824 1
a8824 1
  sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
d8832 1
a8832 1
# Run sed to substitute the contents of conftest.frag into $tmp/in at the
d8838 3
a8840 3
sed -f conftest.edit $tmp/in > $tmp/out
rm -f $tmp/in
mv $tmp/out $tmp/in
d8844 9
a8852 6
cat >>$CONFIG_STATUS <<\EOF
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated automatically by config.status.  */
  if test x"$ac_file" = x-; then
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
d8854 2
a8855 20
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
  fi
  cat $tmp/in >>$tmp/config.h
  rm -f $tmp/in
  if test x"$ac_file" != x-; then
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
      { echo "$as_me:16328: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
    else
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
d8857 2
a8858 19
        { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  *)                      as_incr_dir=.;;
esac
as_dummy="$ac_dir"
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@@"`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done; }

      fi
      rm -f $ac_file
      mv $tmp/config.h $ac_file
d8860 2
a8861 3
  else
    cat $tmp/config.h
    rm -f $tmp/config.h
d8863 2
a8864 1
done
d8866 32
a8897 1
cat >>$CONFIG_STATUS <<\EOF
d8899 3
a8901 6
#
# CONFIG_COMMANDS section.
#
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
a8902 2
  case $ac_dest in
    default )
a8903 8
for cf_dir in test
do
	if test ! -d $srcdir/$cf_dir; then
		continue
	elif test -f $srcdir/$cf_dir/programs; then
		$AWK -f $srcdir/test/mk-test.awk ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
	fi
done
d8911 2
d8916 1
a8916 3
	if test ! -d $srcdir/$cf_dir ; then
		continue
	elif test -f $srcdir/$cf_dir/modules; then
d8921 1
a8921 1
		for cf_item in $cf_LIST_MODELS
d8923 2
a8924 1

d8934 1
a8934 6
		hpux*)
			case $target in
			ia64*)	cf_suffix='.so' ;;
			*)	cf_suffix='.sl' ;;
			esac
			;;
d8945 2
a8946 12
					darwin*)
					case .${LIB_SUFFIX} in
					.w*)
						cf_suffix=`echo $cf_suffix | sed 's/^w//'`
						cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
						;;
					*)
						cf_suffix='.${REL_VERSION}'"$cf_suffix"
						;;
					esac
					;; #(vi
					*) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
d8951 2
a8952 12
					darwin*)
					case .${LIB_SUFFIX} in
					.w*)
						cf_suffix=`echo $cf_suffix | sed 's/^w//'`
						cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
						;;
					*)
						cf_suffix='.${ABI_VERSION}'"$cf_suffix"
						;;
					esac
					;; #(vi
					*) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
a8957 2
			# use autodetected ${cf_prefix} for import lib and static lib, but
			# use 'cyg' prefix for shared lib.
d8959 3
a8961 3
				SHARED_LIB="cyg${cf_dir}\${ABI_VERSION}.dll"
				IMPORT_LIB="${cf_prefix}${cf_dir}.dll.a"
				LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/\${SHARED_LIB} ../lib/\${IMPORT_LIB}"
d8970 5
a8974 3
			cf_termlib=`echo "$cf_subsets" |sed -e 's/ .*$//'`
			if test "$cf_termlib" != "$cf_subsets" ; then
				cf_item=`echo $LIBS_TO_MAKE |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
d8976 2
a8977 1
			fi
d8979 1
a8979 1
			cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
d8982 3
a8984 3
		sed -e "s%@@LIBS_TO_MAKE@@%$LIBS_TO_MAKE%" \
		    -e "s%@@IMPORT_LIB@@%$IMPORT_LIB%" \
		    -e "s%@@SHARED_LIB@@%$SHARED_LIB%" \
d8995 1
a8995 1
			for cf_item in $cf_LIST_MODELS
d8998 2
d9001 2
a9002 2
cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`

d9012 1
a9012 6
		hpux*)
			case $target in
			ia64*)	cf_suffix='.so' ;;
			*)	cf_suffix='.sl' ;;
			esac
			;;
d9018 1
a9032 15
			# Test for case where we build libtinfo with a different name.
			cf_libname=$cf_dir
			if test $cf_dir = ncurses ; then
				case $cf_subset in
				*base*)
					;;
				termlib*)
					cf_libname=$TINFO_LIB_SUFFIX
					if test -n "${DFT_ARG_SUFFIX}" ; then
						# undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
						cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
					fi
				;;
				esac
			fi
d9040 1
a9040 1
				cf_reldir="\${srcdir}"
a9048 14
 			cf_dir_suffix=
 			old_cf_suffix="$cf_suffix"
 			if test "$cf_cv_shlib_version_infix" = yes ; then
			if test -n "$LIB_SUFFIX" ; then
				case $LIB_SUFFIX in
				w*)
					cf_libname=`echo $cf_libname | sed 's/w$//'`
					cf_suffix=`echo $cf_suffix | sed 's/^w//'`
					cf_dir_suffix=w
					;;
				esac
			fi
 			fi

d9050 1
a9050 1
				name=${cf_libname}${cf_dir_suffix} \
d9052 1
a9052 1
				MODEL=$cf_ITEM \
d9064 1
a9064 1
				host="$host" \
a9065 3

			cf_suffix="$old_cf_suffix"

d9074 1
a9074 1
				MODEL=$cf_ITEM \
a9078 2
				crenames=$cf_cv_prog_CC_c_o \
				cxxrenames=$cf_cv_prog_CXX_c_o \
d9085 1
a9085 1
	echo '	cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@@' >>Makefile
a9089 4
	if test ! -d $srcdir/$cf_dir ; then
		continue
	fi

d9096 1
a9096 1
			echo '	cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@@' >> Makefile
d9119 1
a9119 1
	cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@@
d9129 1
a9129 1
	cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@@
d9138 1
a9138 1
$MAKE_TERMINFO	cd misc && \${MAKE} \${CF_MFLAGS} \$@@
d9142 1
a9142 1
	cd man && \${MAKE} \${CF_MFLAGS} \$@@
d9147 1
a9147 1
	rm -rf \${DIRS_TO_MAKE}
d9157 1
a9157 1
	cd tack && \${MAKE} \${CF_MFLAGS} \$@@
d9162 1
a9183 1

a9199 1

a9243 4
	if test ! -d $srcdir/$cf_dir ; then
		continue
	fi

d9246 2
a9247 2
\${DESTDIR}\${includedir} :
	sh \${srcdir}/../mkinstalldirs \$@@
d9251 1
a9251 1
install.includes :: \${AUTO_SRC} \${DESTDIR}\${includedir} \\
a9258 1

a9259 1

d9262 2
a9263 2
			echo "	@@ (cd \${DESTDIR}\${includedir} && rm -f `basename $i`) ; ../headers.sh \${INSTALL_DATA} \${DESTDIR}\${includedir} \${srcdir} $i" >>$cf_dir/Makefile
			test $i = curses.h && test $WITH_CURSES_H = yes && echo "	@@ (cd \${DESTDIR}\${includedir} && rm -f ncurses.h && \${LN_S} curses.h ncurses.h)" >>$cf_dir/Makefile
d9275 2
a9276 2
			echo "	-@@ (cd \${DESTDIR}\${includedir} && rm -f $i)" >>$cf_dir/Makefile
			test $i = curses.h && echo "	-@@ (cd \${DESTDIR}\${includedir} && rm -f ncurses.h)" >>$cf_dir/Makefile
d9283 2
a9284 2
depend : ${AUTO_SRC}
	makedepend -- ${CPPFLAGS} -- ${C_SRC}
a9291 4
 ;;
  esac
done
EOF
a9292 1
cat >>$CONFIG_STATUS <<\EOF
d9294 1
a9294 1
{ (exit 0); exit 0; }
d9297 2
a9298 19
ac_clean_files=$ac_clean_files_save

# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || { (exit 1); exit 1; }
fi
@


1.1.1.8.2.1
log
@SVN rev 179538 on 2008-06-04 07:42:51Z by rafan

MFC ncurses 5.6-20080503

 rev 174993, 176187, 178866
@
text
@d2 1
a2 1
# From configure.in Revision: 1.433 .
d4 1
a4 1
# Generated by Autoconf 2.52.20080325.
a701 1
  --enable-mixed-case     tic should assume mixed-case filenames
a716 1
  --with-ticlib           generate separate tic library
a720 1
  --disable-relink        relink shared libraries during install
a731 1
  --disable-big-strings   assume compiler has only standard-size strings
d762 1
a762 1
  --enable-signed-char    compile using signed Boolean's in term.h
a774 2
  --with-pthread          use POSIX thread library
  --enable-reentrant      compile with experimental reentrant code
d865 1
a865 1
generated by GNU Autoconf 2.52.20080325.  Invocation command line was
d989 1
a989 1
    { echo "$as_me:995: loading site script $ac_site_file" >&5
d1000 1
a1000 1
    { echo "$as_me:1006: loading cache $cache_file" >&5
d1008 1
a1008 1
  { echo "$as_me:1014: creating cache $cache_file" >&5
d1024 1
a1024 1
      { echo "$as_me:1030: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
d1028 1
a1028 1
      { echo "$as_me:1034: error: \`$ac_var' was not set in the previous run" >&5
d1034 1
a1034 1
        { echo "$as_me:1040: error: \`$ac_var' has changed since the previous run:" >&5
d1036 1
a1036 1
        { echo "$as_me:1042:   former value:  $ac_old_val" >&5
d1038 1
a1038 1
        { echo "$as_me:1044:   current value: $ac_new_val" >&5
d1057 1
a1057 1
  { echo "$as_me:1063: error: changes in the environment can compromise the build" >&5
d1059 1
a1059 1
  { { echo "$as_me:1065: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
d1080 1
a1080 1
if { (echo "$as_me:1086: PATH=\".;.\"; conftest.sh") >&5
d1083 1
a1083 1
  echo "$as_me:1089: \$? = $ac_status" >&5
d1096 1
a1096 1
echo "$as_me:1102: checking for egrep" >&5
d1106 1
a1106 1
echo "$as_me:1112: result: $ac_cv_prog_egrep" >&5
d1110 1
a1110 1
test -z "$EGREP" && { { echo "$as_me:1116: error: No egrep program found" >&5
d1120 1
a1120 1
echo "$as_me:1126: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
d1128 1
a1128 1
  { echo "$as_me:1134: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
d1141 1
a1141 1
	{ { echo "$as_me:1147: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
d1147 1
a1147 1
  { { echo "$as_me:1153: error: Release major-version value is empty" >&5
d1157 1
a1157 1
	{ { echo "$as_me:1163: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
d1163 1
a1163 1
  { { echo "$as_me:1169: error: Release minor-version value is empty" >&5
d1173 1
a1173 1
  { echo "$as_me:1179: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
d1183 1
a1183 1
	{ { echo "$as_me:1189: error: ABI version is not a number: $cf_cv_abi_version" >&5
d1189 1
a1189 1
  { { echo "$as_me:1195: error: ABI version value is empty" >&5
d1211 1
a1211 1
  { { echo "$as_me:1217: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
d1221 1
a1221 1
  { { echo "$as_me:1227: error: cannot run $ac_config_sub" >&5
d1225 1
a1225 1
echo "$as_me:1231: checking build system type" >&5
d1234 1
a1234 1
  { { echo "$as_me:1240: error: cannot guess build type; you must specify one" >&5
d1238 1
a1238 1
  { { echo "$as_me:1244: error: $ac_config_sub $ac_cv_build_alias failed." >&5
d1243 1
a1243 1
echo "$as_me:1249: result: $ac_cv_build" >&5
d1250 1
a1250 1
echo "$as_me:1256: checking host system type" >&5
d1259 1
a1259 1
  { { echo "$as_me:1265: error: $ac_config_sub $ac_cv_host_alias failed" >&5
d1264 1
a1264 1
echo "$as_me:1270: result: $ac_cv_host" >&5
d1272 1
a1272 1
	echo "$as_me:1278: checking target system type" >&5
d1281 1
a1281 1
  { { echo "$as_me:1287: error: $ac_config_sub $ac_cv_target_alias failed" >&5
d1286 1
a1286 1
echo "$as_me:1292: result: $ac_cv_target" >&5
d1317 1
a1317 1
test -n "$cf_cv_system_name" && echo "$as_me:1323: result: Configuring for $cf_cv_system_name" >&5
d1321 1
a1321 1
	echo "$as_me:1327: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
d1323 1
a1323 1
	{ { echo "$as_me:1329: error: \"Please remove config.cache and try again.\"" >&5
d1331 1
a1331 1
  { echo "$as_me:1337: WARNING: overriding system type to $withval" >&5
d1341 1
a1341 1
echo "$as_me:1347: checking for prefix" >&5
d1353 1
a1353 1
echo "$as_me:1359: result: $prefix" >&5
d1357 1
a1357 1
echo "$as_me:1363: checking for default include-directory" >&5
d1380 1
a1380 1
echo "$as_me:1386: result: $includedir" >&5
d1394 1
a1394 1
echo "$as_me:1400: checking for $ac_word" >&5
d1409 1
a1409 1
echo "$as_me:1415: found $ac_dir/$ac_word" >&5
d1417 1
a1417 1
  echo "$as_me:1423: result: $CC" >&5
d1420 1
a1420 1
  echo "$as_me:1426: result: no" >&5
d1429 1
a1429 1
echo "$as_me:1435: checking for $ac_word" >&5
d1444 1
a1444 1
echo "$as_me:1450: found $ac_dir/$ac_word" >&5
d1452 1
a1452 1
  echo "$as_me:1458: result: $ac_ct_CC" >&5
d1455 1
a1455 1
  echo "$as_me:1461: result: no" >&5
d1468 1
a1468 1
echo "$as_me:1474: checking for $ac_word" >&5
d1483 1
a1483 1
echo "$as_me:1489: found $ac_dir/$ac_word" >&5
d1491 1
a1491 1
  echo "$as_me:1497: result: $CC" >&5
d1494 1
a1494 1
  echo "$as_me:1500: result: no" >&5
d1503 1
a1503 1
echo "$as_me:1509: checking for $ac_word" >&5
d1518 1
a1518 1
echo "$as_me:1524: found $ac_dir/$ac_word" >&5
d1526 1
a1526 1
  echo "$as_me:1532: result: $ac_ct_CC" >&5
d1529 1
a1529 1
  echo "$as_me:1535: result: no" >&5
d1542 1
a1542 1
echo "$as_me:1548: checking for $ac_word" >&5
d1562 1
a1562 1
echo "$as_me:1568: found $ac_dir/$ac_word" >&5
d1584 1
a1584 1
  echo "$as_me:1590: result: $CC" >&5
d1587 1
a1587 1
  echo "$as_me:1593: result: no" >&5
d1598 1
a1598 1
echo "$as_me:1604: checking for $ac_word" >&5
d1613 1
a1613 1
echo "$as_me:1619: found $ac_dir/$ac_word" >&5
d1621 1
a1621 1
  echo "$as_me:1627: result: $CC" >&5
d1624 1
a1624 1
  echo "$as_me:1630: result: no" >&5
d1637 1
a1637 1
echo "$as_me:1643: checking for $ac_word" >&5
d1652 1
a1652 1
echo "$as_me:1658: found $ac_dir/$ac_word" >&5
d1660 1
a1660 1
  echo "$as_me:1666: result: $ac_ct_CC" >&5
d1663 1
a1663 1
  echo "$as_me:1669: result: no" >&5
d1675 1
a1675 1
test -z "$CC" && { { echo "$as_me:1681: error: no acceptable cc found in \$PATH" >&5
d1680 1
a1680 1
echo "$as_me:1686:" \
d1683 1
a1683 1
{ (eval echo "$as_me:1689: \"$ac_compiler --version </dev/null >&5\"") >&5
d1686 1
a1686 1
  echo "$as_me:1692: \$? = $ac_status" >&5
d1688 1
a1688 1
{ (eval echo "$as_me:1694: \"$ac_compiler -v </dev/null >&5\"") >&5
d1691 1
a1691 1
  echo "$as_me:1697: \$? = $ac_status" >&5
d1693 1
a1693 1
{ (eval echo "$as_me:1699: \"$ac_compiler -V </dev/null >&5\"") >&5
d1696 1
a1696 1
  echo "$as_me:1702: \$? = $ac_status" >&5
d1700 1
a1700 1
#line 1706 "configure"
d1716 1
a1716 1
echo "$as_me:1722: checking for C compiler default output" >&5
d1719 1
a1719 1
if { (eval echo "$as_me:1725: \"$ac_link_default\"") >&5
d1722 1
a1722 1
  echo "$as_me:1728: \$? = $ac_status" >&5
d1745 1
a1745 1
{ { echo "$as_me:1751: error: C compiler cannot create executables" >&5
d1751 1
a1751 1
echo "$as_me:1757: result: $ac_file" >&5
d1756 1
a1756 1
echo "$as_me:1762: checking whether the C compiler works" >&5
d1762 1
a1762 1
  { (eval echo "$as_me:1768: \"$ac_try\"") >&5
d1765 1
a1765 1
  echo "$as_me:1771: \$? = $ac_status" >&5
d1772 1
a1772 1
	{ { echo "$as_me:1778: error: cannot run C compiled programs.
d1780 1
a1780 1
echo "$as_me:1786: result: yes" >&5
d1787 1
a1787 1
echo "$as_me:1793: checking whether we are cross compiling" >&5
d1789 1
a1789 1
echo "$as_me:1795: result: $cross_compiling" >&5
d1792 1
a1792 1
echo "$as_me:1798: checking for executable suffix" >&5
d1794 1
a1794 1
if { (eval echo "$as_me:1800: \"$ac_link\"") >&5
d1797 1
a1797 1
  echo "$as_me:1803: \$? = $ac_status" >&5
d1813 1
a1813 1
  { { echo "$as_me:1819: error: cannot compute EXEEXT: cannot compile and link" >&5
d1819 1
a1819 1
echo "$as_me:1825: result: $ac_cv_exeext" >&5
d1825 1
a1825 1
echo "$as_me:1831: checking for object suffix" >&5
d1831 1
a1831 1
#line 1837 "configure"
d1843 1
a1843 1
if { (eval echo "$as_me:1849: \"$ac_compile\"") >&5
d1846 1
a1846 1
  echo "$as_me:1852: \$? = $ac_status" >&5
d1858 1
a1858 1
{ { echo "$as_me:1864: error: cannot compute OBJEXT: cannot compile" >&5
d1865 1
a1865 1
echo "$as_me:1871: result: $ac_cv_objext" >&5
d1869 1
a1869 1
echo "$as_me:1875: checking whether we are using the GNU C compiler" >&5
d1875 1
a1875 1
#line 1881 "configure"
d1890 1
a1890 1
if { (eval echo "$as_me:1896: \"$ac_compile\"") >&5
d1893 1
a1893 1
  echo "$as_me:1899: \$? = $ac_status" >&5
d1896 1
a1896 1
  { (eval echo "$as_me:1902: \"$ac_try\"") >&5
d1899 1
a1899 1
  echo "$as_me:1905: \$? = $ac_status" >&5
d1911 1
a1911 1
echo "$as_me:1917: result: $ac_cv_c_compiler_gnu" >&5
d1917 1
a1917 1
echo "$as_me:1923: checking whether $CC accepts -g" >&5
d1923 1
a1923 1
#line 1929 "configure"
d1935 1
a1935 1
if { (eval echo "$as_me:1941: \"$ac_compile\"") >&5
d1938 1
a1938 1
  echo "$as_me:1944: \$? = $ac_status" >&5
d1941 1
a1941 1
  { (eval echo "$as_me:1947: \"$ac_try\"") >&5
d1944 1
a1944 1
  echo "$as_me:1950: \$? = $ac_status" >&5
d1954 1
a1954 1
echo "$as_me:1960: result: $ac_cv_prog_cc_g" >&5
d1981 1
a1981 1
if { (eval echo "$as_me:1987: \"$ac_compile\"") >&5
d1984 1
a1984 1
  echo "$as_me:1990: \$? = $ac_status" >&5
d1987 1
a1987 1
  { (eval echo "$as_me:1993: \"$ac_try\"") >&5
d1990 1
a1990 1
  echo "$as_me:1996: \$? = $ac_status" >&5
d2002 1
a2002 1
#line 2008 "configure"
d2015 1
a2015 1
if { (eval echo "$as_me:2021: \"$ac_compile\"") >&5
d2018 1
a2018 1
  echo "$as_me:2024: \$? = $ac_status" >&5
d2021 1
a2021 1
  { (eval echo "$as_me:2027: \"$ac_try\"") >&5
d2024 1
a2024 1
  echo "$as_me:2030: \$? = $ac_status" >&5
d2034 1
a2034 1
#line 2040 "configure"
d2046 1
a2046 1
if { (eval echo "$as_me:2052: \"$ac_compile\"") >&5
d2049 1
a2049 1
  echo "$as_me:2055: \$? = $ac_status" >&5
d2052 1
a2052 1
  { (eval echo "$as_me:2058: \"$ac_try\"") >&5
d2055 1
a2055 1
  echo "$as_me:2061: \$? = $ac_status" >&5
d2085 1
a2085 1
	echo "$as_me:2091: checking version of $CC" >&5
d2089 1
a2089 1
	echo "$as_me:2095: result: $GCC_VERSION" >&5
d2099 1
a2099 1
echo "$as_me:2105: checking how to run the C preprocessor" >&5
d2120 1
a2120 1
#line 2126 "configure"
d2125 1
a2125 1
if { (eval echo "$as_me:2131: \"$ac_cpp conftest.$ac_ext\"") >&5
d2131 1
a2131 1
  echo "$as_me:2137: \$? = $ac_status" >&5
d2154 1
a2154 1
#line 2160 "configure"
d2158 1
a2158 1
if { (eval echo "$as_me:2164: \"$ac_cpp conftest.$ac_ext\"") >&5
d2164 1
a2164 1
  echo "$as_me:2170: \$? = $ac_status" >&5
d2201 1
a2201 1
echo "$as_me:2207: result: $CPP" >&5
d2211 1
a2211 1
#line 2217 "configure"
d2216 1
a2216 1
if { (eval echo "$as_me:2222: \"$ac_cpp conftest.$ac_ext\"") >&5
d2222 1
a2222 1
  echo "$as_me:2228: \$? = $ac_status" >&5
d2245 1
a2245 1
#line 2251 "configure"
d2249 1
a2249 1
if { (eval echo "$as_me:2255: \"$ac_cpp conftest.$ac_ext\"") >&5
d2255 1
a2255 1
  echo "$as_me:2261: \$? = $ac_status" >&5
d2283 1
a2283 1
  { { echo "$as_me:2289: error: C preprocessor \"$CPP\" fails sanity check" >&5
d2296 1
a2296 1
    echo "$as_me:2302: checking whether $CC needs -traditional" >&5
d2303 1
a2303 1
#line 2309 "configure"
d2318 1
a2318 1
#line 2324 "configure"
d2331 1
a2331 1
echo "$as_me:2337: result: $ac_cv_prog_gcc_traditional" >&5
d2338 1
a2338 1
echo "$as_me:2344: checking whether $CC understands -c and -o together" >&5
d2354 1
a2354 1
if { (eval echo "$as_me:2360: \"$ac_try\"") >&5
d2357 1
a2357 1
  echo "$as_me:2363: \$? = $ac_status" >&5
d2359 1
a2359 1
  test -f conftest2.$ac_objext && { (eval echo "$as_me:2365: \"$ac_try\"") >&5
d2362 1
a2362 1
  echo "$as_me:2368: \$? = $ac_status" >&5
d2373 1
a2373 1
  echo "$as_me:2379: result: yes" >&5
d2376 1
a2376 1
  echo "$as_me:2382: result: no" >&5
d2380 1
a2380 1
echo "$as_me:2386: checking for POSIXized ISC" >&5
d2385 1
a2385 1
  echo "$as_me:2391: result: yes" >&5
d2399 1
a2399 1
  echo "$as_me:2405: result: no" >&5
d2404 1
a2404 1
echo "$as_me:2410: checking for ${CC-cc} option to accept ANSI C" >&5
d2498 1
a2498 1
#line 2504 "configure"
d2519 1
a2519 1
if { (eval echo "$as_me:2525: \"$ac_compile\"") >&5
d2522 1
a2522 1
  echo "$as_me:2528: \$? = $ac_status" >&5
d2525 1
a2525 1
  { (eval echo "$as_me:2531: \"$ac_try\"") >&5
d2528 1
a2528 1
  echo "$as_me:2534: \$? = $ac_status" >&5
d2541 1
a2541 1
echo "$as_me:2547: result: $cf_cv_ansi_cc" >&5
d2624 1
a2624 1
	{ { echo "$as_me:2630: error: Your compiler does not appear to recognize prototypes.
d2664 1
a2664 1
echo "$as_me:2670: checking for $ac_word" >&5
d2681 1
a2681 1
   echo "$as_me:2687: found $ac_dir/$ac_word" >&5
d2692 1
a2692 1
  echo "$as_me:2698: result: $LDCONFIG" >&5
d2695 1
a2695 1
  echo "$as_me:2701: result: no" >&5
d2703 1
a2703 1
echo "$as_me:2709: checking if you want to ensure bool is consistent with C++" >&5
d2713 1
a2713 1
echo "$as_me:2719: result: $cf_with_cxx" >&5
d2731 1
a2731 1
echo "$as_me:2737: checking for $ac_word" >&5
d2746 1
a2746 1
echo "$as_me:2752: found $ac_dir/$ac_word" >&5
d2754 1
a2754 1
  echo "$as_me:2760: result: $CXX" >&5
d2757 1
a2757 1
  echo "$as_me:2763: result: no" >&5
d2770 1
a2770 1
echo "$as_me:2776: checking for $ac_word" >&5
d2785 1
a2785 1
echo "$as_me:2791: found $ac_dir/$ac_word" >&5
d2793 1
a2793 1
  echo "$as_me:2799: result: $ac_ct_CXX" >&5
d2796 1
a2796 1
  echo "$as_me:2802: result: no" >&5
d2808 1
a2808 1
echo "$as_me:2814:" \
d2811 1
a2811 1
{ (eval echo "$as_me:2817: \"$ac_compiler --version </dev/null >&5\"") >&5
d2814 1
a2814 1
  echo "$as_me:2820: \$? = $ac_status" >&5
d2816 1
a2816 1
{ (eval echo "$as_me:2822: \"$ac_compiler -v </dev/null >&5\"") >&5
d2819 1
a2819 1
  echo "$as_me:2825: \$? = $ac_status" >&5
d2821 1
a2821 1
{ (eval echo "$as_me:2827: \"$ac_compiler -V </dev/null >&5\"") >&5
d2824 1
a2824 1
  echo "$as_me:2830: \$? = $ac_status" >&5
d2827 1
a2827 1
echo "$as_me:2833: checking whether we are using the GNU C++ compiler" >&5
d2833 1
a2833 1
#line 2839 "configure"
d2848 1
a2848 1
if { (eval echo "$as_me:2854: \"$ac_compile\"") >&5
d2851 1
a2851 1
  echo "$as_me:2857: \$? = $ac_status" >&5
d2854 1
a2854 1
  { (eval echo "$as_me:2860: \"$ac_try\"") >&5
d2857 1
a2857 1
  echo "$as_me:2863: \$? = $ac_status" >&5
d2869 1
a2869 1
echo "$as_me:2875: result: $ac_cv_cxx_compiler_gnu" >&5
d2875 1
a2875 1
echo "$as_me:2881: checking whether $CXX accepts -g" >&5
d2881 1
a2881 1
#line 2887 "configure"
d2893 1
a2893 1
if { (eval echo "$as_me:2899: \"$ac_compile\"") >&5
d2896 1
a2896 1
  echo "$as_me:2902: \$? = $ac_status" >&5
d2899 1
a2899 1
  { (eval echo "$as_me:2905: \"$ac_try\"") >&5
d2902 1
a2902 1
  echo "$as_me:2908: \$? = $ac_status" >&5
d2912 1
a2912 1
echo "$as_me:2918: result: $ac_cv_prog_cxx_g" >&5
d2939 1
a2939 1
#line 2945 "configure"
d2952 1
a2952 1
if { (eval echo "$as_me:2958: \"$ac_compile\"") >&5
d2955 1
a2955 1
  echo "$as_me:2961: \$? = $ac_status" >&5
d2958 1
a2958 1
  { (eval echo "$as_me:2964: \"$ac_try\"") >&5
d2961 1
a2961 1
  echo "$as_me:2967: \$? = $ac_status" >&5
d2971 1
a2971 1
#line 2977 "configure"
d2983 1
a2983 1
if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5
d2986 1
a2986 1
  echo "$as_me:2992: \$? = $ac_status" >&5
d2989 1
a2989 1
  { (eval echo "$as_me:2995: \"$ac_try\"") >&5
d2992 1
a2992 1
  echo "$as_me:2998: \$? = $ac_status" >&5
d3019 1
a3019 1
echo "$as_me:3025: checking for $ac_word" >&5
d3036 1
a3036 1
   echo "$as_me:3042: found $ac_dir/$ac_word" >&5
d3047 1
a3047 1
  echo "$as_me:3053: result: $CXX" >&5
d3050 1
a3050 1
  echo "$as_me:3056: result: no" >&5
d3056 1
a3056 1
		{ echo "$as_me:3062: WARNING: ignoring hardcoded g++" >&5
d3064 1
a3064 1
	echo "$as_me:3070: checking version of g++" >&5
d3068 1
a3068 1
	echo "$as_me:3074: result: $GXX_VERSION" >&5
d3076 1
a3076 1
	{ echo "$as_me:3082: WARNING: templates do not work" >&5
d3081 1
a3081 1
echo "$as_me:3087: checking if you want to build C++ binding and demo" >&5
d3091 1
a3091 1
echo "$as_me:3097: result: $cf_with_cxx_binding" >&5
d3094 1
a3094 1
echo "$as_me:3100: checking if you want to build with Ada95" >&5
d3104 1
a3104 1
echo "$as_me:3110: result: $cf_with_ada" >&5
d3107 1
a3107 1
echo "$as_me:3113: checking if you want to build programs such as tic" >&5
d3117 1
a3117 1
echo "$as_me:3123: result: $cf_with_progs" >&5
d3120 1
a3120 1
echo "$as_me:3126: checking if you wish to install curses.h" >&5
d3130 1
a3130 1
echo "$as_me:3136: result: $with_curses_h" >&5
d3156 1
a3156 1
echo "$as_me:3162: checking for $ac_word" >&5
d3171 1
a3171 1
echo "$as_me:3177: found $ac_dir/$ac_word" >&5
d3179 1
a3179 1
  echo "$as_me:3185: result: $AWK" >&5
d3182 1
a3182 1
  echo "$as_me:3188: result: no" >&5
d3189 1
a3189 1
test -z "$AWK" && { { echo "$as_me:3195: error: No awk program found" >&5
d3193 1
a3193 1
echo "$as_me:3199: checking for egrep" >&5
d3203 1
a3203 1
echo "$as_me:3209: result: $ac_cv_prog_egrep" >&5
d3207 1
a3207 1
test -z "$EGREP" && { { echo "$as_me:3213: error: No egrep program found" >&5
d3223 1
a3223 1
echo "$as_me:3229: checking for a BSD compatible install" >&5
d3272 1
a3272 1
echo "$as_me:3278: result: $INSTALL" >&5
d3297 1
a3297 1
echo "$as_me:3303: checking for $ac_word" >&5
d3312 1
a3312 1
echo "$as_me:3318: found $ac_dir/$ac_word" >&5
d3320 1
a3320 1
  echo "$as_me:3326: result: $LINT" >&5
d3323 1
a3323 1
  echo "$as_me:3329: result: no" >&5
d3330 1
a3330 1
echo "$as_me:3336: checking whether ln -s works" >&5
d3334 1
a3334 1
  echo "$as_me:3340: result: yes" >&5
d3337 1
a3337 1
  echo "$as_me:3343: result: no, using $LN_S" >&5
d3341 4
a3344 3
echo "$as_me:3347: checking for long file names" >&5
echo $ECHO_N "checking for long file names... $ECHO_C" >&6
if test "${ac_cv_sys_long_file_names+set}" = set; then
d3347 8
a3354 13
  ac_cv_sys_long_file_names=yes
# Test for long file names in all the places we know might matter:
#      .		the current directory, where building will happen
#      $prefix/lib	where we will be installing things
#      $exec_prefix/lib	likewise
# eval it to expand exec_prefix.
#      $TMPDIR		if set, where it might want to write temporary files
# if $TMPDIR is not set:
#      /tmp		where it might want to write temporary files
#      /var/tmp		likewise
#      /usr/tmp		likewise
if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
  ac_tmpdirs=$TMPDIR
d3356 1
a3356 1
  ac_tmpdirs='/tmp /var/tmp /usr/tmp'
d3358 1
a3358 17
for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
  test -d $ac_dir || continue
  test -w $ac_dir || continue # It is less confusing to not echo anything here.
  ac_xdir=$ac_dir/cf$$
  (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
  ac_tf1=$ac_xdir/conftest9012345
  ac_tf2=$ac_xdir/conftest9012346
  (echo 1 >$ac_tf1) 2>/dev/null
  (echo 2 >$ac_tf2) 2>/dev/null
  ac_val=`cat $ac_tf1 2>/dev/null`
  if test ! -f $ac_tf1 || test "$ac_val" != 1; then
    ac_cv_sys_long_file_names=no
    rm -rf $ac_xdir 2>/dev/null
    break
  fi
  rm -rf $ac_xdir 2>/dev/null
done
d3360 8
a3367 8
echo "$as_me:3386: result: $ac_cv_sys_long_file_names" >&5
echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
if test $ac_cv_sys_long_file_names = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_LONG_FILE_NAMES 1
EOF

d3370 1
a3370 15
echo "$as_me:3396: checking if we should assume mixed-case filenames" >&5
echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6

# Check whether --enable-mixed-case or --disable-mixed-case was given.
if test "${enable_mixed_case+set}" = set; then
  enableval="$enable_mixed_case"
  enable_mixedcase=$enableval
else
  enable_mixedcase=auto
fi;
echo "$as_me:3406: result: $enable_mixedcase" >&5
echo "${ECHO_T}$enable_mixedcase" >&6
if test "$enable_mixedcase" = "auto" ; then

echo "$as_me:3410: checking if filesystem supports mixed-case filenames" >&5
d3397 1
a3397 1
echo "$as_me:3437: result: $cf_cv_mixedcase" >&5
a3402 40
else
    cf_cv_mixedcase=$enable_mixedcase
    if test "$enable_mixedcase" = "yes" ; then
        cat >>confdefs.h <<\EOF
#define MIXEDCASE_FILENAMES 1
EOF

    fi
fi

# do this after mixed-case option (tags/TAGS is not as important as tic).
echo "$as_me:3454: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.make <<\EOF
all:
	@@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
else
  eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftest.make
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$as_me:3474: result: yes" >&5
echo "${ECHO_T}yes" >&6
  SET_MAKE=
else
  echo "$as_me:3478: result: no" >&5
echo "${ECHO_T}no" >&6
  SET_MAKE="MAKE=${MAKE-make}"
fi

d3405 1
a3405 1
echo "$as_me:3485: checking for $ac_word" >&5
d3420 1
a3420 1
echo "$as_me:3500: found $ac_dir/$ac_word" >&5
d3429 1
a3429 1
  echo "$as_me:3509: result: $MAKE_LOWER_TAGS" >&5
d3432 1
a3432 1
  echo "$as_me:3512: result: no" >&5
d3439 1
a3439 1
echo "$as_me:3519: checking for $ac_word" >&5
d3454 1
a3454 1
echo "$as_me:3534: found $ac_dir/$ac_word" >&5
d3463 1
a3463 1
  echo "$as_me:3543: result: $MAKE_UPPER_TAGS" >&5
d3466 1
a3466 1
  echo "$as_me:3546: result: no" >&5
d3486 1
a3486 1
echo "$as_me:3566: checking for makeflags variable" >&5
d3520 1
a3520 1
echo "$as_me:3600: result: $cf_cv_makeflags" >&5
d3523 82
d3608 1
a3608 1
echo "$as_me:3606: checking for $ac_word" >&5
d3623 1
a3623 1
echo "$as_me:3621: found $ac_dir/$ac_word" >&5
d3631 1
a3631 1
  echo "$as_me:3629: result: $RANLIB" >&5
d3634 1
a3634 1
  echo "$as_me:3632: result: no" >&5
d3643 1
a3643 1
echo "$as_me:3641: checking for $ac_word" >&5
d3658 1
a3658 1
echo "$as_me:3656: found $ac_dir/$ac_word" >&5
d3667 1
a3667 1
  echo "$as_me:3665: result: $ac_ct_RANLIB" >&5
d3670 1
a3670 1
  echo "$as_me:3668: result: no" >&5
d3682 1
a3682 1
echo "$as_me:3680: checking for $ac_word" >&5
d3697 1
a3697 1
echo "$as_me:3695: found $ac_dir/$ac_word" >&5
d3705 1
a3705 1
  echo "$as_me:3703: result: $LD" >&5
d3708 1
a3708 1
  echo "$as_me:3706: result: no" >&5
d3717 1
a3717 1
echo "$as_me:3715: checking for $ac_word" >&5
d3732 1
a3732 1
echo "$as_me:3730: found $ac_dir/$ac_word" >&5
d3741 1
a3741 1
  echo "$as_me:3739: result: $ac_ct_LD" >&5
d3744 1
a3744 1
  echo "$as_me:3742: result: no" >&5
d3756 1
a3756 1
echo "$as_me:3754: checking for $ac_word" >&5
d3771 1
a3771 1
echo "$as_me:3769: found $ac_dir/$ac_word" >&5
d3779 1
a3779 1
  echo "$as_me:3777: result: $AR" >&5
d3782 1
a3782 1
  echo "$as_me:3780: result: no" >&5
d3791 1
a3791 1
echo "$as_me:3789: checking for $ac_word" >&5
d3806 1
a3806 1
echo "$as_me:3804: found $ac_dir/$ac_word" >&5
d3815 1
a3815 1
  echo "$as_me:3813: result: $ac_ct_AR" >&5
d3818 1
a3818 1
  echo "$as_me:3816: result: no" >&5
d3831 1
a3831 1
echo "$as_me:3829: checking for archiver options (symbol AR_OPTS)" >&5
d3840 1
a3840 1
echo "$as_me:3838: result: $AR_OPTS" >&5
d3845 1
a3845 1
echo "$as_me:3843: checking if you have specified an install-prefix" >&5
d3858 1
a3858 1
echo "$as_me:3856: result: $DESTDIR" >&5
d3886 1
a3886 1
echo "$as_me:3884: checking for $ac_word" >&5
d3901 1
a3901 1
echo "$as_me:3899: found $ac_dir/$ac_word" >&5
d3909 1
a3909 1
  echo "$as_me:3907: result: $BUILD_CC" >&5
d3912 1
a3912 1
  echo "$as_me:3910: result: no" >&5
d3920 1
a3920 1
	echo "$as_me:3918: checking for native build C compiler" >&5
d3922 1
a3922 1
	echo "$as_me:3920: result: $BUILD_CC" >&5
d3925 1
a3925 1
	echo "$as_me:3923: checking for native build C preprocessor" >&5
d3935 1
a3935 1
	echo "$as_me:3933: result: $BUILD_CPP" >&5
d3938 1
a3938 1
	echo "$as_me:3936: checking for native build C flags" >&5
d3946 1
a3946 1
	echo "$as_me:3944: result: $BUILD_CFLAGS" >&5
d3949 1
a3949 1
	echo "$as_me:3947: checking for native build C preprocessor-flags" >&5
d3957 1
a3957 1
	echo "$as_me:3955: result: $BUILD_CPPFLAGS" >&5
d3960 1
a3960 1
	echo "$as_me:3958: checking for native build linker-flags" >&5
d3968 1
a3968 1
	echo "$as_me:3966: result: $BUILD_LDFLAGS" >&5
d3971 1
a3971 1
	echo "$as_me:3969: checking for native build linker-libraries" >&5
d3979 1
a3979 1
	echo "$as_me:3977: result: $BUILD_LIBS" >&5
d3989 1
a3989 1
		{ { echo "$as_me:3987: error: Cross-build requires two compilers.
d4026 1
a4026 1
LIB_LINK='${CC}'
d4030 1
a4030 1
echo "$as_me:4028: checking if you want to build libraries with libtool" >&5
d4040 1
a4040 1
echo "$as_me:4038: result: $with_libtool" >&5
d4071 1
a4071 1
  { { echo "$as_me:4069: error: expected a pathname, not \"$with_libtool\"" >&5
d4081 1
a4081 1
echo "$as_me:4079: checking for $ac_word" >&5
d4098 1
a4098 1
   echo "$as_me:4096: found $ac_dir/$ac_word" >&5
d4109 1
a4109 1
  echo "$as_me:4107: result: $LIBTOOL" >&5
d4112 1
a4112 1
  echo "$as_me:4110: result: no" >&5
d4118 1
a4118 1
 		{ { echo "$as_me:4116: error: Cannot find libtool" >&5
d4122 2
a4123 2
	LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} -o'
	LIB_OBJECT='${OBJECTS:.o=.lo}'
d4127 1
a4127 1
	LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
d4133 1
a4133 1
	echo "$as_me:4131: checking version of libtool" >&5
d4139 2
a4140 2
	cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
	echo "$as_me:4138: result: $cf_cv_libtool_version" >&5
d4143 2
a4144 2
		{ { echo "$as_me:4141: error: This is not GNU libtool" >&5
echo "$as_me: error: This is not GNU libtool" >&2;}
a4151 1
		LIBTOOL="$LIBTOOL --tag=CC"
d4170 1
a4170 1
echo "$as_me:4169: checking if you want to build shared libraries" >&5
d4180 1
a4180 1
echo "$as_me:4179: result: $with_shared" >&5
d4184 1
a4184 1
echo "$as_me:4183: checking if you want to build static libraries" >&5
d4194 1
a4194 1
echo "$as_me:4193: result: $with_normal" >&5
d4198 1
a4198 1
echo "$as_me:4197: checking if you want to build debug libraries" >&5
d4208 1
a4208 1
echo "$as_me:4207: result: $with_debug" >&5
d4212 1
a4212 1
echo "$as_me:4211: checking if you want to build profiling libraries" >&5
d4222 1
a4222 1
echo "$as_me:4221: result: $with_profile" >&5
d4230 1
a4230 1
echo "$as_me:4229: checking for specified models" >&5
d4234 1
a4234 1
echo "$as_me:4233: result: $cf_list_models" >&5
d4239 1
a4239 1
echo "$as_me:4238: checking for default model" >&5
d4242 1
a4242 1
echo "$as_me:4241: result: $DFT_LWR_MODEL" >&5
a4246 2
TICS_NAME=tic

d4267 1
a4267 1
echo "$as_me:4268: checking if you want to build a separate terminfo library" >&5
d4277 1
a4277 1
echo "$as_me:4278: result: $with_termlib" >&5
a4279 13
echo "$as_me:4281: checking if you want to build a separate tic library" >&5
echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6

# Check whether --with-ticlib or --without-ticlib was given.
if test "${with_ticlib+set}" = set; then
  withval="$with_ticlib"
  with_ticlib=$withval
else
  with_ticlib=no
fi;
echo "$as_me:4291: result: $with_ticlib" >&5
echo "${ECHO_T}$with_ticlib" >&6

d4283 1
a4283 1
echo "$as_me:4297: checking if you want to link with the GPM mouse library" >&5
d4293 1
a4293 1
echo "$as_me:4307: result: $with_gpm" >&5
d4297 1
a4297 1
	echo "$as_me:4311: checking for gpm.h" >&5
d4303 1
a4303 1
#line 4317 "configure"
d4307 1
a4307 1
if { (eval echo "$as_me:4321: \"$ac_cpp conftest.$ac_ext\"") >&5
d4313 1
a4313 1
  echo "$as_me:4327: \$? = $ac_status" >&5
d4332 1
a4332 1
echo "$as_me:4346: result: $ac_cv_header_gpm_h" >&5
a4342 2
echo "${as_me-configure}:4357: testing assuming we really have GPM library ..." 1>&5

d4348 1
a4348 1
			echo "$as_me:4364: checking for Gpm_Open in -lgpm" >&5
d4356 1
a4356 1
#line 4372 "configure"
d4375 1
a4375 1
if { (eval echo "$as_me:4391: \"$ac_link\"") >&5
d4378 1
a4378 1
  echo "$as_me:4394: \$? = $ac_status" >&5
d4381 1
a4381 1
  { (eval echo "$as_me:4397: \"$ac_try\"") >&5
d4384 1
a4384 1
  echo "$as_me:4400: \$? = $ac_status" >&5
d4395 1
a4395 1
echo "$as_me:4411: result: $ac_cv_lib_gpm_Gpm_Open" >&5
d4401 1
a4401 1
				{ { echo "$as_me:4417: error: Cannot link with GPM library" >&5
d4411 1
a4411 1
		test "$with_gpm" != maybe && { echo "$as_me:4427: WARNING: Cannot find GPM header" >&5
d4420 1
a4420 1
	echo "$as_me:4436: checking if you want to load GPM dynamically" >&5
d4430 1
a4430 1
	echo "$as_me:4446: result: $with_dlsym" >&5
d4435 1
a4435 1
echo "$as_me:4451: checking for dlsym" >&5
d4441 1
a4441 1
#line 4457 "configure"
d4472 1
a4472 1
if { (eval echo "$as_me:4488: \"$ac_link\"") >&5
d4475 1
a4475 1
  echo "$as_me:4491: \$? = $ac_status" >&5
d4478 1
a4478 1
  { (eval echo "$as_me:4494: \"$ac_try\"") >&5
d4481 1
a4481 1
  echo "$as_me:4497: \$? = $ac_status" >&5
d4491 1
a4491 1
echo "$as_me:4507: result: $ac_cv_func_dlsym" >&5
d4498 1
a4498 1
echo "$as_me:4514: checking for dlsym in -ldl" >&5
d4506 1
a4506 1
#line 4522 "configure"
d4525 1
a4525 1
if { (eval echo "$as_me:4541: \"$ac_link\"") >&5
d4528 1
a4528 1
  echo "$as_me:4544: \$? = $ac_status" >&5
d4531 1
a4531 1
  { (eval echo "$as_me:4547: \"$ac_try\"") >&5
d4534 1
a4534 1
  echo "$as_me:4550: \$? = $ac_status" >&5
d4545 1
a4545 1
echo "$as_me:4561: result: $ac_cv_lib_dl_dlsym" >&5
d4558 1
a4558 1
	echo "$as_me:4574: checking whether able to link to dl*() functions" >&5
d4561 1
a4561 1
#line 4577 "configure"
d4579 1
a4579 1
if { (eval echo "$as_me:4595: \"$ac_link\"") >&5
d4582 1
a4582 1
  echo "$as_me:4598: \$? = $ac_status" >&5
d4585 1
a4585 1
  { (eval echo "$as_me:4601: \"$ac_try\"") >&5
d4588 1
a4588 1
  echo "$as_me:4604: \$? = $ac_status" >&5
d4599 1
a4599 1
		{ { echo "$as_me:4615: error: Cannot link test program for libdl" >&5
d4604 1
a4604 1
	echo "$as_me:4620: result: ok" >&5
d4607 1
a4607 1
	{ { echo "$as_me:4623: error: Cannot find dlsym function" >&5
a4614 2
echo "${as_me-configure}:4631: testing assuming soname for gpm is $with_gpm ..." 1>&5

d4618 1
a4618 1
echo "$as_me:4636: checking for soname of gpm library" >&5
d4636 1
a4636 1
	if { (eval echo "$as_me:4654: \"$ac_compile\"") >&5
d4639 1
a4639 1
  echo "$as_me:4657: \$? = $ac_status" >&5
d4641 1
a4641 1
		if { (eval echo "$as_me:4659: \"$ac_link\"") >&5
d4644 1
a4644 1
  echo "$as_me:4662: \$? = $ac_status" >&5
d4655 1
a4655 1
echo "$as_me:4673: result: $cf_cv_gpm_soname" >&5
d4671 1
a4671 1
echo "$as_me:4689: checking for Gpm_Wgetch in -lgpm" >&5
d4679 1
a4679 1
#line 4697 "configure"
d4698 1
a4698 1
if { (eval echo "$as_me:4716: \"$ac_link\"") >&5
d4701 1
a4701 1
  echo "$as_me:4719: \$? = $ac_status" >&5
d4704 1
a4704 1
  { (eval echo "$as_me:4722: \"$ac_try\"") >&5
d4707 1
a4707 1
  echo "$as_me:4725: \$? = $ac_status" >&5
d4718 1
a4718 1
echo "$as_me:4736: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
d4722 1
a4722 49
echo "$as_me:4740: checking if GPM is weakly bound to curses library" >&5
echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
if test "${cf_cv_check_gpm_wgetch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_check_gpm_wgetch=unknown
if test "$cross_compiling" != yes ; then

cat >conftest.$ac_ext <<CF_EOF
#include <gpm.h>
int main()
{
	Gpm_Wgetch();
	${cf_cv_main_return:-return}(0);
}
CF_EOF

	cf_save_LIBS="$LIBS"
	# This only works if we can look at the symbol table.  If a shared
	# library is stripped for install, we cannot use that.  So we're forced
	# to rely on the static library, noting that some packagers may not
	# include it.
	LIBS="-static -lgpm -dynamic $LIBS"
	if { (eval echo "$as_me:4764: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4767: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
		if { (eval echo "$as_me:4769: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4772: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
			cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
			test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
			test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
		fi
	fi
	rm -f conftest*
	LIBS="$cf_save_LIBS"
fi

fi
echo "$as_me:4784: result: $cf_cv_check_gpm_wgetch" >&5
echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6

if test "$cf_cv_check_gpm_wgetch" != yes ; then
	{ echo "$as_me:4788: WARNING: GPM library is already linked with curses - read the FAQ" >&5
a4723 1
fi
d4731 1
a4731 1
echo "$as_me:4798: checking if you want to use sysmouse" >&5
d4743 1
a4743 1
#line 4810 "configure"
d4766 1
a4766 1
if { (eval echo "$as_me:4833: \"$ac_compile\"") >&5
d4769 1
a4769 1
  echo "$as_me:4836: \$? = $ac_status" >&5
d4772 1
a4772 1
  { (eval echo "$as_me:4839: \"$ac_try\"") >&5
d4775 1
a4775 1
  echo "$as_me:4842: \$? = $ac_status" >&5
d4785 1
a4785 1
echo "$as_me:4852: result: $cf_with_sysmouse" >&5
d4803 1
a4803 1
echo "$as_me:4870: checking for default loader flags" >&5
d4812 1
a4812 1
echo "$as_me:4879: result: $LD_MODEL" >&5
d4815 1
a4815 3
case $DFT_LWR_MODEL in
shared)
echo "$as_me:4884: checking if rpath option should be used" >&5
d4825 1
a4825 1
echo "$as_me:4894: result: $cf_cv_ld_rpath" >&5
a4826 14
echo "$as_me:4896: checking if shared libraries should be relinked during install" >&5
echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6

# Check whether --enable-relink or --disable-relink was given.
if test "${enable_relink+set}" = set; then
  enableval="$enable_relink"
  cf_cv_do_relink=$enableval
else
  cf_cv_do_relink=yes
fi;
echo "$as_me:4906: result: $cf_cv_do_relink" >&5
echo "${ECHO_T}$cf_cv_do_relink" >&6
	;;
esac
d4835 1
a4835 1
	echo "$as_me:4918: checking if release/abi version should be used for shared libs" >&5
d4850 1
a4850 1
		{ { echo "$as_me:4933: error: option value must be one of: rel, abi, auto or no" >&5
d4859 1
a4859 1
	echo "$as_me:4942: result: $cf_cv_shlib_version" >&5
d4868 1
a4868 1
		echo "$as_me:4951: checking which $CC option to use" >&5
d4875 1
a4875 1
#line 4958 "configure"
d4887 1
a4887 1
if { (eval echo "$as_me:4970: \"$ac_compile\"") >&5
d4890 1
a4890 1
  echo "$as_me:4973: \$? = $ac_status" >&5
d4893 1
a4893 1
  { (eval echo "$as_me:4976: \"$ac_try\"") >&5
d4896 1
a4896 1
  echo "$as_me:4979: \$? = $ac_status" >&5
d4905 1
a4905 1
		echo "$as_me:4988: result: $CC_SHARED_OPTS" >&5
d4918 1
a4918 1
		MK_SHARED_LIB='sh ../mk_shared_lib.sh $@@ ${CC} ${CFLAGS}'
a4920 13
		cat >mk_shared_lib.sh <<-CF_EOF
		#!/bin/sh
		SHARED_LIB=\$1
		IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
		shift
		cat <<-EOF
		Linking shared library
		** SHARED_LIB \$SHARED_LIB
		** IMPORT_LIB \$IMPORT_LIB
EOF
		exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
CF_EOF
		chmod +x mk_shared_lib.sh
d4925 1
a4925 1
		MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@@'
d4928 1
a4928 1
		echo "$as_me:5024: checking if ld -search_paths_first works" >&5
d4937 1
a4937 1
#line 5033 "configure"
d4949 1
a4949 1
if { (eval echo "$as_me:5045: \"$ac_link\"") >&5
d4952 1
a4952 1
  echo "$as_me:5048: \$? = $ac_status" >&5
d4955 1
a4955 1
  { (eval echo "$as_me:5051: \"$ac_try\"") >&5
d4958 1
a4958 1
  echo "$as_me:5054: \$? = $ac_status" >&5
d4969 1
a4969 1
echo "$as_me:5065: result: $cf_cv_ldflags_search_paths_first" >&5
d5024 1
a5024 1
	openbsd[2-9].*)
d5028 1
a5028 1
	openbsd*|freebsd[12].*)
d5165 1
a5165 1
			{ echo "$as_me:5261: WARNING: ignored --with-shlib-version" >&5
d5173 1
a5173 1
		echo "$as_me:5269: checking if we need a space after rpath option" >&5
d5178 1
a5178 1
#line 5274 "configure"
d5190 1
a5190 1
if { (eval echo "$as_me:5286: \"$ac_link\"") >&5
d5193 1
a5193 1
  echo "$as_me:5289: \$? = $ac_status" >&5
d5196 1
a5196 1
  { (eval echo "$as_me:5292: \"$ac_try\"") >&5
d5199 1
a5199 1
  echo "$as_me:5295: \$? = $ac_status" >&5
d5209 1
a5209 1
		echo "$as_me:5305: result: $cf_rpath_space" >&5
d5218 1
a5218 1
			{ { echo "$as_me:5314: error: Shared libraries are not supported in this version" >&5
d5228 1
a5228 1
echo "$as_me:5324: checking if you wish to install ncurses overwriting curses" >&5
d5238 1
a5238 1
echo "$as_me:5334: result: $with_overwrite" >&5
d5241 1
a5241 1
echo "$as_me:5337: checking if external terminfo-database is used" >&5
d5251 1
a5251 1
echo "$as_me:5347: result: $use_database" >&5
d5273 1
a5273 1
	echo "$as_me:5369: checking which terminfo source-file will be installed" >&5
d5281 1
a5281 1
	echo "$as_me:5377: result: $TERMINFO_SRC" >&5
d5284 1
a5284 1
	echo "$as_me:5380: checking whether to use hashed database instead of directory/tree" >&5
d5294 1
a5294 1
	echo "$as_me:5390: result: $with_hashed_db" >&5
d5298 1
a5298 1
echo "$as_me:5394: checking for list of fallback descriptions" >&5
d5308 1
a5308 1
echo "$as_me:5404: result: $with_fallback" >&5
d5312 1
a5312 1
echo "$as_me:5408: checking if you want modern xterm or antique" >&5
d5326 1
a5326 1
echo "$as_me:5422: result: $with_xterm_new" >&5
d5336 1
a5336 1
echo "$as_me:5432: checking for list of terminfo directories" >&5
d5376 1
a5376 1
  { { echo "$as_me:5472: error: expected a pathname, not \"$cf_src_path\"" >&5
d5389 1
a5389 1
echo "$as_me:5485: result: $TERMINFO_DIRS" >&5
d5395 1
a5395 1
echo "$as_me:5491: checking for default terminfo directory" >&5
d5404 1
a5404 2
fi; if test -n "${datadir}/terminfo" ; then

d5430 1
a5430 1
  { { echo "$as_me:5527: error: expected a pathname, not \"$withval\"" >&5
a5435 1
fi
d5438 1
a5438 1
echo "$as_me:5536: result: $TERMINFO" >&5
d5448 1
a5448 1
echo "$as_me:5546: checking if big-core option selected" >&5
d5460 1
a5460 1
#line 5558 "configure"
d5474 1
a5474 1
if { (eval echo "$as_me:5572: \"$ac_link\"") >&5
d5477 1
a5477 1
  echo "$as_me:5575: \$? = $ac_status" >&5
d5479 1
a5479 1
  { (eval echo "$as_me:5577: \"$ac_try\"") >&5
d5482 1
a5482 1
  echo "$as_me:5580: \$? = $ac_status" >&5
d5494 1
a5494 1
echo "$as_me:5592: result: $with_big_core" >&5
a5499 18
### ISO C only guarantees 512-char strings, we have tables which load faster
### when constructed using "big" strings.
echo "$as_me:5600: checking if big-strings option selected" >&5
echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6

# Check whether --enable-big-strings or --disable-big-strings was given.
if test "${enable_big_strings+set}" = set; then
  enableval="$enable_big_strings"
  with_big_strings=no
else
  with_big_strings=yes
fi;
echo "$as_me:5610: result: $with_big_strings" >&5
echo "${ECHO_T}$with_big_strings" >&6

USE_BIG_STRINGS=0
test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1

d5501 1
a5501 1
echo "$as_me:5617: checking if you want termcap-fallback support" >&5
d5511 1
a5511 1
echo "$as_me:5627: result: $with_termcap" >&5
d5517 1
a5517 1
			{ { echo "$as_me:5633: error: You have disabled the database w/o specifying fallbacks" >&5
a5527 6
if test "$with_ticlib" != no ; then
	{ { echo "$as_me:5645: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
   { (exit 1); exit 1; }; }
fi

d5532 1
a5532 1
echo "$as_me:5654: checking for list of termcap files" >&5
d5572 1
a5572 1
  { { echo "$as_me:5694: error: expected a pathname, not \"$cf_src_path\"" >&5
d5585 1
a5585 1
echo "$as_me:5707: result: $TERMPATH" >&5
d5592 1
a5592 1
echo "$as_me:5714: checking if fast termcap-loader is needed" >&5
d5602 1
a5602 1
echo "$as_me:5724: result: $with_getcap" >&5
d5608 1
a5608 1
echo "$as_me:5730: checking if translated termcaps will be cached in ~/.terminfo" >&5
d5618 1
a5618 1
echo "$as_me:5740: result: $with_getcap_cache" >&5
d5627 1
a5627 1
echo "$as_me:5749: checking if ~/.terminfo is wanted" >&5
d5637 1
a5637 1
echo "$as_me:5759: result: $with_home_terminfo" >&5
d5643 1
a5643 1
echo "$as_me:5765: checking if you want to use restricted environment when running as root" >&5
d5653 1
a5653 1
echo "$as_me:5775: result: $with_root_environ" >&5
d5667 1
a5667 1
echo "$as_me:5789: checking for $ac_func" >&5
d5673 1
a5673 1
#line 5795 "configure"
d5704 1
a5704 1
if { (eval echo "$as_me:5826: \"$ac_link\"") >&5
d5707 1
a5707 1
  echo "$as_me:5829: \$? = $ac_status" >&5
d5710 1
a5710 1
  { (eval echo "$as_me:5832: \"$ac_try\"") >&5
d5713 1
a5713 1
  echo "$as_me:5835: \$? = $ac_status" >&5
d5723 1
a5723 1
echo "$as_me:5845: result: `eval echo '${'$as_ac_var'}'`" >&5
d5740 1
a5740 1
echo "$as_me:5862: checking for $ac_func" >&5
d5746 1
a5746 1
#line 5868 "configure"
d5777 1
a5777 1
if { (eval echo "$as_me:5899: \"$ac_link\"") >&5
d5780 1
a5780 1
  echo "$as_me:5902: \$? = $ac_status" >&5
d5783 1
a5783 1
  { (eval echo "$as_me:5905: \"$ac_try\"") >&5
d5786 1
a5786 1
  echo "$as_me:5908: \$? = $ac_status" >&5
d5796 1
a5796 1
echo "$as_me:5918: result: `eval echo '${'$as_ac_var'}'`" >&5
d5807 1
a5807 1
	echo "$as_me:5929: checking if link/symlink functions work" >&5
d5820 1
a5820 1
#line 5942 "configure"
d5850 1
a5850 1
if { (eval echo "$as_me:5972: \"$ac_link\"") >&5
d5853 1
a5853 1
  echo "$as_me:5975: \$? = $ac_status" >&5
d5855 1
a5855 1
  { (eval echo "$as_me:5977: \"$ac_try\"") >&5
d5858 1
a5858 1
  echo "$as_me:5980: \$? = $ac_status" >&5
d5876 1
a5876 1
echo "$as_me:5998: result: $cf_cv_link_funcs" >&5
d5894 1
a5894 1
    echo "$as_me:6016: checking if tic should use symbolic links" >&5
d5904 1
a5904 1
    echo "$as_me:6026: result: $with_symlinks" >&5
d5911 1
a5911 1
    echo "$as_me:6033: checking if tic should use hard links" >&5
d5918 1
a5918 1
    echo "$as_me:6040: result: $with_links" >&5
d5931 1
a5931 1
echo "$as_me:6053: checking if you want broken-linker support code" >&5
d5941 1
a5941 1
echo "$as_me:6063: result: $with_broken_linker" >&5
a5960 2
echo "${as_me-configure}:6083: testing cygwin linker is broken anyway ..." 1>&5

d5966 1
a5966 1
echo "$as_me:6090: checking if tputs should process BSD-style prefix padding" >&5
d5976 1
a5976 1
echo "$as_me:6100: result: $with_bsdpad" >&5
d5993 1
a5993 1
echo "$as_me:6117: checking if $CC -U and -D options work together" >&5
d6002 1
a6002 1
#line 6126 "configure"
d6021 1
a6021 1
if { (eval echo "$as_me:6145: \"$ac_compile\"") >&5
d6024 1
a6024 1
  echo "$as_me:6148: \$? = $ac_status" >&5
d6027 1
a6027 1
  { (eval echo "$as_me:6151: \"$ac_try\"") >&5
d6030 1
a6030 1
  echo "$as_me:6154: \$? = $ac_status" >&5
d6044 1
a6044 1
echo "$as_me:6168: result: $cf_cv_cc_u_d_options" >&5
d6068 1
a6068 1
linux*|gnu*|k*bsd*-gnu) #(vi
d6070 1
a6070 1
echo "$as_me:6194: checking if we must define _GNU_SOURCE" >&5
d6077 1
a6077 1
#line 6201 "configure"
d6092 1
a6092 1
if { (eval echo "$as_me:6216: \"$ac_compile\"") >&5
d6095 1
a6095 1
  echo "$as_me:6219: \$? = $ac_status" >&5
d6098 1
a6098 1
  { (eval echo "$as_me:6222: \"$ac_try\"") >&5
d6101 1
a6101 1
  echo "$as_me:6225: \$? = $ac_status" >&5
d6110 1
a6110 1
#line 6234 "configure"
d6125 1
a6125 1
if { (eval echo "$as_me:6249: \"$ac_compile\"") >&5
d6128 1
a6128 1
  echo "$as_me:6252: \$? = $ac_status" >&5
d6131 1
a6131 1
  { (eval echo "$as_me:6255: \"$ac_try\"") >&5
d6134 1
a6134 1
  echo "$as_me:6258: \$? = $ac_status" >&5
d6149 1
a6149 1
echo "$as_me:6273: result: $cf_cv_gnu_source" >&5
d6176 1
a6176 1
	echo "$as_me:6300: checking if we should define _XOPEN_SOURCE" >&5
d6183 1
a6183 1
#line 6307 "configure"
d6198 1
a6198 1
if { (eval echo "$as_me:6322: \"$ac_compile\"") >&5
d6201 1
a6201 1
  echo "$as_me:6325: \$? = $ac_status" >&5
d6204 1
a6204 1
  { (eval echo "$as_me:6328: \"$ac_try\"") >&5
d6207 1
a6207 1
  echo "$as_me:6331: \$? = $ac_status" >&5
d6216 1
a6216 1
#line 6340 "configure"
d6231 1
a6231 1
if { (eval echo "$as_me:6355: \"$ac_compile\"") >&5
d6234 1
a6234 1
  echo "$as_me:6358: \$? = $ac_status" >&5
d6237 1
a6237 1
  { (eval echo "$as_me:6361: \"$ac_try\"") >&5
d6240 1
a6240 1
  echo "$as_me:6364: \$? = $ac_status" >&5
d6255 1
a6255 1
echo "$as_me:6379: result: $cf_cv_xopen_source" >&5
d6289 1
a6289 1
echo "$as_me:6413: checking if we should define _POSIX_C_SOURCE" >&5
d6295 1
a6295 1
echo "${as_me-configure}:6419: testing if the symbol is already defined go no further ..." 1>&5
d6298 1
a6298 1
#line 6422 "configure"
d6313 1
a6313 1
if { (eval echo "$as_me:6437: \"$ac_compile\"") >&5
d6316 1
a6316 1
  echo "$as_me:6440: \$? = $ac_status" >&5
d6319 1
a6319 1
  { (eval echo "$as_me:6443: \"$ac_try\"") >&5
d6322 1
a6322 1
  echo "$as_me:6446: \$? = $ac_status" >&5
d6343 1
a6343 1
#line 6467 "configure"
d6358 1
a6358 1
if { (eval echo "$as_me:6482: \"$ac_compile\"") >&5
d6361 1
a6361 1
  echo "$as_me:6485: \$? = $ac_status" >&5
d6364 1
a6364 1
  { (eval echo "$as_me:6488: \"$ac_try\"") >&5
d6367 1
a6367 1
  echo "$as_me:6491: \$? = $ac_status" >&5
d6378 1
a6378 1
echo "${as_me-configure}:6502: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
d6383 1
a6383 1
echo "${as_me-configure}:6507: testing if the second compile does not leave our definition intact error ..." 1>&5
d6386 1
a6386 1
#line 6510 "configure"
d6401 1
a6401 1
if { (eval echo "$as_me:6525: \"$ac_compile\"") >&5
d6404 1
a6404 1
  echo "$as_me:6528: \$? = $ac_status" >&5
d6407 1
a6407 1
  { (eval echo "$as_me:6531: \"$ac_try\"") >&5
d6410 1
a6410 1
  echo "$as_me:6534: \$? = $ac_status" >&5
d6426 1
a6426 1
echo "$as_me:6550: result: $cf_cv_posix_c_source" >&5
d6445 1
a6445 1
echo "$as_me:6569: checking if SIGWINCH is defined" >&5
d6452 1
a6452 1
#line 6576 "configure"
d6467 1
a6467 1
if { (eval echo "$as_me:6591: \"$ac_compile\"") >&5
d6470 1
a6470 1
  echo "$as_me:6594: \$? = $ac_status" >&5
d6473 1
a6473 1
  { (eval echo "$as_me:6597: \"$ac_try\"") >&5
d6476 1
a6476 1
  echo "$as_me:6600: \$? = $ac_status" >&5
d6483 1
a6483 1
#line 6607 "configure"
d6501 1
a6501 1
if { (eval echo "$as_me:6625: \"$ac_compile\"") >&5
d6504 1
a6504 1
  echo "$as_me:6628: \$? = $ac_status" >&5
d6507 1
a6507 1
  { (eval echo "$as_me:6631: \"$ac_try\"") >&5
d6510 1
a6510 1
  echo "$as_me:6634: \$? = $ac_status" >&5
d6524 1
a6524 1
echo "$as_me:6648: result: $cf_cv_define_sigwinch" >&5
d6528 1
a6528 1
echo "$as_me:6652: checking for actual SIGWINCH definition" >&5
d6539 1
a6539 1
#line 6663 "configure"
d6561 1
a6561 1
if { (eval echo "$as_me:6685: \"$ac_compile\"") >&5
d6564 1
a6564 1
  echo "$as_me:6688: \$? = $ac_status" >&5
d6567 1
a6567 1
  { (eval echo "$as_me:6691: \"$ac_try\"") >&5
d6570 1
a6570 1
  echo "$as_me:6694: \$? = $ac_status" >&5
d6584 1
a6584 1
echo "$as_me:6708: result: $cf_cv_fixup_sigwinch" >&5
d6594 1
a6594 1
  echo "$as_me:6718: checking for nl_langinfo and CODESET" >&5
d6600 1
a6600 1
#line 6724 "configure"
d6612 1
a6612 1
if { (eval echo "$as_me:6736: \"$ac_link\"") >&5
d6615 1
a6615 1
  echo "$as_me:6739: \$? = $ac_status" >&5
d6618 1
a6618 1
  { (eval echo "$as_me:6742: \"$ac_try\"") >&5
d6621 1
a6621 1
  echo "$as_me:6745: \$? = $ac_status" >&5
d6632 1
a6632 1
echo "$as_me:6756: result: $am_cv_langinfo_codeset" >&5
d6646 1
a6646 1
echo "$as_me:6770: checking if you want wide-character code" >&5
d6656 1
a6656 1
echo "$as_me:6780: result: $with_widec" >&5
d6664 1
a6664 1
echo "$as_me:6788: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
d6667 1
a6667 1
#line 6791 "configure"
d6683 1
a6683 1
if { (eval echo "$as_me:6807: \"$ac_compile\"") >&5
d6686 1
a6686 1
  echo "$as_me:6810: \$? = $ac_status" >&5
d6689 1
a6689 1
  { (eval echo "$as_me:6813: \"$ac_try\"") >&5
d6692 1
a6692 1
  echo "$as_me:6816: \$? = $ac_status" >&5
d6701 1
a6701 1
echo "$as_me:6825: result: $cf_result" >&5
d6707 1
a6707 1
	echo "$as_me:6831: checking checking for compatible value versus " >&5
d6710 1
a6710 1
#line 6834 "configure"
d6726 1
a6726 1
if { (eval echo "$as_me:6850: \"$ac_compile\"") >&5
d6729 1
a6729 1
  echo "$as_me:6853: \$? = $ac_status" >&5
d6732 1
a6732 1
  { (eval echo "$as_me:6856: \"$ac_try\"") >&5
d6735 1
a6735 1
  echo "$as_me:6859: \$? = $ac_status" >&5
d6744 1
a6744 1
	echo "$as_me:6868: result: $cf_result" >&5
d6758 1
a6758 1
echo "$as_me:6882: checking for $ac_func" >&5
d6764 1
a6764 1
#line 6888 "configure"
d6795 1
a6795 1
if { (eval echo "$as_me:6919: \"$ac_link\"") >&5
d6798 1
a6798 1
  echo "$as_me:6922: \$? = $ac_status" >&5
d6801 1
a6801 1
  { (eval echo "$as_me:6925: \"$ac_try\"") >&5
d6804 1
a6804 1
  echo "$as_me:6928: \$? = $ac_status" >&5
d6814 1
a6814 1
echo "$as_me:6938: result: `eval echo '${'$as_ac_var'}'`" >&5
d6826 1
a6826 1
echo "$as_me:6950: checking for putwc in libutf8" >&5
d6835 1
a6835 1
#line 6959 "configure"
d6848 1
a6848 1
if { (eval echo "$as_me:6972: \"$ac_link\"") >&5
d6851 1
a6851 1
  echo "$as_me:6975: \$? = $ac_status" >&5
d6854 1
a6854 1
  { (eval echo "$as_me:6978: \"$ac_try\"") >&5
d6857 1
a6857 1
  echo "$as_me:6981: \$? = $ac_status" >&5
d6869 1
a6869 1
echo "$as_me:6993: result: $cf_cv_libutf8" >&5
d6886 1
a6886 1
echo "$as_me:7010: checking if we must include wchar.h to declare mbstate_t" >&5
d6893 1
a6893 1
#line 7017 "configure"
d6911 1
a6911 1
if { (eval echo "$as_me:7035: \"$ac_compile\"") >&5
d6914 1
a6914 1
  echo "$as_me:7038: \$? = $ac_status" >&5
d6917 1
a6917 1
  { (eval echo "$as_me:7041: \"$ac_try\"") >&5
d6920 1
a6920 1
  echo "$as_me:7044: \$? = $ac_status" >&5
d6927 1
a6927 1
#line 7051 "configure"
d6946 1
a6946 1
if { (eval echo "$as_me:7070: \"$ac_compile\"") >&5
d6949 1
a6949 1
  echo "$as_me:7073: \$? = $ac_status" >&5
d6952 1
a6952 1
  { (eval echo "$as_me:7076: \"$ac_try\"") >&5
d6955 1
a6955 1
  echo "$as_me:7079: \$? = $ac_status" >&5
d6967 1
a6967 1
echo "$as_me:7091: result: $cf_cv_mbstate_t" >&5
d6984 1
a6984 1
echo "$as_me:7108: checking if we must include wchar.h to declare wchar_t" >&5
d6991 1
a6991 1
#line 7115 "configure"
d7009 1
a7009 1
if { (eval echo "$as_me:7133: \"$ac_compile\"") >&5
d7012 1
a7012 1
  echo "$as_me:7136: \$? = $ac_status" >&5
d7015 1
a7015 1
  { (eval echo "$as_me:7139: \"$ac_try\"") >&5
d7018 1
a7018 1
  echo "$as_me:7142: \$? = $ac_status" >&5
d7025 1
a7025 1
#line 7149 "configure"
d7044 1
a7044 1
if { (eval echo "$as_me:7168: \"$ac_compile\"") >&5
d7047 1
a7047 1
  echo "$as_me:7171: \$? = $ac_status" >&5
d7050 1
a7050 1
  { (eval echo "$as_me:7174: \"$ac_try\"") >&5
d7053 1
a7053 1
  echo "$as_me:7177: \$? = $ac_status" >&5
d7065 1
a7065 1
echo "$as_me:7189: result: $cf_cv_wchar_t" >&5
d7087 1
a7087 1
echo "$as_me:7211: checking if we must include wchar.h to declare wint_t" >&5
d7094 1
a7094 1
#line 7218 "configure"
d7112 1
a7112 1
if { (eval echo "$as_me:7236: \"$ac_compile\"") >&5
d7115 1
a7115 1
  echo "$as_me:7239: \$? = $ac_status" >&5
d7118 1
a7118 1
  { (eval echo "$as_me:7242: \"$ac_try\"") >&5
d7121 1
a7121 1
  echo "$as_me:7245: \$? = $ac_status" >&5
d7128 1
a7128 1
#line 7252 "configure"
d7147 1
a7147 1
if { (eval echo "$as_me:7271: \"$ac_compile\"") >&5
d7150 1
a7150 1
  echo "$as_me:7274: \$? = $ac_status" >&5
d7153 1
a7153 1
  { (eval echo "$as_me:7277: \"$ac_try\"") >&5
d7156 1
a7156 1
  echo "$as_me:7280: \$? = $ac_status" >&5
d7168 1
a7168 1
echo "$as_me:7292: result: $cf_cv_wint_t" >&5
d7207 1
a7207 1
echo "$as_me:7331: checking whether to enable _LP64 definition in curses.h" >&5
d7217 1
a7217 1
echo "$as_me:7341: result: $with_lp64" >&5
d7233 1
a7233 1
  echo "$as_me:7357: checking for special C compiler options needed for large files" >&5
d7245 1
a7245 1
#line 7369 "configure"
d7265 1
a7265 1
if { (eval echo "$as_me:7389: \"$ac_compile\"") >&5
d7268 1
a7268 1
  echo "$as_me:7392: \$? = $ac_status" >&5
d7271 1
a7271 1
  { (eval echo "$as_me:7395: \"$ac_try\"") >&5
d7274 1
a7274 1
  echo "$as_me:7398: \$? = $ac_status" >&5
d7284 1
a7284 1
if { (eval echo "$as_me:7408: \"$ac_compile\"") >&5
d7287 1
a7287 1
  echo "$as_me:7411: \$? = $ac_status" >&5
d7290 1
a7290 1
  { (eval echo "$as_me:7414: \"$ac_try\"") >&5
d7293 1
a7293 1
  echo "$as_me:7417: \$? = $ac_status" >&5
d7307 1
a7307 1
echo "$as_me:7431: result: $ac_cv_sys_largefile_CC" >&5
d7313 1
a7313 1
  echo "$as_me:7437: checking for _FILE_OFFSET_BITS value needed for large files" >&5
d7321 1
a7321 1
#line 7445 "configure"
d7341 1
a7341 1
if { (eval echo "$as_me:7465: \"$ac_compile\"") >&5
d7344 1
a7344 1
  echo "$as_me:7468: \$? = $ac_status" >&5
d7347 1
a7347 1
  { (eval echo "$as_me:7471: \"$ac_try\"") >&5
d7350 1
a7350 1
  echo "$as_me:7474: \$? = $ac_status" >&5
d7359 1
a7359 1
#line 7483 "configure"
d7380 1
a7380 1
if { (eval echo "$as_me:7504: \"$ac_compile\"") >&5
d7383 1
a7383 1
  echo "$as_me:7507: \$? = $ac_status" >&5
d7386 1
a7386 1
  { (eval echo "$as_me:7510: \"$ac_try\"") >&5
d7389 1
a7389 1
  echo "$as_me:7513: \$? = $ac_status" >&5
d7400 1
a7400 1
echo "$as_me:7524: result: $ac_cv_sys_file_offset_bits" >&5
d7410 1
a7410 1
  echo "$as_me:7534: checking for _LARGE_FILES value needed for large files" >&5
d7418 1
a7418 1
#line 7542 "configure"
d7438 1
a7438 1
if { (eval echo "$as_me:7562: \"$ac_compile\"") >&5
d7441 1
a7441 1
  echo "$as_me:7565: \$? = $ac_status" >&5
d7444 1
a7444 1
  { (eval echo "$as_me:7568: \"$ac_try\"") >&5
d7447 1
a7447 1
  echo "$as_me:7571: \$? = $ac_status" >&5
d7456 1
a7456 1
#line 7580 "configure"
d7477 1
a7477 1
if { (eval echo "$as_me:7601: \"$ac_compile\"") >&5
d7480 1
a7480 1
  echo "$as_me:7604: \$? = $ac_status" >&5
d7483 1
a7483 1
  { (eval echo "$as_me:7607: \"$ac_try\"") >&5
d7486 1
a7486 1
  echo "$as_me:7610: \$? = $ac_status" >&5
d7497 1
a7497 1
echo "$as_me:7621: result: $ac_cv_sys_large_files" >&5
d7510 1
a7510 1
	echo "$as_me:7634: checking for _LARGEFILE_SOURCE value needed for large files" >&5
d7518 1
a7518 1
#line 7642 "configure"
d7530 1
a7530 1
if { (eval echo "$as_me:7654: \"$ac_compile\"") >&5
d7533 1
a7533 1
  echo "$as_me:7657: \$? = $ac_status" >&5
d7536 1
a7536 1
  { (eval echo "$as_me:7660: \"$ac_try\"") >&5
d7539 1
a7539 1
  echo "$as_me:7663: \$? = $ac_status" >&5
d7548 1
a7548 1
#line 7672 "configure"
d7561 1
a7561 1
if { (eval echo "$as_me:7685: \"$ac_compile\"") >&5
d7564 1
a7564 1
  echo "$as_me:7688: \$? = $ac_status" >&5
d7567 1
a7567 1
  { (eval echo "$as_me:7691: \"$ac_try\"") >&5
d7570 1
a7570 1
  echo "$as_me:7694: \$? = $ac_status" >&5
d7581 1
a7581 1
echo "$as_me:7705: result: $ac_cv_sys_largefile_source" >&5
d7595 1
a7595 1
echo "$as_me:7719: checking for fseeko" >&5
d7601 1
a7601 1
#line 7725 "configure"
d7613 1
a7613 1
if { (eval echo "$as_me:7737: \"$ac_link\"") >&5
d7616 1
a7616 1
  echo "$as_me:7740: \$? = $ac_status" >&5
d7619 1
a7619 1
  { (eval echo "$as_me:7743: \"$ac_try\"") >&5
d7622 1
a7622 1
  echo "$as_me:7746: \$? = $ac_status" >&5
d7632 1
a7632 1
echo "$as_me:7756: result: $ac_cv_func_fseeko" >&5
a7650 1
	test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
d7652 1
a7652 1
	echo "$as_me:7777: checking whether to use struct dirent64" >&5
d7659 1
a7659 1
#line 7784 "configure"
d7680 1
a7680 1
if { (eval echo "$as_me:7805: \"$ac_compile\"") >&5
d7683 1
a7683 1
  echo "$as_me:7808: \$? = $ac_status" >&5
d7686 1
a7686 1
  { (eval echo "$as_me:7811: \"$ac_try\"") >&5
d7689 1
a7689 1
  echo "$as_me:7814: \$? = $ac_status" >&5
d7700 1
a7700 1
echo "$as_me:7825: result: $cf_cv_struct_dirent64" >&5
d7709 1
a7709 1
echo "$as_me:7834: checking if you want tparm not to use X/Open fixed-parameter list" >&5
d7719 1
a7719 1
echo "$as_me:7844: result: $with_tparm_varargs" >&5
d7725 1
a7725 1
echo "$as_me:7850: checking for type of bool" >&5
d7735 1
a7735 1
echo "$as_me:7860: result: $NCURSES_BOOL" >&5
d7738 1
a7738 1
echo "$as_me:7863: checking for alternate terminal capabilities file" >&5
d7749 1
a7749 1
echo "$as_me:7874: result: $TERMINFO_CAPS" >&5
d7753 1
a7753 1
echo "$as_me:7878: checking for type of chtype" >&5
d7763 1
a7763 1
echo "$as_me:7888: result: $NCURSES_CHTYPE" >&5
d7767 1
a7767 1
echo "$as_me:7892: checking for type of ospeed" >&5
d7777 1
a7777 1
echo "$as_me:7902: result: $NCURSES_OSPEED" >&5
d7781 1
a7781 1
echo "$as_me:7906: checking for type of mmask_t" >&5
d7791 1
a7791 1
echo "$as_me:7916: result: $NCURSES_MMASK_T" >&5
d7795 1
a7795 1
echo "$as_me:7920: checking if RCS identifiers should be compiled-in" >&5
d7805 1
a7805 1
echo "$as_me:7930: result: $with_rcs_ids" >&5
d7813 1
a7813 1
echo "$as_me:7938: checking format of man-pages" >&5
d7902 1
a7902 1
echo "$as_me:8027: result: $MANPAGE_FORMAT" >&5
d7905 1
a7905 1
  { echo "$as_me:8030: WARNING: Unexpected manpage-format $cf_unknown" >&5
d7909 1
a7909 1
echo "$as_me:8034: checking for manpage renaming" >&5
d7937 1
a7937 1
    { { echo "$as_me:8062: error: not a filename: $MANPAGE_RENAMES" >&5
d7951 1
a7951 1
echo "$as_me:8076: result: $MANPAGE_RENAMES" >&5
d7954 1
a7954 1
echo "$as_me:8079: checking if manpage aliases will be installed" >&5
d7965 1
a7965 1
echo "$as_me:8090: result: $MANPAGE_ALIASES" >&5
d7976 1
a7976 1
echo "$as_me:8101: checking if manpage symlinks should be used" >&5
d7989 1
a7989 1
	{ echo "$as_me:8114: WARNING: cannot make symlinks" >&5
d7995 1
a7995 1
echo "$as_me:8120: result: $MANPAGE_SYMLINKS" >&5
d7999 1
a7999 1
echo "$as_me:8124: checking for manpage tbl" >&5
d8010 1
a8010 1
echo "$as_me:8135: result: $MANPAGE_TBL" >&5
a8049 1
cf_man_alias=`pwd`/man_alias.sed
d8065 1
a8065 1
MKDIRS="sh `cd $srcdir && pwd`/mkdirs.sh"
d8113 6
a8118 32

	# replace variables in man page
	if test ! -f $cf_man_alias ; then
cat >>$cf_man_alias <<-CF_EOF2
		s,@@DATADIR@@,\$datadir,g
		s,@@TERMINFO@@,\$TERMINFO,g
		s,@@NCURSES_MAJOR@@,\$NCURSES_MAJOR,g
		s,@@NCURSES_MINOR@@,\$NCURSES_MINOR,g
		s,@@NCURSES_PATCH@@,\$NCURSES_PATCH,g
		s,@@NCURSES_OSPEED@@,\$NCURSES_OSPEED,g
CF_EOF

	for cf_name in  captoinfo clear infocmp infotocap tic toe tput
	do
		cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
		cf_name=`echo $cf_name|sed "$program_transform_name"`
cat >>$cf_edit_man <<-CF_EOF
		s,@@$cf_NAME@@,$cf_name,
CF_EOF
	done

cat >>$cf_edit_man <<CF_EOF
CF_EOF2
		echo "...made $cf_man_alias"
	fi

	aliases=
	cf_source=\`basename \$i\`
	inalias=\$cf_source
	test ! -f \$inalias && inalias="\$srcdir/\$inalias"
	if test ! -f \$inalias ; then
		echo .. skipped \$cf_source
d8125 1
a8125 1
	aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u\`
d8146 11
d8158 7
a8165 1
fi
d8167 3
d8171 1
a8171 1
	sed	-f $cf_man_alias \\
d8173 1
a8233 1
		test -d \$cf_subdir\${section} &&
d8275 2
a8276 5
		test -f \$cf_target && (
			echo \$verb \$cf_target
			rm -f \$cf_target
		)
		test -d \$cf_subdir\${section} &&
d8311 1
a8311 1
echo "$as_me:8446: checking if you want to build with function extensions" >&5
d8321 1
a8321 1
echo "$as_me:8456: result: $with_ext_funcs" >&5
d8358 1
a8358 1
echo "$as_me:8493: checking for extended use of const keyword" >&5
d8368 1
a8368 1
echo "$as_me:8503: result: $with_ext_const" >&5
d8375 1
a8375 1
echo "$as_me:8510: checking if you want \$NCURSES_NO_PADDING code" >&5
d8385 1
a8385 1
echo "$as_me:8520: result: $with_no_padding" >&5
d8391 1
a8391 1
echo "$as_me:8526: checking for ANSI C header files" >&5
d8397 1
a8397 1
#line 8532 "configure"
d8405 1
a8405 1
if { (eval echo "$as_me:8540: \"$ac_cpp conftest.$ac_ext\"") >&5
d8411 1
a8411 1
  echo "$as_me:8546: \$? = $ac_status" >&5
d8433 1
a8433 1
#line 8568 "configure"
d8451 1
a8451 1
#line 8586 "configure"
d8472 1
a8472 1
#line 8607 "configure"
d8498 1
a8498 1
if { (eval echo "$as_me:8633: \"$ac_link\"") >&5
d8501 1
a8501 1
  echo "$as_me:8636: \$? = $ac_status" >&5
d8503 1
a8503 1
  { (eval echo "$as_me:8638: \"$ac_try\"") >&5
d8506 1
a8506 1
  echo "$as_me:8641: \$? = $ac_status" >&5
d8519 1
a8519 1
echo "$as_me:8654: result: $ac_cv_header_stdc" >&5
d8535 1
a8535 1
echo "$as_me:8670: checking for $ac_header" >&5
d8541 1
a8541 1
#line 8676 "configure"
d8547 1
a8547 1
if { (eval echo "$as_me:8682: \"$ac_compile\"") >&5
d8550 1
a8550 1
  echo "$as_me:8685: \$? = $ac_status" >&5
d8553 1
a8553 1
  { (eval echo "$as_me:8688: \"$ac_try\"") >&5
d8556 1
a8556 1
  echo "$as_me:8691: \$? = $ac_status" >&5
d8566 1
a8566 1
echo "$as_me:8701: result: `eval echo '${'$as_ac_Header'}'`" >&5
d8576 1
a8576 1
echo "$as_me:8711: checking for signed char" >&5
d8582 1
a8582 1
#line 8717 "configure"
d8597 1
a8597 1
if { (eval echo "$as_me:8732: \"$ac_compile\"") >&5
d8600 1
a8600 1
  echo "$as_me:8735: \$? = $ac_status" >&5
d8603 1
a8603 1
  { (eval echo "$as_me:8738: \"$ac_try\"") >&5
d8606 1
a8606 1
  echo "$as_me:8741: \$? = $ac_status" >&5
d8616 1
a8616 1
echo "$as_me:8751: result: $ac_cv_type_signed_char" >&5
d8619 1
a8619 1
echo "$as_me:8754: checking size of signed char" >&5
d8628 1
a8628 1
#line 8763 "configure"
d8640 1
a8640 1
if { (eval echo "$as_me:8775: \"$ac_compile\"") >&5
d8643 1
a8643 1
  echo "$as_me:8778: \$? = $ac_status" >&5
d8646 1
a8646 1
  { (eval echo "$as_me:8781: \"$ac_try\"") >&5
d8649 1
a8649 1
  echo "$as_me:8784: \$? = $ac_status" >&5
d8654 1
a8654 1
#line 8789 "configure"
d8666 1
a8666 1
if { (eval echo "$as_me:8801: \"$ac_compile\"") >&5
d8669 1
a8669 1
  echo "$as_me:8804: \$? = $ac_status" >&5
d8672 1
a8672 1
  { (eval echo "$as_me:8807: \"$ac_try\"") >&5
d8675 1
a8675 1
  echo "$as_me:8810: \$? = $ac_status" >&5
d8691 1
a8691 1
#line 8826 "configure"
d8703 1
a8703 1
if { (eval echo "$as_me:8838: \"$ac_compile\"") >&5
d8706 1
a8706 1
  echo "$as_me:8841: \$? = $ac_status" >&5
d8709 1
a8709 1
  { (eval echo "$as_me:8844: \"$ac_try\"") >&5
d8712 1
a8712 1
  echo "$as_me:8847: \$? = $ac_status" >&5
d8728 1
a8728 1
#line 8863 "configure"
d8740 1
a8740 1
if { (eval echo "$as_me:8875: \"$ac_compile\"") >&5
d8743 1
a8743 1
  echo "$as_me:8878: \$? = $ac_status" >&5
d8746 1
a8746 1
  { (eval echo "$as_me:8881: \"$ac_try\"") >&5
d8749 1
a8749 1
  echo "$as_me:8884: \$? = $ac_status" >&5
d8762 1
a8762 1
  { { echo "$as_me:8897: error: cannot run test program while cross compiling" >&5
d8767 1
a8767 1
#line 8902 "configure"
d8783 1
a8783 1
if { (eval echo "$as_me:8918: \"$ac_link\"") >&5
d8786 1
a8786 1
  echo "$as_me:8921: \$? = $ac_status" >&5
d8788 1
a8788 1
  { (eval echo "$as_me:8923: \"$ac_try\"") >&5
d8791 1
a8791 1
  echo "$as_me:8926: \$? = $ac_status" >&5
d8807 1
a8807 1
echo "$as_me:8942: result: $ac_cv_sizeof_signed_char" >&5
d8818 1
a8818 1
echo "$as_me:8953: checking if you want to use signed Boolean array in term.h" >&5
d8828 1
a8828 1
echo "$as_me:8963: result: $with_signed_char" >&5
d8833 1
a8833 1
echo "$as_me:8968: checking if you want SIGWINCH handler" >&5
d8843 1
a8843 1
echo "$as_me:8978: result: $with_sigwinch" >&5
d8850 1
a8850 1
echo "$as_me:8985: checking if you want user-definable terminal capabilities like termcap" >&5
d8860 1
a8860 1
echo "$as_me:8995: result: $with_tcap_names" >&5
d8868 1
a8868 1
echo "$as_me:9003: checking if you want all development code" >&5
d8878 1
a8878 1
echo "$as_me:9013: result: $with_develop" >&5
d8882 1
a8882 1
echo "$as_me:9017: checking if you want hard-tabs code" >&5
d8892 1
a8892 1
echo "$as_me:9027: result: $enable_hard_tabs" >&5
d8899 1
a8899 1
echo "$as_me:9034: checking if you want limited support for xmc" >&5
d8909 1
a8909 1
echo "$as_me:9044: result: $enable_xmc_glitch" >&5
d8918 1
a8918 1
echo "$as_me:9053: checking if you do not want to assume colors are white-on-black" >&5
d8928 1
a8928 1
echo "$as_me:9063: result: $with_assumed_color" >&5
d8935 1
a8935 1
echo "$as_me:9070: checking if you want hashmap scrolling-optimization code" >&5
d8945 1
a8945 1
echo "$as_me:9080: result: $with_hashmap" >&5
d8952 1
a8952 1
echo "$as_me:9087: checking if you want colorfgbg code" >&5
d8962 1
a8962 1
echo "$as_me:9097: result: $with_colorfgbg" >&5
d8969 1
a8969 1
echo "$as_me:9104: checking if you want to use experimental extended colors" >&5
d8979 1
a8979 1
echo "$as_me:9114: result: $with_ext_colors" >&5
d8984 2
a8985 3
		{ { echo "$as_me:9119: error: This option applies only to wide-character library" >&5
echo "$as_me: error: This option applies only to wide-character library" >&2;}
   { (exit 1); exit 1; }; }
d8994 1
a8994 1
		{ echo "$as_me:9130: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
d9009 1
a9009 1
echo "$as_me:9145: checking if you want to use experimental extended mouse encoding" >&5
d9019 1
a9019 1
echo "$as_me:9155: result: $with_ext_mouse" >&5
d9030 1
a9030 178
		{ echo "$as_me:9166: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
		;;
	esac
fi

fi

# This is still experimental (20080329), but should ultimately be moved to
# the script-block --with-normal, etc.

echo "$as_me:9177: checking if you want to link with the pthread library" >&5
echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6

# Check whether --with-pthread or --without-pthread was given.
if test "${with_pthread+set}" = set; then
  withval="$with_pthread"
  with_pthread=$withval
else
  with_pthread=no
fi;
echo "$as_me:9187: result: $with_pthread" >&5
echo "${ECHO_T}$with_pthread" >&6

if test "$with_pthread" != no ; then
    echo "$as_me:9191: checking for pthread.h" >&5
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
if test "${ac_cv_header_pthread_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9197 "configure"
#include "confdefs.h"
#include <pthread.h>
_ACEOF
if { (eval echo "$as_me:9201: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:9207: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_pthread_h=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_pthread_h=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:9226: result: $ac_cv_header_pthread_h" >&5
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
if test $ac_cv_header_pthread_h = yes; then

        cat >>confdefs.h <<\EOF
#define HAVE_PTHREADS_H 1
EOF

        echo "$as_me:9234: checking for pthread_create in -lpthread" >&5
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 9242 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char pthread_create ();
int
main ()
{
pthread_create ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9261: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9264: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9267: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9270: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_pthread_pthread_create=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_pthread_pthread_create=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:9281: result: $ac_cv_lib_pthread_pthread_create" >&5
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
if test $ac_cv_lib_pthread_pthread_create = yes; then

            LIBS="-lpthread $LIBS"
            cat >>confdefs.h <<\EOF
#define HAVE_LIBPTHREADS 1
EOF

            with_pthread=yes

else

            { { echo "$as_me:9294: error: Cannot link with pthread library" >&5
echo "$as_me: error: Cannot link with pthread library" >&2;}
   { (exit 1); exit 1; }; }

fi

fi

fi

if test "$with_pthread" = "yes" ; then
    cat >>confdefs.h <<\EOF
#define USE_PTHREADS 1
EOF

    enable_reentrant=yes
fi

# Reentrant code has to be opaque; there's little advantage to making ncurses
# opaque outside of that, so there is no --enable-opaque option.  We can use
# this option without --with-pthreads, but this will be always set for
# pthreads.
echo "$as_me:9316: checking if you want experimental reentrant code" >&5
echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6

# Check whether --enable-reentrant or --disable-reentrant was given.
if test "${enable_reentrant+set}" = set; then
  enableval="$enable_reentrant"
  with_reentrant=$enableval
else
  with_reentrant=no
fi;
echo "$as_me:9326: result: $with_reentrant" >&5
echo "${ECHO_T}$with_reentrant" >&6
if test "$with_reentrant" = yes ; then
	cf_cv_enable_reentrant=1
	cf_cv_enable_opaque="NCURSES_INTERNALS"
	NCURSES_OPAQUE=1
	NCURSES_SIZE_T=int
	LIB_SUFFIX="t${LIB_SUFFIX}"
	cat >>confdefs.h <<\EOF
#define USE_REENTRANT 1
EOF

if test "${with_abi_version+set}" != set; then
	case $cf_cv_rel_version in
	5.*)
		cf_cv_rel_version=6.0
		cf_cv_abi_version=6
		{ echo "$as_me:9343: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
a9035 5
else
	cf_cv_enable_reentrant=0
	cf_cv_enable_opaque="NCURSES_OPAQUE"
	NCURSES_OPAQUE=0
	NCURSES_SIZE_T=short
d9038 1
a9038 1
echo "$as_me:9356: checking if you want experimental safe-sprintf code" >&5
d9048 1
a9048 1
echo "$as_me:9366: result: $with_safe_sprintf" >&5
d9057 1
a9057 1
echo "$as_me:9375: checking if you want to experiment without scrolling-hints code" >&5
d9067 1
a9067 1
echo "$as_me:9385: result: $with_scroll_hints" >&5
d9075 1
a9075 1
echo "$as_me:9393: checking if you want experimental wgetch-events code" >&5
d9085 1
a9085 1
echo "$as_me:9403: result: $with_wgetch_events" >&5
d9094 1
a9094 1
echo "$as_me:9412: checking if you want to display full commands during build" >&5
a9108 1
	test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
d9110 1
a9110 1
echo "$as_me:9429: result: $with_echo" >&5
d9114 1
a9114 1
echo "$as_me:9433: checking if you want to see compiler warnings" >&5
d9122 1
a9122 1
echo "$as_me:9441: result: $with_warnings" >&5
d9125 1
a9125 1
if test "x$with_warnings" = "xyes"; then
d9133 1
a9133 1
		echo "$as_me:9452: checking if this is really Intel C compiler" >&5
d9138 1
a9138 1
#line 9457 "configure"
d9155 1
a9155 1
if { (eval echo "$as_me:9474: \"$ac_compile\"") >&5
d9158 1
a9158 1
  echo "$as_me:9477: \$? = $ac_status" >&5
d9161 1
a9161 1
  { (eval echo "$as_me:9480: \"$ac_try\"") >&5
d9164 1
a9164 1
  echo "$as_me:9483: \$? = $ac_status" >&5
d9175 1
a9175 1
		echo "$as_me:9494: result: $INTEL_COMPILER" >&5
d9182 1
a9182 1
#line 9501 "${as_me-configure}"
d9200 1
a9200 1
	{ echo "$as_me:9519: checking for $CC warning options..." >&5
d9204 1
a9204 1
	for cf_opt in \
d9217 1
a9217 1
		if { (eval echo "$as_me:9536: \"$ac_compile\"") >&5
d9220 1
a9220 1
  echo "$as_me:9539: \$? = $ac_status" >&5
d9222 1
a9222 1
			test -n "$verbose" && echo "$as_me:9541: result: ... -$cf_opt" >&5
d9231 1
a9231 1
	{ echo "$as_me:9550: checking for $CC warning options..." >&5
d9248 1
a9248 1
		Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
d9251 1
a9251 1
		if { (eval echo "$as_me:9570: \"$ac_compile\"") >&5
d9254 1
a9254 1
  echo "$as_me:9573: \$? = $ac_status" >&5
d9256 1
a9256 1
			test -n "$verbose" && echo "$as_me:9575: result: ... -$cf_opt" >&5
a9266 2
echo "${as_me-configure}:9586: testing feature is broken in gcc $GCC_VERSION ..." 1>&5

d9285 1
a9285 1
		echo "$as_me:9606: checking if this is really Intel C++ compiler" >&5
d9290 1
a9290 1
#line 9611 "configure"
d9307 1
a9307 1
if { (eval echo "$as_me:9628: \"$ac_compile\"") >&5
d9310 1
a9310 1
  echo "$as_me:9631: \$? = $ac_status" >&5
d9313 1
a9313 1
  { (eval echo "$as_me:9634: \"$ac_try\"") >&5
d9316 1
a9316 1
  echo "$as_me:9637: \$? = $ac_status" >&5
d9327 1
a9327 1
		echo "$as_me:9648: result: $INTEL_CPLUSPLUS" >&5
d9341 1
a9341 1
#line 9662 "configure"
d9359 1
a9359 1
	{ echo "$as_me:9680: checking for $CC warning options..." >&5
d9376 1
a9376 1
		if { (eval echo "$as_me:9697: \"$ac_compile\"") >&5
d9379 1
a9379 1
  echo "$as_me:9700: \$? = $ac_status" >&5
d9381 1
a9381 1
			test -n "$verbose" && echo "$as_me:9702: result: ... -$cf_opt" >&5
d9390 1
a9390 1
	{ echo "$as_me:9711: checking for $CXX warning options..." >&5
d9419 1
a9419 1
		if { (eval echo "$as_me:9740: \"$ac_compile\"") >&5
d9422 1
a9422 1
  echo "$as_me:9743: \$? = $ac_status" >&5
d9424 1
a9424 1
			test -n "$verbose" && echo "$as_me:9745: result: ... -$cf_opt" >&5
d9428 1
a9428 1
			test -n "$verbose" && echo "$as_me:9749: result: ... no -$cf_opt" >&5
d9464 1
a9464 1
	{ echo "$as_me:9785: checking for $CC __attribute__ directives..." >&5
d9467 1
a9467 1
#line 9788 "${as_me-configure}"
d9505 1
a9505 1
		if { (eval echo "$as_me:9826: \"$ac_compile\"") >&5
d9508 1
a9508 1
  echo "$as_me:9829: \$? = $ac_status" >&5
d9510 1
a9510 1
			test -n "$verbose" && echo "$as_me:9831: result: ... $cf_attribute" >&5
d9522 1
a9522 1
echo "$as_me:9843: checking if you want to enable runtime assertions" >&5
d9532 1
a9532 1
echo "$as_me:9853: result: $with_assertions" >&5
d9550 1
a9550 1
echo "$as_me:9871: checking if you want to use dmalloc for testing" >&5
d9566 1
a9566 1
echo "$as_me:9887: result: ${with_dmalloc:-no}" >&5
d9650 1
a9650 1
	echo "$as_me:9971: checking for dmalloc.h" >&5
d9656 1
a9656 1
#line 9977 "configure"
d9660 1
a9660 1
if { (eval echo "$as_me:9981: \"$ac_cpp conftest.$ac_ext\"") >&5
d9666 1
a9666 1
  echo "$as_me:9987: \$? = $ac_status" >&5
d9685 1
a9685 1
echo "$as_me:10006: result: $ac_cv_header_dmalloc_h" >&5
d9689 1
a9689 1
echo "$as_me:10010: checking for dmalloc_debug in -ldmalloc" >&5
d9697 1
a9697 1
#line 10018 "configure"
d9716 1
a9716 1
if { (eval echo "$as_me:10037: \"$ac_link\"") >&5
d9719 1
a9719 1
  echo "$as_me:10040: \$? = $ac_status" >&5
d9722 1
a9722 1
  { (eval echo "$as_me:10043: \"$ac_try\"") >&5
d9725 1
a9725 1
  echo "$as_me:10046: \$? = $ac_status" >&5
d9736 1
a9736 1
echo "$as_me:10057: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
d9751 1
a9751 1
echo "$as_me:10072: checking if you want to use dbmalloc for testing" >&5
d9767 1
a9767 1
echo "$as_me:10088: result: ${with_dbmalloc:-no}" >&5
d9851 1
a9851 1
	echo "$as_me:10172: checking for dbmalloc.h" >&5
d9857 1
a9857 1
#line 10178 "configure"
d9861 1
a9861 1
if { (eval echo "$as_me:10182: \"$ac_cpp conftest.$ac_ext\"") >&5
d9867 1
a9867 1
  echo "$as_me:10188: \$? = $ac_status" >&5
d9886 1
a9886 1
echo "$as_me:10207: result: $ac_cv_header_dbmalloc_h" >&5
d9890 1
a9890 1
echo "$as_me:10211: checking for debug_malloc in -ldbmalloc" >&5
d9898 1
a9898 1
#line 10219 "configure"
d9917 1
a9917 1
if { (eval echo "$as_me:10238: \"$ac_link\"") >&5
d9920 1
a9920 1
  echo "$as_me:10241: \$? = $ac_status" >&5
d9923 1
a9923 1
  { (eval echo "$as_me:10244: \"$ac_try\"") >&5
d9926 1
a9926 1
  echo "$as_me:10247: \$? = $ac_status" >&5
d9937 1
a9937 1
echo "$as_me:10258: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
d9952 1
a9952 1
echo "$as_me:10273: checking if you want to use valgrind for testing" >&5
d9968 1
a9968 1
echo "$as_me:10289: result: ${with_valgrind:-no}" >&5
d10051 1
a10051 1
echo "$as_me:10372: checking if you want to perform memory-leak testing" >&5
d10061 1
a10061 1
echo "$as_me:10382: result: $with_no_leaks" >&5
d10106 1
a10106 1
echo "$as_me:10427: checking whether to add trace feature to all models" >&5
d10116 1
a10116 1
echo "$as_me:10437: result: $cf_with_trace" >&5
d10197 1
a10197 1
echo "$as_me:10518: checking for gettimeofday" >&5
d10203 1
a10203 1
#line 10524 "configure"
d10234 1
a10234 1
if { (eval echo "$as_me:10555: \"$ac_link\"") >&5
d10237 1
a10237 1
  echo "$as_me:10558: \$? = $ac_status" >&5
d10240 1
a10240 1
  { (eval echo "$as_me:10561: \"$ac_try\"") >&5
d10243 1
a10243 1
  echo "$as_me:10564: \$? = $ac_status" >&5
d10253 1
a10253 1
echo "$as_me:10574: result: $ac_cv_func_gettimeofday" >&5
d10262 1
a10262 1
echo "$as_me:10583: checking for gettimeofday in -lbsd" >&5
d10270 1
a10270 1
#line 10591 "configure"
d10289 1
a10289 1
if { (eval echo "$as_me:10610: \"$ac_link\"") >&5
d10292 1
a10292 1
  echo "$as_me:10613: \$? = $ac_status" >&5
d10295 1
a10295 1
  { (eval echo "$as_me:10616: \"$ac_try\"") >&5
d10298 1
a10298 1
  echo "$as_me:10619: \$? = $ac_status" >&5
d10309 1
a10309 1
echo "$as_me:10630: result: $ac_cv_lib_bsd_gettimeofday" >&5
d10321 1
a10321 1
echo "$as_me:10642: checking if -lm needed for math functions" >&5
d10328 1
a10328 1
#line 10649 "configure"
d10343 1
a10343 1
if { (eval echo "$as_me:10664: \"$ac_link\"") >&5
d10346 1
a10346 1
  echo "$as_me:10667: \$? = $ac_status" >&5
d10349 1
a10349 1
  { (eval echo "$as_me:10670: \"$ac_try\"") >&5
d10352 1
a10352 1
  echo "$as_me:10673: \$? = $ac_status" >&5
d10362 1
a10362 1
echo "$as_me:10683: result: $cf_cv_need_libm" >&5
d10370 1
a10370 1
echo "$as_me:10691: checking for ANSI C header files" >&5
d10376 1
a10376 1
#line 10697 "configure"
d10384 1
a10384 1
if { (eval echo "$as_me:10705: \"$ac_cpp conftest.$ac_ext\"") >&5
d10390 1
a10390 1
  echo "$as_me:10711: \$? = $ac_status" >&5
d10412 1
a10412 1
#line 10733 "configure"
d10430 1
a10430 1
#line 10751 "configure"
d10451 1
a10451 1
#line 10772 "configure"
d10477 1
a10477 1
if { (eval echo "$as_me:10798: \"$ac_link\"") >&5
d10480 1
a10480 1
  echo "$as_me:10801: \$? = $ac_status" >&5
d10482 1
a10482 1
  { (eval echo "$as_me:10803: \"$ac_try\"") >&5
d10485 1
a10485 1
  echo "$as_me:10806: \$? = $ac_status" >&5
d10498 1
a10498 1
echo "$as_me:10819: result: $ac_cv_header_stdc" >&5
d10511 1
a10511 1
echo "$as_me:10832: checking for $ac_hdr that defines DIR" >&5
d10517 1
a10517 1
#line 10838 "configure"
d10532 1
a10532 1
if { (eval echo "$as_me:10853: \"$ac_compile\"") >&5
d10535 1
a10535 1
  echo "$as_me:10856: \$? = $ac_status" >&5
d10538 1
a10538 1
  { (eval echo "$as_me:10859: \"$ac_try\"") >&5
d10541 1
a10541 1
  echo "$as_me:10862: \$? = $ac_status" >&5
d10551 1
a10551 1
echo "$as_me:10872: result: `eval echo '${'$as_ac_Header'}'`" >&5
d10564 1
a10564 1
  echo "$as_me:10885: checking for opendir in -ldir" >&5
d10572 1
a10572 1
#line 10893 "configure"
d10591 1
a10591 1
if { (eval echo "$as_me:10912: \"$ac_link\"") >&5
d10594 1
a10594 1
  echo "$as_me:10915: \$? = $ac_status" >&5
d10597 1
a10597 1
  { (eval echo "$as_me:10918: \"$ac_try\"") >&5
d10600 1
a10600 1
  echo "$as_me:10921: \$? = $ac_status" >&5
d10611 1
a10611 1
echo "$as_me:10932: result: $ac_cv_lib_dir_opendir" >&5
d10618 1
a10618 1
  echo "$as_me:10939: checking for opendir in -lx" >&5
d10626 1
a10626 1
#line 10947 "configure"
d10645 1
a10645 1
if { (eval echo "$as_me:10966: \"$ac_link\"") >&5
d10648 1
a10648 1
  echo "$as_me:10969: \$? = $ac_status" >&5
d10651 1
a10651 1
  { (eval echo "$as_me:10972: \"$ac_try\"") >&5
d10654 1
a10654 1
  echo "$as_me:10975: \$? = $ac_status" >&5
d10665 1
a10665 1
echo "$as_me:10986: result: $ac_cv_lib_x_opendir" >&5
d10673 1
a10673 1
echo "$as_me:10994: checking whether time.h and sys/time.h may both be included" >&5
d10679 1
a10679 1
#line 11000 "configure"
d10695 1
a10695 1
if { (eval echo "$as_me:11016: \"$ac_compile\"") >&5
d10698 1
a10698 1
  echo "$as_me:11019: \$? = $ac_status" >&5
d10701 1
a10701 1
  { (eval echo "$as_me:11022: \"$ac_try\"") >&5
d10704 1
a10704 1
  echo "$as_me:11025: \$? = $ac_status" >&5
d10714 1
a10714 1
echo "$as_me:11035: result: $ac_cv_header_time" >&5
d10724 1
a10724 1
echo "$as_me:11045: checking for regular-expression headers" >&5
d10731 1
a10731 1
#line 11052 "configure"
d10749 1
a10749 1
if { (eval echo "$as_me:11070: \"$ac_link\"") >&5
d10752 1
a10752 1
  echo "$as_me:11073: \$? = $ac_status" >&5
d10755 1
a10755 1
  { (eval echo "$as_me:11076: \"$ac_try\"") >&5
d10758 1
a10758 1
  echo "$as_me:11079: \$? = $ac_status" >&5
d10766 1
a10766 1
#line 11087 "configure"
d10781 1
a10781 1
if { (eval echo "$as_me:11102: \"$ac_link\"") >&5
d10784 1
a10784 1
  echo "$as_me:11105: \$? = $ac_status" >&5
d10787 1
a10787 1
  { (eval echo "$as_me:11108: \"$ac_try\"") >&5
d10790 1
a10790 1
  echo "$as_me:11111: \$? = $ac_status" >&5
d10800 1
a10800 1
#line 11121 "configure"
d10815 1
a10815 1
if { (eval echo "$as_me:11136: \"$ac_link\"") >&5
d10818 1
a10818 1
  echo "$as_me:11139: \$? = $ac_status" >&5
d10821 1
a10821 1
  { (eval echo "$as_me:11142: \"$ac_try\"") >&5
d10824 1
a10824 1
  echo "$as_me:11145: \$? = $ac_status" >&5
d10840 1
a10840 1
echo "$as_me:11161: result: $cf_cv_regex" >&5
d10876 1
a10876 1
echo "$as_me:11197: checking for $ac_header" >&5
d10882 1
a10882 1
#line 11203 "configure"
d10886 1
a10886 1
if { (eval echo "$as_me:11207: \"$ac_cpp conftest.$ac_ext\"") >&5
d10892 1
a10892 1
  echo "$as_me:11213: \$? = $ac_status" >&5
d10911 1
a10911 1
echo "$as_me:11232: result: `eval echo '${'$as_ac_Header'}'`" >&5
d10925 1
a10925 1
echo "$as_me:11246: checking for main in -lcposix" >&5
d10933 1
a10933 1
#line 11254 "configure"
d10945 1
a10945 1
if { (eval echo "$as_me:11266: \"$ac_link\"") >&5
d10948 1
a10948 1
  echo "$as_me:11269: \$? = $ac_status" >&5
d10951 1
a10951 1
  { (eval echo "$as_me:11272: \"$ac_try\"") >&5
d10954 1
a10954 1
  echo "$as_me:11275: \$? = $ac_status" >&5
d10965 1
a10965 1
echo "$as_me:11286: result: $ac_cv_lib_cposix_main" >&5
d10976 1
a10976 1
	echo "$as_me:11297: checking for bzero in -linet" >&5
d10984 1
a10984 1
#line 11305 "configure"
d11003 1
a11003 1
if { (eval echo "$as_me:11324: \"$ac_link\"") >&5
d11006 1
a11006 1
  echo "$as_me:11327: \$? = $ac_status" >&5
d11009 1
a11009 1
  { (eval echo "$as_me:11330: \"$ac_try\"") >&5
d11012 1
a11012 1
  echo "$as_me:11333: \$? = $ac_status" >&5
d11023 1
a11023 1
echo "$as_me:11344: result: $ac_cv_lib_inet_bzero" >&5
d11030 1
a11030 1
echo "$as_me:11351: checking if sys/time.h works with sys/select.h" >&5
d11037 1
a11037 1
#line 11358 "configure"
d11057 1
a11057 1
if { (eval echo "$as_me:11378: \"$ac_compile\"") >&5
d11060 1
a11060 1
  echo "$as_me:11381: \$? = $ac_status" >&5
d11063 1
a11063 1
  { (eval echo "$as_me:11384: \"$ac_try\"") >&5
d11066 1
a11066 1
  echo "$as_me:11387: \$? = $ac_status" >&5
d11078 1
a11078 1
echo "$as_me:11399: result: $cf_cv_sys_time_select" >&5
d11092 1
a11092 1
echo "$as_me:11413: checking for $CC option to accept ANSI C" >&5
d11100 1
a11100 1
#line 11421 "configure"
d11149 1
a11149 1
if { (eval echo "$as_me:11470: \"$ac_compile\"") >&5
d11152 1
a11152 1
  echo "$as_me:11473: \$? = $ac_status" >&5
d11155 1
a11155 1
  { (eval echo "$as_me:11476: \"$ac_try\"") >&5
d11158 1
a11158 1
  echo "$as_me:11479: \$? = $ac_status" >&5
d11175 1
a11175 1
    echo "$as_me:11496: result: none needed" >&5
d11178 1
a11178 1
    echo "$as_me:11499: result: $ac_cv_prog_cc_stdc" >&5
d11183 1
a11183 1
echo "$as_me:11504: checking for an ANSI C-conforming const" >&5
d11189 1
a11189 1
#line 11510 "configure"
d11247 1
a11247 1
if { (eval echo "$as_me:11568: \"$ac_compile\"") >&5
d11250 1
a11250 1
  echo "$as_me:11571: \$? = $ac_status" >&5
d11253 1
a11253 1
  { (eval echo "$as_me:11574: \"$ac_try\"") >&5
d11256 1
a11256 1
  echo "$as_me:11577: \$? = $ac_status" >&5
d11266 1
a11266 1
echo "$as_me:11587: result: $ac_cv_c_const" >&5
d11276 1
a11276 1
echo "$as_me:11597: checking for inline" >&5
d11284 1
a11284 1
#line 11605 "configure"
d11293 1
a11293 1
if { (eval echo "$as_me:11614: \"$ac_compile\"") >&5
d11296 1
a11296 1
  echo "$as_me:11617: \$? = $ac_status" >&5
d11299 1
a11299 1
  { (eval echo "$as_me:11620: \"$ac_try\"") >&5
d11302 1
a11302 1
  echo "$as_me:11623: \$? = $ac_status" >&5
d11313 1
a11313 1
echo "$as_me:11634: result: $ac_cv_c_inline" >&5
d11330 91
a11420 9
  NCURSES_INLINE=inline
  if test "$INTEL_COMPILER" = yes
  then
    :
  elif test "$GCC" = yes
  then
    echo "$as_me:11657: checking if gcc supports options to tune inlining" >&5
echo $ECHO_N "checking if gcc supports options to tune inlining... $ECHO_C" >&6
if test "${cf_cv_gcc_inline+set}" = set; then
d11424 2
a11425 4
      cf_save_CFLAGS=$CFLAGS
      CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
      cat >conftest.$ac_ext <<_ACEOF
#line 11666 "configure"
d11427 1
a11427 1
inline int foo(void) { return 1; }
d11431 1
a11431 1
${cf_cv_main_return:-return} foo()
d11437 1
a11437 1
if { (eval echo "$as_me:11678: \"$ac_compile\"") >&5
d11440 1
a11440 1
  echo "$as_me:11681: \$? = $ac_status" >&5
d11443 1
a11443 1
  { (eval echo "$as_me:11684: \"$ac_try\"") >&5
d11446 1
a11446 1
  echo "$as_me:11687: \$? = $ac_status" >&5
d11448 1
a11448 1
  cf_cv_gcc_inline=yes
d11452 1
a11452 1
cf_cv_gcc_inline=no
a11454 1
      CFLAGS=$cf_save_CFLAGS
a11456 3
echo "$as_me:11699: result: $cf_cv_gcc_inline" >&5
echo "${ECHO_T}$cf_cv_gcc_inline" >&6
    if test "$cf_cv_gcc_inline" = yes ; then
d11458 14
a11471 4
cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=
d11473 5
a11477 9
for cf_add_cflags in --param max-inline-insns-single=1200
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
d11479 3
a11481 3
			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes
d11483 1
a11483 266
			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"

	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

    fi
  fi
fi

echo "$as_me:11775: checking for signal global datatype" >&5
echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
if test "${cf_cv_sig_atomic_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	for cf_type in \
		"volatile sig_atomic_t" \
		"sig_atomic_t" \
		"int"
	do
	cat >conftest.$ac_ext <<_ACEOF
#line 11787 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <signal.h>
#include <stdio.h>

extern $cf_type x;
$cf_type x;
static void handler(int sig)
{
	x = 5;
}
int
main ()
{
signal(SIGINT, handler);
		 x = 1
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11810: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11813: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11816: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11819: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_sig_atomic_t=$cf_type
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_sig_atomic_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
		test "$cf_cv_sig_atomic_t" != no && break
	done

fi

echo "$as_me:11833: result: $cf_cv_sig_atomic_t" >&5
echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
#define SIG_ATOMIC_T $cf_cv_sig_atomic_t
EOF

if test $NCURSES_CHTYPE = auto ; then

echo "$as_me:11841: checking for type of chtype" >&5
echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
if test "${cf_cv_typeof_chtype+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

		if test "$cross_compiling" = yes; then
  cf_cv_typeof_chtype=long
else
  cat >conftest.$ac_ext <<_ACEOF
#line 11851 "configure"
#include "confdefs.h"

#define WANT_BITS 31
#include <stdio.h>
int main()
{
	FILE *fp = fopen("cf_test.out", "w");
	if (fp != 0) {
		char *result = "long";
		if (sizeof(unsigned long) > sizeof(unsigned int)) {
			int n;
			unsigned int x, y;
			for (n = 0; n < WANT_BITS; n++) {
				x = (1 << n);
				y = (x >> n);
				if (y != 1 || x == 0) {
					x = 0;
					break;
				}
			}
			/*
			 * If x is nonzero, an int is big enough for the bits
			 * that we want.
			 */
			result = (x != 0) ? "int" : "long";
		}
		fputs(result, fp);
		fclose(fp);
	}
	${cf_cv_main_return:-return}(0);
}

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:11886: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:11889: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:11891: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11894: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_typeof_chtype=`cat cf_test.out`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_typeof_chtype=long
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
		rm -f cf_test.out

fi

echo "$as_me:11909: result: $cf_cv_typeof_chtype" >&5
echo "${ECHO_T}$cf_cv_typeof_chtype" >&6

cat >>confdefs.h <<EOF
#define TYPEOF_CHTYPE $cf_cv_typeof_chtype
EOF

else
	cf_cv_typeof_chtype=$NCURSES_CHTYPE
fi
test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""

echo "$as_me:11921: checking if unsigned literals are legal" >&5
echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
if test "${cf_cv_unsigned_literals+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	cat >conftest.$ac_ext <<_ACEOF
#line 11928 "configure"
#include "confdefs.h"

int
main ()
{
long x = 1L + 1UL + 1U + 1
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11940: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11943: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11946: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11949: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_unsigned_literals=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_unsigned_literals=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

fi

echo "$as_me:11961: result: $cf_cv_unsigned_literals" >&5
echo "${ECHO_T}$cf_cv_unsigned_literals" >&6

cf_cv_1UL="1"
test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
test ".$cf_cv_typeof_chtype"    = .long && cf_cv_1UL="${cf_cv_1UL}L"

if test $NCURSES_MMASK_T = auto ; then
	cf_cv_typeof_mmask_t=long
else
	cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
fi
test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""

###	Checks for external-data

echo "$as_me:11977: checking if external errno is declared" >&5
echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
if test "${cf_cv_dcl_errno+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    cat >conftest.$ac_ext <<_ACEOF
#line 11984 "configure"
#include "confdefs.h"

#ifdef HAVE_STDLIB_H
d11498 1
a11498 1
if { (eval echo "$as_me:12002: \"$ac_compile\"") >&5
d11501 1
a11501 1
  echo "$as_me:12005: \$? = $ac_status" >&5
d11504 1
a11504 1
  { (eval echo "$as_me:12008: \"$ac_try\"") >&5
d11507 1
a11507 1
  echo "$as_me:12011: \$? = $ac_status" >&5
d11518 1
a11518 1
echo "$as_me:12022: result: $cf_cv_dcl_errno" >&5
d11533 1
a11533 1
echo "$as_me:12037: checking if external errno exists" >&5
d11540 1
a11540 1
#line 12044 "configure"
d11555 1
a11555 1
if { (eval echo "$as_me:12059: \"$ac_link\"") >&5
d11558 1
a11558 1
  echo "$as_me:12062: \$? = $ac_status" >&5
d11561 1
a11561 1
  { (eval echo "$as_me:12065: \"$ac_try\"") >&5
d11564 1
a11564 1
  echo "$as_me:12068: \$? = $ac_status" >&5
d11575 1
a11575 1
echo "$as_me:12079: result: $cf_cv_have_errno" >&5
d11588 1
a11588 1
echo "$as_me:12092: checking if data-only library module links" >&5
d11596 1
a11596 1
#line 12100 "configure"
d11599 1
a11599 1
	if { (eval echo "$as_me:12103: \"$ac_compile\"") >&5
d11602 1
a11602 1
  echo "$as_me:12106: \$? = $ac_status" >&5
d11609 1
a11609 1
#line 12113 "configure"
d11622 1
a11622 1
	if { (eval echo "$as_me:12126: \"$ac_compile\"") >&5
d11625 1
a11625 1
  echo "$as_me:12129: \$? = $ac_status" >&5
d11638 1
a11638 1
#line 12142 "configure"
d11649 1
a11649 1
if { (eval echo "$as_me:12153: \"$ac_link\"") >&5
d11652 1
a11652 1
  echo "$as_me:12156: \$? = $ac_status" >&5
d11654 1
a11654 1
  { (eval echo "$as_me:12158: \"$ac_try\"") >&5
d11657 1
a11657 1
  echo "$as_me:12161: \$? = $ac_status" >&5
d11672 1
a11672 1
echo "$as_me:12176: result: $cf_cv_link_dataonly" >&5
d11707 1
a11707 1
echo "$as_me:12211: checking for $ac_func" >&5
d11713 1
a11713 1
#line 12217 "configure"
d11744 1
a11744 1
if { (eval echo "$as_me:12248: \"$ac_link\"") >&5
d11747 1
a11747 1
  echo "$as_me:12251: \$? = $ac_status" >&5
d11750 1
a11750 1
  { (eval echo "$as_me:12254: \"$ac_try\"") >&5
d11753 1
a11753 1
  echo "$as_me:12257: \$? = $ac_status" >&5
d11763 1
a11763 1
echo "$as_me:12267: result: `eval echo '${'$as_ac_var'}'`" >&5
d11775 1
a11775 1
echo "$as_me:12279: checking for terminal-capability database functions" >&5
d11782 1
a11782 1
#line 12286 "configure"
d11802 1
a11802 1
if { (eval echo "$as_me:12306: \"$ac_link\"") >&5
d11805 1
a11805 1
  echo "$as_me:12309: \$? = $ac_status" >&5
d11808 1
a11808 1
  { (eval echo "$as_me:12312: \"$ac_try\"") >&5
d11811 1
a11811 1
  echo "$as_me:12315: \$? = $ac_status" >&5
d11823 1
a11823 1
echo "$as_me:12327: result: $cf_cv_cgetent" >&5
d11831 1
a11831 1
echo "$as_me:12335: checking for isascii" >&5
d11838 1
a11838 1
#line 12342 "configure"
d11850 1
a11850 1
if { (eval echo "$as_me:12354: \"$ac_link\"") >&5
d11853 1
a11853 1
  echo "$as_me:12357: \$? = $ac_status" >&5
d11856 1
a11856 1
  { (eval echo "$as_me:12360: \"$ac_try\"") >&5
d11859 1
a11859 1
  echo "$as_me:12363: \$? = $ac_status" >&5
d11870 1
a11870 1
echo "$as_me:12374: result: $cf_cv_have_isascii" >&5
d11877 1
a11877 1
echo "$as_me:12381: checking whether sigaction needs _POSIX_SOURCE" >&5
d11880 1
a11880 1
#line 12384 "configure"
d11894 1
a11894 1
if { (eval echo "$as_me:12398: \"$ac_compile\"") >&5
d11897 1
a11897 1
  echo "$as_me:12401: \$? = $ac_status" >&5
d11900 1
a11900 1
  { (eval echo "$as_me:12404: \"$ac_try\"") >&5
d11903 1
a11903 1
  echo "$as_me:12407: \$? = $ac_status" >&5
d11911 1
a11911 1
#line 12415 "configure"
d11926 1
a11926 1
if { (eval echo "$as_me:12430: \"$ac_compile\"") >&5
d11929 1
a11929 1
  echo "$as_me:12433: \$? = $ac_status" >&5
d11932 1
a11932 1
  { (eval echo "$as_me:12436: \"$ac_try\"") >&5
d11935 1
a11935 1
  echo "$as_me:12439: \$? = $ac_status" >&5
d11950 1
a11950 1
echo "$as_me:12454: result: $sigact_bad" >&5
d11954 1
a11954 1
echo "$as_me:12458: checking if nanosleep really works" >&5
d11964 1
a11964 1
#line 12468 "configure"
d11989 1
a11989 1
if { (eval echo "$as_me:12493: \"$ac_link\"") >&5
d11992 1
a11992 1
  echo "$as_me:12496: \$? = $ac_status" >&5
d11994 1
a11994 1
  { (eval echo "$as_me:12498: \"$ac_try\"") >&5
d11997 1
a11997 1
  echo "$as_me:12501: \$? = $ac_status" >&5
d12009 1
a12009 1
echo "$as_me:12513: result: $cf_cv_func_nanosleep" >&5
d12023 1
a12023 1
echo "$as_me:12527: checking for $ac_header" >&5
d12029 1
a12029 1
#line 12533 "configure"
d12033 1
a12033 1
if { (eval echo "$as_me:12537: \"$ac_cpp conftest.$ac_ext\"") >&5
d12039 1
a12039 1
  echo "$as_me:12543: \$? = $ac_status" >&5
d12058 1
a12058 1
echo "$as_me:12562: result: `eval echo '${'$as_ac_Header'}'`" >&5
d12073 1
a12073 1
echo "$as_me:12577: checking for $ac_header" >&5
d12079 1
a12079 1
#line 12583 "configure"
d12083 1
a12083 1
if { (eval echo "$as_me:12587: \"$ac_cpp conftest.$ac_ext\"") >&5
d12089 1
a12089 1
  echo "$as_me:12593: \$? = $ac_status" >&5
d12108 1
a12108 1
echo "$as_me:12612: result: `eval echo '${'$as_ac_Header'}'`" >&5
d12126 1
a12126 1
	echo "$as_me:12630: checking whether termios.h needs _POSIX_SOURCE" >&5
d12129 1
a12129 1
#line 12633 "configure"
d12141 1
a12141 1
if { (eval echo "$as_me:12645: \"$ac_compile\"") >&5
d12144 1
a12144 1
  echo "$as_me:12648: \$? = $ac_status" >&5
d12147 1
a12147 1
  { (eval echo "$as_me:12651: \"$ac_try\"") >&5
d12150 1
a12150 1
  echo "$as_me:12654: \$? = $ac_status" >&5
d12158 1
a12158 1
#line 12662 "configure"
d12172 1
a12172 1
if { (eval echo "$as_me:12676: \"$ac_compile\"") >&5
d12175 1
a12175 1
  echo "$as_me:12679: \$? = $ac_status" >&5
d12178 1
a12178 1
  { (eval echo "$as_me:12682: \"$ac_try\"") >&5
d12181 1
a12181 1
  echo "$as_me:12685: \$? = $ac_status" >&5
d12196 1
a12196 1
	echo "$as_me:12700: result: $termios_bad" >&5
d12201 1
a12201 1
echo "$as_me:12705: checking for tcgetattr" >&5
d12208 1
a12208 1
#line 12712 "configure"
d12236 1
a12236 1
if { (eval echo "$as_me:12740: \"$ac_link\"") >&5
d12239 1
a12239 1
  echo "$as_me:12743: \$? = $ac_status" >&5
d12242 1
a12242 1
  { (eval echo "$as_me:12746: \"$ac_try\"") >&5
d12245 1
a12245 1
  echo "$as_me:12749: \$? = $ac_status" >&5
d12255 1
a12255 1
echo "$as_me:12759: result: $cf_cv_have_tcgetattr" >&5
d12261 1
a12261 1
echo "$as_me:12765: checking for vsscanf function or workaround" >&5
d12268 1
a12268 1
#line 12772 "configure"
d12284 1
a12284 1
if { (eval echo "$as_me:12788: \"$ac_link\"") >&5
d12287 1
a12287 1
  echo "$as_me:12791: \$? = $ac_status" >&5
d12290 1
a12290 1
  { (eval echo "$as_me:12794: \"$ac_try\"") >&5
d12293 1
a12293 1
  echo "$as_me:12797: \$? = $ac_status" >&5
d12301 1
a12301 1
#line 12805 "configure"
d12323 1
a12323 1
if { (eval echo "$as_me:12827: \"$ac_link\"") >&5
d12326 1
a12326 1
  echo "$as_me:12830: \$? = $ac_status" >&5
d12329 1
a12329 1
  { (eval echo "$as_me:12833: \"$ac_try\"") >&5
d12332 1
a12332 1
  echo "$as_me:12836: \$? = $ac_status" >&5
d12340 1
a12340 1
#line 12844 "configure"
d12362 1
a12362 1
if { (eval echo "$as_me:12866: \"$ac_link\"") >&5
d12365 1
a12365 1
  echo "$as_me:12869: \$? = $ac_status" >&5
d12368 1
a12368 1
  { (eval echo "$as_me:12872: \"$ac_try\"") >&5
d12371 1
a12371 1
  echo "$as_me:12875: \$? = $ac_status" >&5
d12386 1
a12386 1
echo "$as_me:12890: result: $cf_cv_func_vsscanf" >&5
d12404 1
a12404 1
echo "$as_me:12908: checking for working mkstemp" >&5
d12412 1
a12412 1
  echo "$as_me:12916: checking for mkstemp" >&5
d12418 1
a12418 1
#line 12922 "configure"
d12449 1
a12449 1
if { (eval echo "$as_me:12953: \"$ac_link\"") >&5
d12452 1
a12452 1
  echo "$as_me:12956: \$? = $ac_status" >&5
d12455 1
a12455 1
  { (eval echo "$as_me:12959: \"$ac_try\"") >&5
d12458 1
a12458 1
  echo "$as_me:12962: \$? = $ac_status" >&5
d12468 1
a12468 1
echo "$as_me:12972: result: $ac_cv_func_mkstemp" >&5
d12473 1
a12473 1
#line 12977 "configure"
d12511 1
a12511 1
if { (eval echo "$as_me:13015: \"$ac_link\"") >&5
d12514 1
a12514 1
  echo "$as_me:13018: \$? = $ac_status" >&5
d12516 1
a12516 1
  { (eval echo "$as_me:13020: \"$ac_try\"") >&5
d12519 1
a12519 1
  echo "$as_me:13023: \$? = $ac_status" >&5
d12534 1
a12534 1
echo "$as_me:13038: result: $cf_cv_func_mkstemp" >&5
d12552 1
a12552 1
	{ echo "$as_me:13056: WARNING: cross compiling: assume setvbuf params not reversed" >&5
d12555 1
a12555 1
	echo "$as_me:13059: checking whether setvbuf arguments are reversed" >&5
d12561 1
a12561 1
  { { echo "$as_me:13065: error: cannot run test program while cross compiling" >&5
d12566 1
a12566 1
#line 13070 "configure"
d12583 1
a12583 1
if { (eval echo "$as_me:13087: \"$ac_link\"") >&5
d12586 1
a12586 1
  echo "$as_me:13090: \$? = $ac_status" >&5
d12588 1
a12588 1
  { (eval echo "$as_me:13092: \"$ac_try\"") >&5
d12591 1
a12591 1
  echo "$as_me:13095: \$? = $ac_status" >&5
d12604 1
a12604 1
echo "$as_me:13108: result: $ac_cv_func_setvbuf_reversed" >&5
d12615 1
a12615 1
echo "$as_me:13119: checking return type of signal handlers" >&5
d12621 1
a12621 1
#line 13125 "configure"
d12643 1
a12643 1
if { (eval echo "$as_me:13147: \"$ac_compile\"") >&5
d12646 1
a12646 1
  echo "$as_me:13150: \$? = $ac_status" >&5
d12649 1
a12649 1
  { (eval echo "$as_me:13153: \"$ac_try\"") >&5
d12652 1
a12652 1
  echo "$as_me:13156: \$? = $ac_status" >&5
d12662 1
a12662 1
echo "$as_me:13166: result: $ac_cv_type_signal" >&5
d12669 1
a12669 1
echo "$as_me:13173: checking for type sigaction_t" >&5
d12676 1
a12676 1
#line 13180 "configure"
d12689 1
a12689 1
if { (eval echo "$as_me:13193: \"$ac_compile\"") >&5
d12692 1
a12692 1
  echo "$as_me:13196: \$? = $ac_status" >&5
d12695 1
a12695 1
  { (eval echo "$as_me:13199: \"$ac_try\"") >&5
d12698 1
a12698 1
  echo "$as_me:13202: \$? = $ac_status" >&5
d12709 1
a12709 1
echo "$as_me:13213: result: $cf_cv_type_sigaction" >&5
d12715 1
a12715 1
echo "$as_me:13219: checking declaration of size-change" >&5
d12730 1
a12730 1
#line 13234 "configure"
d12774 1
a12774 1
if { (eval echo "$as_me:13278: \"$ac_compile\"") >&5
d12777 1
a12777 1
  echo "$as_me:13281: \$? = $ac_status" >&5
d12780 1
a12780 1
  { (eval echo "$as_me:13284: \"$ac_try\"") >&5
d12783 1
a12783 1
  echo "$as_me:13287: \$? = $ac_status" >&5
d12802 1
a12802 1
echo "$as_me:13306: result: $cf_cv_sizechange" >&5
d12819 1
a12819 1
echo "$as_me:13323: checking for memmove" >&5
d12825 1
a12825 1
#line 13329 "configure"
d12856 1
a12856 1
if { (eval echo "$as_me:13360: \"$ac_link\"") >&5
d12859 1
a12859 1
  echo "$as_me:13363: \$? = $ac_status" >&5
d12862 1
a12862 1
  { (eval echo "$as_me:13366: \"$ac_try\"") >&5
d12865 1
a12865 1
  echo "$as_me:13369: \$? = $ac_status" >&5
d12875 1
a12875 1
echo "$as_me:13379: result: $ac_cv_func_memmove" >&5
d12881 1
a12881 1
echo "$as_me:13385: checking for bcopy" >&5
d12887 1
a12887 1
#line 13391 "configure"
d12918 1
a12918 1
if { (eval echo "$as_me:13422: \"$ac_link\"") >&5
d12921 1
a12921 1
  echo "$as_me:13425: \$? = $ac_status" >&5
d12924 1
a12924 1
  { (eval echo "$as_me:13428: \"$ac_try\"") >&5
d12927 1
a12927 1
  echo "$as_me:13431: \$? = $ac_status" >&5
d12937 1
a12937 1
echo "$as_me:13441: result: $ac_cv_func_bcopy" >&5
d12941 1
a12941 1
	echo "$as_me:13445: checking if bcopy does overlapping moves" >&5
d12951 1
a12951 1
#line 13455 "configure"
d12965 1
a12965 1
if { (eval echo "$as_me:13469: \"$ac_link\"") >&5
d12968 1
a12968 1
  echo "$as_me:13472: \$? = $ac_status" >&5
d12970 1
a12970 1
  { (eval echo "$as_me:13474: \"$ac_try\"") >&5
d12973 1
a12973 1
  echo "$as_me:13477: \$? = $ac_status" >&5
d12986 1
a12986 1
echo "$as_me:13490: result: $cf_cv_good_bcopy" >&5
d13007 1
a13007 1
echo "$as_me:13511: checking if poll really works" >&5
d13017 1
a13017 1
#line 13521 "configure"
d13038 1
a13038 1
if { (eval echo "$as_me:13542: \"$ac_link\"") >&5
d13041 1
a13041 1
  echo "$as_me:13545: \$? = $ac_status" >&5
d13043 1
a13043 1
  { (eval echo "$as_me:13547: \"$ac_try\"") >&5
d13046 1
a13046 1
  echo "$as_me:13550: \$? = $ac_status" >&5
d13058 1
a13058 1
echo "$as_me:13562: result: $cf_cv_working_poll" >&5
a13063 129
# special check for test/ditto.c

echo "$as_me:13570: checking for openpty in -lutil" >&5
echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
if test "${ac_cv_lib_util_openpty+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lutil  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 13578 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char openpty ();
int
main ()
{
openpty ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13597: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13600: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13603: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13606: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_util_openpty=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_util_openpty=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:13617: result: $ac_cv_lib_util_openpty" >&5
echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
if test $ac_cv_lib_util_openpty = yes; then
  cf_cv_lib_util=yes
else
  cf_cv_lib_util=no
fi

echo "$as_me:13625: checking for openpty header" >&5
echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
if test "${cf_cv_func_openpty+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    cf_save_LIBS="$LIBS"
    test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
    for cf_header in pty.h libutil.h util.h
    do
    cat >conftest.$ac_ext <<_ACEOF
#line 13636 "configure"
#include "confdefs.h"

#include <$cf_header>

int
main ()
{

    int x = openpty((int *)0, (int *)0, (char *)0,
                   (struct termios *)0, (struct winsize *)0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13653: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13656: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13659: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13662: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

        cf_cv_func_openpty=$cf_header
        break

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

        cf_cv_func_openpty=no

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    done
    LIBS="$cf_save_LIBS"

fi
echo "$as_me:13680: result: $cf_cv_func_openpty" >&5
echo "${ECHO_T}$cf_cv_func_openpty" >&6

if test "$cf_cv_func_openpty" != no ; then
    cat >>confdefs.h <<EOF
#define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
EOF

    cat >>confdefs.h <<\EOF
#define USE_XTERM_PTY 1
EOF

    if test "$cf_cv_lib_util" = yes ; then
        TEST_LIBS="-lutil $TEST_LIBS"
    fi
fi

d13069 1
a13069 114
case $with_hashed_db in #(vi
yes|*able*) #(vi
    ;;
*)
    if test -d "$with_hashed_db" ; then

if test -n "$with_hashed_db/include" ; then
  for cf_add_incdir in $with_hashed_db/include
  do
	while test $cf_add_incdir != /usr/include
	do
	  if test -d $cf_add_incdir
	  then
		cf_have_incdir=no
		if test -n "$CFLAGS$CPPFLAGS" ; then
		  # a loop is needed to ensure we can add subdirs of existing dirs
		  for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
			if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
			  cf_have_incdir=yes; break
			fi
		  done
		fi

		if test "$cf_have_incdir" = no ; then
          if test "$cf_add_incdir" = /usr/local/include ; then
			if test "$GCC" = yes
			then
			  cf_save_CPPFLAGS=$CPPFLAGS
			  CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
			  cat >conftest.$ac_ext <<_ACEOF
#line 13732 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
printf("Hello")
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13744: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13747: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13750: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13753: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_have_incdir=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
			  CPPFLAGS=$cf_save_CPPFLAGS
			fi
		  fi
		fi

		if test "$cf_have_incdir" = no ; then
		  test -n "$verbose" && echo "	adding $cf_add_incdir to include-path" 1>&6

echo "${as_me-configure}:13770: testing adding $cf_add_incdir to include-path ..." 1>&5

		  CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"

          cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
          test "$cf_top_incdir" = "$cf_add_incdir" && break
          cf_add_incdir="$cf_top_incdir"
		else
		  break
		fi
	  fi
	done
  done
fi

if test -n "$with_hashed_db/lib" ; then
  for cf_add_libdir in $with_hashed_db/lib
  do
    if test $cf_add_libdir = /usr/lib ; then
      :
    elif test -d $cf_add_libdir
    then
      cf_have_libdir=no
      if test -n "$LDFLAGS$LIBS" ; then
        # a loop is needed to ensure we can add subdirs of existing dirs
        for cf_test_libdir in $LDFLAGS $LIBS ; do
          if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
            cf_have_libdir=yes; break
          fi
        done
      fi
      if test "$cf_have_libdir" = no ; then
        test -n "$verbose" && echo "	adding $cf_add_libdir to library-path" 1>&6

echo "${as_me-configure}:13804: testing adding $cf_add_libdir to library-path ..." 1>&5

        LDFLAGS="-L$cf_add_libdir $LDFLAGS"
      fi
    fi
  done
fi

    fi
esac

echo "$as_me:13815: checking for db.h" >&5
d13075 1
a13075 1
#line 13821 "configure"
d13079 1
a13079 1
if { (eval echo "$as_me:13825: \"$ac_cpp conftest.$ac_ext\"") >&5
d13085 1
a13085 1
  echo "$as_me:13831: \$? = $ac_status" >&5
d13104 1
a13104 1
echo "$as_me:13850: result: $ac_cv_header_db_h" >&5
d13108 1
a13108 1
echo "$as_me:13854: checking for version of db" >&5
d13116 1
a13116 1
for cf_db_version in 1 2 3 4 5
d13119 1
a13119 1
echo "${as_me-configure}:13865: testing checking for db version $cf_db_version ..." 1>&5
d13122 1
a13122 1
#line 13868 "configure"
d13152 1
a13152 1
if { (eval echo "$as_me:13898: \"$ac_compile\"") >&5
d13155 1
a13155 1
  echo "$as_me:13901: \$? = $ac_status" >&5
d13158 1
a13158 1
  { (eval echo "$as_me:13904: \"$ac_try\"") >&5
d13161 1
a13161 1
  echo "$as_me:13907: \$? = $ac_status" >&5
d13175 1
a13175 1
echo "$as_me:13921: result: $cf_cv_hashed_db_version" >&5
d13179 1
a13179 1
	{ { echo "$as_me:13925: error: Cannot determine version of db" >&5
d13184 1
a13184 1
echo "$as_me:13930: checking for db libraries" >&5
d13191 1
a13191 1
for cf_db_libs in db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
d13198 1
a13198 1
echo "${as_me-configure}:13944: testing checking for library "$cf_db_libs" ..." 1>&5
d13201 1
a13201 1
#line 13947 "configure"
d13256 1
a13256 1
if { (eval echo "$as_me:14002: \"$ac_link\"") >&5
d13259 1
a13259 1
  echo "$as_me:14005: \$? = $ac_status" >&5
d13262 1
a13262 1
  { (eval echo "$as_me:14008: \"$ac_try\"") >&5
d13265 1
a13265 1
  echo "$as_me:14011: \$? = $ac_status" >&5
d13285 1
a13285 1
echo "$as_me:14031: result: $cf_cv_hashed_db_libs" >&5
d13289 1
a13289 1
		{ { echo "$as_me:14035: error: Cannot determine library for db" >&5
d13299 1
a13299 1
	{ { echo "$as_me:14045: error: Cannot find db.h" >&5
d13314 1
a13314 1
echo "$as_me:14060: checking if we should include stdbool.h" >&5
d13322 1
a13322 1
#line 14068 "configure"
d13334 1
a13334 1
if { (eval echo "$as_me:14080: \"$ac_compile\"") >&5
d13337 1
a13337 1
  echo "$as_me:14083: \$? = $ac_status" >&5
d13340 1
a13340 1
  { (eval echo "$as_me:14086: \"$ac_try\"") >&5
d13343 1
a13343 1
  echo "$as_me:14089: \$? = $ac_status" >&5
d13350 1
a13350 1
#line 14096 "configure"
d13366 1
a13366 1
if { (eval echo "$as_me:14112: \"$ac_compile\"") >&5
d13369 1
a13369 1
  echo "$as_me:14115: \$? = $ac_status" >&5
d13372 1
a13372 1
  { (eval echo "$as_me:14118: \"$ac_try\"") >&5
d13375 1
a13375 1
  echo "$as_me:14121: \$? = $ac_status" >&5
d13389 1
a13389 1
then	echo "$as_me:14135: result: yes" >&5
d13391 1
a13391 1
else	echo "$as_me:14137: result: no" >&5
d13395 1
a13395 1
echo "$as_me:14141: checking for builtin bool type" >&5
d13403 1
a13403 1
#line 14149 "configure"
d13418 1
a13418 1
if { (eval echo "$as_me:14164: \"$ac_compile\"") >&5
d13421 1
a13421 1
  echo "$as_me:14167: \$? = $ac_status" >&5
d13424 1
a13424 1
  { (eval echo "$as_me:14170: \"$ac_try\"") >&5
d13427 1
a13427 1
  echo "$as_me:14173: \$? = $ac_status" >&5
d13440 1
a13440 1
then	echo "$as_me:14186: result: yes" >&5
d13442 1
a13442 1
else	echo "$as_me:14188: result: no" >&5
d13464 1
a13464 1
echo "$as_me:14210: checking for library $cf_stdcpp_libname" >&5
d13473 1
a13473 1
#line 14219 "configure"
d13489 1
a13489 1
if { (eval echo "$as_me:14235: \"$ac_link\"") >&5
d13492 1
a13492 1
  echo "$as_me:14238: \$? = $ac_status" >&5
d13495 1
a13495 1
  { (eval echo "$as_me:14241: \"$ac_try\"") >&5
d13498 1
a13498 1
  echo "$as_me:14244: \$? = $ac_status" >&5
d13510 1
a13510 1
echo "$as_me:14256: result: $cf_cv_libstdcpp" >&5
d13515 1
a13515 1
	echo "$as_me:14261: checking whether $CXX understands -c and -o together" >&5
d13531 1
a13531 1
if { (eval echo "$as_me:14277: \"$ac_try\"") >&5
d13534 1
a13534 1
  echo "$as_me:14280: \$? = $ac_status" >&5
d13536 1
a13536 1
  test -f conftest2.$ac_objext && { (eval echo "$as_me:14282: \"$ac_try\"") >&5
d13539 1
a13539 1
  echo "$as_me:14285: \$? = $ac_status" >&5
d13550 1
a13550 1
  echo "$as_me:14296: result: yes" >&5
d13553 1
a13553 1
  echo "$as_me:14299: result: no" >&5
d13573 1
a13573 1
	echo "$as_me:14319: checking for lib$cf_gpp_libname" >&5
d13578 1
a13578 1
#line 14324 "configure"
d13592 1
a13592 1
if { (eval echo "$as_me:14338: \"$ac_link\"") >&5
d13595 1
a13595 1
  echo "$as_me:14341: \$? = $ac_status" >&5
d13598 1
a13598 1
  { (eval echo "$as_me:14344: \"$ac_try\"") >&5
d13601 1
a13601 1
  echo "$as_me:14347: \$? = $ac_status" >&5
d13620 1
a13620 1
#line 14366 "configure"
d13634 1
a13634 1
if { (eval echo "$as_me:14380: \"$ac_link\"") >&5
d13637 1
a13637 1
  echo "$as_me:14383: \$? = $ac_status" >&5
d13640 1
a13640 1
  { (eval echo "$as_me:14386: \"$ac_try\"") >&5
d13643 1
a13643 1
  echo "$as_me:14389: \$? = $ac_status" >&5
d13660 1
a13660 1
	echo "$as_me:14406: result: $cf_cxx_library" >&5
d13676 1
a13676 1
echo "$as_me:14422: checking how to run the C++ preprocessor" >&5
d13693 1
a13693 1
#line 14439 "configure"
d13698 1
a13698 1
if { (eval echo "$as_me:14444: \"$ac_cpp conftest.$ac_ext\"") >&5
d13704 1
a13704 1
  echo "$as_me:14450: \$? = $ac_status" >&5
d13727 1
a13727 1
#line 14473 "configure"
d13731 1
a13731 1
if { (eval echo "$as_me:14477: \"$ac_cpp conftest.$ac_ext\"") >&5
d13737 1
a13737 1
  echo "$as_me:14483: \$? = $ac_status" >&5
d13774 1
a13774 1
echo "$as_me:14520: result: $CXXCPP" >&5
d13784 1
a13784 1
#line 14530 "configure"
d13789 1
a13789 1
if { (eval echo "$as_me:14535: \"$ac_cpp conftest.$ac_ext\"") >&5
d13795 1
a13795 1
  echo "$as_me:14541: \$? = $ac_status" >&5
d13818 1
a13818 1
#line 14564 "configure"
d13822 1
a13822 1
if { (eval echo "$as_me:14568: \"$ac_cpp conftest.$ac_ext\"") >&5
d13828 1
a13828 1
  echo "$as_me:14574: \$? = $ac_status" >&5
d13856 1
a13856 1
  { { echo "$as_me:14602: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
d13868 1
a13868 1
for ac_header in iostream typeinfo
d13871 1
a13871 1
echo "$as_me:14617: checking for $ac_header" >&5
d13877 1
a13877 1
#line 14623 "configure"
d13881 1
a13881 1
if { (eval echo "$as_me:14627: \"$ac_cpp conftest.$ac_ext\"") >&5
d13887 1
a13887 1
  echo "$as_me:14633: \$? = $ac_status" >&5
d13906 1
a13906 1
echo "$as_me:14652: result: `eval echo '${'$as_ac_Header'}'`" >&5
d13916 1
a13916 1
echo "$as_me:14662: checking if we should include stdbool.h" >&5
d13924 1
a13924 1
#line 14670 "configure"
d13936 1
a13936 1
if { (eval echo "$as_me:14682: \"$ac_compile\"") >&5
d13939 1
a13939 1
  echo "$as_me:14685: \$? = $ac_status" >&5
d13942 1
a13942 1
  { (eval echo "$as_me:14688: \"$ac_try\"") >&5
d13945 1
a13945 1
  echo "$as_me:14691: \$? = $ac_status" >&5
d13952 1
a13952 1
#line 14698 "configure"
d13968 1
a13968 1
if { (eval echo "$as_me:14714: \"$ac_compile\"") >&5
d13971 1
a13971 1
  echo "$as_me:14717: \$? = $ac_status" >&5
d13974 1
a13974 1
  { (eval echo "$as_me:14720: \"$ac_try\"") >&5
d13977 1
a13977 1
  echo "$as_me:14723: \$? = $ac_status" >&5
d13991 1
a13991 1
then	echo "$as_me:14737: result: yes" >&5
d13993 1
a13993 1
else	echo "$as_me:14739: result: no" >&5
d13997 1
a13997 1
echo "$as_me:14743: checking for builtin bool type" >&5
d14005 1
a14005 1
#line 14751 "configure"
d14020 1
a14020 1
if { (eval echo "$as_me:14766: \"$ac_compile\"") >&5
d14023 1
a14023 1
  echo "$as_me:14769: \$? = $ac_status" >&5
d14026 1
a14026 1
  { (eval echo "$as_me:14772: \"$ac_try\"") >&5
d14029 1
a14029 1
  echo "$as_me:14775: \$? = $ac_status" >&5
d14042 1
a14042 1
then	echo "$as_me:14788: result: yes" >&5
d14044 1
a14044 1
else	echo "$as_me:14790: result: no" >&5
d14048 1
a14048 1
echo "$as_me:14794: checking for size of bool" >&5
d14059 1
a14059 1
#line 14805 "configure"
d14101 1
a14101 1
if { (eval echo "$as_me:14847: \"$ac_link\"") >&5
d14104 1
a14104 1
  echo "$as_me:14850: \$? = $ac_status" >&5
d14106 1
a14106 1
  { (eval echo "$as_me:14852: \"$ac_try\"") >&5
d14109 1
a14109 1
  echo "$as_me:14855: \$? = $ac_status" >&5
d14127 1
a14127 1
echo "$as_me:14873: result: $cf_cv_type_of_bool" >&5
d14133 1
a14133 1
	{ echo "$as_me:14879: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
d14138 1
a14138 1
echo "$as_me:14884: checking for special defines needed for etip.h" >&5
d14150 1
a14150 1
#line 14896 "configure"
d14164 1
a14164 1
if { (eval echo "$as_me:14910: \"$ac_compile\"") >&5
d14167 1
a14167 1
  echo "$as_me:14913: \$? = $ac_status" >&5
d14170 1
a14170 1
  { (eval echo "$as_me:14916: \"$ac_try\"") >&5
d14173 1
a14173 1
  echo "$as_me:14919: \$? = $ac_status" >&5
d14194 1
a14194 1
echo "$as_me:14940: result: $cf_result" >&5
d14199 1
a14199 1
echo "$as_me:14945: checking if $CXX accepts parameter initialization" >&5
d14216 1
a14216 1
#line 14962 "configure"
d14235 1
a14235 1
if { (eval echo "$as_me:14981: \"$ac_link\"") >&5
d14238 1
a14238 1
  echo "$as_me:14984: \$? = $ac_status" >&5
d14240 1
a14240 1
  { (eval echo "$as_me:14986: \"$ac_try\"") >&5
d14243 1
a14243 1
  echo "$as_me:14989: \$? = $ac_status" >&5
d14262 1
a14262 1
echo "$as_me:15008: result: $cf_cv_cpp_param_init" >&5
d14271 1
a14271 1
echo "$as_me:15017: checking if $CXX accepts static_cast" >&5
d14285 1
a14285 1
#line 15031 "configure"
d14329 1
a14329 1
if { (eval echo "$as_me:15075: \"$ac_compile\"") >&5
d14332 1
a14332 1
  echo "$as_me:15078: \$? = $ac_status" >&5
d14335 1
a14335 1
  { (eval echo "$as_me:15081: \"$ac_try\"") >&5
d14338 1
a14338 1
  echo "$as_me:15084: \$? = $ac_status" >&5
d14356 1
a14356 1
echo "$as_me:15102: result: $cf_cv_cpp_static_cast" >&5
d14365 183
d14587 1
a14587 1
echo "$as_me:15150: checking for size of bool" >&5
d14598 1
a14598 1
#line 15161 "configure"
d14640 1
a14640 1
if { (eval echo "$as_me:15203: \"$ac_link\"") >&5
d14643 1
a14643 1
  echo "$as_me:15206: \$? = $ac_status" >&5
d14645 1
a14645 1
  { (eval echo "$as_me:15208: \"$ac_try\"") >&5
d14648 1
a14648 1
  echo "$as_me:15211: \$? = $ac_status" >&5
d14666 1
a14666 1
echo "$as_me:15229: result: $cf_cv_type_of_bool" >&5
d14672 1
a14672 1
	{ echo "$as_me:15235: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
d14678 1
a14678 1
			echo "$as_me:15241: checking for fallback type of bool" >&5
d14684 1
a14684 1
			echo "$as_me:15247: result: $cf_cv_type_of_bool" >&5
a14709 9

if test "$cf_with_ada" != "no" ; then
    if test "$with_libtool" != "no"; then
	{ echo "$as_me:15276: WARNING: libtool does not support Ada - disabling feature" >&5
echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
	cf_with_ada=no
    fi
fi

d14714 1
a14714 1
echo "$as_me:15286: checking for $ac_word" >&5
d14729 1
a14729 1
echo "$as_me:15301: found $ac_dir/$ac_word" >&5
d14738 1
a14738 1
  echo "$as_me:15310: result: $gnat_exists" >&5
d14741 1
a14741 1
  echo "$as_me:15313: result: no" >&5
d14749 1
a14749 1
echo "$as_me:15321: checking for gnat version" >&5
d14753 1
a14753 1
echo "$as_me:15325: result: $cf_gnat_version" >&5
d14776 1
a14776 1
echo "$as_me:15348: checking for $ac_word" >&5
d14791 1
a14791 1
echo "$as_me:15363: found $ac_dir/$ac_word" >&5
d14800 1
a14800 1
  echo "$as_me:15372: result: $M4_exists" >&5
d14803 1
a14803 1
  echo "$as_me:15375: result: no" >&5
d14812 1
a14812 1
      echo "$as_me:15384: checking if GNAT works" >&5
d14840 1
a14840 1
      echo "$as_me:15412: result: $cf_cv_prog_gnat_correct" >&5
d14847 1
a14847 1
   echo "$as_me:15419: checking if GNAT pragma Unreferenced works" >&5
d14874 1
a14874 1
   echo "$as_me:15446: result: $cf_cv_pragma_unreferenced" >&5
d14900 1
a14900 2
fi; if test -n "$prefix/lib/ada/adainclude" ; then

d14926 1
a14926 1
  { { echo "$as_me:15499: error: expected a pathname, not \"$withval\"" >&5
a14931 1
fi
d14940 1
a14940 2
fi; if test -n "$prefix/lib/ada/adalib" ; then

d14966 1
a14966 1
  { { echo "$as_me:15541: error: expected a pathname, not \"$withval\"" >&5
a14971 1
fi
a14975 2
else
   cf_with_ada=no
d14978 3
a14980 11
### Construct the ncurses library-subsets, if any, from this set of keywords:
###	none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
###
### ticlib modules may be a separate library, otherwise contained in termlib.
### termlib modules may be a separate library, otherwise contained in ncurses.
###
### The of "+" or " " between the tokens controls the way the script
### chooses to split module lists into libraries.
###
### (see CF_LIB_RULES).
echo "$as_me:15566: checking for library subsets" >&5
a14981 13
LIB_SUBSETS=

if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
	LIB_SUBSETS="${LIB_SUBSETS}ticlib"
	if test "$with_ticlib" != no ; then
		LIB_SUBSETS="${LIB_SUBSETS} "
	else
		LIB_SUBSETS="${LIB_SUBSETS}+"
	fi
fi

LIB_SUBSETS="${LIB_SUBSETS}termlib"
test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
d14983 2
d14987 2
a14988 1
	LIB_SUBSETS="${LIB_SUBSETS}+"
a14989 1

d14993 1
a14993 2

echo "$as_me:15591: result: $LIB_SUBSETS" >&5
d15031 1
a15031 1
echo "$as_me:15629: checking default library suffix" >&5
d15042 1
a15042 1
echo "$as_me:15640: result: $DFT_ARG_SUFFIX" >&5
d15045 1
a15045 1
echo "$as_me:15643: checking default library-dependency suffix" >&5
a15066 1
DFT_LIB_SUFFIX=$DFT_DEP_SUFFIX
a15070 1
		DFT_LIB_SUFFIX=".dll"
d15074 1
a15074 1
echo "$as_me:15674: result: $DFT_DEP_SUFFIX" >&5
d15077 1
a15077 1
echo "$as_me:15677: checking default object directory" >&5
d15093 1
a15093 1
echo "$as_me:15693: result: $DFT_OBJ_SUBDIR" >&5
d15098 1
a15098 1
echo "$as_me:15698: checking c++ library-dependency suffix" >&5
d15124 1
a15124 1
echo "$as_me:15724: result: $CXX_LIB_SUFFIX" >&5
a15128 10
# do not want -ldl in build except as needed for -lncurses dependency
if test "$with_dlsym" = yes ; then
if test $DFT_LWR_MODEL = shared || \
   test $DFT_LWR_MODEL = libtool ; then

# remove dl library from $LIBS
LIBS=`echo "$LIBS" | sed -e 's/-ldl[ 	]//g' -e 's/-ldl$//'`

fi
fi
d15130 1
a15130 28

# TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
# do not need libdl
TICS_LIST=
if test "$with_dlsym" = yes ; then

# remove dl library from $SHLIB_LIST
TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ 	]//g' -e 's/-ldl$//'`

fi

if test "$with_ticlib" != no ; then

	if test "$with_ticlib" != yes ; then
		TICS_NAME=$with_ticlib
		TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TICS_LIB_SUFFIX="${with_ticlib}"
	else
		TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
		TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
		TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
	fi
	TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}"
else
	TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
fi

a15134 1
		TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
a15138 1
		TINFO_SUFFIX=${DFT_LIB_SUFFIX}
a15152 1
		TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
a15156 6
	# the next lines are needed for linking libtic over libncurses
	TINFO_NAME=${LIB_NAME}
	TINFO_SUFFIX=${DFT_LIB_SUFFIX}
	TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
	TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"

a15159 20
if test "$DFT_LWR_MODEL" = shared ; then
	case $cf_cv_system_name in #(vi
	cygwin*)
		# "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
		TINFO_SUFFIX=.dll
		;;
	esac
fi

if test "$with_dlsym" = yes ; then

# remove dl library from $TICS_LIST
TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ 	]//g' -e 's/-ldl$//'`

fi

if test "$DFT_LWR_MODEL" = "libtool"; then
    OBJEXT=lo
fi

d15163 1
a15163 37
case $DFT_LWR_MODEL in
normal|debug|profile)

if test "$GCC" = yes ; then
	LDFLAGS_STATIC=-static
	LDFLAGS_SHARED=-dynamic
else
	case $cf_cv_system_name in #(
	aix[45]*) 	#( from ld manpage
		LDFLAGS_STATIC=-bstatic
		LDFLAGS_SHARED=-bdynamic
		;;
	hpux*)		#( from ld manpage for hpux10.20, hpux11.11
		# We could also use just "archive" and "shared".
		LDFLAGS_STATIC=-Wl,-a,archive_shared
		LDFLAGS_SHARED=-Wl,-a,shared_archive
		;;
	irix*)		#( from ld manpage IRIX64
		LDFLAGS_STATIC=-Bstatic
		LDFLAGS_SHARED=-Bdynamic
		;;
	osf[45]*)	#( from ld manpage osf4.0d, osf5.1
		# alternative "-oldstyle_liblookup" (not in cc manpage)
		LDFLAGS_STATIC=-noso
		LDFLAGS_SHARED=-so_archive
		;;
	solaris2*)
		LDFLAGS_STATIC=-Bstatic
		LDFLAGS_SHARED=-Bdynamic
		;;
	esac
fi

	;;
esac

echo "$as_me:15865: checking where we will install curses.h" >&5
d15168 1
a15168 1
echo "$as_me:15870: result: $includedir" >&5
d15176 1
a15176 1
	{ echo "$as_me:15878: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
a15180 3
# used to separate tack out of the tree
NCURSES_TREE=

d15189 1
a15189 1
echo "$as_me:15894: checking for src modules" >&5
d15252 1
a15252 1
echo "$as_me:15957: result: $cf_cv_src_modules" >&5
a15286 4
if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
   SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses-config"
fi

a15393 73
### If we're building with rpath, try to link non-standard libs that way too.
if test "$DFT_LWR_MODEL" = "shared"; then

echo "$as_me:16106: checking for updated LDFLAGS" >&5
echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
if test -n "$LDFLAGS" ; then
echo "$as_me:16109: result: maybe" >&5
echo "${ECHO_T}maybe" >&6
test -n "$verbose" && echo "	...checking LDFLAGS $LDFLAGS" 1>&6

echo "${as_me-configure}:16113: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5

test -n "$verbose" && echo "	...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6

echo "${as_me-configure}:16117: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5

case "$EXTRA_LDFLAGS" in #(vi
-Wl,-rpath,*) #(vi
    cf_rpath_hack="-Wl,-rpath,"
    ;;
-R\ *)
    cf_rpath_hack="-R "
    ;;
-R*)
    cf_rpath_hack="-R"
    ;;
*)
    cf_rpath_hack=
    ;;
esac
if test -n "$cf_rpath_hack" ; then
    cf_rpath_dst=
    for cf_rpath_src in $LDFLAGS
    do
        test -n "$verbose" && echo "	Filtering $cf_rpath_src" 1>&6

echo "${as_me-configure}:16139: testing Filtering $cf_rpath_src ..." 1>&5

        case $cf_rpath_src in #(vi
        -L*) #(vi
            if test "$cf_rpath_hack" = "-R " ; then
                cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e 's%-L%-R %'`
            else
                cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e s%-L%$cf_rpath_hack%`
            fi
            test -n "$verbose" && echo "	...Filter $cf_rpath_tmp" 1>&6

echo "${as_me-configure}:16150: testing ...Filter $cf_rpath_tmp ..." 1>&5

            EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
            ;;
        *)
            cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
            ;;
        esac
    done
    LDFLAGS=$cf_rpath_dst
    test -n "$verbose" && echo "	...checked LDFLAGS $LDFLAGS" 1>&6

echo "${as_me-configure}:16162: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5

    test -n "$verbose" && echo "	...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6

echo "${as_me-configure}:16166: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5

fi
else
echo "$as_me:16170: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi

d15498 1
a15498 1
{ echo "$as_me:16280: creating $CONFIG_STATUS" >&5
d15630 1
a15630 1
configured by $0, generated by GNU Autoconf 2.52.20080325,
d15674 1
a15674 1
    { { echo "$as_me:16456: error: ambiguous option: $1
d15693 1
a15693 1
  -*) { { echo "$as_me:16475: error: unrecognized option: $1
d15712 1
a15712 1
This file was extended by $as_me 2.52.20080325, executed with
a15749 4
TINFO_SUFFIX="$TINFO_SUFFIX"
TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
TICS_NAME="$TICS_NAME"
a15754 1
cf_cv_do_relink="$cf_cv_do_relink"
a15756 1
cf_cv_enable_opaque="$cf_cv_enable_opaque"
d15783 1
a15783 1
  *) { { echo "$as_me:16571: error: invalid argument: $ac_config_target" >&5
a15930 1
s,@@LIBTOOL_OPTS@@,$LIBTOOL_OPTS,;t t
a15941 1
s,@@TICS_NAME@@,$TICS_NAME,;t t
a15963 1
s,@@USE_BIG_STRINGS@@,$USE_BIG_STRINGS,;t t
a15985 4
s,@@cf_cv_enable_reentrant@@,$cf_cv_enable_reentrant,;t t
s,@@cf_cv_enable_opaque@@,$cf_cv_enable_opaque,;t t
s,@@NCURSES_OPAQUE@@,$NCURSES_OPAQUE,;t t
s,@@NCURSES_SIZE_T@@,$NCURSES_SIZE_T,;t t
a15995 1
s,@@TEST_LIBS@@,$TEST_LIBS,;t t
a16017 4
s,@@TICS_ARG_SUFFIX@@,$TICS_ARG_SUFFIX,;t t
s,@@TICS_DEP_SUFFIX@@,$TICS_DEP_SUFFIX,;t t
s,@@TICS_LIB_SUFFIX@@,$TICS_LIB_SUFFIX,;t t
s,@@TICS_ARGS@@,$TICS_ARGS,;t t
a16022 2
s,@@LDFLAGS_STATIC@@,$LDFLAGS_STATIC,;t t
s,@@LDFLAGS_SHARED@@,$LDFLAGS_SHARED,;t t
a16023 1
s,@@TICS_LIST@@,$TICS_LIST,;t t
a16025 1
s,@@NCURSES_TREE@@,$NCURSES_TREE,;t t
d16149 1
a16149 1
    { echo "$as_me:16953: creating $ac_file" >&5
d16167 1
a16167 1
         test -f "$f" || { { echo "$as_me:16971: error: cannot find input file: $f" >&5
d16180 1
a16180 1
           { { echo "$as_me:16984: error: cannot find input file: $f" >&5
d16246 1
a16246 1
  test x"$ac_file" != x- && { echo "$as_me:17050: creating $ac_file" >&5
d16257 1
a16257 1
         test -f "$f" || { { echo "$as_me:17061: error: cannot find input file: $f" >&5
d16270 1
a16270 1
           { { echo "$as_me:17074: error: cannot find input file: $f" >&5
d16328 1
a16328 1
      { echo "$as_me:17132: $ac_file is unchanged" >&5
d16403 1
d16470 3
a16472 1
				LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}\${ABI_VERSION}.dll"
d16481 5
a16485 23
			cf_r_parts="$cf_subsets"

			while test -n "$cf_r_parts"
			do
				cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
				cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
				if test "$cf_l_parts" != "$cf_r_parts" ; then
					case $cf_l_parts in #(vi
					*termlib*) #(vi
						cf_item=`echo $LIBS_TO_MAKE |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
						;;
					*ticlib*)
						cf_item=`echo $LIBS_TO_MAKE |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
						;;
					*)
						break
						;;
					esac
					LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
				else
					break
				fi
			done
d16491 1
d16549 1
a16549 1
				*termlib*)
d16555 1
a16555 8
					;;
				ticlib*)
					cf_libname=$TICS_LIB_SUFFIX
					if test -n "${DFT_ARG_SUFFIX}" ; then
						# undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
						cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
					fi
					;;
a16595 2
				TermlibRoot=$TINFO_NAME \
				TermlibSuffix=$TINFO_SUFFIX \
a16597 1
				ReLink=${cf_cv_do_relink-no} \
d16684 2
a16685 2
install.libs uninstall.libs \\
install.data uninstall.data ::
d16694 1
a16694 1
	rm -f headers.sh headers.sed mk_shared_lib.sh
d16798 35
a16832 4
		$AWK -f $srcdir/mk-hdr.awk \
			subset="$LIB_SUBSETS" \
			compat="$WITH_CURSES_H" \
			$srcdir/$cf_dir/headers >>$cf_dir/Makefile
@


1.1.1.9
log
@Import ncurses 5.6-20071222 snapshot onto the vender branch
@
text
@d2 1
a2 1
# From configure.in Revision: 1.429 .
a701 1
  --enable-mixed-case     tic should assume mixed-case filenames
a716 1
  --with-ticlib           generate separate tic library
a720 1
  --disable-relink        relink shared libraries during install
a731 1
  --disable-big-strings   assume compiler has only standard-size strings
d762 1
a762 1
  --enable-signed-char    compile using signed Boolean's in term.h
a774 1
  --enable-reentrant      compile with experimental reentrant code
d989 1
a989 1
    { echo "$as_me:994: loading site script $ac_site_file" >&5
d1000 1
a1000 1
    { echo "$as_me:1005: loading cache $cache_file" >&5
d1008 1
a1008 1
  { echo "$as_me:1013: creating cache $cache_file" >&5
d1024 1
a1024 1
      { echo "$as_me:1029: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
d1028 1
a1028 1
      { echo "$as_me:1033: error: \`$ac_var' was not set in the previous run" >&5
d1034 1
a1034 1
        { echo "$as_me:1039: error: \`$ac_var' has changed since the previous run:" >&5
d1036 1
a1036 1
        { echo "$as_me:1041:   former value:  $ac_old_val" >&5
d1038 1
a1038 1
        { echo "$as_me:1043:   current value: $ac_new_val" >&5
d1057 1
a1057 1
  { echo "$as_me:1062: error: changes in the environment can compromise the build" >&5
d1059 1
a1059 1
  { { echo "$as_me:1064: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
d1080 1
a1080 1
if { (echo "$as_me:1085: PATH=\".;.\"; conftest.sh") >&5
d1083 1
a1083 1
  echo "$as_me:1088: \$? = $ac_status" >&5
d1096 1
a1096 1
echo "$as_me:1101: checking for egrep" >&5
d1106 1
a1106 1
echo "$as_me:1111: result: $ac_cv_prog_egrep" >&5
d1110 1
a1110 1
test -z "$EGREP" && { { echo "$as_me:1115: error: No egrep program found" >&5
d1120 1
a1120 1
echo "$as_me:1125: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
d1128 1
a1128 1
  { echo "$as_me:1133: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
d1141 1
a1141 1
	{ { echo "$as_me:1146: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
d1147 1
a1147 1
  { { echo "$as_me:1152: error: Release major-version value is empty" >&5
d1157 1
a1157 1
	{ { echo "$as_me:1162: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
d1163 1
a1163 1
  { { echo "$as_me:1168: error: Release minor-version value is empty" >&5
d1173 1
a1173 1
  { echo "$as_me:1178: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
d1183 1
a1183 1
	{ { echo "$as_me:1188: error: ABI version is not a number: $cf_cv_abi_version" >&5
d1189 1
a1189 1
  { { echo "$as_me:1194: error: ABI version value is empty" >&5
d1211 1
a1211 1
  { { echo "$as_me:1216: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
d1221 1
a1221 1
  { { echo "$as_me:1226: error: cannot run $ac_config_sub" >&5
d1225 1
a1225 1
echo "$as_me:1230: checking build system type" >&5
d1234 1
a1234 1
  { { echo "$as_me:1239: error: cannot guess build type; you must specify one" >&5
d1238 1
a1238 1
  { { echo "$as_me:1243: error: $ac_config_sub $ac_cv_build_alias failed." >&5
d1243 1
a1243 1
echo "$as_me:1248: result: $ac_cv_build" >&5
d1250 1
a1250 1
echo "$as_me:1255: checking host system type" >&5
d1259 1
a1259 1
  { { echo "$as_me:1264: error: $ac_config_sub $ac_cv_host_alias failed" >&5
d1264 1
a1264 1
echo "$as_me:1269: result: $ac_cv_host" >&5
d1272 1
a1272 1
	echo "$as_me:1277: checking target system type" >&5
d1281 1
a1281 1
  { { echo "$as_me:1286: error: $ac_config_sub $ac_cv_target_alias failed" >&5
d1286 1
a1286 1
echo "$as_me:1291: result: $ac_cv_target" >&5
d1317 1
a1317 1
test -n "$cf_cv_system_name" && echo "$as_me:1322: result: Configuring for $cf_cv_system_name" >&5
d1321 1
a1321 1
	echo "$as_me:1326: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
d1323 1
a1323 1
	{ { echo "$as_me:1328: error: \"Please remove config.cache and try again.\"" >&5
d1331 1
a1331 1
  { echo "$as_me:1336: WARNING: overriding system type to $withval" >&5
d1341 1
a1341 1
echo "$as_me:1346: checking for prefix" >&5
d1353 1
a1353 1
echo "$as_me:1358: result: $prefix" >&5
d1357 1
a1357 1
echo "$as_me:1362: checking for default include-directory" >&5
d1380 1
a1380 1
echo "$as_me:1385: result: $includedir" >&5
d1394 1
a1394 1
echo "$as_me:1399: checking for $ac_word" >&5
d1409 1
a1409 1
echo "$as_me:1414: found $ac_dir/$ac_word" >&5
d1417 1
a1417 1
  echo "$as_me:1422: result: $CC" >&5
d1420 1
a1420 1
  echo "$as_me:1425: result: no" >&5
d1429 1
a1429 1
echo "$as_me:1434: checking for $ac_word" >&5
d1444 1
a1444 1
echo "$as_me:1449: found $ac_dir/$ac_word" >&5
d1452 1
a1452 1
  echo "$as_me:1457: result: $ac_ct_CC" >&5
d1455 1
a1455 1
  echo "$as_me:1460: result: no" >&5
d1468 1
a1468 1
echo "$as_me:1473: checking for $ac_word" >&5
d1483 1
a1483 1
echo "$as_me:1488: found $ac_dir/$ac_word" >&5
d1491 1
a1491 1
  echo "$as_me:1496: result: $CC" >&5
d1494 1
a1494 1
  echo "$as_me:1499: result: no" >&5
d1503 1
a1503 1
echo "$as_me:1508: checking for $ac_word" >&5
d1518 1
a1518 1
echo "$as_me:1523: found $ac_dir/$ac_word" >&5
d1526 1
a1526 1
  echo "$as_me:1531: result: $ac_ct_CC" >&5
d1529 1
a1529 1
  echo "$as_me:1534: result: no" >&5
d1542 1
a1542 1
echo "$as_me:1547: checking for $ac_word" >&5
d1562 1
a1562 1
echo "$as_me:1567: found $ac_dir/$ac_word" >&5
d1584 1
a1584 1
  echo "$as_me:1589: result: $CC" >&5
d1587 1
a1587 1
  echo "$as_me:1592: result: no" >&5
d1598 1
a1598 1
echo "$as_me:1603: checking for $ac_word" >&5
d1613 1
a1613 1
echo "$as_me:1618: found $ac_dir/$ac_word" >&5
d1621 1
a1621 1
  echo "$as_me:1626: result: $CC" >&5
d1624 1
a1624 1
  echo "$as_me:1629: result: no" >&5
d1637 1
a1637 1
echo "$as_me:1642: checking for $ac_word" >&5
d1652 1
a1652 1
echo "$as_me:1657: found $ac_dir/$ac_word" >&5
d1660 1
a1660 1
  echo "$as_me:1665: result: $ac_ct_CC" >&5
d1663 1
a1663 1
  echo "$as_me:1668: result: no" >&5
d1675 1
a1675 1
test -z "$CC" && { { echo "$as_me:1680: error: no acceptable cc found in \$PATH" >&5
d1680 1
a1680 1
echo "$as_me:1685:" \
d1683 1
a1683 1
{ (eval echo "$as_me:1688: \"$ac_compiler --version </dev/null >&5\"") >&5
d1686 1
a1686 1
  echo "$as_me:1691: \$? = $ac_status" >&5
d1688 1
a1688 1
{ (eval echo "$as_me:1693: \"$ac_compiler -v </dev/null >&5\"") >&5
d1691 1
a1691 1
  echo "$as_me:1696: \$? = $ac_status" >&5
d1693 1
a1693 1
{ (eval echo "$as_me:1698: \"$ac_compiler -V </dev/null >&5\"") >&5
d1696 1
a1696 1
  echo "$as_me:1701: \$? = $ac_status" >&5
d1700 1
a1700 1
#line 1705 "configure"
d1716 1
a1716 1
echo "$as_me:1721: checking for C compiler default output" >&5
d1719 1
a1719 1
if { (eval echo "$as_me:1724: \"$ac_link_default\"") >&5
d1722 1
a1722 1
  echo "$as_me:1727: \$? = $ac_status" >&5
d1745 1
a1745 1
{ { echo "$as_me:1750: error: C compiler cannot create executables" >&5
d1751 1
a1751 1
echo "$as_me:1756: result: $ac_file" >&5
d1756 1
a1756 1
echo "$as_me:1761: checking whether the C compiler works" >&5
d1762 1
a1762 1
  { (eval echo "$as_me:1767: \"$ac_try\"") >&5
d1765 1
a1765 1
  echo "$as_me:1770: \$? = $ac_status" >&5
d1772 1
a1772 1
	{ { echo "$as_me:1777: error: cannot run C compiled programs.
d1780 1
a1780 1
echo "$as_me:1785: result: yes" >&5
d1787 1
a1787 1
echo "$as_me:1792: checking whether we are cross compiling" >&5
d1789 1
a1789 1
echo "$as_me:1794: result: $cross_compiling" >&5
d1792 1
a1792 1
echo "$as_me:1797: checking for executable suffix" >&5
d1794 1
a1794 1
if { (eval echo "$as_me:1799: \"$ac_link\"") >&5
d1797 1
a1797 1
  echo "$as_me:1802: \$? = $ac_status" >&5
d1813 1
a1813 1
  { { echo "$as_me:1818: error: cannot compute EXEEXT: cannot compile and link" >&5
d1819 1
a1819 1
echo "$as_me:1824: result: $ac_cv_exeext" >&5
d1825 1
a1825 1
echo "$as_me:1830: checking for object suffix" >&5
d1831 1
a1831 1
#line 1836 "configure"
d1843 1
a1843 1
if { (eval echo "$as_me:1848: \"$ac_compile\"") >&5
d1846 1
a1846 1
  echo "$as_me:1851: \$? = $ac_status" >&5
d1858 1
a1858 1
{ { echo "$as_me:1863: error: cannot compute OBJEXT: cannot compile" >&5
d1865 1
a1865 1
echo "$as_me:1870: result: $ac_cv_objext" >&5
d1869 1
a1869 1
echo "$as_me:1874: checking whether we are using the GNU C compiler" >&5
d1875 1
a1875 1
#line 1880 "configure"
d1890 1
a1890 1
if { (eval echo "$as_me:1895: \"$ac_compile\"") >&5
d1893 1
a1893 1
  echo "$as_me:1898: \$? = $ac_status" >&5
d1896 1
a1896 1
  { (eval echo "$as_me:1901: \"$ac_try\"") >&5
d1899 1
a1899 1
  echo "$as_me:1904: \$? = $ac_status" >&5
d1911 1
a1911 1
echo "$as_me:1916: result: $ac_cv_c_compiler_gnu" >&5
d1917 1
a1917 1
echo "$as_me:1922: checking whether $CC accepts -g" >&5
d1923 1
a1923 1
#line 1928 "configure"
d1935 1
a1935 1
if { (eval echo "$as_me:1940: \"$ac_compile\"") >&5
d1938 1
a1938 1
  echo "$as_me:1943: \$? = $ac_status" >&5
d1941 1
a1941 1
  { (eval echo "$as_me:1946: \"$ac_try\"") >&5
d1944 1
a1944 1
  echo "$as_me:1949: \$? = $ac_status" >&5
d1954 1
a1954 1
echo "$as_me:1959: result: $ac_cv_prog_cc_g" >&5
d1981 1
a1981 1
if { (eval echo "$as_me:1986: \"$ac_compile\"") >&5
d1984 1
a1984 1
  echo "$as_me:1989: \$? = $ac_status" >&5
d1987 1
a1987 1
  { (eval echo "$as_me:1992: \"$ac_try\"") >&5
d1990 1
a1990 1
  echo "$as_me:1995: \$? = $ac_status" >&5
d2002 1
a2002 1
#line 2007 "configure"
d2015 1
a2015 1
if { (eval echo "$as_me:2020: \"$ac_compile\"") >&5
d2018 1
a2018 1
  echo "$as_me:2023: \$? = $ac_status" >&5
d2021 1
a2021 1
  { (eval echo "$as_me:2026: \"$ac_try\"") >&5
d2024 1
a2024 1
  echo "$as_me:2029: \$? = $ac_status" >&5
d2034 1
a2034 1
#line 2039 "configure"
d2046 1
a2046 1
if { (eval echo "$as_me:2051: \"$ac_compile\"") >&5
d2049 1
a2049 1
  echo "$as_me:2054: \$? = $ac_status" >&5
d2052 1
a2052 1
  { (eval echo "$as_me:2057: \"$ac_try\"") >&5
d2055 1
a2055 1
  echo "$as_me:2060: \$? = $ac_status" >&5
d2085 1
a2085 1
	echo "$as_me:2090: checking version of $CC" >&5
d2089 1
a2089 1
	echo "$as_me:2094: result: $GCC_VERSION" >&5
d2099 1
a2099 1
echo "$as_me:2104: checking how to run the C preprocessor" >&5
d2120 1
a2120 1
#line 2125 "configure"
d2125 1
a2125 1
if { (eval echo "$as_me:2130: \"$ac_cpp conftest.$ac_ext\"") >&5
d2131 1
a2131 1
  echo "$as_me:2136: \$? = $ac_status" >&5
d2154 1
a2154 1
#line 2159 "configure"
d2158 1
a2158 1
if { (eval echo "$as_me:2163: \"$ac_cpp conftest.$ac_ext\"") >&5
d2164 1
a2164 1
  echo "$as_me:2169: \$? = $ac_status" >&5
d2201 1
a2201 1
echo "$as_me:2206: result: $CPP" >&5
d2211 1
a2211 1
#line 2216 "configure"
d2216 1
a2216 1
if { (eval echo "$as_me:2221: \"$ac_cpp conftest.$ac_ext\"") >&5
d2222 1
a2222 1
  echo "$as_me:2227: \$? = $ac_status" >&5
d2245 1
a2245 1
#line 2250 "configure"
d2249 1
a2249 1
if { (eval echo "$as_me:2254: \"$ac_cpp conftest.$ac_ext\"") >&5
d2255 1
a2255 1
  echo "$as_me:2260: \$? = $ac_status" >&5
d2283 1
a2283 1
  { { echo "$as_me:2288: error: C preprocessor \"$CPP\" fails sanity check" >&5
d2296 1
a2296 1
    echo "$as_me:2301: checking whether $CC needs -traditional" >&5
d2303 1
a2303 1
#line 2308 "configure"
d2318 1
a2318 1
#line 2323 "configure"
d2331 1
a2331 1
echo "$as_me:2336: result: $ac_cv_prog_gcc_traditional" >&5
d2338 1
a2338 1
echo "$as_me:2343: checking whether $CC understands -c and -o together" >&5
d2354 1
a2354 1
if { (eval echo "$as_me:2359: \"$ac_try\"") >&5
d2357 1
a2357 1
  echo "$as_me:2362: \$? = $ac_status" >&5
d2359 1
a2359 1
  test -f conftest2.$ac_objext && { (eval echo "$as_me:2364: \"$ac_try\"") >&5
d2362 1
a2362 1
  echo "$as_me:2367: \$? = $ac_status" >&5
d2373 1
a2373 1
  echo "$as_me:2378: result: yes" >&5
d2376 1
a2376 1
  echo "$as_me:2381: result: no" >&5
d2380 1
a2380 1
echo "$as_me:2385: checking for POSIXized ISC" >&5
d2385 1
a2385 1
  echo "$as_me:2390: result: yes" >&5
d2399 1
a2399 1
  echo "$as_me:2404: result: no" >&5
d2404 1
a2404 1
echo "$as_me:2409: checking for ${CC-cc} option to accept ANSI C" >&5
d2498 1
a2498 1
#line 2503 "configure"
d2519 1
a2519 1
if { (eval echo "$as_me:2524: \"$ac_compile\"") >&5
d2522 1
a2522 1
  echo "$as_me:2527: \$? = $ac_status" >&5
d2525 1
a2525 1
  { (eval echo "$as_me:2530: \"$ac_try\"") >&5
d2528 1
a2528 1
  echo "$as_me:2533: \$? = $ac_status" >&5
d2541 1
a2541 1
echo "$as_me:2546: result: $cf_cv_ansi_cc" >&5
d2624 1
a2624 1
	{ { echo "$as_me:2629: error: Your compiler does not appear to recognize prototypes.
d2664 1
a2664 1
echo "$as_me:2669: checking for $ac_word" >&5
d2681 1
a2681 1
   echo "$as_me:2686: found $ac_dir/$ac_word" >&5
d2692 1
a2692 1
  echo "$as_me:2697: result: $LDCONFIG" >&5
d2695 1
a2695 1
  echo "$as_me:2700: result: no" >&5
d2703 1
a2703 1
echo "$as_me:2708: checking if you want to ensure bool is consistent with C++" >&5
d2713 1
a2713 1
echo "$as_me:2718: result: $cf_with_cxx" >&5
d2731 1
a2731 1
echo "$as_me:2736: checking for $ac_word" >&5
d2746 1
a2746 1
echo "$as_me:2751: found $ac_dir/$ac_word" >&5
d2754 1
a2754 1
  echo "$as_me:2759: result: $CXX" >&5
d2757 1
a2757 1
  echo "$as_me:2762: result: no" >&5
d2770 1
a2770 1
echo "$as_me:2775: checking for $ac_word" >&5
d2785 1
a2785 1
echo "$as_me:2790: found $ac_dir/$ac_word" >&5
d2793 1
a2793 1
  echo "$as_me:2798: result: $ac_ct_CXX" >&5
d2796 1
a2796 1
  echo "$as_me:2801: result: no" >&5
d2808 1
a2808 1
echo "$as_me:2813:" \
d2811 1
a2811 1
{ (eval echo "$as_me:2816: \"$ac_compiler --version </dev/null >&5\"") >&5
d2814 1
a2814 1
  echo "$as_me:2819: \$? = $ac_status" >&5
d2816 1
a2816 1
{ (eval echo "$as_me:2821: \"$ac_compiler -v </dev/null >&5\"") >&5
d2819 1
a2819 1
  echo "$as_me:2824: \$? = $ac_status" >&5
d2821 1
a2821 1
{ (eval echo "$as_me:2826: \"$ac_compiler -V </dev/null >&5\"") >&5
d2824 1
a2824 1
  echo "$as_me:2829: \$? = $ac_status" >&5
d2827 1
a2827 1
echo "$as_me:2832: checking whether we are using the GNU C++ compiler" >&5
d2833 1
a2833 1
#line 2838 "configure"
d2848 1
a2848 1
if { (eval echo "$as_me:2853: \"$ac_compile\"") >&5
d2851 1
a2851 1
  echo "$as_me:2856: \$? = $ac_status" >&5
d2854 1
a2854 1
  { (eval echo "$as_me:2859: \"$ac_try\"") >&5
d2857 1
a2857 1
  echo "$as_me:2862: \$? = $ac_status" >&5
d2869 1
a2869 1
echo "$as_me:2874: result: $ac_cv_cxx_compiler_gnu" >&5
d2875 1
a2875 1
echo "$as_me:2880: checking whether $CXX accepts -g" >&5
d2881 1
a2881 1
#line 2886 "configure"
d2893 1
a2893 1
if { (eval echo "$as_me:2898: \"$ac_compile\"") >&5
d2896 1
a2896 1
  echo "$as_me:2901: \$? = $ac_status" >&5
d2899 1
a2899 1
  { (eval echo "$as_me:2904: \"$ac_try\"") >&5
d2902 1
a2902 1
  echo "$as_me:2907: \$? = $ac_status" >&5
d2912 1
a2912 1
echo "$as_me:2917: result: $ac_cv_prog_cxx_g" >&5
d2939 1
a2939 1
#line 2944 "configure"
d2952 1
a2952 1
if { (eval echo "$as_me:2957: \"$ac_compile\"") >&5
d2955 1
a2955 1
  echo "$as_me:2960: \$? = $ac_status" >&5
d2958 1
a2958 1
  { (eval echo "$as_me:2963: \"$ac_try\"") >&5
d2961 1
a2961 1
  echo "$as_me:2966: \$? = $ac_status" >&5
d2971 1
a2971 1
#line 2976 "configure"
d2983 1
a2983 1
if { (eval echo "$as_me:2988: \"$ac_compile\"") >&5
d2986 1
a2986 1
  echo "$as_me:2991: \$? = $ac_status" >&5
d2989 1
a2989 1
  { (eval echo "$as_me:2994: \"$ac_try\"") >&5
d2992 1
a2992 1
  echo "$as_me:2997: \$? = $ac_status" >&5
d3019 1
a3019 1
echo "$as_me:3024: checking for $ac_word" >&5
d3036 1
a3036 1
   echo "$as_me:3041: found $ac_dir/$ac_word" >&5
d3047 1
a3047 1
  echo "$as_me:3052: result: $CXX" >&5
d3050 1
a3050 1
  echo "$as_me:3055: result: no" >&5
d3056 1
a3056 1
		{ echo "$as_me:3061: WARNING: ignoring hardcoded g++" >&5
d3064 1
a3064 1
	echo "$as_me:3069: checking version of g++" >&5
d3068 1
a3068 1
	echo "$as_me:3073: result: $GXX_VERSION" >&5
d3076 1
a3076 1
	{ echo "$as_me:3081: WARNING: templates do not work" >&5
d3081 1
a3081 1
echo "$as_me:3086: checking if you want to build C++ binding and demo" >&5
d3091 1
a3091 1
echo "$as_me:3096: result: $cf_with_cxx_binding" >&5
d3094 1
a3094 1
echo "$as_me:3099: checking if you want to build with Ada95" >&5
d3104 1
a3104 1
echo "$as_me:3109: result: $cf_with_ada" >&5
d3107 1
a3107 1
echo "$as_me:3112: checking if you want to build programs such as tic" >&5
d3117 1
a3117 1
echo "$as_me:3122: result: $cf_with_progs" >&5
d3120 1
a3120 1
echo "$as_me:3125: checking if you wish to install curses.h" >&5
d3130 1
a3130 1
echo "$as_me:3135: result: $with_curses_h" >&5
d3156 1
a3156 1
echo "$as_me:3161: checking for $ac_word" >&5
d3171 1
a3171 1
echo "$as_me:3176: found $ac_dir/$ac_word" >&5
d3179 1
a3179 1
  echo "$as_me:3184: result: $AWK" >&5
d3182 1
a3182 1
  echo "$as_me:3187: result: no" >&5
d3189 1
a3189 1
test -z "$AWK" && { { echo "$as_me:3194: error: No awk program found" >&5
d3193 1
a3193 1
echo "$as_me:3198: checking for egrep" >&5
d3203 1
a3203 1
echo "$as_me:3208: result: $ac_cv_prog_egrep" >&5
d3207 1
a3207 1
test -z "$EGREP" && { { echo "$as_me:3212: error: No egrep program found" >&5
d3223 1
a3223 1
echo "$as_me:3228: checking for a BSD compatible install" >&5
d3272 1
a3272 1
echo "$as_me:3277: result: $INSTALL" >&5
d3297 1
a3297 1
echo "$as_me:3302: checking for $ac_word" >&5
d3312 1
a3312 1
echo "$as_me:3317: found $ac_dir/$ac_word" >&5
d3320 1
a3320 1
  echo "$as_me:3325: result: $LINT" >&5
d3323 1
a3323 1
  echo "$as_me:3328: result: no" >&5
d3330 1
a3330 1
echo "$as_me:3335: checking whether ln -s works" >&5
d3334 1
a3334 1
  echo "$as_me:3339: result: yes" >&5
d3337 1
a3337 1
  echo "$as_me:3342: result: no, using $LN_S" >&5
d3341 4
a3344 3
echo "$as_me:3346: checking for long file names" >&5
echo $ECHO_N "checking for long file names... $ECHO_C" >&6
if test "${ac_cv_sys_long_file_names+set}" = set; then
d3347 8
a3354 13
  ac_cv_sys_long_file_names=yes
# Test for long file names in all the places we know might matter:
#      .		the current directory, where building will happen
#      $prefix/lib	where we will be installing things
#      $exec_prefix/lib	likewise
# eval it to expand exec_prefix.
#      $TMPDIR		if set, where it might want to write temporary files
# if $TMPDIR is not set:
#      /tmp		where it might want to write temporary files
#      /var/tmp		likewise
#      /usr/tmp		likewise
if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
  ac_tmpdirs=$TMPDIR
d3356 1
a3356 1
  ac_tmpdirs='/tmp /var/tmp /usr/tmp'
d3358 1
a3358 17
for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
  test -d $ac_dir || continue
  test -w $ac_dir || continue # It is less confusing to not echo anything here.
  ac_xdir=$ac_dir/cf$$
  (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
  ac_tf1=$ac_xdir/conftest9012345
  ac_tf2=$ac_xdir/conftest9012346
  (echo 1 >$ac_tf1) 2>/dev/null
  (echo 2 >$ac_tf2) 2>/dev/null
  ac_val=`cat $ac_tf1 2>/dev/null`
  if test ! -f $ac_tf1 || test "$ac_val" != 1; then
    ac_cv_sys_long_file_names=no
    rm -rf $ac_xdir 2>/dev/null
    break
  fi
  rm -rf $ac_xdir 2>/dev/null
done
d3360 8
a3367 8
echo "$as_me:3385: result: $ac_cv_sys_long_file_names" >&5
echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
if test $ac_cv_sys_long_file_names = yes; then

cat >>confdefs.h <<\EOF
#define HAVE_LONG_FILE_NAMES 1
EOF

d3370 1
a3370 15
echo "$as_me:3395: checking if we should assume mixed-case filenames" >&5
echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6

# Check whether --enable-mixed-case or --disable-mixed-case was given.
if test "${enable_mixed_case+set}" = set; then
  enableval="$enable_mixed_case"
  enable_mixedcase=$enableval
else
  enable_mixedcase=auto
fi;
echo "$as_me:3405: result: $enable_mixedcase" >&5
echo "${ECHO_T}$enable_mixedcase" >&6
if test "$enable_mixedcase" = "auto" ; then

echo "$as_me:3409: checking if filesystem supports mixed-case filenames" >&5
d3397 1
a3397 1
echo "$as_me:3436: result: $cf_cv_mixedcase" >&5
a3402 40
else
    cf_cv_mixedcase=$enable_mixedcase
    if test "$enable_mixedcase" = "yes" ; then
        cat >>confdefs.h <<\EOF
#define MIXEDCASE_FILENAMES 1
EOF

    fi
fi

# do this after mixed-case option (tags/TAGS is not as important as tic).
echo "$as_me:3453: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.make <<\EOF
all:
	@@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
else
  eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftest.make
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$as_me:3473: result: yes" >&5
echo "${ECHO_T}yes" >&6
  SET_MAKE=
else
  echo "$as_me:3477: result: no" >&5
echo "${ECHO_T}no" >&6
  SET_MAKE="MAKE=${MAKE-make}"
fi

d3405 1
a3405 1
echo "$as_me:3484: checking for $ac_word" >&5
d3420 1
a3420 1
echo "$as_me:3499: found $ac_dir/$ac_word" >&5
d3429 1
a3429 1
  echo "$as_me:3508: result: $MAKE_LOWER_TAGS" >&5
d3432 1
a3432 1
  echo "$as_me:3511: result: no" >&5
d3439 1
a3439 1
echo "$as_me:3518: checking for $ac_word" >&5
d3454 1
a3454 1
echo "$as_me:3533: found $ac_dir/$ac_word" >&5
d3463 1
a3463 1
  echo "$as_me:3542: result: $MAKE_UPPER_TAGS" >&5
d3466 1
a3466 1
  echo "$as_me:3545: result: no" >&5
d3486 1
a3486 1
echo "$as_me:3565: checking for makeflags variable" >&5
d3520 1
a3520 1
echo "$as_me:3599: result: $cf_cv_makeflags" >&5
d3523 82
d3608 1
a3608 1
echo "$as_me:3605: checking for $ac_word" >&5
d3623 1
a3623 1
echo "$as_me:3620: found $ac_dir/$ac_word" >&5
d3631 1
a3631 1
  echo "$as_me:3628: result: $RANLIB" >&5
d3634 1
a3634 1
  echo "$as_me:3631: result: no" >&5
d3643 1
a3643 1
echo "$as_me:3640: checking for $ac_word" >&5
d3658 1
a3658 1
echo "$as_me:3655: found $ac_dir/$ac_word" >&5
d3667 1
a3667 1
  echo "$as_me:3664: result: $ac_ct_RANLIB" >&5
d3670 1
a3670 1
  echo "$as_me:3667: result: no" >&5
d3682 1
a3682 1
echo "$as_me:3679: checking for $ac_word" >&5
d3697 1
a3697 1
echo "$as_me:3694: found $ac_dir/$ac_word" >&5
d3705 1
a3705 1
  echo "$as_me:3702: result: $LD" >&5
d3708 1
a3708 1
  echo "$as_me:3705: result: no" >&5
d3717 1
a3717 1
echo "$as_me:3714: checking for $ac_word" >&5
d3732 1
a3732 1
echo "$as_me:3729: found $ac_dir/$ac_word" >&5
d3741 1
a3741 1
  echo "$as_me:3738: result: $ac_ct_LD" >&5
d3744 1
a3744 1
  echo "$as_me:3741: result: no" >&5
d3756 1
a3756 1
echo "$as_me:3753: checking for $ac_word" >&5
d3771 1
a3771 1
echo "$as_me:3768: found $ac_dir/$ac_word" >&5
d3779 1
a3779 1
  echo "$as_me:3776: result: $AR" >&5
d3782 1
a3782 1
  echo "$as_me:3779: result: no" >&5
d3791 1
a3791 1
echo "$as_me:3788: checking for $ac_word" >&5
d3806 1
a3806 1
echo "$as_me:3803: found $ac_dir/$ac_word" >&5
d3815 1
a3815 1
  echo "$as_me:3812: result: $ac_ct_AR" >&5
d3818 1
a3818 1
  echo "$as_me:3815: result: no" >&5
d3831 1
a3831 1
echo "$as_me:3828: checking for archiver options (symbol AR_OPTS)" >&5
d3840 1
a3840 1
echo "$as_me:3837: result: $AR_OPTS" >&5
d3845 1
a3845 1
echo "$as_me:3842: checking if you have specified an install-prefix" >&5
d3858 1
a3858 1
echo "$as_me:3855: result: $DESTDIR" >&5
d3886 1
a3886 1
echo "$as_me:3883: checking for $ac_word" >&5
d3901 1
a3901 1
echo "$as_me:3898: found $ac_dir/$ac_word" >&5
d3909 1
a3909 1
  echo "$as_me:3906: result: $BUILD_CC" >&5
d3912 1
a3912 1
  echo "$as_me:3909: result: no" >&5
d3920 1
a3920 1
	echo "$as_me:3917: checking for native build C compiler" >&5
d3922 1
a3922 1
	echo "$as_me:3919: result: $BUILD_CC" >&5
d3925 1
a3925 1
	echo "$as_me:3922: checking for native build C preprocessor" >&5
d3935 1
a3935 1
	echo "$as_me:3932: result: $BUILD_CPP" >&5
d3938 1
a3938 1
	echo "$as_me:3935: checking for native build C flags" >&5
d3946 1
a3946 1
	echo "$as_me:3943: result: $BUILD_CFLAGS" >&5
d3949 1
a3949 1
	echo "$as_me:3946: checking for native build C preprocessor-flags" >&5
d3957 1
a3957 1
	echo "$as_me:3954: result: $BUILD_CPPFLAGS" >&5
d3960 1
a3960 1
	echo "$as_me:3957: checking for native build linker-flags" >&5
d3968 1
a3968 1
	echo "$as_me:3965: result: $BUILD_LDFLAGS" >&5
d3971 1
a3971 1
	echo "$as_me:3968: checking for native build linker-libraries" >&5
d3979 1
a3979 1
	echo "$as_me:3976: result: $BUILD_LIBS" >&5
d3989 1
a3989 1
		{ { echo "$as_me:3986: error: Cross-build requires two compilers.
d4026 1
a4026 1
LIB_LINK='${CC}'
d4030 1
a4030 1
echo "$as_me:4027: checking if you want to build libraries with libtool" >&5
d4040 1
a4040 1
echo "$as_me:4037: result: $with_libtool" >&5
d4071 1
a4071 1
  { { echo "$as_me:4068: error: expected a pathname, not \"$with_libtool\"" >&5
d4081 1
a4081 1
echo "$as_me:4078: checking for $ac_word" >&5
d4098 1
a4098 1
   echo "$as_me:4095: found $ac_dir/$ac_word" >&5
d4109 1
a4109 1
  echo "$as_me:4106: result: $LIBTOOL" >&5
d4112 1
a4112 1
  echo "$as_me:4109: result: no" >&5
d4118 1
a4118 1
 		{ { echo "$as_me:4115: error: Cannot find libtool" >&5
d4122 2
a4123 2
	LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} -o'
	LIB_OBJECT='${OBJECTS:.o=.lo}'
d4127 1
a4127 1
	LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
d4133 1
a4133 1
	echo "$as_me:4130: checking version of libtool" >&5
d4139 2
a4140 2
	cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
	echo "$as_me:4137: result: $cf_cv_libtool_version" >&5
d4143 2
a4144 2
		{ { echo "$as_me:4140: error: This is not GNU libtool" >&5
echo "$as_me: error: This is not GNU libtool" >&2;}
d4170 1
a4170 1
echo "$as_me:4167: checking if you want to build shared libraries" >&5
d4180 1
a4180 1
echo "$as_me:4177: result: $with_shared" >&5
d4184 1
a4184 1
echo "$as_me:4181: checking if you want to build static libraries" >&5
d4194 1
a4194 1
echo "$as_me:4191: result: $with_normal" >&5
d4198 1
a4198 1
echo "$as_me:4195: checking if you want to build debug libraries" >&5
d4208 1
a4208 1
echo "$as_me:4205: result: $with_debug" >&5
d4212 1
a4212 1
echo "$as_me:4209: checking if you want to build profiling libraries" >&5
d4222 1
a4222 1
echo "$as_me:4219: result: $with_profile" >&5
d4230 1
a4230 1
echo "$as_me:4227: checking for specified models" >&5
d4234 1
a4234 1
echo "$as_me:4231: result: $cf_list_models" >&5
d4239 1
a4239 1
echo "$as_me:4236: checking for default model" >&5
d4242 1
a4242 1
echo "$as_me:4239: result: $DFT_LWR_MODEL" >&5
a4246 2
TICS_NAME=tic

d4267 1
a4267 1
echo "$as_me:4266: checking if you want to build a separate terminfo library" >&5
d4277 1
a4277 1
echo "$as_me:4276: result: $with_termlib" >&5
a4279 13
echo "$as_me:4279: checking if you want to build a separate tic library" >&5
echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6

# Check whether --with-ticlib or --without-ticlib was given.
if test "${with_ticlib+set}" = set; then
  withval="$with_ticlib"
  with_ticlib=$withval
else
  with_ticlib=no
fi;
echo "$as_me:4289: result: $with_ticlib" >&5
echo "${ECHO_T}$with_ticlib" >&6

d4283 1
a4283 1
echo "$as_me:4295: checking if you want to link with the GPM mouse library" >&5
d4293 1
a4293 1
echo "$as_me:4305: result: $with_gpm" >&5
d4297 1
a4297 1
	echo "$as_me:4309: checking for gpm.h" >&5
d4303 1
a4303 1
#line 4315 "configure"
d4307 1
a4307 1
if { (eval echo "$as_me:4319: \"$ac_cpp conftest.$ac_ext\"") >&5
d4313 1
a4313 1
  echo "$as_me:4325: \$? = $ac_status" >&5
d4332 1
a4332 1
echo "$as_me:4344: result: $ac_cv_header_gpm_h" >&5
a4342 2
echo "${as_me-configure}:4355: testing assuming we really have GPM library ..." 1>&5

d4348 1
a4348 1
			echo "$as_me:4362: checking for Gpm_Open in -lgpm" >&5
d4356 1
a4356 1
#line 4370 "configure"
d4375 1
a4375 1
if { (eval echo "$as_me:4389: \"$ac_link\"") >&5
d4378 1
a4378 1
  echo "$as_me:4392: \$? = $ac_status" >&5
d4381 1
a4381 1
  { (eval echo "$as_me:4395: \"$ac_try\"") >&5
d4384 1
a4384 1
  echo "$as_me:4398: \$? = $ac_status" >&5
d4395 1
a4395 1
echo "$as_me:4409: result: $ac_cv_lib_gpm_Gpm_Open" >&5
d4401 1
a4401 1
				{ { echo "$as_me:4415: error: Cannot link with GPM library" >&5
d4411 1
a4411 1
		test "$with_gpm" != maybe && { echo "$as_me:4425: WARNING: Cannot find GPM header" >&5
d4420 1
a4420 1
	echo "$as_me:4434: checking if you want to load GPM dynamically" >&5
d4430 1
a4430 1
	echo "$as_me:4444: result: $with_dlsym" >&5
d4435 1
a4435 1
echo "$as_me:4449: checking for dlsym" >&5
d4441 1
a4441 1
#line 4455 "configure"
d4472 1
a4472 1
if { (eval echo "$as_me:4486: \"$ac_link\"") >&5
d4475 1
a4475 1
  echo "$as_me:4489: \$? = $ac_status" >&5
d4478 1
a4478 1
  { (eval echo "$as_me:4492: \"$ac_try\"") >&5
d4481 1
a4481 1
  echo "$as_me:4495: \$? = $ac_status" >&5
d4491 1
a4491 1
echo "$as_me:4505: result: $ac_cv_func_dlsym" >&5
d4498 1
a4498 1
echo "$as_me:4512: checking for dlsym in -ldl" >&5
d4506 1
a4506 1
#line 4520 "configure"
d4525 1
a4525 1
if { (eval echo "$as_me:4539: \"$ac_link\"") >&5
d4528 1
a4528 1
  echo "$as_me:4542: \$? = $ac_status" >&5
d4531 1
a4531 1
  { (eval echo "$as_me:4545: \"$ac_try\"") >&5
d4534 1
a4534 1
  echo "$as_me:4548: \$? = $ac_status" >&5
d4545 1
a4545 1
echo "$as_me:4559: result: $ac_cv_lib_dl_dlsym" >&5
d4558 1
a4558 1
	echo "$as_me:4572: checking whether able to link to dl*() functions" >&5
d4561 1
a4561 1
#line 4575 "configure"
d4579 1
a4579 1
if { (eval echo "$as_me:4593: \"$ac_link\"") >&5
d4582 1
a4582 1
  echo "$as_me:4596: \$? = $ac_status" >&5
d4585 1
a4585 1
  { (eval echo "$as_me:4599: \"$ac_try\"") >&5
d4588 1
a4588 1
  echo "$as_me:4602: \$? = $ac_status" >&5
d4599 1
a4599 1
		{ { echo "$as_me:4613: error: Cannot link test program for libdl" >&5
d4604 1
a4604 1
	echo "$as_me:4618: result: ok" >&5
d4607 1
a4607 1
	{ { echo "$as_me:4621: error: Cannot find dlsym function" >&5
a4614 2
echo "${as_me-configure}:4629: testing assuming soname for gpm is $with_gpm ..." 1>&5

d4618 1
a4618 1
echo "$as_me:4634: checking for soname of gpm library" >&5
d4636 1
a4636 1
	if { (eval echo "$as_me:4652: \"$ac_compile\"") >&5
d4639 1
a4639 1
  echo "$as_me:4655: \$? = $ac_status" >&5
d4641 1
a4641 1
		if { (eval echo "$as_me:4657: \"$ac_link\"") >&5
d4644 1
a4644 1
  echo "$as_me:4660: \$? = $ac_status" >&5
d4655 1
a4655 1
echo "$as_me:4671: result: $cf_cv_gpm_soname" >&5
d4671 1
a4671 1
echo "$as_me:4687: checking for Gpm_Wgetch in -lgpm" >&5
d4679 1
a4679 1
#line 4695 "configure"
d4698 1
a4698 1
if { (eval echo "$as_me:4714: \"$ac_link\"") >&5
d4701 1
a4701 1
  echo "$as_me:4717: \$? = $ac_status" >&5
d4704 1
a4704 1
  { (eval echo "$as_me:4720: \"$ac_try\"") >&5
d4707 1
a4707 1
  echo "$as_me:4723: \$? = $ac_status" >&5
d4718 1
a4718 1
echo "$as_me:4734: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
d4722 1
a4722 49
echo "$as_me:4738: checking if GPM is weakly bound to curses library" >&5
echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
if test "${cf_cv_check_gpm_wgetch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

cf_cv_check_gpm_wgetch=unknown
if test "$cross_compiling" != yes ; then

cat >conftest.$ac_ext <<CF_EOF
#include <gpm.h>
int main()
{
	Gpm_Wgetch();
	${cf_cv_main_return:-return}(0);
}
CF_EOF

	cf_save_LIBS="$LIBS"
	# This only works if we can look at the symbol table.  If a shared
	# library is stripped for install, we cannot use that.  So we're forced
	# to rely on the static library, noting that some packagers may not
	# include it.
	LIBS="-static -lgpm -dynamic $LIBS"
	if { (eval echo "$as_me:4762: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:4765: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
		if { (eval echo "$as_me:4767: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:4770: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
			cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
			test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
			test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
		fi
	fi
	rm -f conftest*
	LIBS="$cf_save_LIBS"
fi

fi
echo "$as_me:4782: result: $cf_cv_check_gpm_wgetch" >&5
echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6

if test "$cf_cv_check_gpm_wgetch" != yes ; then
	{ echo "$as_me:4786: WARNING: GPM library is already linked with curses - read the FAQ" >&5
a4723 1
fi
d4731 1
a4731 1
echo "$as_me:4796: checking if you want to use sysmouse" >&5
d4743 1
a4743 1
#line 4808 "configure"
d4766 1
a4766 1
if { (eval echo "$as_me:4831: \"$ac_compile\"") >&5
d4769 1
a4769 1
  echo "$as_me:4834: \$? = $ac_status" >&5
d4772 1
a4772 1
  { (eval echo "$as_me:4837: \"$ac_try\"") >&5
d4775 1
a4775 1
  echo "$as_me:4840: \$? = $ac_status" >&5
d4785 1
a4785 1
echo "$as_me:4850: result: $cf_with_sysmouse" >&5
d4803 1
a4803 1
echo "$as_me:4868: checking for default loader flags" >&5
d4812 1
a4812 1
echo "$as_me:4877: result: $LD_MODEL" >&5
d4815 1
a4815 3
case $DFT_LWR_MODEL in
shared)
echo "$as_me:4882: checking if rpath option should be used" >&5
d4825 1
a4825 1
echo "$as_me:4892: result: $cf_cv_ld_rpath" >&5
a4826 14
echo "$as_me:4894: checking if shared libraries should be relinked during install" >&5
echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6

# Check whether --enable-relink or --disable-relink was given.
if test "${enable_relink+set}" = set; then
  enableval="$enable_relink"
  cf_cv_do_relink=$enableval
else
  cf_cv_do_relink=yes
fi;
echo "$as_me:4904: result: $cf_cv_do_relink" >&5
echo "${ECHO_T}$cf_cv_do_relink" >&6
	;;
esac
d4835 1
a4835 1
	echo "$as_me:4916: checking if release/abi version should be used for shared libs" >&5
d4850 1
a4850 1
		{ { echo "$as_me:4931: error: option value must be one of: rel, abi, auto or no" >&5
d4859 1
a4859 1
	echo "$as_me:4940: result: $cf_cv_shlib_version" >&5
d4868 1
a4868 1
		echo "$as_me:4949: checking which $CC option to use" >&5
d4875 1
a4875 1
#line 4956 "configure"
d4887 1
a4887 1
if { (eval echo "$as_me:4968: \"$ac_compile\"") >&5
d4890 1
a4890 1
  echo "$as_me:4971: \$? = $ac_status" >&5
d4893 1
a4893 1
  { (eval echo "$as_me:4974: \"$ac_try\"") >&5
d4896 1
a4896 1
  echo "$as_me:4977: \$? = $ac_status" >&5
d4905 1
a4905 1
		echo "$as_me:4986: result: $CC_SHARED_OPTS" >&5
d4918 1
a4918 1
		MK_SHARED_LIB='sh ../mk_shared_lib.sh $@@ ${CC} ${CFLAGS}'
a4920 13
		cat >mk_shared_lib.sh <<-CF_EOF
		#!/bin/sh
		SHARED_LIB=\$1
		IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
		shift
		cat <<-EOF
		Linking shared library
		** SHARED_LIB \$SHARED_LIB
		** IMPORT_LIB \$IMPORT_LIB
EOF
		exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
CF_EOF
		chmod +x mk_shared_lib.sh
d4925 1
a4925 1
		MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@@'
d4928 1
a4928 1
		echo "$as_me:5022: checking if ld -search_paths_first works" >&5
d4937 1
a4937 1
#line 5031 "configure"
d4949 1
a4949 1
if { (eval echo "$as_me:5043: \"$ac_link\"") >&5
d4952 1
a4952 1
  echo "$as_me:5046: \$? = $ac_status" >&5
d4955 1
a4955 1
  { (eval echo "$as_me:5049: \"$ac_try\"") >&5
d4958 1
a4958 1
  echo "$as_me:5052: \$? = $ac_status" >&5
d4969 1
a4969 1
echo "$as_me:5063: result: $cf_cv_ldflags_search_paths_first" >&5
d5024 1
a5024 1
	openbsd[2-9].*)
d5028 1
a5028 1
	openbsd*|freebsd[12].*)
d5165 1
a5165 1
			{ echo "$as_me:5259: WARNING: ignored --with-shlib-version" >&5
d5173 1
a5173 1
		echo "$as_me:5267: checking if we need a space after rpath option" >&5
d5178 1
a5178 1
#line 5272 "configure"
d5190 1
a5190 1
if { (eval echo "$as_me:5284: \"$ac_link\"") >&5
d5193 1
a5193 1
  echo "$as_me:5287: \$? = $ac_status" >&5
d5196 1
a5196 1
  { (eval echo "$as_me:5290: \"$ac_try\"") >&5
d5199 1
a5199 1
  echo "$as_me:5293: \$? = $ac_status" >&5
d5209 1
a5209 1
		echo "$as_me:5303: result: $cf_rpath_space" >&5
d5218 1
a5218 1
			{ { echo "$as_me:5312: error: Shared libraries are not supported in this version" >&5
d5228 1
a5228 1
echo "$as_me:5322: checking if you wish to install ncurses overwriting curses" >&5
d5238 1
a5238 1
echo "$as_me:5332: result: $with_overwrite" >&5
d5241 1
a5241 1
echo "$as_me:5335: checking if external terminfo-database is used" >&5
d5251 1
a5251 1
echo "$as_me:5345: result: $use_database" >&5
d5273 1
a5273 1
	echo "$as_me:5367: checking which terminfo source-file will be installed" >&5
d5281 1
a5281 1
	echo "$as_me:5375: result: $TERMINFO_SRC" >&5
d5284 1
a5284 1
	echo "$as_me:5378: checking whether to use hashed database instead of directory/tree" >&5
d5294 1
a5294 1
	echo "$as_me:5388: result: $with_hashed_db" >&5
d5298 1
a5298 1
echo "$as_me:5392: checking for list of fallback descriptions" >&5
d5308 1
a5308 1
echo "$as_me:5402: result: $with_fallback" >&5
d5312 1
a5312 1
echo "$as_me:5406: checking if you want modern xterm or antique" >&5
d5326 1
a5326 1
echo "$as_me:5420: result: $with_xterm_new" >&5
d5336 1
a5336 1
echo "$as_me:5430: checking for list of terminfo directories" >&5
d5376 1
a5376 1
  { { echo "$as_me:5470: error: expected a pathname, not \"$cf_src_path\"" >&5
d5389 1
a5389 1
echo "$as_me:5483: result: $TERMINFO_DIRS" >&5
d5395 1
a5395 1
echo "$as_me:5489: checking for default terminfo directory" >&5
d5404 1
a5404 2
fi; if test -n "${datadir}/terminfo" ; then

d5430 1
a5430 1
  { { echo "$as_me:5525: error: expected a pathname, not \"$withval\"" >&5
a5435 1
fi
d5438 1
a5438 1
echo "$as_me:5534: result: $TERMINFO" >&5
d5448 1
a5448 1
echo "$as_me:5544: checking if big-core option selected" >&5
d5460 1
a5460 1
#line 5556 "configure"
d5474 1
a5474 1
if { (eval echo "$as_me:5570: \"$ac_link\"") >&5
d5477 1
a5477 1
  echo "$as_me:5573: \$? = $ac_status" >&5
d5479 1
a5479 1
  { (eval echo "$as_me:5575: \"$ac_try\"") >&5
d5482 1
a5482 1
  echo "$as_me:5578: \$? = $ac_status" >&5
d5494 1
a5494 1
echo "$as_me:5590: result: $with_big_core" >&5
a5499 18
### ISO C only guarantees 512-char strings, we have tables which load faster
### when constructed using "big" strings.
echo "$as_me:5598: checking if big-strings option selected" >&5
echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6

# Check whether --enable-big-strings or --disable-big-strings was given.
if test "${enable_big_strings+set}" = set; then
  enableval="$enable_big_strings"
  with_big_strings=no
else
  with_big_strings=yes
fi;
echo "$as_me:5608: result: $with_big_strings" >&5
echo "${ECHO_T}$with_big_strings" >&6

USE_BIG_STRINGS=0
test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1

d5501 1
a5501 1
echo "$as_me:5615: checking if you want termcap-fallback support" >&5
d5511 1
a5511 1
echo "$as_me:5625: result: $with_termcap" >&5
d5517 1
a5517 1
			{ { echo "$as_me:5631: error: You have disabled the database w/o specifying fallbacks" >&5
a5527 6
if test "$with_ticlib" != no ; then
	{ { echo "$as_me:5643: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
   { (exit 1); exit 1; }; }
fi

d5532 1
a5532 1
echo "$as_me:5652: checking for list of termcap files" >&5
d5572 1
a5572 1
  { { echo "$as_me:5692: error: expected a pathname, not \"$cf_src_path\"" >&5
d5585 1
a5585 1
echo "$as_me:5705: result: $TERMPATH" >&5
d5592 1
a5592 1
echo "$as_me:5712: checking if fast termcap-loader is needed" >&5
d5602 1
a5602 1
echo "$as_me:5722: result: $with_getcap" >&5
d5608 1
a5608 1
echo "$as_me:5728: checking if translated termcaps will be cached in ~/.terminfo" >&5
d5618 1
a5618 1
echo "$as_me:5738: result: $with_getcap_cache" >&5
d5627 1
a5627 1
echo "$as_me:5747: checking if ~/.terminfo is wanted" >&5
d5637 1
a5637 1
echo "$as_me:5757: result: $with_home_terminfo" >&5
d5643 1
a5643 1
echo "$as_me:5763: checking if you want to use restricted environment when running as root" >&5
d5653 1
a5653 1
echo "$as_me:5773: result: $with_root_environ" >&5
d5667 1
a5667 1
echo "$as_me:5787: checking for $ac_func" >&5
d5673 1
a5673 1
#line 5793 "configure"
d5704 1
a5704 1
if { (eval echo "$as_me:5824: \"$ac_link\"") >&5
d5707 1
a5707 1
  echo "$as_me:5827: \$? = $ac_status" >&5
d5710 1
a5710 1
  { (eval echo "$as_me:5830: \"$ac_try\"") >&5
d5713 1
a5713 1
  echo "$as_me:5833: \$? = $ac_status" >&5
d5723 1
a5723 1
echo "$as_me:5843: result: `eval echo '${'$as_ac_var'}'`" >&5
d5740 1
a5740 1
echo "$as_me:5860: checking for $ac_func" >&5
d5746 1
a5746 1
#line 5866 "configure"
d5777 1
a5777 1
if { (eval echo "$as_me:5897: \"$ac_link\"") >&5
d5780 1
a5780 1
  echo "$as_me:5900: \$? = $ac_status" >&5
d5783 1
a5783 1
  { (eval echo "$as_me:5903: \"$ac_try\"") >&5
d5786 1
a5786 1
  echo "$as_me:5906: \$? = $ac_status" >&5
d5796 1
a5796 1
echo "$as_me:5916: result: `eval echo '${'$as_ac_var'}'`" >&5
d5807 1
a5807 1
	echo "$as_me:5927: checking if link/symlink functions work" >&5
d5820 1
a5820 1
#line 5940 "configure"
d5850 1
a5850 1
if { (eval echo "$as_me:5970: \"$ac_link\"") >&5
d5853 1
a5853 1
  echo "$as_me:5973: \$? = $ac_status" >&5
d5855 1
a5855 1
  { (eval echo "$as_me:5975: \"$ac_try\"") >&5
d5858 1
a5858 1
  echo "$as_me:5978: \$? = $ac_status" >&5
d5876 1
a5876 1
echo "$as_me:5996: result: $cf_cv_link_funcs" >&5
d5894 1
a5894 1
    echo "$as_me:6014: checking if tic should use symbolic links" >&5
d5904 1
a5904 1
    echo "$as_me:6024: result: $with_symlinks" >&5
d5911 1
a5911 1
    echo "$as_me:6031: checking if tic should use hard links" >&5
d5918 1
a5918 1
    echo "$as_me:6038: result: $with_links" >&5
d5931 1
a5931 1
echo "$as_me:6051: checking if you want broken-linker support code" >&5
d5941 1
a5941 1
echo "$as_me:6061: result: $with_broken_linker" >&5
a5960 2
echo "${as_me-configure}:6081: testing cygwin linker is broken anyway ..." 1>&5

d5966 1
a5966 1
echo "$as_me:6088: checking if tputs should process BSD-style prefix padding" >&5
d5976 1
a5976 1
echo "$as_me:6098: result: $with_bsdpad" >&5
d5993 1
a5993 1
echo "$as_me:6115: checking if $CC -U and -D options work together" >&5
d6002 1
a6002 1
#line 6124 "configure"
d6021 1
a6021 1
if { (eval echo "$as_me:6143: \"$ac_compile\"") >&5
d6024 1
a6024 1
  echo "$as_me:6146: \$? = $ac_status" >&5
d6027 1
a6027 1
  { (eval echo "$as_me:6149: \"$ac_try\"") >&5
d6030 1
a6030 1
  echo "$as_me:6152: \$? = $ac_status" >&5
d6044 1
a6044 1
echo "$as_me:6166: result: $cf_cv_cc_u_d_options" >&5
d6068 1
a6068 1
linux*|gnu*|k*bsd*-gnu) #(vi
d6070 1
a6070 1
echo "$as_me:6192: checking if we must define _GNU_SOURCE" >&5
d6077 1
a6077 1
#line 6199 "configure"
d6092 1
a6092 1
if { (eval echo "$as_me:6214: \"$ac_compile\"") >&5
d6095 1
a6095 1
  echo "$as_me:6217: \$? = $ac_status" >&5
d6098 1
a6098 1
  { (eval echo "$as_me:6220: \"$ac_try\"") >&5
d6101 1
a6101 1
  echo "$as_me:6223: \$? = $ac_status" >&5
d6110 1
a6110 1
#line 6232 "configure"
d6125 1
a6125 1
if { (eval echo "$as_me:6247: \"$ac_compile\"") >&5
d6128 1
a6128 1
  echo "$as_me:6250: \$? = $ac_status" >&5
d6131 1
a6131 1
  { (eval echo "$as_me:6253: \"$ac_try\"") >&5
d6134 1
a6134 1
  echo "$as_me:6256: \$? = $ac_status" >&5
d6149 1
a6149 1
echo "$as_me:6271: result: $cf_cv_gnu_source" >&5
d6176 1
a6176 1
	echo "$as_me:6298: checking if we should define _XOPEN_SOURCE" >&5
d6183 1
a6183 1
#line 6305 "configure"
d6198 1
a6198 1
if { (eval echo "$as_me:6320: \"$ac_compile\"") >&5
d6201 1
a6201 1
  echo "$as_me:6323: \$? = $ac_status" >&5
d6204 1
a6204 1
  { (eval echo "$as_me:6326: \"$ac_try\"") >&5
d6207 1
a6207 1
  echo "$as_me:6329: \$? = $ac_status" >&5
d6216 1
a6216 1
#line 6338 "configure"
d6231 1
a6231 1
if { (eval echo "$as_me:6353: \"$ac_compile\"") >&5
d6234 1
a6234 1
  echo "$as_me:6356: \$? = $ac_status" >&5
d6237 1
a6237 1
  { (eval echo "$as_me:6359: \"$ac_try\"") >&5
d6240 1
a6240 1
  echo "$as_me:6362: \$? = $ac_status" >&5
d6255 1
a6255 1
echo "$as_me:6377: result: $cf_cv_xopen_source" >&5
d6289 1
a6289 1
echo "$as_me:6411: checking if we should define _POSIX_C_SOURCE" >&5
d6295 1
a6295 1
echo "${as_me-configure}:6417: testing if the symbol is already defined go no further ..." 1>&5
d6298 1
a6298 1
#line 6420 "configure"
d6313 1
a6313 1
if { (eval echo "$as_me:6435: \"$ac_compile\"") >&5
d6316 1
a6316 1
  echo "$as_me:6438: \$? = $ac_status" >&5
d6319 1
a6319 1
  { (eval echo "$as_me:6441: \"$ac_try\"") >&5
d6322 1
a6322 1
  echo "$as_me:6444: \$? = $ac_status" >&5
d6343 1
a6343 1
#line 6465 "configure"
d6358 1
a6358 1
if { (eval echo "$as_me:6480: \"$ac_compile\"") >&5
d6361 1
a6361 1
  echo "$as_me:6483: \$? = $ac_status" >&5
d6364 1
a6364 1
  { (eval echo "$as_me:6486: \"$ac_try\"") >&5
d6367 1
a6367 1
  echo "$as_me:6489: \$? = $ac_status" >&5
d6378 1
a6378 1
echo "${as_me-configure}:6500: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
d6383 1
a6383 1
echo "${as_me-configure}:6505: testing if the second compile does not leave our definition intact error ..." 1>&5
d6386 1
a6386 1
#line 6508 "configure"
d6401 1
a6401 1
if { (eval echo "$as_me:6523: \"$ac_compile\"") >&5
d6404 1
a6404 1
  echo "$as_me:6526: \$? = $ac_status" >&5
d6407 1
a6407 1
  { (eval echo "$as_me:6529: \"$ac_try\"") >&5
d6410 1
a6410 1
  echo "$as_me:6532: \$? = $ac_status" >&5
d6426 1
a6426 1
echo "$as_me:6548: result: $cf_cv_posix_c_source" >&5
d6445 1
a6445 1
echo "$as_me:6567: checking if SIGWINCH is defined" >&5
d6452 1
a6452 1
#line 6574 "configure"
d6467 1
a6467 1
if { (eval echo "$as_me:6589: \"$ac_compile\"") >&5
d6470 1
a6470 1
  echo "$as_me:6592: \$? = $ac_status" >&5
d6473 1
a6473 1
  { (eval echo "$as_me:6595: \"$ac_try\"") >&5
d6476 1
a6476 1
  echo "$as_me:6598: \$? = $ac_status" >&5
d6483 1
a6483 1
#line 6605 "configure"
d6501 1
a6501 1
if { (eval echo "$as_me:6623: \"$ac_compile\"") >&5
d6504 1
a6504 1
  echo "$as_me:6626: \$? = $ac_status" >&5
d6507 1
a6507 1
  { (eval echo "$as_me:6629: \"$ac_try\"") >&5
d6510 1
a6510 1
  echo "$as_me:6632: \$? = $ac_status" >&5
d6524 1
a6524 1
echo "$as_me:6646: result: $cf_cv_define_sigwinch" >&5
d6528 1
a6528 1
echo "$as_me:6650: checking for actual SIGWINCH definition" >&5
d6539 1
a6539 1
#line 6661 "configure"
d6561 1
a6561 1
if { (eval echo "$as_me:6683: \"$ac_compile\"") >&5
d6564 1
a6564 1
  echo "$as_me:6686: \$? = $ac_status" >&5
d6567 1
a6567 1
  { (eval echo "$as_me:6689: \"$ac_try\"") >&5
d6570 1
a6570 1
  echo "$as_me:6692: \$? = $ac_status" >&5
d6584 1
a6584 1
echo "$as_me:6706: result: $cf_cv_fixup_sigwinch" >&5
d6594 1
a6594 1
  echo "$as_me:6716: checking for nl_langinfo and CODESET" >&5
d6600 1
a6600 1
#line 6722 "configure"
d6612 1
a6612 1
if { (eval echo "$as_me:6734: \"$ac_link\"") >&5
d6615 1
a6615 1
  echo "$as_me:6737: \$? = $ac_status" >&5
d6618 1
a6618 1
  { (eval echo "$as_me:6740: \"$ac_try\"") >&5
d6621 1
a6621 1
  echo "$as_me:6743: \$? = $ac_status" >&5
d6632 1
a6632 1
echo "$as_me:6754: result: $am_cv_langinfo_codeset" >&5
d6646 1
a6646 1
echo "$as_me:6768: checking if you want wide-character code" >&5
d6656 1
a6656 1
echo "$as_me:6778: result: $with_widec" >&5
d6664 1
a6664 1
echo "$as_me:6786: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
d6667 1
a6667 1
#line 6789 "configure"
d6683 1
a6683 1
if { (eval echo "$as_me:6805: \"$ac_compile\"") >&5
d6686 1
a6686 1
  echo "$as_me:6808: \$? = $ac_status" >&5
d6689 1
a6689 1
  { (eval echo "$as_me:6811: \"$ac_try\"") >&5
d6692 1
a6692 1
  echo "$as_me:6814: \$? = $ac_status" >&5
d6701 1
a6701 1
echo "$as_me:6823: result: $cf_result" >&5
d6707 1
a6707 1
	echo "$as_me:6829: checking checking for compatible value versus " >&5
d6710 1
a6710 1
#line 6832 "configure"
d6726 1
a6726 1
if { (eval echo "$as_me:6848: \"$ac_compile\"") >&5
d6729 1
a6729 1
  echo "$as_me:6851: \$? = $ac_status" >&5
d6732 1
a6732 1
  { (eval echo "$as_me:6854: \"$ac_try\"") >&5
d6735 1
a6735 1
  echo "$as_me:6857: \$? = $ac_status" >&5
d6744 1
a6744 1
	echo "$as_me:6866: result: $cf_result" >&5
d6758 1
a6758 1
echo "$as_me:6880: checking for $ac_func" >&5
d6764 1
a6764 1
#line 6886 "configure"
d6795 1
a6795 1
if { (eval echo "$as_me:6917: \"$ac_link\"") >&5
d6798 1
a6798 1
  echo "$as_me:6920: \$? = $ac_status" >&5
d6801 1
a6801 1
  { (eval echo "$as_me:6923: \"$ac_try\"") >&5
d6804 1
a6804 1
  echo "$as_me:6926: \$? = $ac_status" >&5
d6814 1
a6814 1
echo "$as_me:6936: result: `eval echo '${'$as_ac_var'}'`" >&5
d6826 1
a6826 1
echo "$as_me:6948: checking for putwc in libutf8" >&5
d6835 1
a6835 1
#line 6957 "configure"
d6848 1
a6848 1
if { (eval echo "$as_me:6970: \"$ac_link\"") >&5
d6851 1
a6851 1
  echo "$as_me:6973: \$? = $ac_status" >&5
d6854 1
a6854 1
  { (eval echo "$as_me:6976: \"$ac_try\"") >&5
d6857 1
a6857 1
  echo "$as_me:6979: \$? = $ac_status" >&5
d6869 1
a6869 1
echo "$as_me:6991: result: $cf_cv_libutf8" >&5
d6886 1
a6886 1
echo "$as_me:7008: checking if we must include wchar.h to declare mbstate_t" >&5
d6893 1
a6893 1
#line 7015 "configure"
d6911 1
a6911 1
if { (eval echo "$as_me:7033: \"$ac_compile\"") >&5
d6914 1
a6914 1
  echo "$as_me:7036: \$? = $ac_status" >&5
d6917 1
a6917 1
  { (eval echo "$as_me:7039: \"$ac_try\"") >&5
d6920 1
a6920 1
  echo "$as_me:7042: \$? = $ac_status" >&5
d6927 1
a6927 1
#line 7049 "configure"
d6946 1
a6946 1
if { (eval echo "$as_me:7068: \"$ac_compile\"") >&5
d6949 1
a6949 1
  echo "$as_me:7071: \$? = $ac_status" >&5
d6952 1
a6952 1
  { (eval echo "$as_me:7074: \"$ac_try\"") >&5
d6955 1
a6955 1
  echo "$as_me:7077: \$? = $ac_status" >&5
d6967 1
a6967 1
echo "$as_me:7089: result: $cf_cv_mbstate_t" >&5
d6984 1
a6984 1
echo "$as_me:7106: checking if we must include wchar.h to declare wchar_t" >&5
d6991 1
a6991 1
#line 7113 "configure"
d7009 1
a7009 1
if { (eval echo "$as_me:7131: \"$ac_compile\"") >&5
d7012 1
a7012 1
  echo "$as_me:7134: \$? = $ac_status" >&5
d7015 1
a7015 1
  { (eval echo "$as_me:7137: \"$ac_try\"") >&5
d7018 1
a7018 1
  echo "$as_me:7140: \$? = $ac_status" >&5
d7025 1
a7025 1
#line 7147 "configure"
d7044 1
a7044 1
if { (eval echo "$as_me:7166: \"$ac_compile\"") >&5
d7047 1
a7047 1
  echo "$as_me:7169: \$? = $ac_status" >&5
d7050 1
a7050 1
  { (eval echo "$as_me:7172: \"$ac_try\"") >&5
d7053 1
a7053 1
  echo "$as_me:7175: \$? = $ac_status" >&5
d7065 1
a7065 1
echo "$as_me:7187: result: $cf_cv_wchar_t" >&5
d7087 1
a7087 1
echo "$as_me:7209: checking if we must include wchar.h to declare wint_t" >&5
d7094 1
a7094 1
#line 7216 "configure"
d7112 1
a7112 1
if { (eval echo "$as_me:7234: \"$ac_compile\"") >&5
d7115 1
a7115 1
  echo "$as_me:7237: \$? = $ac_status" >&5
d7118 1
a7118 1
  { (eval echo "$as_me:7240: \"$ac_try\"") >&5
d7121 1
a7121 1
  echo "$as_me:7243: \$? = $ac_status" >&5
d7128 1
a7128 1
#line 7250 "configure"
d7147 1
a7147 1
if { (eval echo "$as_me:7269: \"$ac_compile\"") >&5
d7150 1
a7150 1
  echo "$as_me:7272: \$? = $ac_status" >&5
d7153 1
a7153 1
  { (eval echo "$as_me:7275: \"$ac_try\"") >&5
d7156 1
a7156 1
  echo "$as_me:7278: \$? = $ac_status" >&5
d7168 1
a7168 1
echo "$as_me:7290: result: $cf_cv_wint_t" >&5
d7207 1
a7207 1
echo "$as_me:7329: checking whether to enable _LP64 definition in curses.h" >&5
d7217 1
a7217 1
echo "$as_me:7339: result: $with_lp64" >&5
d7233 1
a7233 1
  echo "$as_me:7355: checking for special C compiler options needed for large files" >&5
d7245 1
a7245 1
#line 7367 "configure"
d7265 1
a7265 1
if { (eval echo "$as_me:7387: \"$ac_compile\"") >&5
d7268 1
a7268 1
  echo "$as_me:7390: \$? = $ac_status" >&5
d7271 1
a7271 1
  { (eval echo "$as_me:7393: \"$ac_try\"") >&5
d7274 1
a7274 1
  echo "$as_me:7396: \$? = $ac_status" >&5
d7284 1
a7284 1
if { (eval echo "$as_me:7406: \"$ac_compile\"") >&5
d7287 1
a7287 1
  echo "$as_me:7409: \$? = $ac_status" >&5
d7290 1
a7290 1
  { (eval echo "$as_me:7412: \"$ac_try\"") >&5
d7293 1
a7293 1
  echo "$as_me:7415: \$? = $ac_status" >&5
d7307 1
a7307 1
echo "$as_me:7429: result: $ac_cv_sys_largefile_CC" >&5
d7313 1
a7313 1
  echo "$as_me:7435: checking for _FILE_OFFSET_BITS value needed for large files" >&5
d7321 1
a7321 1
#line 7443 "configure"
d7341 1
a7341 1
if { (eval echo "$as_me:7463: \"$ac_compile\"") >&5
d7344 1
a7344 1
  echo "$as_me:7466: \$? = $ac_status" >&5
d7347 1
a7347 1
  { (eval echo "$as_me:7469: \"$ac_try\"") >&5
d7350 1
a7350 1
  echo "$as_me:7472: \$? = $ac_status" >&5
d7359 1
a7359 1
#line 7481 "configure"
d7380 1
a7380 1
if { (eval echo "$as_me:7502: \"$ac_compile\"") >&5
d7383 1
a7383 1
  echo "$as_me:7505: \$? = $ac_status" >&5
d7386 1
a7386 1
  { (eval echo "$as_me:7508: \"$ac_try\"") >&5
d7389 1
a7389 1
  echo "$as_me:7511: \$? = $ac_status" >&5
d7400 1
a7400 1
echo "$as_me:7522: result: $ac_cv_sys_file_offset_bits" >&5
d7410 1
a7410 1
  echo "$as_me:7532: checking for _LARGE_FILES value needed for large files" >&5
d7418 1
a7418 1
#line 7540 "configure"
d7438 1
a7438 1
if { (eval echo "$as_me:7560: \"$ac_compile\"") >&5
d7441 1
a7441 1
  echo "$as_me:7563: \$? = $ac_status" >&5
d7444 1
a7444 1
  { (eval echo "$as_me:7566: \"$ac_try\"") >&5
d7447 1
a7447 1
  echo "$as_me:7569: \$? = $ac_status" >&5
d7456 1
a7456 1
#line 7578 "configure"
d7477 1
a7477 1
if { (eval echo "$as_me:7599: \"$ac_compile\"") >&5
d7480 1
a7480 1
  echo "$as_me:7602: \$? = $ac_status" >&5
d7483 1
a7483 1
  { (eval echo "$as_me:7605: \"$ac_try\"") >&5
d7486 1
a7486 1
  echo "$as_me:7608: \$? = $ac_status" >&5
d7497 1
a7497 1
echo "$as_me:7619: result: $ac_cv_sys_large_files" >&5
d7510 1
a7510 1
	echo "$as_me:7632: checking for _LARGEFILE_SOURCE value needed for large files" >&5
d7518 1
a7518 1
#line 7640 "configure"
d7530 1
a7530 1
if { (eval echo "$as_me:7652: \"$ac_compile\"") >&5
d7533 1
a7533 1
  echo "$as_me:7655: \$? = $ac_status" >&5
d7536 1
a7536 1
  { (eval echo "$as_me:7658: \"$ac_try\"") >&5
d7539 1
a7539 1
  echo "$as_me:7661: \$? = $ac_status" >&5
d7548 1
a7548 1
#line 7670 "configure"
d7561 1
a7561 1
if { (eval echo "$as_me:7683: \"$ac_compile\"") >&5
d7564 1
a7564 1
  echo "$as_me:7686: \$? = $ac_status" >&5
d7567 1
a7567 1
  { (eval echo "$as_me:7689: \"$ac_try\"") >&5
d7570 1
a7570 1
  echo "$as_me:7692: \$? = $ac_status" >&5
d7581 1
a7581 1
echo "$as_me:7703: result: $ac_cv_sys_largefile_source" >&5
d7595 1
a7595 1
echo "$as_me:7717: checking for fseeko" >&5
d7601 1
a7601 1
#line 7723 "configure"
d7613 1
a7613 1
if { (eval echo "$as_me:7735: \"$ac_link\"") >&5
d7616 1
a7616 1
  echo "$as_me:7738: \$? = $ac_status" >&5
d7619 1
a7619 1
  { (eval echo "$as_me:7741: \"$ac_try\"") >&5
d7622 1
a7622 1
  echo "$as_me:7744: \$? = $ac_status" >&5
d7632 1
a7632 1
echo "$as_me:7754: result: $ac_cv_func_fseeko" >&5
a7650 1
	test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
d7652 1
a7652 1
	echo "$as_me:7775: checking whether to use struct dirent64" >&5
d7659 1
a7659 1
#line 7782 "configure"
d7680 1
a7680 1
if { (eval echo "$as_me:7803: \"$ac_compile\"") >&5
d7683 1
a7683 1
  echo "$as_me:7806: \$? = $ac_status" >&5
d7686 1
a7686 1
  { (eval echo "$as_me:7809: \"$ac_try\"") >&5
d7689 1
a7689 1
  echo "$as_me:7812: \$? = $ac_status" >&5
d7700 1
a7700 1
echo "$as_me:7823: result: $cf_cv_struct_dirent64" >&5
d7709 1
a7709 1
echo "$as_me:7832: checking if you want tparm not to use X/Open fixed-parameter list" >&5
d7719 1
a7719 1
echo "$as_me:7842: result: $with_tparm_varargs" >&5
d7725 1
a7725 1
echo "$as_me:7848: checking for type of bool" >&5
d7735 1
a7735 1
echo "$as_me:7858: result: $NCURSES_BOOL" >&5
d7738 1
a7738 1
echo "$as_me:7861: checking for alternate terminal capabilities file" >&5
d7749 1
a7749 1
echo "$as_me:7872: result: $TERMINFO_CAPS" >&5
d7753 1
a7753 1
echo "$as_me:7876: checking for type of chtype" >&5
d7763 1
a7763 1
echo "$as_me:7886: result: $NCURSES_CHTYPE" >&5
d7767 1
a7767 1
echo "$as_me:7890: checking for type of ospeed" >&5
d7777 1
a7777 1
echo "$as_me:7900: result: $NCURSES_OSPEED" >&5
d7781 1
a7781 1
echo "$as_me:7904: checking for type of mmask_t" >&5
d7791 1
a7791 1
echo "$as_me:7914: result: $NCURSES_MMASK_T" >&5
d7795 1
a7795 1
echo "$as_me:7918: checking if RCS identifiers should be compiled-in" >&5
d7805 1
a7805 1
echo "$as_me:7928: result: $with_rcs_ids" >&5
d7813 1
a7813 1
echo "$as_me:7936: checking format of man-pages" >&5
d7902 1
a7902 1
echo "$as_me:8025: result: $MANPAGE_FORMAT" >&5
d7905 1
a7905 1
  { echo "$as_me:8028: WARNING: Unexpected manpage-format $cf_unknown" >&5
d7909 1
a7909 1
echo "$as_me:8032: checking for manpage renaming" >&5
d7937 1
a7937 1
    { { echo "$as_me:8060: error: not a filename: $MANPAGE_RENAMES" >&5
d7951 1
a7951 1
echo "$as_me:8074: result: $MANPAGE_RENAMES" >&5
d7954 1
a7954 1
echo "$as_me:8077: checking if manpage aliases will be installed" >&5
d7965 1
a7965 1
echo "$as_me:8088: result: $MANPAGE_ALIASES" >&5
d7976 1
a7976 1
echo "$as_me:8099: checking if manpage symlinks should be used" >&5
d7989 1
a7989 1
	{ echo "$as_me:8112: WARNING: cannot make symlinks" >&5
d7995 1
a7995 1
echo "$as_me:8118: result: $MANPAGE_SYMLINKS" >&5
d7999 1
a7999 1
echo "$as_me:8122: checking for manpage tbl" >&5
d8010 1
a8010 1
echo "$as_me:8133: result: $MANPAGE_TBL" >&5
a8049 1
cf_man_alias=`pwd`/man_alias.sed
d8065 1
a8065 1
MKDIRS="sh `cd $srcdir && pwd`/mkdirs.sh"
d8113 2
a8114 28

	# replace variables in man page
	if test ! -f $cf_man_alias ; then
cat >>$cf_man_alias <<-CF_EOF2
		s,@@DATADIR@@,\$datadir,g
		s,@@TERMINFO@@,\$TERMINFO,g
		s,@@NCURSES_MAJOR@@,\$NCURSES_MAJOR,g
		s,@@NCURSES_MINOR@@,\$NCURSES_MINOR,g
		s,@@NCURSES_PATCH@@,\$NCURSES_PATCH,g
		s,@@NCURSES_OSPEED@@,\$NCURSES_OSPEED,g
CF_EOF

	for cf_name in  captoinfo clear infocmp infotocap tic toe tput
	do
		cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
		cf_name=`echo $cf_name|sed "$program_transform_name"`
cat >>$cf_edit_man <<-CF_EOF
		s,@@$cf_NAME@@,$cf_name,
CF_EOF
	done

cat >>$cf_edit_man <<CF_EOF
CF_EOF2
		echo "...made $cf_man_alias"
	fi

	aliases=
	cf_source=\`basename \$i\`
d8125 1
a8125 1
	aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u\`
d8146 4
d8151 14
a8165 1
fi
d8167 3
d8171 1
a8171 1
	sed	-f $cf_man_alias \\
d8173 1
a8233 1
		test -d \$cf_subdir\${section} &&
d8275 2
a8276 5
		test -f \$cf_target && (
			echo \$verb \$cf_target
			rm -f \$cf_target
		)
		test -d \$cf_subdir\${section} &&
d8311 1
a8311 1
echo "$as_me:8444: checking if you want to build with function extensions" >&5
d8321 1
a8321 1
echo "$as_me:8454: result: $with_ext_funcs" >&5
d8358 1
a8358 1
echo "$as_me:8491: checking for extended use of const keyword" >&5
d8368 1
a8368 1
echo "$as_me:8501: result: $with_ext_const" >&5
d8375 1
a8375 1
echo "$as_me:8508: checking if you want \$NCURSES_NO_PADDING code" >&5
d8385 1
a8385 1
echo "$as_me:8518: result: $with_no_padding" >&5
d8391 1
a8391 1
echo "$as_me:8524: checking for ANSI C header files" >&5
d8397 1
a8397 1
#line 8530 "configure"
d8405 1
a8405 1
if { (eval echo "$as_me:8538: \"$ac_cpp conftest.$ac_ext\"") >&5
d8411 1
a8411 1
  echo "$as_me:8544: \$? = $ac_status" >&5
d8433 1
a8433 1
#line 8566 "configure"
d8451 1
a8451 1
#line 8584 "configure"
d8472 1
a8472 1
#line 8605 "configure"
d8498 1
a8498 1
if { (eval echo "$as_me:8631: \"$ac_link\"") >&5
d8501 1
a8501 1
  echo "$as_me:8634: \$? = $ac_status" >&5
d8503 1
a8503 1
  { (eval echo "$as_me:8636: \"$ac_try\"") >&5
d8506 1
a8506 1
  echo "$as_me:8639: \$? = $ac_status" >&5
d8519 1
a8519 1
echo "$as_me:8652: result: $ac_cv_header_stdc" >&5
d8535 1
a8535 1
echo "$as_me:8668: checking for $ac_header" >&5
d8541 1
a8541 1
#line 8674 "configure"
d8547 1
a8547 1
if { (eval echo "$as_me:8680: \"$ac_compile\"") >&5
d8550 1
a8550 1
  echo "$as_me:8683: \$? = $ac_status" >&5
d8553 1
a8553 1
  { (eval echo "$as_me:8686: \"$ac_try\"") >&5
d8556 1
a8556 1
  echo "$as_me:8689: \$? = $ac_status" >&5
d8566 1
a8566 1
echo "$as_me:8699: result: `eval echo '${'$as_ac_Header'}'`" >&5
d8576 1
a8576 1
echo "$as_me:8709: checking for signed char" >&5
d8582 1
a8582 1
#line 8715 "configure"
d8597 1
a8597 1
if { (eval echo "$as_me:8730: \"$ac_compile\"") >&5
d8600 1
a8600 1
  echo "$as_me:8733: \$? = $ac_status" >&5
d8603 1
a8603 1
  { (eval echo "$as_me:8736: \"$ac_try\"") >&5
d8606 1
a8606 1
  echo "$as_me:8739: \$? = $ac_status" >&5
d8616 1
a8616 1
echo "$as_me:8749: result: $ac_cv_type_signed_char" >&5
d8619 1
a8619 1
echo "$as_me:8752: checking size of signed char" >&5
d8628 1
a8628 1
#line 8761 "configure"
d8640 1
a8640 1
if { (eval echo "$as_me:8773: \"$ac_compile\"") >&5
d8643 1
a8643 1
  echo "$as_me:8776: \$? = $ac_status" >&5
d8646 1
a8646 1
  { (eval echo "$as_me:8779: \"$ac_try\"") >&5
d8649 1
a8649 1
  echo "$as_me:8782: \$? = $ac_status" >&5
d8654 1
a8654 1
#line 8787 "configure"
d8666 1
a8666 1
if { (eval echo "$as_me:8799: \"$ac_compile\"") >&5
d8669 1
a8669 1
  echo "$as_me:8802: \$? = $ac_status" >&5
d8672 1
a8672 1
  { (eval echo "$as_me:8805: \"$ac_try\"") >&5
d8675 1
a8675 1
  echo "$as_me:8808: \$? = $ac_status" >&5
d8691 1
a8691 1
#line 8824 "configure"
d8703 1
a8703 1
if { (eval echo "$as_me:8836: \"$ac_compile\"") >&5
d8706 1
a8706 1
  echo "$as_me:8839: \$? = $ac_status" >&5
d8709 1
a8709 1
  { (eval echo "$as_me:8842: \"$ac_try\"") >&5
d8712 1
a8712 1
  echo "$as_me:8845: \$? = $ac_status" >&5
d8728 1
a8728 1
#line 8861 "configure"
d8740 1
a8740 1
if { (eval echo "$as_me:8873: \"$ac_compile\"") >&5
d8743 1
a8743 1
  echo "$as_me:8876: \$? = $ac_status" >&5
d8746 1
a8746 1
  { (eval echo "$as_me:8879: \"$ac_try\"") >&5
d8749 1
a8749 1
  echo "$as_me:8882: \$? = $ac_status" >&5
d8762 1
a8762 1
  { { echo "$as_me:8895: error: cannot run test program while cross compiling" >&5
d8767 1
a8767 1
#line 8900 "configure"
d8783 1
a8783 1
if { (eval echo "$as_me:8916: \"$ac_link\"") >&5
d8786 1
a8786 1
  echo "$as_me:8919: \$? = $ac_status" >&5
d8788 1
a8788 1
  { (eval echo "$as_me:8921: \"$ac_try\"") >&5
d8791 1
a8791 1
  echo "$as_me:8924: \$? = $ac_status" >&5
d8807 1
a8807 1
echo "$as_me:8940: result: $ac_cv_sizeof_signed_char" >&5
d8818 1
a8818 1
echo "$as_me:8951: checking if you want to use signed Boolean array in term.h" >&5
d8828 1
a8828 1
echo "$as_me:8961: result: $with_signed_char" >&5
d8833 1
a8833 1
echo "$as_me:8966: checking if you want SIGWINCH handler" >&5
d8843 1
a8843 1
echo "$as_me:8976: result: $with_sigwinch" >&5
d8850 1
a8850 1
echo "$as_me:8983: checking if you want user-definable terminal capabilities like termcap" >&5
d8860 1
a8860 1
echo "$as_me:8993: result: $with_tcap_names" >&5
d8868 1
a8868 1
echo "$as_me:9001: checking if you want all development code" >&5
d8878 1
a8878 1
echo "$as_me:9011: result: $with_develop" >&5
d8882 1
a8882 1
echo "$as_me:9015: checking if you want hard-tabs code" >&5
d8892 1
a8892 1
echo "$as_me:9025: result: $enable_hard_tabs" >&5
d8899 1
a8899 1
echo "$as_me:9032: checking if you want limited support for xmc" >&5
d8909 1
a8909 1
echo "$as_me:9042: result: $enable_xmc_glitch" >&5
d8918 1
a8918 1
echo "$as_me:9051: checking if you do not want to assume colors are white-on-black" >&5
d8928 1
a8928 1
echo "$as_me:9061: result: $with_assumed_color" >&5
d8935 1
a8935 1
echo "$as_me:9068: checking if you want hashmap scrolling-optimization code" >&5
d8945 1
a8945 1
echo "$as_me:9078: result: $with_hashmap" >&5
d8952 1
a8952 1
echo "$as_me:9085: checking if you want colorfgbg code" >&5
d8962 1
a8962 1
echo "$as_me:9095: result: $with_colorfgbg" >&5
d8969 1
a8969 1
echo "$as_me:9102: checking if you want to use experimental extended colors" >&5
d8979 1
a8979 1
echo "$as_me:9112: result: $with_ext_colors" >&5
d8984 2
a8985 3
		{ { echo "$as_me:9117: error: This option applies only to wide-character library" >&5
echo "$as_me: error: This option applies only to wide-character library" >&2;}
   { (exit 1); exit 1; }; }
d8994 1
a8994 1
		{ echo "$as_me:9128: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
d9009 1
a9009 1
echo "$as_me:9143: checking if you want to use experimental extended mouse encoding" >&5
d9019 1
a9019 1
echo "$as_me:9153: result: $with_ext_mouse" >&5
d9030 1
a9030 1
		{ echo "$as_me:9164: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
d9038 1
a9038 43
# Reentrant code has to be opaque; there's little advantage to making ncurses
# opaque outside of that, so there is no --enable-opaque option.
echo "$as_me:9174: checking if you want experimental reentrant code" >&5
echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6

# Check whether --enable-reentrant or --disable-reentrant was given.
if test "${enable_reentrant+set}" = set; then
  enableval="$enable_reentrant"
  with_reentrant=$enableval
else
  with_reentrant=no
fi;
echo "$as_me:9184: result: $with_reentrant" >&5
echo "${ECHO_T}$with_reentrant" >&6
if test "$with_reentrant" = yes ; then
	cf_cv_enable_reentrant=1
	cf_cv_enable_opaque="NCURSES_INTERNALS"
	NCURSES_OPAQUE=1
	NCURSES_SIZE_T=int
	LIB_SUFFIX="t${LIB_SUFFIX}"
	cat >>confdefs.h <<\EOF
#define USE_REENTRANT 1
EOF

if test "${with_abi_version+set}" != set; then
	case $cf_cv_rel_version in
	5.*)
		cf_cv_rel_version=6.0
		cf_cv_abi_version=6
		{ echo "$as_me:9201: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
		;;
	esac
fi

else
	cf_cv_enable_reentrant=0
	cf_cv_enable_opaque="NCURSES_OPAQUE"
	NCURSES_OPAQUE=0
	NCURSES_SIZE_T=short
fi

echo "$as_me:9214: checking if you want experimental safe-sprintf code" >&5
d9048 1
a9048 1
echo "$as_me:9224: result: $with_safe_sprintf" >&5
d9057 1
a9057 1
echo "$as_me:9233: checking if you want to experiment without scrolling-hints code" >&5
d9067 1
a9067 1
echo "$as_me:9243: result: $with_scroll_hints" >&5
d9075 1
a9075 1
echo "$as_me:9251: checking if you want experimental wgetch-events code" >&5
d9085 1
a9085 1
echo "$as_me:9261: result: $with_wgetch_events" >&5
d9094 1
a9094 1
echo "$as_me:9270: checking if you want to display full commands during build" >&5
a9108 1
	test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
d9110 1
a9110 1
echo "$as_me:9287: result: $with_echo" >&5
d9114 1
a9114 1
echo "$as_me:9291: checking if you want to see compiler warnings" >&5
d9122 1
a9122 1
echo "$as_me:9299: result: $with_warnings" >&5
d9125 1
a9125 1
if test "x$with_warnings" = "xyes"; then
d9133 1
a9133 1
		echo "$as_me:9310: checking if this is really Intel C compiler" >&5
d9138 1
a9138 1
#line 9315 "configure"
d9155 1
a9155 1
if { (eval echo "$as_me:9332: \"$ac_compile\"") >&5
d9158 1
a9158 1
  echo "$as_me:9335: \$? = $ac_status" >&5
d9161 1
a9161 1
  { (eval echo "$as_me:9338: \"$ac_try\"") >&5
d9164 1
a9164 1
  echo "$as_me:9341: \$? = $ac_status" >&5
d9175 1
a9175 1
		echo "$as_me:9352: result: $INTEL_COMPILER" >&5
d9182 1
a9182 1
#line 9359 "${as_me-configure}"
d9200 1
a9200 1
	{ echo "$as_me:9377: checking for $CC warning options..." >&5
d9204 1
a9204 1
	for cf_opt in \
d9217 1
a9217 1
		if { (eval echo "$as_me:9394: \"$ac_compile\"") >&5
d9220 1
a9220 1
  echo "$as_me:9397: \$? = $ac_status" >&5
d9222 1
a9222 1
			test -n "$verbose" && echo "$as_me:9399: result: ... -$cf_opt" >&5
d9231 1
a9231 1
	{ echo "$as_me:9408: checking for $CC warning options..." >&5
d9248 1
a9248 1
		Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
d9251 1
a9251 1
		if { (eval echo "$as_me:9428: \"$ac_compile\"") >&5
d9254 1
a9254 1
  echo "$as_me:9431: \$? = $ac_status" >&5
d9256 1
a9256 1
			test -n "$verbose" && echo "$as_me:9433: result: ... -$cf_opt" >&5
a9266 2
echo "${as_me-configure}:9444: testing feature is broken in gcc $GCC_VERSION ..." 1>&5

d9285 1
a9285 1
		echo "$as_me:9464: checking if this is really Intel C++ compiler" >&5
d9290 1
a9290 1
#line 9469 "configure"
d9307 1
a9307 1
if { (eval echo "$as_me:9486: \"$ac_compile\"") >&5
d9310 1
a9310 1
  echo "$as_me:9489: \$? = $ac_status" >&5
d9313 1
a9313 1
  { (eval echo "$as_me:9492: \"$ac_try\"") >&5
d9316 1
a9316 1
  echo "$as_me:9495: \$? = $ac_status" >&5
d9327 1
a9327 1
		echo "$as_me:9506: result: $INTEL_CPLUSPLUS" >&5
d9341 1
a9341 1
#line 9520 "configure"
d9359 1
a9359 1
	{ echo "$as_me:9538: checking for $CC warning options..." >&5
d9376 1
a9376 1
		if { (eval echo "$as_me:9555: \"$ac_compile\"") >&5
d9379 1
a9379 1
  echo "$as_me:9558: \$? = $ac_status" >&5
d9381 1
a9381 1
			test -n "$verbose" && echo "$as_me:9560: result: ... -$cf_opt" >&5
d9390 1
a9390 1
	{ echo "$as_me:9569: checking for $CXX warning options..." >&5
d9419 1
a9419 1
		if { (eval echo "$as_me:9598: \"$ac_compile\"") >&5
d9422 1
a9422 1
  echo "$as_me:9601: \$? = $ac_status" >&5
d9424 1
a9424 1
			test -n "$verbose" && echo "$as_me:9603: result: ... -$cf_opt" >&5
d9428 1
a9428 1
			test -n "$verbose" && echo "$as_me:9607: result: ... no -$cf_opt" >&5
d9464 1
a9464 1
	{ echo "$as_me:9643: checking for $CC __attribute__ directives..." >&5
d9467 1
a9467 1
#line 9646 "${as_me-configure}"
d9505 1
a9505 1
		if { (eval echo "$as_me:9684: \"$ac_compile\"") >&5
d9508 1
a9508 1
  echo "$as_me:9687: \$? = $ac_status" >&5
d9510 1
a9510 1
			test -n "$verbose" && echo "$as_me:9689: result: ... $cf_attribute" >&5
d9522 1
a9522 1
echo "$as_me:9701: checking if you want to enable runtime assertions" >&5
d9532 1
a9532 1
echo "$as_me:9711: result: $with_assertions" >&5
d9550 1
a9550 1
echo "$as_me:9729: checking if you want to use dmalloc for testing" >&5
d9566 1
a9566 1
echo "$as_me:9745: result: ${with_dmalloc:-no}" >&5
d9650 1
a9650 1
	echo "$as_me:9829: checking for dmalloc.h" >&5
d9656 1
a9656 1
#line 9835 "configure"
d9660 1
a9660 1
if { (eval echo "$as_me:9839: \"$ac_cpp conftest.$ac_ext\"") >&5
d9666 1
a9666 1
  echo "$as_me:9845: \$? = $ac_status" >&5
d9685 1
a9685 1
echo "$as_me:9864: result: $ac_cv_header_dmalloc_h" >&5
d9689 1
a9689 1
echo "$as_me:9868: checking for dmalloc_debug in -ldmalloc" >&5
d9697 1
a9697 1
#line 9876 "configure"
d9716 1
a9716 1
if { (eval echo "$as_me:9895: \"$ac_link\"") >&5
d9719 1
a9719 1
  echo "$as_me:9898: \$? = $ac_status" >&5
d9722 1
a9722 1
  { (eval echo "$as_me:9901: \"$ac_try\"") >&5
d9725 1
a9725 1
  echo "$as_me:9904: \$? = $ac_status" >&5
d9736 1
a9736 1
echo "$as_me:9915: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
d9751 1
a9751 1
echo "$as_me:9930: checking if you want to use dbmalloc for testing" >&5
d9767 1
a9767 1
echo "$as_me:9946: result: ${with_dbmalloc:-no}" >&5
d9851 1
a9851 1
	echo "$as_me:10030: checking for dbmalloc.h" >&5
d9857 1
a9857 1
#line 10036 "configure"
d9861 1
a9861 1
if { (eval echo "$as_me:10040: \"$ac_cpp conftest.$ac_ext\"") >&5
d9867 1
a9867 1
  echo "$as_me:10046: \$? = $ac_status" >&5
d9886 1
a9886 1
echo "$as_me:10065: result: $ac_cv_header_dbmalloc_h" >&5
d9890 1
a9890 1
echo "$as_me:10069: checking for debug_malloc in -ldbmalloc" >&5
d9898 1
a9898 1
#line 10077 "configure"
d9917 1
a9917 1
if { (eval echo "$as_me:10096: \"$ac_link\"") >&5
d9920 1
a9920 1
  echo "$as_me:10099: \$? = $ac_status" >&5
d9923 1
a9923 1
  { (eval echo "$as_me:10102: \"$ac_try\"") >&5
d9926 1
a9926 1
  echo "$as_me:10105: \$? = $ac_status" >&5
d9937 1
a9937 1
echo "$as_me:10116: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
d9952 1
a9952 1
echo "$as_me:10131: checking if you want to use valgrind for testing" >&5
d9968 1
a9968 1
echo "$as_me:10147: result: ${with_valgrind:-no}" >&5
d10051 1
a10051 1
echo "$as_me:10230: checking if you want to perform memory-leak testing" >&5
d10061 1
a10061 1
echo "$as_me:10240: result: $with_no_leaks" >&5
d10106 1
a10106 1
echo "$as_me:10285: checking whether to add trace feature to all models" >&5
d10116 1
a10116 1
echo "$as_me:10295: result: $cf_with_trace" >&5
d10197 1
a10197 1
echo "$as_me:10376: checking for gettimeofday" >&5
d10203 1
a10203 1
#line 10382 "configure"
d10234 1
a10234 1
if { (eval echo "$as_me:10413: \"$ac_link\"") >&5
d10237 1
a10237 1
  echo "$as_me:10416: \$? = $ac_status" >&5
d10240 1
a10240 1
  { (eval echo "$as_me:10419: \"$ac_try\"") >&5
d10243 1
a10243 1
  echo "$as_me:10422: \$? = $ac_status" >&5
d10253 1
a10253 1
echo "$as_me:10432: result: $ac_cv_func_gettimeofday" >&5
d10262 1
a10262 1
echo "$as_me:10441: checking for gettimeofday in -lbsd" >&5
d10270 1
a10270 1
#line 10449 "configure"
d10289 1
a10289 1
if { (eval echo "$as_me:10468: \"$ac_link\"") >&5
d10292 1
a10292 1
  echo "$as_me:10471: \$? = $ac_status" >&5
d10295 1
a10295 1
  { (eval echo "$as_me:10474: \"$ac_try\"") >&5
d10298 1
a10298 1
  echo "$as_me:10477: \$? = $ac_status" >&5
d10309 1
a10309 1
echo "$as_me:10488: result: $ac_cv_lib_bsd_gettimeofday" >&5
d10321 1
a10321 1
echo "$as_me:10500: checking if -lm needed for math functions" >&5
d10328 1
a10328 1
#line 10507 "configure"
d10343 1
a10343 1
if { (eval echo "$as_me:10522: \"$ac_link\"") >&5
d10346 1
a10346 1
  echo "$as_me:10525: \$? = $ac_status" >&5
d10349 1
a10349 1
  { (eval echo "$as_me:10528: \"$ac_try\"") >&5
d10352 1
a10352 1
  echo "$as_me:10531: \$? = $ac_status" >&5
d10362 1
a10362 1
echo "$as_me:10541: result: $cf_cv_need_libm" >&5
d10370 1
a10370 1
echo "$as_me:10549: checking for ANSI C header files" >&5
d10376 1
a10376 1
#line 10555 "configure"
d10384 1
a10384 1
if { (eval echo "$as_me:10563: \"$ac_cpp conftest.$ac_ext\"") >&5
d10390 1
a10390 1
  echo "$as_me:10569: \$? = $ac_status" >&5
d10412 1
a10412 1
#line 10591 "configure"
d10430 1
a10430 1
#line 10609 "configure"
d10451 1
a10451 1
#line 10630 "configure"
d10477 1
a10477 1
if { (eval echo "$as_me:10656: \"$ac_link\"") >&5
d10480 1
a10480 1
  echo "$as_me:10659: \$? = $ac_status" >&5
d10482 1
a10482 1
  { (eval echo "$as_me:10661: \"$ac_try\"") >&5
d10485 1
a10485 1
  echo "$as_me:10664: \$? = $ac_status" >&5
d10498 1
a10498 1
echo "$as_me:10677: result: $ac_cv_header_stdc" >&5
d10511 1
a10511 1
echo "$as_me:10690: checking for $ac_hdr that defines DIR" >&5
d10517 1
a10517 1
#line 10696 "configure"
d10532 1
a10532 1
if { (eval echo "$as_me:10711: \"$ac_compile\"") >&5
d10535 1
a10535 1
  echo "$as_me:10714: \$? = $ac_status" >&5
d10538 1
a10538 1
  { (eval echo "$as_me:10717: \"$ac_try\"") >&5
d10541 1
a10541 1
  echo "$as_me:10720: \$? = $ac_status" >&5
d10551 1
a10551 1
echo "$as_me:10730: result: `eval echo '${'$as_ac_Header'}'`" >&5
d10564 1
a10564 1
  echo "$as_me:10743: checking for opendir in -ldir" >&5
d10572 1
a10572 1
#line 10751 "configure"
d10591 1
a10591 1
if { (eval echo "$as_me:10770: \"$ac_link\"") >&5
d10594 1
a10594 1
  echo "$as_me:10773: \$? = $ac_status" >&5
d10597 1
a10597 1
  { (eval echo "$as_me:10776: \"$ac_try\"") >&5
d10600 1
a10600 1
  echo "$as_me:10779: \$? = $ac_status" >&5
d10611 1
a10611 1
echo "$as_me:10790: result: $ac_cv_lib_dir_opendir" >&5
d10618 1
a10618 1
  echo "$as_me:10797: checking for opendir in -lx" >&5
d10626 1
a10626 1
#line 10805 "configure"
d10645 1
a10645 1
if { (eval echo "$as_me:10824: \"$ac_link\"") >&5
d10648 1
a10648 1
  echo "$as_me:10827: \$? = $ac_status" >&5
d10651 1
a10651 1
  { (eval echo "$as_me:10830: \"$ac_try\"") >&5
d10654 1
a10654 1
  echo "$as_me:10833: \$? = $ac_status" >&5
d10665 1
a10665 1
echo "$as_me:10844: result: $ac_cv_lib_x_opendir" >&5
d10673 1
a10673 1
echo "$as_me:10852: checking whether time.h and sys/time.h may both be included" >&5
d10679 1
a10679 1
#line 10858 "configure"
d10695 1
a10695 1
if { (eval echo "$as_me:10874: \"$ac_compile\"") >&5
d10698 1
a10698 1
  echo "$as_me:10877: \$? = $ac_status" >&5
d10701 1
a10701 1
  { (eval echo "$as_me:10880: \"$ac_try\"") >&5
d10704 1
a10704 1
  echo "$as_me:10883: \$? = $ac_status" >&5
d10714 1
a10714 1
echo "$as_me:10893: result: $ac_cv_header_time" >&5
d10724 1
a10724 1
echo "$as_me:10903: checking for regular-expression headers" >&5
d10731 1
a10731 1
#line 10910 "configure"
d10749 1
a10749 1
if { (eval echo "$as_me:10928: \"$ac_link\"") >&5
d10752 1
a10752 1
  echo "$as_me:10931: \$? = $ac_status" >&5
d10755 1
a10755 1
  { (eval echo "$as_me:10934: \"$ac_try\"") >&5
d10758 1
a10758 1
  echo "$as_me:10937: \$? = $ac_status" >&5
d10766 1
a10766 1
#line 10945 "configure"
d10781 1
a10781 1
if { (eval echo "$as_me:10960: \"$ac_link\"") >&5
d10784 1
a10784 1
  echo "$as_me:10963: \$? = $ac_status" >&5
d10787 1
a10787 1
  { (eval echo "$as_me:10966: \"$ac_try\"") >&5
d10790 1
a10790 1
  echo "$as_me:10969: \$? = $ac_status" >&5
d10800 1
a10800 1
#line 10979 "configure"
d10815 1
a10815 1
if { (eval echo "$as_me:10994: \"$ac_link\"") >&5
d10818 1
a10818 1
  echo "$as_me:10997: \$? = $ac_status" >&5
d10821 1
a10821 1
  { (eval echo "$as_me:11000: \"$ac_try\"") >&5
d10824 1
a10824 1
  echo "$as_me:11003: \$? = $ac_status" >&5
d10840 1
a10840 1
echo "$as_me:11019: result: $cf_cv_regex" >&5
d10876 1
a10876 1
echo "$as_me:11055: checking for $ac_header" >&5
d10882 1
a10882 1
#line 11061 "configure"
d10886 1
a10886 1
if { (eval echo "$as_me:11065: \"$ac_cpp conftest.$ac_ext\"") >&5
d10892 1
a10892 1
  echo "$as_me:11071: \$? = $ac_status" >&5
d10911 1
a10911 1
echo "$as_me:11090: result: `eval echo '${'$as_ac_Header'}'`" >&5
d10925 1
a10925 1
echo "$as_me:11104: checking for main in -lcposix" >&5
d10933 1
a10933 1
#line 11112 "configure"
d10945 1
a10945 1
if { (eval echo "$as_me:11124: \"$ac_link\"") >&5
d10948 1
a10948 1
  echo "$as_me:11127: \$? = $ac_status" >&5
d10951 1
a10951 1
  { (eval echo "$as_me:11130: \"$ac_try\"") >&5
d10954 1
a10954 1
  echo "$as_me:11133: \$? = $ac_status" >&5
d10965 1
a10965 1
echo "$as_me:11144: result: $ac_cv_lib_cposix_main" >&5
d10976 1
a10976 1
	echo "$as_me:11155: checking for bzero in -linet" >&5
d10984 1
a10984 1
#line 11163 "configure"
d11003 1
a11003 1
if { (eval echo "$as_me:11182: \"$ac_link\"") >&5
d11006 1
a11006 1
  echo "$as_me:11185: \$? = $ac_status" >&5
d11009 1
a11009 1
  { (eval echo "$as_me:11188: \"$ac_try\"") >&5
d11012 1
a11012 1
  echo "$as_me:11191: \$? = $ac_status" >&5
d11023 1
a11023 1
echo "$as_me:11202: result: $ac_cv_lib_inet_bzero" >&5
d11030 1
a11030 1
echo "$as_me:11209: checking if sys/time.h works with sys/select.h" >&5
d11037 1
a11037 1
#line 11216 "configure"
d11057 1
a11057 1
if { (eval echo "$as_me:11236: \"$ac_compile\"") >&5
d11060 1
a11060 1
  echo "$as_me:11239: \$? = $ac_status" >&5
d11063 1
a11063 1
  { (eval echo "$as_me:11242: \"$ac_try\"") >&5
d11066 1
a11066 1
  echo "$as_me:11245: \$? = $ac_status" >&5
d11078 1
a11078 1
echo "$as_me:11257: result: $cf_cv_sys_time_select" >&5
d11092 1
a11092 1
echo "$as_me:11271: checking for $CC option to accept ANSI C" >&5
d11100 1
a11100 1
#line 11279 "configure"
d11149 1
a11149 1
if { (eval echo "$as_me:11328: \"$ac_compile\"") >&5
d11152 1
a11152 1
  echo "$as_me:11331: \$? = $ac_status" >&5
d11155 1
a11155 1
  { (eval echo "$as_me:11334: \"$ac_try\"") >&5
d11158 1
a11158 1
  echo "$as_me:11337: \$? = $ac_status" >&5
d11175 1
a11175 1
    echo "$as_me:11354: result: none needed" >&5
d11178 1
a11178 1
    echo "$as_me:11357: result: $ac_cv_prog_cc_stdc" >&5
d11183 1
a11183 1
echo "$as_me:11362: checking for an ANSI C-conforming const" >&5
d11189 1
a11189 1
#line 11368 "configure"
d11247 1
a11247 1
if { (eval echo "$as_me:11426: \"$ac_compile\"") >&5
d11250 1
a11250 1
  echo "$as_me:11429: \$? = $ac_status" >&5
d11253 1
a11253 1
  { (eval echo "$as_me:11432: \"$ac_try\"") >&5
d11256 1
a11256 1
  echo "$as_me:11435: \$? = $ac_status" >&5
d11266 1
a11266 1
echo "$as_me:11445: result: $ac_cv_c_const" >&5
d11276 1
a11276 1
echo "$as_me:11455: checking for inline" >&5
d11284 1
a11284 1
#line 11463 "configure"
d11293 1
a11293 1
if { (eval echo "$as_me:11472: \"$ac_compile\"") >&5
d11296 1
a11296 1
  echo "$as_me:11475: \$? = $ac_status" >&5
d11299 1
a11299 1
  { (eval echo "$as_me:11478: \"$ac_try\"") >&5
d11302 1
a11302 1
  echo "$as_me:11481: \$? = $ac_status" >&5
d11313 1
a11313 1
echo "$as_me:11492: result: $ac_cv_c_inline" >&5
d11330 3
a11332 95
  NCURSES_INLINE=inline
  if test "$INTEL_COMPILER" = yes
  then
    :
  elif test "$GCC" = yes
  then
    echo "$as_me:11515: checking if gcc supports options to tune inlining" >&5
echo $ECHO_N "checking if gcc supports options to tune inlining... $ECHO_C" >&6
if test "${cf_cv_gcc_inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      cf_save_CFLAGS=$CFLAGS
      CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
      cat >conftest.$ac_ext <<_ACEOF
#line 11524 "configure"
#include "confdefs.h"
inline int foo(void) { return 1; }
int
main ()
{
${cf_cv_main_return:-return} foo()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11536: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11539: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11542: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11545: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_gcc_inline=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_gcc_inline=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
      CFLAGS=$cf_save_CFLAGS

fi
echo "$as_me:11557: result: $cf_cv_gcc_inline" >&5
echo "${ECHO_T}$cf_cv_gcc_inline" >&6
    if test "$cf_cv_gcc_inline" = yes ; then

cf_fix_cppflags=no
cf_new_cflags=
cf_new_cppflags=
cf_new_extra_cppflags=

for cf_add_cflags in --param max-inline-insns-single=1200
do
case $cf_fix_cppflags in
no)
	case $cf_add_cflags in #(vi
	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
		case $cf_add_cflags in
		-D*)
			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`

			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
			&& test -z "${cf_tst_cflags}" \
			&& cf_fix_cppflags=yes

			if test $cf_fix_cppflags = yes ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			elif test "${cf_tst_cflags}" = "\"'" ; then
				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
				continue
			fi
			;;
		esac
		case "$CPPFLAGS" in
		*$cf_add_cflags) #(vi
			;;
		*) #(vi
			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
			;;
		esac
		;;
	*)
		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
		;;
	esac
	;;
yes)
	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
d11334 1
a11334 79
	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`

	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
	&& test -z "${cf_tst_cflags}" \
	&& cf_fix_cppflags=no
	;;
esac
done

if test -n "$cf_new_cflags" ; then

	CFLAGS="$CFLAGS $cf_new_cflags"
fi

if test -n "$cf_new_cppflags" ; then

	CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi

if test -n "$cf_new_extra_cppflags" ; then

	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi

    fi
  fi
fi

echo "$as_me:11633: checking for signal global datatype" >&5
echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
if test "${cf_cv_sig_atomic_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

	for cf_type in \
		"volatile sig_atomic_t" \
		"sig_atomic_t" \
		"int"
	do
	cat >conftest.$ac_ext <<_ACEOF
#line 11645 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <signal.h>
#include <stdio.h>

extern $cf_type x;
$cf_type x;
static void handler(int sig)
{
	x = 5;
}
int
main ()
{
signal(SIGINT, handler);
		 x = 1
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:11668: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:11671: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:11674: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:11677: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cf_cv_sig_atomic_t=$cf_type
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_cv_sig_atomic_t=no
a11335 11
rm -f conftest.$ac_objext conftest.$ac_ext
		test "$cf_cv_sig_atomic_t" != no && break
	done

fi

echo "$as_me:11691: result: $cf_cv_sig_atomic_t" >&5
echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
#define SIG_ATOMIC_T $cf_cv_sig_atomic_t
EOF
d11339 1
a11339 1
echo "$as_me:11699: checking for type of chtype" >&5
d11349 1
a11349 1
#line 11709 "configure"
d11384 1
a11384 1
if { (eval echo "$as_me:11744: \"$ac_link\"") >&5
d11387 1
a11387 1
  echo "$as_me:11747: \$? = $ac_status" >&5
d11389 1
a11389 1
  { (eval echo "$as_me:11749: \"$ac_try\"") >&5
d11392 1
a11392 1
  echo "$as_me:11752: \$? = $ac_status" >&5
d11407 1
a11407 1
echo "$as_me:11767: result: $cf_cv_typeof_chtype" >&5
a11416 1
test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
d11418 1
a11418 1
echo "$as_me:11779: checking if unsigned literals are legal" >&5
d11425 1
a11425 1
#line 11786 "configure"
d11437 1
a11437 1
if { (eval echo "$as_me:11798: \"$ac_compile\"") >&5
d11440 1
a11440 1
  echo "$as_me:11801: \$? = $ac_status" >&5
d11443 1
a11443 1
  { (eval echo "$as_me:11804: \"$ac_try\"") >&5
d11446 1
a11446 1
  echo "$as_me:11807: \$? = $ac_status" >&5
d11458 1
a11458 1
echo "$as_me:11819: result: $cf_cv_unsigned_literals" >&5
d11462 2
a11463 2
test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
test ".$cf_cv_typeof_chtype"    = .long && cf_cv_1UL="${cf_cv_1UL}L"
a11469 1
test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
d11473 1
a11473 1
echo "$as_me:11835: checking if external errno is declared" >&5
d11480 1
a11480 1
#line 11842 "configure"
d11498 1
a11498 1
if { (eval echo "$as_me:11860: \"$ac_compile\"") >&5
d11501 1
a11501 1
  echo "$as_me:11863: \$? = $ac_status" >&5
d11504 1
a11504 1
  { (eval echo "$as_me:11866: \"$ac_try\"") >&5
d11507 1
a11507 1
  echo "$as_me:11869: \$? = $ac_status" >&5
d11518 1
a11518 1
echo "$as_me:11880: result: $cf_cv_dcl_errno" >&5
d11533 1
a11533 1
echo "$as_me:11895: checking if external errno exists" >&5
d11540 1
a11540 1
#line 11902 "configure"
d11555 1
a11555 1
if { (eval echo "$as_me:11917: \"$ac_link\"") >&5
d11558 1
a11558 1
  echo "$as_me:11920: \$? = $ac_status" >&5
d11561 1
a11561 1
  { (eval echo "$as_me:11923: \"$ac_try\"") >&5
d11564 1
a11564 1
  echo "$as_me:11926: \$? = $ac_status" >&5
d11575 1
a11575 1
echo "$as_me:11937: result: $cf_cv_have_errno" >&5
d11588 1
a11588 1
echo "$as_me:11950: checking if data-only library module links" >&5
d11596 1
a11596 1
#line 11958 "configure"
d11599 1
a11599 1
	if { (eval echo "$as_me:11961: \"$ac_compile\"") >&5
d11602 1
a11602 1
  echo "$as_me:11964: \$? = $ac_status" >&5
d11609 1
a11609 1
#line 11971 "configure"
d11622 1
a11622 1
	if { (eval echo "$as_me:11984: \"$ac_compile\"") >&5
d11625 1
a11625 1
  echo "$as_me:11987: \$? = $ac_status" >&5
d11638 1
a11638 1
#line 12000 "configure"
d11649 1
a11649 1
if { (eval echo "$as_me:12011: \"$ac_link\"") >&5
d11652 1
a11652 1
  echo "$as_me:12014: \$? = $ac_status" >&5
d11654 1
a11654 1
  { (eval echo "$as_me:12016: \"$ac_try\"") >&5
d11657 1
a11657 1
  echo "$as_me:12019: \$? = $ac_status" >&5
d11672 1
a11672 1
echo "$as_me:12034: result: $cf_cv_link_dataonly" >&5
d11707 1
a11707 1
echo "$as_me:12069: checking for $ac_func" >&5
d11713 1
a11713 1
#line 12075 "configure"
d11744 1
a11744 1
if { (eval echo "$as_me:12106: \"$ac_link\"") >&5
d11747 1
a11747 1
  echo "$as_me:12109: \$? = $ac_status" >&5
d11750 1
a11750 1
  { (eval echo "$as_me:12112: \"$ac_try\"") >&5
d11753 1
a11753 1
  echo "$as_me:12115: \$? = $ac_status" >&5
d11763 1
a11763 1
echo "$as_me:12125: result: `eval echo '${'$as_ac_var'}'`" >&5
d11775 1
a11775 1
echo "$as_me:12137: checking for terminal-capability database functions" >&5
d11782 1
a11782 1
#line 12144 "configure"
d11802 1
a11802 1
if { (eval echo "$as_me:12164: \"$ac_link\"") >&5
d11805 1
a11805 1
  echo "$as_me:12167: \$? = $ac_status" >&5
d11808 1
a11808 1
  { (eval echo "$as_me:12170: \"$ac_try\"") >&5
d11811 1
a11811 1
  echo "$as_me:12173: \$? = $ac_status" >&5
d11823 1
a11823 1
echo "$as_me:12185: result: $cf_cv_cgetent" >&5
d11831 1
a11831 1
echo "$as_me:12193: checking for isascii" >&5
d11838 1
a11838 1
#line 12200 "configure"
d11850 1
a11850 1
if { (eval echo "$as_me:12212: \"$ac_link\"") >&5
d11853 1
a11853 1
  echo "$as_me:12215: \$? = $ac_status" >&5
d11856 1
a11856 1
  { (eval echo "$as_me:12218: \"$ac_try\"") >&5
d11859 1
a11859 1
  echo "$as_me:12221: \$? = $ac_status" >&5
d11870 1
a11870 1
echo "$as_me:12232: result: $cf_cv_have_isascii" >&5
d11877 1
a11877 1
echo "$as_me:12239: checking whether sigaction needs _POSIX_SOURCE" >&5
d11880 1
a11880 1
#line 12242 "configure"
d11894 1
a11894 1
if { (eval echo "$as_me:12256: \"$ac_compile\"") >&5
d11897 1
a11897 1
  echo "$as_me:12259: \$? = $ac_status" >&5
d11900 1
a11900 1
  { (eval echo "$as_me:12262: \"$ac_try\"") >&5
d11903 1
a11903 1
  echo "$as_me:12265: \$? = $ac_status" >&5
d11911 1
a11911 1
#line 12273 "configure"
d11926 1
a11926 1
if { (eval echo "$as_me:12288: \"$ac_compile\"") >&5
d11929 1
a11929 1
  echo "$as_me:12291: \$? = $ac_status" >&5
d11932 1
a11932 1
  { (eval echo "$as_me:12294: \"$ac_try\"") >&5
d11935 1
a11935 1
  echo "$as_me:12297: \$? = $ac_status" >&5
d11950 1
a11950 1
echo "$as_me:12312: result: $sigact_bad" >&5
d11954 1
a11954 1
echo "$as_me:12316: checking if nanosleep really works" >&5
d11964 1
a11964 1
#line 12326 "configure"
d11989 1
a11989 1
if { (eval echo "$as_me:12351: \"$ac_link\"") >&5
d11992 1
a11992 1
  echo "$as_me:12354: \$? = $ac_status" >&5
d11994 1
a11994 1
  { (eval echo "$as_me:12356: \"$ac_try\"") >&5
d11997 1
a11997 1
  echo "$as_me:12359: \$? = $ac_status" >&5
d12009 1
a12009 1
echo "$as_me:12371: result: $cf_cv_func_nanosleep" >&5
d12023 1
a12023 1
echo "$as_me:12385: checking for $ac_header" >&5
d12029 1
a12029 1
#line 12391 "configure"
d12033 1
a12033 1
if { (eval echo "$as_me:12395: \"$ac_cpp conftest.$ac_ext\"") >&5
d12039 1
a12039 1
  echo "$as_me:12401: \$? = $ac_status" >&5
d12058 1
a12058 1
echo "$as_me:12420: result: `eval echo '${'$as_ac_Header'}'`" >&5
d12073 1
a12073 1
echo "$as_me:12435: checking for $ac_header" >&5
d12079 1
a12079 1
#line 12441 "configure"
d12083 1
a12083 1
if { (eval echo "$as_me:12445: \"$ac_cpp conftest.$ac_ext\"") >&5
d12089 1
a12089 1
  echo "$as_me:12451: \$? = $ac_status" >&5
d12108 1
a12108 1
echo "$as_me:12470: result: `eval echo '${'$as_ac_Header'}'`" >&5
d12126 1
a12126 1
	echo "$as_me:12488: checking whether termios.h needs _POSIX_SOURCE" >&5
d12129 1
a12129 1
#line 12491 "configure"
d12141 1
a12141 1
if { (eval echo "$as_me:12503: \"$ac_compile\"") >&5
d12144 1
a12144 1
  echo "$as_me:12506: \$? = $ac_status" >&5
d12147 1
a12147 1
  { (eval echo "$as_me:12509: \"$ac_try\"") >&5
d12150 1
a12150 1
  echo "$as_me:12512: \$? = $ac_status" >&5
d12158 1
a12158 1
#line 12520 "configure"
d12172 1
a12172 1
if { (eval echo "$as_me:12534: \"$ac_compile\"") >&5
d12175 1
a12175 1
  echo "$as_me:12537: \$? = $ac_status" >&5
d12178 1
a12178 1
  { (eval echo "$as_me:12540: \"$ac_try\"") >&5
d12181 1
a12181 1
  echo "$as_me:12543: \$? = $ac_status" >&5
d12196 1
a12196 1
	echo "$as_me:12558: result: $termios_bad" >&5
d12201 1
a12201 1
echo "$as_me:12563: checking for tcgetattr" >&5
d12208 1
a12208 1
#line 12570 "configure"
d12236 1
a12236 1
if { (eval echo "$as_me:12598: \"$ac_link\"") >&5
d12239 1
a12239 1
  echo "$as_me:12601: \$? = $ac_status" >&5
d12242 1
a12242 1
  { (eval echo "$as_me:12604: \"$ac_try\"") >&5
d12245 1
a12245 1
  echo "$as_me:12607: \$? = $ac_status" >&5
d12255 1
a12255 1
echo "$as_me:12617: result: $cf_cv_have_tcgetattr" >&5
d12261 1
a12261 1
echo "$as_me:12623: checking for vsscanf function or workaround" >&5
d12268 1
a12268 1
#line 12630 "configure"
d12284 1
a12284 1
if { (eval echo "$as_me:12646: \"$ac_link\"") >&5
d12287 1
a12287 1
  echo "$as_me:12649: \$? = $ac_status" >&5
d12290 1
a12290 1
  { (eval echo "$as_me:12652: \"$ac_try\"") >&5
d12293 1
a12293 1
  echo "$as_me:12655: \$? = $ac_status" >&5
d12301 1
a12301 1
#line 12663 "configure"
d12323 1
a12323 1
if { (eval echo "$as_me:12685: \"$ac_link\"") >&5
d12326 1
a12326 1
  echo "$as_me:12688: \$? = $ac_status" >&5
d12329 1
a12329 1
  { (eval echo "$as_me:12691: \"$ac_try\"") >&5
d12332 1
a12332 1
  echo "$as_me:12694: \$? = $ac_status" >&5
d12340 1
a12340 1
#line 12702 "configure"
d12362 1
a12362 1
if { (eval echo "$as_me:12724: \"$ac_link\"") >&5
d12365 1
a12365 1
  echo "$as_me:12727: \$? = $ac_status" >&5
d12368 1
a12368 1
  { (eval echo "$as_me:12730: \"$ac_try\"") >&5
d12371 1
a12371 1
  echo "$as_me:12733: \$? = $ac_status" >&5
d12386 1
a12386 1
echo "$as_me:12748: result: $cf_cv_func_vsscanf" >&5
d12404 1
a12404 1
echo "$as_me:12766: checking for working mkstemp" >&5
d12412 1
a12412 1
  echo "$as_me:12774: checking for mkstemp" >&5
d12418 1
a12418 1
#line 12780 "configure"
d12449 1
a12449 1
if { (eval echo "$as_me:12811: \"$ac_link\"") >&5
d12452 1
a12452 1
  echo "$as_me:12814: \$? = $ac_status" >&5
d12455 1
a12455 1
  { (eval echo "$as_me:12817: \"$ac_try\"") >&5
d12458 1
a12458 1
  echo "$as_me:12820: \$? = $ac_status" >&5
d12468 1
a12468 1
echo "$as_me:12830: result: $ac_cv_func_mkstemp" >&5
d12473 1
a12473 1
#line 12835 "configure"
d12511 1
a12511 1
if { (eval echo "$as_me:12873: \"$ac_link\"") >&5
d12514 1
a12514 1
  echo "$as_me:12876: \$? = $ac_status" >&5
d12516 1
a12516 1
  { (eval echo "$as_me:12878: \"$ac_try\"") >&5
d12519 1
a12519 1
  echo "$as_me:12881: \$? = $ac_status" >&5
d12534 1
a12534 1
echo "$as_me:12896: result: $cf_cv_func_mkstemp" >&5
d12552 1
a12552 1
	{ echo "$as_me:12914: WARNING: cross compiling: assume setvbuf params not reversed" >&5
d12555 1
a12555 1
	echo "$as_me:12917: checking whether setvbuf arguments are reversed" >&5
d12561 1
a12561 1
  { { echo "$as_me:12923: error: cannot run test program while cross compiling" >&5
d12566 1
a12566 1
#line 12928 "configure"
d12583 1
a12583 1
if { (eval echo "$as_me:12945: \"$ac_link\"") >&5
d12586 1
a12586 1
  echo "$as_me:12948: \$? = $ac_status" >&5
d12588 1
a12588 1
  { (eval echo "$as_me:12950: \"$ac_try\"") >&5
d12591 1
a12591 1
  echo "$as_me:12953: \$? = $ac_status" >&5
d12604 1
a12604 1
echo "$as_me:12966: result: $ac_cv_func_setvbuf_reversed" >&5
d12615 1
a12615 1
echo "$as_me:12977: checking return type of signal handlers" >&5
d12621 1
a12621 1
#line 12983 "configure"
d12643 1
a12643 1
if { (eval echo "$as_me:13005: \"$ac_compile\"") >&5
d12646 1
a12646 1
  echo "$as_me:13008: \$? = $ac_status" >&5
d12649 1
a12649 1
  { (eval echo "$as_me:13011: \"$ac_try\"") >&5
d12652 1
a12652 1
  echo "$as_me:13014: \$? = $ac_status" >&5
d12662 1
a12662 1
echo "$as_me:13024: result: $ac_cv_type_signal" >&5
d12669 1
a12669 1
echo "$as_me:13031: checking for type sigaction_t" >&5
d12676 1
a12676 1
#line 13038 "configure"
d12689 1
a12689 1
if { (eval echo "$as_me:13051: \"$ac_compile\"") >&5
d12692 1
a12692 1
  echo "$as_me:13054: \$? = $ac_status" >&5
d12695 1
a12695 1
  { (eval echo "$as_me:13057: \"$ac_try\"") >&5
d12698 1
a12698 1
  echo "$as_me:13060: \$? = $ac_status" >&5
d12709 1
a12709 1
echo "$as_me:13071: result: $cf_cv_type_sigaction" >&5
d12715 1
a12715 1
echo "$as_me:13077: checking declaration of size-change" >&5
d12730 1
a12730 1
#line 13092 "configure"
d12774 1
a12774 1
if { (eval echo "$as_me:13136: \"$ac_compile\"") >&5
d12777 1
a12777 1
  echo "$as_me:13139: \$? = $ac_status" >&5
d12780 1
a12780 1
  { (eval echo "$as_me:13142: \"$ac_try\"") >&5
d12783 1
a12783 1
  echo "$as_me:13145: \$? = $ac_status" >&5
d12802 1
a12802 1
echo "$as_me:13164: result: $cf_cv_sizechange" >&5
d12819 1
a12819 1
echo "$as_me:13181: checking for memmove" >&5
d12825 1
a12825 1
#line 13187 "configure"
d12856 1
a12856 1
if { (eval echo "$as_me:13218: \"$ac_link\"") >&5
d12859 1
a12859 1
  echo "$as_me:13221: \$? = $ac_status" >&5
d12862 1
a12862 1
  { (eval echo "$as_me:13224: \"$ac_try\"") >&5
d12865 1
a12865 1
  echo "$as_me:13227: \$? = $ac_status" >&5
d12875 1
a12875 1
echo "$as_me:13237: result: $ac_cv_func_memmove" >&5
d12881 1
a12881 1
echo "$as_me:13243: checking for bcopy" >&5
d12887 1
a12887 1
#line 13249 "configure"
d12918 1
a12918 1
if { (eval echo "$as_me:13280: \"$ac_link\"") >&5
d12921 1
a12921 1
  echo "$as_me:13283: \$? = $ac_status" >&5
d12924 1
a12924 1
  { (eval echo "$as_me:13286: \"$ac_try\"") >&5
d12927 1
a12927 1
  echo "$as_me:13289: \$? = $ac_status" >&5
d12937 1
a12937 1
echo "$as_me:13299: result: $ac_cv_func_bcopy" >&5
d12941 1
a12941 1
	echo "$as_me:13303: checking if bcopy does overlapping moves" >&5
d12951 1
a12951 1
#line 13313 "configure"
d12965 1
a12965 1
if { (eval echo "$as_me:13327: \"$ac_link\"") >&5
d12968 1
a12968 1
  echo "$as_me:13330: \$? = $ac_status" >&5
d12970 1
a12970 1
  { (eval echo "$as_me:13332: \"$ac_try\"") >&5
d12973 1
a12973 1
  echo "$as_me:13335: \$? = $ac_status" >&5
d12986 1
a12986 1
echo "$as_me:13348: result: $cf_cv_good_bcopy" >&5
d13007 1
a13007 1
echo "$as_me:13369: checking if poll really works" >&5
d13017 1
a13017 1
#line 13379 "configure"
d13038 1
a13038 1
if { (eval echo "$as_me:13400: \"$ac_link\"") >&5
d13041 1
a13041 1
  echo "$as_me:13403: \$? = $ac_status" >&5
d13043 1
a13043 1
  { (eval echo "$as_me:13405: \"$ac_try\"") >&5
d13046 1
a13046 1
  echo "$as_me:13408: \$? = $ac_status" >&5
d13058 1
a13058 1
echo "$as_me:13420: result: $cf_cv_working_poll" >&5
d13069 1
a13069 110
case $with_hashed_db in #(vi
yes|*able*) #(vi
    ;;
*)
    if test -d "$with_hashed_db" ; then

if test -n "$with_hashed_db/include" ; then
  for cf_add_incdir in $with_hashed_db/include
  do
	while test $cf_add_incdir != /usr/include
	do
	  if test -d $cf_add_incdir
	  then
		cf_have_incdir=no
		if test -n "$CFLAGS$CPPFLAGS" ; then
		  # a loop is needed to ensure we can add subdirs of existing dirs
		  for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
			if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
			  cf_have_incdir=yes; break
			fi
		  done
		fi

		if test "$cf_have_incdir" = no ; then
          if test "$cf_add_incdir" = /usr/local/include ; then
			if test "$GCC" = yes
			then
			  cf_save_CPPFLAGS=$CPPFLAGS
			  CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
			  cat >conftest.$ac_ext <<_ACEOF
#line 13461 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
printf("Hello")
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:13473: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:13476: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:13479: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13482: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cf_have_incdir=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
			  CPPFLAGS=$cf_save_CPPFLAGS
			fi
		  fi
		fi

		if test "$cf_have_incdir" = no ; then
		  echo "$as_me:13497: result: adding $cf_add_incdir to include-path" >&5
echo "${ECHO_T}adding $cf_add_incdir to include-path" >&6
		  CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"

          cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
          test "$cf_top_incdir" = "$cf_add_incdir" && break
          cf_add_incdir="$cf_top_incdir"
		else
		  break
		fi
	  fi
	done
  done
fi

if test -n "$with_hashed_db/lib" ; then
  for cf_add_libdir in $with_hashed_db/lib
  do
    if test $cf_add_libdir = /usr/lib ; then
      :
    elif test -d $cf_add_libdir
    then
      cf_have_libdir=no
      if test -n "$LDFLAGS$LIBS" ; then
        # a loop is needed to ensure we can add subdirs of existing dirs
        for cf_test_libdir in $LDFLAGS $LIBS ; do
          if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
            cf_have_libdir=yes; break
          fi
        done
      fi
      if test "$cf_have_libdir" = no ; then
        echo "$as_me:13529: result: adding $cf_add_libdir to library-path" >&5
echo "${ECHO_T}adding $cf_add_libdir to library-path" >&6
        LDFLAGS="-L$cf_add_libdir $LDFLAGS"
      fi
    fi
  done
fi

    fi
esac

echo "$as_me:13540: checking for db.h" >&5
d13075 1
a13075 1
#line 13546 "configure"
d13079 1
a13079 1
if { (eval echo "$as_me:13550: \"$ac_cpp conftest.$ac_ext\"") >&5
d13085 1
a13085 1
  echo "$as_me:13556: \$? = $ac_status" >&5
d13104 1
a13104 1
echo "$as_me:13575: result: $ac_cv_header_db_h" >&5
d13108 1
a13108 1
echo "$as_me:13579: checking for version of db" >&5
d13116 1
a13116 1
for cf_db_version in 1 2 3 4 5
d13119 1
a13119 1
echo "${as_me-configure}:13590: testing checking for db version $cf_db_version ..." 1>&5
d13122 1
a13122 1
#line 13593 "configure"
d13152 1
a13152 1
if { (eval echo "$as_me:13623: \"$ac_compile\"") >&5
d13155 1
a13155 1
  echo "$as_me:13626: \$? = $ac_status" >&5
d13158 1
a13158 1
  { (eval echo "$as_me:13629: \"$ac_try\"") >&5
d13161 1
a13161 1
  echo "$as_me:13632: \$? = $ac_status" >&5
d13175 1
a13175 1
echo "$as_me:13646: result: $cf_cv_hashed_db_version" >&5
d13179 1
a13179 1
	{ { echo "$as_me:13650: error: Cannot determine version of db" >&5
d13184 1
a13184 1
echo "$as_me:13655: checking for db libraries" >&5
d13191 1
a13191 1
for cf_db_libs in db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
d13198 1
a13198 1
echo "${as_me-configure}:13669: testing checking for library "$cf_db_libs" ..." 1>&5
d13201 1
a13201 1
#line 13672 "configure"
d13256 1
a13256 1
if { (eval echo "$as_me:13727: \"$ac_link\"") >&5
d13259 1
a13259 1
  echo "$as_me:13730: \$? = $ac_status" >&5
d13262 1
a13262 1
  { (eval echo "$as_me:13733: \"$ac_try\"") >&5
d13265 1
a13265 1
  echo "$as_me:13736: \$? = $ac_status" >&5
d13285 1
a13285 1
echo "$as_me:13756: result: $cf_cv_hashed_db_libs" >&5
d13289 1
a13289 1
		{ { echo "$as_me:13760: error: Cannot determine library for db" >&5
d13299 1
a13299 1
	{ { echo "$as_me:13770: error: Cannot find db.h" >&5
d13314 1
a13314 1
echo "$as_me:13785: checking if we should include stdbool.h" >&5
d13322 1
a13322 1
#line 13793 "configure"
d13334 1
a13334 1
if { (eval echo "$as_me:13805: \"$ac_compile\"") >&5
d13337 1
a13337 1
  echo "$as_me:13808: \$? = $ac_status" >&5
d13340 1
a13340 1
  { (eval echo "$as_me:13811: \"$ac_try\"") >&5
d13343 1
a13343 1
  echo "$as_me:13814: \$? = $ac_status" >&5
d13350 1
a13350 1
#line 13821 "configure"
d13366 1
a13366 1
if { (eval echo "$as_me:13837: \"$ac_compile\"") >&5
d13369 1
a13369 1
  echo "$as_me:13840: \$? = $ac_status" >&5
d13372 1
a13372 1
  { (eval echo "$as_me:13843: \"$ac_try\"") >&5
d13375 1
a13375 1
  echo "$as_me:13846: \$? = $ac_status" >&5
d13389 1
a13389 1
then	echo "$as_me:13860: result: yes" >&5
d13391 1
a13391 1
else	echo "$as_me:13862: result: no" >&5
d13395 1
a13395 1
echo "$as_me:13866: checking for builtin bool type" >&5
d13403 1
a13403 1
#line 13874 "configure"
d13418 1
a13418 1
if { (eval echo "$as_me:13889: \"$ac_compile\"") >&5
d13421 1
a13421 1
  echo "$as_me:13892: \$? = $ac_status" >&5
d13424 1
a13424 1
  { (eval echo "$as_me:13895: \"$ac_try\"") >&5
d13427 1
a13427 1
  echo "$as_me:13898: \$? = $ac_status" >&5
d13440 1
a13440 1
then	echo "$as_me:13911: result: yes" >&5
d13442 1
a13442 1
else	echo "$as_me:13913: result: no" >&5
d13464 1
a13464 1
echo "$as_me:13935: checking for library $cf_stdcpp_libname" >&5
d13473 1
a13473 1
#line 13944 "configure"
d13489 1
a13489 1
if { (eval echo "$as_me:13960: \"$ac_link\"") >&5
d13492 1
a13492 1
  echo "$as_me:13963: \$? = $ac_status" >&5
d13495 1
a13495 1
  { (eval echo "$as_me:13966: \"$ac_try\"") >&5
d13498 1
a13498 1
  echo "$as_me:13969: \$? = $ac_status" >&5
d13510 1
a13510 1
echo "$as_me:13981: result: $cf_cv_libstdcpp" >&5
d13515 1
a13515 1
	echo "$as_me:13986: checking whether $CXX understands -c and -o together" >&5
d13531 1
a13531 1
if { (eval echo "$as_me:14002: \"$ac_try\"") >&5
d13534 1
a13534 1
  echo "$as_me:14005: \$? = $ac_status" >&5
d13536 1
a13536 1
  test -f conftest2.$ac_objext && { (eval echo "$as_me:14007: \"$ac_try\"") >&5
d13539 1
a13539 1
  echo "$as_me:14010: \$? = $ac_status" >&5
d13550 1
a13550 1
  echo "$as_me:14021: result: yes" >&5
d13553 1
a13553 1
  echo "$as_me:14024: result: no" >&5
d13573 1
a13573 1
	echo "$as_me:14044: checking for lib$cf_gpp_libname" >&5
d13578 1
a13578 1
#line 14049 "configure"
d13592 1
a13592 1
if { (eval echo "$as_me:14063: \"$ac_link\"") >&5
d13595 1
a13595 1
  echo "$as_me:14066: \$? = $ac_status" >&5
d13598 1
a13598 1
  { (eval echo "$as_me:14069: \"$ac_try\"") >&5
d13601 1
a13601 1
  echo "$as_me:14072: \$? = $ac_status" >&5
d13620 1
a13620 1
#line 14091 "configure"
d13634 1
a13634 1
if { (eval echo "$as_me:14105: \"$ac_link\"") >&5
d13637 1
a13637 1
  echo "$as_me:14108: \$? = $ac_status" >&5
d13640 1
a13640 1
  { (eval echo "$as_me:14111: \"$ac_try\"") >&5
d13643 1
a13643 1
  echo "$as_me:14114: \$? = $ac_status" >&5
d13660 1
a13660 1
	echo "$as_me:14131: result: $cf_cxx_library" >&5
d13676 1
a13676 1
echo "$as_me:14147: checking how to run the C++ preprocessor" >&5
d13693 1
a13693 1
#line 14164 "configure"
d13698 1
a13698 1
if { (eval echo "$as_me:14169: \"$ac_cpp conftest.$ac_ext\"") >&5
d13704 1
a13704 1
  echo "$as_me:14175: \$? = $ac_status" >&5
d13727 1
a13727 1
#line 14198 "configure"
d13731 1
a13731 1
if { (eval echo "$as_me:14202: \"$ac_cpp conftest.$ac_ext\"") >&5
d13737 1
a13737 1
  echo "$as_me:14208: \$? = $ac_status" >&5
d13774 1
a13774 1
echo "$as_me:14245: result: $CXXCPP" >&5
d13784 1
a13784 1
#line 14255 "configure"
d13789 1
a13789 1
if { (eval echo "$as_me:14260: \"$ac_cpp conftest.$ac_ext\"") >&5
d13795 1
a13795 1
  echo "$as_me:14266: \$? = $ac_status" >&5
d13818 1
a13818 1
#line 14289 "configure"
d13822 1
a13822 1
if { (eval echo "$as_me:14293: \"$ac_cpp conftest.$ac_ext\"") >&5
d13828 1
a13828 1
  echo "$as_me:14299: \$? = $ac_status" >&5
d13856 1
a13856 1
  { { echo "$as_me:14327: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
d13868 1
a13868 1
for ac_header in iostream typeinfo
d13871 1
a13871 1
echo "$as_me:14342: checking for $ac_header" >&5
d13877 1
a13877 1
#line 14348 "configure"
d13881 1
a13881 1
if { (eval echo "$as_me:14352: \"$ac_cpp conftest.$ac_ext\"") >&5
d13887 1
a13887 1
  echo "$as_me:14358: \$? = $ac_status" >&5
d13906 1
a13906 1
echo "$as_me:14377: result: `eval echo '${'$as_ac_Header'}'`" >&5
d13916 1
a13916 1
echo "$as_me:14387: checking if we should include stdbool.h" >&5
d13924 1
a13924 1
#line 14395 "configure"
d13936 1
a13936 1
if { (eval echo "$as_me:14407: \"$ac_compile\"") >&5
d13939 1
a13939 1
  echo "$as_me:14410: \$? = $ac_status" >&5
d13942 1
a13942 1
  { (eval echo "$as_me:14413: \"$ac_try\"") >&5
d13945 1
a13945 1
  echo "$as_me:14416: \$? = $ac_status" >&5
d13952 1
a13952 1
#line 14423 "configure"
d13968 1
a13968 1
if { (eval echo "$as_me:14439: \"$ac_compile\"") >&5
d13971 1
a13971 1
  echo "$as_me:14442: \$? = $ac_status" >&5
d13974 1
a13974 1
  { (eval echo "$as_me:14445: \"$ac_try\"") >&5
d13977 1
a13977 1
  echo "$as_me:14448: \$? = $ac_status" >&5
d13991 1
a13991 1
then	echo "$as_me:14462: result: yes" >&5
d13993 1
a13993 1
else	echo "$as_me:14464: result: no" >&5
d13997 1
a13997 1
echo "$as_me:14468: checking for builtin bool type" >&5
d14005 1
a14005 1
#line 14476 "configure"
d14020 1
a14020 1
if { (eval echo "$as_me:14491: \"$ac_compile\"") >&5
d14023 1
a14023 1
  echo "$as_me:14494: \$? = $ac_status" >&5
d14026 1
a14026 1
  { (eval echo "$as_me:14497: \"$ac_try\"") >&5
d14029 1
a14029 1
  echo "$as_me:14500: \$? = $ac_status" >&5
d14042 1
a14042 1
then	echo "$as_me:14513: result: yes" >&5
d14044 1
a14044 1
else	echo "$as_me:14515: result: no" >&5
d14048 1
a14048 1
echo "$as_me:14519: checking for size of bool" >&5
d14059 1
a14059 1
#line 14530 "configure"
d14101 1
a14101 1
if { (eval echo "$as_me:14572: \"$ac_link\"") >&5
d14104 1
a14104 1
  echo "$as_me:14575: \$? = $ac_status" >&5
d14106 1
a14106 1
  { (eval echo "$as_me:14577: \"$ac_try\"") >&5
d14109 1
a14109 1
  echo "$as_me:14580: \$? = $ac_status" >&5
d14127 1
a14127 1
echo "$as_me:14598: result: $cf_cv_type_of_bool" >&5
d14133 1
a14133 1
	{ echo "$as_me:14604: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
d14138 1
a14138 1
echo "$as_me:14609: checking for special defines needed for etip.h" >&5
d14150 1
a14150 1
#line 14621 "configure"
d14164 1
a14164 1
if { (eval echo "$as_me:14635: \"$ac_compile\"") >&5
d14167 1
a14167 1
  echo "$as_me:14638: \$? = $ac_status" >&5
d14170 1
a14170 1
  { (eval echo "$as_me:14641: \"$ac_try\"") >&5
d14173 1
a14173 1
  echo "$as_me:14644: \$? = $ac_status" >&5
d14194 1
a14194 1
echo "$as_me:14665: result: $cf_result" >&5
d14199 1
a14199 1
echo "$as_me:14670: checking if $CXX accepts parameter initialization" >&5
d14216 1
a14216 1
#line 14687 "configure"
d14235 1
a14235 1
if { (eval echo "$as_me:14706: \"$ac_link\"") >&5
d14238 1
a14238 1
  echo "$as_me:14709: \$? = $ac_status" >&5
d14240 1
a14240 1
  { (eval echo "$as_me:14711: \"$ac_try\"") >&5
d14243 1
a14243 1
  echo "$as_me:14714: \$? = $ac_status" >&5
d14262 1
a14262 1
echo "$as_me:14733: result: $cf_cv_cpp_param_init" >&5
d14271 1
a14271 1
echo "$as_me:14742: checking if $CXX accepts static_cast" >&5
d14285 1
a14285 1
#line 14756 "configure"
d14329 1
a14329 1
if { (eval echo "$as_me:14800: \"$ac_compile\"") >&5
d14332 1
a14332 1
  echo "$as_me:14803: \$? = $ac_status" >&5
d14335 1
a14335 1
  { (eval echo "$as_me:14806: \"$ac_try\"") >&5
d14338 1
a14338 1
  echo "$as_me:14809: \$? = $ac_status" >&5
d14356 1
a14356 1
echo "$as_me:14827: result: $cf_cv_cpp_static_cast" >&5
d14365 183
d14587 1
a14587 1
echo "$as_me:14875: checking for size of bool" >&5
d14598 1
a14598 1
#line 14886 "configure"
d14640 1
a14640 1
if { (eval echo "$as_me:14928: \"$ac_link\"") >&5
d14643 1
a14643 1
  echo "$as_me:14931: \$? = $ac_status" >&5
d14645 1
a14645 1
  { (eval echo "$as_me:14933: \"$ac_try\"") >&5
d14648 1
a14648 1
  echo "$as_me:14936: \$? = $ac_status" >&5
d14666 1
a14666 1
echo "$as_me:14954: result: $cf_cv_type_of_bool" >&5
d14672 1
a14672 1
	{ echo "$as_me:14960: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
d14678 1
a14678 1
			echo "$as_me:14966: checking for fallback type of bool" >&5
d14684 1
a14684 1
			echo "$as_me:14972: result: $cf_cv_type_of_bool" >&5
a14709 9

if test "$cf_with_ada" != "no" ; then
    if test "$with_libtool" != "no"; then
	{ echo "$as_me:15001: WARNING: libtool does not support Ada - disabling feature" >&5
echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
	cf_with_ada=no
    fi
fi

d14714 1
a14714 1
echo "$as_me:15011: checking for $ac_word" >&5
d14729 1
a14729 1
echo "$as_me:15026: found $ac_dir/$ac_word" >&5
d14738 1
a14738 1
  echo "$as_me:15035: result: $gnat_exists" >&5
d14741 1
a14741 1
  echo "$as_me:15038: result: no" >&5
d14749 1
a14749 1
echo "$as_me:15046: checking for gnat version" >&5
d14753 1
a14753 1
echo "$as_me:15050: result: $cf_gnat_version" >&5
d14776 1
a14776 1
echo "$as_me:15073: checking for $ac_word" >&5
d14791 1
a14791 1
echo "$as_me:15088: found $ac_dir/$ac_word" >&5
d14800 1
a14800 1
  echo "$as_me:15097: result: $M4_exists" >&5
d14803 1
a14803 1
  echo "$as_me:15100: result: no" >&5
d14812 1
a14812 1
      echo "$as_me:15109: checking if GNAT works" >&5
d14840 1
a14840 1
      echo "$as_me:15137: result: $cf_cv_prog_gnat_correct" >&5
d14847 1
a14847 1
   echo "$as_me:15144: checking if GNAT pragma Unreferenced works" >&5
d14874 1
a14874 1
   echo "$as_me:15171: result: $cf_cv_pragma_unreferenced" >&5
d14900 1
a14900 2
fi; if test -n "$prefix/lib/ada/adainclude" ; then

d14926 1
a14926 1
  { { echo "$as_me:15224: error: expected a pathname, not \"$withval\"" >&5
a14931 1
fi
d14940 1
a14940 2
fi; if test -n "$prefix/lib/ada/adalib" ; then

d14966 1
a14966 1
  { { echo "$as_me:15266: error: expected a pathname, not \"$withval\"" >&5
a14971 1
fi
a14975 2
else
   cf_with_ada=no
d14978 3
a14980 11
### Construct the ncurses library-subsets, if any, from this set of keywords:
###	none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
###
### ticlib modules may be a separate library, otherwise contained in termlib.
### termlib modules may be a separate library, otherwise contained in ncurses.
###
### The of "+" or " " between the tokens controls the way the script
### chooses to split module lists into libraries.
###
### (see CF_LIB_RULES).
echo "$as_me:15291: checking for library subsets" >&5
a14981 13
LIB_SUBSETS=

if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
	LIB_SUBSETS="${LIB_SUBSETS}ticlib"
	if test "$with_ticlib" != no ; then
		LIB_SUBSETS="${LIB_SUBSETS} "
	else
		LIB_SUBSETS="${LIB_SUBSETS}+"
	fi
fi

LIB_SUBSETS="${LIB_SUBSETS}termlib"
test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
d14983 2
d14987 2
a14988 1
	LIB_SUBSETS="${LIB_SUBSETS}+"
a14989 1

d14993 1
a14993 2

echo "$as_me:15316: result: $LIB_SUBSETS" >&5
d15031 1
a15031 1
echo "$as_me:15354: checking default library suffix" >&5
d15042 1
a15042 1
echo "$as_me:15365: result: $DFT_ARG_SUFFIX" >&5
d15045 1
a15045 1
echo "$as_me:15368: checking default library-dependency suffix" >&5
a15066 1
DFT_LIB_SUFFIX=$DFT_DEP_SUFFIX
a15070 1
		DFT_LIB_SUFFIX=".dll"
d15074 1
a15074 1
echo "$as_me:15399: result: $DFT_DEP_SUFFIX" >&5
d15077 1
a15077 1
echo "$as_me:15402: checking default object directory" >&5
d15093 1
a15093 1
echo "$as_me:15418: result: $DFT_OBJ_SUBDIR" >&5
d15098 1
a15098 1
echo "$as_me:15423: checking c++ library-dependency suffix" >&5
d15124 1
a15124 1
echo "$as_me:15449: result: $CXX_LIB_SUFFIX" >&5
a15128 10
# do not want -ldl in build except as needed for -lncurses dependency
if test "$with_dlsym" = yes ; then
if test $DFT_LWR_MODEL = shared || \
   test $DFT_LWR_MODEL = libtool ; then

# remove dl library from $LIBS
LIBS=`echo "$LIBS" | sed -e 's/-ldl[ 	]//g' -e 's/-ldl$//'`

fi
fi
d15130 1
a15130 28

# TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
# do not need libdl
TICS_LIST=
if test "$with_dlsym" = yes ; then

# remove dl library from $SHLIB_LIST
TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ 	]//g' -e 's/-ldl$//'`

fi

if test "$with_ticlib" != no ; then

	if test "$with_ticlib" != yes ; then
		TICS_NAME=$with_ticlib
		TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
		TICS_LIB_SUFFIX="${with_ticlib}"
	else
		TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
		TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
		TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
	fi
	TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}"
else
	TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
fi

a15134 1
		TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
a15138 1
		TINFO_SUFFIX=${DFT_LIB_SUFFIX}
a15152 1
		TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
a15156 6
	# the next lines are needed for linking libtic over libncurses
	TINFO_NAME=${LIB_NAME}
	TINFO_SUFFIX=${DFT_LIB_SUFFIX}
	TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
	TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"

a15159 16
if test "$DFT_LWR_MODEL" = shared ; then
	case $cf_cv_system_name in #(vi
	cygwin*)
		# "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
		TINFO_SUFFIX=.dll
		;;
	esac
fi

if test "$with_dlsym" = yes ; then

# remove dl library from $TICS_LIST
TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ 	]//g' -e 's/-ldl$//'`

fi

d15163 1
a15163 37
case $DFT_LWR_MODEL in
normal|debug|profile)

if test "$GCC" = yes ; then
	LDFLAGS_STATIC=-static
	LDFLAGS_SHARED=-dynamic
else
	case $cf_cv_system_name in #(
	aix[45]*) 	#( from ld manpage
		LDFLAGS_STATIC=-bstatic
		LDFLAGS_SHARED=-bdynamic
		;;
	hpux*)		#( from ld manpage for hpux10.20, hpux11.11
		# We could also use just "archive" and "shared".
		LDFLAGS_STATIC=-Wl,-a,archive_shared
		LDFLAGS_SHARED=-Wl,-a,shared_archive
		;;
	irix*)		#( from ld manpage IRIX64
		LDFLAGS_STATIC=-Bstatic
		LDFLAGS_SHARED=-Bdynamic
		;;
	osf[45]*)	#( from ld manpage osf4.0d, osf5.1
		# alternative "-oldstyle_liblookup" (not in cc manpage)
		LDFLAGS_STATIC=-noso
		LDFLAGS_SHARED=-so_archive
		;;
	solaris2*)
		LDFLAGS_STATIC=-Bstatic
		LDFLAGS_SHARED=-Bdynamic
		;;
	esac
fi

	;;
esac

echo "$as_me:15586: checking where we will install curses.h" >&5
d15168 1
a15168 1
echo "$as_me:15591: result: $includedir" >&5
d15176 1
a15176 1
	{ echo "$as_me:15599: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
a15180 3
# used to separate tack out of the tree
NCURSES_TREE=

d15189 1
a15189 1
echo "$as_me:15615: checking for src modules" >&5
d15252 1
a15252 1
echo "$as_me:15678: result: $cf_cv_src_modules" >&5
a15286 4
if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
   SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses-config"
fi

a15393 73
### If we're building with rpath, try to link non-standard libs that way too.
if test "$DFT_LWR_MODEL" = "shared"; then

echo "$as_me:15827: checking for updated LDFLAGS" >&5
echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
if test -n "$LDFLAGS" ; then
echo "$as_me:15830: result: maybe" >&5
echo "${ECHO_T}maybe" >&6
test -n "$verbose" && echo "	...checking LDFLAGS $LDFLAGS" 1>&6

echo "${as_me-configure}:15834: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5

test -n "$verbose" && echo "	...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6

echo "${as_me-configure}:15838: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5

case "$EXTRA_LDFLAGS" in #(vi
-Wl,-rpath,*) #(vi
    cf_rpath_hack="-Wl,-rpath,"
    ;;
-R\ *)
    cf_rpath_hack="-R "
    ;;
-R*)
    cf_rpath_hack="-R"
    ;;
*)
    cf_rpath_hack=
    ;;
esac
if test -n "$cf_rpath_hack" ; then
    cf_rpath_dst=
    for cf_rpath_src in $LDFLAGS
    do
        test -n "$verbose" && echo "	Filtering $cf_rpath_src" 1>&6

echo "${as_me-configure}:15860: testing Filtering $cf_rpath_src ..." 1>&5

        case $cf_rpath_src in #(vi
        -L*) #(vi
            if test "$cf_rpath_hack" = "-R " ; then
                cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e 's%-L%-R %'`
            else
                cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e s%-L%$cf_rpath_hack%`
            fi
            test -n "$verbose" && echo "	...Filter $cf_rpath_tmp" 1>&6

echo "${as_me-configure}:15871: testing ...Filter $cf_rpath_tmp ..." 1>&5

            EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
            ;;
        *)
            cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
            ;;
        esac
    done
    LDFLAGS=$cf_rpath_dst
    test -n "$verbose" && echo "	...checked LDFLAGS $LDFLAGS" 1>&6

echo "${as_me-configure}:15883: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5

    test -n "$verbose" && echo "	...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6

echo "${as_me-configure}:15887: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5

fi
else
echo "$as_me:15891: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi

d15498 1
a15498 1
{ echo "$as_me:16001: creating $CONFIG_STATUS" >&5
d15674 1
a15674 1
    { { echo "$as_me:16177: error: ambiguous option: $1
d15693 1
a15693 1
  -*) { { echo "$as_me:16196: error: unrecognized option: $1
a15749 4
TINFO_SUFFIX="$TINFO_SUFFIX"
TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
TICS_NAME="$TICS_NAME"
a15754 1
cf_cv_do_relink="$cf_cv_do_relink"
a15756 1
cf_cv_enable_opaque="$cf_cv_enable_opaque"
d15783 1
a15783 1
  *) { { echo "$as_me:16292: error: invalid argument: $ac_config_target" >&5
a15930 1
s,@@LIBTOOL_OPTS@@,$LIBTOOL_OPTS,;t t
a15941 1
s,@@TICS_NAME@@,$TICS_NAME,;t t
a15963 1
s,@@USE_BIG_STRINGS@@,$USE_BIG_STRINGS,;t t
a15985 4
s,@@cf_cv_enable_reentrant@@,$cf_cv_enable_reentrant,;t t
s,@@cf_cv_enable_opaque@@,$cf_cv_enable_opaque,;t t
s,@@NCURSES_OPAQUE@@,$NCURSES_OPAQUE,;t t
s,@@NCURSES_SIZE_T@@,$NCURSES_SIZE_T,;t t
a16017 4
s,@@TICS_ARG_SUFFIX@@,$TICS_ARG_SUFFIX,;t t
s,@@TICS_DEP_SUFFIX@@,$TICS_DEP_SUFFIX,;t t
s,@@TICS_LIB_SUFFIX@@,$TICS_LIB_SUFFIX,;t t
s,@@TICS_ARGS@@,$TICS_ARGS,;t t
a16022 2
s,@@LDFLAGS_STATIC@@,$LDFLAGS_STATIC,;t t
s,@@LDFLAGS_SHARED@@,$LDFLAGS_SHARED,;t t
a16023 1
s,@@TICS_LIST@@,$TICS_LIST,;t t
a16025 1
s,@@NCURSES_TREE@@,$NCURSES_TREE,;t t
d16149 1
a16149 1
    { echo "$as_me:16673: creating $ac_file" >&5
d16167 1
a16167 1
         test -f "$f" || { { echo "$as_me:16691: error: cannot find input file: $f" >&5
d16180 1
a16180 1
           { { echo "$as_me:16704: error: cannot find input file: $f" >&5
d16246 1
a16246 1
  test x"$ac_file" != x- && { echo "$as_me:16770: creating $ac_file" >&5
d16257 1
a16257 1
         test -f "$f" || { { echo "$as_me:16781: error: cannot find input file: $f" >&5
d16270 1
a16270 1
           { { echo "$as_me:16794: error: cannot find input file: $f" >&5
d16328 1
a16328 1
      { echo "$as_me:16852: $ac_file is unchanged" >&5
d16403 1
d16470 3
a16472 1
				LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}\${ABI_VERSION}.dll"
d16481 5
a16485 23
			cf_r_parts="$cf_subsets"

			while test -n "$cf_r_parts"
			do
				cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
				cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
				if test "$cf_l_parts" != "$cf_r_parts" ; then
					case $cf_l_parts in #(vi
					*termlib*) #(vi
						cf_item=`echo $LIBS_TO_MAKE |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
						;;
					*ticlib*)
						cf_item=`echo $LIBS_TO_MAKE |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
						;;
					*)
						break
						;;
					esac
					LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
				else
					break
				fi
			done
d16491 1
d16549 1
a16549 1
				*termlib*)
d16555 1
a16555 8
					;;
				ticlib*)
					cf_libname=$TICS_LIB_SUFFIX
					if test -n "${DFT_ARG_SUFFIX}" ; then
						# undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
						cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
					fi
					;;
a16595 2
				TermlibRoot=$TINFO_NAME \
				TermlibSuffix=$TINFO_SUFFIX \
a16597 1
				ReLink=${cf_cv_do_relink-no} \
d16684 2
a16685 2
install.libs uninstall.libs \\
install.data uninstall.data ::
d16694 1
a16694 1
	rm -f headers.sh headers.sed mk_shared_lib.sh
d16798 35
a16832 4
		$AWK -f $srcdir/mk-hdr.awk \
			subset="$LIB_SUBSETS" \
			compat="$WITH_CURSES_H" \
			$srcdir/$cf_dir/headers >>$cf_dir/Makefile
@


1.1.1.10
log
@Import ncurses 5.6-20080503 snapshot onto the vender branch
@
text
@d2 1
a2 1
# From configure.in Revision: 1.433 .
d4 1
a4 1
# Generated by Autoconf 2.52.20080325.
a778 1
  --with-pthread          use POSIX thread library
d870 1
a870 1
generated by GNU Autoconf 2.52.20080325.  Invocation command line was
d994 1
a994 1
    { echo "$as_me:995: loading site script $ac_site_file" >&5
d1005 1
a1005 1
    { echo "$as_me:1006: loading cache $cache_file" >&5
d1013 1
a1013 1
  { echo "$as_me:1014: creating cache $cache_file" >&5
d1029 1
a1029 1
      { echo "$as_me:1030: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
d1033 1
a1033 1
      { echo "$as_me:1034: error: \`$ac_var' was not set in the previous run" >&5
d1039 1
a1039 1
        { echo "$as_me:1040: error: \`$ac_var' has changed since the previous run:" >&5
d1041 1
a1041 1
        { echo "$as_me:1042:   former value:  $ac_old_val" >&5
d1043 1
a1043 1
        { echo "$as_me:1044:   current value: $ac_new_val" >&5
d1062 1
a1062 1
  { echo "$as_me:1063: error: changes in the environment can compromise the build" >&5
d1064 1
a1064 1
  { { echo "$as_me:1065: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
d1085 1
a1085 1
if { (echo "$as_me:1086: PATH=\".;.\"; conftest.sh") >&5
d1088 1
a1088 1
  echo "$as_me:1089: \$? = $ac_status" >&5
d1101 1
a1101 1
echo "$as_me:1102: checking for egrep" >&5
d1111 1
a1111 1
echo "$as_me:1112: result: $ac_cv_prog_egrep" >&5
d1115 1
a1115 1
test -z "$EGREP" && { { echo "$as_me:1116: error: No egrep program found" >&5
d1125 1
a1125 1
echo "$as_me:1126: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
d1133 1
a1133 1
  { echo "$as_me:1134: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
d1146 1
a1146 1
	{ { echo "$as_me:1147: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
d1152 1
a1152 1
  { { echo "$as_me:1153: error: Release major-version value is empty" >&5
d1162 1
a1162 1
	{ { echo "$as_me:1163: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
d1168 1
a1168 1
  { { echo "$as_me:1169: error: Release minor-version value is empty" >&5
d1178 1
a1178 1
  { echo "$as_me:1179: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
d1188 1
a1188 1
	{ { echo "$as_me:1189: error: ABI version is not a number: $cf_cv_abi_version" >&5
d1194 1
a1194 1
  { { echo "$as_me:1195: error: ABI version value is empty" >&5
d1216 1
a1216 1
  { { echo "$as_me:1217: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
d1226 1
a1226 1
  { { echo "$as_me:1227: error: cannot run $ac_config_sub" >&5
d1230 1
a1230 1
echo "$as_me:1231: checking build system type" >&5
d1239 1
a1239 1
  { { echo "$as_me:1240: error: cannot guess build type; you must specify one" >&5
d1243 1
a1243 1
  { { echo "$as_me:1244: error: $ac_config_sub $ac_cv_build_alias failed." >&5
d1248 1
a1248 1
echo "$as_me:1249: result: $ac_cv_build" >&5
d1255 1
a1255 1
echo "$as_me:1256: checking host system type" >&5
d1264 1
a1264 1
  { { echo "$as_me:1265: error: $ac_config_sub $ac_cv_host_alias failed" >&5
d1269 1
a1269 1
echo "$as_me:1270: result: $ac_cv_host" >&5
d1277 1
a1277 1
	echo "$as_me:1278: checking target system type" >&5
d1286 1
a1286 1
  { { echo "$as_me:1287: error: $ac_config_sub $ac_cv_target_alias failed" >&5
d1291 1
a1291 1
echo "$as_me:1292: result: $ac_cv_target" >&5
d1322 1
a1322 1
test -n "$cf_cv_system_name" && echo "$as_me:1323: result: Configuring for $cf_cv_system_name" >&5
d1326 1
a1326 1
	echo "$as_me:1327: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
d1328 1
a1328 1
	{ { echo "$as_me:1329: error: \"Please remove config.cache and try again.\"" >&5
d1336 1
a1336 1
  { echo "$as_me:1337: WARNING: overriding system type to $withval" >&5
d1346 1
a1346 1
echo "$as_me:1347: checking for prefix" >&5
d1358 1
a1358 1
echo "$as_me:1359: result: $prefix" >&5
d1362 1
a1362 1
echo "$as_me:1363: checking for default include-directory" >&5
d1385 1
a1385 1
echo "$as_me:1386: result: $includedir" >&5
d1399 1
a1399 1
echo "$as_me:1400: checking for $ac_word" >&5
d1414 1
a1414 1
echo "$as_me:1415: found $ac_dir/$ac_word" >&5
d1422 1
a1422 1
  echo "$as_me:1423: result: $CC" >&5
d1425 1
a1425 1
  echo "$as_me:1426: result: no" >&5
d1434 1
a1434 1
echo "$as_me:1435: checking for $ac_word" >&5
d1449 1
a1449 1
echo "$as_me:1450: found $ac_dir/$ac_word" >&5
d1457 1
a1457 1
  echo "$as_me:1458: result: $ac_ct_CC" >&5
d1460 1
a1460 1
  echo "$as_me:1461: result: no" >&5
d1473 1
a1473 1
echo "$as_me:1474: checking for $ac_word" >&5
d1488 1
a1488 1
echo "$as_me:1489: found $ac_dir/$ac_word" >&5
d1496 1
a1496 1
  echo "$as_me:1497: result: $CC" >&5
d1499 1
a1499 1
  echo "$as_me:1500: result: no" >&5
d1508 1
a1508 1
echo "$as_me:1509: checking for $ac_word" >&5
d1523 1
a1523 1
echo "$as_me:1524: found $ac_dir/$ac_word" >&5
d1531 1
a1531 1
  echo "$as_me:1532: result: $ac_ct_CC" >&5
d1534 1
a1534 1
  echo "$as_me:1535: result: no" >&5
d1547 1
a1547 1
echo "$as_me:1548: checking for $ac_word" >&5
d1567 1
a1567 1
echo "$as_me:1568: found $ac_dir/$ac_word" >&5
d1589 1
a1589 1
  echo "$as_me:1590: result: $CC" >&5
d1592 1
a1592 1
  echo "$as_me:1593: result: no" >&5
d1603 1
a1603 1
echo "$as_me:1604: checking for $ac_word" >&5
d1618 1
a1618 1
echo "$as_me:1619: found $ac_dir/$ac_word" >&5
d1626 1
a1626 1
  echo "$as_me:1627: result: $CC" >&5
d1629 1
a1629 1
  echo "$as_me:1630: result: no" >&5
d1642 1
a1642 1
echo "$as_me:1643: checking for $ac_word" >&5
d1657 1
a1657 1
echo "$as_me:1658: found $ac_dir/$ac_word" >&5
d1665 1
a1665 1
  echo "$as_me:1666: result: $ac_ct_CC" >&5
d1668 1
a1668 1
  echo "$as_me:1669: result: no" >&5
d1680 1
a1680 1
test -z "$CC" && { { echo "$as_me:1681: error: no acceptable cc found in \$PATH" >&5
d1685 1
a1685 1
echo "$as_me:1686:" \
d1688 1
a1688 1
{ (eval echo "$as_me:1689: \"$ac_compiler --version </dev/null >&5\"") >&5
d1691 1
a1691 1
  echo "$as_me:1692: \$? = $ac_status" >&5
d1693 1
a1693 1
{ (eval echo "$as_me:1694: \"$ac_compiler -v </dev/null >&5\"") >&5
d1696 1
a1696 1
  echo "$as_me:1697: \$? = $ac_status" >&5
d1698 1
a1698 1
{ (eval echo "$as_me:1699: \"$ac_compiler -V </dev/null >&5\"") >&5
d1701 1
a1701 1
  echo "$as_me:1702: \$? = $ac_status" >&5
d1705 1
a1705 1
#line 1706 "configure"
d1721 1
a1721 1
echo "$as_me:1722: checking for C compiler default output" >&5
d1724 1
a1724 1
if { (eval echo "$as_me:1725: \"$ac_link_default\"") >&5
d1727 1
a1727 1
  echo "$as_me:1728: \$? = $ac_status" >&5
d1750 1
a1750 1
{ { echo "$as_me:1751: error: C compiler cannot create executables" >&5
d1756 1
a1756 1
echo "$as_me:1757: result: $ac_file" >&5
d1761 1
a1761 1
echo "$as_me:1762: checking whether the C compiler works" >&5
d1767 1
a1767 1
  { (eval echo "$as_me:1768: \"$ac_try\"") >&5
d1770 1
a1770 1
  echo "$as_me:1771: \$? = $ac_status" >&5
d1777 1
a1777 1
	{ { echo "$as_me:1778: error: cannot run C compiled programs.
d1785 1
a1785 1
echo "$as_me:1786: result: yes" >&5
d1792 1
a1792 1
echo "$as_me:1793: checking whether we are cross compiling" >&5
d1794 1
a1794 1
echo "$as_me:1795: result: $cross_compiling" >&5
d1797 1
a1797 1
echo "$as_me:1798: checking for executable suffix" >&5
d1799 1
a1799 1
if { (eval echo "$as_me:1800: \"$ac_link\"") >&5
d1802 1
a1802 1
  echo "$as_me:1803: \$? = $ac_status" >&5
d1818 1
a1818 1
  { { echo "$as_me:1819: error: cannot compute EXEEXT: cannot compile and link" >&5
d1824 1
a1824 1
echo "$as_me:1825: result: $ac_cv_exeext" >&5
d1830 1
a1830 1
echo "$as_me:1831: checking for object suffix" >&5
d1836 1
a1836 1
#line 1837 "configure"
d1848 1
a1848 1
if { (eval echo "$as_me:1849: \"$ac_compile\"") >&5
d1851 1
a1851 1
  echo "$as_me:1852: \$? = $ac_status" >&5
d1863 1
a1863 1
{ { echo "$as_me:1864: error: cannot compute OBJEXT: cannot compile" >&5
d1870 1
a1870 1
echo "$as_me:1871: result: $ac_cv_objext" >&5
d1874 1
a1874 1
echo "$as_me:1875: checking whether we are using the GNU C compiler" >&5
d1880 1
a1880 1
#line 1881 "configure"
d1895 1
a1895 1
if { (eval echo "$as_me:1896: \"$ac_compile\"") >&5
d1898 1
a1898 1
  echo "$as_me:1899: \$? = $ac_status" >&5
d1901 1
a1901 1
  { (eval echo "$as_me:1902: \"$ac_try\"") >&5
d1904 1
a1904 1
  echo "$as_me:1905: \$? = $ac_status" >&5
d1916 1
a1916 1
echo "$as_me:1917: result: $ac_cv_c_compiler_gnu" >&5
d1922 1
a1922 1
echo "$as_me:1923: checking whether $CC accepts -g" >&5
d1928 1
a1928 1
#line 1929 "configure"
d1940 1
a1940 1
if { (eval echo "$as_me:1941: \"$ac_compile\"") >&5
d1943 1
a1943 1
  echo "$as_me:1944: \$? = $ac_status" >&5
d1946 1
a1946 1
  { (eval echo "$as_me:1947: \"$ac_try\"") >&5
d1949 1
a1949 1
  echo "$as_me:1950: \$? = $ac_status" >&5
d1959 1
a1959 1
echo "$as_me:1960: result: $ac_cv_prog_cc_g" >&5
d1986 1
a1986 1
if { (eval echo "$as_me:1987: \"$ac_compile\"") >&5
d1989 1
a1989 1
  echo "$as_me:1990: \$? = $ac_status" >&5
d1992 1
a1992 1
  { (eval echo "$as_me:1993: \"$ac_try\"") >&5
d1995 1
a1995 1
  echo "$as_me:1996: \$? = $ac_status" >&5
d2007 1
a2007 1
#line 2008 "configure"
d2020 1
a2020 1
if { (eval echo "$as_me:2021: \"$ac_compile\"") >&5
d2023 1
a2023 1
  echo "$as_me:2024: \$? = $ac_status" >&5
d2026 1
a2026 1
  { (eval echo "$as_me:2027: \"$ac_try\"") >&5
d2029 1
a2029 1
  echo "$as_me:2030: \$? = $ac_status" >&5
d2039 1
a2039 1
#line 2040 "configure"
d2051 1
a2051 1
if { (eval echo "$as_me:2052: \"$ac_compile\"") >&5
d2054 1
a2054 1
  echo "$as_me:2055: \$? = $ac_status" >&5
d2057 1
a2057 1
  { (eval echo "$as_me:2058: \"$ac_try\"") >&5
d2060 1
a2060 1
  echo "$as_me:2061: \$? = $ac_status" >&5
d2090 1
a2090 1
	echo "$as_me:2091: checking version of $CC" >&5
d2094 1
a2094 1
	echo "$as_me:2095: result: $GCC_VERSION" >&5
d2104 1
a2104 1
echo "$as_me:2105: checking how to run the C preprocessor" >&5
d2125 1
a2125 1
#line 2126 "configure"
d2130 1
a2130 1
if { (eval echo "$as_me:2131: \"$ac_cpp conftest.$ac_ext\"") >&5
d2136 1
a2136 1
  echo "$as_me:2137: \$? = $ac_status" >&5
d2159 1
a2159 1
#line 2160 "configure"
d2163 1
a2163 1
if { (eval echo "$as_me:2164: \"$ac_cpp conftest.$ac_ext\"") >&5
d2169 1
a2169 1
  echo "$as_me:2170: \$? = $ac_status" >&5
d2206 1
a2206 1
echo "$as_me:2207: result: $CPP" >&5
d2216 1
a2216 1
#line 2217 "configure"
d2221 1
a2221 1
if { (eval echo "$as_me:2222: \"$ac_cpp conftest.$ac_ext\"") >&5
d2227 1
a2227 1
  echo "$as_me:2228: \$? = $ac_status" >&5
d2250 1
a2250 1
#line 2251 "configure"
d2254 1
a2254 1
if { (eval echo "$as_me:2255: \"$ac_cpp conftest.$ac_ext\"") >&5
d2260 1
a2260 1
  echo "$as_me:2261: \$? = $ac_status" >&5
d2288 1
a2288 1
  { { echo "$as_me:2289: error: C preprocessor \"$CPP\" fails sanity check" >&5
d2301 1
a2301 1
    echo "$as_me:2302: checking whether $CC needs -traditional" >&5
d2308 1
a2308 1
#line 2309 "configure"
d2323 1
a2323 1
#line 2324 "configure"
d2336 1
a2336 1
echo "$as_me:2337: result: $ac_cv_prog_gcc_traditional" >&5
d2343 1
a2343 1
echo "$as_me:2344: checking whether $CC understands -c and -o together" >&5
d2359 1
a2359 1
if { (eval echo "$as_me:2360: \"$ac_try\"") >&5
d2362 1
a2362 1
  echo "$as_me:2363: \$? = $ac_status" >&5
d2364 1
a2364 1
  test -f conftest2.$ac_objext && { (eval echo "$as_me:2365: \"$ac_try\"") >&5
d2367 1
a2367 1
  echo "$as_me:2368: \$? = $ac_status" >&5
d2378 1
a2378 1
  echo "$as_me:2379: result: yes" >&5
d2381 1
a2381 1
  echo "$as_me:2382: result: no" >&5
d2385 1
a2385 1
echo "$as_me:2386: checking for POSIXized ISC" >&5
d2390 1
a2390 1
  echo "$as_me:2391: result: yes" >&5
d2404 1
a2404 1
  echo "$as_me:2405: result: no" >&5
d2409 1
a2409 1
echo "$as_me:2410: checking for ${CC-cc} option to accept ANSI C" >&5
d2503 1
a2503 1
#line 2504 "configure"
d2524 1
a2524 1
if { (eval echo "$as_me:2525: \"$ac_compile\"") >&5
d2527 1
a2527 1
  echo "$as_me:2528: \$? = $ac_status" >&5
d2530 1
a2530 1
  { (eval echo "$as_me:2531: \"$ac_try\"") >&5
d2533 1
a2533 1
  echo "$as_me:2534: \$? = $ac_status" >&5
d2546 1
a2546 1
echo "$as_me:2547: result: $cf_cv_ansi_cc" >&5
d2629 1
a2629 1
	{ { echo "$as_me:2630: error: Your compiler does not appear to recognize prototypes.
d2669 1
a2669 1
echo "$as_me:2670: checking for $ac_word" >&5
d2686 1
a2686 1
   echo "$as_me:2687: found $ac_dir/$ac_word" >&5
d2697 1
a2697 1
  echo "$as_me:2698: result: $LDCONFIG" >&5
d2700 1
a2700 1
  echo "$as_me:2701: result: no" >&5
d2708 1
a2708 1
echo "$as_me:2709: checking if you want to ensure bool is consistent with C++" >&5
d2718 1
a2718 1
echo "$as_me:2719: result: $cf_with_cxx" >&5
d2736 1
a2736 1
echo "$as_me:2737: checking for $ac_word" >&5
d2751 1
a2751 1
echo "$as_me:2752: found $ac_dir/$ac_word" >&5
d2759 1
a2759 1
  echo "$as_me:2760: result: $CXX" >&5
d2762 1
a2762 1
  echo "$as_me:2763: result: no" >&5
d2775 1
a2775 1
echo "$as_me:2776: checking for $ac_word" >&5
d2790 1
a2790 1
echo "$as_me:2791: found $ac_dir/$ac_word" >&5
d2798 1
a2798 1
  echo "$as_me:2799: result: $ac_ct_CXX" >&5
d2801 1
a2801 1
  echo "$as_me:2802: result: no" >&5
d2813 1
a2813 1
echo "$as_me:2814:" \
d2816 1
a2816 1
{ (eval echo "$as_me:2817: \"$ac_compiler --version </dev/null >&5\"") >&5
d2819 1
a2819 1
  echo "$as_me:2820: \$? = $ac_status" >&5
d2821 1
a2821 1
{ (eval echo "$as_me:2822: \"$ac_compiler -v </dev/null >&5\"") >&5
d2824 1
a2824 1
  echo "$as_me:2825: \$? = $ac_status" >&5
d2826 1
a2826 1
{ (eval echo "$as_me:2827: \"$ac_compiler -V </dev/null >&5\"") >&5
d2829 1
a2829 1
  echo "$as_me:2830: \$? = $ac_status" >&5
d2832 1
a2832 1
echo "$as_me:2833: checking whether we are using the GNU C++ compiler" >&5
d2838 1
a2838 1
#line 2839 "configure"
d2853 1
a2853 1
if { (eval echo "$as_me:2854: \"$ac_compile\"") >&5
d2856 1
a2856 1
  echo "$as_me:2857: \$? = $ac_status" >&5
d2859 1
a2859 1
  { (eval echo "$as_me:2860: \"$ac_try\"") >&5
d2862 1
a2862 1
  echo "$as_me:2863: \$? = $ac_status" >&5
d2874 1
a2874 1
echo "$as_me:2875: result: $ac_cv_cxx_compiler_gnu" >&5
d2880 1
a2880 1
echo "$as_me:2881: checking whether $CXX accepts -g" >&5
d2886 1
a2886 1
#line 2887 "configure"
d2898 1
a2898 1
if { (eval echo "$as_me:2899: \"$ac_compile\"") >&5
d2901 1
a2901 1
  echo "$as_me:2902: \$? = $ac_status" >&5
d2904 1
a2904 1
  { (eval echo "$as_me:2905: \"$ac_try\"") >&5
d2907 1
a2907 1
  echo "$as_me:2908: \$? = $ac_status" >&5
d2917 1
a2917 1
echo "$as_me:2918: result: $ac_cv_prog_cxx_g" >&5
d2944 1
a2944 1
#line 2945 "configure"
d2957 1
a2957 1
if { (eval echo "$as_me:2958: \"$ac_compile\"") >&5
d2960 1
a2960 1
  echo "$as_me:2961: \$? = $ac_status" >&5
d2963 1
a2963 1
  { (eval echo "$as_me:2964: \"$ac_try\"") >&5
d2966 1
a2966 1
  echo "$as_me:2967: \$? = $ac_status" >&5
d2976 1
a2976 1
#line 2977 "configure"
d2988 1
a2988 1
if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5
d2991 1
a2991 1
  echo "$as_me:2992: \$? = $ac_status" >&5
d2994 1
a2994 1
  { (eval echo "$as_me:2995: \"$ac_try\"") >&5
d2997 1
a2997 1
  echo "$as_me:2998: \$? = $ac_status" >&5
d3024 1
a3024 1
echo "$as_me:3025: checking for $ac_word" >&5
d3041 1
a3041 1
   echo "$as_me:3042: found $ac_dir/$ac_word" >&5
d3052 1
a3052 1
  echo "$as_me:3053: result: $CXX" >&5
d3055 1
a3055 1
  echo "$as_me:3056: result: no" >&5
d3061 1
a3061 1
		{ echo "$as_me:3062: WARNING: ignoring hardcoded g++" >&5
d3069 1
a3069 1
	echo "$as_me:3070: checking version of g++" >&5
d3073 1
a3073 1
	echo "$as_me:3074: result: $GXX_VERSION" >&5
d3081 1
a3081 1
	{ echo "$as_me:3082: WARNING: templates do not work" >&5
d3086 1
a3086 1
echo "$as_me:3087: checking if you want to build C++ binding and demo" >&5
d3096 1
a3096 1
echo "$as_me:3097: result: $cf_with_cxx_binding" >&5
d3099 1
a3099 1
echo "$as_me:3100: checking if you want to build with Ada95" >&5
d3109 1
a3109 1
echo "$as_me:3110: result: $cf_with_ada" >&5
d3112 1
a3112 1
echo "$as_me:3113: checking if you want to build programs such as tic" >&5
d3122 1
a3122 1
echo "$as_me:3123: result: $cf_with_progs" >&5
d3125 1
a3125 1
echo "$as_me:3126: checking if you wish to install curses.h" >&5
d3135 1
a3135 1
echo "$as_me:3136: result: $with_curses_h" >&5
d3161 1
a3161 1
echo "$as_me:3162: checking for $ac_word" >&5
d3176 1
a3176 1
echo "$as_me:3177: found $ac_dir/$ac_word" >&5
d3184 1
a3184 1
  echo "$as_me:3185: result: $AWK" >&5
d3187 1
a3187 1
  echo "$as_me:3188: result: no" >&5
d3194 1
a3194 1
test -z "$AWK" && { { echo "$as_me:3195: error: No awk program found" >&5
d3198 1
a3198 1
echo "$as_me:3199: checking for egrep" >&5
d3208 1
a3208 1
echo "$as_me:3209: result: $ac_cv_prog_egrep" >&5
d3212 1
a3212 1
test -z "$EGREP" && { { echo "$as_me:3213: error: No egrep program found" >&5
d3228 1
a3228 1
echo "$as_me:3229: checking for a BSD compatible install" >&5
d3277 1
a3277 1
echo "$as_me:3278: result: $INSTALL" >&5
d3302 1
a3302 1
echo "$as_me:3303: checking for $ac_word" >&5
d3317 1
a3317 1
echo "$as_me:3318: found $ac_dir/$ac_word" >&5
d3325 1
a3325 1
  echo "$as_me:3326: result: $LINT" >&5
d3328 1
a3328 1
  echo "$as_me:3329: result: no" >&5
d3335 1
a3335 1
echo "$as_me:3336: checking whether ln -s works" >&5
d3339 1
a3339 1
  echo "$as_me:3340: result: yes" >&5
d3342 1
a3342 1
  echo "$as_me:3343: result: no, using $LN_S" >&5
d3346 1
a3346 1
echo "$as_me:3347: checking for long file names" >&5
d3385 1
a3385 1
echo "$as_me:3386: result: $ac_cv_sys_long_file_names" >&5
d3395 1
a3395 1
echo "$as_me:3396: checking if we should assume mixed-case filenames" >&5
d3405 1
a3405 1
echo "$as_me:3406: result: $enable_mixedcase" >&5
d3409 1
a3409 1
echo "$as_me:3410: checking if filesystem supports mixed-case filenames" >&5
d3436 1
a3436 1
echo "$as_me:3437: result: $cf_cv_mixedcase" >&5
d3453 1
a3453 1
echo "$as_me:3454: checking whether ${MAKE-make} sets \${MAKE}" >&5
d3473 1
a3473 1
  echo "$as_me:3474: result: yes" >&5
d3477 1
a3477 1
  echo "$as_me:3478: result: no" >&5
d3484 1
a3484 1
echo "$as_me:3485: checking for $ac_word" >&5
d3499 1
a3499 1
echo "$as_me:3500: found $ac_dir/$ac_word" >&5
d3508 1
a3508 1
  echo "$as_me:3509: result: $MAKE_LOWER_TAGS" >&5
d3511 1
a3511 1
  echo "$as_me:3512: result: no" >&5
d3518 1
a3518 1
echo "$as_me:3519: checking for $ac_word" >&5
d3533 1
a3533 1
echo "$as_me:3534: found $ac_dir/$ac_word" >&5
d3542 1
a3542 1
  echo "$as_me:3543: result: $MAKE_UPPER_TAGS" >&5
d3545 1
a3545 1
  echo "$as_me:3546: result: no" >&5
d3565 1
a3565 1
echo "$as_me:3566: checking for makeflags variable" >&5
d3599 1
a3599 1
echo "$as_me:3600: result: $cf_cv_makeflags" >&5
d3605 1
a3605 1
echo "$as_me:3606: checking for $ac_word" >&5
d3620 1
a3620 1
echo "$as_me:3621: found $ac_dir/$ac_word" >&5
d3628 1
a3628 1
  echo "$as_me:3629: result: $RANLIB" >&5
d3631 1
a3631 1
  echo "$as_me:3632: result: no" >&5
d3640 1
a3640 1
echo "$as_me:3641: checking for $ac_word" >&5
d3655 1
a3655 1
echo "$as_me:3656: found $ac_dir/$ac_word" >&5
d3664 1
a3664 1
  echo "$as_me:3665: result: $ac_ct_RANLIB" >&5
d3667 1
a3667 1
  echo "$as_me:3668: result: no" >&5
d3679 1
a3679 1
echo "$as_me:3680: checking for $ac_word" >&5
d3694 1
a3694 1
echo "$as_me:3695: found $ac_dir/$ac_word" >&5
d3702 1
a3702 1
  echo "$as_me:3703: result: $LD" >&5
d3705 1
a3705 1
  echo "$as_me:3706: result: no" >&5
d3714 1
a3714 1
echo "$as_me:3715: checking for $ac_word" >&5
d3729 1
a3729 1
echo "$as_me:3730: found $ac_dir/$ac_word" >&5
d3738 1
a3738 1
  echo "$as_me:3739: result: $ac_ct_LD" >&5
d3741 1
a3741 1
  echo "$as_me:3742: result: no" >&5
d3753 1
a3753 1
echo "$as_me:3754: checking for $ac_word" >&5
d3768 1
a3768 1
echo "$as_me:3769: found $ac_dir/$ac_word" >&5
d3776 1
a3776 1
  echo "$as_me:3777: result: $AR" >&5
d3779 1
a3779 1
  echo "$as_me:3780: result: no" >&5
d3788 1
a3788 1
echo "$as_me:3789: checking for $ac_word" >&5
d3803 1
a3803 1
echo "$as_me:3804: found $ac_dir/$ac_word" >&5
d3812 1
a3812 1
  echo "$as_me:3813: result: $ac_ct_AR" >&5
d3815 1
a3815 1
  echo "$as_me:3816: result: no" >&5
d3828 1
a3828 1
echo "$as_me:3829: checking for archiver options (symbol AR_OPTS)" >&5
d3837 1
a3837 1
echo "$as_me:3838: result: $AR_OPTS" >&5
d3842 1
a3842 1
echo "$as_me:3843: checking if you have specified an install-prefix" >&5
d3855 1
a3855 1
echo "$as_me:3856: result: $DESTDIR" >&5
d3883 1
a3883 1
echo "$as_me:3884: checking for $ac_word" >&5
d3898 1
a3898 1
echo "$as_me:3899: found $ac_dir/$ac_word" >&5
d3906 1
a3906 1
  echo "$as_me:3907: result: $BUILD_CC" >&5
d3909 1
a3909 1
  echo "$as_me:3910: result: no" >&5
d3917 1
a3917 1
	echo "$as_me:3918: checking for native build C compiler" >&5
d3919 1
a3919 1
	echo "$as_me:3920: result: $BUILD_CC" >&5
d3922 1
a3922 1
	echo "$as_me:3923: checking for native build C preprocessor" >&5
d3932 1
a3932 1
	echo "$as_me:3933: result: $BUILD_CPP" >&5
d3935 1
a3935 1
	echo "$as_me:3936: checking for native build C flags" >&5
d3943 1
a3943 1
	echo "$as_me:3944: result: $BUILD_CFLAGS" >&5
d3946 1
a3946 1
	echo "$as_me:3947: checking for native build C preprocessor-flags" >&5
d3954 1
a3954 1
	echo "$as_me:3955: result: $BUILD_CPPFLAGS" >&5
d3957 1
a3957 1
	echo "$as_me:3958: checking for native build linker-flags" >&5
d3965 1
a3965 1
	echo "$as_me:3966: result: $BUILD_LDFLAGS" >&5
d3968 1
a3968 1
	echo "$as_me:3969: checking for native build linker-libraries" >&5
d3976 1
a3976 1
	echo "$as_me:3977: result: $BUILD_LIBS" >&5
d3986 1
a3986 1
		{ { echo "$as_me:3987: error: Cross-build requires two compilers.
d4027 1
a4027 1
echo "$as_me:4028: checking if you want to build libraries with libtool" >&5
d4037 1
a4037 1
echo "$as_me:4038: result: $with_libtool" >&5
d4068 1
a4068 1
  { { echo "$as_me:4069: error: expected a pathname, not \"$with_libtool\"" >&5
d4078 1
a4078 1
echo "$as_me:4079: checking for $ac_word" >&5
d4095 1
a4095 1
   echo "$as_me:4096: found $ac_dir/$ac_word" >&5
d4106 1
a4106 1
  echo "$as_me:4107: result: $LIBTOOL" >&5
d4109 1
a4109 1
  echo "$as_me:4110: result: no" >&5
d4115 1
a4115 1
 		{ { echo "$as_me:4116: error: Cannot find libtool" >&5
d4130 1
a4130 1
	echo "$as_me:4131: checking version of libtool" >&5
d4137 1
a4137 1
	echo "$as_me:4138: result: $cf_cv_libtool_version" >&5
d4140 1
a4140 1
		{ { echo "$as_me:4141: error: This is not GNU libtool" >&5
a4148 1
		LIBTOOL="$LIBTOOL --tag=CC"
d4167 1
a4167 1
echo "$as_me:4169: checking if you want to build shared libraries" >&5
d4177 1
a4177 1
echo "$as_me:4179: result: $with_shared" >&5
d4181 1
a4181 1
echo "$as_me:4183: checking if you want to build static libraries" >&5
d4191 1
a4191 1
echo "$as_me:4193: result: $with_normal" >&5
d4195 1
a4195 1
echo "$as_me:4197: checking if you want to build debug libraries" >&5
d4205 1
a4205 1
echo "$as_me:4207: result: $with_debug" >&5
d4209 1
a4209 1
echo "$as_me:4211: checking if you want to build profiling libraries" >&5
d4219 1
a4219 1
echo "$as_me:4221: result: $with_profile" >&5
d4227 1
a4227 1
echo "$as_me:4229: checking for specified models" >&5
d4231 1
a4231 1
echo "$as_me:4233: result: $cf_list_models" >&5
d4236 1
a4236 1
echo "$as_me:4238: checking for default model" >&5
d4239 1
a4239 1
echo "$as_me:4241: result: $DFT_LWR_MODEL" >&5
d4266 1
a4266 1
echo "$as_me:4268: checking if you want to build a separate terminfo library" >&5
d4276 1
a4276 1
echo "$as_me:4278: result: $with_termlib" >&5
d4279 1
a4279 1
echo "$as_me:4281: checking if you want to build a separate tic library" >&5
d4289 1
a4289 1
echo "$as_me:4291: result: $with_ticlib" >&5
d4295 1
a4295 1
echo "$as_me:4297: checking if you want to link with the GPM mouse library" >&5
d4305 1
a4305 1
echo "$as_me:4307: result: $with_gpm" >&5
d4309 1
a4309 1
	echo "$as_me:4311: checking for gpm.h" >&5
d4315 1
a4315 1
#line 4317 "configure"
d4319 1
a4319 1
if { (eval echo "$as_me:4321: \"$ac_cpp conftest.$ac_ext\"") >&5
d4325 1
a4325 1
  echo "$as_me:4327: \$? = $ac_status" >&5
d4344 1
a4344 1
echo "$as_me:4346: result: $ac_cv_header_gpm_h" >&5
d4355 1
a4355 1
echo "${as_me-configure}:4357: testing assuming we really have GPM library ..." 1>&5
d4362 1
a4362 1
			echo "$as_me:4364: checking for Gpm_Open in -lgpm" >&5
d4370 1
a4370 1
#line 4372 "configure"
d4389 1
a4389 1
if { (eval echo "$as_me:4391: \"$ac_link\"") >&5
d4392 1
a4392 1
  echo "$as_me:4394: \$? = $ac_status" >&5
d4395 1
a4395 1
  { (eval echo "$as_me:4397: \"$ac_try\"") >&5
d4398 1
a4398 1
  echo "$as_me:4400: \$? = $ac_status" >&5
d4409 1
a4409 1
echo "$as_me:4411: result: $ac_cv_lib_gpm_Gpm_Open" >&5
d4415 1
a4415 1
				{ { echo "$as_me:4417: error: Cannot link with GPM library" >&5
d4425 1
a4425 1
		test "$with_gpm" != maybe && { echo "$as_me:4427: WARNING: Cannot find GPM header" >&5
d4434 1
a4434 1
	echo "$as_me:4436: checking if you want to load GPM dynamically" >&5
d4444 1
a4444 1
	echo "$as_me:4446: result: $with_dlsym" >&5
d4449 1
a4449 1
echo "$as_me:4451: checking for dlsym" >&5
d4455 1
a4455 1
#line 4457 "configure"
d4486 1
a4486 1
if { (eval echo "$as_me:4488: \"$ac_link\"") >&5
d4489 1
a4489 1
  echo "$as_me:4491: \$? = $ac_status" >&5
d4492 1
a4492 1
  { (eval echo "$as_me:4494: \"$ac_try\"") >&5
d4495 1
a4495 1
  echo "$as_me:4497: \$? = $ac_status" >&5
d4505 1
a4505 1
echo "$as_me:4507: result: $ac_cv_func_dlsym" >&5
d4512 1
a4512 1
echo "$as_me:4514: checking for dlsym in -ldl" >&5
d4520 1
a4520 1
#line 4522 "configure"
d4539 1
a4539 1
if { (eval echo "$as_me:4541: \"$ac_link\"") >&5
d4542 1
a4542 1
  echo "$as_me:4544: \$? = $ac_status" >&5
d4545 1
a4545 1
  { (eval echo "$as_me:4547: \"$ac_try\"") >&5
d4548 1
a4548 1
  echo "$as_me:4550: \$? = $ac_status" >&5
d4559 1
a4559 1
echo "$as_me:4561: result: $ac_cv_lib_dl_dlsym" >&5
d4572 1
a4572 1
	echo "$as_me:4574: checking whether able to link to dl*() functions" >&5
d4575 1
a4575 1
#line 4577 "configure"
d4593 1
a4593 1
if { (eval echo "$as_me:4595: \"$ac_link\"") >&5
d4596 1
a4596 1
  echo "$as_me:4598: \$? = $ac_status" >&5
d4599 1
a4599 1
  { (eval echo "$as_me:4601: \"$ac_try\"") >&5
d4602 1
a4602 1
  echo "$as_me:4604: \$? = $ac_status" >&5
d4613 1
a4613 1
		{ { echo "$as_me:4615: error: Cannot link test program for libdl" >&5
d4618 1
a4618 1
	echo "$as_me:4620: result: ok" >&5
d4621 1
a4621 1
	{ { echo "$as_me:4623: error: Cannot find dlsym function" >&5
d4629 1
a4629 1
echo "${as_me-configure}:4631: testing assuming soname for gpm is $with_gpm ..." 1>&5
d4634 1
a4634 1
echo "$as_me:4636: checking for soname of gpm library" >&5
d4652 1
a4652 1
	if { (eval echo "$as_me:4654: \"$ac_compile\"") >&5
d4655 1
a4655 1
  echo "$as_me:4657: \$? = $ac_status" >&5
d4657 1
a4657 1
		if { (eval echo "$as_me:4659: \"$ac_link\"") >&5
d4660 1
a4660 1
  echo "$as_me:4662: \$? = $ac_status" >&5
d4671 1
a4671 1
echo "$as_me:4673: result: $cf_cv_gpm_soname" >&5
d4687 1
a4687 1
echo "$as_me:4689: checking for Gpm_Wgetch in -lgpm" >&5
d4695 1
a4695 1
#line 4697 "configure"
d4714 1
a4714 1
if { (eval echo "$as_me:4716: \"$ac_link\"") >&5
d4717 1
a4717 1
  echo "$as_me:4719: \$? = $ac_status" >&5
d4720 1
a4720 1
  { (eval echo "$as_me:4722: \"$ac_try\"") >&5
d4723 1
a4723 1
  echo "$as_me:4725: \$? = $ac_status" >&5
d4734 1
a4734 1
echo "$as_me:4736: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
d4738 1
a4738 1
echo "$as_me:4740: checking if GPM is weakly bound to curses library" >&5
d4762 1
a4762 1
	if { (eval echo "$as_me:4764: \"$ac_compile\"") >&5
d4765 1
a4765 1
  echo "$as_me:4767: \$? = $ac_status" >&5
d4767 1
a4767 1
		if { (eval echo "$as_me:4769: \"$ac_link\"") >&5
d4770 1
a4770 1
  echo "$as_me:4772: \$? = $ac_status" >&5
d4782 1
a4782 1
echo "$as_me:4784: result: $cf_cv_check_gpm_wgetch" >&5
d4786 1
a4786 1
	{ echo "$as_me:4788: WARNING: GPM library is already linked with curses - read the FAQ" >&5
d4796 1
a4796 1
echo "$as_me:4798: checking if you want to use sysmouse" >&5
d4808 1
a4808 1
#line 4810 "configure"
d4831 1
a4831 1
if { (eval echo "$as_me:4833: \"$ac_compile\"") >&5
d4834 1
a4834 1
  echo "$as_me:4836: \$? = $ac_status" >&5
d4837 1
a4837 1
  { (eval echo "$as_me:4839: \"$ac_try\"") >&5
d4840 1
a4840 1
  echo "$as_me:4842: \$? = $ac_status" >&5
d4850 1
a4850 1
echo "$as_me:4852: result: $cf_with_sysmouse" >&5
d4868 1
a4868 1
echo "$as_me:4870: checking for default loader flags" >&5
d4877 1
a4877 1
echo "$as_me:4879: result: $LD_MODEL" >&5
d4882 1
a4882 1
echo "$as_me:4884: checking if rpath option should be used" >&5
d4892 1
a4892 1
echo "$as_me:4894: result: $cf_cv_ld_rpath" >&5
d4894 1
a4894 1
echo "$as_me:4896: checking if shared libraries should be relinked during install" >&5
d4904 1
a4904 1
echo "$as_me:4906: result: $cf_cv_do_relink" >&5
d4916 1
a4916 1
	echo "$as_me:4918: checking if release/abi version should be used for shared libs" >&5
d4931 1
a4931 1
		{ { echo "$as_me:4933: error: option value must be one of: rel, abi, auto or no" >&5
d4940 1
a4940 1
	echo "$as_me:4942: result: $cf_cv_shlib_version" >&5
d4949 1
a4949 1
		echo "$as_me:4951: checking which $CC option to use" >&5
d4956 1
a4956 1
#line 4958 "configure"
d4968 1
a4968 1
if { (eval echo "$as_me:4970: \"$ac_compile\"") >&5
d4971 1
a4971 1
  echo "$as_me:4973: \$? = $ac_status" >&5
d4974 1
a4974 1
  { (eval echo "$as_me:4976: \"$ac_try\"") >&5
d4977 1
a4977 1
  echo "$as_me:4979: \$? = $ac_status" >&5
d4986 1
a4986 1
		echo "$as_me:4988: result: $CC_SHARED_OPTS" >&5
d5022 1
a5022 1
		echo "$as_me:5024: checking if ld -search_paths_first works" >&5
d5031 1
a5031 1
#line 5033 "configure"
d5043 1
a5043 1
if { (eval echo "$as_me:5045: \"$ac_link\"") >&5
d5046 1
a5046 1
  echo "$as_me:5048: \$? = $ac_status" >&5
d5049 1
a5049 1
  { (eval echo "$as_me:5051: \"$ac_try\"") >&5
d5052 1
a5052 1
  echo "$as_me:5054: \$? = $ac_status" >&5
d5063 1
a5063 1
echo "$as_me:5065: result: $cf_cv_ldflags_search_paths_first" >&5
d5259 1
a5259 1
			{ echo "$as_me:5261: WARNING: ignored --with-shlib-version" >&5
d5267 1
a5267 1
		echo "$as_me:5269: checking if we need a space after rpath option" >&5
d5272 1
a5272 1
#line 5274 "configure"
d5284 1
a5284 1
if { (eval echo "$as_me:5286: \"$ac_link\"") >&5
d5287 1
a5287 1
  echo "$as_me:5289: \$? = $ac_status" >&5
d5290 1
a5290 1
  { (eval echo "$as_me:5292: \"$ac_try\"") >&5
d5293 1
a5293 1
  echo "$as_me:5295: \$? = $ac_status" >&5
d5303 1
a5303 1
		echo "$as_me:5305: result: $cf_rpath_space" >&5
d5312 1
a5312 1
			{ { echo "$as_me:5314: error: Shared libraries are not supported in this version" >&5
d5322 1
a5322 1
echo "$as_me:5324: checking if you wish to install ncurses overwriting curses" >&5
d5332 1
a5332 1
echo "$as_me:5334: result: $with_overwrite" >&5
d5335 1
a5335 1
echo "$as_me:5337: checking if external terminfo-database is used" >&5
d5345 1
a5345 1
echo "$as_me:5347: result: $use_database" >&5
d5367 1
a5367 1
	echo "$as_me:5369: checking which terminfo source-file will be installed" >&5
d5375 1
a5375 1
	echo "$as_me:5377: result: $TERMINFO_SRC" >&5
d5378 1
a5378 1
	echo "$as_me:5380: checking whether to use hashed database instead of directory/tree" >&5
d5388 1
a5388 1
	echo "$as_me:5390: result: $with_hashed_db" >&5
d5392 1
a5392 1
echo "$as_me:5394: checking for list of fallback descriptions" >&5
d5402 1
a5402 1
echo "$as_me:5404: result: $with_fallback" >&5
d5406 1
a5406 1
echo "$as_me:5408: checking if you want modern xterm or antique" >&5
d5420 1
a5420 1
echo "$as_me:5422: result: $with_xterm_new" >&5
d5430 1
a5430 1
echo "$as_me:5432: checking for list of terminfo directories" >&5
d5470 1
a5470 1
  { { echo "$as_me:5472: error: expected a pathname, not \"$cf_src_path\"" >&5
d5483 1
a5483 1
echo "$as_me:5485: result: $TERMINFO_DIRS" >&5
d5489 1
a5489 1
echo "$as_me:5491: checking for default terminfo directory" >&5
d5525 1
a5525 1
  { { echo "$as_me:5527: error: expected a pathname, not \"$withval\"" >&5
d5534 1
a5534 1
echo "$as_me:5536: result: $TERMINFO" >&5
d5544 1
a5544 1
echo "$as_me:5546: checking if big-core option selected" >&5
d5556 1
a5556 1
#line 5558 "configure"
d5570 1
a5570 1
if { (eval echo "$as_me:5572: \"$ac_link\"") >&5
d5573 1
a5573 1
  echo "$as_me:5575: \$? = $ac_status" >&5
d5575 1
a5575 1
  { (eval echo "$as_me:5577: \"$ac_try\"") >&5
d5578 1
a5578 1
  echo "$as_me:5580: \$? = $ac_status" >&5
d5590 1
a5590 1
echo "$as_me:5592: result: $with_big_core" >&5
d5598 1
a5598 1
echo "$as_me:5600: checking if big-strings option selected" >&5
d5608 1
a5608 1
echo "$as_me:5610: result: $with_big_strings" >&5
d5615 1
a5615 1
echo "$as_me:5617: checking if you want termcap-fallback support" >&5
d5625 1
a5625 1
echo "$as_me:5627: result: $with_termcap" >&5
d5631 1
a5631 1
			{ { echo "$as_me:5633: error: You have disabled the database w/o specifying fallbacks" >&5
d5643 1
a5643 1
	{ { echo "$as_me:5645: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
d5652 1
a5652 1
echo "$as_me:5654: checking for list of termcap files" >&5
d5692 1
a5692 1
  { { echo "$as_me:5694: error: expected a pathname, not \"$cf_src_path\"" >&5
d5705 1
a5705 1
echo "$as_me:5707: result: $TERMPATH" >&5
d5712 1
a5712 1
echo "$as_me:5714: checking if fast termcap-loader is needed" >&5
d5722 1
a5722 1
echo "$as_me:5724: result: $with_getcap" >&5
d5728 1
a5728 1
echo "$as_me:5730: checking if translated termcaps will be cached in ~/.terminfo" >&5
d5738 1
a5738 1
echo "$as_me:5740: result: $with_getcap_cache" >&5
d5747 1
a5747 1
echo "$as_me:5749: checking if ~/.terminfo is wanted" >&5
d5757 1
a5757 1
echo "$as_me:5759: result: $with_home_terminfo" >&5
d5763 1
a5763 1
echo "$as_me:5765: checking if you want to use restricted environment when running as root" >&5
d5773 1
a5773 1
echo "$as_me:5775: result: $with_root_environ" >&5
d5787 1
a5787 1
echo "$as_me:5789: checking for $ac_func" >&5
d5793 1
a5793 1
#line 5795 "configure"
d5824 1
a5824 1
if { (eval echo "$as_me:5826: \"$ac_link\"") >&5
d5827 1
a5827 1
  echo "$as_me:5829: \$? = $ac_status" >&5
d5830 1
a5830 1
  { (eval echo "$as_me:5832: \"$ac_try\"") >&5
d5833 1
a5833 1
  echo "$as_me:5835: \$? = $ac_status" >&5
d5843 1
a5843 1
echo "$as_me:5845: result: `eval echo '${'$as_ac_var'}'`" >&5
d5860 1
a5860 1
echo "$as_me:5862: checking for $ac_func" >&5
d5866 1
a5866 1
#line 5868 "configure"
d5897 1
a5897 1
if { (eval echo "$as_me:5899: \"$ac_link\"") >&5
d5900 1
a5900 1
  echo "$as_me:5902: \$? = $ac_status" >&5
d5903 1
a5903 1
  { (eval echo "$as_me:5905: \"$ac_try\"") >&5
d5906 1
a5906 1
  echo "$as_me:5908: \$? = $ac_status" >&5
d5916 1
a5916 1
echo "$as_me:5918: result: `eval echo '${'$as_ac_var'}'`" >&5
d5927 1
a5927 1
	echo "$as_me:5929: checking if link/symlink functions work" >&5
d5940 1
a5940 1
#line 5942 "configure"
d5970 1
a5970 1
if { (eval echo "$as_me:5972: \"$ac_link\"") >&5
d5973 1
a5973 1
  echo "$as_me:5975: \$? = $ac_status" >&5
d5975 1
a5975 1
  { (eval echo "$as_me:5977: \"$ac_try\"") >&5
d5978 1
a5978 1
  echo "$as_me:5980: \$? = $ac_status" >&5
d5996 1
a5996 1
echo "$as_me:5998: result: $cf_cv_link_funcs" >&5
d6014 1
a6014 1
    echo "$as_me:6016: checking if tic should use symbolic links" >&5
d6024 1
a6024 1
    echo "$as_me:6026: result: $with_symlinks" >&5
d6031 1
a6031 1
    echo "$as_me:6033: checking if tic should use hard links" >&5
d6038 1
a6038 1
    echo "$as_me:6040: result: $with_links" >&5
d6051 1
a6051 1
echo "$as_me:6053: checking if you want broken-linker support code" >&5
d6061 1
a6061 1
echo "$as_me:6063: result: $with_broken_linker" >&5
d6081 1
a6081 1
echo "${as_me-configure}:6083: testing cygwin linker is broken anyway ..." 1>&5
d6088 1
a6088 1
echo "$as_me:6090: checking if tputs should process BSD-style prefix padding" >&5
d6098 1
a6098 1
echo "$as_me:6100: result: $with_bsdpad" >&5
d6115 1
a6115 1
echo "$as_me:6117: checking if $CC -U and -D options work together" >&5
d6124 1
a6124 1
#line 6126 "configure"
d6143 1
a6143 1
if { (eval echo "$as_me:6145: \"$ac_compile\"") >&5
d6146 1
a6146 1
  echo "$as_me:6148: \$? = $ac_status" >&5
d6149 1
a6149 1
  { (eval echo "$as_me:6151: \"$ac_try\"") >&5
d6152 1
a6152 1
  echo "$as_me:6154: \$? = $ac_status" >&5
d6166 1
a6166 1
echo "$as_me:6168: result: $cf_cv_cc_u_d_options" >&5
d6192 1
a6192 1
echo "$as_me:6194: checking if we must define _GNU_SOURCE" >&5
d6199 1
a6199 1
#line 6201 "configure"
d6214 1
a6214 1
if { (eval echo "$as_me:6216: \"$ac_compile\"") >&5
d6217 1
a6217 1
  echo "$as_me:6219: \$? = $ac_status" >&5
d6220 1
a6220 1
  { (eval echo "$as_me:6222: \"$ac_try\"") >&5
d6223 1
a6223 1
  echo "$as_me:6225: \$? = $ac_status" >&5
d6232 1
a6232 1
#line 6234 "configure"
d6247 1
a6247 1
if { (eval echo "$as_me:6249: \"$ac_compile\"") >&5
d6250 1
a6250 1
  echo "$as_me:6252: \$? = $ac_status" >&5
d6253 1
a6253 1
  { (eval echo "$as_me:6255: \"$ac_try\"") >&5
d6256 1
a6256 1
  echo "$as_me:6258: \$? = $ac_status" >&5
d6271 1
a6271 1
echo "$as_me:6273: result: $cf_cv_gnu_source" >&5
d6298 1
a6298 1
	echo "$as_me:6300: checking if we should define _XOPEN_SOURCE" >&5
d6305 1
a6305 1
#line 6307 "configure"
d6320 1
a6320 1
if { (eval echo "$as_me:6322: \"$ac_compile\"") >&5
d6323 1
a6323 1
  echo "$as_me:6325: \$? = $ac_status" >&5
d6326 1
a6326 1
  { (eval echo "$as_me:6328: \"$ac_try\"") >&5
d6329 1
a6329 1
  echo "$as_me:6331: \$? = $ac_status" >&5
d6338 1
a6338 1
#line 6340 "configure"
d6353 1
a6353 1
if { (eval echo "$as_me:6355: \"$ac_compile\"") >&5
d6356 1
a6356 1
  echo "$as_me:6358: \$? = $ac_status" >&5
d6359 1
a6359 1
  { (eval echo "$as_me:6361: \"$ac_try\"") >&5
d6362 1
a6362 1
  echo "$as_me:6364: \$? = $ac_status" >&5
d6377 1
a6377 1
echo "$as_me:6379: result: $cf_cv_xopen_source" >&5
d6411 1
a6411 1
echo "$as_me:6413: checking if we should define _POSIX_C_SOURCE" >&5
d6417 1
a6417 1
echo "${as_me-configure}:6419: testing if the symbol is already defined go no further ..." 1>&5
d6420 1
a6420 1
#line 6422 "configure"
d6435 1
a6435 1
if { (eval echo "$as_me:6437: \"$ac_compile\"") >&5
d6438 1
a6438 1
  echo "$as_me:6440: \$? = $ac_status" >&5
d6441 1
a6441 1
  { (eval echo "$as_me:6443: \"$ac_try\"") >&5
d6444 1
a6444 1
  echo "$as_me:6446: \$? = $ac_status" >&5
d6465 1
a6465 1
#line 6467 "configure"
d6480 1
a6480 1
if { (eval echo "$as_me:6482: \"$ac_compile\"") >&5
d6483 1
a6483 1
  echo "$as_me:6485: \$? = $ac_status" >&5
d6486 1
a6486 1
  { (eval echo "$as_me:6488: \"$ac_try\"") >&5
d6489 1
a6489 1
  echo "$as_me:6491: \$? = $ac_status" >&5
d6500 1
a6500 1
echo "${as_me-configure}:6502: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
d6505 1
a6505 1
echo "${as_me-configure}:6507: testing if the second compile does not leave our definition intact error ..." 1>&5
d6508 1
a6508 1
#line 6510 "configure"
d6523 1
a6523 1
if { (eval echo "$as_me:6525: \"$ac_compile\"") >&5
d6526 1
a6526 1
  echo "$as_me:6528: \$? = $ac_status" >&5
d6529 1
a6529 1
  { (eval echo "$as_me:6531: \"$ac_try\"") >&5
d6532 1
a6532 1
  echo "$as_me:6534: \$? = $ac_status" >&5
d6548 1
a6548 1
echo "$as_me:6550: result: $cf_cv_posix_c_source" >&5
d6567 1
a6567 1
echo "$as_me:6569: checking if SIGWINCH is defined" >&5
d6574 1
a6574 1
#line 6576 "configure"
d6589 1
a6589 1
if { (eval echo "$as_me:6591: \"$ac_compile\"") >&5
d6592 1
a6592 1
  echo "$as_me:6594: \$? = $ac_status" >&5
d6595 1
a6595 1
  { (eval echo "$as_me:6597: \"$ac_try\"") >&5
d6598 1
a6598 1
  echo "$as_me:6600: \$? = $ac_status" >&5
d6605 1
a6605 1
#line 6607 "configure"
d6623 1
a6623 1
if { (eval echo "$as_me:6625: \"$ac_compile\"") >&5
d6626 1
a6626 1
  echo "$as_me:6628: \$? = $ac_status" >&5
d6629 1
a6629 1
  { (eval echo "$as_me:6631: \"$ac_try\"") >&5
d6632 1
a6632 1
  echo "$as_me:6634: \$? = $ac_status" >&5
d6646 1
a6646 1
echo "$as_me:6648: result: $cf_cv_define_sigwinch" >&5
d6650 1
a6650 1
echo "$as_me:6652: checking for actual SIGWINCH definition" >&5
d6661 1
a6661 1
#line 6663 "configure"
d6683 1
a6683 1
if { (eval echo "$as_me:6685: \"$ac_compile\"") >&5
d6686 1
a6686 1
  echo "$as_me:6688: \$? = $ac_status" >&5
d6689 1
a6689 1
  { (eval echo "$as_me:6691: \"$ac_try\"") >&5
d6692 1
a6692 1
  echo "$as_me:6694: \$? = $ac_status" >&5
d6706 1
a6706 1
echo "$as_me:6708: result: $cf_cv_fixup_sigwinch" >&5
d6716 1
a6716 1
  echo "$as_me:6718: checking for nl_langinfo and CODESET" >&5
d6722 1
a6722 1
#line 6724 "configure"
d6734 1
a6734 1
if { (eval echo "$as_me:6736: \"$ac_link\"") >&5
d6737 1
a6737 1
  echo "$as_me:6739: \$? = $ac_status" >&5
d6740 1
a6740 1
  { (eval echo "$as_me:6742: \"$ac_try\"") >&5
d6743 1
a6743 1
  echo "$as_me:6745: \$? = $ac_status" >&5
d6754 1
a6754 1
echo "$as_me:6756: result: $am_cv_langinfo_codeset" >&5
d6768 1
a6768 1
echo "$as_me:6770: checking if you want wide-character code" >&5
d6778 1
a6778 1
echo "$as_me:6780: result: $with_widec" >&5
d6786 1
a6786 1
echo "$as_me:6788: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
d6789 1
a6789 1
#line 6791 "configure"
d6805 1
a6805 1
if { (eval echo "$as_me:6807: \"$ac_compile\"") >&5
d6808 1
a6808 1
  echo "$as_me:6810: \$? = $ac_status" >&5
d6811 1
a6811 1
  { (eval echo "$as_me:6813: \"$ac_try\"") >&5
d6814 1
a6814 1
  echo "$as_me:6816: \$? = $ac_status" >&5
d6823 1
a6823 1
echo "$as_me:6825: result: $cf_result" >&5
d6829 1
a6829 1
	echo "$as_me:6831: checking checking for compatible value versus " >&5
d6832 1
a6832 1
#line 6834 "configure"
d6848 1
a6848 1
if { (eval echo "$as_me:6850: \"$ac_compile\"") >&5
d6851 1
a6851 1
  echo "$as_me:6853: \$? = $ac_status" >&5
d6854 1
a6854 1
  { (eval echo "$as_me:6856: \"$ac_try\"") >&5
d6857 1
a6857 1
  echo "$as_me:6859: \$? = $ac_status" >&5
d6866 1
a6866 1
	echo "$as_me:6868: result: $cf_result" >&5
d6880 1
a6880 1
echo "$as_me:6882: checking for $ac_func" >&5
d6886 1
a6886 1
#line 6888 "configure"
d6917 1
a6917 1
if { (eval echo "$as_me:6919: \"$ac_link\"") >&5
d6920 1
a6920 1
  echo "$as_me:6922: \$? = $ac_status" >&5
d6923 1
a6923 1
  { (eval echo "$as_me:6925: \"$ac_try\"") >&5
d6926 1
a6926 1
  echo "$as_me:6928: \$? = $ac_status" >&5
d6936 1
a6936 1
echo "$as_me:6938: result: `eval echo '${'$as_ac_var'}'`" >&5
d6948 1
a6948 1
echo "$as_me:6950: checking for putwc in libutf8" >&5
d6957 1
a6957 1
#line 6959 "configure"
d6970 1
a6970 1
if { (eval echo "$as_me:6972: \"$ac_link\"") >&5
d6973 1
a6973 1
  echo "$as_me:6975: \$? = $ac_status" >&5
d6976 1
a6976 1
  { (eval echo "$as_me:6978: \"$ac_try\"") >&5
d6979 1
a6979 1
  echo "$as_me:6981: \$? = $ac_status" >&5
d6991 1
a6991 1
echo "$as_me:6993: result: $cf_cv_libutf8" >&5
d7008 1
a7008 1
echo "$as_me:7010: checking if we must include wchar.h to declare mbstate_t" >&5
d7015 1
a7015 1
#line 7017 "configure"
d7033 1
a7033 1
if { (eval echo "$as_me:7035: \"$ac_compile\"") >&5
d7036 1
a7036 1
  echo "$as_me:7038: \$? = $ac_status" >&5
d7039 1
a7039 1
  { (eval echo "$as_me:7041: \"$ac_try\"") >&5
d7042 1
a7042 1
  echo "$as_me:7044: \$? = $ac_status" >&5
d7049 1
a7049 1
#line 7051 "configure"
d7068 1
a7068 1
if { (eval echo "$as_me:7070: \"$ac_compile\"") >&5
d7071 1
a7071 1
  echo "$as_me:7073: \$? = $ac_status" >&5
d7074 1
a7074 1
  { (eval echo "$as_me:7076: \"$ac_try\"") >&5
d7077 1
a7077 1
  echo "$as_me:7079: \$? = $ac_status" >&5
d7089 1
a7089 1
echo "$as_me:7091: result: $cf_cv_mbstate_t" >&5
d7106 1
a7106 1
echo "$as_me:7108: checking if we must include wchar.h to declare wchar_t" >&5
d7113 1
a7113 1
#line 7115 "configure"
d7131 1
a7131 1
if { (eval echo "$as_me:7133: \"$ac_compile\"") >&5
d7134 1
a7134 1
  echo "$as_me:7136: \$? = $ac_status" >&5
d7137 1
a7137 1
  { (eval echo "$as_me:7139: \"$ac_try\"") >&5
d7140 1
a7140 1
  echo "$as_me:7142: \$? = $ac_status" >&5
d7147 1
a7147 1
#line 7149 "configure"
d7166 1
a7166 1
if { (eval echo "$as_me:7168: \"$ac_compile\"") >&5
d7169 1
a7169 1
  echo "$as_me:7171: \$? = $ac_status" >&5
d7172 1
a7172 1
  { (eval echo "$as_me:7174: \"$ac_try\"") >&5
d7175 1
a7175 1
  echo "$as_me:7177: \$? = $ac_status" >&5
d7187 1
a7187 1
echo "$as_me:7189: result: $cf_cv_wchar_t" >&5
d7209 1
a7209 1
echo "$as_me:7211: checking if we must include wchar.h to declare wint_t" >&5
d7216 1
a7216 1
#line 7218 "configure"
d7234 1
a7234 1
if { (eval echo "$as_me:7236: \"$ac_compile\"") >&5
d7237 1
a7237 1
  echo "$as_me:7239: \$? = $ac_status" >&5
d7240 1
a7240 1
  { (eval echo "$as_me:7242: \"$ac_try\"") >&5
d7243 1
a7243 1
  echo "$as_me:7245: \$? = $ac_status" >&5
d7250 1
a7250 1
#line 7252 "configure"
d7269 1
a7269 1
if { (eval echo "$as_me:7271: \"$ac_compile\"") >&5
d7272 1
a7272 1
  echo "$as_me:7274: \$? = $ac_status" >&5
d7275 1
a7275 1
  { (eval echo "$as_me:7277: \"$ac_try\"") >&5
d7278 1
a7278 1
  echo "$as_me:7280: \$? = $ac_status" >&5
d7290 1
a7290 1
echo "$as_me:7292: result: $cf_cv_wint_t" >&5
d7329 1
a7329 1
echo "$as_me:7331: checking whether to enable _LP64 definition in curses.h" >&5
d7339 1
a7339 1
echo "$as_me:7341: result: $with_lp64" >&5
d7355 1
a7355 1
  echo "$as_me:7357: checking for special C compiler options needed for large files" >&5
d7367 1
a7367 1
#line 7369 "configure"
d7387 1
a7387 1
if { (eval echo "$as_me:7389: \"$ac_compile\"") >&5
d7390 1
a7390 1
  echo "$as_me:7392: \$? = $ac_status" >&5
d7393 1
a7393 1
  { (eval echo "$as_me:7395: \"$ac_try\"") >&5
d7396 1
a7396 1
  echo "$as_me:7398: \$? = $ac_status" >&5
d7406 1
a7406 1
if { (eval echo "$as_me:7408: \"$ac_compile\"") >&5
d7409 1
a7409 1
  echo "$as_me:7411: \$? = $ac_status" >&5
d7412 1
a7412 1
  { (eval echo "$as_me:7414: \"$ac_try\"") >&5
d7415 1
a7415 1
  echo "$as_me:7417: \$? = $ac_status" >&5
d7429 1
a7429 1
echo "$as_me:7431: result: $ac_cv_sys_largefile_CC" >&5
d7435 1
a7435 1
  echo "$as_me:7437: checking for _FILE_OFFSET_BITS value needed for large files" >&5
d7443 1
a7443 1
#line 7445 "configure"
d7463 1
a7463 1
if { (eval echo "$as_me:7465: \"$ac_compile\"") >&5
d7466 1
a7466 1
  echo "$as_me:7468: \$? = $ac_status" >&5
d7469 1
a7469 1
  { (eval echo "$as_me:7471: \"$ac_try\"") >&5
d7472 1
a7472 1
  echo "$as_me:7474: \$? = $ac_status" >&5
d7481 1
a7481 1
#line 7483 "configure"
d7502 1
a7502 1
if { (eval echo "$as_me:7504: \"$ac_compile\"") >&5
d7505 1
a7505 1
  echo "$as_me:7507: \$? = $ac_status" >&5
d7508 1
a7508 1
  { (eval echo "$as_me:7510: \"$ac_try\"") >&5
d7511 1
a7511 1
  echo "$as_me:7513: \$? = $ac_status" >&5
d7522 1
a7522 1
echo "$as_me:7524: result: $ac_cv_sys_file_offset_bits" >&5
d7532 1
a7532 1
  echo "$as_me:7534: checking for _LARGE_FILES value needed for large files" >&5
d7540 1
a7540 1
#line 7542 "configure"
d7560 1
a7560 1
if { (eval echo "$as_me:7562: \"$ac_compile\"") >&5
d7563 1
a7563 1
  echo "$as_me:7565: \$? = $ac_status" >&5
d7566 1
a7566 1
  { (eval echo "$as_me:7568: \"$ac_try\"") >&5
d7569 1
a7569 1
  echo "$as_me:7571: \$? = $ac_status" >&5
d7578 1
a7578 1
#line 7580 "configure"
d7599 1
a7599 1
if { (eval echo "$as_me:7601: \"$ac_compile\"") >&5
d7602 1
a7602 1
  echo "$as_me:7604: \$? = $ac_status" >&5
d7605 1
a7605 1
  { (eval echo "$as_me:7607: \"$ac_try\"") >&5
d7608 1
a7608 1
  echo "$as_me:7610: \$? = $ac_status" >&5
d7619 1
a7619 1
echo "$as_me:7621: result: $ac_cv_sys_large_files" >&5
d7632 1
a7632 1
	echo "$as_me:7634: checking for _LARGEFILE_SOURCE value needed for large files" >&5
d7640 1
a7640 1
#line 7642 "configure"
d7652 1
a7652 1
if { (eval echo "$as_me:7654: \"$ac_compile\"") >&5
d7655 1
a7655 1
  echo "$as_me:7657: \$? = $ac_status" >&5
d7658 1
a7658 1
  { (eval echo "$as_me:7660: \"$ac_try\"") >&5
d7661 1
a7661 1
  echo "$as_me:7663: \$? = $ac_status" >&5
d7670 1
a7670 1
#line 7672 "configure"
d7683 1
a7683 1
if { (eval echo "$as_me:7685: \"$ac_compile\"") >&5
d7686 1
a7686 1
  echo "$as_me:7688: \$? = $ac_status" >&5
d7689 1
a7689 1
  { (eval echo "$as_me:7691: \"$ac_try\"") >&5
d7692 1
a7692 1
  echo "$as_me:7694: \$? = $ac_status" >&5
d7703 1
a7703 1
echo "$as_me:7705: result: $ac_cv_sys_largefile_source" >&5
d7717 1
a7717 1
echo "$as_me:7719: checking for fseeko" >&5
d7723 1
a7723 1
#line 7725 "configure"
d7735 1
a7735 1
if { (eval echo "$as_me:7737: \"$ac_link\"") >&5
d7738 1
a7738 1
  echo "$as_me:7740: \$? = $ac_status" >&5
d7741 1
a7741 1
  { (eval echo "$as_me:7743: \"$ac_try\"") >&5
d7744 1
a7744 1
  echo "$as_me:7746: \$? = $ac_status" >&5
d7754 1
a7754 1
echo "$as_me:7756: result: $ac_cv_func_fseeko" >&5
d7775 1
a7775 1
	echo "$as_me:7777: checking whether to use struct dirent64" >&5
d7782 1
a7782 1
#line 7784 "configure"
d7803 1
a7803 1
if { (eval echo "$as_me:7805: \"$ac_compile\"") >&5
d7806 1
a7806 1
  echo "$as_me:7808: \$? = $ac_status" >&5
d7809 1
a7809 1
  { (eval echo "$as_me:7811: \"$ac_try\"") >&5
d7812 1
a7812 1
  echo "$as_me:7814: \$? = $ac_status" >&5
d7823 1
a7823 1
echo "$as_me:7825: result: $cf_cv_struct_dirent64" >&5
d7832 1
a7832 1
echo "$as_me:7834: checking if you want tparm not to use X/Open fixed-parameter list" >&5
d7842 1
a7842 1
echo "$as_me:7844: result: $with_tparm_varargs" >&5
d7848 1
a7848 1
echo "$as_me:7850: checking for type of bool" >&5
d7858 1
a7858 1
echo "$as_me:7860: result: $NCURSES_BOOL" >&5
d7861 1
a7861 1
echo "$as_me:7863: checking for alternate terminal capabilities file" >&5
d7872 1
a7872 1
echo "$as_me:7874: result: $TERMINFO_CAPS" >&5
d7876 1
a7876 1
echo "$as_me:7878: checking for type of chtype" >&5
d7886 1
a7886 1
echo "$as_me:7888: result: $NCURSES_CHTYPE" >&5
d7890 1
a7890 1
echo "$as_me:7892: checking for type of ospeed" >&5
d7900 1
a7900 1
echo "$as_me:7902: result: $NCURSES_OSPEED" >&5
d7904 1
a7904 1
echo "$as_me:7906: checking for type of mmask_t" >&5
d7914 1
a7914 1
echo "$as_me:7916: result: $NCURSES_MMASK_T" >&5
d7918 1
a7918 1
echo "$as_me:7920: checking if RCS identifiers should be compiled-in" >&5
d7928 1
a7928 1
echo "$as_me:7930: result: $with_rcs_ids" >&5
d7936 1
a7936 1
echo "$as_me:7938: checking format of man-pages" >&5
d8025 1
a8025 1
echo "$as_me:8027: result: $MANPAGE_FORMAT" >&5
d8028 1
a8028 1
  { echo "$as_me:8030: WARNING: Unexpected manpage-format $cf_unknown" >&5
d8032 1
a8032 1
echo "$as_me:8034: checking for manpage renaming" >&5
d8060 1
a8060 1
    { { echo "$as_me:8062: error: not a filename: $MANPAGE_RENAMES" >&5
d8074 1
a8074 1
echo "$as_me:8076: result: $MANPAGE_RENAMES" >&5
d8077 1
a8077 1
echo "$as_me:8079: checking if manpage aliases will be installed" >&5
d8088 1
a8088 1
echo "$as_me:8090: result: $MANPAGE_ALIASES" >&5
d8099 1
a8099 1
echo "$as_me:8101: checking if manpage symlinks should be used" >&5
d8112 1
a8112 1
	{ echo "$as_me:8114: WARNING: cannot make symlinks" >&5
d8118 1
a8118 1
echo "$as_me:8120: result: $MANPAGE_SYMLINKS" >&5
d8122 1
a8122 1
echo "$as_me:8124: checking for manpage tbl" >&5
d8133 1
a8133 1
echo "$as_me:8135: result: $MANPAGE_TBL" >&5
d8444 1
a8444 1
echo "$as_me:8446: checking if you want to build with function extensions" >&5
d8454 1
a8454 1
echo "$as_me:8456: result: $with_ext_funcs" >&5
d8491 1
a8491 1
echo "$as_me:8493: checking for extended use of const keyword" >&5
d8501 1
a8501 1
echo "$as_me:8503: result: $with_ext_const" >&5
d8508 1
a8508 1
echo "$as_me:8510: checking if you want \$NCURSES_NO_PADDING code" >&5
d8518 1
a8518 1
echo "$as_me:8520: result: $with_no_padding" >&5
d8524 1
a8524 1
echo "$as_me:8526: checking for ANSI C header files" >&5
d8530 1
a8530 1
#line 8532 "configure"
d8538 1
a8538 1
if { (eval echo "$as_me:8540: \"$ac_cpp conftest.$ac_ext\"") >&5
d8544 1
a8544 1
  echo "$as_me:8546: \$? = $ac_status" >&5
d8566 1
a8566 1
#line 8568 "configure"
d8584 1
a8584 1
#line 8586 "configure"
d8605 1
a8605 1
#line 8607 "configure"
d8631 1
a8631 1
if { (eval echo "$as_me:8633: \"$ac_link\"") >&5
d8634 1
a8634 1
  echo "$as_me:8636: \$? = $ac_status" >&5
d8636 1
a8636 1
  { (eval echo "$as_me:8638: \"$ac_try\"") >&5
d8639 1
a8639 1
  echo "$as_me:8641: \$? = $ac_status" >&5
d8652 1
a8652 1
echo "$as_me:8654: result: $ac_cv_header_stdc" >&5
d8668 1
a8668 1
echo "$as_me:8670: checking for $ac_header" >&5
d8674 1
a8674 1
#line 8676 "configure"
d8680 1
a8680 1
if { (eval echo "$as_me:8682: \"$ac_compile\"") >&5
d8683 1
a8683 1
  echo "$as_me:8685: \$? = $ac_status" >&5
d8686 1
a8686 1
  { (eval echo "$as_me:8688: \"$ac_try\"") >&5
d8689 1
a8689 1
  echo "$as_me:8691: \$? = $ac_status" >&5
d8699 1
a8699 1
echo "$as_me:8701: result: `eval echo '${'$as_ac_Header'}'`" >&5
d8709 1
a8709 1
echo "$as_me:8711: checking for signed char" >&5
d8715 1
a8715 1
#line 8717 "configure"
d8730 1
a8730 1
if { (eval echo "$as_me:8732: \"$ac_compile\"") >&5
d8733 1
a8733 1
  echo "$as_me:8735: \$? = $ac_status" >&5
d8736 1
a8736 1
  { (eval echo "$as_me:8738: \"$ac_try\"") >&5
d8739 1
a8739 1
  echo "$as_me:8741: \$? = $ac_status" >&5
d8749 1
a8749 1
echo "$as_me:8751: result: $ac_cv_type_signed_char" >&5
d8752 1
a8752 1
echo "$as_me:8754: checking size of signed char" >&5
d8761 1
a8761 1
#line 8763 "configure"
d8773 1
a8773 1
if { (eval echo "$as_me:8775: \"$ac_compile\"") >&5
d8776 1
a8776 1
  echo "$as_me:8778: \$? = $ac_status" >&5
d8779 1
a8779 1
  { (eval echo "$as_me:8781: \"$ac_try\"") >&5
d8782 1
a8782 1
  echo "$as_me:8784: \$? = $ac_status" >&5
d8787 1
a8787 1
#line 8789 "configure"
d8799 1
a8799 1
if { (eval echo "$as_me:8801: \"$ac_compile\"") >&5
d8802 1
a8802 1
  echo "$as_me:8804: \$? = $ac_status" >&5
d8805 1
a8805 1
  { (eval echo "$as_me:8807: \"$ac_try\"") >&5
d8808 1
a8808 1
  echo "$as_me:8810: \$? = $ac_status" >&5
d8824 1
a8824 1
#line 8826 "configure"
d8836 1
a8836 1
if { (eval echo "$as_me:8838: \"$ac_compile\"") >&5
d8839 1
a8839 1
  echo "$as_me:8841: \$? = $ac_status" >&5
d8842 1
a8842 1
  { (eval echo "$as_me:8844: \"$ac_try\"") >&5
d8845 1
a8845 1
  echo "$as_me:8847: \$? = $ac_status" >&5
d8861 1
a8861 1
#line 8863 "configure"
d8873 1
a8873 1
if { (eval echo "$as_me:8875: \"$ac_compile\"") >&5
d8876 1
a8876 1
  echo "$as_me:8878: \$? = $ac_status" >&5
d8879 1
a8879 1
  { (eval echo "$as_me:8881: \"$ac_try\"") >&5
d8882 1
a8882 1
  echo "$as_me:8884: \$? = $ac_status" >&5
d8895 1
a8895 1
  { { echo "$as_me:8897: error: cannot run test program while cross compiling" >&5
d8900 1
a8900 1
#line 8902 "configure"
d8916 1
a8916 1
if { (eval echo "$as_me:8918: \"$ac_link\"") >&5
d8919 1
a8919 1
  echo "$as_me:8921: \$? = $ac_status" >&5
d8921 1
a8921 1
  { (eval echo "$as_me:8923: \"$ac_try\"") >&5
d8924 1
a8924 1
  echo "$as_me:8926: \$? = $ac_status" >&5
d8940 1
a8940 1
echo "$as_me:8942: result: $ac_cv_sizeof_signed_char" >&5
d8951 1
a8951 1
echo "$as_me:8953: checking if you want to use signed Boolean array in term.h" >&5
d8961 1
a8961 1
echo "$as_me:8963: result: $with_signed_char" >&5
d8966 1
a8966 1
echo "$as_me:8968: checking if you want SIGWINCH handler" >&5
d8976 1
a8976 1
echo "$as_me:8978: result: $with_sigwinch" >&5
d8983 1
a8983 1
echo "$as_me:8985: checking if you want user-definable terminal capabilities like termcap" >&5
d8993 1
a8993 1
echo "$as_me:8995: result: $with_tcap_names" >&5
d9001 1
a9001 1
echo "$as_me:9003: checking if you want all development code" >&5
d9011 1
a9011 1
echo "$as_me:9013: result: $with_develop" >&5
d9015 1
a9015 1
echo "$as_me:9017: checking if you want hard-tabs code" >&5
d9025 1
a9025 1
echo "$as_me:9027: result: $enable_hard_tabs" >&5
d9032 1
a9032 1
echo "$as_me:9034: checking if you want limited support for xmc" >&5
d9042 1
a9042 1
echo "$as_me:9044: result: $enable_xmc_glitch" >&5
d9051 1
a9051 1
echo "$as_me:9053: checking if you do not want to assume colors are white-on-black" >&5
d9061 1
a9061 1
echo "$as_me:9063: result: $with_assumed_color" >&5
d9068 1
a9068 1
echo "$as_me:9070: checking if you want hashmap scrolling-optimization code" >&5
d9078 1
a9078 1
echo "$as_me:9080: result: $with_hashmap" >&5
d9085 1
a9085 1
echo "$as_me:9087: checking if you want colorfgbg code" >&5
d9095 1
a9095 1
echo "$as_me:9097: result: $with_colorfgbg" >&5
d9102 1
a9102 1
echo "$as_me:9104: checking if you want to use experimental extended colors" >&5
d9112 1
a9112 1
echo "$as_me:9114: result: $with_ext_colors" >&5
d9117 1
a9117 1
		{ { echo "$as_me:9119: error: This option applies only to wide-character library" >&5
d9128 1
a9128 1
		{ echo "$as_me:9130: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
d9143 1
a9143 1
echo "$as_me:9145: checking if you want to use experimental extended mouse encoding" >&5
d9153 1
a9153 1
echo "$as_me:9155: result: $with_ext_mouse" >&5
d9164 1
a9164 1
		{ echo "$as_me:9166: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
a9171 138
# This is still experimental (20080329), but should ultimately be moved to
# the script-block --with-normal, etc.

echo "$as_me:9177: checking if you want to link with the pthread library" >&5
echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6

# Check whether --with-pthread or --without-pthread was given.
if test "${with_pthread+set}" = set; then
  withval="$with_pthread"
  with_pthread=$withval
else
  with_pthread=no
fi;
echo "$as_me:9187: result: $with_pthread" >&5
echo "${ECHO_T}$with_pthread" >&6

if test "$with_pthread" != no ; then
    echo "$as_me:9191: checking for pthread.h" >&5
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
if test "${ac_cv_header_pthread_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line 9197 "configure"
#include "confdefs.h"
#include <pthread.h>
_ACEOF
if { (eval echo "$as_me:9201: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  egrep -v '^ *\+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:9207: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_cv_header_pthread_h=yes
else
  echo "$as_me: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_header_pthread_h=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:9226: result: $ac_cv_header_pthread_h" >&5
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
if test $ac_cv_header_pthread_h = yes; then

        cat >>confdefs.h <<\EOF
#define HAVE_PTHREADS_H 1
EOF

        echo "$as_me:9234: checking for pthread_create in -lpthread" >&5
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 9242 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char pthread_create ();
int
main ()
{
pthread_create ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:9261: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:9264: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:9267: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:9270: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_pthread_pthread_create=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_pthread_pthread_create=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:9281: result: $ac_cv_lib_pthread_pthread_create" >&5
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
if test $ac_cv_lib_pthread_pthread_create = yes; then

            LIBS="-lpthread $LIBS"
            cat >>confdefs.h <<\EOF
#define HAVE_LIBPTHREADS 1
EOF

            with_pthread=yes

else

            { { echo "$as_me:9294: error: Cannot link with pthread library" >&5
echo "$as_me: error: Cannot link with pthread library" >&2;}
   { (exit 1); exit 1; }; }

fi

fi

fi

if test "$with_pthread" = "yes" ; then
    cat >>confdefs.h <<\EOF
#define USE_PTHREADS 1
EOF

    enable_reentrant=yes
fi

d9173 2
a9174 4
# opaque outside of that, so there is no --enable-opaque option.  We can use
# this option without --with-pthreads, but this will be always set for
# pthreads.
echo "$as_me:9316: checking if you want experimental reentrant code" >&5
d9184 1
a9184 1
echo "$as_me:9326: result: $with_reentrant" >&5
d9201 1
a9201 1
		{ echo "$as_me:9343: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
d9214 1
a9214 1
echo "$as_me:9356: checking if you want experimental safe-sprintf code" >&5
d9224 1
a9224 1
echo "$as_me:9366: result: $with_safe_sprintf" >&5
d9233 1
a9233 1
echo "$as_me:9375: checking if you want to experiment without scrolling-hints code" >&5
d9243 1
a9243 1
echo "$as_me:9385: result: $with_scroll_hints" >&5
d9251 1
a9251 1
echo "$as_me:9393: checking if you want experimental wgetch-events code" >&5
d9261 1
a9261 1
echo "$as_me:9403: result: $with_wgetch_events" >&5
d9270 1
a9270 1
echo "$as_me:9412: checking if you want to display full commands during build" >&5
d9287 1
a9287 1
echo "$as_me:9429: result: $with_echo" >&5
d9291 1
a9291 1
echo "$as_me:9433: checking if you want to see compiler warnings" >&5
d9299 1
a9299 1
echo "$as_me:9441: result: $with_warnings" >&5
d9310 1
a9310 1
		echo "$as_me:9452: checking if this is really Intel C compiler" >&5
d9315 1
a9315 1
#line 9457 "configure"
d9332 1
a9332 1
if { (eval echo "$as_me:9474: \"$ac_compile\"") >&5
d9335 1
a9335 1
  echo "$as_me:9477: \$? = $ac_status" >&5
d9338 1
a9338 1
  { (eval echo "$as_me:9480: \"$ac_try\"") >&5
d9341 1
a9341 1
  echo "$as_me:9483: \$? = $ac_status" >&5
d9352 1
a9352 1
		echo "$as_me:9494: result: $INTEL_COMPILER" >&5
d9359 1
a9359 1
#line 9501 "${as_me-configure}"
d9377 1
a9377 1
	{ echo "$as_me:9519: checking for $CC warning options..." >&5
d9394 1
a9394 1
		if { (eval echo "$as_me:9536: \"$ac_compile\"") >&5
d9397 1
a9397 1
  echo "$as_me:9539: \$? = $ac_status" >&5
d9399 1
a9399 1
			test -n "$verbose" && echo "$as_me:9541: result: ... -$cf_opt" >&5
d9408 1
a9408 1
	{ echo "$as_me:9550: checking for $CC warning options..." >&5
d9428 1
a9428 1
		if { (eval echo "$as_me:9570: \"$ac_compile\"") >&5
d9431 1
a9431 1
  echo "$as_me:9573: \$? = $ac_status" >&5
d9433 1
a9433 1
			test -n "$verbose" && echo "$as_me:9575: result: ... -$cf_opt" >&5
d9444 1
a9444 1
echo "${as_me-configure}:9586: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
d9464 1
a9464 1
		echo "$as_me:9606: checking if this is really Intel C++ compiler" >&5
d9469 1
a9469 1
#line 9611 "configure"
d9486 1
a9486 1
if { (eval echo "$as_me:9628: \"$ac_compile\"") >&5
d9489 1
a9489 1
  echo "$as_me:9631: \$? = $ac_status" >&5
d9492 1
a9492 1
  { (eval echo "$as_me:9634: \"$ac_try\"") >&5
d9495 1
a9495 1
  echo "$as_me:9637: \$? = $ac_status" >&5
d9506 1
a9506 1
		echo "$as_me:9648: result: $INTEL_CPLUSPLUS" >&5
d9520 1
a9520 1
#line 9662 "configure"
d9538 1
a9538 1
	{ echo "$as_me:9680: checking for $CC warning options..." >&5
d9555 1
a9555 1
		if { (eval echo "$as_me:9697: \"$ac_compile\"") >&5
d9558 1
a9558 1
  echo "$as_me:9700: \$? = $ac_status" >&5
d9560 1
a9560 1
			test -n "$verbose" && echo "$as_me:9702: result: ... -$cf_opt" >&5
d9569 1
a9569 1
	{ echo "$as_me:9711: checking for $CXX warning options..." >&5
d9598 1
a9598 1
		if { (eval echo "$as_me:9740: \"$ac_compile\"") >&5
d9601 1
a9601 1
  echo "$as_me:9743: \$? = $ac_status" >&5
d9603 1
a9603 1
			test -n "$verbose" && echo "$as_me:9745: result: ... -$cf_opt" >&5
d9607 1
a9607 1
			test -n "$verbose" && echo "$as_me:9749: result: ... no -$cf_opt" >&5
d9643 1
a9643 1
	{ echo "$as_me:9785: checking for $CC __attribute__ directives..." >&5
d9646 1
a9646 1
#line 9788 "${as_me-configure}"
d9684 1
a9684 1
		if { (eval echo "$as_me:9826: \"$ac_compile\"") >&5
d9687 1
a9687 1
  echo "$as_me:9829: \$? = $ac_status" >&5
d9689 1
a9689 1
			test -n "$verbose" && echo "$as_me:9831: result: ... $cf_attribute" >&5
d9701 1
a9701 1
echo "$as_me:9843: checking if you want to enable runtime assertions" >&5
d9711 1
a9711 1
echo "$as_me:9853: result: $with_assertions" >&5
d9729 1
a9729 1
echo "$as_me:9871: checking if you want to use dmalloc for testing" >&5
d9745 1
a9745 1
echo "$as_me:9887: result: ${with_dmalloc:-no}" >&5
d9829 1
a9829 1
	echo "$as_me:9971: checking for dmalloc.h" >&5
d9835 1
a9835 1
#line 9977 "configure"
d9839 1
a9839 1
if { (eval echo "$as_me:9981: \"$ac_cpp conftest.$ac_ext\"") >&5
d9845 1
a9845 1
  echo "$as_me:9987: \$? = $ac_status" >&5
d9864 1
a9864 1
echo "$as_me:10006: result: $ac_cv_header_dmalloc_h" >&5
d9868 1
a9868 1
echo "$as_me:10010: checking for dmalloc_debug in -ldmalloc" >&5
d9876 1
a9876 1
#line 10018 "configure"
d9895 1
a9895 1
if { (eval echo "$as_me:10037: \"$ac_link\"") >&5
d9898 1
a9898 1
  echo "$as_me:10040: \$? = $ac_status" >&5
d9901 1
a9901 1
  { (eval echo "$as_me:10043: \"$ac_try\"") >&5
d9904 1
a9904 1
  echo "$as_me:10046: \$? = $ac_status" >&5
d9915 1
a9915 1
echo "$as_me:10057: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
d9930 1
a9930 1
echo "$as_me:10072: checking if you want to use dbmalloc for testing" >&5
d9946 1
a9946 1
echo "$as_me:10088: result: ${with_dbmalloc:-no}" >&5
d10030 1
a10030 1
	echo "$as_me:10172: checking for dbmalloc.h" >&5
d10036 1
a10036 1
#line 10178 "configure"
d10040 1
a10040 1
if { (eval echo "$as_me:10182: \"$ac_cpp conftest.$ac_ext\"") >&5
d10046 1
a10046 1
  echo "$as_me:10188: \$? = $ac_status" >&5
d10065 1
a10065 1
echo "$as_me:10207: result: $ac_cv_header_dbmalloc_h" >&5
d10069 1
a10069 1
echo "$as_me:10211: checking for debug_malloc in -ldbmalloc" >&5
d10077 1
a10077 1
#line 10219 "configure"
d10096 1
a10096 1
if { (eval echo "$as_me:10238: \"$ac_link\"") >&5
d10099 1
a10099 1
  echo "$as_me:10241: \$? = $ac_status" >&5
d10102 1
a10102 1
  { (eval echo "$as_me:10244: \"$ac_try\"") >&5
d10105 1
a10105 1
  echo "$as_me:10247: \$? = $ac_status" >&5
d10116 1
a10116 1
echo "$as_me:10258: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
d10131 1
a10131 1
echo "$as_me:10273: checking if you want to use valgrind for testing" >&5
d10147 1
a10147 1
echo "$as_me:10289: result: ${with_valgrind:-no}" >&5
d10230 1
a10230 1
echo "$as_me:10372: checking if you want to perform memory-leak testing" >&5
d10240 1
a10240 1
echo "$as_me:10382: result: $with_no_leaks" >&5
d10285 1
a10285 1
echo "$as_me:10427: checking whether to add trace feature to all models" >&5
d10295 1
a10295 1
echo "$as_me:10437: result: $cf_with_trace" >&5
d10376 1
a10376 1
echo "$as_me:10518: checking for gettimeofday" >&5
d10382 1
a10382 1
#line 10524 "configure"
d10413 1
a10413 1
if { (eval echo "$as_me:10555: \"$ac_link\"") >&5
d10416 1
a10416 1
  echo "$as_me:10558: \$? = $ac_status" >&5
d10419 1
a10419 1
  { (eval echo "$as_me:10561: \"$ac_try\"") >&5
d10422 1
a10422 1
  echo "$as_me:10564: \$? = $ac_status" >&5
d10432 1
a10432 1
echo "$as_me:10574: result: $ac_cv_func_gettimeofday" >&5
d10441 1
a10441 1
echo "$as_me:10583: checking for gettimeofday in -lbsd" >&5
d10449 1
a10449 1
#line 10591 "configure"
d10468 1
a10468 1
if { (eval echo "$as_me:10610: \"$ac_link\"") >&5
d10471 1
a10471 1
  echo "$as_me:10613: \$? = $ac_status" >&5
d10474 1
a10474 1
  { (eval echo "$as_me:10616: \"$ac_try\"") >&5
d10477 1
a10477 1
  echo "$as_me:10619: \$? = $ac_status" >&5
d10488 1
a10488 1
echo "$as_me:10630: result: $ac_cv_lib_bsd_gettimeofday" >&5
d10500 1
a10500 1
echo "$as_me:10642: checking if -lm needed for math functions" >&5
d10507 1
a10507 1
#line 10649 "configure"
d10522 1
a10522 1
if { (eval echo "$as_me:10664: \"$ac_link\"") >&5
d10525 1
a10525 1
  echo "$as_me:10667: \$? = $ac_status" >&5
d10528 1
a10528 1
  { (eval echo "$as_me:10670: \"$ac_try\"") >&5
d10531 1
a10531 1
  echo "$as_me:10673: \$? = $ac_status" >&5
d10541 1
a10541 1
echo "$as_me:10683: result: $cf_cv_need_libm" >&5
d10549 1
a10549 1
echo "$as_me:10691: checking for ANSI C header files" >&5
d10555 1
a10555 1
#line 10697 "configure"
d10563 1
a10563 1
if { (eval echo "$as_me:10705: \"$ac_cpp conftest.$ac_ext\"") >&5
d10569 1
a10569 1
  echo "$as_me:10711: \$? = $ac_status" >&5
d10591 1
a10591 1
#line 10733 "configure"
d10609 1
a10609 1
#line 10751 "configure"
d10630 1
a10630 1
#line 10772 "configure"
d10656 1
a10656 1
if { (eval echo "$as_me:10798: \"$ac_link\"") >&5
d10659 1
a10659 1
  echo "$as_me:10801: \$? = $ac_status" >&5
d10661 1
a10661 1
  { (eval echo "$as_me:10803: \"$ac_try\"") >&5
d10664 1
a10664 1
  echo "$as_me:10806: \$? = $ac_status" >&5
d10677 1
a10677 1
echo "$as_me:10819: result: $ac_cv_header_stdc" >&5
d10690 1
a10690 1
echo "$as_me:10832: checking for $ac_hdr that defines DIR" >&5
d10696 1
a10696 1
#line 10838 "configure"
d10711 1
a10711 1
if { (eval echo "$as_me:10853: \"$ac_compile\"") >&5
d10714 1
a10714 1
  echo "$as_me:10856: \$? = $ac_status" >&5
d10717 1
a10717 1
  { (eval echo "$as_me:10859: \"$ac_try\"") >&5
d10720 1
a10720 1
  echo "$as_me:10862: \$? = $ac_status" >&5
d10730 1
a10730 1
echo "$as_me:10872: result: `eval echo '${'$as_ac_Header'}'`" >&5
d10743 1
a10743 1
  echo "$as_me:10885: checking for opendir in -ldir" >&5
d10751 1
a10751 1
#line 10893 "configure"
d10770 1
a10770 1
if { (eval echo "$as_me:10912: \"$ac_link\"") >&5
d10773 1
a10773 1
  echo "$as_me:10915: \$? = $ac_status" >&5
d10776 1
a10776 1
  { (eval echo "$as_me:10918: \"$ac_try\"") >&5
d10779 1
a10779 1
  echo "$as_me:10921: \$? = $ac_status" >&5
d10790 1
a10790 1
echo "$as_me:10932: result: $ac_cv_lib_dir_opendir" >&5
d10797 1
a10797 1
  echo "$as_me:10939: checking for opendir in -lx" >&5
d10805 1
a10805 1
#line 10947 "configure"
d10824 1
a10824 1
if { (eval echo "$as_me:10966: \"$ac_link\"") >&5
d10827 1
a10827 1
  echo "$as_me:10969: \$? = $ac_status" >&5
d10830 1
a10830 1
  { (eval echo "$as_me:10972: \"$ac_try\"") >&5
d10833 1
a10833 1
  echo "$as_me:10975: \$? = $ac_status" >&5
d10844 1
a10844 1
echo "$as_me:10986: result: $ac_cv_lib_x_opendir" >&5
d10852 1
a10852 1
echo "$as_me:10994: checking whether time.h and sys/time.h may both be included" >&5
d10858 1
a10858 1
#line 11000 "configure"
d10874 1
a10874 1
if { (eval echo "$as_me:11016: \"$ac_compile\"") >&5
d10877 1
a10877 1
  echo "$as_me:11019: \$? = $ac_status" >&5
d10880 1
a10880 1
  { (eval echo "$as_me:11022: \"$ac_try\"") >&5
d10883 1
a10883 1
  echo "$as_me:11025: \$? = $ac_status" >&5
d10893 1
a10893 1
echo "$as_me:11035: result: $ac_cv_header_time" >&5
d10903 1
a10903 1
echo "$as_me:11045: checking for regular-expression headers" >&5
d10910 1
a10910 1
#line 11052 "configure"
d10928 1
a10928 1
if { (eval echo "$as_me:11070: \"$ac_link\"") >&5
d10931 1
a10931 1
  echo "$as_me:11073: \$? = $ac_status" >&5
d10934 1
a10934 1
  { (eval echo "$as_me:11076: \"$ac_try\"") >&5
d10937 1
a10937 1
  echo "$as_me:11079: \$? = $ac_status" >&5
d10945 1
a10945 1
#line 11087 "configure"
d10960 1
a10960 1
if { (eval echo "$as_me:11102: \"$ac_link\"") >&5
d10963 1
a10963 1
  echo "$as_me:11105: \$? = $ac_status" >&5
d10966 1
a10966 1
  { (eval echo "$as_me:11108: \"$ac_try\"") >&5
d10969 1
a10969 1
  echo "$as_me:11111: \$? = $ac_status" >&5
d10979 1
a10979 1
#line 11121 "configure"
d10994 1
a10994 1
if { (eval echo "$as_me:11136: \"$ac_link\"") >&5
d10997 1
a10997 1
  echo "$as_me:11139: \$? = $ac_status" >&5
d11000 1
a11000 1
  { (eval echo "$as_me:11142: \"$ac_try\"") >&5
d11003 1
a11003 1
  echo "$as_me:11145: \$? = $ac_status" >&5
d11019 1
a11019 1
echo "$as_me:11161: result: $cf_cv_regex" >&5
d11055 1
a11055 1
echo "$as_me:11197: checking for $ac_header" >&5
d11061 1
a11061 1
#line 11203 "configure"
d11065 1
a11065 1
if { (eval echo "$as_me:11207: \"$ac_cpp conftest.$ac_ext\"") >&5
d11071 1
a11071 1
  echo "$as_me:11213: \$? = $ac_status" >&5
d11090 1
a11090 1
echo "$as_me:11232: result: `eval echo '${'$as_ac_Header'}'`" >&5
d11104 1
a11104 1
echo "$as_me:11246: checking for main in -lcposix" >&5
d11112 1
a11112 1
#line 11254 "configure"
d11124 1
a11124 1
if { (eval echo "$as_me:11266: \"$ac_link\"") >&5
d11127 1
a11127 1
  echo "$as_me:11269: \$? = $ac_status" >&5
d11130 1
a11130 1
  { (eval echo "$as_me:11272: \"$ac_try\"") >&5
d11133 1
a11133 1
  echo "$as_me:11275: \$? = $ac_status" >&5
d11144 1
a11144 1
echo "$as_me:11286: result: $ac_cv_lib_cposix_main" >&5
d11155 1
a11155 1
	echo "$as_me:11297: checking for bzero in -linet" >&5
d11163 1
a11163 1
#line 11305 "configure"
d11182 1
a11182 1
if { (eval echo "$as_me:11324: \"$ac_link\"") >&5
d11185 1
a11185 1
  echo "$as_me:11327: \$? = $ac_status" >&5
d11188 1
a11188 1
  { (eval echo "$as_me:11330: \"$ac_try\"") >&5
d11191 1
a11191 1
  echo "$as_me:11333: \$? = $ac_status" >&5
d11202 1
a11202 1
echo "$as_me:11344: result: $ac_cv_lib_inet_bzero" >&5
d11209 1
a11209 1
echo "$as_me:11351: checking if sys/time.h works with sys/select.h" >&5
d11216 1
a11216 1
#line 11358 "configure"
d11236 1
a11236 1
if { (eval echo "$as_me:11378: \"$ac_compile\"") >&5
d11239 1
a11239 1
  echo "$as_me:11381: \$? = $ac_status" >&5
d11242 1
a11242 1
  { (eval echo "$as_me:11384: \"$ac_try\"") >&5
d11245 1
a11245 1
  echo "$as_me:11387: \$? = $ac_status" >&5
d11257 1
a11257 1
echo "$as_me:11399: result: $cf_cv_sys_time_select" >&5
d11271 1
a11271 1
echo "$as_me:11413: checking for $CC option to accept ANSI C" >&5
d11279 1
a11279 1
#line 11421 "configure"
d11328 1
a11328 1
if { (eval echo "$as_me:11470: \"$ac_compile\"") >&5
d11331 1
a11331 1
  echo "$as_me:11473: \$? = $ac_status" >&5
d11334 1
a11334 1
  { (eval echo "$as_me:11476: \"$ac_try\"") >&5
d11337 1
a11337 1
  echo "$as_me:11479: \$? = $ac_status" >&5
d11354 1
a11354 1
    echo "$as_me:11496: result: none needed" >&5
d11357 1
a11357 1
    echo "$as_me:11499: result: $ac_cv_prog_cc_stdc" >&5
d11362 1
a11362 1
echo "$as_me:11504: checking for an ANSI C-conforming const" >&5
d11368 1
a11368 1
#line 11510 "configure"
d11426 1
a11426 1
if { (eval echo "$as_me:11568: \"$ac_compile\"") >&5
d11429 1
a11429 1
  echo "$as_me:11571: \$? = $ac_status" >&5
d11432 1
a11432 1
  { (eval echo "$as_me:11574: \"$ac_try\"") >&5
d11435 1
a11435 1
  echo "$as_me:11577: \$? = $ac_status" >&5
d11445 1
a11445 1
echo "$as_me:11587: result: $ac_cv_c_const" >&5
d11455 1
a11455 1
echo "$as_me:11597: checking for inline" >&5
d11463 1
a11463 1
#line 11605 "configure"
d11472 1
a11472 1
if { (eval echo "$as_me:11614: \"$ac_compile\"") >&5
d11475 1
a11475 1
  echo "$as_me:11617: \$? = $ac_status" >&5
d11478 1
a11478 1
  { (eval echo "$as_me:11620: \"$ac_try\"") >&5
d11481 1
a11481 1
  echo "$as_me:11623: \$? = $ac_status" >&5
d11492 1
a11492 1
echo "$as_me:11634: result: $ac_cv_c_inline" >&5
d11515 1
a11515 1
    echo "$as_me:11657: checking if gcc supports options to tune inlining" >&5
d11524 1
a11524 1
#line 11666 "configure"
d11536 1
a11536 1
if { (eval echo "$as_me:11678: \"$ac_compile\"") >&5
d11539 1
a11539 1
  echo "$as_me:11681: \$? = $ac_status" >&5
d11542 1
a11542 1
  { (eval echo "$as_me:11684: \"$ac_try\"") >&5
d11545 1
a11545 1
  echo "$as_me:11687: \$? = $ac_status" >&5
d11557 1
a11557 1
echo "$as_me:11699: result: $cf_cv_gcc_inline" >&5
d11633 1
a11633 1
echo "$as_me:11775: checking for signal global datatype" >&5
d11645 1
a11645 1
#line 11787 "configure"
d11668 1
a11668 1
if { (eval echo "$as_me:11810: \"$ac_compile\"") >&5
d11671 1
a11671 1
  echo "$as_me:11813: \$? = $ac_status" >&5
d11674 1
a11674 1
  { (eval echo "$as_me:11816: \"$ac_try\"") >&5
d11677 1
a11677 1
  echo "$as_me:11819: \$? = $ac_status" >&5
d11691 1
a11691 1
echo "$as_me:11833: result: $cf_cv_sig_atomic_t" >&5
d11699 1
a11699 1
echo "$as_me:11841: checking for type of chtype" >&5
d11709 1
a11709 1
#line 11851 "configure"
d11744 1
a11744 1
if { (eval echo "$as_me:11886: \"$ac_link\"") >&5
d11747 1
a11747 1
  echo "$as_me:11889: \$? = $ac_status" >&5
d11749 1
a11749 1
  { (eval echo "$as_me:11891: \"$ac_try\"") >&5
d11752 1
a11752 1
  echo "$as_me:11894: \$? = $ac_status" >&5
d11767 1
a11767 1
echo "$as_me:11909: result: $cf_cv_typeof_chtype" >&5
d11779 1
a11779 1
echo "$as_me:11921: checking if unsigned literals are legal" >&5
d11786 1
a11786 1
#line 11928 "configure"
d11798 1
a11798 1
if { (eval echo "$as_me:11940: \"$ac_compile\"") >&5
d11801 1
a11801 1
  echo "$as_me:11943: \$? = $ac_status" >&5
d11804 1
a11804 1
  { (eval echo "$as_me:11946: \"$ac_try\"") >&5
d11807 1
a11807 1
  echo "$as_me:11949: \$? = $ac_status" >&5
d11819 1
a11819 1
echo "$as_me:11961: result: $cf_cv_unsigned_literals" >&5
d11835 1
a11835 1
echo "$as_me:11977: checking if external errno is declared" >&5
d11842 1
a11842 1
#line 11984 "configure"
d11860 1
a11860 1
if { (eval echo "$as_me:12002: \"$ac_compile\"") >&5
d11863 1
a11863 1
  echo "$as_me:12005: \$? = $ac_status" >&5
d11866 1
a11866 1
  { (eval echo "$as_me:12008: \"$ac_try\"") >&5
d11869 1
a11869 1
  echo "$as_me:12011: \$? = $ac_status" >&5
d11880 1
a11880 1
echo "$as_me:12022: result: $cf_cv_dcl_errno" >&5
d11895 1
a11895 1
echo "$as_me:12037: checking if external errno exists" >&5
d11902 1
a11902 1
#line 12044 "configure"
d11917 1
a11917 1
if { (eval echo "$as_me:12059: \"$ac_link\"") >&5
d11920 1
a11920 1
  echo "$as_me:12062: \$? = $ac_status" >&5
d11923 1
a11923 1
  { (eval echo "$as_me:12065: \"$ac_try\"") >&5
d11926 1
a11926 1
  echo "$as_me:12068: \$? = $ac_status" >&5
d11937 1
a11937 1
echo "$as_me:12079: result: $cf_cv_have_errno" >&5
d11950 1
a11950 1
echo "$as_me:12092: checking if data-only library module links" >&5
d11958 1
a11958 1
#line 12100 "configure"
d11961 1
a11961 1
	if { (eval echo "$as_me:12103: \"$ac_compile\"") >&5
d11964 1
a11964 1
  echo "$as_me:12106: \$? = $ac_status" >&5
d11971 1
a11971 1
#line 12113 "configure"
d11984 1
a11984 1
	if { (eval echo "$as_me:12126: \"$ac_compile\"") >&5
d11987 1
a11987 1
  echo "$as_me:12129: \$? = $ac_status" >&5
d12000 1
a12000 1
#line 12142 "configure"
d12011 1
a12011 1
if { (eval echo "$as_me:12153: \"$ac_link\"") >&5
d12014 1
a12014 1
  echo "$as_me:12156: \$? = $ac_status" >&5
d12016 1
a12016 1
  { (eval echo "$as_me:12158: \"$ac_try\"") >&5
d12019 1
a12019 1
  echo "$as_me:12161: \$? = $ac_status" >&5
d12034 1
a12034 1
echo "$as_me:12176: result: $cf_cv_link_dataonly" >&5
d12069 1
a12069 1
echo "$as_me:12211: checking for $ac_func" >&5
d12075 1
a12075 1
#line 12217 "configure"
d12106 1
a12106 1
if { (eval echo "$as_me:12248: \"$ac_link\"") >&5
d12109 1
a12109 1
  echo "$as_me:12251: \$? = $ac_status" >&5
d12112 1
a12112 1
  { (eval echo "$as_me:12254: \"$ac_try\"") >&5
d12115 1
a12115 1
  echo "$as_me:12257: \$? = $ac_status" >&5
d12125 1
a12125 1
echo "$as_me:12267: result: `eval echo '${'$as_ac_var'}'`" >&5
d12137 1
a12137 1
echo "$as_me:12279: checking for terminal-capability database functions" >&5
d12144 1
a12144 1
#line 12286 "configure"
d12164 1
a12164 1
if { (eval echo "$as_me:12306: \"$ac_link\"") >&5
d12167 1
a12167 1
  echo "$as_me:12309: \$? = $ac_status" >&5
d12170 1
a12170 1
  { (eval echo "$as_me:12312: \"$ac_try\"") >&5
d12173 1
a12173 1
  echo "$as_me:12315: \$? = $ac_status" >&5
d12185 1
a12185 1
echo "$as_me:12327: result: $cf_cv_cgetent" >&5
d12193 1
a12193 1
echo "$as_me:12335: checking for isascii" >&5
d12200 1
a12200 1
#line 12342 "configure"
d12212 1
a12212 1
if { (eval echo "$as_me:12354: \"$ac_link\"") >&5
d12215 1
a12215 1
  echo "$as_me:12357: \$? = $ac_status" >&5
d12218 1
a12218 1
  { (eval echo "$as_me:12360: \"$ac_try\"") >&5
d12221 1
a12221 1
  echo "$as_me:12363: \$? = $ac_status" >&5
d12232 1
a12232 1
echo "$as_me:12374: result: $cf_cv_have_isascii" >&5
d12239 1
a12239 1
echo "$as_me:12381: checking whether sigaction needs _POSIX_SOURCE" >&5
d12242 1
a12242 1
#line 12384 "configure"
d12256 1
a12256 1
if { (eval echo "$as_me:12398: \"$ac_compile\"") >&5
d12259 1
a12259 1
  echo "$as_me:12401: \$? = $ac_status" >&5
d12262 1
a12262 1
  { (eval echo "$as_me:12404: \"$ac_try\"") >&5
d12265 1
a12265 1
  echo "$as_me:12407: \$? = $ac_status" >&5
d12273 1
a12273 1
#line 12415 "configure"
d12288 1
a12288 1
if { (eval echo "$as_me:12430: \"$ac_compile\"") >&5
d12291 1
a12291 1
  echo "$as_me:12433: \$? = $ac_status" >&5
d12294 1
a12294 1
  { (eval echo "$as_me:12436: \"$ac_try\"") >&5
d12297 1
a12297 1
  echo "$as_me:12439: \$? = $ac_status" >&5
d12312 1
a12312 1
echo "$as_me:12454: result: $sigact_bad" >&5
d12316 1
a12316 1
echo "$as_me:12458: checking if nanosleep really works" >&5
d12326 1
a12326 1
#line 12468 "configure"
d12351 1
a12351 1
if { (eval echo "$as_me:12493: \"$ac_link\"") >&5
d12354 1
a12354 1
  echo "$as_me:12496: \$? = $ac_status" >&5
d12356 1
a12356 1
  { (eval echo "$as_me:12498: \"$ac_try\"") >&5
d12359 1
a12359 1
  echo "$as_me:12501: \$? = $ac_status" >&5
d12371 1
a12371 1
echo "$as_me:12513: result: $cf_cv_func_nanosleep" >&5
d12385 1
a12385 1
echo "$as_me:12527: checking for $ac_header" >&5
d12391 1
a12391 1
#line 12533 "configure"
d12395 1
a12395 1
if { (eval echo "$as_me:12537: \"$ac_cpp conftest.$ac_ext\"") >&5
d12401 1
a12401 1
  echo "$as_me:12543: \$? = $ac_status" >&5
d12420 1
a12420 1
echo "$as_me:12562: result: `eval echo '${'$as_ac_Header'}'`" >&5
d12435 1
a12435 1
echo "$as_me:12577: checking for $ac_header" >&5
d12441 1
a12441 1
#line 12583 "configure"
d12445 1
a12445 1
if { (eval echo "$as_me:12587: \"$ac_cpp conftest.$ac_ext\"") >&5
d12451 1
a12451 1
  echo "$as_me:12593: \$? = $ac_status" >&5
d12470 1
a12470 1
echo "$as_me:12612: result: `eval echo '${'$as_ac_Header'}'`" >&5
d12488 1
a12488 1
	echo "$as_me:12630: checking whether termios.h needs _POSIX_SOURCE" >&5
d12491 1
a12491 1
#line 12633 "configure"
d12503 1
a12503 1
if { (eval echo "$as_me:12645: \"$ac_compile\"") >&5
d12506 1
a12506 1
  echo "$as_me:12648: \$? = $ac_status" >&5
d12509 1
a12509 1
  { (eval echo "$as_me:12651: \"$ac_try\"") >&5
d12512 1
a12512 1
  echo "$as_me:12654: \$? = $ac_status" >&5
d12520 1
a12520 1
#line 12662 "configure"
d12534 1
a12534 1
if { (eval echo "$as_me:12676: \"$ac_compile\"") >&5
d12537 1
a12537 1
  echo "$as_me:12679: \$? = $ac_status" >&5
d12540 1
a12540 1
  { (eval echo "$as_me:12682: \"$ac_try\"") >&5
d12543 1
a12543 1
  echo "$as_me:12685: \$? = $ac_status" >&5
d12558 1
a12558 1
	echo "$as_me:12700: result: $termios_bad" >&5
d12563 1
a12563 1
echo "$as_me:12705: checking for tcgetattr" >&5
d12570 1
a12570 1
#line 12712 "configure"
d12598 1
a12598 1
if { (eval echo "$as_me:12740: \"$ac_link\"") >&5
d12601 1
a12601 1
  echo "$as_me:12743: \$? = $ac_status" >&5
d12604 1
a12604 1
  { (eval echo "$as_me:12746: \"$ac_try\"") >&5
d12607 1
a12607 1
  echo "$as_me:12749: \$? = $ac_status" >&5
d12617 1
a12617 1
echo "$as_me:12759: result: $cf_cv_have_tcgetattr" >&5
d12623 1
a12623 1
echo "$as_me:12765: checking for vsscanf function or workaround" >&5
d12630 1
a12630 1
#line 12772 "configure"
d12646 1
a12646 1
if { (eval echo "$as_me:12788: \"$ac_link\"") >&5
d12649 1
a12649 1
  echo "$as_me:12791: \$? = $ac_status" >&5
d12652 1
a12652 1
  { (eval echo "$as_me:12794: \"$ac_try\"") >&5
d12655 1
a12655 1
  echo "$as_me:12797: \$? = $ac_status" >&5
d12663 1
a12663 1
#line 12805 "configure"
d12685 1
a12685 1
if { (eval echo "$as_me:12827: \"$ac_link\"") >&5
d12688 1
a12688 1
  echo "$as_me:12830: \$? = $ac_status" >&5
d12691 1
a12691 1
  { (eval echo "$as_me:12833: \"$ac_try\"") >&5
d12694 1
a12694 1
  echo "$as_me:12836: \$? = $ac_status" >&5
d12702 1
a12702 1
#line 12844 "configure"
d12724 1
a12724 1
if { (eval echo "$as_me:12866: \"$ac_link\"") >&5
d12727 1
a12727 1
  echo "$as_me:12869: \$? = $ac_status" >&5
d12730 1
a12730 1
  { (eval echo "$as_me:12872: \"$ac_try\"") >&5
d12733 1
a12733 1
  echo "$as_me:12875: \$? = $ac_status" >&5
d12748 1
a12748 1
echo "$as_me:12890: result: $cf_cv_func_vsscanf" >&5
d12766 1
a12766 1
echo "$as_me:12908: checking for working mkstemp" >&5
d12774 1
a12774 1
  echo "$as_me:12916: checking for mkstemp" >&5
d12780 1
a12780 1
#line 12922 "configure"
d12811 1
a12811 1
if { (eval echo "$as_me:12953: \"$ac_link\"") >&5
d12814 1
a12814 1
  echo "$as_me:12956: \$? = $ac_status" >&5
d12817 1
a12817 1
  { (eval echo "$as_me:12959: \"$ac_try\"") >&5
d12820 1
a12820 1
  echo "$as_me:12962: \$? = $ac_status" >&5
d12830 1
a12830 1
echo "$as_me:12972: result: $ac_cv_func_mkstemp" >&5
d12835 1
a12835 1
#line 12977 "configure"
d12873 1
a12873 1
if { (eval echo "$as_me:13015: \"$ac_link\"") >&5
d12876 1
a12876 1
  echo "$as_me:13018: \$? = $ac_status" >&5
d12878 1
a12878 1
  { (eval echo "$as_me:13020: \"$ac_try\"") >&5
d12881 1
a12881 1
  echo "$as_me:13023: \$? = $ac_status" >&5
d12896 1
a12896 1
echo "$as_me:13038: result: $cf_cv_func_mkstemp" >&5
d12914 1
a12914 1
	{ echo "$as_me:13056: WARNING: cross compiling: assume setvbuf params not reversed" >&5
d12917 1
a12917 1
	echo "$as_me:13059: checking whether setvbuf arguments are reversed" >&5
d12923 1
a12923 1
  { { echo "$as_me:13065: error: cannot run test program while cross compiling" >&5
d12928 1
a12928 1
#line 13070 "configure"
d12945 1
a12945 1
if { (eval echo "$as_me:13087: \"$ac_link\"") >&5
d12948 1
a12948 1
  echo "$as_me:13090: \$? = $ac_status" >&5
d12950 1
a12950 1
  { (eval echo "$as_me:13092: \"$ac_try\"") >&5
d12953 1
a12953 1
  echo "$as_me:13095: \$? = $ac_status" >&5
d12966 1
a12966 1
echo "$as_me:13108: result: $ac_cv_func_setvbuf_reversed" >&5
d12977 1
a12977 1
echo "$as_me:13119: checking return type of signal handlers" >&5
d12983 1
a12983 1
#line 13125 "configure"
d13005 1
a13005 1
if { (eval echo "$as_me:13147: \"$ac_compile\"") >&5
d13008 1
a13008 1
  echo "$as_me:13150: \$? = $ac_status" >&5
d13011 1
a13011 1
  { (eval echo "$as_me:13153: \"$ac_try\"") >&5
d13014 1
a13014 1
  echo "$as_me:13156: \$? = $ac_status" >&5
d13024 1
a13024 1
echo "$as_me:13166: result: $ac_cv_type_signal" >&5
d13031 1
a13031 1
echo "$as_me:13173: checking for type sigaction_t" >&5
d13038 1
a13038 1
#line 13180 "configure"
d13051 1
a13051 1
if { (eval echo "$as_me:13193: \"$ac_compile\"") >&5
d13054 1
a13054 1
  echo "$as_me:13196: \$? = $ac_status" >&5
d13057 1
a13057 1
  { (eval echo "$as_me:13199: \"$ac_try\"") >&5
d13060 1
a13060 1
  echo "$as_me:13202: \$? = $ac_status" >&5
d13071 1
a13071 1
echo "$as_me:13213: result: $cf_cv_type_sigaction" >&5
d13077 1
a13077 1
echo "$as_me:13219: checking declaration of size-change" >&5
d13092 1
a13092 1
#line 13234 "configure"
d13136 1
a13136 1
if { (eval echo "$as_me:13278: \"$ac_compile\"") >&5
d13139 1
a13139 1
  echo "$as_me:13281: \$? = $ac_status" >&5
d13142 1
a13142 1
  { (eval echo "$as_me:13284: \"$ac_try\"") >&5
d13145 1
a13145 1
  echo "$as_me:13287: \$? = $ac_status" >&5
d13164 1
a13164 1
echo "$as_me:13306: result: $cf_cv_sizechange" >&5
d13181 1
a13181 1
echo "$as_me:13323: checking for memmove" >&5
d13187 1
a13187 1
#line 13329 "configure"
d13218 1
a13218 1
if { (eval echo "$as_me:13360: \"$ac_link\"") >&5
d13221 1
a13221 1
  echo "$as_me:13363: \$? = $ac_status" >&5
d13224 1
a13224 1
  { (eval echo "$as_me:13366: \"$ac_try\"") >&5
d13227 1
a13227 1
  echo "$as_me:13369: \$? = $ac_status" >&5
d13237 1
a13237 1
echo "$as_me:13379: result: $ac_cv_func_memmove" >&5
d13243 1
a13243 1
echo "$as_me:13385: checking for bcopy" >&5
d13249 1
a13249 1
#line 13391 "configure"
d13280 1
a13280 1
if { (eval echo "$as_me:13422: \"$ac_link\"") >&5
d13283 1
a13283 1
  echo "$as_me:13425: \$? = $ac_status" >&5
d13286 1
a13286 1
  { (eval echo "$as_me:13428: \"$ac_try\"") >&5
d13289 1
a13289 1
  echo "$as_me:13431: \$? = $ac_status" >&5
d13299 1
a13299 1
echo "$as_me:13441: result: $ac_cv_func_bcopy" >&5
d13303 1
a13303 1
	echo "$as_me:13445: checking if bcopy does overlapping moves" >&5
d13313 1
a13313 1
#line 13455 "configure"
d13327 1
a13327 1
if { (eval echo "$as_me:13469: \"$ac_link\"") >&5
d13330 1
a13330 1
  echo "$as_me:13472: \$? = $ac_status" >&5
d13332 1
a13332 1
  { (eval echo "$as_me:13474: \"$ac_try\"") >&5
d13335 1
a13335 1
  echo "$as_me:13477: \$? = $ac_status" >&5
d13348 1
a13348 1
echo "$as_me:13490: result: $cf_cv_good_bcopy" >&5
d13369 1
a13369 1
echo "$as_me:13511: checking if poll really works" >&5
d13379 1
a13379 1
#line 13521 "configure"
d13400 1
a13400 1
if { (eval echo "$as_me:13542: \"$ac_link\"") >&5
d13403 1
a13403 1
  echo "$as_me:13545: \$? = $ac_status" >&5
d13405 1
a13405 1
  { (eval echo "$as_me:13547: \"$ac_try\"") >&5
d13408 1
a13408 1
  echo "$as_me:13550: \$? = $ac_status" >&5
d13420 1
a13420 1
echo "$as_me:13562: result: $cf_cv_working_poll" >&5
a13425 129
# special check for test/ditto.c

echo "$as_me:13570: checking for openpty in -lutil" >&5
echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
if test "${ac_cv_lib_util_openpty+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lutil  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 13578 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char openpty ();
int
main ()
{
openpty ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13597: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13600: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13603: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13606: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_util_openpty=yes
else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_util_openpty=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:13617: result: $ac_cv_lib_util_openpty" >&5
echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
if test $ac_cv_lib_util_openpty = yes; then
  cf_cv_lib_util=yes
else
  cf_cv_lib_util=no
fi

echo "$as_me:13625: checking for openpty header" >&5
echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
if test "${cf_cv_func_openpty+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    cf_save_LIBS="$LIBS"
    test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
    for cf_header in pty.h libutil.h util.h
    do
    cat >conftest.$ac_ext <<_ACEOF
#line 13636 "configure"
#include "confdefs.h"

#include <$cf_header>

int
main ()
{

    int x = openpty((int *)0, (int *)0, (char *)0,
                   (struct termios *)0, (struct winsize *)0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:13653: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:13656: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:13659: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:13662: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then

        cf_cv_func_openpty=$cf_header
        break

else
  echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5

        cf_cv_func_openpty=no

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    done
    LIBS="$cf_save_LIBS"

fi
echo "$as_me:13680: result: $cf_cv_func_openpty" >&5
echo "${ECHO_T}$cf_cv_func_openpty" >&6

if test "$cf_cv_func_openpty" != no ; then
    cat >>confdefs.h <<EOF
#define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
EOF

    cat >>confdefs.h <<\EOF
#define USE_XTERM_PTY 1
EOF

    if test "$cf_cv_lib_util" = yes ; then
        TEST_LIBS="-lutil $TEST_LIBS"
    fi
fi

d13461 1
a13461 1
#line 13732 "configure"
d13473 1
a13473 1
if { (eval echo "$as_me:13744: \"$ac_compile\"") >&5
d13476 1
a13476 1
  echo "$as_me:13747: \$? = $ac_status" >&5
d13479 1
a13479 1
  { (eval echo "$as_me:13750: \"$ac_try\"") >&5
d13482 1
a13482 1
  echo "$as_me:13753: \$? = $ac_status" >&5
d13497 2
a13498 4
		  test -n "$verbose" && echo "	adding $cf_add_incdir to include-path" 1>&6

echo "${as_me-configure}:13770: testing adding $cf_add_incdir to include-path ..." 1>&5

d13529 2
a13530 4
        test -n "$verbose" && echo "	adding $cf_add_libdir to library-path" 1>&6

echo "${as_me-configure}:13804: testing adding $cf_add_libdir to library-path ..." 1>&5

d13540 1
a13540 1
echo "$as_me:13815: checking for db.h" >&5
d13546 1
a13546 1
#line 13821 "configure"
d13550 1
a13550 1
if { (eval echo "$as_me:13825: \"$ac_cpp conftest.$ac_ext\"") >&5
d13556 1
a13556 1
  echo "$as_me:13831: \$? = $ac_status" >&5
d13575 1
a13575 1
echo "$as_me:13850: result: $ac_cv_header_db_h" >&5
d13579 1
a13579 1
echo "$as_me:13854: checking for version of db" >&5
d13590 1
a13590 1
echo "${as_me-configure}:13865: testing checking for db version $cf_db_version ..." 1>&5
d13593 1
a13593 1
#line 13868 "configure"
d13623 1
a13623 1
if { (eval echo "$as_me:13898: \"$ac_compile\"") >&5
d13626 1
a13626 1
  echo "$as_me:13901: \$? = $ac_status" >&5
d13629 1
a13629 1
  { (eval echo "$as_me:13904: \"$ac_try\"") >&5
d13632 1
a13632 1
  echo "$as_me:13907: \$? = $ac_status" >&5
d13646 1
a13646 1
echo "$as_me:13921: result: $cf_cv_hashed_db_version" >&5
d13650 1
a13650 1
	{ { echo "$as_me:13925: error: Cannot determine version of db" >&5
d13655 1
a13655 1
echo "$as_me:13930: checking for db libraries" >&5
d13669 1
a13669 1
echo "${as_me-configure}:13944: testing checking for library "$cf_db_libs" ..." 1>&5
d13672 1
a13672 1
#line 13947 "configure"
d13727 1
a13727 1
if { (eval echo "$as_me:14002: \"$ac_link\"") >&5
d13730 1
a13730 1
  echo "$as_me:14005: \$? = $ac_status" >&5
d13733 1
a13733 1
  { (eval echo "$as_me:14008: \"$ac_try\"") >&5
d13736 1
a13736 1
  echo "$as_me:14011: \$? = $ac_status" >&5
d13756 1
a13756 1
echo "$as_me:14031: result: $cf_cv_hashed_db_libs" >&5
d13760 1
a13760 1
		{ { echo "$as_me:14035: error: Cannot determine library for db" >&5
d13770 1
a13770 1
	{ { echo "$as_me:14045: error: Cannot find db.h" >&5
d13785 1
a13785 1
echo "$as_me:14060: checking if we should include stdbool.h" >&5
d13793 1
a13793 1
#line 14068 "configure"
d13805 1
a13805 1
if { (eval echo "$as_me:14080: \"$ac_compile\"") >&5
d13808 1
a13808 1
  echo "$as_me:14083: \$? = $ac_status" >&5
d13811 1
a13811 1
  { (eval echo "$as_me:14086: \"$ac_try\"") >&5
d13814 1
a13814 1
  echo "$as_me:14089: \$? = $ac_status" >&5
d13821 1
a13821 1
#line 14096 "configure"
d13837 1
a13837 1
if { (eval echo "$as_me:14112: \"$ac_compile\"") >&5
d13840 1
a13840 1
  echo "$as_me:14115: \$? = $ac_status" >&5
d13843 1
a13843 1
  { (eval echo "$as_me:14118: \"$ac_try\"") >&5
d13846 1
a13846 1
  echo "$as_me:14121: \$? = $ac_status" >&5
d13860 1
a13860 1
then	echo "$as_me:14135: result: yes" >&5
d13862 1
a13862 1
else	echo "$as_me:14137: result: no" >&5
d13866 1
a13866 1
echo "$as_me:14141: checking for builtin bool type" >&5
d13874 1
a13874 1
#line 14149 "configure"
d13889 1
a13889 1
if { (eval echo "$as_me:14164: \"$ac_compile\"") >&5
d13892 1
a13892 1
  echo "$as_me:14167: \$? = $ac_status" >&5
d13895 1
a13895 1
  { (eval echo "$as_me:14170: \"$ac_try\"") >&5
d13898 1
a13898 1
  echo "$as_me:14173: \$? = $ac_status" >&5
d13911 1
a13911 1
then	echo "$as_me:14186: result: yes" >&5
d13913 1
a13913 1
else	echo "$as_me:14188: result: no" >&5
d13935 1
a13935 1
echo "$as_me:14210: checking for library $cf_stdcpp_libname" >&5
d13944 1
a13944 1
#line 14219 "configure"
d13960 1
a13960 1
if { (eval echo "$as_me:14235: \"$ac_link\"") >&5
d13963 1
a13963 1
  echo "$as_me:14238: \$? = $ac_status" >&5
d13966 1
a13966 1
  { (eval echo "$as_me:14241: \"$ac_try\"") >&5
d13969 1
a13969 1
  echo "$as_me:14244: \$? = $ac_status" >&5
d13981 1
a13981 1
echo "$as_me:14256: result: $cf_cv_libstdcpp" >&5
d13986 1
a13986 1
	echo "$as_me:14261: checking whether $CXX understands -c and -o together" >&5
d14002 1
a14002 1
if { (eval echo "$as_me:14277: \"$ac_try\"") >&5
d14005 1
a14005 1
  echo "$as_me:14280: \$? = $ac_status" >&5
d14007 1
a14007 1
  test -f conftest2.$ac_objext && { (eval echo "$as_me:14282: \"$ac_try\"") >&5
d14010 1
a14010 1
  echo "$as_me:14285: \$? = $ac_status" >&5
d14021 1
a14021 1
  echo "$as_me:14296: result: yes" >&5
d14024 1
a14024 1
  echo "$as_me:14299: result: no" >&5
d14044 1
a14044 1
	echo "$as_me:14319: checking for lib$cf_gpp_libname" >&5
d14049 1
a14049 1
#line 14324 "configure"
d14063 1
a14063 1
if { (eval echo "$as_me:14338: \"$ac_link\"") >&5
d14066 1
a14066 1
  echo "$as_me:14341: \$? = $ac_status" >&5
d14069 1
a14069 1
  { (eval echo "$as_me:14344: \"$ac_try\"") >&5
d14072 1
a14072 1
  echo "$as_me:14347: \$? = $ac_status" >&5
d14091 1
a14091 1
#line 14366 "configure"
d14105 1
a14105 1
if { (eval echo "$as_me:14380: \"$ac_link\"") >&5
d14108 1
a14108 1
  echo "$as_me:14383: \$? = $ac_status" >&5
d14111 1
a14111 1
  { (eval echo "$as_me:14386: \"$ac_try\"") >&5
d14114 1
a14114 1
  echo "$as_me:14389: \$? = $ac_status" >&5
d14131 1
a14131 1
	echo "$as_me:14406: result: $cf_cxx_library" >&5
d14147 1
a14147 1
echo "$as_me:14422: checking how to run the C++ preprocessor" >&5
d14164 1
a14164 1
#line 14439 "configure"
d14169 1
a14169 1
if { (eval echo "$as_me:14444: \"$ac_cpp conftest.$ac_ext\"") >&5
d14175 1
a14175 1
  echo "$as_me:14450: \$? = $ac_status" >&5
d14198 1
a14198 1
#line 14473 "configure"
d14202 1
a14202 1
if { (eval echo "$as_me:14477: \"$ac_cpp conftest.$ac_ext\"") >&5
d14208 1
a14208 1
  echo "$as_me:14483: \$? = $ac_status" >&5
d14245 1
a14245 1
echo "$as_me:14520: result: $CXXCPP" >&5
d14255 1
a14255 1
#line 14530 "configure"
d14260 1
a14260 1
if { (eval echo "$as_me:14535: \"$ac_cpp conftest.$ac_ext\"") >&5
d14266 1
a14266 1
  echo "$as_me:14541: \$? = $ac_status" >&5
d14289 1
a14289 1
#line 14564 "configure"
d14293 1
a14293 1
if { (eval echo "$as_me:14568: \"$ac_cpp conftest.$ac_ext\"") >&5
d14299 1
a14299 1
  echo "$as_me:14574: \$? = $ac_status" >&5
d14327 1
a14327 1
  { { echo "$as_me:14602: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
d14342 1
a14342 1
echo "$as_me:14617: checking for $ac_header" >&5
d14348 1
a14348 1
#line 14623 "configure"
d14352 1
a14352 1
if { (eval echo "$as_me:14627: \"$ac_cpp conftest.$ac_ext\"") >&5
d14358 1
a14358 1
  echo "$as_me:14633: \$? = $ac_status" >&5
d14377 1
a14377 1
echo "$as_me:14652: result: `eval echo '${'$as_ac_Header'}'`" >&5
d14387 1
a14387 1
echo "$as_me:14662: checking if we should include stdbool.h" >&5
d14395 1
a14395 1
#line 14670 "configure"
d14407 1
a14407 1
if { (eval echo "$as_me:14682: \"$ac_compile\"") >&5
d14410 1
a14410 1
  echo "$as_me:14685: \$? = $ac_status" >&5
d14413 1
a14413 1
  { (eval echo "$as_me:14688: \"$ac_try\"") >&5
d14416 1
a14416 1
  echo "$as_me:14691: \$? = $ac_status" >&5
d14423 1
a14423 1
#line 14698 "configure"
d14439 1
a14439 1
if { (eval echo "$as_me:14714: \"$ac_compile\"") >&5
d14442 1
a14442 1
  echo "$as_me:14717: \$? = $ac_status" >&5
d14445 1
a14445 1
  { (eval echo "$as_me:14720: \"$ac_try\"") >&5
d14448 1
a14448 1
  echo "$as_me:14723: \$? = $ac_status" >&5
d14462 1
a14462 1
then	echo "$as_me:14737: result: yes" >&5
d14464 1
a14464 1
else	echo "$as_me:14739: result: no" >&5
d14468 1
a14468 1
echo "$as_me:14743: checking for builtin bool type" >&5
d14476 1
a14476 1
#line 14751 "configure"
d14491 1
a14491 1
if { (eval echo "$as_me:14766: \"$ac_compile\"") >&5
d14494 1
a14494 1
  echo "$as_me:14769: \$? = $ac_status" >&5
d14497 1
a14497 1
  { (eval echo "$as_me:14772: \"$ac_try\"") >&5
d14500 1
a14500 1
  echo "$as_me:14775: \$? = $ac_status" >&5
d14513 1
a14513 1
then	echo "$as_me:14788: result: yes" >&5
d14515 1
a14515 1
else	echo "$as_me:14790: result: no" >&5
d14519 1
a14519 1
echo "$as_me:14794: checking for size of bool" >&5
d14530 1
a14530 1
#line 14805 "configure"
d14572 1
a14572 1
if { (eval echo "$as_me:14847: \"$ac_link\"") >&5
d14575 1
a14575 1
  echo "$as_me:14850: \$? = $ac_status" >&5
d14577 1
a14577 1
  { (eval echo "$as_me:14852: \"$ac_try\"") >&5
d14580 1
a14580 1
  echo "$as_me:14855: \$? = $ac_status" >&5
d14598 1
a14598 1
echo "$as_me:14873: result: $cf_cv_type_of_bool" >&5
d14604 1
a14604 1
	{ echo "$as_me:14879: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
d14609 1
a14609 1
echo "$as_me:14884: checking for special defines needed for etip.h" >&5
d14621 1
a14621 1
#line 14896 "configure"
d14635 1
a14635 1
if { (eval echo "$as_me:14910: \"$ac_compile\"") >&5
d14638 1
a14638 1
  echo "$as_me:14913: \$? = $ac_status" >&5
d14641 1
a14641 1
  { (eval echo "$as_me:14916: \"$ac_try\"") >&5
d14644 1
a14644 1
  echo "$as_me:14919: \$? = $ac_status" >&5
d14665 1
a14665 1
echo "$as_me:14940: result: $cf_result" >&5
d14670 1
a14670 1
echo "$as_me:14945: checking if $CXX accepts parameter initialization" >&5
d14687 1
a14687 1
#line 14962 "configure"
d14706 1
a14706 1
if { (eval echo "$as_me:14981: \"$ac_link\"") >&5
d14709 1
a14709 1
  echo "$as_me:14984: \$? = $ac_status" >&5
d14711 1
a14711 1
  { (eval echo "$as_me:14986: \"$ac_try\"") >&5
d14714 1
a14714 1
  echo "$as_me:14989: \$? = $ac_status" >&5
d14733 1
a14733 1
echo "$as_me:15008: result: $cf_cv_cpp_param_init" >&5
d14742 1
a14742 1
echo "$as_me:15017: checking if $CXX accepts static_cast" >&5
d14756 1
a14756 1
#line 15031 "configure"
d14800 1
a14800 1
if { (eval echo "$as_me:15075: \"$ac_compile\"") >&5
d14803 1
a14803 1
  echo "$as_me:15078: \$? = $ac_status" >&5
d14806 1
a14806 1
  { (eval echo "$as_me:15081: \"$ac_try\"") >&5
d14809 1
a14809 1
  echo "$as_me:15084: \$? = $ac_status" >&5
d14827 1
a14827 1
echo "$as_me:15102: result: $cf_cv_cpp_static_cast" >&5
d14875 1
a14875 1
echo "$as_me:15150: checking for size of bool" >&5
d14886 1
a14886 1
#line 15161 "configure"
d14928 1
a14928 1
if { (eval echo "$as_me:15203: \"$ac_link\"") >&5
d14931 1
a14931 1
  echo "$as_me:15206: \$? = $ac_status" >&5
d14933 1
a14933 1
  { (eval echo "$as_me:15208: \"$ac_try\"") >&5
d14936 1
a14936 1
  echo "$as_me:15211: \$? = $ac_status" >&5
d14954 1
a14954 1
echo "$as_me:15229: result: $cf_cv_type_of_bool" >&5
d14960 1
a14960 1
	{ echo "$as_me:15235: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
d14966 1
a14966 1
			echo "$as_me:15241: checking for fallback type of bool" >&5
d14972 1
a14972 1
			echo "$as_me:15247: result: $cf_cv_type_of_bool" >&5
d15001 1
a15001 1
	{ echo "$as_me:15276: WARNING: libtool does not support Ada - disabling feature" >&5
d15011 1
a15011 1
echo "$as_me:15286: checking for $ac_word" >&5
d15026 1
a15026 1
echo "$as_me:15301: found $ac_dir/$ac_word" >&5
d15035 1
a15035 1
  echo "$as_me:15310: result: $gnat_exists" >&5
d15038 1
a15038 1
  echo "$as_me:15313: result: no" >&5
d15046 1
a15046 1
echo "$as_me:15321: checking for gnat version" >&5
d15050 1
a15050 1
echo "$as_me:15325: result: $cf_gnat_version" >&5
d15073 1
a15073 1
echo "$as_me:15348: checking for $ac_word" >&5
d15088 1
a15088 1
echo "$as_me:15363: found $ac_dir/$ac_word" >&5
d15097 1
a15097 1
  echo "$as_me:15372: result: $M4_exists" >&5
d15100 1
a15100 1
  echo "$as_me:15375: result: no" >&5
d15109 1
a15109 1
      echo "$as_me:15384: checking if GNAT works" >&5
d15137 1
a15137 1
      echo "$as_me:15412: result: $cf_cv_prog_gnat_correct" >&5
d15144 1
a15144 1
   echo "$as_me:15419: checking if GNAT pragma Unreferenced works" >&5
d15171 1
a15171 1
   echo "$as_me:15446: result: $cf_cv_pragma_unreferenced" >&5
d15224 1
a15224 1
  { { echo "$as_me:15499: error: expected a pathname, not \"$withval\"" >&5
d15266 1
a15266 1
  { { echo "$as_me:15541: error: expected a pathname, not \"$withval\"" >&5
d15291 1
a15291 1
echo "$as_me:15566: checking for library subsets" >&5
d15316 1
a15316 1
echo "$as_me:15591: result: $LIB_SUBSETS" >&5
d15354 1
a15354 1
echo "$as_me:15629: checking default library suffix" >&5
d15365 1
a15365 1
echo "$as_me:15640: result: $DFT_ARG_SUFFIX" >&5
d15368 1
a15368 1
echo "$as_me:15643: checking default library-dependency suffix" >&5
d15399 1
a15399 1
echo "$as_me:15674: result: $DFT_DEP_SUFFIX" >&5
d15402 1
a15402 1
echo "$as_me:15677: checking default object directory" >&5
d15418 1
a15418 1
echo "$as_me:15693: result: $DFT_OBJ_SUBDIR" >&5
d15423 1
a15423 1
echo "$as_me:15698: checking c++ library-dependency suffix" >&5
d15449 1
a15449 1
echo "$as_me:15724: result: $CXX_LIB_SUFFIX" >&5
a15546 4
if test "$DFT_LWR_MODEL" = "libtool"; then
    OBJEXT=lo
fi

d15586 1
a15586 1
echo "$as_me:15865: checking where we will install curses.h" >&5
d15591 1
a15591 1
echo "$as_me:15870: result: $includedir" >&5
d15599 1
a15599 1
	{ echo "$as_me:15878: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
d15615 1
a15615 1
echo "$as_me:15894: checking for src modules" >&5
d15678 1
a15678 1
echo "$as_me:15957: result: $cf_cv_src_modules" >&5
d15827 1
a15827 1
echo "$as_me:16106: checking for updated LDFLAGS" >&5
d15830 1
a15830 1
echo "$as_me:16109: result: maybe" >&5
d15834 1
a15834 1
echo "${as_me-configure}:16113: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
d15838 1
a15838 1
echo "${as_me-configure}:16117: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
d15860 1
a15860 1
echo "${as_me-configure}:16139: testing Filtering $cf_rpath_src ..." 1>&5
d15871 1
a15871 1
echo "${as_me-configure}:16150: testing ...Filter $cf_rpath_tmp ..." 1>&5
d15883 1
a15883 1
echo "${as_me-configure}:16162: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
d15887 1
a15887 1
echo "${as_me-configure}:16166: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
d15891 1
a15891 1
echo "$as_me:16170: result: no" >&5
d16001 1
a16001 1
{ echo "$as_me:16280: creating $CONFIG_STATUS" >&5
d16133 1
a16133 1
configured by $0, generated by GNU Autoconf 2.52.20080325,
d16177 1
a16177 1
    { { echo "$as_me:16456: error: ambiguous option: $1
d16196 1
a16196 1
  -*) { { echo "$as_me:16475: error: unrecognized option: $1
d16215 1
a16215 1
This file was extended by $as_me 2.52.20080325, executed with
d16292 1
a16292 1
  *) { { echo "$as_me:16571: error: invalid argument: $ac_config_target" >&5
a16511 1
s,@@TEST_LIBS@@,$TEST_LIBS,;t t
d16673 1
a16673 1
    { echo "$as_me:16953: creating $ac_file" >&5
d16691 1
a16691 1
         test -f "$f" || { { echo "$as_me:16971: error: cannot find input file: $f" >&5
d16704 1
a16704 1
           { { echo "$as_me:16984: error: cannot find input file: $f" >&5
d16770 1
a16770 1
  test x"$ac_file" != x- && { echo "$as_me:17050: creating $ac_file" >&5
d16781 1
a16781 1
         test -f "$f" || { { echo "$as_me:17061: error: cannot find input file: $f" >&5
d16794 1
a16794 1
           { { echo "$as_me:17074: error: cannot find input file: $f" >&5
d16852 1
a16852 1
      { echo "$as_me:17132: $ac_file is unchanged" >&5
@


