2 # From configure.in Revision: 1.413 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20061216.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
225 cache_file=config.cache ;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir=$ac_optarg ;;
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
268 -help | --help | --hel | --he | -h)
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
292 -libdir | --libdir | --libdi | --libd)
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 # Obsolete; use --without-fp.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 sbindir=$ac_optarg ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 sharedstatedir=$ac_optarg ;;
396 -site | --site | --sit)
398 -site=* | --site=* | --sit=*)
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 -version | --version | --versio | --versi | --vers | -V)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
499 eval ac_val=$`echo $ac_var`
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
511 eval ac_val=$`echo $ac_var`
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
539 test "$silent" = yes && exec 6>/dev/null
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597 ac_env_CXX_set=${CXX+set}
598 ac_env_CXX_value=$CXX
599 ac_cv_env_CXX_set=${CXX+set}
600 ac_cv_env_CXX_value=$CXX
601 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
602 ac_env_CXXFLAGS_value=$CXXFLAGS
603 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
604 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
605 ac_env_CXXCPP_set=${CXXCPP+set}
606 ac_env_CXXCPP_value=$CXXCPP
607 ac_cv_env_CXXCPP_set=${CXXCPP+set}
608 ac_cv_env_CXXCPP_value=$CXXCPP
611 # Report the --help message.
613 if test "$ac_init_help" = "long"; then
614 # Omit some internal or obsolete options to make the list less imposing.
615 # This message is too long to be a string in the A/UX 3.1 sh.
617 \`configure' configures this package to adapt to many kinds of systems.
619 Usage: $0 [OPTION]... [VAR=VALUE]...
621 To assign environment variables (e.g., CC, CFLAGS...), specify them as
622 VAR=VALUE. See below for descriptions of some of the useful variables.
624 Defaults for the options are specified in brackets.
627 -h, --help display this help and exit
628 --help=short display options specific to this package
629 --help=recursive display the short help of all the included packages
630 -V, --version display version information and exit
631 -q, --quiet, --silent do not print \`checking...' messages
632 --cache-file=FILE cache test results in FILE [disabled]
633 -C, --config-cache alias for \`--cache-file=config.cache'
634 -n, --no-create do not create output files
635 --srcdir=DIR find the sources in DIR [configure dir or \`..']
640 Installation directories:
641 --prefix=PREFIX install architecture-independent files in PREFIX
643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
646 By default, \`make install' will install all the files in
647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
649 for instance \`--prefix=\$HOME'.
651 For better control, use the options below.
653 Fine tuning of the installation directories:
654 --bindir=DIR user executables [EPREFIX/bin]
655 --sbindir=DIR system admin executables [EPREFIX/sbin]
656 --libexecdir=DIR program executables [EPREFIX/libexec]
657 --datadir=DIR read-only architecture-independent data [PREFIX/share]
658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
661 --libdir=DIR object code libraries [EPREFIX/lib]
662 --includedir=DIR C header files [PREFIX/include]
663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
664 --infodir=DIR info documentation [PREFIX/info]
665 --mandir=DIR man documentation [PREFIX/man]
671 --program-prefix=PREFIX prepend PREFIX to installed program names
672 --program-suffix=SUFFIX append SUFFIX to installed program names
673 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
676 --build=BUILD configure for building on BUILD [guessed]
677 --host=HOST build programs to run on HOST [BUILD]
678 --target=TARGET configure for building compilers for TARGET [HOST]
682 if test -n "$ac_init_help"; then
687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
691 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
692 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
694 --with-rel-version=XXX override derived release version
695 --with-abi-version=XXX override derived ABI version
696 --with-system-type=XXX test: override derived host system-type
697 --without-cxx do not adjust ncurses bool to match C++
698 --without-cxx-binding do not build C++ binding and demo
699 --without-ada suppress check for Ada95, don't build demo
700 --without-progs suppress build with programs (e.g., tic)
701 --without-curses-h install curses.h as ncurses.h only
702 --with-install-prefix prefixes actual install-location ($DESTDIR)
703 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
704 --with-build-cc=XXX the build C compiler ($BUILD_CC)
705 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
706 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
707 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
708 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
709 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
710 Options to Specify the Libraries Built/Used:
711 --with-libtool generate libraries with libtool
712 --with-shared generate shared-libraries
713 --with-normal generate normal-libraries (default)
714 --with-debug generate debug-libraries (default)
715 --with-profile generate profile-libraries
716 --with-termlib generate separate terminfo library
717 --with-ticlib generate separate tic library
718 --with-gpm use Alessandro Rubini's GPM library
719 --without-dlsym do not use dlsym() to load GPM dynamically
720 --with-sysmouse use sysmouse (FreeBSD console)
721 --enable-rpath use rpath option when generating shared libraries
722 --disable-relink relink shared libraries during install
723 --with-shlib-version=X Specify rel or abi version for shared libs
724 Fine-Tuning Your Configuration:
725 --disable-overwrite leave out the link to -lcurses
726 --disable-database do not use terminfo, only fallbacks/termcap
727 --with-database=XXX specify terminfo source to install
728 --with-hashed-db specify hashed-database library
729 --with-fallbacks=XXX specify list of fallback terminal descriptions
730 --without-xterm-new specify if xterm terminfo should be old version
731 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
732 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
733 --disable-big-core assume machine has little memory
734 --enable-termcap compile in termcap fallback support
735 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
736 --enable-getcap fast termcap load, no xrefs to terminfo
737 --enable-getcap-cache cache translated termcaps in ~/.terminfo
738 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
739 --disable-root-environ restrict environment when running as root
740 --enable-symlinks make tic use symbolic links not hard links
741 --enable-broken_linker compile with broken-linker support code
742 --enable-bsdpad recognize BSD-style prefix padding
743 --enable-widec compile with wide-char/UTF-8 code
744 --disable-lp64 allow chtype to be long (ignore _LP64)
745 --disable-largefile omit support for large files
746 --disable-tparm-varargs compile tparm() without varargs interface
747 --with-bool=TYPE override fallback type of bool variable
748 --with-caps=alt compile with alternate Caps file
749 --with-chtype=TYPE override type of chtype
750 --with-ospeed=TYPE override type of ospeed variable
751 --with-mmask-t=TYPE override type of mmask_t
752 --with-rcs-ids compile-in RCS identifiers
753 Options to Specify How Manpages are Installed:
754 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
755 optionally formatted/catonly, e.g., gzip,formatted
756 --with-manpage-renames specify manpage-renaming
757 --with-manpage-aliases specify manpage-aliases using .so
758 --with-manpage-symlinks specify manpage-aliases using symlinks
759 --with-manpage-tbl specify manpage processing with tbl
761 --disable-ext-funcs disable function-extensions
762 --enable-const compile with extra/non-standard const
763 --enable-no-padding compile with $NCURSES_NO_PADDING code
764 --enable-signed-char compile using signed Boolean's in term.h
765 --enable-sigwinch compile with SIGWINCH handler
766 --enable-tcap-names compile with user-definable terminal capabilities
768 --without-develop disable development options
769 --enable-hard-tabs compile with hard-tabs code
770 --enable-xmc-glitch compile with support for xmc (magic-cookie)
772 --disable-assumed-color do not assume anything about default-colors
773 --disable-hashmap compile without hashmap scrolling-optimization
774 --enable-colorfgbg compile with $COLORFGBG code
775 --enable-ext-colors compile for experimental 256-color support
776 --enable-ext-mouse compile for experimental mouse-encoding
777 --enable-reentrant compile with experimental reentrant code
778 --enable-safe-sprintf compile with experimental safe-sprintf code
779 --disable-scroll-hints compile without scroll-hints code
780 --enable-wgetch-events compile with experimental wgetch-events code
781 Testing/development Options:
782 --enable-echo build: display "compiling" commands (default)
783 --enable-warnings build: turn on GCC compiler warnings
784 --enable-assertions test: turn on generation of assertion code
785 --with-dmalloc test: use Gray Watson's dmalloc library
786 --with-dbmalloc test: use Conor Cahill's dbmalloc library
787 --with-valgrind test: use valgrind
788 --disable-leaks test: free permanent memory, analyze leaks
789 --enable-expanded test: generate functions for certain macros
790 --disable-macros test: use functions rather than macros
791 --with-trace test: add trace() function to all models of ncurses
792 Ada95 Binding Options:
793 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
794 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
795 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
797 Some influential environment variables:
798 CC C compiler command
799 CFLAGS C compiler flags
800 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
801 nonstandard directory <lib dir>
802 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
803 headers in a nonstandard directory <include dir>
805 CXX C++ compiler command
806 CXXFLAGS C++ compiler flags
807 CXXCPP C++ preprocessor
809 Use these variables to override the choices made by `configure' or to help
810 it to find libraries and programs with nonstandard names/locations.
815 if test "$ac_init_help" = "recursive"; then
816 # If there are subdirs, report their specific --help.
818 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
820 # A "../" for each directory in /$ac_subdir.
821 ac_dots=`echo $ac_subdir |
822 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
825 .) # No --srcdir option. We are building in place.
826 ac_sub_srcdir=$srcdir ;;
827 [\\/]* | ?:[\\/]* ) # Absolute path.
828 ac_sub_srcdir=$srcdir/$ac_subdir ;;
830 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
833 # Check for guested configure; otherwise get Cygnus style configure.
834 if test -f $ac_sub_srcdir/configure.gnu; then
836 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
837 elif test -f $ac_sub_srcdir/configure; then
839 $SHELL $ac_sub_srcdir/configure --help=recursive
840 elif test -f $ac_sub_srcdir/configure.ac ||
841 test -f $ac_sub_srcdir/configure.in; then
845 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
851 test -n "$ac_init_help" && exit 0
852 if $ac_init_version; then
855 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
856 Free Software Foundation, Inc.
857 This configure script is free software; the Free Software Foundation
858 gives unlimited permission to copy, distribute and modify it.
864 This file contains any messages produced by compilers while
865 running configure, to aid debugging if configure makes a mistake.
867 It was created by $as_me, which was
868 generated by GNU Autoconf 2.52.20061216. Invocation command line was
879 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
880 uname -m = `(uname -m) 2>/dev/null || echo unknown`
881 uname -r = `(uname -r) 2>/dev/null || echo unknown`
882 uname -s = `(uname -s) 2>/dev/null || echo unknown`
883 uname -v = `(uname -v) 2>/dev/null || echo unknown`
885 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
886 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
888 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
889 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
890 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
891 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
892 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
893 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
894 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
908 # Keep a trace of the command line.
909 # Strip out --no-create and --no-recursion so they do not pile up.
910 # Also quote any args containing shell meta-characters.
916 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
917 | --no-cr | --no-c) ;;
918 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
919 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
920 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
921 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
922 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
924 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
927 # Get rid of the leading space.
930 # When interrupted or exit'd, cleanup temporary files, and complete
931 # config.log. We remove comments because anyway the quotes in there
932 # would cause problems or look ugly.
934 # Save into config.log some information that might help in debugging.
936 echo "## ----------------- ##" >&5
937 echo "## Cache variables. ##" >&5
938 echo "## ----------------- ##" >&5
940 # The following way of writing the cache mishandles newlines in values,
943 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
946 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
951 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
955 sed "/^$/d" confdefs.h >conftest.log
956 if test -s conftest.log; then
958 echo "## ------------ ##" >&5
959 echo "## confdefs.h. ##" >&5
960 echo "## ------------ ##" >&5
965 test "$ac_signal" != 0 &&
966 echo "$as_me: caught signal $ac_signal" >&5
967 echo "$as_me: exit $exit_status" >&5
968 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
971 for ac_signal in 1 2 13 15; do
972 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
976 # confdefs.h avoids OS command line length limits that DEFS can exceed.
977 rm -rf conftest* confdefs.h
978 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
981 # Let the site file select an alternate cache file if it wants to.
982 # Prefer explicitly selected file to automatically selected ones.
983 if test -z "$CONFIG_SITE"; then
984 if test "x$prefix" != xNONE; then
985 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
987 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
990 for ac_site_file in $CONFIG_SITE; do
991 if test -r "$ac_site_file"; then
992 { echo "$as_me:992: loading site script $ac_site_file" >&5
993 echo "$as_me: loading site script $ac_site_file" >&6;}
994 cat "$ac_site_file" >&5
999 if test -r "$cache_file"; then
1000 # Some versions of bash will fail to source /dev/null (special
1001 # files actually), so we avoid doing that.
1002 if test -f "$cache_file"; then
1003 { echo "$as_me:1003: loading cache $cache_file" >&5
1004 echo "$as_me: loading cache $cache_file" >&6;}
1006 [\\/]* | ?:[\\/]* ) . $cache_file;;
1007 *) . ./$cache_file;;
1011 { echo "$as_me:1011: creating cache $cache_file" >&5
1012 echo "$as_me: creating cache $cache_file" >&6;}
1016 # Check that the precious variables saved in the cache have kept the same
1018 ac_cache_corrupted=false
1019 for ac_var in `(set) 2>&1 |
1020 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1021 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1022 eval ac_new_set=\$ac_env_${ac_var}_set
1023 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1024 eval ac_new_val="\$ac_env_${ac_var}_value"
1025 case $ac_old_set,$ac_new_set in
1027 { echo "$as_me:1027: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1028 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1029 ac_cache_corrupted=: ;;
1031 { echo "$as_me:1031: error: \`$ac_var' was not set in the previous run" >&5
1032 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1033 ac_cache_corrupted=: ;;
1036 if test "x$ac_old_val" != "x$ac_new_val"; then
1037 { echo "$as_me:1037: error: \`$ac_var' has changed since the previous run:" >&5
1038 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1039 { echo "$as_me:1039: former value: $ac_old_val" >&5
1040 echo "$as_me: former value: $ac_old_val" >&2;}
1041 { echo "$as_me:1041: current value: $ac_new_val" >&5
1042 echo "$as_me: current value: $ac_new_val" >&2;}
1043 ac_cache_corrupted=:
1046 # Pass precious variables to config.status. It doesn't matter if
1047 # we pass some twice (in addition to the command line arguments).
1048 if test "$ac_new_set" = set; then
1050 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1052 ac_configure_args="$ac_configure_args '$ac_arg'"
1054 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1059 if $ac_cache_corrupted; then
1060 { echo "$as_me:1060: error: changes in the environment can compromise the build" >&5
1061 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1062 { { echo "$as_me:1062: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1063 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1064 { (exit 1); exit 1; }; }
1068 ac_cpp='$CPP $CPPFLAGS'
1069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1072 ac_main_return=return
1074 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1075 *c*,-n*) ECHO_N= ECHO_C='
1077 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1078 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1080 echo "#! $SHELL" >conftest.sh
1081 echo "exit 0" >>conftest.sh
1082 chmod +x conftest.sh
1083 if { (echo "$as_me:1083: PATH=\".;.\"; conftest.sh") >&5
1084 (PATH=".;."; conftest.sh) 2>&5
1086 echo "$as_me:1086: \$? = $ac_status" >&5
1087 (exit $ac_status); }; then
1088 ac_path_separator=';'
1092 PATH_SEPARATOR="$ac_path_separator"
1095 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1099 echo "$as_me:1099: checking for egrep" >&5
1100 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1101 if test "${ac_cv_prog_egrep+set}" = set; then
1102 echo $ECHO_N "(cached) $ECHO_C" >&6
1104 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1105 then ac_cv_prog_egrep='grep -E'
1106 else ac_cv_prog_egrep='egrep'
1109 echo "$as_me:1109: result: $ac_cv_prog_egrep" >&5
1110 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1111 EGREP=$ac_cv_prog_egrep
1113 test -z "$EGREP" && { { echo "$as_me:1113: error: No egrep program found" >&5
1114 echo "$as_me: error: No egrep program found" >&2;}
1115 { (exit 1); exit 1; }; }
1117 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1118 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1119 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1120 cf_cv_abi_version=${NCURSES_MAJOR}
1121 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1122 cf_cv_timestamp=`date`
1123 echo "$as_me:1123: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1124 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1126 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1128 # Check whether --with-rel-version or --without-rel-version was given.
1129 if test "${with_rel_version+set}" = set; then
1130 withval="$with_rel_version"
1131 { echo "$as_me:1131: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1132 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1133 cf_cv_rel_version=$withval
1136 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1137 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1139 if test -n "$NCURSES_MAJOR" ; then
1140 case $NCURSES_MAJOR in #(vi
1144 { { echo "$as_me:1144: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1145 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1146 { (exit 1); exit 1; }; }
1150 { { echo "$as_me:1150: error: Release major-version value is empty" >&5
1151 echo "$as_me: error: Release major-version value is empty" >&2;}
1152 { (exit 1); exit 1; }; }
1155 if test -n "$NCURSES_MINOR" ; then
1156 case $NCURSES_MINOR in #(vi
1160 { { echo "$as_me:1160: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1161 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1162 { (exit 1); exit 1; }; }
1166 { { echo "$as_me:1166: error: Release minor-version value is empty" >&5
1167 echo "$as_me: error: Release minor-version value is empty" >&2;}
1168 { (exit 1); exit 1; }; }
1171 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1173 # Check whether --with-abi-version or --without-abi-version was given.
1174 if test "${with_abi_version+set}" = set; then
1175 withval="$with_abi_version"
1176 { echo "$as_me:1176: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1177 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1178 cf_cv_abi_version=$withval
1181 if test -n "$cf_cv_abi_version" ; then
1182 case $cf_cv_abi_version in #(vi
1186 { { echo "$as_me:1186: error: ABI version is not a number: $cf_cv_abi_version" >&5
1187 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1188 { (exit 1); exit 1; }; }
1192 { { echo "$as_me:1192: error: ABI version value is empty" >&5
1193 echo "$as_me: error: ABI version value is empty" >&2;}
1194 { (exit 1); exit 1; }; }
1198 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1199 if test -f $ac_dir/install-sh; then
1201 ac_install_sh="$ac_aux_dir/install-sh -c"
1203 elif test -f $ac_dir/install.sh; then
1205 ac_install_sh="$ac_aux_dir/install.sh -c"
1207 elif test -f $ac_dir/shtool; then
1209 ac_install_sh="$ac_aux_dir/shtool install -c"
1213 if test -z "$ac_aux_dir"; then
1214 { { echo "$as_me:1214: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1215 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1216 { (exit 1); exit 1; }; }
1218 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1219 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1220 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1222 # Make sure we can run config.sub.
1223 $ac_config_sub sun4 >/dev/null 2>&1 ||
1224 { { echo "$as_me:1224: error: cannot run $ac_config_sub" >&5
1225 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1226 { (exit 1); exit 1; }; }
1228 echo "$as_me:1228: checking build system type" >&5
1229 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1230 if test "${ac_cv_build+set}" = set; then
1231 echo $ECHO_N "(cached) $ECHO_C" >&6
1233 ac_cv_build_alias=$build_alias
1234 test -z "$ac_cv_build_alias" &&
1235 ac_cv_build_alias=`$ac_config_guess`
1236 test -z "$ac_cv_build_alias" &&
1237 { { echo "$as_me:1237: error: cannot guess build type; you must specify one" >&5
1238 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1239 { (exit 1); exit 1; }; }
1240 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1241 { { echo "$as_me:1241: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1242 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1243 { (exit 1); exit 1; }; }
1246 echo "$as_me:1246: result: $ac_cv_build" >&5
1247 echo "${ECHO_T}$ac_cv_build" >&6
1249 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1250 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1251 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1253 echo "$as_me:1253: checking host system type" >&5
1254 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1255 if test "${ac_cv_host+set}" = set; then
1256 echo $ECHO_N "(cached) $ECHO_C" >&6
1258 ac_cv_host_alias=$host_alias
1259 test -z "$ac_cv_host_alias" &&
1260 ac_cv_host_alias=$ac_cv_build_alias
1261 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1262 { { echo "$as_me:1262: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1263 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1264 { (exit 1); exit 1; }; }
1267 echo "$as_me:1267: result: $ac_cv_host" >&5
1268 echo "${ECHO_T}$ac_cv_host" >&6
1270 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1271 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1272 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1274 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1275 echo "$as_me:1275: checking target system type" >&5
1276 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1277 if test "${ac_cv_target+set}" = set; then
1278 echo $ECHO_N "(cached) $ECHO_C" >&6
1280 ac_cv_target_alias=$target_alias
1281 test "x$ac_cv_target_alias" = "x" &&
1282 ac_cv_target_alias=$ac_cv_host_alias
1283 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1284 { { echo "$as_me:1284: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1285 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1286 { (exit 1); exit 1; }; }
1289 echo "$as_me:1289: result: $ac_cv_target" >&5
1290 echo "${ECHO_T}$ac_cv_target" >&6
1291 target=$ac_cv_target
1292 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1293 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1294 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1296 # The aliases save the names the user supplied, while $host etc.
1297 # will get canonicalized.
1298 test -n "$target_alias" &&
1299 test "$program_prefix$program_suffix$program_transform_name" = \
1301 program_prefix=${target_alias}-
1302 system_name="$host_os"
1304 system_name="`(uname -s -r) 2>/dev/null`"
1305 if test -z "$system_name" ; then
1306 system_name="`(hostname) 2>/dev/null`"
1309 test -n "$system_name" && cat >>confdefs.h <<EOF
1310 #define SYSTEM_NAME "$system_name"
1313 if test "${cf_cv_system_name+set}" = set; then
1314 echo $ECHO_N "(cached) $ECHO_C" >&6
1316 cf_cv_system_name="$system_name"
1319 test -z "$system_name" && system_name="$cf_cv_system_name"
1320 test -n "$cf_cv_system_name" && echo "$as_me:1320: result: Configuring for $cf_cv_system_name" >&5
1321 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1323 if test ".$system_name" != ".$cf_cv_system_name" ; then
1324 echo "$as_me:1324: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1325 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1326 { { echo "$as_me:1326: error: \"Please remove config.cache and try again.\"" >&5
1327 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1328 { (exit 1); exit 1; }; }
1331 # Check whether --with-system-type or --without-system-type was given.
1332 if test "${with_system_type+set}" = set; then
1333 withval="$with_system_type"
1334 { echo "$as_me:1334: WARNING: overriding system type to $withval" >&5
1335 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1336 cf_cv_system_name=$withval
1339 ### Save the given $CFLAGS to allow user-override.
1340 cf_user_CFLAGS="$CFLAGS"
1342 ### Default install-location
1344 echo "$as_me:1344: checking for prefix" >&5
1345 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1346 if test "x$prefix" = "xNONE" ; then
1347 case "$cf_cv_system_name" in
1348 # non-vendor systems don't have a conflict
1349 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1352 *) prefix=$ac_default_prefix
1356 echo "$as_me:1356: result: $prefix" >&5
1357 echo "${ECHO_T}$prefix" >&6
1359 if test "x$prefix" = "xNONE" ; then
1360 echo "$as_me:1360: checking for default include-directory" >&5
1361 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1362 test -n "$verbose" && echo 1>&6
1365 $includedir/ncurses \
1367 $prefix/include/ncurses \
1368 /usr/local/include \
1369 /usr/local/include/ncurses \
1371 /usr/include/ncurses
1373 cf_dir=`eval echo $cf_symbol`
1374 if test -f $cf_dir/curses.h ; then
1375 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1376 includedir="$cf_symbol"
1377 test -n "$verbose" && echo $ac_n " found " 1>&6
1381 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1383 echo "$as_me:1383: result: $includedir" >&5
1384 echo "${ECHO_T}$includedir" >&6
1387 ### Checks for programs.
1389 ac_cpp='$CPP $CPPFLAGS'
1390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1393 ac_main_return=return
1394 if test -n "$ac_tool_prefix"; then
1395 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1396 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1397 echo "$as_me:1397: checking for $ac_word" >&5
1398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1399 if test "${ac_cv_prog_CC+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1402 if test -n "$CC"; then
1403 ac_cv_prog_CC="$CC" # Let the user override the test.
1405 ac_save_IFS=$IFS; IFS=$ac_path_separator
1407 for ac_dir in $ac_dummy; do
1409 test -z "$ac_dir" && ac_dir=.
1410 $as_executable_p "$ac_dir/$ac_word" || continue
1411 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1412 echo "$as_me:1412: found $ac_dir/$ac_word" >&5
1419 if test -n "$CC"; then
1420 echo "$as_me:1420: result: $CC" >&5
1421 echo "${ECHO_T}$CC" >&6
1423 echo "$as_me:1423: result: no" >&5
1424 echo "${ECHO_T}no" >&6
1428 if test -z "$ac_cv_prog_CC"; then
1430 # Extract the first word of "gcc", so it can be a program name with args.
1431 set dummy gcc; ac_word=$2
1432 echo "$as_me:1432: checking for $ac_word" >&5
1433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1434 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 if test -n "$ac_ct_CC"; then
1438 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1440 ac_save_IFS=$IFS; IFS=$ac_path_separator
1442 for ac_dir in $ac_dummy; do
1444 test -z "$ac_dir" && ac_dir=.
1445 $as_executable_p "$ac_dir/$ac_word" || continue
1446 ac_cv_prog_ac_ct_CC="gcc"
1447 echo "$as_me:1447: found $ac_dir/$ac_word" >&5
1453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1454 if test -n "$ac_ct_CC"; then
1455 echo "$as_me:1455: result: $ac_ct_CC" >&5
1456 echo "${ECHO_T}$ac_ct_CC" >&6
1458 echo "$as_me:1458: result: no" >&5
1459 echo "${ECHO_T}no" >&6
1467 if test -z "$CC"; then
1468 if test -n "$ac_tool_prefix"; then
1469 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1470 set dummy ${ac_tool_prefix}cc; ac_word=$2
1471 echo "$as_me:1471: checking for $ac_word" >&5
1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473 if test "${ac_cv_prog_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 if test -n "$CC"; then
1477 ac_cv_prog_CC="$CC" # Let the user override the test.
1479 ac_save_IFS=$IFS; IFS=$ac_path_separator
1481 for ac_dir in $ac_dummy; do
1483 test -z "$ac_dir" && ac_dir=.
1484 $as_executable_p "$ac_dir/$ac_word" || continue
1485 ac_cv_prog_CC="${ac_tool_prefix}cc"
1486 echo "$as_me:1486: found $ac_dir/$ac_word" >&5
1493 if test -n "$CC"; then
1494 echo "$as_me:1494: result: $CC" >&5
1495 echo "${ECHO_T}$CC" >&6
1497 echo "$as_me:1497: result: no" >&5
1498 echo "${ECHO_T}no" >&6
1502 if test -z "$ac_cv_prog_CC"; then
1504 # Extract the first word of "cc", so it can be a program name with args.
1505 set dummy cc; ac_word=$2
1506 echo "$as_me:1506: checking for $ac_word" >&5
1507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 if test -n "$ac_ct_CC"; then
1512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1514 ac_save_IFS=$IFS; IFS=$ac_path_separator
1516 for ac_dir in $ac_dummy; do
1518 test -z "$ac_dir" && ac_dir=.
1519 $as_executable_p "$ac_dir/$ac_word" || continue
1520 ac_cv_prog_ac_ct_CC="cc"
1521 echo "$as_me:1521: found $ac_dir/$ac_word" >&5
1527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1528 if test -n "$ac_ct_CC"; then
1529 echo "$as_me:1529: result: $ac_ct_CC" >&5
1530 echo "${ECHO_T}$ac_ct_CC" >&6
1532 echo "$as_me:1532: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1542 if test -z "$CC"; then
1543 # Extract the first word of "cc", so it can be a program name with args.
1544 set dummy cc; ac_word=$2
1545 echo "$as_me:1545: checking for $ac_word" >&5
1546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547 if test "${ac_cv_prog_CC+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 if test -n "$CC"; then
1551 ac_cv_prog_CC="$CC" # Let the user override the test.
1554 ac_save_IFS=$IFS; IFS=$ac_path_separator
1556 for ac_dir in $ac_dummy; do
1558 test -z "$ac_dir" && ac_dir=.
1559 $as_executable_p "$ac_dir/$ac_word" || continue
1560 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1561 ac_prog_rejected=yes
1565 echo "$as_me:1565: found $ac_dir/$ac_word" >&5
1569 if test $ac_prog_rejected = yes; then
1570 # We found a bogon in the path, so make sure we never use it.
1571 set dummy $ac_cv_prog_CC
1573 if test $# != 0; then
1574 # We chose a different compiler from the bogus one.
1575 # However, it has the same basename, so the bogon will be chosen
1576 # first if we set CC to just the basename; use the full file name.
1578 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1586 if test -n "$CC"; then
1587 echo "$as_me:1587: result: $CC" >&5
1588 echo "${ECHO_T}$CC" >&6
1590 echo "$as_me:1590: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1595 if test -z "$CC"; then
1596 if test -n "$ac_tool_prefix"; then
1599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1601 echo "$as_me:1601: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
1609 ac_save_IFS=$IFS; IFS=$ac_path_separator
1611 for ac_dir in $ac_dummy; do
1613 test -z "$ac_dir" && ac_dir=.
1614 $as_executable_p "$ac_dir/$ac_word" || continue
1615 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1616 echo "$as_me:1616: found $ac_dir/$ac_word" >&5
1623 if test -n "$CC"; then
1624 echo "$as_me:1624: result: $CC" >&5
1625 echo "${ECHO_T}$CC" >&6
1627 echo "$as_me:1627: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1631 test -n "$CC" && break
1634 if test -z "$CC"; then
1638 # Extract the first word of "$ac_prog", so it can be a program name with args.
1639 set dummy $ac_prog; ac_word=$2
1640 echo "$as_me:1640: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 if test -n "$ac_ct_CC"; then
1646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1648 ac_save_IFS=$IFS; IFS=$ac_path_separator
1650 for ac_dir in $ac_dummy; do
1652 test -z "$ac_dir" && ac_dir=.
1653 $as_executable_p "$ac_dir/$ac_word" || continue
1654 ac_cv_prog_ac_ct_CC="$ac_prog"
1655 echo "$as_me:1655: found $ac_dir/$ac_word" >&5
1661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662 if test -n "$ac_ct_CC"; then
1663 echo "$as_me:1663: result: $ac_ct_CC" >&5
1664 echo "${ECHO_T}$ac_ct_CC" >&6
1666 echo "$as_me:1666: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1670 test -n "$ac_ct_CC" && break
1678 test -z "$CC" && { { echo "$as_me:1678: error: no acceptable cc found in \$PATH" >&5
1679 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1680 { (exit 1); exit 1; }; }
1682 # Provide some information about the compiler.
1683 echo "$as_me:1683:" \
1684 "checking for C compiler version" >&5
1685 ac_compiler=`set X $ac_compile; echo $2`
1686 { (eval echo "$as_me:1686: \"$ac_compiler --version </dev/null >&5\"") >&5
1687 (eval $ac_compiler --version </dev/null >&5) 2>&5
1689 echo "$as_me:1689: \$? = $ac_status" >&5
1690 (exit $ac_status); }
1691 { (eval echo "$as_me:1691: \"$ac_compiler -v </dev/null >&5\"") >&5
1692 (eval $ac_compiler -v </dev/null >&5) 2>&5
1694 echo "$as_me:1694: \$? = $ac_status" >&5
1695 (exit $ac_status); }
1696 { (eval echo "$as_me:1696: \"$ac_compiler -V </dev/null >&5\"") >&5
1697 (eval $ac_compiler -V </dev/null >&5) 2>&5
1699 echo "$as_me:1699: \$? = $ac_status" >&5
1700 (exit $ac_status); }
1702 cat >conftest.$ac_ext <<_ACEOF
1703 #line 1703 "configure"
1704 #include "confdefs.h"
1714 ac_clean_files_save=$ac_clean_files
1715 ac_clean_files="$ac_clean_files a.out a.exe"
1716 # Try to create an executable without -o first, disregard a.out.
1717 # It will help us diagnose broken compilers, and finding out an intuition
1719 echo "$as_me:1719: checking for C compiler default output" >&5
1720 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1721 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1722 if { (eval echo "$as_me:1722: \"$ac_link_default\"") >&5
1723 (eval $ac_link_default) 2>&5
1725 echo "$as_me:1725: \$? = $ac_status" >&5
1726 (exit $ac_status); }; then
1727 # Find the output, starting from the most likely. This scheme is
1728 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1730 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1731 ls a.out conftest 2>/dev/null;
1732 ls a.* conftest.* 2>/dev/null`; do
1734 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1735 a.out ) # We found the default executable, but exeext='' is most
1738 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1739 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1746 echo "$as_me: failed program was:" >&5
1747 cat conftest.$ac_ext >&5
1748 { { echo "$as_me:1748: error: C compiler cannot create executables" >&5
1749 echo "$as_me: error: C compiler cannot create executables" >&2;}
1750 { (exit 77); exit 77; }; }
1753 ac_exeext=$ac_cv_exeext
1754 echo "$as_me:1754: result: $ac_file" >&5
1755 echo "${ECHO_T}$ac_file" >&6
1757 # Check the compiler produces executables we can run. If not, either
1758 # the compiler is broken, or we cross compile.
1759 echo "$as_me:1759: checking whether the C compiler works" >&5
1760 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1761 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1762 # If not cross compiling, check that we can run a simple program.
1763 if test "$cross_compiling" != yes; then
1764 if { ac_try='./$ac_file'
1765 { (eval echo "$as_me:1765: \"$ac_try\"") >&5
1768 echo "$as_me:1768: \$? = $ac_status" >&5
1769 (exit $ac_status); }; }; then
1772 if test "$cross_compiling" = maybe; then
1775 { { echo "$as_me:1775: error: cannot run C compiled programs.
1776 If you meant to cross compile, use \`--host'." >&5
1777 echo "$as_me: error: cannot run C compiled programs.
1778 If you meant to cross compile, use \`--host'." >&2;}
1779 { (exit 1); exit 1; }; }
1783 echo "$as_me:1783: result: yes" >&5
1784 echo "${ECHO_T}yes" >&6
1786 rm -f a.out a.exe conftest$ac_cv_exeext
1787 ac_clean_files=$ac_clean_files_save
1788 # Check the compiler produces executables we can run. If not, either
1789 # the compiler is broken, or we cross compile.
1790 echo "$as_me:1790: checking whether we are cross compiling" >&5
1791 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1792 echo "$as_me:1792: result: $cross_compiling" >&5
1793 echo "${ECHO_T}$cross_compiling" >&6
1795 echo "$as_me:1795: checking for executable suffix" >&5
1796 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1797 if { (eval echo "$as_me:1797: \"$ac_link\"") >&5
1798 (eval $ac_link) 2>&5
1800 echo "$as_me:1800: \$? = $ac_status" >&5
1801 (exit $ac_status); }; then
1802 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1803 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1804 # work properly (i.e., refer to `conftest.exe'), while it won't with
1806 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1808 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1809 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1816 { { echo "$as_me:1816: error: cannot compute EXEEXT: cannot compile and link" >&5
1817 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1818 { (exit 1); exit 1; }; }
1821 rm -f conftest$ac_cv_exeext
1822 echo "$as_me:1822: result: $ac_cv_exeext" >&5
1823 echo "${ECHO_T}$ac_cv_exeext" >&6
1825 rm -f conftest.$ac_ext
1826 EXEEXT=$ac_cv_exeext
1828 echo "$as_me:1828: checking for object suffix" >&5
1829 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1830 if test "${ac_cv_objext+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 cat >conftest.$ac_ext <<_ACEOF
1834 #line 1834 "configure"
1835 #include "confdefs.h"
1845 rm -f conftest.o conftest.obj
1846 if { (eval echo "$as_me:1846: \"$ac_compile\"") >&5
1847 (eval $ac_compile) 2>&5
1849 echo "$as_me:1849: \$? = $ac_status" >&5
1850 (exit $ac_status); }; then
1851 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1854 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1859 echo "$as_me: failed program was:" >&5
1860 cat conftest.$ac_ext >&5
1861 { { echo "$as_me:1861: error: cannot compute OBJEXT: cannot compile" >&5
1862 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1863 { (exit 1); exit 1; }; }
1866 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1868 echo "$as_me:1868: result: $ac_cv_objext" >&5
1869 echo "${ECHO_T}$ac_cv_objext" >&6
1870 OBJEXT=$ac_cv_objext
1872 echo "$as_me:1872: checking whether we are using the GNU C compiler" >&5
1873 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1874 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 cat >conftest.$ac_ext <<_ACEOF
1878 #line 1878 "configure"
1879 #include "confdefs.h"
1892 rm -f conftest.$ac_objext
1893 if { (eval echo "$as_me:1893: \"$ac_compile\"") >&5
1894 (eval $ac_compile) 2>&5
1896 echo "$as_me:1896: \$? = $ac_status" >&5
1897 (exit $ac_status); } &&
1898 { ac_try='test -s conftest.$ac_objext'
1899 { (eval echo "$as_me:1899: \"$ac_try\"") >&5
1902 echo "$as_me:1902: \$? = $ac_status" >&5
1903 (exit $ac_status); }; }; then
1906 echo "$as_me: failed program was:" >&5
1907 cat conftest.$ac_ext >&5
1910 rm -f conftest.$ac_objext conftest.$ac_ext
1911 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1914 echo "$as_me:1914: result: $ac_cv_c_compiler_gnu" >&5
1915 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1916 GCC=`test $ac_compiler_gnu = yes && echo yes`
1917 ac_test_CFLAGS=${CFLAGS+set}
1918 ac_save_CFLAGS=$CFLAGS
1920 echo "$as_me:1920: checking whether $CC accepts -g" >&5
1921 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1922 if test "${ac_cv_prog_cc_g+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 cat >conftest.$ac_ext <<_ACEOF
1926 #line 1926 "configure"
1927 #include "confdefs.h"
1937 rm -f conftest.$ac_objext
1938 if { (eval echo "$as_me:1938: \"$ac_compile\"") >&5
1939 (eval $ac_compile) 2>&5
1941 echo "$as_me:1941: \$? = $ac_status" >&5
1942 (exit $ac_status); } &&
1943 { ac_try='test -s conftest.$ac_objext'
1944 { (eval echo "$as_me:1944: \"$ac_try\"") >&5
1947 echo "$as_me:1947: \$? = $ac_status" >&5
1948 (exit $ac_status); }; }; then
1951 echo "$as_me: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1955 rm -f conftest.$ac_objext conftest.$ac_ext
1957 echo "$as_me:1957: result: $ac_cv_prog_cc_g" >&5
1958 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1959 if test "$ac_test_CFLAGS" = set; then
1960 CFLAGS=$ac_save_CFLAGS
1961 elif test $ac_cv_prog_cc_g = yes; then
1962 if test "$GCC" = yes; then
1968 if test "$GCC" = yes; then
1974 # Some people use a C++ compiler to compile C. Since we use `exit',
1975 # in C++ we need to declare it. In case someone uses the same compiler
1976 # for both compiling C and C++ we need to have the C++ compiler decide
1977 # the declaration of exit, since it's the most demanding environment.
1978 cat >conftest.$ac_ext <<_ACEOF
1983 rm -f conftest.$ac_objext
1984 if { (eval echo "$as_me:1984: \"$ac_compile\"") >&5
1985 (eval $ac_compile) 2>&5
1987 echo "$as_me:1987: \$? = $ac_status" >&5
1988 (exit $ac_status); } &&
1989 { ac_try='test -s conftest.$ac_objext'
1990 { (eval echo "$as_me:1990: \"$ac_try\"") >&5
1993 echo "$as_me:1993: \$? = $ac_status" >&5
1994 (exit $ac_status); }; }; then
1995 for ac_declaration in \
1997 '#include <stdlib.h>' \
1998 'extern "C" void std::exit (int) throw (); using std::exit;' \
1999 'extern "C" void std::exit (int); using std::exit;' \
2000 'extern "C" void exit (int) throw ();' \
2001 'extern "C" void exit (int);' \
2004 cat >conftest.$ac_ext <<_ACEOF
2005 #line 2005 "configure"
2006 #include "confdefs.h"
2017 rm -f conftest.$ac_objext
2018 if { (eval echo "$as_me:2018: \"$ac_compile\"") >&5
2019 (eval $ac_compile) 2>&5
2021 echo "$as_me:2021: \$? = $ac_status" >&5
2022 (exit $ac_status); } &&
2023 { ac_try='test -s conftest.$ac_objext'
2024 { (eval echo "$as_me:2024: \"$ac_try\"") >&5
2027 echo "$as_me:2027: \$? = $ac_status" >&5
2028 (exit $ac_status); }; }; then
2031 echo "$as_me: failed program was:" >&5
2032 cat conftest.$ac_ext >&5
2035 rm -f conftest.$ac_objext conftest.$ac_ext
2036 cat >conftest.$ac_ext <<_ACEOF
2037 #line 2037 "configure"
2038 #include "confdefs.h"
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:2049: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>&5
2052 echo "$as_me:2052: \$? = $ac_status" >&5
2053 (exit $ac_status); } &&
2054 { ac_try='test -s conftest.$ac_objext'
2055 { (eval echo "$as_me:2055: \"$ac_try\"") >&5
2058 echo "$as_me:2058: \$? = $ac_status" >&5
2059 (exit $ac_status); }; }; then
2062 echo "$as_me: failed program was:" >&5
2063 cat conftest.$ac_ext >&5
2065 rm -f conftest.$ac_objext conftest.$ac_ext
2068 if test -n "$ac_declaration"; then
2069 echo '#ifdef __cplusplus' >>confdefs.h
2070 echo $ac_declaration >>confdefs.h
2071 echo '#endif' >>confdefs.h
2075 echo "$as_me: failed program was:" >&5
2076 cat conftest.$ac_ext >&5
2078 rm -f conftest.$ac_objext conftest.$ac_ext
2080 ac_cpp='$CPP $CPPFLAGS'
2081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2084 ac_main_return=return
2087 if test "$GCC" = yes ; then
2088 echo "$as_me:2088: checking version of $CC" >&5
2089 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2090 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2091 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2092 echo "$as_me:2092: result: $GCC_VERSION" >&5
2093 echo "${ECHO_T}$GCC_VERSION" >&6
2097 ac_cpp='$CPP $CPPFLAGS'
2098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2101 ac_main_return=return
2102 echo "$as_me:2102: checking how to run the C preprocessor" >&5
2103 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2104 # On Suns, sometimes $CPP names a directory.
2105 if test -n "$CPP" && test -d "$CPP"; then
2108 if test -z "$CPP"; then
2109 if test "${ac_cv_prog_CPP+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 # Double quotes because CPP needs to be expanded
2113 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2116 for ac_c_preproc_warn_flag in '' yes
2118 # Use a header file that comes with gcc, so configuring glibc
2119 # with a fresh cross-compiler works.
2120 # On the NeXT, cc -E runs the code through the compiler's parser,
2121 # not just through cpp. "Syntax error" is here to catch this case.
2122 cat >conftest.$ac_ext <<_ACEOF
2123 #line 2123 "configure"
2124 #include "confdefs.h"
2128 if { (eval echo "$as_me:2128: \"$ac_cpp conftest.$ac_ext\"") >&5
2129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2131 egrep -v '^ *\+' conftest.er1 >conftest.err
2133 cat conftest.err >&5
2134 echo "$as_me:2134: \$? = $ac_status" >&5
2135 (exit $ac_status); } >/dev/null; then
2136 if test -s conftest.err; then
2137 ac_cpp_err=$ac_c_preproc_warn_flag
2144 if test -z "$ac_cpp_err"; then
2147 echo "$as_me: failed program was:" >&5
2148 cat conftest.$ac_ext >&5
2149 # Broken: fails on valid input.
2152 rm -f conftest.err conftest.$ac_ext
2154 # OK, works on sane cases. Now check whether non-existent headers
2155 # can be detected and how.
2156 cat >conftest.$ac_ext <<_ACEOF
2157 #line 2157 "configure"
2158 #include "confdefs.h"
2159 #include <ac_nonexistent.h>
2161 if { (eval echo "$as_me:2161: \"$ac_cpp conftest.$ac_ext\"") >&5
2162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2164 egrep -v '^ *\+' conftest.er1 >conftest.err
2166 cat conftest.err >&5
2167 echo "$as_me:2167: \$? = $ac_status" >&5
2168 (exit $ac_status); } >/dev/null; then
2169 if test -s conftest.err; then
2170 ac_cpp_err=$ac_c_preproc_warn_flag
2177 if test -z "$ac_cpp_err"; then
2178 # Broken: success on invalid input.
2181 echo "$as_me: failed program was:" >&5
2182 cat conftest.$ac_ext >&5
2183 # Passes both tests.
2187 rm -f conftest.err conftest.$ac_ext
2190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2191 rm -f conftest.err conftest.$ac_ext
2192 if $ac_preproc_ok; then
2204 echo "$as_me:2204: result: $CPP" >&5
2205 echo "${ECHO_T}$CPP" >&6
2207 for ac_c_preproc_warn_flag in '' yes
2209 # Use a header file that comes with gcc, so configuring glibc
2210 # with a fresh cross-compiler works.
2211 # On the NeXT, cc -E runs the code through the compiler's parser,
2212 # not just through cpp. "Syntax error" is here to catch this case.
2213 cat >conftest.$ac_ext <<_ACEOF
2214 #line 2214 "configure"
2215 #include "confdefs.h"
2219 if { (eval echo "$as_me:2219: \"$ac_cpp conftest.$ac_ext\"") >&5
2220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2222 egrep -v '^ *\+' conftest.er1 >conftest.err
2224 cat conftest.err >&5
2225 echo "$as_me:2225: \$? = $ac_status" >&5
2226 (exit $ac_status); } >/dev/null; then
2227 if test -s conftest.err; then
2228 ac_cpp_err=$ac_c_preproc_warn_flag
2235 if test -z "$ac_cpp_err"; then
2238 echo "$as_me: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2240 # Broken: fails on valid input.
2243 rm -f conftest.err conftest.$ac_ext
2245 # OK, works on sane cases. Now check whether non-existent headers
2246 # can be detected and how.
2247 cat >conftest.$ac_ext <<_ACEOF
2248 #line 2248 "configure"
2249 #include "confdefs.h"
2250 #include <ac_nonexistent.h>
2252 if { (eval echo "$as_me:2252: \"$ac_cpp conftest.$ac_ext\"") >&5
2253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2255 egrep -v '^ *\+' conftest.er1 >conftest.err
2257 cat conftest.err >&5
2258 echo "$as_me:2258: \$? = $ac_status" >&5
2259 (exit $ac_status); } >/dev/null; then
2260 if test -s conftest.err; then
2261 ac_cpp_err=$ac_c_preproc_warn_flag
2268 if test -z "$ac_cpp_err"; then
2269 # Broken: success on invalid input.
2272 echo "$as_me: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2274 # Passes both tests.
2278 rm -f conftest.err conftest.$ac_ext
2281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2282 rm -f conftest.err conftest.$ac_ext
2283 if $ac_preproc_ok; then
2286 { { echo "$as_me:2286: error: C preprocessor \"$CPP\" fails sanity check" >&5
2287 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2288 { (exit 1); exit 1; }; }
2292 ac_cpp='$CPP $CPPFLAGS'
2293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2296 ac_main_return=return
2298 if test $ac_cv_c_compiler_gnu = yes; then
2299 echo "$as_me:2299: checking whether $CC needs -traditional" >&5
2300 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2301 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 ac_pattern="Autoconf.*'x'"
2305 cat >conftest.$ac_ext <<_ACEOF
2306 #line 2306 "configure"
2307 #include "confdefs.h"
2309 int Autoconf = TIOCGETP;
2311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2312 egrep "$ac_pattern" >/dev/null 2>&1; then
2313 ac_cv_prog_gcc_traditional=yes
2315 ac_cv_prog_gcc_traditional=no
2319 if test $ac_cv_prog_gcc_traditional = no; then
2320 cat >conftest.$ac_ext <<_ACEOF
2321 #line 2321 "configure"
2322 #include "confdefs.h"
2324 int Autoconf = TCGETA;
2326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2327 egrep "$ac_pattern" >/dev/null 2>&1; then
2328 ac_cv_prog_gcc_traditional=yes
2334 echo "$as_me:2334: result: $ac_cv_prog_gcc_traditional" >&5
2335 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2336 if test $ac_cv_prog_gcc_traditional = yes; then
2337 CC="$CC -traditional"
2341 echo "$as_me:2341: checking whether $CC understands -c and -o together" >&5
2342 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2343 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 cat > conftest.$ac_ext <<CF_EOF
2351 ${cf_cv_main_return:-return}(0);
2354 # We do the test twice because some compilers refuse to overwrite an
2355 # existing .o file with -o, though they will create one.
2356 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2357 if { (eval echo "$as_me:2357: \"$ac_try\"") >&5
2360 echo "$as_me:2360: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
2362 test -f conftest2.$ac_objext && { (eval echo "$as_me:2362: \"$ac_try\"") >&5
2365 echo "$as_me:2365: \$? = $ac_status" >&5
2366 (exit $ac_status); };
2368 eval cf_cv_prog_CC_c_o=yes
2370 eval cf_cv_prog_CC_c_o=no
2375 if test $cf_cv_prog_CC_c_o = yes; then
2376 echo "$as_me:2376: result: yes" >&5
2377 echo "${ECHO_T}yes" >&6
2379 echo "$as_me:2379: result: no" >&5
2380 echo "${ECHO_T}no" >&6
2383 echo "$as_me:2383: checking for POSIXized ISC" >&5
2384 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2385 if test -d /etc/conf/kconfig.d &&
2386 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2388 echo "$as_me:2388: result: yes" >&5
2389 echo "${ECHO_T}yes" >&6
2390 ISC=yes # If later tests want to check for ISC.
2392 cat >>confdefs.h <<\EOF
2393 #define _POSIX_SOURCE 1
2396 if test "$GCC" = yes; then
2402 echo "$as_me:2402: result: no" >&5
2403 echo "${ECHO_T}no" >&6
2407 echo "$as_me:2407: checking for ${CC-cc} option to accept ANSI C" >&5
2408 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2409 if test "${cf_cv_ansi_cc+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 cf_save_CFLAGS="$CFLAGS"
2415 cf_save_CPPFLAGS="$CPPFLAGS"
2416 # Don't try gcc -ansi; that turns off useful extensions and
2417 # breaks some systems' header files.
2418 # AIX -qlanglvl=ansi
2419 # Ultrix and OSF/1 -std1
2420 # HP-UX -Aa -D_HPUX_SOURCE
2422 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2423 for cf_arg in "-DCC_HAS_PROTOS" \
2428 "-Aa -D_HPUX_SOURCE" \
2435 cf_new_extra_cppflags=
2437 for cf_add_cflags in $cf_arg
2439 case $cf_fix_cppflags in
2441 case $cf_add_cflags in #(vi
2442 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2443 case $cf_add_cflags in
2445 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2447 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2448 && test -z "${cf_tst_cflags}" \
2449 && cf_fix_cppflags=yes
2451 if test $cf_fix_cppflags = yes ; then
2452 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2454 elif test "${cf_tst_cflags}" = "\"'" ; then
2455 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2461 *$cf_add_cflags) #(vi
2464 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2469 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2474 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2476 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2478 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2479 && test -z "${cf_tst_cflags}" \
2480 && cf_fix_cppflags=no
2485 if test -n "$cf_new_cflags" ; then
2487 CFLAGS="$CFLAGS $cf_new_cflags"
2490 if test -n "$cf_new_cppflags" ; then
2492 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2495 if test -n "$cf_new_extra_cppflags" ; then
2497 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2500 cat >conftest.$ac_ext <<_ACEOF
2501 #line 2501 "configure"
2502 #include "confdefs.h"
2504 #ifndef CC_HAS_PROTOS
2505 #if !defined(__STDC__) || (__STDC__ != 1)
2514 int test (int i, double x);
2515 struct s1 {int (*f) (int a);};
2516 struct s2 {int (*f) (double a);};
2521 rm -f conftest.$ac_objext
2522 if { (eval echo "$as_me:2522: \"$ac_compile\"") >&5
2523 (eval $ac_compile) 2>&5
2525 echo "$as_me:2525: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -s conftest.$ac_objext'
2528 { (eval echo "$as_me:2528: \"$ac_try\"") >&5
2531 echo "$as_me:2531: \$? = $ac_status" >&5
2532 (exit $ac_status); }; }; then
2533 cf_cv_ansi_cc="$cf_arg"; break
2535 echo "$as_me: failed program was:" >&5
2536 cat conftest.$ac_ext >&5
2538 rm -f conftest.$ac_objext conftest.$ac_ext
2540 CFLAGS="$cf_save_CFLAGS"
2541 CPPFLAGS="$cf_save_CPPFLAGS"
2544 echo "$as_me:2544: result: $cf_cv_ansi_cc" >&5
2545 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2547 if test "$cf_cv_ansi_cc" != "no"; then
2548 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2553 cf_new_extra_cppflags=
2555 for cf_add_cflags in $cf_cv_ansi_cc
2557 case $cf_fix_cppflags in
2559 case $cf_add_cflags in #(vi
2560 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2561 case $cf_add_cflags in
2563 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2565 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2566 && test -z "${cf_tst_cflags}" \
2567 && cf_fix_cppflags=yes
2569 if test $cf_fix_cppflags = yes ; then
2570 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2572 elif test "${cf_tst_cflags}" = "\"'" ; then
2573 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2579 *$cf_add_cflags) #(vi
2582 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2587 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2592 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2594 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2596 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2597 && test -z "${cf_tst_cflags}" \
2598 && cf_fix_cppflags=no
2603 if test -n "$cf_new_cflags" ; then
2605 CFLAGS="$CFLAGS $cf_new_cflags"
2608 if test -n "$cf_new_cppflags" ; then
2610 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2613 if test -n "$cf_new_extra_cppflags" ; then
2615 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2619 cat >>confdefs.h <<\EOF
2620 #define CC_HAS_PROTOS 1
2626 if test "$cf_cv_ansi_cc" = "no"; then
2627 { { echo "$as_me:2627: error: Your compiler does not appear to recognize prototypes.
2628 You have the following choices:
2629 a. adjust your compiler options
2630 b. get an up-to-date compiler
2631 c. use a wrapper such as unproto" >&5
2632 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2633 You have the following choices:
2634 a. adjust your compiler options
2635 b. get an up-to-date compiler
2636 c. use a wrapper such as unproto" >&2;}
2637 { (exit 1); exit 1; }; }
2640 case $cf_cv_system_name in
2642 CFLAGS="$CFLAGS -Zmt"
2643 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2644 CXXFLAGS="$CXXFLAGS -Zmt"
2645 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2646 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2653 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2654 #define PROG_EXT "$PROG_EXT"
2657 if test "$cross_compiling" = yes ; then
2660 case "$cf_cv_system_name" in #(vi
2662 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2664 *) LDPATH=$PATH:/sbin:/usr/sbin
2665 # Extract the first word of "ldconfig", so it can be a program name with args.
2666 set dummy ldconfig; ac_word=$2
2667 echo "$as_me:2667: checking for $ac_word" >&5
2668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2669 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2677 ac_save_IFS=$IFS; IFS=$ac_path_separator
2679 for ac_dir in $ac_dummy; do
2681 test -z "$ac_dir" && ac_dir=.
2682 if $as_executable_p "$ac_dir/$ac_word"; then
2683 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2684 echo "$as_me:2684: found $ac_dir/$ac_word" >&5
2692 LDCONFIG=$ac_cv_path_LDCONFIG
2694 if test -n "$LDCONFIG"; then
2695 echo "$as_me:2695: result: $LDCONFIG" >&5
2696 echo "${ECHO_T}$LDCONFIG" >&6
2698 echo "$as_me:2698: result: no" >&5
2699 echo "${ECHO_T}no" >&6
2706 echo "$as_me:2706: checking if you want to ensure bool is consistent with C++" >&5
2707 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2709 # Check whether --with-cxx or --without-cxx was given.
2710 if test "${with_cxx+set}" = set; then
2712 cf_with_cxx=$withval
2716 echo "$as_me:2716: result: $cf_with_cxx" >&5
2717 echo "${ECHO_T}$cf_with_cxx" >&6
2718 if test "X$cf_with_cxx" = Xno ; then
2722 # with autoconf 2.13, we can change the error to a warning:
2724 ac_cpp='$CXXCPP $CPPFLAGS'
2725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2728 ac_main_return=return
2729 if test -n "$ac_tool_prefix"; then
2730 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2734 echo "$as_me:2734: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736 if test "${ac_cv_prog_CXX+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 if test -n "$CXX"; then
2740 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2742 ac_save_IFS=$IFS; IFS=$ac_path_separator
2744 for ac_dir in $ac_dummy; do
2746 test -z "$ac_dir" && ac_dir=.
2747 $as_executable_p "$ac_dir/$ac_word" || continue
2748 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2749 echo "$as_me:2749: found $ac_dir/$ac_word" >&5
2756 if test -n "$CXX"; then
2757 echo "$as_me:2757: result: $CXX" >&5
2758 echo "${ECHO_T}$CXX" >&6
2760 echo "$as_me:2760: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2764 test -n "$CXX" && break
2767 if test -z "$CXX"; then
2769 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2771 # Extract the first word of "$ac_prog", so it can be a program name with args.
2772 set dummy $ac_prog; ac_word=$2
2773 echo "$as_me:2773: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 if test -n "$ac_ct_CXX"; then
2779 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2781 ac_save_IFS=$IFS; IFS=$ac_path_separator
2783 for ac_dir in $ac_dummy; do
2785 test -z "$ac_dir" && ac_dir=.
2786 $as_executable_p "$ac_dir/$ac_word" || continue
2787 ac_cv_prog_ac_ct_CXX="$ac_prog"
2788 echo "$as_me:2788: found $ac_dir/$ac_word" >&5
2794 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2795 if test -n "$ac_ct_CXX"; then
2796 echo "$as_me:2796: result: $ac_ct_CXX" >&5
2797 echo "${ECHO_T}$ac_ct_CXX" >&6
2799 echo "$as_me:2799: result: no" >&5
2800 echo "${ECHO_T}no" >&6
2803 test -n "$ac_ct_CXX" && break
2805 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2810 # Provide some information about the compiler.
2811 echo "$as_me:2811:" \
2812 "checking for C++ compiler version" >&5
2813 ac_compiler=`set X $ac_compile; echo $2`
2814 { (eval echo "$as_me:2814: \"$ac_compiler --version </dev/null >&5\"") >&5
2815 (eval $ac_compiler --version </dev/null >&5) 2>&5
2817 echo "$as_me:2817: \$? = $ac_status" >&5
2818 (exit $ac_status); }
2819 { (eval echo "$as_me:2819: \"$ac_compiler -v </dev/null >&5\"") >&5
2820 (eval $ac_compiler -v </dev/null >&5) 2>&5
2822 echo "$as_me:2822: \$? = $ac_status" >&5
2823 (exit $ac_status); }
2824 { (eval echo "$as_me:2824: \"$ac_compiler -V </dev/null >&5\"") >&5
2825 (eval $ac_compiler -V </dev/null >&5) 2>&5
2827 echo "$as_me:2827: \$? = $ac_status" >&5
2828 (exit $ac_status); }
2830 echo "$as_me:2830: checking whether we are using the GNU C++ compiler" >&5
2831 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2832 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 cat >conftest.$ac_ext <<_ACEOF
2836 #line 2836 "configure"
2837 #include "confdefs.h"
2850 rm -f conftest.$ac_objext
2851 if { (eval echo "$as_me:2851: \"$ac_compile\"") >&5
2852 (eval $ac_compile) 2>&5
2854 echo "$as_me:2854: \$? = $ac_status" >&5
2855 (exit $ac_status); } &&
2856 { ac_try='test -s conftest.$ac_objext'
2857 { (eval echo "$as_me:2857: \"$ac_try\"") >&5
2860 echo "$as_me:2860: \$? = $ac_status" >&5
2861 (exit $ac_status); }; }; then
2864 echo "$as_me: failed program was:" >&5
2865 cat conftest.$ac_ext >&5
2868 rm -f conftest.$ac_objext conftest.$ac_ext
2869 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2872 echo "$as_me:2872: result: $ac_cv_cxx_compiler_gnu" >&5
2873 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2874 GXX=`test $ac_compiler_gnu = yes && echo yes`
2875 ac_test_CXXFLAGS=${CXXFLAGS+set}
2876 ac_save_CXXFLAGS=$CXXFLAGS
2878 echo "$as_me:2878: checking whether $CXX accepts -g" >&5
2879 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2880 if test "${ac_cv_prog_cxx_g+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 cat >conftest.$ac_ext <<_ACEOF
2884 #line 2884 "configure"
2885 #include "confdefs.h"
2895 rm -f conftest.$ac_objext
2896 if { (eval echo "$as_me:2896: \"$ac_compile\"") >&5
2897 (eval $ac_compile) 2>&5
2899 echo "$as_me:2899: \$? = $ac_status" >&5
2900 (exit $ac_status); } &&
2901 { ac_try='test -s conftest.$ac_objext'
2902 { (eval echo "$as_me:2902: \"$ac_try\"") >&5
2905 echo "$as_me:2905: \$? = $ac_status" >&5
2906 (exit $ac_status); }; }; then
2907 ac_cv_prog_cxx_g=yes
2909 echo "$as_me: failed program was:" >&5
2910 cat conftest.$ac_ext >&5
2913 rm -f conftest.$ac_objext conftest.$ac_ext
2915 echo "$as_me:2915: result: $ac_cv_prog_cxx_g" >&5
2916 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2917 if test "$ac_test_CXXFLAGS" = set; then
2918 CXXFLAGS=$ac_save_CXXFLAGS
2919 elif test $ac_cv_prog_cxx_g = yes; then
2920 if test "$GXX" = yes; then
2926 if test "$GXX" = yes; then
2932 for ac_declaration in \
2934 '#include <stdlib.h>' \
2935 'extern "C" void std::exit (int) throw (); using std::exit;' \
2936 'extern "C" void std::exit (int); using std::exit;' \
2937 'extern "C" void exit (int) throw ();' \
2938 'extern "C" void exit (int);' \
2941 cat >conftest.$ac_ext <<_ACEOF
2942 #line 2942 "configure"
2943 #include "confdefs.h"
2954 rm -f conftest.$ac_objext
2955 if { (eval echo "$as_me:2955: \"$ac_compile\"") >&5
2956 (eval $ac_compile) 2>&5
2958 echo "$as_me:2958: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -s conftest.$ac_objext'
2961 { (eval echo "$as_me:2961: \"$ac_try\"") >&5
2964 echo "$as_me:2964: \$? = $ac_status" >&5
2965 (exit $ac_status); }; }; then
2968 echo "$as_me: failed program was:" >&5
2969 cat conftest.$ac_ext >&5
2972 rm -f conftest.$ac_objext conftest.$ac_ext
2973 cat >conftest.$ac_ext <<_ACEOF
2974 #line 2974 "configure"
2975 #include "confdefs.h"
2985 rm -f conftest.$ac_objext
2986 if { (eval echo "$as_me:2986: \"$ac_compile\"") >&5
2987 (eval $ac_compile) 2>&5
2989 echo "$as_me:2989: \$? = $ac_status" >&5
2990 (exit $ac_status); } &&
2991 { ac_try='test -s conftest.$ac_objext'
2992 { (eval echo "$as_me:2992: \"$ac_try\"") >&5
2995 echo "$as_me:2995: \$? = $ac_status" >&5
2996 (exit $ac_status); }; }; then
2999 echo "$as_me: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3002 rm -f conftest.$ac_objext conftest.$ac_ext
3005 if test -n "$ac_declaration"; then
3006 echo '#ifdef __cplusplus' >>confdefs.h
3007 echo $ac_declaration >>confdefs.h
3008 echo '#endif' >>confdefs.h
3012 ac_cpp='$CPP $CPPFLAGS'
3013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016 ac_main_return=return
3018 # autoconf 2.5x removed the error - by hardcoding it to g++.
3019 if test "$CXX" = "g++" ; then
3020 # Extract the first word of "g++", so it can be a program name with args.
3021 set dummy g++; ac_word=$2
3022 echo "$as_me:3022: checking for $ac_word" >&5
3023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3024 if test "${ac_cv_path_CXX+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3032 ac_save_IFS=$IFS; IFS=$ac_path_separator
3034 for ac_dir in $ac_dummy; do
3036 test -z "$ac_dir" && ac_dir=.
3037 if $as_executable_p "$ac_dir/$ac_word"; then
3038 ac_cv_path_CXX="$ac_dir/$ac_word"
3039 echo "$as_me:3039: found $ac_dir/$ac_word" >&5
3049 if test -n "$CXX"; then
3050 echo "$as_me:3050: result: $CXX" >&5
3051 echo "${ECHO_T}$CXX" >&6
3053 echo "$as_me:3053: result: no" >&5
3054 echo "${ECHO_T}no" >&6
3058 if test "$CXX" = "g++" ; then
3059 { echo "$as_me:3059: WARNING: ignoring hardcoded g++" >&5
3060 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3061 cf_with_cxx=no; CXX=""; GXX="";
3066 if test "$GXX" = yes; then
3067 echo "$as_me:3067: checking version of g++" >&5
3068 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3069 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3070 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3071 echo "$as_me:3071: result: $GXX_VERSION" >&5
3072 echo "${ECHO_T}$GXX_VERSION" >&6
3075 case $GXX_VERSION in
3077 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3079 { echo "$as_me:3079: WARNING: templates do not work" >&5
3080 echo "$as_me: WARNING: templates do not work" >&2;}
3084 echo "$as_me:3084: checking if you want to build C++ binding and demo" >&5
3085 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3087 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3088 if test "${with_cxx_binding+set}" = set; then
3089 withval="$with_cxx_binding"
3090 cf_with_cxx_binding=$withval
3092 cf_with_cxx_binding=$cf_with_cxx
3094 echo "$as_me:3094: result: $cf_with_cxx_binding" >&5
3095 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3097 echo "$as_me:3097: checking if you want to build with Ada95" >&5
3098 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3100 # Check whether --with-ada or --without-ada was given.
3101 if test "${with_ada+set}" = set; then
3103 cf_with_ada=$withval
3107 echo "$as_me:3107: result: $cf_with_ada" >&5
3108 echo "${ECHO_T}$cf_with_ada" >&6
3110 echo "$as_me:3110: checking if you want to build programs such as tic" >&5
3111 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3113 # Check whether --with-progs or --without-progs was given.
3114 if test "${with_progs+set}" = set; then
3115 withval="$with_progs"
3116 cf_with_progs=$withval
3120 echo "$as_me:3120: result: $cf_with_progs" >&5
3121 echo "${ECHO_T}$cf_with_progs" >&6
3123 echo "$as_me:3123: checking if you wish to install curses.h" >&5
3124 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3126 # Check whether --with-curses-h or --without-curses-h was given.
3127 if test "${with_curses_h+set}" = set; then
3128 withval="$with_curses_h"
3129 with_curses_h=$withval
3133 echo "$as_me:3133: result: $with_curses_h" >&5
3134 echo "${ECHO_T}$with_curses_h" >&6
3136 modules_to_build="ncurses"
3137 if test "X$cf_with_progs" != Xno ; then
3138 modules_to_build="$modules_to_build progs tack"
3140 modules_to_build="$modules_to_build panel menu form"
3142 test "$program_prefix" != NONE &&
3143 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3144 # Use a double $ so make ignores it.
3145 test "$program_suffix" != NONE &&
3146 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3147 # Double any \ or $. echo might interpret backslashes.
3148 # By default was `s,x,x', remove it if useless.
3149 cat <<\_ACEOF >conftest.sed
3150 s/[\\$]/&&/g;s/;s,x,x,$//
3152 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3155 for ac_prog in mawk gawk nawk awk
3157 # Extract the first word of "$ac_prog", so it can be a program name with args.
3158 set dummy $ac_prog; ac_word=$2
3159 echo "$as_me:3159: checking for $ac_word" >&5
3160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3161 if test "${ac_cv_prog_AWK+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 if test -n "$AWK"; then
3165 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3167 ac_save_IFS=$IFS; IFS=$ac_path_separator
3169 for ac_dir in $ac_dummy; do
3171 test -z "$ac_dir" && ac_dir=.
3172 $as_executable_p "$ac_dir/$ac_word" || continue
3173 ac_cv_prog_AWK="$ac_prog"
3174 echo "$as_me:3174: found $ac_dir/$ac_word" >&5
3181 if test -n "$AWK"; then
3182 echo "$as_me:3182: result: $AWK" >&5
3183 echo "${ECHO_T}$AWK" >&6
3185 echo "$as_me:3185: result: no" >&5
3186 echo "${ECHO_T}no" >&6
3189 test -n "$AWK" && break
3192 test -z "$AWK" && { { echo "$as_me:3192: error: No awk program found" >&5
3193 echo "$as_me: error: No awk program found" >&2;}
3194 { (exit 1); exit 1; }; }
3196 echo "$as_me:3196: checking for egrep" >&5
3197 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3198 if test "${ac_cv_prog_egrep+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3202 then ac_cv_prog_egrep='grep -E'
3203 else ac_cv_prog_egrep='egrep'
3206 echo "$as_me:3206: result: $ac_cv_prog_egrep" >&5
3207 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3208 EGREP=$ac_cv_prog_egrep
3210 test -z "$EGREP" && { { echo "$as_me:3210: error: No egrep program found" >&5
3211 echo "$as_me: error: No egrep program found" >&2;}
3212 { (exit 1); exit 1; }; }
3214 # Find a good install program. We prefer a C program (faster),
3215 # so one script is as good as another. But avoid the broken or
3216 # incompatible versions:
3217 # SysV /etc/install, /usr/sbin/install
3218 # SunOS /usr/etc/install
3219 # IRIX /sbin/install
3221 # AmigaOS /C/install, which installs bootblocks on floppy discs
3222 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3223 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3224 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3225 # ./install, which can be erroneously created by make from ./install.sh.
3226 echo "$as_me:3226: checking for a BSD compatible install" >&5
3227 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3228 if test -z "$INSTALL"; then
3229 if test "${ac_cv_path_install+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 ac_save_IFS=$IFS; IFS=$ac_path_separator
3233 for ac_dir in $PATH; do
3235 # Account for people who put trailing slashes in PATH elements.
3237 / | ./ | .// | /cC/* \
3238 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3241 # OSF1 and SCO ODT 3.0 have their own names for install.
3242 # Don't use installbsd from OSF since it installs stuff as root
3244 for ac_prog in ginstall scoinst install; do
3245 if $as_executable_p "$ac_dir/$ac_prog"; then
3246 if test $ac_prog = install &&
3247 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3248 # AIX install. It has an incompatible calling convention.
3250 elif test $ac_prog = install &&
3251 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3252 # program-specific install script used by HP pwplus--don't use.
3255 ac_cv_path_install="$ac_dir/$ac_prog -c"
3265 if test "${ac_cv_path_install+set}" = set; then
3266 INSTALL=$ac_cv_path_install
3268 # As a last resort, use the slow shell script. We don't cache a
3269 # path for INSTALL within a source directory, because that will
3270 # break other packages using the cache if that directory is
3271 # removed, or if the path is relative.
3272 INSTALL=$ac_install_sh
3275 echo "$as_me:3275: result: $INSTALL" >&5
3276 echo "${ECHO_T}$INSTALL" >&6
3278 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3279 # It thinks the first close brace ends the variable substitution.
3280 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3282 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3284 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3290 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3291 test -z "$cf_dir" && cf_dir=.
3292 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3296 for ac_prog in tdlint lint alint
3298 # Extract the first word of "$ac_prog", so it can be a program name with args.
3299 set dummy $ac_prog; ac_word=$2
3300 echo "$as_me:3300: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_prog_LINT+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 if test -n "$LINT"; then
3306 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3308 ac_save_IFS=$IFS; IFS=$ac_path_separator
3310 for ac_dir in $ac_dummy; do
3312 test -z "$ac_dir" && ac_dir=.
3313 $as_executable_p "$ac_dir/$ac_word" || continue
3314 ac_cv_prog_LINT="$ac_prog"
3315 echo "$as_me:3315: found $ac_dir/$ac_word" >&5
3321 LINT=$ac_cv_prog_LINT
3322 if test -n "$LINT"; then
3323 echo "$as_me:3323: result: $LINT" >&5
3324 echo "${ECHO_T}$LINT" >&6
3326 echo "$as_me:3326: result: no" >&5
3327 echo "${ECHO_T}no" >&6
3330 test -n "$LINT" && break
3333 echo "$as_me:3333: checking whether ln -s works" >&5
3334 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3336 if test "$LN_S" = "ln -s"; then
3337 echo "$as_me:3337: result: yes" >&5
3338 echo "${ECHO_T}yes" >&6
3340 echo "$as_me:3340: result: no, using $LN_S" >&5
3341 echo "${ECHO_T}no, using $LN_S" >&6
3344 echo "$as_me:3344: checking whether ${MAKE-make} sets \${MAKE}" >&5
3345 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3346 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3347 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 cat >conftest.make <<\EOF
3352 @echo 'ac_maketemp="${MAKE}"'
3354 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3355 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3356 if test -n "$ac_maketemp"; then
3357 eval ac_cv_prog_make_${ac_make}_set=yes
3359 eval ac_cv_prog_make_${ac_make}_set=no
3363 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3364 echo "$as_me:3364: result: yes" >&5
3365 echo "${ECHO_T}yes" >&6
3368 echo "$as_me:3368: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3370 SET_MAKE="MAKE=${MAKE-make}"
3373 echo "$as_me:3373: checking if filesystem supports mixed-case filenames" >&5
3374 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3375 if test "${cf_cv_mixedcase+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 if test "$cross_compiling" = yes ; then
3380 case $target_alias in #(vi
3381 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3389 rm -f conftest CONFTEST
3391 if test -f CONFTEST ; then
3396 rm -f conftest CONFTEST
3400 echo "$as_me:3400: result: $cf_cv_mixedcase" >&5
3401 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3402 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3403 #define MIXEDCASE_FILENAMES 1
3406 # Extract the first word of "ctags", so it can be a program name with args.
3407 set dummy ctags; ac_word=$2
3408 echo "$as_me:3408: checking for $ac_word" >&5
3409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3410 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 if test -n "$MAKE_LOWER_TAGS"; then
3414 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3416 ac_save_IFS=$IFS; IFS=$ac_path_separator
3418 for ac_dir in $ac_dummy; do
3420 test -z "$ac_dir" && ac_dir=.
3421 $as_executable_p "$ac_dir/$ac_word" || continue
3422 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3423 echo "$as_me:3423: found $ac_dir/$ac_word" >&5
3427 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3430 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3431 if test -n "$MAKE_LOWER_TAGS"; then
3432 echo "$as_me:3432: result: $MAKE_LOWER_TAGS" >&5
3433 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3435 echo "$as_me:3435: result: no" >&5
3436 echo "${ECHO_T}no" >&6
3439 if test "$cf_cv_mixedcase" = yes ; then
3440 # Extract the first word of "etags", so it can be a program name with args.
3441 set dummy etags; ac_word=$2
3442 echo "$as_me:3442: checking for $ac_word" >&5
3443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3444 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 if test -n "$MAKE_UPPER_TAGS"; then
3448 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3450 ac_save_IFS=$IFS; IFS=$ac_path_separator
3452 for ac_dir in $ac_dummy; do
3454 test -z "$ac_dir" && ac_dir=.
3455 $as_executable_p "$ac_dir/$ac_word" || continue
3456 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3457 echo "$as_me:3457: found $ac_dir/$ac_word" >&5
3461 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3464 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3465 if test -n "$MAKE_UPPER_TAGS"; then
3466 echo "$as_me:3466: result: $MAKE_UPPER_TAGS" >&5
3467 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3469 echo "$as_me:3469: result: no" >&5
3470 echo "${ECHO_T}no" >&6
3477 if test "$MAKE_UPPER_TAGS" = yes ; then
3483 if test "$MAKE_LOWER_TAGS" = yes ; then
3489 echo "$as_me:3489: checking for makeflags variable" >&5
3490 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3491 if test "${cf_cv_makeflags+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3498 cat >cf_makeflags.tmp <<CF_EOF
3501 @ echo '.$cf_option'
3503 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3504 case "$cf_result" in
3506 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3507 case "$cf_result" in
3508 .*CC=*) cf_cv_makeflags=
3510 *) cf_cv_makeflags=$cf_option
3516 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3520 rm -f cf_makeflags.tmp
3523 echo "$as_me:3523: result: $cf_cv_makeflags" >&5
3524 echo "${ECHO_T}$cf_cv_makeflags" >&6
3526 echo "$as_me:3526: checking for long file names" >&5
3527 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3528 if test "${ac_cv_sys_long_file_names+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 ac_cv_sys_long_file_names=yes
3532 # Test for long file names in all the places we know might matter:
3533 # . the current directory, where building will happen
3534 # $prefix/lib where we will be installing things
3535 # $exec_prefix/lib likewise
3536 # eval it to expand exec_prefix.
3537 # $TMPDIR if set, where it might want to write temporary files
3538 # if $TMPDIR is not set:
3539 # /tmp where it might want to write temporary files
3542 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3545 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3547 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3548 test -d $ac_dir || continue
3549 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3550 ac_xdir=$ac_dir/cf$$
3551 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3552 ac_tf1=$ac_xdir/conftest9012345
3553 ac_tf2=$ac_xdir/conftest9012346
3554 (echo 1 >$ac_tf1) 2>/dev/null
3555 (echo 2 >$ac_tf2) 2>/dev/null
3556 ac_val=`cat $ac_tf1 2>/dev/null`
3557 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3558 ac_cv_sys_long_file_names=no
3559 rm -rf $ac_xdir 2>/dev/null
3562 rm -rf $ac_xdir 2>/dev/null
3565 echo "$as_me:3565: result: $ac_cv_sys_long_file_names" >&5
3566 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3567 if test $ac_cv_sys_long_file_names = yes; then
3569 cat >>confdefs.h <<\EOF
3570 #define HAVE_LONG_FILE_NAMES 1
3575 echo "$as_me:3575: checking if filesystem supports mixed-case filenames" >&5
3576 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3577 if test "${cf_cv_mixedcase+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 if test "$cross_compiling" = yes ; then
3582 case $target_alias in #(vi
3583 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3591 rm -f conftest CONFTEST
3593 if test -f CONFTEST ; then
3598 rm -f conftest CONFTEST
3602 echo "$as_me:3602: result: $cf_cv_mixedcase" >&5
3603 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3604 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3605 #define MIXEDCASE_FILENAMES 1
3608 if test -n "$ac_tool_prefix"; then
3609 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3610 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3611 echo "$as_me:3611: checking for $ac_word" >&5
3612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613 if test "${ac_cv_prog_RANLIB+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 if test -n "$RANLIB"; then
3617 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3619 ac_save_IFS=$IFS; IFS=$ac_path_separator
3621 for ac_dir in $ac_dummy; do
3623 test -z "$ac_dir" && ac_dir=.
3624 $as_executable_p "$ac_dir/$ac_word" || continue
3625 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3626 echo "$as_me:3626: found $ac_dir/$ac_word" >&5
3632 RANLIB=$ac_cv_prog_RANLIB
3633 if test -n "$RANLIB"; then
3634 echo "$as_me:3634: result: $RANLIB" >&5
3635 echo "${ECHO_T}$RANLIB" >&6
3637 echo "$as_me:3637: result: no" >&5
3638 echo "${ECHO_T}no" >&6
3642 if test -z "$ac_cv_prog_RANLIB"; then
3643 ac_ct_RANLIB=$RANLIB
3644 # Extract the first word of "ranlib", so it can be a program name with args.
3645 set dummy ranlib; ac_word=$2
3646 echo "$as_me:3646: checking for $ac_word" >&5
3647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3648 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 if test -n "$ac_ct_RANLIB"; then
3652 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3654 ac_save_IFS=$IFS; IFS=$ac_path_separator
3656 for ac_dir in $ac_dummy; do
3658 test -z "$ac_dir" && ac_dir=.
3659 $as_executable_p "$ac_dir/$ac_word" || continue
3660 ac_cv_prog_ac_ct_RANLIB="ranlib"
3661 echo "$as_me:3661: found $ac_dir/$ac_word" >&5
3665 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3668 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3669 if test -n "$ac_ct_RANLIB"; then
3670 echo "$as_me:3670: result: $ac_ct_RANLIB" >&5
3671 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3673 echo "$as_me:3673: result: no" >&5
3674 echo "${ECHO_T}no" >&6
3677 RANLIB=$ac_ct_RANLIB
3679 RANLIB="$ac_cv_prog_RANLIB"
3682 if test -n "$ac_tool_prefix"; then
3683 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3684 set dummy ${ac_tool_prefix}ld; ac_word=$2
3685 echo "$as_me:3685: checking for $ac_word" >&5
3686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3687 if test "${ac_cv_prog_LD+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 if test -n "$LD"; then
3691 ac_cv_prog_LD="$LD" # Let the user override the test.
3693 ac_save_IFS=$IFS; IFS=$ac_path_separator
3695 for ac_dir in $ac_dummy; do
3697 test -z "$ac_dir" && ac_dir=.
3698 $as_executable_p "$ac_dir/$ac_word" || continue
3699 ac_cv_prog_LD="${ac_tool_prefix}ld"
3700 echo "$as_me:3700: found $ac_dir/$ac_word" >&5
3707 if test -n "$LD"; then
3708 echo "$as_me:3708: result: $LD" >&5
3709 echo "${ECHO_T}$LD" >&6
3711 echo "$as_me:3711: result: no" >&5
3712 echo "${ECHO_T}no" >&6
3716 if test -z "$ac_cv_prog_LD"; then
3718 # Extract the first word of "ld", so it can be a program name with args.
3719 set dummy ld; ac_word=$2
3720 echo "$as_me:3720: checking for $ac_word" >&5
3721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3722 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 if test -n "$ac_ct_LD"; then
3726 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3728 ac_save_IFS=$IFS; IFS=$ac_path_separator
3730 for ac_dir in $ac_dummy; do
3732 test -z "$ac_dir" && ac_dir=.
3733 $as_executable_p "$ac_dir/$ac_word" || continue
3734 ac_cv_prog_ac_ct_LD="ld"
3735 echo "$as_me:3735: found $ac_dir/$ac_word" >&5
3739 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3742 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3743 if test -n "$ac_ct_LD"; then
3744 echo "$as_me:3744: result: $ac_ct_LD" >&5
3745 echo "${ECHO_T}$ac_ct_LD" >&6
3747 echo "$as_me:3747: result: no" >&5
3748 echo "${ECHO_T}no" >&6
3756 if test -n "$ac_tool_prefix"; then
3757 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3758 set dummy ${ac_tool_prefix}ar; ac_word=$2
3759 echo "$as_me:3759: checking for $ac_word" >&5
3760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761 if test "${ac_cv_prog_AR+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 if test -n "$AR"; then
3765 ac_cv_prog_AR="$AR" # Let the user override the test.
3767 ac_save_IFS=$IFS; IFS=$ac_path_separator
3769 for ac_dir in $ac_dummy; do
3771 test -z "$ac_dir" && ac_dir=.
3772 $as_executable_p "$ac_dir/$ac_word" || continue
3773 ac_cv_prog_AR="${ac_tool_prefix}ar"
3774 echo "$as_me:3774: found $ac_dir/$ac_word" >&5
3781 if test -n "$AR"; then
3782 echo "$as_me:3782: result: $AR" >&5
3783 echo "${ECHO_T}$AR" >&6
3785 echo "$as_me:3785: result: no" >&5
3786 echo "${ECHO_T}no" >&6
3790 if test -z "$ac_cv_prog_AR"; then
3792 # Extract the first word of "ar", so it can be a program name with args.
3793 set dummy ar; ac_word=$2
3794 echo "$as_me:3794: checking for $ac_word" >&5
3795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3796 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 if test -n "$ac_ct_AR"; then
3800 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3802 ac_save_IFS=$IFS; IFS=$ac_path_separator
3804 for ac_dir in $ac_dummy; do
3806 test -z "$ac_dir" && ac_dir=.
3807 $as_executable_p "$ac_dir/$ac_word" || continue
3808 ac_cv_prog_ac_ct_AR="ar"
3809 echo "$as_me:3809: found $ac_dir/$ac_word" >&5
3813 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3816 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3817 if test -n "$ac_ct_AR"; then
3818 echo "$as_me:3818: result: $ac_ct_AR" >&5
3819 echo "${ECHO_T}$ac_ct_AR" >&6
3821 echo "$as_me:3821: result: no" >&5
3822 echo "${ECHO_T}no" >&6
3830 if test "${cf_cv_subst_AR_OPTS+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 echo "$as_me:3834: checking for archiver options (symbol AR_OPTS)" >&5
3835 echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
3837 if test -z "$AR_OPTS" ; then
3842 cf_cv_subst_AR_OPTS=$AR_OPTS
3843 echo "$as_me:3843: result: $AR_OPTS" >&5
3844 echo "${ECHO_T}$AR_OPTS" >&6
3848 echo "$as_me:3848: checking if you have specified an install-prefix" >&5
3849 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3851 # Check whether --with-install-prefix or --without-install-prefix was given.
3852 if test "${with_install_prefix+set}" = set; then
3853 withval="$with_install_prefix"
3854 case "$withval" in #(vi
3857 *) DESTDIR="$withval"
3861 echo "$as_me:3861: result: $DESTDIR" >&5
3862 echo "${ECHO_T}$DESTDIR" >&6
3864 ###############################################################################
3866 # If we're cross-compiling, allow the user to override the tools and their
3867 # options. The configure script is oriented toward identifying the host
3868 # compiler, etc., but we need a build compiler to generate parts of the source.
3870 if test "$cross_compiling" = yes ; then
3872 # defaults that we might want to override
3873 : ${BUILD_CFLAGS:=''}
3874 : ${BUILD_CPPFLAGS:=''}
3875 : ${BUILD_LDFLAGS:=''}
3877 : ${BUILD_EXEEXT:='$x'}
3878 : ${BUILD_OBJEXT:='o'}
3880 # Check whether --with-build-cc or --without-build-cc was given.
3881 if test "${with_build_cc+set}" = set; then
3882 withval="$with_build_cc"
3885 for ac_prog in gcc cc cl
3887 # Extract the first word of "$ac_prog", so it can be a program name with args.
3888 set dummy $ac_prog; ac_word=$2
3889 echo "$as_me:3889: checking for $ac_word" >&5
3890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3891 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 if test -n "$BUILD_CC"; then
3895 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3897 ac_save_IFS=$IFS; IFS=$ac_path_separator
3899 for ac_dir in $ac_dummy; do
3901 test -z "$ac_dir" && ac_dir=.
3902 $as_executable_p "$ac_dir/$ac_word" || continue
3903 ac_cv_prog_BUILD_CC="$ac_prog"
3904 echo "$as_me:3904: found $ac_dir/$ac_word" >&5
3910 BUILD_CC=$ac_cv_prog_BUILD_CC
3911 if test -n "$BUILD_CC"; then
3912 echo "$as_me:3912: result: $BUILD_CC" >&5
3913 echo "${ECHO_T}$BUILD_CC" >&6
3915 echo "$as_me:3915: result: no" >&5
3916 echo "${ECHO_T}no" >&6
3919 test -n "$BUILD_CC" && break
3923 echo "$as_me:3923: checking for native build C compiler" >&5
3924 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3925 echo "$as_me:3925: result: $BUILD_CC" >&5
3926 echo "${ECHO_T}$BUILD_CC" >&6
3928 echo "$as_me:3928: checking for native build C preprocessor" >&5
3929 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3931 # Check whether --with-build-cpp or --without-build-cpp was given.
3932 if test "${with_build_cpp+set}" = set; then
3933 withval="$with_build_cpp"
3934 BUILD_CPP="$withval"
3936 BUILD_CPP='${BUILD_CC} -E'
3938 echo "$as_me:3938: result: $BUILD_CPP" >&5
3939 echo "${ECHO_T}$BUILD_CPP" >&6
3941 echo "$as_me:3941: checking for native build C flags" >&5
3942 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3944 # Check whether --with-build-cflags or --without-build-cflags was given.
3945 if test "${with_build_cflags+set}" = set; then
3946 withval="$with_build_cflags"
3947 BUILD_CFLAGS="$withval"
3949 echo "$as_me:3949: result: $BUILD_CFLAGS" >&5
3950 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3952 echo "$as_me:3952: checking for native build C preprocessor-flags" >&5
3953 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3955 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3956 if test "${with_build_cppflags+set}" = set; then
3957 withval="$with_build_cppflags"
3958 BUILD_CPPFLAGS="$withval"
3960 echo "$as_me:3960: result: $BUILD_CPPFLAGS" >&5
3961 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3963 echo "$as_me:3963: checking for native build linker-flags" >&5
3964 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3966 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3967 if test "${with_build_ldflags+set}" = set; then
3968 withval="$with_build_ldflags"
3969 BUILD_LDFLAGS="$withval"
3971 echo "$as_me:3971: result: $BUILD_LDFLAGS" >&5
3972 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3974 echo "$as_me:3974: checking for native build linker-libraries" >&5
3975 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3977 # Check whether --with-build-libs or --without-build-libs was given.
3978 if test "${with_build_libs+set}" = set; then
3979 withval="$with_build_libs"
3980 BUILD_LIBS="$withval"
3982 echo "$as_me:3982: result: $BUILD_LIBS" >&5
3983 echo "${ECHO_T}$BUILD_LIBS" >&6
3985 # this assumes we're on Unix.
3989 : ${BUILD_CC:='${CC}'}
3991 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3992 { { echo "$as_me:3992: error: Cross-build requires two compilers.
3993 Use --with-build-cc to specify the native compiler." >&5
3994 echo "$as_me: error: Cross-build requires two compilers.
3995 Use --with-build-cc to specify the native compiler." >&2;}
3996 { (exit 1); exit 1; }; }
4000 : ${BUILD_CC:='${CC}'}
4001 : ${BUILD_CPP:='${CPP}'}
4002 : ${BUILD_CFLAGS:='${CFLAGS}'}
4003 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4004 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4005 : ${BUILD_LIBS:='${LIBS}'}
4006 : ${BUILD_EXEEXT:='$x'}
4007 : ${BUILD_OBJEXT:='o'}
4010 ###############################################################################
4012 ### Options to allow the user to specify the set of libraries which are used.
4013 ### Use "--without-normal --with-shared" to allow the default model to be
4014 ### shared, for example.
4019 # common library maintenance symbols that are convenient for libtool scripts:
4020 LIB_CREATE='${AR} -cr'
4021 LIB_OBJECT='${OBJECTS}'
4025 # symbols used to prop libtool up to enable it to determine what it should be
4033 echo "$as_me:4033: checking if you want to build libraries with libtool" >&5
4034 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4036 # Check whether --with-libtool or --without-libtool was given.
4037 if test "${with_libtool+set}" = set; then
4038 withval="$with_libtool"
4039 with_libtool=$withval
4043 echo "$as_me:4043: result: $with_libtool" >&5
4044 echo "${ECHO_T}$with_libtool" >&6
4045 if test "$with_libtool" != "no"; then
4047 if test "$with_libtool" != "yes" ; then
4049 if test "x$prefix" != xNONE; then
4050 cf_path_syntax="$prefix"
4052 cf_path_syntax="$ac_default_prefix"
4055 case ".$with_libtool" in #(vi
4056 .\$\(*\)*|.\'*\'*) #(vi
4060 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4063 eval with_libtool="$with_libtool"
4064 case ".$with_libtool" in #(vi
4066 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4071 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4074 { { echo "$as_me:4074: error: expected a pathname, not \"$with_libtool\"" >&5
4075 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4076 { (exit 1); exit 1; }; }
4080 LIBTOOL=$with_libtool
4082 # Extract the first word of "libtool", so it can be a program name with args.
4083 set dummy libtool; ac_word=$2
4084 echo "$as_me:4084: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4094 ac_save_IFS=$IFS; IFS=$ac_path_separator
4096 for ac_dir in $ac_dummy; do
4098 test -z "$ac_dir" && ac_dir=.
4099 if $as_executable_p "$ac_dir/$ac_word"; then
4100 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4101 echo "$as_me:4101: found $ac_dir/$ac_word" >&5
4109 LIBTOOL=$ac_cv_path_LIBTOOL
4111 if test -n "$LIBTOOL"; then
4112 echo "$as_me:4112: result: $LIBTOOL" >&5
4113 echo "${ECHO_T}$LIBTOOL" >&6
4115 echo "$as_me:4115: result: no" >&5
4116 echo "${ECHO_T}no" >&6
4120 if test -z "$LIBTOOL" ; then
4121 { { echo "$as_me:4121: error: Cannot find libtool" >&5
4122 echo "$as_me: error: Cannot find libtool" >&2;}
4123 { (exit 1); exit 1; }; }
4125 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` -o'
4126 LIB_OBJECT='${OBJECTS:.o=.lo}'
4128 LIB_CLEAN='${LIBTOOL} --mode=clean'
4129 LIB_COMPILE='${LIBTOOL} --mode=compile'
4130 LIB_LINK='${LIBTOOL} --mode=link'
4131 LIB_INSTALL='${LIBTOOL} --mode=install'
4132 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4135 # Show the version of libtool
4136 echo "$as_me:4136: checking version of libtool" >&5
4137 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4139 # Save the version in a cache variable - this is not entirely a good
4140 # thing, but the version string from libtool is very ugly, and for
4141 # bug reports it might be useful to have the original string.
4142 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.].*//'`
4143 echo "$as_me:4143: result: $cf_cv_libtool_version" >&5
4144 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4145 if test -z "$cf_cv_libtool_version" ; then
4146 { { echo "$as_me:4146: error: This is not GNU libtool" >&5
4147 echo "$as_me: error: This is not GNU libtool" >&2;}
4148 { (exit 1); exit 1; }; }
4151 # special hack to add --tag option for C++ compiler
4152 case $cf_cv_libtool_version in
4154 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4157 LIBTOOL_CXX="$LIBTOOL"
4165 test -z "$LIBTOOL" && ECHO_LT=
4167 if test "$with_libtool" != "no" ; then
4169 cf_list_models="$cf_list_models libtool"
4173 echo "$as_me:4173: checking if you want to build shared libraries" >&5
4174 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4176 # Check whether --with-shared or --without-shared was given.
4177 if test "${with_shared+set}" = set; then
4178 withval="$with_shared"
4179 with_shared=$withval
4183 echo "$as_me:4183: result: $with_shared" >&5
4184 echo "${ECHO_T}$with_shared" >&6
4185 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4187 echo "$as_me:4187: checking if you want to build static libraries" >&5
4188 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4190 # Check whether --with-normal or --without-normal was given.
4191 if test "${with_normal+set}" = set; then
4192 withval="$with_normal"
4193 with_normal=$withval
4197 echo "$as_me:4197: result: $with_normal" >&5
4198 echo "${ECHO_T}$with_normal" >&6
4199 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4201 echo "$as_me:4201: checking if you want to build debug libraries" >&5
4202 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4204 # Check whether --with-debug or --without-debug was given.
4205 if test "${with_debug+set}" = set; then
4206 withval="$with_debug"
4211 echo "$as_me:4211: result: $with_debug" >&5
4212 echo "${ECHO_T}$with_debug" >&6
4213 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4215 echo "$as_me:4215: checking if you want to build profiling libraries" >&5
4216 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4218 # Check whether --with-profile or --without-profile was given.
4219 if test "${with_profile+set}" = set; then
4220 withval="$with_profile"
4221 with_profile=$withval
4225 echo "$as_me:4225: result: $with_profile" >&5
4226 echo "${ECHO_T}$with_profile" >&6
4227 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4231 ###############################################################################
4233 echo "$as_me:4233: checking for specified models" >&5
4234 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4235 test -z "$cf_list_models" && cf_list_models=normal
4236 test "$with_libtool" != "no" && cf_list_models=libtool
4237 echo "$as_me:4237: result: $cf_list_models" >&5
4238 echo "${ECHO_T}$cf_list_models" >&6
4240 ### Use the first model as the default, and save its suffix for use in building
4241 ### up test-applications.
4242 echo "$as_me:4242: checking for default model" >&5
4243 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4244 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4245 echo "$as_me:4245: result: $DFT_LWR_MODEL" >&5
4246 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4248 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4259 case $cf_cv_system_name in
4260 OS/2*) LIB_PREFIX='' ;;
4261 os2*) LIB_PREFIX='' ;;
4262 *) LIB_PREFIX='lib' ;;
4264 cf_prefix=$LIB_PREFIX
4266 LIB_PREFIX=$cf_prefix
4270 ###############################################################################
4272 echo "$as_me:4272: checking if you want to build a separate terminfo library" >&5
4273 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4275 # Check whether --with-termlib or --without-termlib was given.
4276 if test "${with_termlib+set}" = set; then
4277 withval="$with_termlib"
4278 with_termlib=$withval
4282 echo "$as_me:4282: result: $with_termlib" >&5
4283 echo "${ECHO_T}$with_termlib" >&6
4285 echo "$as_me:4285: checking if you want to build a separate tic library" >&5
4286 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4288 # Check whether --with-ticlib or --without-ticlib was given.
4289 if test "${with_ticlib+set}" = set; then
4290 withval="$with_ticlib"
4291 with_ticlib=$withval
4295 echo "$as_me:4295: result: $with_ticlib" >&5
4296 echo "${ECHO_T}$with_ticlib" >&6
4298 ### Checks for special libraries, must be done up-front.
4301 echo "$as_me:4301: checking if you want to link with the GPM mouse library" >&5
4302 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4304 # Check whether --with-gpm or --without-gpm was given.
4305 if test "${with_gpm+set}" = set; then
4311 echo "$as_me:4311: result: $with_gpm" >&5
4312 echo "${ECHO_T}$with_gpm" >&6
4314 if test "$with_gpm" != no ; then
4315 echo "$as_me:4315: checking for gpm.h" >&5
4316 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4317 if test "${ac_cv_header_gpm_h+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 cat >conftest.$ac_ext <<_ACEOF
4321 #line 4321 "configure"
4322 #include "confdefs.h"
4325 if { (eval echo "$as_me:4325: \"$ac_cpp conftest.$ac_ext\"") >&5
4326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4328 egrep -v '^ *\+' conftest.er1 >conftest.err
4330 cat conftest.err >&5
4331 echo "$as_me:4331: \$? = $ac_status" >&5
4332 (exit $ac_status); } >/dev/null; then
4333 if test -s conftest.err; then
4334 ac_cpp_err=$ac_c_preproc_warn_flag
4341 if test -z "$ac_cpp_err"; then
4342 ac_cv_header_gpm_h=yes
4344 echo "$as_me: failed program was:" >&5
4345 cat conftest.$ac_ext >&5
4346 ac_cv_header_gpm_h=no
4348 rm -f conftest.err conftest.$ac_ext
4350 echo "$as_me:4350: result: $ac_cv_header_gpm_h" >&5
4351 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4352 if test $ac_cv_header_gpm_h = yes; then
4354 cat >>confdefs.h <<\EOF
4355 #define HAVE_GPM_H 1
4358 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4359 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4361 cat >>confdefs.h <<\EOF
4362 #define HAVE_LIBGPM 1
4366 echo "$as_me:4366: checking for Gpm_Open in -lgpm" >&5
4367 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4368 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 ac_check_lib_save_LIBS=$LIBS
4373 cat >conftest.$ac_ext <<_ACEOF
4374 #line 4374 "configure"
4375 #include "confdefs.h"
4377 /* Override any gcc2 internal prototype to avoid an error. */
4381 /* We use char because int might match the return type of a gcc2
4382 builtin and then its argument prototype would still apply. */
4392 rm -f conftest.$ac_objext conftest$ac_exeext
4393 if { (eval echo "$as_me:4393: \"$ac_link\"") >&5
4394 (eval $ac_link) 2>&5
4396 echo "$as_me:4396: \$? = $ac_status" >&5
4397 (exit $ac_status); } &&
4398 { ac_try='test -s conftest$ac_exeext'
4399 { (eval echo "$as_me:4399: \"$ac_try\"") >&5
4402 echo "$as_me:4402: \$? = $ac_status" >&5
4403 (exit $ac_status); }; }; then
4404 ac_cv_lib_gpm_Gpm_Open=yes
4406 echo "$as_me: failed program was:" >&5
4407 cat conftest.$ac_ext >&5
4408 ac_cv_lib_gpm_Gpm_Open=no
4410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4411 LIBS=$ac_check_lib_save_LIBS
4413 echo "$as_me:4413: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4414 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4415 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4419 { { echo "$as_me:4419: error: Cannot link with GPM library" >&5
4420 echo "$as_me: error: Cannot link with GPM library" >&2;}
4421 { (exit 1); exit 1; }; }
4429 test "$with_gpm" != maybe && { echo "$as_me:4429: WARNING: Cannot find GPM header" >&5
4430 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4437 if test "$with_gpm" != no ; then
4438 echo "$as_me:4438: checking if you want to load GPM dynamically" >&5
4439 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4441 # Check whether --with-dlsym or --without-dlsym was given.
4442 if test "${with_dlsym+set}" = set; then
4443 withval="$with_dlsym"
4448 echo "$as_me:4448: result: $with_dlsym" >&5
4449 echo "${ECHO_T}$with_dlsym" >&6
4450 if test "$with_dlsym" = yes ; then
4453 echo "$as_me:4453: checking for dlsym" >&5
4454 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4455 if test "${ac_cv_func_dlsym+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 cat >conftest.$ac_ext <<_ACEOF
4459 #line 4459 "configure"
4460 #include "confdefs.h"
4461 /* System header to define __stub macros and hopefully few prototypes,
4462 which can conflict with char dlsym (); below. */
4464 /* Override any gcc2 internal prototype to avoid an error. */
4468 /* We use char because int might match the return type of a gcc2
4469 builtin and then its argument prototype would still apply. */
4476 /* The GNU C library defines this for functions which it implements
4477 to always fail with ENOSYS. Some functions are actually named
4478 something starting with __ and the normal name is an alias. */
4479 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4489 rm -f conftest.$ac_objext conftest$ac_exeext
4490 if { (eval echo "$as_me:4490: \"$ac_link\"") >&5
4491 (eval $ac_link) 2>&5
4493 echo "$as_me:4493: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try='test -s conftest$ac_exeext'
4496 { (eval echo "$as_me:4496: \"$ac_try\"") >&5
4499 echo "$as_me:4499: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4501 ac_cv_func_dlsym=yes
4503 echo "$as_me: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4509 echo "$as_me:4509: result: $ac_cv_func_dlsym" >&5
4510 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4511 if test $ac_cv_func_dlsym = yes; then
4516 echo "$as_me:4516: checking for dlsym in -ldl" >&5
4517 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4518 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 ac_check_lib_save_LIBS=$LIBS
4523 cat >conftest.$ac_ext <<_ACEOF
4524 #line 4524 "configure"
4525 #include "confdefs.h"
4527 /* Override any gcc2 internal prototype to avoid an error. */
4531 /* We use char because int might match the return type of a gcc2
4532 builtin and then its argument prototype would still apply. */
4542 rm -f conftest.$ac_objext conftest$ac_exeext
4543 if { (eval echo "$as_me:4543: \"$ac_link\"") >&5
4544 (eval $ac_link) 2>&5
4546 echo "$as_me:4546: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -s conftest$ac_exeext'
4549 { (eval echo "$as_me:4549: \"$ac_try\"") >&5
4552 echo "$as_me:4552: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 ac_cv_lib_dl_dlsym=yes
4556 echo "$as_me: failed program was:" >&5
4557 cat conftest.$ac_ext >&5
4558 ac_cv_lib_dl_dlsym=no
4560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4561 LIBS=$ac_check_lib_save_LIBS
4563 echo "$as_me:4563: result: $ac_cv_lib_dl_dlsym" >&5
4564 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4565 if test $ac_cv_lib_dl_dlsym = yes; then
4573 if test "$cf_have_dlsym" = yes ; then
4574 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
4576 echo "$as_me:4576: checking whether able to link to dl*() functions" >&5
4577 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
4578 cat >conftest.$ac_ext <<_ACEOF
4579 #line 4579 "configure"
4580 #include "confdefs.h"
4587 if ((obj = dlopen("filename", 0)) != 0) {
4588 if (dlsym(obj, "symbolname") == 0) {
4596 rm -f conftest.$ac_objext conftest$ac_exeext
4597 if { (eval echo "$as_me:4597: \"$ac_link\"") >&5
4598 (eval $ac_link) 2>&5
4600 echo "$as_me:4600: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -s conftest$ac_exeext'
4603 { (eval echo "$as_me:4603: \"$ac_try\"") >&5
4606 echo "$as_me:4606: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4609 cat >>confdefs.h <<\EOF
4610 #define HAVE_LIBDL 1
4614 echo "$as_me: failed program was:" >&5
4615 cat conftest.$ac_ext >&5
4617 { { echo "$as_me:4617: error: Cannot link test program for libdl" >&5
4618 echo "$as_me: error: Cannot link test program for libdl" >&2;}
4619 { (exit 1); exit 1; }; }
4621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4622 echo "$as_me:4622: result: ok" >&5
4623 echo "${ECHO_T}ok" >&6
4625 { { echo "$as_me:4625: error: Cannot find dlsym function" >&5
4626 echo "$as_me: error: Cannot find dlsym function" >&2;}
4627 { (exit 1); exit 1; }; }
4630 if test "$with_gpm" != yes ; then
4631 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
4633 cf_cv_gpm_soname="$with_gpm"
4636 echo "$as_me:4636: checking for soname of gpm library" >&5
4637 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
4638 if test "${cf_cv_gpm_soname+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 cf_cv_gpm_soname=unknown
4643 if test "$cross_compiling" != yes ; then
4644 cat >conftest.$ac_ext <<CF_EOF
4648 if (Gpm_Open(0,0)) Gpm_Close();
4649 ${cf_cv_main_return:-return}(0);
4652 cf_save_LIBS="$LIBS"
4654 if { (eval echo "$as_me:4654: \"$ac_compile\"") >&5
4655 (eval $ac_compile) 2>&5
4657 echo "$as_me:4657: \$? = $ac_status" >&5
4658 (exit $ac_status); } ; then
4659 if { (eval echo "$as_me:4659: \"$ac_link\"") >&5
4660 (eval $ac_link) 2>&5
4662 echo "$as_me:4662: \$? = $ac_status" >&5
4663 (exit $ac_status); } ; then
4664 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
4665 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
4669 LIBS="$cf_save_LIBS"
4673 echo "$as_me:4673: result: $cf_cv_gpm_soname" >&5
4674 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
4677 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
4678 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
4681 SHLIB_LIST="-ldl $SHLIB_LIST"
4683 SHLIB_LIST="-lgpm $SHLIB_LIST"
4685 cat >>confdefs.h <<\EOF
4686 #define HAVE_LIBGPM 1
4689 echo "$as_me:4689: checking for Gpm_Wgetch in -lgpm" >&5
4690 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
4691 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 ac_check_lib_save_LIBS=$LIBS
4696 cat >conftest.$ac_ext <<_ACEOF
4697 #line 4697 "configure"
4698 #include "confdefs.h"
4700 /* Override any gcc2 internal prototype to avoid an error. */
4704 /* We use char because int might match the return type of a gcc2
4705 builtin and then its argument prototype would still apply. */
4715 rm -f conftest.$ac_objext conftest$ac_exeext
4716 if { (eval echo "$as_me:4716: \"$ac_link\"") >&5
4717 (eval $ac_link) 2>&5
4719 echo "$as_me:4719: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -s conftest$ac_exeext'
4722 { (eval echo "$as_me:4722: \"$ac_try\"") >&5
4725 echo "$as_me:4725: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 ac_cv_lib_gpm_Gpm_Wgetch=yes
4729 echo "$as_me: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4731 ac_cv_lib_gpm_Gpm_Wgetch=no
4733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4734 LIBS=$ac_check_lib_save_LIBS
4736 echo "$as_me:4736: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
4737 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
4738 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
4740 { echo "$as_me:4740: WARNING: GPM library is already linked with curses - read the FAQ" >&5
4741 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
4747 # not everyone has "test -c"
4748 if test -c /dev/sysmouse 2>/dev/null ; then
4749 echo "$as_me:4749: checking if you want to use sysmouse" >&5
4750 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
4752 # Check whether --with-sysmouse or --without-sysmouse was given.
4753 if test "${with_sysmouse+set}" = set; then
4754 withval="$with_sysmouse"
4755 cf_with_sysmouse=$withval
4757 cf_with_sysmouse=maybe
4759 if test "$cf_with_sysmouse" != no ; then
4760 cat >conftest.$ac_ext <<_ACEOF
4761 #line 4761 "configure"
4762 #include "confdefs.h"
4764 #include <osreldate.h>
4765 #if (__FreeBSD_version >= 400017)
4766 #include <sys/consio.h>
4767 #include <sys/fbio.h>
4769 #include <machine/console.h>
4776 struct mouse_info the_mouse;
4777 ioctl(0, CONS_MOUSECTL, &the_mouse);
4783 rm -f conftest.$ac_objext
4784 if { (eval echo "$as_me:4784: \"$ac_compile\"") >&5
4785 (eval $ac_compile) 2>&5
4787 echo "$as_me:4787: \$? = $ac_status" >&5
4788 (exit $ac_status); } &&
4789 { ac_try='test -s conftest.$ac_objext'
4790 { (eval echo "$as_me:4790: \"$ac_try\"") >&5
4793 echo "$as_me:4793: \$? = $ac_status" >&5
4794 (exit $ac_status); }; }; then
4795 cf_with_sysmouse=yes
4797 echo "$as_me: failed program was:" >&5
4798 cat conftest.$ac_ext >&5
4801 rm -f conftest.$ac_objext conftest.$ac_ext
4803 echo "$as_me:4803: result: $cf_with_sysmouse" >&5
4804 echo "${ECHO_T}$cf_with_sysmouse" >&6
4805 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
4806 #define USE_SYSMOUSE 1
4811 if test X"$CC_G_OPT" = X"" ; then
4813 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
4816 if test X"$CXX_G_OPT" = X"" ; then
4818 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
4821 echo "$as_me:4821: checking for default loader flags" >&5
4822 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
4823 case $DFT_LWR_MODEL in
4824 libtool) LD_MODEL='' ;;
4825 normal) LD_MODEL='' ;;
4826 debug) LD_MODEL=$CC_G_OPT ;;
4827 profile) LD_MODEL='-pg';;
4828 shared) LD_MODEL='' ;;
4830 echo "$as_me:4830: result: $LD_MODEL" >&5
4831 echo "${ECHO_T}$LD_MODEL" >&6
4833 case $DFT_LWR_MODEL in
4835 echo "$as_me:4835: checking if rpath option should be used" >&5
4836 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
4838 # Check whether --enable-rpath or --disable-rpath was given.
4839 if test "${enable_rpath+set}" = set; then
4840 enableval="$enable_rpath"
4841 cf_cv_ld_rpath=$enableval
4845 echo "$as_me:4845: result: $cf_cv_ld_rpath" >&5
4846 echo "${ECHO_T}$cf_cv_ld_rpath" >&6
4847 echo "$as_me:4847: checking if shared libraries should be relinked during install" >&5
4848 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
4850 # Check whether --enable-rpath or --disable-rpath was given.
4851 if test "${enable_rpath+set}" = set; then
4852 enableval="$enable_rpath"
4853 cf_cv_do_relink=$enableval
4857 echo "$as_me:4857: result: $cf_cv_do_relink" >&5
4858 echo "${ECHO_T}$cf_cv_do_relink" >&6
4865 INSTALL_LIB="-m 644"
4867 cf_cv_do_symlinks=no
4869 echo "$as_me:4869: checking if release/abi version should be used for shared libs" >&5
4870 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
4872 # Check whether --with-shlib-version or --without-shlib-version was given.
4873 if test "${with_shlib_version+set}" = set; then
4874 withval="$with_shlib_version"
4875 test -z "$withval" && withval=auto
4876 case $withval in #(vi
4878 cf_cv_shlib_version=auto
4880 rel|abi|auto|no) #(vi
4881 cf_cv_shlib_version=$withval
4884 { { echo "$as_me:4884: error: option value must be one of: rel, abi, auto or no" >&5
4885 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
4886 { (exit 1); exit 1; }; }
4891 cf_cv_shlib_version=auto
4893 echo "$as_me:4893: result: $cf_cv_shlib_version" >&5
4894 echo "${ECHO_T}$cf_cv_shlib_version" >&6
4898 # Some less-capable ports of gcc support only -fpic
4900 if test "$GCC" = yes
4902 echo "$as_me:4902: checking which $CC option to use" >&5
4903 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
4904 cf_save_CFLAGS="$CFLAGS"
4905 for CC_SHARED_OPTS in -fPIC -fpic ''
4907 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
4908 cat >conftest.$ac_ext <<_ACEOF
4909 #line 4909 "configure"
4910 #include "confdefs.h"
4920 rm -f conftest.$ac_objext
4921 if { (eval echo "$as_me:4921: \"$ac_compile\"") >&5
4922 (eval $ac_compile) 2>&5
4924 echo "$as_me:4924: \$? = $ac_status" >&5
4925 (exit $ac_status); } &&
4926 { ac_try='test -s conftest.$ac_objext'
4927 { (eval echo "$as_me:4927: \"$ac_try\"") >&5
4930 echo "$as_me:4930: \$? = $ac_status" >&5
4931 (exit $ac_status); }; }; then
4934 echo "$as_me: failed program was:" >&5
4935 cat conftest.$ac_ext >&5
4937 rm -f conftest.$ac_objext conftest.$ac_ext
4939 echo "$as_me:4939: result: $CC_SHARED_OPTS" >&5
4940 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
4941 CFLAGS="$cf_save_CFLAGS"
4944 cf_cv_shlib_version_infix=no
4946 case $cf_cv_system_name in
4948 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
4952 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
4953 cf_cv_shlib_version=cygdll
4954 cf_cv_shlib_version_infix=cygdll
4955 cat >mk_shared_lib.sh <<-CF_EOF
4958 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
4961 Linking shared library
4962 ** SHARED_LIB \$SHARED_LIB
4963 ** IMPORT_LIB \$IMPORT_LIB
4965 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
4967 chmod +x mk_shared_lib.sh
4970 EXTRA_CFLAGS="-no-cpp-precomp"
4971 CC_SHARED_OPTS="-dynamic"
4972 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
4973 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
4974 cf_cv_shlib_version_infix=yes
4975 echo "$as_me:4975: checking if ld -search_paths_first works" >&5
4976 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
4977 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 cf_save_LDFLAGS=$LDFLAGS
4982 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
4983 cat >conftest.$ac_ext <<_ACEOF
4984 #line 4984 "configure"
4985 #include "confdefs.h"
4995 rm -f conftest.$ac_objext conftest$ac_exeext
4996 if { (eval echo "$as_me:4996: \"$ac_link\"") >&5
4997 (eval $ac_link) 2>&5
4999 echo "$as_me:4999: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
5001 { ac_try='test -s conftest$ac_exeext'
5002 { (eval echo "$as_me:5002: \"$ac_try\"") >&5
5005 echo "$as_me:5005: \$? = $ac_status" >&5
5006 (exit $ac_status); }; }; then
5007 cf_cv_ldflags_search_paths_first=yes
5009 echo "$as_me: failed program was:" >&5
5010 cat conftest.$ac_ext >&5
5011 cf_cv_ldflags_search_paths_first=no
5013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5014 LDFLAGS=$cf_save_LDFLAGS
5016 echo "$as_me:5016: result: $cf_cv_ldflags_search_paths_first" >&5
5017 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5018 if test $cf_cv_ldflags_search_paths_first = yes; then
5019 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5023 # (tested with gcc 2.7.2 -- I don't have c89)
5024 if test "$GCC" = yes; then
5025 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5028 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5030 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5031 # HP-UX shared libraries must be executable, and should be
5032 # readonly to exploit a quirk in the memory manager.
5033 INSTALL_LIB="-m 555"
5036 if test "$cf_cv_ld_rpath" = yes ; then
5037 if test "$GCC" = yes; then
5038 cf_ld_rpath_opt="-Wl,-rpath,"
5039 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5041 cf_ld_rpath_opt="-rpath "
5042 EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
5045 # tested with IRIX 5.2 and 'cc'.
5046 if test "$GCC" != yes; then
5047 CC_SHARED_OPTS='-KPIC'
5049 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5050 cf_cv_rm_so_locs=yes
5052 linux*|gnu*|k*bsd*-gnu)
5053 if test "$DFT_LWR_MODEL" = "shared" ; then
5054 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5055 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5057 if test "$cf_cv_ld_rpath" = yes ; then
5058 cf_ld_rpath_opt="-Wl,-rpath,"
5059 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5062 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5063 if test "$cf_cv_shlib_version" = rel; then
5064 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5066 cf_shared_soname='`basename $@`'
5069 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_shared_soname',-stats,-lc -o $@'
5072 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5073 MK_SHARED_LIB='${LD} -Bshareable -soname,`basename $@.${ABI_VERSION}` -o $@'
5075 openbsd*|freebsd[12].*)
5076 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5077 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5078 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5081 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5082 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
5083 LOCAL_LDFLAGS="-rpath \$(LOCAL_LIBDIR)"
5084 LOCAL_LDFLAGS2="-rpath \${libdir} $LOCAL_LDFLAGS"
5085 cf_ld_rpath_opt="-rpath "
5086 EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
5089 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5090 if test "$cf_cv_shlib_version" = rel; then
5091 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5093 cf_shared_soname='`basename $@`'
5096 MK_SHARED_LIB='${LD} -Bshareable -soname=`basename $@` -o $@'
5099 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5100 test "$cf_cv_ld_rpath" = yes && cf_ld_rpath_opt="-Wl,-rpath,"
5101 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
5102 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5103 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5104 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5105 if test "$cf_cv_shlib_version" = auto; then
5106 if test -f /usr/libexec/ld.elf_so; then
5107 cf_cv_shlib_version=abi
5109 cf_cv_shlib_version=rel
5113 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5114 if test "$cf_cv_shlib_version" = rel; then
5115 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5117 cf_shared_soname='`basename $@`'
5120 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_shared_soname' -o $@'
5122 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5126 # tested with OSF/1 V3.2 and 'cc'
5127 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5128 # link with shared libs).
5129 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5132 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5135 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5136 if test "$DFT_LWR_MODEL" = "shared" ; then
5137 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5138 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5140 if test "$cf_cv_ld_rpath" = yes ; then
5141 cf_ld_rpath_opt="-rpath"
5142 # EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
5144 cf_cv_rm_so_locs=yes
5146 sco3.2v5*) # (also uw2* and UW7) hops 13-Apr-98
5147 # tested with osr5.0.5
5148 if test "$GCC" != yes; then
5149 CC_SHARED_OPTS='-belf -KPIC'
5151 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5152 if test "$cf_cv_ld_rpath" = yes ; then
5153 # only way is to set LD_RUN_PATH but no switch for it
5156 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5157 LINK_PROGS='LD_RUN_PATH=${libdir}'
5158 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5161 # tested with SunOS 4.1.1 and gcc 2.7.0
5162 if test "$GCC" != yes; then
5163 CC_SHARED_OPTS='-KPIC'
5165 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5166 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5169 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5170 if test "$GCC" != yes; then
5171 CC_SHARED_OPTS='-KPIC'
5173 if test "$DFT_LWR_MODEL" = "shared" ; then
5174 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5175 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5177 if test "$cf_cv_ld_rpath" = yes ; then
5178 cf_ld_rpath_opt="-R"
5179 EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
5182 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5183 if test "$cf_cv_shlib_version" = rel; then
5184 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5186 cf_shared_soname='`basename $@`'
5189 MK_SHARED_LIB='${CC} -dy -G -h '$cf_shared_soname' -o $@'
5192 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
5193 if test "$GCC" != yes; then
5194 CC_SHARED_OPTS='-KPIC'
5196 MK_SHARED_LIB='${LD} -d y -G -o $@'
5199 CC_SHARED_OPTS='unknown'
5200 MK_SHARED_LIB='echo unknown'
5204 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
5205 case "$cf_cv_shlib_version" in #(vi
5207 case "$MK_SHARED_LIB" in #(vi
5209 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
5212 { echo "$as_me:5212: WARNING: ignored --with-shlib-version" >&5
5213 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
5219 if test -n "$cf_ld_rpath_opt" ; then
5220 echo "$as_me:5220: checking if we need a space after rpath option" >&5
5221 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5222 cf_save_LIBS="$LIBS"
5223 LIBS="$LIBS ${cf_ld_rpath_opt}$libdir"
5224 cat >conftest.$ac_ext <<_ACEOF
5225 #line 5225 "configure"
5226 #include "confdefs.h"
5236 rm -f conftest.$ac_objext conftest$ac_exeext
5237 if { (eval echo "$as_me:5237: \"$ac_link\"") >&5
5238 (eval $ac_link) 2>&5
5240 echo "$as_me:5240: \$? = $ac_status" >&5
5241 (exit $ac_status); } &&
5242 { ac_try='test -s conftest$ac_exeext'
5243 { (eval echo "$as_me:5243: \"$ac_try\"") >&5
5246 echo "$as_me:5246: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5250 echo "$as_me: failed program was:" >&5
5251 cat conftest.$ac_ext >&5
5254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5255 LIBS="$cf_save_LIBS"
5256 echo "$as_me:5256: result: $cf_rpath_space" >&5
5257 echo "${ECHO_T}$cf_rpath_space" >&6
5258 test "$cf_rpath_space" = yes && cf_ld_rpath_opt="$cf_ld_rpath_opt "
5259 MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${libdir}"
5262 if test "$CC_SHARED_OPTS" = "unknown"; then
5263 for model in $cf_list_models; do
5264 if test "$model" = "shared"; then
5265 { { echo "$as_me:5265: error: Shared libraries are not supported in this version" >&5
5266 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
5267 { (exit 1); exit 1; }; }
5272 ###############################################################################
5274 ### use option --disable-overwrite to leave out the link to -lcurses
5275 echo "$as_me:5275: checking if you wish to install ncurses overwriting curses" >&5
5276 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
5278 # Check whether --enable-overwrite or --disable-overwrite was given.
5279 if test "${enable_overwrite+set}" = set; then
5280 enableval="$enable_overwrite"
5281 with_overwrite=$enableval
5283 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
5285 echo "$as_me:5285: result: $with_overwrite" >&5
5286 echo "${ECHO_T}$with_overwrite" >&6
5288 echo "$as_me:5288: checking if external terminfo-database is used" >&5
5289 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
5291 # Check whether --enable-database or --disable-database was given.
5292 if test "${enable_database+set}" = set; then
5293 enableval="$enable_database"
5294 use_database=$enableval
5298 echo "$as_me:5298: result: $use_database" >&5
5299 echo "${ECHO_T}$use_database" >&6
5301 case $host_os in #(vi
5303 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
5306 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
5310 case $cf_cv_system_name in
5311 os2*) PATHSEP=';' ;;
5315 if test "$use_database" != no ; then
5316 cat >>confdefs.h <<\EOF
5317 #define USE_DATABASE 1
5320 echo "$as_me:5320: checking which terminfo source-file will be installed" >&5
5321 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
5323 # Check whether --enable-database or --disable-database was given.
5324 if test "${enable_database+set}" = set; then
5325 enableval="$enable_database"
5326 TERMINFO_SRC=$withval
5328 echo "$as_me:5328: result: $TERMINFO_SRC" >&5
5329 echo "${ECHO_T}$TERMINFO_SRC" >&6
5331 echo "$as_me:5331: checking whether to use hashed database instead of directory/tree" >&5
5332 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
5334 # Check whether --with-hashed-db or --without-hashed-db was given.
5335 if test "${with_hashed_db+set}" = set; then
5336 withval="$with_hashed_db"
5341 echo "$as_me:5341: result: $with_hashed_db" >&5
5342 echo "${ECHO_T}$with_hashed_db" >&6
5345 echo "$as_me:5345: checking for list of fallback descriptions" >&5
5346 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
5348 # Check whether --with-fallbacks or --without-fallbacks was given.
5349 if test "${with_fallbacks+set}" = set; then
5350 withval="$with_fallbacks"
5351 with_fallback=$withval
5355 echo "$as_me:5355: result: $with_fallback" >&5
5356 echo "${ECHO_T}$with_fallback" >&6
5357 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
5359 echo "$as_me:5359: checking if you want modern xterm or antique" >&5
5360 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
5362 # Check whether --with-xterm-new or --without-xterm-new was given.
5363 if test "${with_xterm_new+set}" = set; then
5364 withval="$with_xterm_new"
5365 with_xterm_new=$withval
5369 case $with_xterm_new in
5370 no) with_xterm_new=xterm-old;;
5371 *) with_xterm_new=xterm-new;;
5373 echo "$as_me:5373: result: $with_xterm_new" >&5
5374 echo "${ECHO_T}$with_xterm_new" >&6
5375 WHICH_XTERM=$with_xterm_new
5378 if test "$use_database" = no ; then
5379 TERMINFO="${datadir}/terminfo"
5383 echo "$as_me:5383: checking for list of terminfo directories" >&5
5384 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
5386 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
5387 if test "${with_terminfo_dirs+set}" = set; then
5388 withval="$with_terminfo_dirs"
5391 withval=${TERMINFO_DIRS-${datadir}/terminfo}
5393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
5395 for cf_src_path in $withval
5398 if test "x$prefix" != xNONE; then
5399 cf_path_syntax="$prefix"
5401 cf_path_syntax="$ac_default_prefix"
5404 case ".$cf_src_path" in #(vi
5405 .\$\(*\)*|.\'*\'*) #(vi
5409 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5412 eval cf_src_path="$cf_src_path"
5413 case ".$cf_src_path" in #(vi
5415 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5420 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5423 { { echo "$as_me:5423: error: expected a pathname, not \"$cf_src_path\"" >&5
5424 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
5425 { (exit 1); exit 1; }; }
5429 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
5430 cf_dst_path="${cf_dst_path}${cf_src_path}"
5434 eval 'TERMINFO_DIRS="$cf_dst_path"'
5436 echo "$as_me:5436: result: $TERMINFO_DIRS" >&5
5437 echo "${ECHO_T}$TERMINFO_DIRS" >&6
5438 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
5439 #define TERMINFO_DIRS "$TERMINFO_DIRS"
5442 echo "$as_me:5442: checking for default terminfo directory" >&5
5443 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
5445 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
5446 if test "${with_default_terminfo_dir+set}" = set; then
5447 withval="$with_default_terminfo_dir"
5450 withval="${TERMINFO-${datadir}/terminfo}"
5452 if test "x$prefix" != xNONE; then
5453 cf_path_syntax="$prefix"
5455 cf_path_syntax="$ac_default_prefix"
5458 case ".$withval" in #(vi
5459 .\$\(*\)*|.\'*\'*) #(vi
5463 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5466 eval withval="$withval"
5467 case ".$withval" in #(vi
5469 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5474 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5477 { { echo "$as_me:5477: error: expected a pathname, not \"$withval\"" >&5
5478 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
5479 { (exit 1); exit 1; }; }
5485 echo "$as_me:5485: result: $TERMINFO" >&5
5486 echo "${ECHO_T}$TERMINFO" >&6
5487 cat >>confdefs.h <<EOF
5488 #define TERMINFO "$TERMINFO"
5493 ### use option --disable-big-core to make tic run on small machines
5494 ### We need 4Mb, check if we can allocate 50% more than that.
5495 echo "$as_me:5495: checking if big-core option selected" >&5
5496 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
5498 # Check whether --enable-big-core or --disable-big-core was given.
5499 if test "${enable_big_core+set}" = set; then
5500 enableval="$enable_big_core"
5501 with_big_core=$enableval
5503 if test "$cross_compiling" = yes; then
5506 cat >conftest.$ac_ext <<_ACEOF
5507 #line 5507 "configure"
5508 #include "confdefs.h"
5513 unsigned long n = 6000000L;
5514 char *s = malloc(n);
5517 ${cf_cv_main_return:-return}(s == 0);
5520 rm -f conftest$ac_exeext
5521 if { (eval echo "$as_me:5521: \"$ac_link\"") >&5
5522 (eval $ac_link) 2>&5
5524 echo "$as_me:5524: \$? = $ac_status" >&5
5525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5526 { (eval echo "$as_me:5526: \"$ac_try\"") >&5
5529 echo "$as_me:5529: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5533 echo "$as_me: program exited with status $ac_status" >&5
5534 echo "$as_me: failed program was:" >&5
5535 cat conftest.$ac_ext >&5
5538 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5541 echo "$as_me:5541: result: $with_big_core" >&5
5542 echo "${ECHO_T}$with_big_core" >&6
5543 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
5544 #define HAVE_BIG_CORE 1
5547 ### use option --enable-termcap to compile in the termcap fallback support
5548 echo "$as_me:5548: checking if you want termcap-fallback support" >&5
5549 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
5551 # Check whether --enable-termcap or --disable-termcap was given.
5552 if test "${enable_termcap+set}" = set; then
5553 enableval="$enable_termcap"
5554 with_termcap=$enableval
5558 echo "$as_me:5558: result: $with_termcap" >&5
5559 echo "${ECHO_T}$with_termcap" >&6
5561 if test "$with_termcap" != "yes" ; then
5562 if test "$use_database" = no ; then
5563 if test -z "$with_fallback" ; then
5564 { { echo "$as_me:5564: error: You have disabled the database w/o specifying fallbacks" >&5
5565 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
5566 { (exit 1); exit 1; }; }
5569 cat >>confdefs.h <<\EOF
5570 #define PURE_TERMINFO 1
5575 if test "$with_ticlib" != no ; then
5576 { { echo "$as_me:5576: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
5577 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
5578 { (exit 1); exit 1; }; }
5581 cat >>confdefs.h <<\EOF
5582 #define USE_TERMCAP 1
5585 echo "$as_me:5585: checking for list of termcap files" >&5
5586 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
5588 # Check whether --with-termpath or --without-termpath was given.
5589 if test "${with_termpath+set}" = set; then
5590 withval="$with_termpath"
5593 withval=${TERMPATH-/etc/termcap:/usr/share/misc/termcap}
5595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
5597 for cf_src_path in $withval
5600 if test "x$prefix" != xNONE; then
5601 cf_path_syntax="$prefix"
5603 cf_path_syntax="$ac_default_prefix"
5606 case ".$cf_src_path" in #(vi
5607 .\$\(*\)*|.\'*\'*) #(vi
5611 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5614 eval cf_src_path="$cf_src_path"
5615 case ".$cf_src_path" in #(vi
5617 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5622 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5625 { { echo "$as_me:5625: error: expected a pathname, not \"$cf_src_path\"" >&5
5626 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
5627 { (exit 1); exit 1; }; }
5631 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
5632 cf_dst_path="${cf_dst_path}${cf_src_path}"
5636 eval 'TERMPATH="$cf_dst_path"'
5638 echo "$as_me:5638: result: $TERMPATH" >&5
5639 echo "${ECHO_T}$TERMPATH" >&6
5640 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
5641 #define TERMPATH "$TERMPATH"
5644 ### use option --enable-getcap to use a hacked getcap for reading termcaps
5645 echo "$as_me:5645: checking if fast termcap-loader is needed" >&5
5646 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
5648 # Check whether --enable-getcap or --disable-getcap was given.
5649 if test "${enable_getcap+set}" = set; then
5650 enableval="$enable_getcap"
5651 with_getcap=$enableval
5655 echo "$as_me:5655: result: $with_getcap" >&5
5656 echo "${ECHO_T}$with_getcap" >&6
5657 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
5658 #define USE_GETCAP 1
5661 echo "$as_me:5661: checking if translated termcaps will be cached in ~/.terminfo" >&5
5662 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
5664 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
5665 if test "${enable_getcap_cache+set}" = set; then
5666 enableval="$enable_getcap_cache"
5667 with_getcap_cache=$enableval
5669 with_getcap_cache=no
5671 echo "$as_me:5671: result: $with_getcap_cache" >&5
5672 echo "${ECHO_T}$with_getcap_cache" >&6
5673 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
5674 #define USE_GETCAP_CACHE 1
5679 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
5680 echo "$as_me:5680: checking if ~/.terminfo is wanted" >&5
5681 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
5683 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
5684 if test "${enable_home_terminfo+set}" = set; then
5685 enableval="$enable_home_terminfo"
5686 with_home_terminfo=$enableval
5688 with_home_terminfo=yes
5690 echo "$as_me:5690: result: $with_home_terminfo" >&5
5691 echo "${ECHO_T}$with_home_terminfo" >&6
5692 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
5693 #define USE_HOME_TERMINFO 1
5696 echo "$as_me:5696: checking if you want to use restricted environment when running as root" >&5
5697 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
5699 # Check whether --enable-root-environ or --disable-root-environ was given.
5700 if test "${enable_root_environ+set}" = set; then
5701 enableval="$enable_root_environ"
5702 with_root_environ=$enableval
5704 with_root_environ=yes
5706 echo "$as_me:5706: result: $with_root_environ" >&5
5707 echo "${ECHO_T}$with_root_environ" >&6
5708 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
5709 #define USE_ROOT_ENVIRON 1
5712 ### Use option --enable-symlinks to make tic use symlinks, not hard links
5713 ### to reduce storage requirements for the terminfo database.
5719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5720 echo "$as_me:5720: checking for $ac_func" >&5
5721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5722 if eval "test \"\${$as_ac_var+set}\" = set"; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 cat >conftest.$ac_ext <<_ACEOF
5726 #line 5726 "configure"
5727 #include "confdefs.h"
5728 /* System header to define __stub macros and hopefully few prototypes,
5729 which can conflict with char $ac_func (); below. */
5731 /* Override any gcc2 internal prototype to avoid an error. */
5735 /* We use char because int might match the return type of a gcc2
5736 builtin and then its argument prototype would still apply. */
5743 /* The GNU C library defines this for functions which it implements
5744 to always fail with ENOSYS. Some functions are actually named
5745 something starting with __ and the normal name is an alias. */
5746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5756 rm -f conftest.$ac_objext conftest$ac_exeext
5757 if { (eval echo "$as_me:5757: \"$ac_link\"") >&5
5758 (eval $ac_link) 2>&5
5760 echo "$as_me:5760: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -s conftest$ac_exeext'
5763 { (eval echo "$as_me:5763: \"$ac_try\"") >&5
5766 echo "$as_me:5766: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5768 eval "$as_ac_var=yes"
5770 echo "$as_me: failed program was:" >&5
5771 cat conftest.$ac_ext >&5
5772 eval "$as_ac_var=no"
5774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5776 echo "$as_me:5776: result: `eval echo '${'$as_ac_var'}'`" >&5
5777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5778 if test `eval echo '${'$as_ac_var'}'` = yes; then
5779 cat >>confdefs.h <<EOF
5780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5786 if test "$cross_compiling" = yes ; then
5792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5793 echo "$as_me:5793: checking for $ac_func" >&5
5794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5795 if eval "test \"\${$as_ac_var+set}\" = set"; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 cat >conftest.$ac_ext <<_ACEOF
5799 #line 5799 "configure"
5800 #include "confdefs.h"
5801 /* System header to define __stub macros and hopefully few prototypes,
5802 which can conflict with char $ac_func (); below. */
5804 /* Override any gcc2 internal prototype to avoid an error. */
5808 /* We use char because int might match the return type of a gcc2
5809 builtin and then its argument prototype would still apply. */
5816 /* The GNU C library defines this for functions which it implements
5817 to always fail with ENOSYS. Some functions are actually named
5818 something starting with __ and the normal name is an alias. */
5819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5829 rm -f conftest.$ac_objext conftest$ac_exeext
5830 if { (eval echo "$as_me:5830: \"$ac_link\"") >&5
5831 (eval $ac_link) 2>&5
5833 echo "$as_me:5833: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
5835 { ac_try='test -s conftest$ac_exeext'
5836 { (eval echo "$as_me:5836: \"$ac_try\"") >&5
5839 echo "$as_me:5839: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
5841 eval "$as_ac_var=yes"
5843 echo "$as_me: failed program was:" >&5
5844 cat conftest.$ac_ext >&5
5845 eval "$as_ac_var=no"
5847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5849 echo "$as_me:5849: result: `eval echo '${'$as_ac_var'}'`" >&5
5850 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5851 if test `eval echo '${'$as_ac_var'}'` = yes; then
5852 cat >>confdefs.h <<EOF
5853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5860 echo "$as_me:5860: checking if link/symlink functions work" >&5
5861 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
5862 if test "${cf_cv_link_funcs+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 for cf_func in link symlink ; do
5868 if test "$cross_compiling" = yes; then
5870 eval 'ac_cv_func_'$cf_func'=error'
5872 cat >conftest.$ac_ext <<_ACEOF
5873 #line 5873 "configure"
5874 #include "confdefs.h"
5876 #include <sys/types.h>
5877 #include <sys/stat.h>
5878 #ifdef HAVE_UNISTD_H
5884 char *src = "config.log";
5885 char *dst = "conftest.chk";
5890 fail = ($cf_func("config.log", "conftest.chk") < 0)
5891 || (stat(dst, &dst_sb) < 0)
5892 || (dst_sb.st_mtime != src_sb.st_mtime);
5898 ${cf_cv_main_return:-return} (fail);
5902 rm -f conftest$ac_exeext
5903 if { (eval echo "$as_me:5903: \"$ac_link\"") >&5
5904 (eval $ac_link) 2>&5
5906 echo "$as_me:5906: \$? = $ac_status" >&5
5907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5908 { (eval echo "$as_me:5908: \"$ac_try\"") >&5
5911 echo "$as_me:5911: \$? = $ac_status" >&5
5912 (exit $ac_status); }; }; then
5914 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
5915 eval 'ac_cv_func_'$cf_func'=yes'
5917 echo "$as_me: program exited with status $ac_status" >&5
5918 echo "$as_me: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5921 eval 'ac_cv_func_'$cf_func'=no'
5923 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5926 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
5929 echo "$as_me:5929: result: $cf_cv_link_funcs" >&5
5930 echo "${ECHO_T}$cf_cv_link_funcs" >&6
5931 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
5935 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
5936 #define HAVE_SYMLINK 1
5944 # soft links (symbolic links) are useful for some systems where hard links do
5945 # not work, or to make it simpler to copy terminfo trees around.
5946 if test "$ac_cv_func_symlink" = yes ; then
5947 echo "$as_me:5947: checking if tic should use symbolic links" >&5
5948 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
5950 # Check whether --enable-symlinks or --disable-symlinks was given.
5951 if test "${enable_symlinks+set}" = set; then
5952 enableval="$enable_symlinks"
5953 with_symlinks=$enableval
5957 echo "$as_me:5957: result: $with_symlinks" >&5
5958 echo "${ECHO_T}$with_symlinks" >&6
5961 # If we have hard links and did not choose to use soft links instead, there is
5962 # no reason to make this choice optional - use the hard links.
5963 if test "$with_symlinks" = no ; then
5964 echo "$as_me:5964: checking if tic should use hard links" >&5
5965 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
5966 if test "$ac_cv_func_link" = yes ; then
5971 echo "$as_me:5971: result: $with_links" >&5
5972 echo "${ECHO_T}$with_links" >&6
5975 test "$with_links" = yes && cat >>confdefs.h <<\EOF
5979 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
5980 #define USE_SYMLINKS 1
5983 ### use option --enable-broken-linker to force on use of broken-linker support
5984 echo "$as_me:5984: checking if you want broken-linker support code" >&5
5985 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
5987 # Check whether --enable-broken_linker or --disable-broken_linker was given.
5988 if test "${enable_broken_linker+set}" = set; then
5989 enableval="$enable_broken_linker"
5990 with_broken_linker=$enableval
5992 with_broken_linker=${BROKEN_LINKER-no}
5994 echo "$as_me:5994: result: $with_broken_linker" >&5
5995 echo "${ECHO_T}$with_broken_linker" >&6
5998 if test "$with_broken_linker" = yes ; then
5999 cat >>confdefs.h <<\EOF
6000 #define BROKEN_LINKER 1
6004 elif test "$DFT_LWR_MODEL" = shared ; then
6005 case $cf_cv_system_name in #(vi
6007 cat >>confdefs.h <<\EOF
6008 #define BROKEN_LINKER 1
6012 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
6018 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
6019 echo "$as_me:6019: checking if tputs should process BSD-style prefix padding" >&5
6020 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
6022 # Check whether --enable-bsdpad or --disable-bsdpad was given.
6023 if test "${enable_bsdpad+set}" = set; then
6024 enableval="$enable_bsdpad"
6025 with_bsdpad=$enableval
6029 echo "$as_me:6029: result: $with_bsdpad" >&5
6030 echo "${ECHO_T}$with_bsdpad" >&6
6031 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
6035 ### use option --enable-widec to turn on use of wide-character support
6044 # Check to define _XOPEN_SOURCE "automatically"
6046 echo "$as_me:6046: checking if $CC -U and -D options work together" >&5
6047 echo $ECHO_N "checking if $CC -U and -D options work together... $ECHO_C" >&6
6048 if test "${cf_cv_cc_u_d_options+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 cf_save_CPPFLAGS="$CPPFLAGS"
6053 CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS"
6054 cat >conftest.$ac_ext <<_ACEOF
6055 #line 6055 "configure"
6056 #include "confdefs.h"
6063 make an undefined-error
6066 make a defined-error
6073 rm -f conftest.$ac_objext
6074 if { (eval echo "$as_me:6074: \"$ac_compile\"") >&5
6075 (eval $ac_compile) 2>&5
6077 echo "$as_me:6077: \$? = $ac_status" >&5
6078 (exit $ac_status); } &&
6079 { ac_try='test -s conftest.$ac_objext'
6080 { (eval echo "$as_me:6080: \"$ac_try\"") >&5
6083 echo "$as_me:6083: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6086 cf_cv_cc_u_d_options=yes
6088 echo "$as_me: failed program was:" >&5
6089 cat conftest.$ac_ext >&5
6091 cf_cv_cc_u_d_options=no
6093 rm -f conftest.$ac_objext conftest.$ac_ext
6094 CPPFLAGS="$cf_save_CPPFLAGS"
6097 echo "$as_me:6097: result: $cf_cv_cc_u_d_options" >&5
6098 echo "${ECHO_T}$cf_cv_cc_u_d_options" >&6
6101 cf_POSIX_C_SOURCE=199506L
6103 case $host_os in #(vi
6105 CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE"
6108 # 5.x headers associate
6109 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
6110 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
6111 cf_POSIX_C_SOURCE=200112L
6113 CPPFLAGS="$CPPFLAGS -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6116 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
6119 CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
6121 linux*|gnu*|k*bsd*-gnu) #(vi
6123 echo "$as_me:6123: checking if we must define _GNU_SOURCE" >&5
6124 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
6125 if test "${cf_cv_gnu_source+set}" = set; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 cat >conftest.$ac_ext <<_ACEOF
6130 #line 6130 "configure"
6131 #include "confdefs.h"
6132 #include <sys/types.h>
6137 #ifndef _XOPEN_SOURCE
6144 rm -f conftest.$ac_objext
6145 if { (eval echo "$as_me:6145: \"$ac_compile\"") >&5
6146 (eval $ac_compile) 2>&5
6148 echo "$as_me:6148: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try='test -s conftest.$ac_objext'
6151 { (eval echo "$as_me:6151: \"$ac_try\"") >&5
6154 echo "$as_me:6154: \$? = $ac_status" >&5
6155 (exit $ac_status); }; }; then
6158 echo "$as_me: failed program was:" >&5
6159 cat conftest.$ac_ext >&5
6161 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6162 cat >conftest.$ac_ext <<_ACEOF
6163 #line 6163 "configure"
6164 #include "confdefs.h"
6165 #include <sys/types.h>
6170 #ifdef _XOPEN_SOURCE
6177 rm -f conftest.$ac_objext
6178 if { (eval echo "$as_me:6178: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>&5
6181 echo "$as_me:6181: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try='test -s conftest.$ac_objext'
6184 { (eval echo "$as_me:6184: \"$ac_try\"") >&5
6187 echo "$as_me:6187: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6191 echo "$as_me: failed program was:" >&5
6192 cat conftest.$ac_ext >&5
6193 cf_cv_gnu_source=yes
6195 rm -f conftest.$ac_objext conftest.$ac_ext
6199 rm -f conftest.$ac_objext conftest.$ac_ext
6202 echo "$as_me:6202: result: $cf_cv_gnu_source" >&5
6203 echo "${ECHO_T}$cf_cv_gnu_source" >&6
6204 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6208 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
6211 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
6214 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
6217 CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE"
6220 CPPFLAGS="$CPPFLAGS -D_QNX_SOURCE"
6223 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
6226 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
6229 echo "$as_me:6229: checking if we should define _XOPEN_SOURCE" >&5
6230 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
6231 if test "${cf_cv_xopen_source+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 cat >conftest.$ac_ext <<_ACEOF
6236 #line 6236 "configure"
6237 #include "confdefs.h"
6238 #include <sys/types.h>
6243 #ifndef _XOPEN_SOURCE
6250 rm -f conftest.$ac_objext
6251 if { (eval echo "$as_me:6251: \"$ac_compile\"") >&5
6252 (eval $ac_compile) 2>&5
6254 echo "$as_me:6254: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try='test -s conftest.$ac_objext'
6257 { (eval echo "$as_me:6257: \"$ac_try\"") >&5
6260 echo "$as_me:6260: \$? = $ac_status" >&5
6261 (exit $ac_status); }; }; then
6262 cf_cv_xopen_source=no
6264 echo "$as_me: failed program was:" >&5
6265 cat conftest.$ac_ext >&5
6267 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6268 cat >conftest.$ac_ext <<_ACEOF
6269 #line 6269 "configure"
6270 #include "confdefs.h"
6271 #include <sys/types.h>
6276 #ifdef _XOPEN_SOURCE
6283 rm -f conftest.$ac_objext
6284 if { (eval echo "$as_me:6284: \"$ac_compile\"") >&5
6285 (eval $ac_compile) 2>&5
6287 echo "$as_me:6287: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -s conftest.$ac_objext'
6290 { (eval echo "$as_me:6290: \"$ac_try\"") >&5
6293 echo "$as_me:6293: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 cf_cv_xopen_source=no
6297 echo "$as_me: failed program was:" >&5
6298 cat conftest.$ac_ext >&5
6299 cf_cv_xopen_source=$cf_XOPEN_SOURCE
6301 rm -f conftest.$ac_objext conftest.$ac_ext
6305 rm -f conftest.$ac_objext conftest.$ac_ext
6308 echo "$as_me:6308: result: $cf_cv_xopen_source" >&5
6309 echo "${ECHO_T}$cf_cv_xopen_source" >&6
6310 if test "$cf_cv_xopen_source" != no ; then
6312 # remove _XOPEN_SOURCE symbol from $CFLAGS
6313 CFLAGS=`echo "$CFLAGS" | \
6314 sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6315 -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'`
6317 # remove _XOPEN_SOURCE symbol from $CPPFLAGS
6318 CPPFLAGS=`echo "$CPPFLAGS" | \
6319 sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6320 -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'`
6322 test "$cf_cv_cc_u_d_options" = yes && \
6323 CPPFLAGS="$CPPFLAGS -U_XOPEN_SOURCE"
6324 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_cv_xopen_source"
6327 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
6329 cf_save_CFLAGS="$CFLAGS"
6330 cf_save_CPPFLAGS="$CPPFLAGS"
6332 # remove _POSIX_C_SOURCE symbol from $cf_save_CFLAGS
6333 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
6334 sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6335 -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'`
6337 # remove _POSIX_C_SOURCE symbol from $cf_save_CPPFLAGS
6338 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
6339 sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6340 -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'`
6342 echo "$as_me:6342: checking if we should define _POSIX_C_SOURCE" >&5
6343 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
6344 if test "${cf_cv_posix_c_source+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 echo "(line 6348) testing if the symbol is already defined go no further ..." 1>&5
6350 cat >conftest.$ac_ext <<_ACEOF
6351 #line 6351 "configure"
6352 #include "confdefs.h"
6353 #include <sys/types.h>
6358 #ifndef _POSIX_C_SOURCE
6365 rm -f conftest.$ac_objext
6366 if { (eval echo "$as_me:6366: \"$ac_compile\"") >&5
6367 (eval $ac_compile) 2>&5
6369 echo "$as_me:6369: \$? = $ac_status" >&5
6370 (exit $ac_status); } &&
6371 { ac_try='test -s conftest.$ac_objext'
6372 { (eval echo "$as_me:6372: \"$ac_try\"") >&5
6375 echo "$as_me:6375: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6377 cf_cv_posix_c_source=no
6379 echo "$as_me: failed program was:" >&5
6380 cat conftest.$ac_ext >&5
6381 cf_want_posix_source=no
6382 case .$cf_POSIX_C_SOURCE in #(vi
6384 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
6387 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
6388 cf_want_posix_source=yes
6391 cf_want_posix_source=yes
6394 if test "$cf_want_posix_source" = yes ; then
6395 cat >conftest.$ac_ext <<_ACEOF
6396 #line 6396 "configure"
6397 #include "confdefs.h"
6398 #include <sys/types.h>
6403 #ifdef _POSIX_SOURCE
6410 rm -f conftest.$ac_objext
6411 if { (eval echo "$as_me:6411: \"$ac_compile\"") >&5
6412 (eval $ac_compile) 2>&5
6414 echo "$as_me:6414: \$? = $ac_status" >&5
6415 (exit $ac_status); } &&
6416 { ac_try='test -s conftest.$ac_objext'
6417 { (eval echo "$as_me:6417: \"$ac_try\"") >&5
6420 echo "$as_me:6420: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }; then
6424 echo "$as_me: failed program was:" >&5
6425 cat conftest.$ac_ext >&5
6426 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
6428 rm -f conftest.$ac_objext conftest.$ac_ext
6431 echo "(line 6431) testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
6433 CFLAGS="$cf_trim_CFLAGS"
6434 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
6436 echo "(line 6436) testing if the second compile does not leave our definition intact error ..." 1>&5
6438 cat >conftest.$ac_ext <<_ACEOF
6439 #line 6439 "configure"
6440 #include "confdefs.h"
6441 #include <sys/types.h>
6446 #ifndef _POSIX_C_SOURCE
6453 rm -f conftest.$ac_objext
6454 if { (eval echo "$as_me:6454: \"$ac_compile\"") >&5
6455 (eval $ac_compile) 2>&5
6457 echo "$as_me:6457: \$? = $ac_status" >&5
6458 (exit $ac_status); } &&
6459 { ac_try='test -s conftest.$ac_objext'
6460 { (eval echo "$as_me:6460: \"$ac_try\"") >&5
6463 echo "$as_me:6463: \$? = $ac_status" >&5
6464 (exit $ac_status); }; }; then
6467 echo "$as_me: failed program was:" >&5
6468 cat conftest.$ac_ext >&5
6469 cf_cv_posix_c_source=no
6471 rm -f conftest.$ac_objext conftest.$ac_ext
6472 CFLAGS="$cf_save_CFLAGS"
6473 CPPFLAGS="$cf_save_CPPFLAGS"
6476 rm -f conftest.$ac_objext conftest.$ac_ext
6479 echo "$as_me:6479: result: $cf_cv_posix_c_source" >&5
6480 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
6482 if test "$cf_cv_posix_c_source" != no ; then
6483 CFLAGS="$cf_trim_CFLAGS"
6484 CPPFLAGS="$cf_trim_CPPFLAGS"
6485 if test "$cf_cv_cc_u_d_options" = yes ; then
6486 cf_temp_posix_c_source=`echo "$cf_cv_posix_c_source" | \
6487 sed -e 's/-D/-U/g' -e 's/=[^ ]*//g'`
6488 CPPFLAGS="$CPPFLAGS $cf_temp_posix_c_source"
6490 CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source"
6496 # Work around breakage on OS X
6498 echo "$as_me:6498: checking if SIGWINCH is defined" >&5
6499 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
6500 if test "${cf_cv_define_sigwinch+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 cat >conftest.$ac_ext <<_ACEOF
6505 #line 6505 "configure"
6506 #include "confdefs.h"
6508 #include <sys/types.h>
6509 #include <sys/signal.h>
6519 rm -f conftest.$ac_objext
6520 if { (eval echo "$as_me:6520: \"$ac_compile\"") >&5
6521 (eval $ac_compile) 2>&5
6523 echo "$as_me:6523: \$? = $ac_status" >&5
6524 (exit $ac_status); } &&
6525 { ac_try='test -s conftest.$ac_objext'
6526 { (eval echo "$as_me:6526: \"$ac_try\"") >&5
6529 echo "$as_me:6529: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 cf_cv_define_sigwinch=yes
6533 echo "$as_me: failed program was:" >&5
6534 cat conftest.$ac_ext >&5
6535 cat >conftest.$ac_ext <<_ACEOF
6536 #line 6536 "configure"
6537 #include "confdefs.h"
6539 #undef _XOPEN_SOURCE
6540 #undef _POSIX_SOURCE
6541 #undef _POSIX_C_SOURCE
6542 #include <sys/types.h>
6543 #include <sys/signal.h>
6553 rm -f conftest.$ac_objext
6554 if { (eval echo "$as_me:6554: \"$ac_compile\"") >&5
6555 (eval $ac_compile) 2>&5
6557 echo "$as_me:6557: \$? = $ac_status" >&5
6558 (exit $ac_status); } &&
6559 { ac_try='test -s conftest.$ac_objext'
6560 { (eval echo "$as_me:6560: \"$ac_try\"") >&5
6563 echo "$as_me:6563: \$? = $ac_status" >&5
6564 (exit $ac_status); }; }; then
6565 cf_cv_define_sigwinch=maybe
6567 echo "$as_me: failed program was:" >&5
6568 cat conftest.$ac_ext >&5
6569 cf_cv_define_sigwinch=no
6571 rm -f conftest.$ac_objext conftest.$ac_ext
6574 rm -f conftest.$ac_objext conftest.$ac_ext
6577 echo "$as_me:6577: result: $cf_cv_define_sigwinch" >&5
6578 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
6580 if test "$cf_cv_define_sigwinch" = maybe ; then
6581 echo "$as_me:6581: checking for actual SIGWINCH definition" >&5
6582 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
6583 if test "${cf_cv_fixup_sigwinch+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 cf_cv_fixup_sigwinch=unknown
6589 while test $cf_sigwinch != 1
6591 cat >conftest.$ac_ext <<_ACEOF
6592 #line 6592 "configure"
6593 #include "confdefs.h"
6595 #undef _XOPEN_SOURCE
6596 #undef _POSIX_SOURCE
6597 #undef _POSIX_C_SOURCE
6598 #include <sys/types.h>
6599 #include <sys/signal.h>
6605 #if SIGWINCH != $cf_sigwinch
6613 rm -f conftest.$ac_objext
6614 if { (eval echo "$as_me:6614: \"$ac_compile\"") >&5
6615 (eval $ac_compile) 2>&5
6617 echo "$as_me:6617: \$? = $ac_status" >&5
6618 (exit $ac_status); } &&
6619 { ac_try='test -s conftest.$ac_objext'
6620 { (eval echo "$as_me:6620: \"$ac_try\"") >&5
6623 echo "$as_me:6623: \$? = $ac_status" >&5
6624 (exit $ac_status); }; }; then
6625 cf_cv_fixup_sigwinch=$cf_sigwinch
6628 echo "$as_me: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6631 rm -f conftest.$ac_objext conftest.$ac_ext
6633 cf_sigwinch=`expr $cf_sigwinch - 1`
6637 echo "$as_me:6637: result: $cf_cv_fixup_sigwinch" >&5
6638 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
6640 if test "$cf_cv_fixup_sigwinch" != unknown ; then
6641 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
6645 # Checks for CODESET support.
6647 echo "$as_me:6647: checking for nl_langinfo and CODESET" >&5
6648 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6649 if test "${am_cv_langinfo_codeset+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 cat >conftest.$ac_ext <<_ACEOF
6653 #line 6653 "configure"
6654 #include "confdefs.h"
6655 #include <langinfo.h>
6659 char* cs = nl_langinfo(CODESET);
6664 rm -f conftest.$ac_objext conftest$ac_exeext
6665 if { (eval echo "$as_me:6665: \"$ac_link\"") >&5
6666 (eval $ac_link) 2>&5
6668 echo "$as_me:6668: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
6670 { ac_try='test -s conftest$ac_exeext'
6671 { (eval echo "$as_me:6671: \"$ac_try\"") >&5
6674 echo "$as_me:6674: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6676 am_cv_langinfo_codeset=yes
6678 echo "$as_me: failed program was:" >&5
6679 cat conftest.$ac_ext >&5
6680 am_cv_langinfo_codeset=no
6682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6685 echo "$as_me:6685: result: $am_cv_langinfo_codeset" >&5
6686 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6687 if test $am_cv_langinfo_codeset = yes; then
6689 cat >>confdefs.h <<\EOF
6690 #define HAVE_LANGINFO_CODESET 1
6695 # use these variables to work around a defect in gcc's fixincludes.
6699 echo "$as_me:6699: checking if you want wide-character code" >&5
6700 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
6702 # Check whether --enable-widec or --disable-widec was given.
6703 if test "${enable_widec+set}" = set; then
6704 enableval="$enable_widec"
6705 with_widec=$enableval
6709 echo "$as_me:6709: result: $with_widec" >&5
6710 echo "${ECHO_T}$with_widec" >&6
6711 if test "$with_widec" = yes ; then
6712 LIB_SUFFIX="w${LIB_SUFFIX}"
6713 cat >>confdefs.h <<\EOF
6714 #define USE_WIDEC_SUPPORT 1
6717 echo "$as_me:6717: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
6718 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
6719 cat >conftest.$ac_ext <<_ACEOF
6720 #line 6720 "configure"
6721 #include "confdefs.h"
6722 #include <sys/types.h>
6728 #ifndef _XOPEN_SOURCE_EXTENDED
6735 rm -f conftest.$ac_objext
6736 if { (eval echo "$as_me:6736: \"$ac_compile\"") >&5
6737 (eval $ac_compile) 2>&5
6739 echo "$as_me:6739: \$? = $ac_status" >&5
6740 (exit $ac_status); } &&
6741 { ac_try='test -s conftest.$ac_objext'
6742 { (eval echo "$as_me:6742: \"$ac_try\"") >&5
6745 echo "$as_me:6745: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6749 echo "$as_me: failed program was:" >&5
6750 cat conftest.$ac_ext >&5
6753 rm -f conftest.$ac_objext conftest.$ac_ext
6754 echo "$as_me:6754: result: $cf_result" >&5
6755 echo "${ECHO_T}$cf_result" >&6
6757 if test "$cf_result" = yes ; then
6758 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
6759 elif test "x" != "x" ; then
6760 echo "$as_me:6760: checking checking for compatible value versus " >&5
6761 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
6762 cat >conftest.$ac_ext <<_ACEOF
6763 #line 6763 "configure"
6764 #include "confdefs.h"
6765 #include <sys/types.h>
6771 #if _XOPEN_SOURCE_EXTENDED- < 0
6778 rm -f conftest.$ac_objext
6779 if { (eval echo "$as_me:6779: \"$ac_compile\"") >&5
6780 (eval $ac_compile) 2>&5
6782 echo "$as_me:6782: \$? = $ac_status" >&5
6783 (exit $ac_status); } &&
6784 { ac_try='test -s conftest.$ac_objext'
6785 { (eval echo "$as_me:6785: \"$ac_try\"") >&5
6788 echo "$as_me:6788: \$? = $ac_status" >&5
6789 (exit $ac_status); }; }; then
6792 echo "$as_me: failed program was:" >&5
6793 cat conftest.$ac_ext >&5
6796 rm -f conftest.$ac_objext conftest.$ac_ext
6797 echo "$as_me:6797: result: $cf_result" >&5
6798 echo "${ECHO_T}$cf_result" >&6
6799 if test "$cf_result" = no ; then
6800 # perhaps we can override it - try...
6801 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
6806 NCURSES_CH_T=cchar_t
6808 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc
6810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6811 echo "$as_me:6811: checking for $ac_func" >&5
6812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6813 if eval "test \"\${$as_ac_var+set}\" = set"; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 cat >conftest.$ac_ext <<_ACEOF
6817 #line 6817 "configure"
6818 #include "confdefs.h"
6819 /* System header to define __stub macros and hopefully few prototypes,
6820 which can conflict with char $ac_func (); below. */
6822 /* Override any gcc2 internal prototype to avoid an error. */
6826 /* We use char because int might match the return type of a gcc2
6827 builtin and then its argument prototype would still apply. */
6834 /* The GNU C library defines this for functions which it implements
6835 to always fail with ENOSYS. Some functions are actually named
6836 something starting with __ and the normal name is an alias. */
6837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6847 rm -f conftest.$ac_objext conftest$ac_exeext
6848 if { (eval echo "$as_me:6848: \"$ac_link\"") >&5
6849 (eval $ac_link) 2>&5
6851 echo "$as_me:6851: \$? = $ac_status" >&5
6852 (exit $ac_status); } &&
6853 { ac_try='test -s conftest$ac_exeext'
6854 { (eval echo "$as_me:6854: \"$ac_try\"") >&5
6857 echo "$as_me:6857: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 eval "$as_ac_var=yes"
6861 echo "$as_me: failed program was:" >&5
6862 cat conftest.$ac_ext >&5
6863 eval "$as_ac_var=no"
6865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6867 echo "$as_me:6867: result: `eval echo '${'$as_ac_var'}'`" >&5
6868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6869 if test `eval echo '${'$as_ac_var'}'` = yes; then
6870 cat >>confdefs.h <<EOF
6871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6877 if test "$ac_cv_func_putwc" != yes ; then
6879 echo "$as_me:6879: checking for putwc in libutf8" >&5
6880 echo $ECHO_N "checking for putwc in libutf8... $ECHO_C" >&6
6881 if test "${cf_cv_libutf8+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 cf_save_LIBS="$LIBS"
6887 cat >conftest.$ac_ext <<_ACEOF
6888 #line 6888 "configure"
6889 #include "confdefs.h"
6891 #include <libutf8.h>
6900 rm -f conftest.$ac_objext conftest$ac_exeext
6901 if { (eval echo "$as_me:6901: \"$ac_link\"") >&5
6902 (eval $ac_link) 2>&5
6904 echo "$as_me:6904: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -s conftest$ac_exeext'
6907 { (eval echo "$as_me:6907: \"$ac_try\"") >&5
6910 echo "$as_me:6910: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6914 echo "$as_me: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6919 LIBS="$cf_save_LIBS"
6922 echo "$as_me:6922: result: $cf_cv_libutf8" >&5
6923 echo "${ECHO_T}$cf_cv_libutf8" >&6
6925 if test "$cf_cv_libutf8" = yes ; then
6926 cat >>confdefs.h <<\EOF
6927 #define HAVE_LIBUTF8_H 1
6933 if test "$cf_cv_libutf8" = yes ; then
6938 # This is needed on Tru64 5.0 to declare mbstate_t
6939 echo "$as_me:6939: checking if we must include wchar.h to declare mbstate_t" >&5
6940 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
6941 if test "${cf_cv_mbstate_t+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 cat >conftest.$ac_ext <<_ACEOF
6946 #line 6946 "configure"
6947 #include "confdefs.h"
6952 #ifdef HAVE_LIBUTF8_H
6953 #include <libutf8.h>
6963 rm -f conftest.$ac_objext
6964 if { (eval echo "$as_me:6964: \"$ac_compile\"") >&5
6965 (eval $ac_compile) 2>&5
6967 echo "$as_me:6967: \$? = $ac_status" >&5
6968 (exit $ac_status); } &&
6969 { ac_try='test -s conftest.$ac_objext'
6970 { (eval echo "$as_me:6970: \"$ac_try\"") >&5
6973 echo "$as_me:6973: \$? = $ac_status" >&5
6974 (exit $ac_status); }; }; then
6977 echo "$as_me: failed program was:" >&5
6978 cat conftest.$ac_ext >&5
6979 cat >conftest.$ac_ext <<_ACEOF
6980 #line 6980 "configure"
6981 #include "confdefs.h"
6987 #ifdef HAVE_LIBUTF8_H
6988 #include <libutf8.h>
6998 rm -f conftest.$ac_objext
6999 if { (eval echo "$as_me:6999: \"$ac_compile\"") >&5
7000 (eval $ac_compile) 2>&5
7002 echo "$as_me:7002: \$? = $ac_status" >&5
7003 (exit $ac_status); } &&
7004 { ac_try='test -s conftest.$ac_objext'
7005 { (eval echo "$as_me:7005: \"$ac_try\"") >&5
7008 echo "$as_me:7008: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7012 echo "$as_me: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7014 cf_cv_mbstate_t=unknown
7016 rm -f conftest.$ac_objext conftest.$ac_ext
7018 rm -f conftest.$ac_objext conftest.$ac_ext
7020 echo "$as_me:7020: result: $cf_cv_mbstate_t" >&5
7021 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
7023 if test "$cf_cv_mbstate_t" = yes ; then
7024 cat >>confdefs.h <<\EOF
7025 #define NEED_WCHAR_H 1
7031 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
7032 if test "$cf_cv_mbstate_t" = unknown ; then
7036 # This is needed on Tru64 5.0 to declare wchar_t
7037 echo "$as_me:7037: checking if we must include wchar.h to declare wchar_t" >&5
7038 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
7039 if test "${cf_cv_wchar_t+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 cat >conftest.$ac_ext <<_ACEOF
7044 #line 7044 "configure"
7045 #include "confdefs.h"
7050 #ifdef HAVE_LIBUTF8_H
7051 #include <libutf8.h>
7061 rm -f conftest.$ac_objext
7062 if { (eval echo "$as_me:7062: \"$ac_compile\"") >&5
7063 (eval $ac_compile) 2>&5
7065 echo "$as_me:7065: \$? = $ac_status" >&5
7066 (exit $ac_status); } &&
7067 { ac_try='test -s conftest.$ac_objext'
7068 { (eval echo "$as_me:7068: \"$ac_try\"") >&5
7071 echo "$as_me:7071: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7075 echo "$as_me: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7077 cat >conftest.$ac_ext <<_ACEOF
7078 #line 7078 "configure"
7079 #include "confdefs.h"
7085 #ifdef HAVE_LIBUTF8_H
7086 #include <libutf8.h>
7096 rm -f conftest.$ac_objext
7097 if { (eval echo "$as_me:7097: \"$ac_compile\"") >&5
7098 (eval $ac_compile) 2>&5
7100 echo "$as_me:7100: \$? = $ac_status" >&5
7101 (exit $ac_status); } &&
7102 { ac_try='test -s conftest.$ac_objext'
7103 { (eval echo "$as_me:7103: \"$ac_try\"") >&5
7106 echo "$as_me:7106: \$? = $ac_status" >&5
7107 (exit $ac_status); }; }; then
7110 echo "$as_me: failed program was:" >&5
7111 cat conftest.$ac_ext >&5
7112 cf_cv_wchar_t=unknown
7114 rm -f conftest.$ac_objext conftest.$ac_ext
7116 rm -f conftest.$ac_objext conftest.$ac_ext
7118 echo "$as_me:7118: result: $cf_cv_wchar_t" >&5
7119 echo "${ECHO_T}$cf_cv_wchar_t" >&6
7121 if test "$cf_cv_wchar_t" = yes ; then
7122 cat >>confdefs.h <<\EOF
7123 #define NEED_WCHAR_H 1
7129 # if we do not find wchar_t in either place, use substitution to provide a fallback.
7130 if test "$cf_cv_wchar_t" = unknown ; then
7134 # if we find wchar_t in either place, use substitution to provide a fallback.
7135 if test "$cf_cv_wchar_t" != unknown ; then
7136 NCURSES_OK_WCHAR_T=1
7139 # This is needed on Tru64 5.0 to declare wint_t
7140 echo "$as_me:7140: checking if we must include wchar.h to declare wint_t" >&5
7141 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
7142 if test "${cf_cv_wint_t+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 cat >conftest.$ac_ext <<_ACEOF
7147 #line 7147 "configure"
7148 #include "confdefs.h"
7153 #ifdef HAVE_LIBUTF8_H
7154 #include <libutf8.h>
7164 rm -f conftest.$ac_objext
7165 if { (eval echo "$as_me:7165: \"$ac_compile\"") >&5
7166 (eval $ac_compile) 2>&5
7168 echo "$as_me:7168: \$? = $ac_status" >&5
7169 (exit $ac_status); } &&
7170 { ac_try='test -s conftest.$ac_objext'
7171 { (eval echo "$as_me:7171: \"$ac_try\"") >&5
7174 echo "$as_me:7174: \$? = $ac_status" >&5
7175 (exit $ac_status); }; }; then
7178 echo "$as_me: failed program was:" >&5
7179 cat conftest.$ac_ext >&5
7180 cat >conftest.$ac_ext <<_ACEOF
7181 #line 7181 "configure"
7182 #include "confdefs.h"
7188 #ifdef HAVE_LIBUTF8_H
7189 #include <libutf8.h>
7199 rm -f conftest.$ac_objext
7200 if { (eval echo "$as_me:7200: \"$ac_compile\"") >&5
7201 (eval $ac_compile) 2>&5
7203 echo "$as_me:7203: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try='test -s conftest.$ac_objext'
7206 { (eval echo "$as_me:7206: \"$ac_try\"") >&5
7209 echo "$as_me:7209: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
7213 echo "$as_me: failed program was:" >&5
7214 cat conftest.$ac_ext >&5
7215 cf_cv_wint_t=unknown
7217 rm -f conftest.$ac_objext conftest.$ac_ext
7219 rm -f conftest.$ac_objext conftest.$ac_ext
7221 echo "$as_me:7221: result: $cf_cv_wint_t" >&5
7222 echo "${ECHO_T}$cf_cv_wint_t" >&6
7224 if test "$cf_cv_wint_t" = yes ; then
7225 cat >>confdefs.h <<\EOF
7226 #define NEED_WCHAR_H 1
7232 # if we do not find wint_t in either place, use substitution to provide a fallback.
7233 if test "$cf_cv_wint_t" = unknown ; then
7237 # if we find wint_t in either place, use substitution to provide a fallback.
7238 if test "$cf_cv_wint_t" != unknown ; then
7242 if test "$NCURSES_MBSTATE_T" != 0; then
7243 cat >>confdefs.h <<\EOF
7244 #define NEED_MBSTATE_T_DEF 1
7250 ### use option --disable-lp64 to allow long chtype
7251 case $cf_cv_abi_version in
7253 default_with_lp64=no
7256 default_with_lp64=yes
7260 echo "$as_me:7260: checking whether to enable _LP64 definition in curses.h" >&5
7261 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
7263 # Check whether --enable-lp64 or --disable-lp64 was given.
7264 if test "${enable_lp64+set}" = set; then
7265 enableval="$enable_lp64"
7266 with_lp64=$enableval
7268 with_lp64=$default_with_lp64
7270 echo "$as_me:7270: result: $with_lp64" >&5
7271 echo "${ECHO_T}$with_lp64" >&6
7273 if test "$with_lp64" = yes ; then
7279 # Check whether --enable-largefile or --disable-largefile was given.
7280 if test "${enable_largefile+set}" = set; then
7281 enableval="$enable_largefile"
7284 if test "$enable_largefile" != no; then
7286 echo "$as_me:7286: checking for special C compiler options needed for large files" >&5
7287 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
7288 if test "${ac_cv_sys_largefile_CC+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 ac_cv_sys_largefile_CC=no
7292 if test "$GCC" != yes; then
7295 # IRIX 6.2 and later do not support large files by default,
7296 # so use the C compiler's -n32 option if that helps.
7297 cat >conftest.$ac_ext <<_ACEOF
7298 #line 7298 "configure"
7299 #include "confdefs.h"
7300 #include <sys/types.h>
7301 /* Check that off_t can represent 2**63 - 1 correctly.
7302 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7303 since some C++ compilers masquerading as C compilers
7304 incorrectly reject 9223372036854775807. */
7305 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7306 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7307 && LARGE_OFF_T % 2147483647 == 1)
7317 rm -f conftest.$ac_objext
7318 if { (eval echo "$as_me:7318: \"$ac_compile\"") >&5
7319 (eval $ac_compile) 2>&5
7321 echo "$as_me:7321: \$? = $ac_status" >&5
7322 (exit $ac_status); } &&
7323 { ac_try='test -s conftest.$ac_objext'
7324 { (eval echo "$as_me:7324: \"$ac_try\"") >&5
7327 echo "$as_me:7327: \$? = $ac_status" >&5
7328 (exit $ac_status); }; }; then
7331 echo "$as_me: failed program was:" >&5
7332 cat conftest.$ac_ext >&5
7334 rm -f conftest.$ac_objext
7336 rm -f conftest.$ac_objext
7337 if { (eval echo "$as_me:7337: \"$ac_compile\"") >&5
7338 (eval $ac_compile) 2>&5
7340 echo "$as_me:7340: \$? = $ac_status" >&5
7341 (exit $ac_status); } &&
7342 { ac_try='test -s conftest.$ac_objext'
7343 { (eval echo "$as_me:7343: \"$ac_try\"") >&5
7346 echo "$as_me:7346: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 ac_cv_sys_largefile_CC=' -n32'; break
7350 echo "$as_me: failed program was:" >&5
7351 cat conftest.$ac_ext >&5
7353 rm -f conftest.$ac_objext
7357 rm -f conftest.$ac_ext
7360 echo "$as_me:7360: result: $ac_cv_sys_largefile_CC" >&5
7361 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
7362 if test "$ac_cv_sys_largefile_CC" != no; then
7363 CC=$CC$ac_cv_sys_largefile_CC
7366 echo "$as_me:7366: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7367 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
7368 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 ac_cv_sys_file_offset_bits=no
7373 cat >conftest.$ac_ext <<_ACEOF
7374 #line 7374 "configure"
7375 #include "confdefs.h"
7376 #include <sys/types.h>
7377 /* Check that off_t can represent 2**63 - 1 correctly.
7378 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7379 since some C++ compilers masquerading as C compilers
7380 incorrectly reject 9223372036854775807. */
7381 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7382 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7383 && LARGE_OFF_T % 2147483647 == 1)
7393 rm -f conftest.$ac_objext
7394 if { (eval echo "$as_me:7394: \"$ac_compile\"") >&5
7395 (eval $ac_compile) 2>&5
7397 echo "$as_me:7397: \$? = $ac_status" >&5
7398 (exit $ac_status); } &&
7399 { ac_try='test -s conftest.$ac_objext'
7400 { (eval echo "$as_me:7400: \"$ac_try\"") >&5
7403 echo "$as_me:7403: \$? = $ac_status" >&5
7404 (exit $ac_status); }; }; then
7407 echo "$as_me: failed program was:" >&5
7408 cat conftest.$ac_ext >&5
7410 rm -f conftest.$ac_objext conftest.$ac_ext
7411 cat >conftest.$ac_ext <<_ACEOF
7412 #line 7412 "configure"
7413 #include "confdefs.h"
7414 #define _FILE_OFFSET_BITS 64
7415 #include <sys/types.h>
7416 /* Check that off_t can represent 2**63 - 1 correctly.
7417 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7418 since some C++ compilers masquerading as C compilers
7419 incorrectly reject 9223372036854775807. */
7420 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7421 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7422 && LARGE_OFF_T % 2147483647 == 1)
7432 rm -f conftest.$ac_objext
7433 if { (eval echo "$as_me:7433: \"$ac_compile\"") >&5
7434 (eval $ac_compile) 2>&5
7436 echo "$as_me:7436: \$? = $ac_status" >&5
7437 (exit $ac_status); } &&
7438 { ac_try='test -s conftest.$ac_objext'
7439 { (eval echo "$as_me:7439: \"$ac_try\"") >&5
7442 echo "$as_me:7442: \$? = $ac_status" >&5
7443 (exit $ac_status); }; }; then
7444 ac_cv_sys_file_offset_bits=64; break
7446 echo "$as_me: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7449 rm -f conftest.$ac_objext conftest.$ac_ext
7453 echo "$as_me:7453: result: $ac_cv_sys_file_offset_bits" >&5
7454 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7455 if test "$ac_cv_sys_file_offset_bits" != no; then
7457 cat >>confdefs.h <<EOF
7458 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7463 echo "$as_me:7463: checking for _LARGE_FILES value needed for large files" >&5
7464 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
7465 if test "${ac_cv_sys_large_files+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 ac_cv_sys_large_files=no
7470 cat >conftest.$ac_ext <<_ACEOF
7471 #line 7471 "configure"
7472 #include "confdefs.h"
7473 #include <sys/types.h>
7474 /* Check that off_t can represent 2**63 - 1 correctly.
7475 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7476 since some C++ compilers masquerading as C compilers
7477 incorrectly reject 9223372036854775807. */
7478 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7479 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7480 && LARGE_OFF_T % 2147483647 == 1)
7490 rm -f conftest.$ac_objext
7491 if { (eval echo "$as_me:7491: \"$ac_compile\"") >&5
7492 (eval $ac_compile) 2>&5
7494 echo "$as_me:7494: \$? = $ac_status" >&5
7495 (exit $ac_status); } &&
7496 { ac_try='test -s conftest.$ac_objext'
7497 { (eval echo "$as_me:7497: \"$ac_try\"") >&5
7500 echo "$as_me:7500: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
7504 echo "$as_me: failed program was:" >&5
7505 cat conftest.$ac_ext >&5
7507 rm -f conftest.$ac_objext conftest.$ac_ext
7508 cat >conftest.$ac_ext <<_ACEOF
7509 #line 7509 "configure"
7510 #include "confdefs.h"
7511 #define _LARGE_FILES 1
7512 #include <sys/types.h>
7513 /* Check that off_t can represent 2**63 - 1 correctly.
7514 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7515 since some C++ compilers masquerading as C compilers
7516 incorrectly reject 9223372036854775807. */
7517 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7519 && LARGE_OFF_T % 2147483647 == 1)
7529 rm -f conftest.$ac_objext
7530 if { (eval echo "$as_me:7530: \"$ac_compile\"") >&5
7531 (eval $ac_compile) 2>&5
7533 echo "$as_me:7533: \$? = $ac_status" >&5
7534 (exit $ac_status); } &&
7535 { ac_try='test -s conftest.$ac_objext'
7536 { (eval echo "$as_me:7536: \"$ac_try\"") >&5
7539 echo "$as_me:7539: \$? = $ac_status" >&5
7540 (exit $ac_status); }; }; then
7541 ac_cv_sys_large_files=1; break
7543 echo "$as_me: failed program was:" >&5
7544 cat conftest.$ac_ext >&5
7546 rm -f conftest.$ac_objext conftest.$ac_ext
7550 echo "$as_me:7550: result: $ac_cv_sys_large_files" >&5
7551 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7552 if test "$ac_cv_sys_large_files" != no; then
7554 cat >>confdefs.h <<EOF
7555 #define _LARGE_FILES $ac_cv_sys_large_files
7562 if test "$enable_largefile" != no ; then
7563 echo "$as_me:7563: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7564 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
7565 if test "${ac_cv_sys_largefile_source+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7569 ac_cv_sys_largefile_source=no
7570 cat >conftest.$ac_ext <<_ACEOF
7571 #line 7571 "configure"
7572 #include "confdefs.h"
7582 rm -f conftest.$ac_objext
7583 if { (eval echo "$as_me:7583: \"$ac_compile\"") >&5
7584 (eval $ac_compile) 2>&5
7586 echo "$as_me:7586: \$? = $ac_status" >&5
7587 (exit $ac_status); } &&
7588 { ac_try='test -s conftest.$ac_objext'
7589 { (eval echo "$as_me:7589: \"$ac_try\"") >&5
7592 echo "$as_me:7592: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7596 echo "$as_me: failed program was:" >&5
7597 cat conftest.$ac_ext >&5
7599 rm -f conftest.$ac_objext conftest.$ac_ext
7600 cat >conftest.$ac_ext <<_ACEOF
7601 #line 7601 "configure"
7602 #include "confdefs.h"
7603 #define _LARGEFILE_SOURCE 1
7613 rm -f conftest.$ac_objext
7614 if { (eval echo "$as_me:7614: \"$ac_compile\"") >&5
7615 (eval $ac_compile) 2>&5
7617 echo "$as_me:7617: \$? = $ac_status" >&5
7618 (exit $ac_status); } &&
7619 { ac_try='test -s conftest.$ac_objext'
7620 { (eval echo "$as_me:7620: \"$ac_try\"") >&5
7623 echo "$as_me:7623: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 ac_cv_sys_largefile_source=1; break
7627 echo "$as_me: failed program was:" >&5
7628 cat conftest.$ac_ext >&5
7630 rm -f conftest.$ac_objext conftest.$ac_ext
7634 echo "$as_me:7634: result: $ac_cv_sys_largefile_source" >&5
7635 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7636 if test "$ac_cv_sys_largefile_source" != no; then
7638 cat >>confdefs.h <<EOF
7639 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7645 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7646 # in glibc 2.1.3, but that breaks too many other things.
7647 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7648 echo "$as_me:7648: checking for fseeko" >&5
7649 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
7650 if test "${ac_cv_func_fseeko+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 cat >conftest.$ac_ext <<_ACEOF
7654 #line 7654 "configure"
7655 #include "confdefs.h"
7660 return fseeko && fseeko (stdin, 0, 0);
7665 rm -f conftest.$ac_objext conftest$ac_exeext
7666 if { (eval echo "$as_me:7666: \"$ac_link\"") >&5
7667 (eval $ac_link) 2>&5
7669 echo "$as_me:7669: \$? = $ac_status" >&5
7670 (exit $ac_status); } &&
7671 { ac_try='test -s conftest$ac_exeext'
7672 { (eval echo "$as_me:7672: \"$ac_try\"") >&5
7675 echo "$as_me:7675: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
7677 ac_cv_func_fseeko=yes
7679 echo "$as_me: failed program was:" >&5
7680 cat conftest.$ac_ext >&5
7681 ac_cv_func_fseeko=no
7683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7685 echo "$as_me:7685: result: $ac_cv_func_fseeko" >&5
7686 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
7687 if test $ac_cv_func_fseeko = yes; then
7689 cat >>confdefs.h <<\EOF
7690 #define HAVE_FSEEKO 1
7695 # Normally we would collect these definitions in the config.h,
7696 # but (like _XOPEN_SOURCE), some environments rely on having these
7697 # defined before any of the system headers are included. Another
7698 # case comes up with C++, e.g., on AIX the compiler compiles the
7699 # header files by themselves before looking at the body files it is
7700 # told to compile. For ncurses, those header files do not include
7702 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
7703 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
7705 echo "$as_me:7705: checking whether to use struct dirent64" >&5
7706 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
7707 if test "${cf_cv_struct_dirent64+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 cat >conftest.$ac_ext <<_ACEOF
7712 #line 7712 "configure"
7713 #include "confdefs.h"
7715 #include <sys/types.h>
7722 /* if transitional largefile support is setup, this is true */
7723 extern struct dirent64 * readdir(DIR *);
7724 struct dirent64 *x = readdir((DIR *)0);
7725 struct dirent *y = readdir((DIR *)0);
7732 rm -f conftest.$ac_objext
7733 if { (eval echo "$as_me:7733: \"$ac_compile\"") >&5
7734 (eval $ac_compile) 2>&5
7736 echo "$as_me:7736: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try='test -s conftest.$ac_objext'
7739 { (eval echo "$as_me:7739: \"$ac_try\"") >&5
7742 echo "$as_me:7742: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 cf_cv_struct_dirent64=yes
7746 echo "$as_me: failed program was:" >&5
7747 cat conftest.$ac_ext >&5
7748 cf_cv_struct_dirent64=no
7750 rm -f conftest.$ac_objext conftest.$ac_ext
7753 echo "$as_me:7753: result: $cf_cv_struct_dirent64" >&5
7754 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
7755 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
7756 #define HAVE_STRUCT_DIRENT64 1
7761 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
7762 echo "$as_me:7762: checking if you want tparm not to use X/Open fixed-parameter list" >&5
7763 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
7765 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
7766 if test "${enable_tparm_varargs+set}" = set; then
7767 enableval="$enable_tparm_varargs"
7768 with_tparm_varargs=$enableval
7770 with_tparm_varargs=yes
7772 echo "$as_me:7772: result: $with_tparm_varargs" >&5
7773 echo "${ECHO_T}$with_tparm_varargs" >&6
7774 NCURSES_TPARM_VARARGS=0
7775 test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
7777 ### use option --with-bool to override bool's type
7778 echo "$as_me:7778: checking for type of bool" >&5
7779 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
7781 # Check whether --with-bool or --without-bool was given.
7782 if test "${with_bool+set}" = set; then
7783 withval="$with_bool"
7784 NCURSES_BOOL="$withval"
7788 echo "$as_me:7788: result: $NCURSES_BOOL" >&5
7789 echo "${ECHO_T}$NCURSES_BOOL" >&6
7791 echo "$as_me:7791: checking for alternate terminal capabilities file" >&5
7792 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
7794 # Check whether --with-caps or --without-caps was given.
7795 if test "${with_caps+set}" = set; then
7796 withval="$with_caps"
7797 TERMINFO_CAPS=Caps.$withval
7801 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
7802 echo "$as_me:7802: result: $TERMINFO_CAPS" >&5
7803 echo "${ECHO_T}$TERMINFO_CAPS" >&6
7805 ### use option --with-chtype to override chtype's type
7806 echo "$as_me:7806: checking for type of chtype" >&5
7807 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
7809 # Check whether --with-chtype or --without-chtype was given.
7810 if test "${with_chtype+set}" = set; then
7811 withval="$with_chtype"
7812 NCURSES_CHTYPE="$withval"
7816 echo "$as_me:7816: result: $NCURSES_CHTYPE" >&5
7817 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
7819 ### use option --with-ospeed to override ospeed's type
7820 echo "$as_me:7820: checking for type of ospeed" >&5
7821 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
7823 # Check whether --with-ospeed or --without-ospeed was given.
7824 if test "${with_ospeed+set}" = set; then
7825 withval="$with_ospeed"
7826 NCURSES_OSPEED="$withval"
7828 NCURSES_OSPEED=short
7830 echo "$as_me:7830: result: $NCURSES_OSPEED" >&5
7831 echo "${ECHO_T}$NCURSES_OSPEED" >&6
7833 ### use option --with-mmask-t to override mmask_t's type
7834 echo "$as_me:7834: checking for type of mmask_t" >&5
7835 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
7837 # Check whether --with-mmask-t or --without-mmask-t was given.
7838 if test "${with_mmask_t+set}" = set; then
7839 withval="$with_mmask_t"
7840 NCURSES_MMASK_T="$withval"
7842 NCURSES_MMASK_T=auto
7844 echo "$as_me:7844: result: $NCURSES_MMASK_T" >&5
7845 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
7847 ### Enable compiling-in rcs id's
7848 echo "$as_me:7848: checking if RCS identifiers should be compiled-in" >&5
7849 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
7851 # Check whether --with-rcs-ids or --without-rcs-ids was given.
7852 if test "${with_rcs_ids+set}" = set; then
7853 withval="$with_rcs_ids"
7854 with_rcs_ids=$withval
7858 echo "$as_me:7858: result: $with_rcs_ids" >&5
7859 echo "${ECHO_T}$with_rcs_ids" >&6
7860 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
7861 #define USE_RCS_IDS 1
7864 ###############################################################################
7866 echo "$as_me:7866: checking format of man-pages" >&5
7867 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
7869 # Check whether --with-manpage-format or --without-manpage-format was given.
7870 if test "${with_manpage_format+set}" = set; then
7871 withval="$with_manpage_format"
7872 MANPAGE_FORMAT=$withval
7874 MANPAGE_FORMAT=unknown
7877 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
7878 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
7882 case $MANPAGE_FORMAT in
7884 if test -z "$MANPATH" ; then
7885 MANPATH="/usr/man:/usr/share/man"
7888 # look for the 'date' man-page (it's most likely to be installed!)
7894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATHSEP}"
7895 for cf_dir in $MANPATH; do
7896 test -z "$cf_dir" && cf_dir=/usr/man
7897 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
7899 cf_test=`echo $cf_name | sed -e 's/*//'`
7900 if test "x$cf_test" = "x$cf_name" ; then
7903 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
7904 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
7905 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
7906 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
7920 # if we found a match in either man* or cat*, stop looking
7921 if test -n "$MANPAGE_FORMAT" ; then
7923 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
7924 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
7930 test $cf_found=yes && break
7933 # only check the first directory in $MANPATH where we find manpages
7934 if test -n "$MANPAGE_FORMAT" ; then
7938 # if we did not find the example, just assume it is normal
7939 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
7943 for cf_option in $MANPAGE_FORMAT; do
7944 case $cf_option in #(vi
7945 gzip|compress|BSDI|normal|formatted|catonly)
7948 cf_unknown="$cf_unknown $cf_option"
7955 echo "$as_me:7955: result: $MANPAGE_FORMAT" >&5
7956 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
7957 if test -n "$cf_unknown" ; then
7958 { echo "$as_me:7958: WARNING: Unexpected manpage-format $cf_unknown" >&5
7959 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
7962 echo "$as_me:7962: checking for manpage renaming" >&5
7963 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
7965 # Check whether --with-manpage-renames or --without-manpage-renames was given.
7966 if test "${with_manpage_renames+set}" = set; then
7967 withval="$with_manpage_renames"
7968 MANPAGE_RENAMES=$withval
7973 case ".$MANPAGE_RENAMES" in #(vi
7977 # Debian 'man' program?
7978 if test -f /etc/debian_version ; then
7979 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
7986 if test "$MANPAGE_RENAMES" != no ; then
7987 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
7988 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
7989 elif test ! -f $MANPAGE_RENAMES ; then
7990 { { echo "$as_me:7990: error: not a filename: $MANPAGE_RENAMES" >&5
7991 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
7992 { (exit 1); exit 1; }; }
7995 test ! -d man && mkdir man
7997 # Construct a sed-script to perform renaming within man-pages
7998 if test -n "$MANPAGE_RENAMES" ; then
7999 test ! -d man && mkdir man
8000 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
8004 echo "$as_me:8004: result: $MANPAGE_RENAMES" >&5
8005 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
8007 echo "$as_me:8007: checking if manpage aliases will be installed" >&5
8008 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
8010 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
8011 if test "${with_manpage_aliases+set}" = set; then
8012 withval="$with_manpage_aliases"
8013 MANPAGE_ALIASES=$withval
8018 echo "$as_me:8018: result: $MANPAGE_ALIASES" >&5
8019 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
8021 if test "$LN_S" = "ln -s"; then
8028 if test "$MANPAGE_ALIASES" = yes ; then
8029 echo "$as_me:8029: checking if manpage symlinks should be used" >&5
8030 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
8032 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
8033 if test "${with_manpage_symlinks+set}" = set; then
8034 withval="$with_manpage_symlinks"
8035 MANPAGE_SYMLINKS=$withval
8037 MANPAGE_SYMLINKS=$cf_use_symlinks
8040 if test "$$cf_use_symlinks" = no; then
8041 if test "$MANPAGE_SYMLINKS" = yes ; then
8042 { echo "$as_me:8042: WARNING: cannot make symlinks" >&5
8043 echo "$as_me: WARNING: cannot make symlinks" >&2;}
8048 echo "$as_me:8048: result: $MANPAGE_SYMLINKS" >&5
8049 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
8052 echo "$as_me:8052: checking for manpage tbl" >&5
8053 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
8055 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
8056 if test "${with_manpage_tbl+set}" = set; then
8057 withval="$with_manpage_tbl"
8058 MANPAGE_TBL=$withval
8063 echo "$as_me:8063: result: $MANPAGE_TBL" >&5
8064 echo "${ECHO_T}$MANPAGE_TBL" >&6
8066 if test "$prefix" = "NONE" ; then
8067 cf_prefix="$ac_default_prefix"
8072 case "$MANPAGE_FORMAT" in # (vi
8087 test ! -d man && mkdir man
8091 case "$MANPAGE_FORMAT" in #(vi
8094 cf_compress=compress
8102 cf_edit_man=./edit_man.sh
8103 cf_man_alias=`pwd`/man_alias.sed
8105 cat >$cf_edit_man <<CF_EOF
8107 # this script is generated by the configure-script CF_MAN_PAGES macro.
8112 NCURSES_MAJOR="$NCURSES_MAJOR"
8113 NCURSES_MINOR="$NCURSES_MINOR"
8114 NCURSES_PATCH="$NCURSES_PATCH"
8116 NCURSES_OSPEED="$NCURSES_OSPEED"
8117 TERMINFO="$TERMINFO"
8119 MKDIRS="sh `cd $srcdir && pwd`/mkdirs.sh"
8122 INSTALL_DATA="$INSTALL_DATA"
8124 transform="$program_transform_name"
8126 TMP=\${TMPDIR-/tmp}/man\$\$
8127 trap "rm -f \$TMP" 0 1 2 5 15
8139 top_srcdir=\$srcdir/..
8142 if test "\$form" = normal ; then
8143 if test "$cf_format" = yes ; then
8144 if test "$cf_inboth" = no ; then
8145 sh \$0 format \$verb \$mandir \$srcdir \$*
8149 cf_subdir=\$mandir/man
8150 cf_tables=$MANPAGE_TBL
8152 cf_subdir=\$mandir/cat
8156 # process the list of source-files
8159 *.orig|*.rej) ;; #(vi
8161 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
8162 if test \$verb = installing ; then
8163 if test ! -d \$cf_subdir\${section} ; then
8164 \$MKDIRS \$cf_subdir\$section
8168 # replace variables in man page
8169 if test ! -f $cf_man_alias ; then
8170 cat >>$cf_man_alias <<-CF_EOF2
8171 s,@DATADIR@,\$datadir,g
8172 s,@TERMINFO@,\$TERMINFO,g
8173 s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g
8174 s,@NCURSES_MINOR@,\$NCURSES_MINOR,g
8175 s,@NCURSES_PATCH@,\$NCURSES_PATCH,g
8176 s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g
8179 for cf_name in captoinfo clear infocmp infotocap tic toe tput
8181 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8182 cf_name=`echo $cf_name|sed "$program_transform_name"`
8183 cat >>$cf_edit_man <<-CF_EOF
8184 s,@$cf_NAME@,$cf_name,
8188 cat >>$cf_edit_man <<CF_EOF
8190 echo "...made $cf_man_alias"
8194 cf_source=\`basename \$i\`
8196 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
8197 if test ! -f \$inalias ; then
8198 echo .. skipped \$cf_source
8203 if test "$MANPAGE_ALIASES" != no ; then
8204 cat >>$cf_edit_man <<CF_EOF
8205 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u\`
8209 if test "$MANPAGE_RENAMES" = no ; then
8210 cat >>$cf_edit_man <<CF_EOF
8211 # perform program transformations for section 1 man pages
8212 if test \$section = 1 ; then
8213 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
8215 cf_target=\$cf_subdir\${section}/\$cf_source
8219 cat >>$cf_edit_man <<CF_EOF
8220 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
8221 if test -z "\$cf_target" ; then
8222 echo '? missing rename for '\$cf_source
8223 cf_target="\$cf_source"
8225 cf_target="\$cf_subdir\${section}/\${cf_target}"
8230 cat >>$cf_edit_man <<CF_EOF
8231 sed -f $cf_man_alias \\
8234 if test -f $MANPAGE_RENAMES ; then
8235 cat >>$cf_edit_man <<CF_EOF
8236 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
8239 cat >>$cf_edit_man <<CF_EOF
8244 cat >>$cf_edit_man <<CF_EOF
8245 if test \$cf_tables = yes ; then
8246 tbl \$TMP >\$TMP.out
8251 if test $with_curses_h != yes ; then
8252 cat >>$cf_edit_man <<CF_EOF
8253 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
8258 cat >>$cf_edit_man <<CF_EOF
8259 if test \$form = format ; then
8260 nroff -man \$TMP >\$TMP.out
8265 if test -n "$cf_compress" ; then
8266 cat >>$cf_edit_man <<CF_EOF
8267 if test \$verb = installing ; then
8268 if ( $cf_compress -f \$TMP )
8270 mv \$TMP.$cf_so_strip \$TMP
8273 cf_target="\$cf_target.$cf_so_strip"
8277 case "$MANPAGE_FORMAT" in #(vi
8279 cat >>$cf_edit_man <<CF_EOF
8280 if test \$form = format ; then
8281 # BSDI installs only .0 suffixes in the cat directories
8282 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
8288 cat >>$cf_edit_man <<CF_EOF
8289 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
8290 if test \$verb = installing ; then
8291 echo \$verb \$cf_target
8292 \$INSTALL_DATA \$TMP \$cf_target
8293 test -d \$cf_subdir\${section} &&
8294 test -n "\$aliases" && (
8295 cd \$cf_subdir\${section} && (
8296 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
8297 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
8298 cf_target=\`basename \$cf_target\`
8299 for cf_alias in \$aliases
8301 if test \$section = 1 ; then
8302 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
8305 if test "$MANPAGE_SYMLINKS" = yes ; then
8306 if test -f \$cf_alias\${suffix} ; then
8307 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
8312 echo .. \$verb alias \$cf_alias\${suffix}
8313 rm -f \$cf_alias\${suffix}
8314 $LN_S \$cf_target \$cf_alias\${suffix}
8315 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
8316 echo ".so \$cf_source" >\$TMP
8318 if test -n "$cf_compress" ; then
8319 cat >>$cf_edit_man <<CF_EOF
8320 if test -n "$cf_so_strip" ; then
8321 $cf_compress -f \$TMP
8322 mv \$TMP.$cf_so_strip \$TMP
8326 cat >>$cf_edit_man <<CF_EOF
8327 echo .. \$verb alias \$cf_alias\${suffix}
8328 rm -f \$cf_alias\${suffix}
8329 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
8334 elif test \$verb = removing ; then
8335 test -f \$cf_target && (
8336 echo \$verb \$cf_target
8339 test -d \$cf_subdir\${section} &&
8340 test -n "\$aliases" && (
8341 cd \$cf_subdir\${section} && (
8342 for cf_alias in \$aliases
8344 if test \$section = 1 ; then
8345 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
8348 echo .. \$verb alias \$cf_alias\${suffix}
8349 rm -f \$cf_alias\${suffix}
8361 if test $cf_inboth = yes ; then
8362 if test \$form != format ; then
8363 sh \$0 format \$verb \$mandir \$srcdir \$*
8369 chmod 755 $cf_edit_man
8371 ###############################################################################
8373 ### Note that some functions (such as const) are normally disabled anyway.
8374 echo "$as_me:8374: checking if you want to build with function extensions" >&5
8375 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
8377 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
8378 if test "${enable_ext_funcs+set}" = set; then
8379 enableval="$enable_ext_funcs"
8380 with_ext_funcs=$enableval
8384 echo "$as_me:8384: result: $with_ext_funcs" >&5
8385 echo "${ECHO_T}$with_ext_funcs" >&6
8386 if test "$with_ext_funcs" = yes ; then
8388 cat >>confdefs.h <<\EOF
8389 #define HAVE_CURSES_VERSION 1
8392 cat >>confdefs.h <<\EOF
8393 #define HAVE_HAS_KEY 1
8396 cat >>confdefs.h <<\EOF
8397 #define HAVE_RESIZETERM 1
8400 cat >>confdefs.h <<\EOF
8401 #define HAVE_RESIZE_TERM 1
8404 cat >>confdefs.h <<\EOF
8405 #define HAVE_USE_DEFAULT_COLORS 1
8408 cat >>confdefs.h <<\EOF
8409 #define HAVE_WRESIZE 1
8412 cat >>confdefs.h <<\EOF
8413 #define NCURSES_EXT_FUNCS 1
8420 ### use option --enable-const to turn on use of const beyond that in XSI.
8421 echo "$as_me:8421: checking for extended use of const keyword" >&5
8422 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
8424 # Check whether --enable-const or --disable-const was given.
8425 if test "${enable_const+set}" = set; then
8426 enableval="$enable_const"
8427 with_ext_const=$enableval
8431 echo "$as_me:8431: result: $with_ext_const" >&5
8432 echo "${ECHO_T}$with_ext_const" >&6
8433 NCURSES_CONST='/*nothing*/'
8434 if test "$with_ext_const" = yes ; then
8438 echo "$as_me:8438: checking if you want \$NCURSES_NO_PADDING code" >&5
8439 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
8441 # Check whether --enable-no-padding or --disable-no-padding was given.
8442 if test "${enable_no_padding+set}" = set; then
8443 enableval="$enable_no_padding"
8444 with_no_padding=$enableval
8446 with_no_padding=$with_ext_funcs
8448 echo "$as_me:8448: result: $with_no_padding" >&5
8449 echo "${ECHO_T}$with_no_padding" >&6
8450 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
8451 #define NCURSES_NO_PADDING 1
8454 echo "$as_me:8454: checking for ANSI C header files" >&5
8455 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8456 if test "${ac_cv_header_stdc+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 cat >conftest.$ac_ext <<_ACEOF
8460 #line 8460 "configure"
8461 #include "confdefs.h"
8468 if { (eval echo "$as_me:8468: \"$ac_cpp conftest.$ac_ext\"") >&5
8469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8471 egrep -v '^ *\+' conftest.er1 >conftest.err
8473 cat conftest.err >&5
8474 echo "$as_me:8474: \$? = $ac_status" >&5
8475 (exit $ac_status); } >/dev/null; then
8476 if test -s conftest.err; then
8477 ac_cpp_err=$ac_c_preproc_warn_flag
8484 if test -z "$ac_cpp_err"; then
8485 ac_cv_header_stdc=yes
8487 echo "$as_me: failed program was:" >&5
8488 cat conftest.$ac_ext >&5
8489 ac_cv_header_stdc=no
8491 rm -f conftest.err conftest.$ac_ext
8493 if test $ac_cv_header_stdc = yes; then
8494 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8495 cat >conftest.$ac_ext <<_ACEOF
8496 #line 8496 "configure"
8497 #include "confdefs.h"
8501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8502 egrep "memchr" >/dev/null 2>&1; then
8505 ac_cv_header_stdc=no
8511 if test $ac_cv_header_stdc = yes; then
8512 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8513 cat >conftest.$ac_ext <<_ACEOF
8514 #line 8514 "configure"
8515 #include "confdefs.h"
8519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8520 egrep "free" >/dev/null 2>&1; then
8523 ac_cv_header_stdc=no
8529 if test $ac_cv_header_stdc = yes; then
8530 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8531 if test "$cross_compiling" = yes; then
8534 cat >conftest.$ac_ext <<_ACEOF
8535 #line 8535 "configure"
8536 #include "confdefs.h"
8538 #if ((' ' & 0x0FF) == 0x020)
8539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8542 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8543 || ('j' <= (c) && (c) <= 'r') \
8544 || ('s' <= (c) && (c) <= 'z'))
8545 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8548 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8553 for (i = 0; i < 256; i++)
8554 if (XOR (islower (i), ISLOWER (i))
8555 || toupper (i) != TOUPPER (i))
8557 $ac_main_return (0);
8560 rm -f conftest$ac_exeext
8561 if { (eval echo "$as_me:8561: \"$ac_link\"") >&5
8562 (eval $ac_link) 2>&5
8564 echo "$as_me:8564: \$? = $ac_status" >&5
8565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8566 { (eval echo "$as_me:8566: \"$ac_try\"") >&5
8569 echo "$as_me:8569: \$? = $ac_status" >&5
8570 (exit $ac_status); }; }; then
8573 echo "$as_me: program exited with status $ac_status" >&5
8574 echo "$as_me: failed program was:" >&5
8575 cat conftest.$ac_ext >&5
8576 ac_cv_header_stdc=no
8578 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8582 echo "$as_me:8582: result: $ac_cv_header_stdc" >&5
8583 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8584 if test $ac_cv_header_stdc = yes; then
8586 cat >>confdefs.h <<\EOF
8587 #define STDC_HEADERS 1
8592 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8594 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8595 inttypes.h stdint.h unistd.h
8597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8598 echo "$as_me:8598: checking for $ac_header" >&5
8599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 cat >conftest.$ac_ext <<_ACEOF
8604 #line 8604 "configure"
8605 #include "confdefs.h"
8606 $ac_includes_default
8607 #include <$ac_header>
8609 rm -f conftest.$ac_objext
8610 if { (eval echo "$as_me:8610: \"$ac_compile\"") >&5
8611 (eval $ac_compile) 2>&5
8613 echo "$as_me:8613: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -s conftest.$ac_objext'
8616 { (eval echo "$as_me:8616: \"$ac_try\"") >&5
8619 echo "$as_me:8619: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 eval "$as_ac_Header=yes"
8623 echo "$as_me: failed program was:" >&5
8624 cat conftest.$ac_ext >&5
8625 eval "$as_ac_Header=no"
8627 rm -f conftest.$ac_objext conftest.$ac_ext
8629 echo "$as_me:8629: result: `eval echo '${'$as_ac_Header'}'`" >&5
8630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8632 cat >>confdefs.h <<EOF
8633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8639 echo "$as_me:8639: checking for signed char" >&5
8640 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
8641 if test "${ac_cv_type_signed_char+set}" = set; then
8642 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 cat >conftest.$ac_ext <<_ACEOF
8645 #line 8645 "configure"
8646 #include "confdefs.h"
8647 $ac_includes_default
8651 if ((signed char *) 0)
8653 if (sizeof (signed char))
8659 rm -f conftest.$ac_objext
8660 if { (eval echo "$as_me:8660: \"$ac_compile\"") >&5
8661 (eval $ac_compile) 2>&5
8663 echo "$as_me:8663: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try='test -s conftest.$ac_objext'
8666 { (eval echo "$as_me:8666: \"$ac_try\"") >&5
8669 echo "$as_me:8669: \$? = $ac_status" >&5
8670 (exit $ac_status); }; }; then
8671 ac_cv_type_signed_char=yes
8673 echo "$as_me: failed program was:" >&5
8674 cat conftest.$ac_ext >&5
8675 ac_cv_type_signed_char=no
8677 rm -f conftest.$ac_objext conftest.$ac_ext
8679 echo "$as_me:8679: result: $ac_cv_type_signed_char" >&5
8680 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
8682 echo "$as_me:8682: checking size of signed char" >&5
8683 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
8684 if test "${ac_cv_sizeof_signed_char+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 if test "$ac_cv_type_signed_char" = yes; then
8688 if test "$cross_compiling" = yes; then
8689 # Depending upon the size, compute the lo and hi bounds.
8690 cat >conftest.$ac_ext <<_ACEOF
8691 #line 8691 "configure"
8692 #include "confdefs.h"
8693 $ac_includes_default
8697 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
8702 rm -f conftest.$ac_objext
8703 if { (eval echo "$as_me:8703: \"$ac_compile\"") >&5
8704 (eval $ac_compile) 2>&5
8706 echo "$as_me:8706: \$? = $ac_status" >&5
8707 (exit $ac_status); } &&
8708 { ac_try='test -s conftest.$ac_objext'
8709 { (eval echo "$as_me:8709: \"$ac_try\"") >&5
8712 echo "$as_me:8712: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
8716 cat >conftest.$ac_ext <<_ACEOF
8717 #line 8717 "configure"
8718 #include "confdefs.h"
8719 $ac_includes_default
8723 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
8728 rm -f conftest.$ac_objext
8729 if { (eval echo "$as_me:8729: \"$ac_compile\"") >&5
8730 (eval $ac_compile) 2>&5
8732 echo "$as_me:8732: \$? = $ac_status" >&5
8733 (exit $ac_status); } &&
8734 { ac_try='test -s conftest.$ac_objext'
8735 { (eval echo "$as_me:8735: \"$ac_try\"") >&5
8738 echo "$as_me:8738: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 ac_hi=$ac_mid; break
8742 echo "$as_me: failed program was:" >&5
8743 cat conftest.$ac_ext >&5
8744 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
8746 rm -f conftest.$ac_objext conftest.$ac_ext
8749 echo "$as_me: failed program was:" >&5
8750 cat conftest.$ac_ext >&5
8753 cat >conftest.$ac_ext <<_ACEOF
8754 #line 8754 "configure"
8755 #include "confdefs.h"
8756 $ac_includes_default
8760 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
8765 rm -f conftest.$ac_objext
8766 if { (eval echo "$as_me:8766: \"$ac_compile\"") >&5
8767 (eval $ac_compile) 2>&5
8769 echo "$as_me:8769: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try='test -s conftest.$ac_objext'
8772 { (eval echo "$as_me:8772: \"$ac_try\"") >&5
8775 echo "$as_me:8775: \$? = $ac_status" >&5
8776 (exit $ac_status); }; }; then
8777 ac_lo=$ac_mid; break
8779 echo "$as_me: failed program was:" >&5
8780 cat conftest.$ac_ext >&5
8781 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
8783 rm -f conftest.$ac_objext conftest.$ac_ext
8786 rm -f conftest.$ac_objext conftest.$ac_ext
8787 # Binary search between lo and hi bounds.
8788 while test "x$ac_lo" != "x$ac_hi"; do
8789 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8790 cat >conftest.$ac_ext <<_ACEOF
8791 #line 8791 "configure"
8792 #include "confdefs.h"
8793 $ac_includes_default
8797 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
8802 rm -f conftest.$ac_objext
8803 if { (eval echo "$as_me:8803: \"$ac_compile\"") >&5
8804 (eval $ac_compile) 2>&5
8806 echo "$as_me:8806: \$? = $ac_status" >&5
8807 (exit $ac_status); } &&
8808 { ac_try='test -s conftest.$ac_objext'
8809 { (eval echo "$as_me:8809: \"$ac_try\"") >&5
8812 echo "$as_me:8812: \$? = $ac_status" >&5
8813 (exit $ac_status); }; }; then
8816 echo "$as_me: failed program was:" >&5
8817 cat conftest.$ac_ext >&5
8818 ac_lo=`expr $ac_mid + 1`
8820 rm -f conftest.$ac_objext conftest.$ac_ext
8822 ac_cv_sizeof_signed_char=$ac_lo
8824 if test "$cross_compiling" = yes; then
8825 { { echo "$as_me:8825: error: cannot run test program while cross compiling" >&5
8826 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8827 { (exit 1); exit 1; }; }
8829 cat >conftest.$ac_ext <<_ACEOF
8830 #line 8830 "configure"
8831 #include "confdefs.h"
8832 $ac_includes_default
8836 FILE *f = fopen ("conftest.val", "w");
8838 $ac_main_return (1);
8839 fprintf (f, "%d", (sizeof (signed char)));
8845 rm -f conftest$ac_exeext
8846 if { (eval echo "$as_me:8846: \"$ac_link\"") >&5
8847 (eval $ac_link) 2>&5
8849 echo "$as_me:8849: \$? = $ac_status" >&5
8850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8851 { (eval echo "$as_me:8851: \"$ac_try\"") >&5
8854 echo "$as_me:8854: \$? = $ac_status" >&5
8855 (exit $ac_status); }; }; then
8856 ac_cv_sizeof_signed_char=`cat conftest.val`
8858 echo "$as_me: program exited with status $ac_status" >&5
8859 echo "$as_me: failed program was:" >&5
8860 cat conftest.$ac_ext >&5
8862 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8867 ac_cv_sizeof_signed_char=0
8870 echo "$as_me:8870: result: $ac_cv_sizeof_signed_char" >&5
8871 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
8872 cat >>confdefs.h <<EOF
8873 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
8876 if test "$ac_cv_sizeof_signed_char" = 1 ; then
8877 NCURSES_SBOOL="signed char"
8879 NCURSES_SBOOL="char"
8881 echo "$as_me:8881: checking if you want to use signed Boolean array in term.h" >&5
8882 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
8884 # Check whether --enable-signed-char or --disable-signed-char was given.
8885 if test "${enable_signed_char+set}" = set; then
8886 enableval="$enable_signed_char"
8887 with_signed_char=$enableval
8891 echo "$as_me:8891: result: $with_signed_char" >&5
8892 echo "${ECHO_T}$with_signed_char" >&6
8893 test "$with_signed_char" != yes && NCURSES_SBOOL="char"
8895 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
8896 echo "$as_me:8896: checking if you want SIGWINCH handler" >&5
8897 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
8899 # Check whether --enable-sigwinch or --disable-sigwinch was given.
8900 if test "${enable_sigwinch+set}" = set; then
8901 enableval="$enable_sigwinch"
8902 with_sigwinch=$enableval
8904 with_sigwinch=$with_ext_funcs
8906 echo "$as_me:8906: result: $with_sigwinch" >&5
8907 echo "${ECHO_T}$with_sigwinch" >&6
8908 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
8909 #define USE_SIGWINCH 1
8912 ### use option --enable-tcap-names to allow user to define new capabilities
8913 echo "$as_me:8913: checking if you want user-definable terminal capabilities like termcap" >&5
8914 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
8916 # Check whether --enable-tcap-names or --disable-tcap-names was given.
8917 if test "${enable_tcap_names+set}" = set; then
8918 enableval="$enable_tcap_names"
8919 with_tcap_names=$enableval
8921 with_tcap_names=$with_ext_funcs
8923 echo "$as_me:8923: result: $with_tcap_names" >&5
8924 echo "${ECHO_T}$with_tcap_names" >&6
8926 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
8928 ###############################################################################
8929 # These options are relatively safe to experiment with.
8931 echo "$as_me:8931: checking if you want all development code" >&5
8932 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
8934 # Check whether --with-develop or --without-develop was given.
8935 if test "${with_develop+set}" = set; then
8936 withval="$with_develop"
8937 with_develop=$withval
8941 echo "$as_me:8941: result: $with_develop" >&5
8942 echo "${ECHO_T}$with_develop" >&6
8944 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
8945 echo "$as_me:8945: checking if you want hard-tabs code" >&5
8946 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
8948 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
8949 if test "${enable_hard_tabs+set}" = set; then
8950 enableval="$enable_hard_tabs"
8953 enable_hard_tabs=$with_develop
8955 echo "$as_me:8955: result: $enable_hard_tabs" >&5
8956 echo "${ECHO_T}$enable_hard_tabs" >&6
8957 test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
8958 #define USE_HARD_TABS 1
8961 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
8962 echo "$as_me:8962: checking if you want limited support for xmc" >&5
8963 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
8965 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
8966 if test "${enable_xmc_glitch+set}" = set; then
8967 enableval="$enable_xmc_glitch"
8970 enable_xmc_glitch=$with_develop
8972 echo "$as_me:8972: result: $enable_xmc_glitch" >&5
8973 echo "${ECHO_T}$enable_xmc_glitch" >&6
8974 test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
8975 #define USE_XMC_SUPPORT 1
8978 ###############################################################################
8979 # These are just experimental, probably should not be in a package:
8981 echo "$as_me:8981: checking if you do not want to assume colors are white-on-black" >&5
8982 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
8984 # Check whether --enable-assumed-color or --disable-assumed-color was given.
8985 if test "${enable_assumed_color+set}" = set; then
8986 enableval="$enable_assumed_color"
8987 with_assumed_color=$enableval
8989 with_assumed_color=yes
8991 echo "$as_me:8991: result: $with_assumed_color" >&5
8992 echo "${ECHO_T}$with_assumed_color" >&6
8993 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
8994 #define USE_ASSUMED_COLOR 1
8997 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
8998 echo "$as_me:8998: checking if you want hashmap scrolling-optimization code" >&5
8999 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
9001 # Check whether --enable-hashmap or --disable-hashmap was given.
9002 if test "${enable_hashmap+set}" = set; then
9003 enableval="$enable_hashmap"
9004 with_hashmap=$enableval
9008 echo "$as_me:9008: result: $with_hashmap" >&5
9009 echo "${ECHO_T}$with_hashmap" >&6
9010 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
9011 #define USE_HASHMAP 1
9014 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
9015 echo "$as_me:9015: checking if you want colorfgbg code" >&5
9016 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
9018 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
9019 if test "${enable_colorfgbg+set}" = set; then
9020 enableval="$enable_colorfgbg"
9021 with_colorfgbg=$enableval
9025 echo "$as_me:9025: result: $with_colorfgbg" >&5
9026 echo "${ECHO_T}$with_colorfgbg" >&6
9027 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
9028 #define USE_COLORFGBG 1
9031 ### use option --enable-ext-colors to turn on use of colors beyond 16.
9032 echo "$as_me:9032: checking if you want to use experimental extended colors" >&5
9033 echo $ECHO_N "checking if you want to use experimental extended colors... $ECHO_C" >&6
9035 # Check whether --enable-ext-colors or --disable-ext-colors was given.
9036 if test "${enable_ext_colors+set}" = set; then
9037 enableval="$enable_ext_colors"
9038 with_ext_colors=$enableval
9042 echo "$as_me:9042: result: $with_ext_colors" >&5
9043 echo "${ECHO_T}$with_ext_colors" >&6
9044 NCURSES_EXT_COLORS=0
9045 if test "$with_ext_colors" = yes ; then
9046 if test "$with_widec" != yes ; then
9047 { { echo "$as_me:9047: error: This option applies only to wide-character library" >&5
9048 echo "$as_me: error: This option applies only to wide-character library" >&2;}
9049 { (exit 1); exit 1; }; }
9051 # cannot be ABI 5 since it changes sizeof(cchar_t)
9053 if test "${with_abi_version+set}" != set; then
9054 case $cf_cv_rel_version in
9056 cf_cv_rel_version=6.0
9058 { echo "$as_me:9058: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
9059 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
9065 NCURSES_EXT_COLORS=1
9066 cat >>confdefs.h <<\EOF
9067 #define NCURSES_EXT_COLORS 1
9072 ### use option --enable-ext-mouse to modify coding to support 5-button mice
9073 echo "$as_me:9073: checking if you want to use experimental extended mouse encoding" >&5
9074 echo $ECHO_N "checking if you want to use experimental extended mouse encoding... $ECHO_C" >&6
9076 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
9077 if test "${enable_ext_mouse+set}" = set; then
9078 enableval="$enable_ext_mouse"
9079 with_ext_mouse=$enableval
9083 echo "$as_me:9083: result: $with_ext_mouse" >&5
9084 echo "${ECHO_T}$with_ext_mouse" >&6
9085 NCURSES_MOUSE_VERSION=1
9086 if test "$with_ext_mouse" = yes ; then
9087 NCURSES_MOUSE_VERSION=2
9089 if test "${with_abi_version+set}" != set; then
9090 case $cf_cv_rel_version in
9092 cf_cv_rel_version=6.0
9094 { echo "$as_me:9094: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
9095 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
9102 # Reentrant code has to be opaque; there's little advantage to making ncurses
9103 # opaque outside of that, so there is no --enable-opaque option.
9104 echo "$as_me:9104: checking if you want experimental reentrant code" >&5
9105 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
9107 # Check whether --enable-reentrant or --disable-reentrant was given.
9108 if test "${enable_reentrant+set}" = set; then
9109 enableval="$enable_reentrant"
9110 with_reentrant=$enableval
9114 echo "$as_me:9114: result: $with_reentrant" >&5
9115 echo "${ECHO_T}$with_reentrant" >&6
9116 if test "$with_reentrant" = yes ; then
9117 cf_cv_enable_reentrant=1
9118 cf_cv_enable_opaque="NCURSES_INTERNALS"
9121 LIB_SUFFIX="t${LIB_SUFFIX}"
9122 cat >>confdefs.h <<\EOF
9123 #define USE_REENTRANT 1
9126 if test "${with_abi_version+set}" != set; then
9127 case $cf_cv_rel_version in
9129 cf_cv_rel_version=6.0
9131 { echo "$as_me:9131: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
9132 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
9138 cf_cv_enable_reentrant=0
9139 cf_cv_enable_opaque="NCURSES_OPAQUE"
9141 NCURSES_SIZE_T=short
9144 echo "$as_me:9144: checking if you want experimental safe-sprintf code" >&5
9145 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
9147 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
9148 if test "${enable_safe_sprintf+set}" = set; then
9149 enableval="$enable_safe_sprintf"
9150 with_safe_sprintf=$enableval
9152 with_safe_sprintf=no
9154 echo "$as_me:9154: result: $with_safe_sprintf" >&5
9155 echo "${ECHO_T}$with_safe_sprintf" >&6
9156 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
9157 #define USE_SAFE_SPRINTF 1
9160 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
9161 # when hashmap is used scroll hints are useless
9162 if test "$with_hashmap" = no ; then
9163 echo "$as_me:9163: checking if you want to experiment without scrolling-hints code" >&5
9164 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
9166 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
9167 if test "${enable_scroll_hints+set}" = set; then
9168 enableval="$enable_scroll_hints"
9169 with_scroll_hints=$enableval
9171 with_scroll_hints=yes
9173 echo "$as_me:9173: result: $with_scroll_hints" >&5
9174 echo "${ECHO_T}$with_scroll_hints" >&6
9175 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
9176 #define USE_SCROLL_HINTS 1
9181 echo "$as_me:9181: checking if you want experimental wgetch-events code" >&5
9182 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
9184 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
9185 if test "${enable_wgetch_events+set}" = set; then
9186 enableval="$enable_wgetch_events"
9187 with_wgetch_events=$enableval
9189 with_wgetch_events=no
9191 echo "$as_me:9191: result: $with_wgetch_events" >&5
9192 echo "${ECHO_T}$with_wgetch_events" >&6
9193 test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
9194 #define NCURSES_WGETCH_EVENTS 1
9197 ###############################################################################
9199 ### use option --disable-echo to suppress full display compiling commands
9200 echo "$as_me:9200: checking if you want to display full commands during build" >&5
9201 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
9203 # Check whether --enable-echo or --disable-echo was given.
9204 if test "${enable_echo+set}" = set; then
9205 enableval="$enable_echo"
9206 with_echo=$enableval
9210 if test "$with_echo" = yes; then
9213 ECHO_LINK='@ echo linking $@ ... ;'
9214 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
9216 echo "$as_me:9216: result: $with_echo" >&5
9217 echo "${ECHO_T}$with_echo" >&6
9219 ### use option --enable-warnings to turn on all gcc warnings
9220 echo "$as_me:9220: checking if you want to see compiler warnings" >&5
9221 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
9223 # Check whether --enable-warnings or --disable-warnings was given.
9224 if test "${enable_warnings+set}" = set; then
9225 enableval="$enable_warnings"
9226 with_warnings=$enableval
9228 echo "$as_me:9228: result: $with_warnings" >&5
9229 echo "${ECHO_T}$with_warnings" >&6
9231 if test -n "$with_warnings"; then
9232 ADAFLAGS="$ADAFLAGS -gnatg"
9236 if test "$GCC" = yes ; then
9239 echo "$as_me:9239: checking if this is really Intel C compiler" >&5
9240 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
9241 cf_save_CFLAGS="$CFLAGS"
9242 CFLAGS="$CFLAGS -no-gcc"
9243 cat >conftest.$ac_ext <<_ACEOF
9244 #line 9244 "configure"
9245 #include "confdefs.h"
9251 #ifdef __INTEL_COMPILER
9260 rm -f conftest.$ac_objext
9261 if { (eval echo "$as_me:9261: \"$ac_compile\"") >&5
9262 (eval $ac_compile) 2>&5
9264 echo "$as_me:9264: \$? = $ac_status" >&5
9265 (exit $ac_status); } &&
9266 { ac_try='test -s conftest.$ac_objext'
9267 { (eval echo "$as_me:9267: \"$ac_try\"") >&5
9270 echo "$as_me:9270: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9273 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
9276 echo "$as_me: failed program was:" >&5
9277 cat conftest.$ac_ext >&5
9279 rm -f conftest.$ac_objext conftest.$ac_ext
9280 CFLAGS="$cf_save_CFLAGS"
9281 echo "$as_me:9281: result: $INTEL_COMPILER" >&5
9282 echo "${ECHO_T}$INTEL_COMPILER" >&6
9287 cat > conftest.$ac_ext <<EOF
9288 #line 9288 "configure"
9289 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
9292 if test "$INTEL_COMPILER" = yes
9294 # The "-wdXXX" options suppress warnings:
9295 # remark #1419: external declaration in primary source file
9296 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
9297 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
9298 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
9299 # remark #193: zero used for undefined preprocessing identifier
9300 # remark #593: variable "curs_sb_left_arrow" was set but never used
9301 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
9302 # remark #869: parameter "tw" was never referenced
9303 # remark #981: operands are evaluated in unspecified order
9304 # warning #269: invalid format string conversion
9306 { echo "$as_me:9306: checking for $CC warning options..." >&5
9307 echo "$as_me: checking for $CC warning options..." >&6;}
9308 cf_save_CFLAGS="$CFLAGS"
9309 EXTRA_CFLAGS="-Wall"
9322 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
9323 if { (eval echo "$as_me:9323: \"$ac_compile\"") >&5
9324 (eval $ac_compile) 2>&5
9326 echo "$as_me:9326: \$? = $ac_status" >&5
9327 (exit $ac_status); }; then
9328 test -n "$verbose" && echo "$as_me:9328: result: ... -$cf_opt" >&5
9329 echo "${ECHO_T}... -$cf_opt" >&6
9330 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
9333 CFLAGS="$cf_save_CFLAGS"
9335 elif test "$GCC" = yes
9337 { echo "$as_me:9337: checking for $CC warning options..." >&5
9338 echo "$as_me: checking for $CC warning options..." >&6;}
9339 cf_save_CFLAGS="$CFLAGS"
9340 EXTRA_CFLAGS="-W -Wall"
9342 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
9344 Wbad-function-cast \
9348 Wmissing-declarations \
9349 Wmissing-prototypes \
9353 Wstrict-prototypes \
9354 Wundef $cf_warn_CONST
9356 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
9357 if { (eval echo "$as_me:9357: \"$ac_compile\"") >&5
9358 (eval $ac_compile) 2>&5
9360 echo "$as_me:9360: \$? = $ac_status" >&5
9361 (exit $ac_status); }; then
9362 test -n "$verbose" && echo "$as_me:9362: result: ... -$cf_opt" >&5
9363 echo "${ECHO_T}... -$cf_opt" >&6
9364 case $cf_opt in #(vi
9366 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
9369 case $GCC_VERSION in
9371 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
9377 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
9380 CFLAGS="$cf_save_CFLAGS"
9384 if test "$cf_with_cxx" = yes ; then
9388 if test "$GCC" = yes ; then
9391 echo "$as_me:9391: checking if this is really Intel C++ compiler" >&5
9392 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
9393 cf_save_CFLAGS="$CXXFLAGS"
9394 CXXFLAGS="$CXXFLAGS -no-gcc"
9395 cat >conftest.$ac_ext <<_ACEOF
9396 #line 9396 "configure"
9397 #include "confdefs.h"
9403 #ifdef __INTEL_COMPILER
9412 rm -f conftest.$ac_objext
9413 if { (eval echo "$as_me:9413: \"$ac_compile\"") >&5
9414 (eval $ac_compile) 2>&5
9416 echo "$as_me:9416: \$? = $ac_status" >&5
9417 (exit $ac_status); } &&
9418 { ac_try='test -s conftest.$ac_objext'
9419 { (eval echo "$as_me:9419: \"$ac_try\"") >&5
9422 echo "$as_me:9422: \$? = $ac_status" >&5
9423 (exit $ac_status); }; }; then
9425 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
9428 echo "$as_me: failed program was:" >&5
9429 cat conftest.$ac_ext >&5
9431 rm -f conftest.$ac_objext conftest.$ac_ext
9432 CXXFLAGS="$cf_save_CFLAGS"
9433 echo "$as_me:9433: result: $INTEL_CPLUSPLUS" >&5
9434 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
9440 ac_cpp='$CXXCPP $CPPFLAGS'
9441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9444 ac_main_return=return
9446 cat > conftest.$ac_ext <<EOF
9447 #line 9447 "configure"
9448 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
9451 if test "$INTEL_CPLUSPLUS" = yes
9453 # The "-wdXXX" options suppress warnings:
9454 # remark #1419: external declaration in primary source file
9455 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
9456 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
9457 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
9458 # remark #193: zero used for undefined preprocessing identifier
9459 # remark #593: variable "curs_sb_left_arrow" was set but never used
9460 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
9461 # remark #869: parameter "tw" was never referenced
9462 # remark #981: operands are evaluated in unspecified order
9463 # warning #269: invalid format string conversion
9465 { echo "$as_me:9465: checking for $CC warning options..." >&5
9466 echo "$as_me: checking for $CC warning options..." >&6;}
9467 cf_save_CXXFLAGS="$CXXFLAGS"
9468 EXTRA_CXXFLAGS="-Wall"
9481 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
9482 if { (eval echo "$as_me:9482: \"$ac_compile\"") >&5
9483 (eval $ac_compile) 2>&5
9485 echo "$as_me:9485: \$? = $ac_status" >&5
9486 (exit $ac_status); }; then
9487 test -n "$verbose" && echo "$as_me:9487: result: ... -$cf_opt" >&5
9488 echo "${ECHO_T}... -$cf_opt" >&6
9489 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
9492 CXXFLAGS="$cf_save_CXXFLAGS"
9494 elif test "$GXX" = yes
9496 { echo "$as_me:9496: checking for $CXX warning options..." >&5
9497 echo "$as_me: checking for $CXX warning options..." >&6;}
9498 cf_save_CXXFLAGS="$CXXFLAGS"
9499 EXTRA_CXXFLAGS="-W -Wall"
9500 cf_gxx_extra_warnings=""
9501 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
9502 case "$GCC_VERSION" in
9506 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
9512 Woverloaded-virtual \
9518 Wmissing-prototypes \
9521 Wstrict-prototypes \
9522 Wundef $cf_gxx_extra_warnings Wno-unused
9524 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
9525 if { (eval echo "$as_me:9525: \"$ac_compile\"") >&5
9526 (eval $ac_compile) 2>&5
9528 echo "$as_me:9528: \$? = $ac_status" >&5
9529 (exit $ac_status); }; then
9530 test -n "$verbose" && echo "$as_me:9530: result: ... -$cf_opt" >&5
9531 echo "${ECHO_T}... -$cf_opt" >&6
9532 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
9534 test -n "$verbose" && echo "$as_me:9534: result: ... no -$cf_opt" >&5
9535 echo "${ECHO_T}... no -$cf_opt" >&6
9538 CXXFLAGS="$cf_save_CXXFLAGS"
9543 ac_cpp='$CPP $CPPFLAGS'
9544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9547 ac_main_return=return
9552 if test "$GCC" = yes
9554 cat > conftest.i <<EOF
9556 #define GCC_PRINTF 0
9561 #ifndef GCC_NORETURN
9562 #define GCC_NORETURN /* nothing */
9565 #define GCC_UNUSED /* nothing */
9568 if test "$GCC" = yes
9570 { echo "$as_me:9570: checking for $CC __attribute__ directives..." >&5
9571 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
9572 cat > conftest.$ac_ext <<EOF
9573 #line 9573 "configure"
9574 #include "confdefs.h"
9575 #include "conftest.h"
9576 #include "conftest.i"
9578 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
9580 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
9583 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
9585 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
9587 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
9588 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
9589 extern void foo(void) GCC_NORETURN;
9590 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
9592 for cf_attribute in scanf printf unused noreturn
9595 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9597 cf_directive="__attribute__(($cf_attribute))"
9598 echo "checking for $CC $cf_directive" 1>&5
9599 case $cf_attribute in
9601 cat >conftest.h <<EOF
9602 #define GCC_$cf_ATTRIBUTE 1
9606 cat >conftest.h <<EOF
9607 #define GCC_$cf_ATTRIBUTE $cf_directive
9611 if { (eval echo "$as_me:9611: \"$ac_compile\"") >&5
9612 (eval $ac_compile) 2>&5
9614 echo "$as_me:9614: \$? = $ac_status" >&5
9615 (exit $ac_status); }; then
9616 test -n "$verbose" && echo "$as_me:9616: result: ... $cf_attribute" >&5
9617 echo "${ECHO_T}... $cf_attribute" >&6
9618 cat conftest.h >>confdefs.h
9622 fgrep define conftest.i >>confdefs.h
9627 ### use option --enable-assertions to turn on generation of assertion code
9628 echo "$as_me:9628: checking if you want to enable runtime assertions" >&5
9629 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
9631 # Check whether --enable-assertions or --disable-assertions was given.
9632 if test "${enable_assertions+set}" = set; then
9633 enableval="$enable_assertions"
9634 with_assertions=$enableval
9638 echo "$as_me:9638: result: $with_assertions" >&5
9639 echo "${ECHO_T}$with_assertions" >&6
9642 if test "$with_assertions" = no
9644 cat >>confdefs.h <<\EOF
9648 CPPFLAGS="$CPPFLAGS -DNDEBUG"
9650 ADAFLAGS="$ADAFLAGS -gnata"
9654 ### use option --disable-leaks to suppress "permanent" leaks, for testing
9656 echo "$as_me:9656: checking if you want to use dmalloc for testing" >&5
9657 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
9659 # Check whether --with-dmalloc or --without-dmalloc was given.
9660 if test "${with_dmalloc+set}" = set; then
9661 withval="$with_dmalloc"
9662 cat >>confdefs.h <<\EOF
9663 #define USE_DMALLOC 1
9666 : ${with_cflags:=-g}
9667 : ${with_no_leaks:=yes}
9672 echo "$as_me:9672: result: ${with_dmalloc:-no}" >&5
9673 echo "${ECHO_T}${with_dmalloc:-no}" >&6
9675 case .$with_cflags in #(vi
9677 case .$CFLAGS in #(vi
9685 cf_new_extra_cppflags=
9687 for cf_add_cflags in -g
9689 case $cf_fix_cppflags in
9691 case $cf_add_cflags in #(vi
9692 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9693 case $cf_add_cflags in
9695 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9697 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9698 && test -z "${cf_tst_cflags}" \
9699 && cf_fix_cppflags=yes
9701 if test $cf_fix_cppflags = yes ; then
9702 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9704 elif test "${cf_tst_cflags}" = "\"'" ; then
9705 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9711 *$cf_add_cflags) #(vi
9714 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9719 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9724 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9726 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9728 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9729 && test -z "${cf_tst_cflags}" \
9730 && cf_fix_cppflags=no
9735 if test -n "$cf_new_cflags" ; then
9737 CFLAGS="$CFLAGS $cf_new_cflags"
9740 if test -n "$cf_new_cppflags" ; then
9742 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
9745 if test -n "$cf_new_extra_cppflags" ; then
9747 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9755 if test "$with_dmalloc" = yes ; then
9756 echo "$as_me:9756: checking for dmalloc.h" >&5
9757 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
9758 if test "${ac_cv_header_dmalloc_h+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 cat >conftest.$ac_ext <<_ACEOF
9762 #line 9762 "configure"
9763 #include "confdefs.h"
9764 #include <dmalloc.h>
9766 if { (eval echo "$as_me:9766: \"$ac_cpp conftest.$ac_ext\"") >&5
9767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9769 egrep -v '^ *\+' conftest.er1 >conftest.err
9771 cat conftest.err >&5
9772 echo "$as_me:9772: \$? = $ac_status" >&5
9773 (exit $ac_status); } >/dev/null; then
9774 if test -s conftest.err; then
9775 ac_cpp_err=$ac_c_preproc_warn_flag
9782 if test -z "$ac_cpp_err"; then
9783 ac_cv_header_dmalloc_h=yes
9785 echo "$as_me: failed program was:" >&5
9786 cat conftest.$ac_ext >&5
9787 ac_cv_header_dmalloc_h=no
9789 rm -f conftest.err conftest.$ac_ext
9791 echo "$as_me:9791: result: $ac_cv_header_dmalloc_h" >&5
9792 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
9793 if test $ac_cv_header_dmalloc_h = yes; then
9795 echo "$as_me:9795: checking for dmalloc_debug in -ldmalloc" >&5
9796 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
9797 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 ac_check_lib_save_LIBS=$LIBS
9801 LIBS="-ldmalloc $LIBS"
9802 cat >conftest.$ac_ext <<_ACEOF
9803 #line 9803 "configure"
9804 #include "confdefs.h"
9806 /* Override any gcc2 internal prototype to avoid an error. */
9810 /* We use char because int might match the return type of a gcc2
9811 builtin and then its argument prototype would still apply. */
9812 char dmalloc_debug ();
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (eval echo "$as_me:9822: \"$ac_link\"") >&5
9823 (eval $ac_link) 2>&5
9825 echo "$as_me:9825: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
9827 { ac_try='test -s conftest$ac_exeext'
9828 { (eval echo "$as_me:9828: \"$ac_try\"") >&5
9831 echo "$as_me:9831: \$? = $ac_status" >&5
9832 (exit $ac_status); }; }; then
9833 ac_cv_lib_dmalloc_dmalloc_debug=yes
9835 echo "$as_me: failed program was:" >&5
9836 cat conftest.$ac_ext >&5
9837 ac_cv_lib_dmalloc_dmalloc_debug=no
9839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9840 LIBS=$ac_check_lib_save_LIBS
9842 echo "$as_me:9842: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
9843 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
9844 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
9845 cat >>confdefs.h <<EOF
9846 #define HAVE_LIBDMALLOC 1
9849 LIBS="-ldmalloc $LIBS"
9857 echo "$as_me:9857: checking if you want to use dbmalloc for testing" >&5
9858 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
9860 # Check whether --with-dbmalloc or --without-dbmalloc was given.
9861 if test "${with_dbmalloc+set}" = set; then
9862 withval="$with_dbmalloc"
9863 cat >>confdefs.h <<\EOF
9864 #define USE_DBMALLOC 1
9867 : ${with_cflags:=-g}
9868 : ${with_no_leaks:=yes}
9873 echo "$as_me:9873: result: ${with_dbmalloc:-no}" >&5
9874 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
9876 case .$with_cflags in #(vi
9878 case .$CFLAGS in #(vi
9886 cf_new_extra_cppflags=
9888 for cf_add_cflags in -g
9890 case $cf_fix_cppflags in
9892 case $cf_add_cflags in #(vi
9893 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9894 case $cf_add_cflags in
9896 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9898 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9899 && test -z "${cf_tst_cflags}" \
9900 && cf_fix_cppflags=yes
9902 if test $cf_fix_cppflags = yes ; then
9903 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9905 elif test "${cf_tst_cflags}" = "\"'" ; then
9906 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9912 *$cf_add_cflags) #(vi
9915 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9920 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9925 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9927 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9929 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9930 && test -z "${cf_tst_cflags}" \
9931 && cf_fix_cppflags=no
9936 if test -n "$cf_new_cflags" ; then
9938 CFLAGS="$CFLAGS $cf_new_cflags"
9941 if test -n "$cf_new_cppflags" ; then
9943 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
9946 if test -n "$cf_new_extra_cppflags" ; then
9948 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9956 if test "$with_dbmalloc" = yes ; then
9957 echo "$as_me:9957: checking for dbmalloc.h" >&5
9958 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
9959 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 cat >conftest.$ac_ext <<_ACEOF
9963 #line 9963 "configure"
9964 #include "confdefs.h"
9965 #include <dbmalloc.h>
9967 if { (eval echo "$as_me:9967: \"$ac_cpp conftest.$ac_ext\"") >&5
9968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9970 egrep -v '^ *\+' conftest.er1 >conftest.err
9972 cat conftest.err >&5
9973 echo "$as_me:9973: \$? = $ac_status" >&5
9974 (exit $ac_status); } >/dev/null; then
9975 if test -s conftest.err; then
9976 ac_cpp_err=$ac_c_preproc_warn_flag
9983 if test -z "$ac_cpp_err"; then
9984 ac_cv_header_dbmalloc_h=yes
9986 echo "$as_me: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9988 ac_cv_header_dbmalloc_h=no
9990 rm -f conftest.err conftest.$ac_ext
9992 echo "$as_me:9992: result: $ac_cv_header_dbmalloc_h" >&5
9993 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
9994 if test $ac_cv_header_dbmalloc_h = yes; then
9996 echo "$as_me:9996: checking for debug_malloc in -ldbmalloc" >&5
9997 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
9998 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10001 ac_check_lib_save_LIBS=$LIBS
10002 LIBS="-ldbmalloc $LIBS"
10003 cat >conftest.$ac_ext <<_ACEOF
10004 #line 10004 "configure"
10005 #include "confdefs.h"
10007 /* Override any gcc2 internal prototype to avoid an error. */
10011 /* We use char because int might match the return type of a gcc2
10012 builtin and then its argument prototype would still apply. */
10013 char debug_malloc ();
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (eval echo "$as_me:10023: \"$ac_link\"") >&5
10024 (eval $ac_link) 2>&5
10026 echo "$as_me:10026: \$? = $ac_status" >&5
10027 (exit $ac_status); } &&
10028 { ac_try='test -s conftest$ac_exeext'
10029 { (eval echo "$as_me:10029: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10032 echo "$as_me:10032: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 ac_cv_lib_dbmalloc_debug_malloc=yes
10036 echo "$as_me: failed program was:" >&5
10037 cat conftest.$ac_ext >&5
10038 ac_cv_lib_dbmalloc_debug_malloc=no
10040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10041 LIBS=$ac_check_lib_save_LIBS
10043 echo "$as_me:10043: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
10044 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
10045 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
10046 cat >>confdefs.h <<EOF
10047 #define HAVE_LIBDBMALLOC 1
10050 LIBS="-ldbmalloc $LIBS"
10058 echo "$as_me:10058: checking if you want to use valgrind for testing" >&5
10059 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
10061 # Check whether --with-valgrind or --without-valgrind was given.
10062 if test "${with_valgrind+set}" = set; then
10063 withval="$with_valgrind"
10064 cat >>confdefs.h <<\EOF
10065 #define USE_VALGRIND 1
10068 : ${with_cflags:=-g}
10069 : ${with_no_leaks:=yes}
10074 echo "$as_me:10074: result: ${with_valgrind:-no}" >&5
10075 echo "${ECHO_T}${with_valgrind:-no}" >&6
10077 case .$with_cflags in #(vi
10079 case .$CFLAGS in #(vi
10087 cf_new_extra_cppflags=
10089 for cf_add_cflags in -g
10091 case $cf_fix_cppflags in
10093 case $cf_add_cflags in #(vi
10094 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10095 case $cf_add_cflags in
10097 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10099 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10100 && test -z "${cf_tst_cflags}" \
10101 && cf_fix_cppflags=yes
10103 if test $cf_fix_cppflags = yes ; then
10104 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10106 elif test "${cf_tst_cflags}" = "\"'" ; then
10107 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10112 case "$CPPFLAGS" in
10113 *$cf_add_cflags) #(vi
10116 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10121 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10126 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10128 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10130 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10131 && test -z "${cf_tst_cflags}" \
10132 && cf_fix_cppflags=no
10137 if test -n "$cf_new_cflags" ; then
10139 CFLAGS="$CFLAGS $cf_new_cflags"
10142 if test -n "$cf_new_cppflags" ; then
10144 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
10147 if test -n "$cf_new_extra_cppflags" ; then
10149 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10157 echo "$as_me:10157: checking if you want to perform memory-leak testing" >&5
10158 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
10160 # Check whether --enable-leaks or --disable-leaks was given.
10161 if test "${enable_leaks+set}" = set; then
10162 enableval="$enable_leaks"
10165 : ${with_no_leaks:=no}
10167 echo "$as_me:10167: result: $with_no_leaks" >&5
10168 echo "${ECHO_T}$with_no_leaks" >&6
10170 if test "$with_no_leaks" = yes ; then
10171 cat >>confdefs.h <<\EOF
10177 cat >>confdefs.h <<\EOF
10178 #define HAVE_NC_ALLOC_H 1
10181 ### use option --enable-expanded to generate certain macros as functions
10183 # Check whether --enable-expanded or --disable-expanded was given.
10184 if test "${enable_expanded+set}" = set; then
10185 enableval="$enable_expanded"
10186 test "$enableval" = yes && cat >>confdefs.h <<\EOF
10187 #define NCURSES_EXPANDED 1
10192 ### use option --disable-macros to suppress macros in favor of functions
10194 # Check whether --enable-macros or --disable-macros was given.
10195 if test "${enable_macros+set}" = set; then
10196 enableval="$enable_macros"
10197 test "$enableval" = no && cat >>confdefs.h <<\EOF
10198 #define NCURSES_NOMACROS 1
10203 # Normally we only add trace() to the debug-library. Allow this to be
10204 # extended to all models of the ncurses library:
10206 case "$CFLAGS $CPPFLAGS" in
10212 echo "$as_me:10212: checking whether to add trace feature to all models" >&5
10213 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
10215 # Check whether --with-trace or --without-trace was given.
10216 if test "${with_trace+set}" = set; then
10217 withval="$with_trace"
10218 cf_with_trace=$withval
10220 cf_with_trace=$cf_all_traces
10222 echo "$as_me:10222: result: $cf_with_trace" >&5
10223 echo "${ECHO_T}$cf_with_trace" >&6
10225 if test "$cf_with_trace" = yes ; then
10232 cf_new_extra_cppflags=
10234 for cf_add_cflags in -DTRACE
10236 case $cf_fix_cppflags in
10238 case $cf_add_cflags in #(vi
10239 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10240 case $cf_add_cflags in
10242 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10244 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10245 && test -z "${cf_tst_cflags}" \
10246 && cf_fix_cppflags=yes
10248 if test $cf_fix_cppflags = yes ; then
10249 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10251 elif test "${cf_tst_cflags}" = "\"'" ; then
10252 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10257 case "$CPPFLAGS" in
10258 *$cf_add_cflags) #(vi
10261 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10266 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10271 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10273 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10275 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10276 && test -z "${cf_tst_cflags}" \
10277 && cf_fix_cppflags=no
10282 if test -n "$cf_new_cflags" ; then
10284 CFLAGS="$CFLAGS $cf_new_cflags"
10287 if test -n "$cf_new_cppflags" ; then
10289 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
10292 if test -n "$cf_new_extra_cppflags" ; then
10294 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10302 ### Checks for libraries.
10303 echo "$as_me:10303: checking for gettimeofday" >&5
10304 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
10305 if test "${ac_cv_func_gettimeofday+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 cat >conftest.$ac_ext <<_ACEOF
10309 #line 10309 "configure"
10310 #include "confdefs.h"
10311 /* System header to define __stub macros and hopefully few prototypes,
10312 which can conflict with char gettimeofday (); below. */
10313 #include <assert.h>
10314 /* Override any gcc2 internal prototype to avoid an error. */
10318 /* We use char because int might match the return type of a gcc2
10319 builtin and then its argument prototype would still apply. */
10320 char gettimeofday ();
10326 /* The GNU C library defines this for functions which it implements
10327 to always fail with ENOSYS. Some functions are actually named
10328 something starting with __ and the normal name is an alias. */
10329 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
10339 rm -f conftest.$ac_objext conftest$ac_exeext
10340 if { (eval echo "$as_me:10340: \"$ac_link\"") >&5
10341 (eval $ac_link) 2>&5
10343 echo "$as_me:10343: \$? = $ac_status" >&5
10344 (exit $ac_status); } &&
10345 { ac_try='test -s conftest$ac_exeext'
10346 { (eval echo "$as_me:10346: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10349 echo "$as_me:10349: \$? = $ac_status" >&5
10350 (exit $ac_status); }; }; then
10351 ac_cv_func_gettimeofday=yes
10353 echo "$as_me: failed program was:" >&5
10354 cat conftest.$ac_ext >&5
10355 ac_cv_func_gettimeofday=no
10357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10359 echo "$as_me:10359: result: $ac_cv_func_gettimeofday" >&5
10360 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
10361 if test $ac_cv_func_gettimeofday = yes; then
10362 cat >>confdefs.h <<\EOF
10363 #define HAVE_GETTIMEOFDAY 1
10368 echo "$as_me:10368: checking for gettimeofday in -lbsd" >&5
10369 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
10370 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 ac_check_lib_save_LIBS=$LIBS
10375 cat >conftest.$ac_ext <<_ACEOF
10376 #line 10376 "configure"
10377 #include "confdefs.h"
10379 /* Override any gcc2 internal prototype to avoid an error. */
10383 /* We use char because int might match the return type of a gcc2
10384 builtin and then its argument prototype would still apply. */
10385 char gettimeofday ();
10394 rm -f conftest.$ac_objext conftest$ac_exeext
10395 if { (eval echo "$as_me:10395: \"$ac_link\"") >&5
10396 (eval $ac_link) 2>&5
10398 echo "$as_me:10398: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try='test -s conftest$ac_exeext'
10401 { (eval echo "$as_me:10401: \"$ac_try\"") >&5
10402 (eval $ac_try) 2>&5
10404 echo "$as_me:10404: \$? = $ac_status" >&5
10405 (exit $ac_status); }; }; then
10406 ac_cv_lib_bsd_gettimeofday=yes
10408 echo "$as_me: failed program was:" >&5
10409 cat conftest.$ac_ext >&5
10410 ac_cv_lib_bsd_gettimeofday=no
10412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10413 LIBS=$ac_check_lib_save_LIBS
10415 echo "$as_me:10415: result: $ac_cv_lib_bsd_gettimeofday" >&5
10416 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
10417 if test $ac_cv_lib_bsd_gettimeofday = yes; then
10418 cat >>confdefs.h <<\EOF
10419 #define HAVE_GETTIMEOFDAY 1
10427 echo "$as_me:10427: checking if -lm needed for math functions" >&5
10428 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
10429 if test "${cf_cv_need_libm+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10433 cat >conftest.$ac_ext <<_ACEOF
10434 #line 10434 "configure"
10435 #include "confdefs.h"
10443 double x = rand(); printf("result = %g\n", sin(x))
10448 rm -f conftest.$ac_objext conftest$ac_exeext
10449 if { (eval echo "$as_me:10449: \"$ac_link\"") >&5
10450 (eval $ac_link) 2>&5
10452 echo "$as_me:10452: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try='test -s conftest$ac_exeext'
10455 { (eval echo "$as_me:10455: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10458 echo "$as_me:10458: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }; then
10462 echo "$as_me: failed program was:" >&5
10463 cat conftest.$ac_ext >&5
10464 cf_cv_need_libm=yes
10466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10468 echo "$as_me:10468: result: $cf_cv_need_libm" >&5
10469 echo "${ECHO_T}$cf_cv_need_libm" >&6
10470 if test "$cf_cv_need_libm" = yes
10475 ### Checks for header files.
10476 echo "$as_me:10476: checking for ANSI C header files" >&5
10477 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10478 if test "${ac_cv_header_stdc+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 cat >conftest.$ac_ext <<_ACEOF
10482 #line 10482 "configure"
10483 #include "confdefs.h"
10484 #include <stdlib.h>
10485 #include <stdarg.h>
10486 #include <string.h>
10490 if { (eval echo "$as_me:10490: \"$ac_cpp conftest.$ac_ext\"") >&5
10491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10493 egrep -v '^ *\+' conftest.er1 >conftest.err
10495 cat conftest.err >&5
10496 echo "$as_me:10496: \$? = $ac_status" >&5
10497 (exit $ac_status); } >/dev/null; then
10498 if test -s conftest.err; then
10499 ac_cpp_err=$ac_c_preproc_warn_flag
10506 if test -z "$ac_cpp_err"; then
10507 ac_cv_header_stdc=yes
10509 echo "$as_me: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10511 ac_cv_header_stdc=no
10513 rm -f conftest.err conftest.$ac_ext
10515 if test $ac_cv_header_stdc = yes; then
10516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10517 cat >conftest.$ac_ext <<_ACEOF
10518 #line 10518 "configure"
10519 #include "confdefs.h"
10520 #include <string.h>
10523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10524 egrep "memchr" >/dev/null 2>&1; then
10527 ac_cv_header_stdc=no
10533 if test $ac_cv_header_stdc = yes; then
10534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10535 cat >conftest.$ac_ext <<_ACEOF
10536 #line 10536 "configure"
10537 #include "confdefs.h"
10538 #include <stdlib.h>
10541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10542 egrep "free" >/dev/null 2>&1; then
10545 ac_cv_header_stdc=no
10551 if test $ac_cv_header_stdc = yes; then
10552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10553 if test "$cross_compiling" = yes; then
10556 cat >conftest.$ac_ext <<_ACEOF
10557 #line 10557 "configure"
10558 #include "confdefs.h"
10560 #if ((' ' & 0x0FF) == 0x020)
10561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10564 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10565 || ('j' <= (c) && (c) <= 'r') \
10566 || ('s' <= (c) && (c) <= 'z'))
10567 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10570 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10575 for (i = 0; i < 256; i++)
10576 if (XOR (islower (i), ISLOWER (i))
10577 || toupper (i) != TOUPPER (i))
10578 $ac_main_return(2);
10579 $ac_main_return (0);
10582 rm -f conftest$ac_exeext
10583 if { (eval echo "$as_me:10583: \"$ac_link\"") >&5
10584 (eval $ac_link) 2>&5
10586 echo "$as_me:10586: \$? = $ac_status" >&5
10587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10588 { (eval echo "$as_me:10588: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10591 echo "$as_me:10591: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10595 echo "$as_me: program exited with status $ac_status" >&5
10596 echo "$as_me: failed program was:" >&5
10597 cat conftest.$ac_ext >&5
10598 ac_cv_header_stdc=no
10600 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10604 echo "$as_me:10604: result: $ac_cv_header_stdc" >&5
10605 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10606 if test $ac_cv_header_stdc = yes; then
10608 cat >>confdefs.h <<\EOF
10609 #define STDC_HEADERS 1
10614 ac_header_dirent=no
10615 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10616 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10617 echo "$as_me:10617: checking for $ac_hdr that defines DIR" >&5
10618 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10622 cat >conftest.$ac_ext <<_ACEOF
10623 #line 10623 "configure"
10624 #include "confdefs.h"
10625 #include <sys/types.h>
10637 rm -f conftest.$ac_objext
10638 if { (eval echo "$as_me:10638: \"$ac_compile\"") >&5
10639 (eval $ac_compile) 2>&5
10641 echo "$as_me:10641: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -s conftest.$ac_objext'
10644 { (eval echo "$as_me:10644: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10647 echo "$as_me:10647: \$? = $ac_status" >&5
10648 (exit $ac_status); }; }; then
10649 eval "$as_ac_Header=yes"
10651 echo "$as_me: failed program was:" >&5
10652 cat conftest.$ac_ext >&5
10653 eval "$as_ac_Header=no"
10655 rm -f conftest.$ac_objext conftest.$ac_ext
10657 echo "$as_me:10657: result: `eval echo '${'$as_ac_Header'}'`" >&5
10658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10660 cat >>confdefs.h <<EOF
10661 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10664 ac_header_dirent=$ac_hdr; break
10668 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10669 if test $ac_header_dirent = dirent.h; then
10670 echo "$as_me:10670: checking for opendir in -ldir" >&5
10671 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
10672 if test "${ac_cv_lib_dir_opendir+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 ac_check_lib_save_LIBS=$LIBS
10677 cat >conftest.$ac_ext <<_ACEOF
10678 #line 10678 "configure"
10679 #include "confdefs.h"
10681 /* Override any gcc2 internal prototype to avoid an error. */
10685 /* We use char because int might match the return type of a gcc2
10686 builtin and then its argument prototype would still apply. */
10696 rm -f conftest.$ac_objext conftest$ac_exeext
10697 if { (eval echo "$as_me:10697: \"$ac_link\"") >&5
10698 (eval $ac_link) 2>&5
10700 echo "$as_me:10700: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try='test -s conftest$ac_exeext'
10703 { (eval echo "$as_me:10703: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10706 echo "$as_me:10706: \$? = $ac_status" >&5
10707 (exit $ac_status); }; }; then
10708 ac_cv_lib_dir_opendir=yes
10710 echo "$as_me: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10712 ac_cv_lib_dir_opendir=no
10714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10715 LIBS=$ac_check_lib_save_LIBS
10717 echo "$as_me:10717: result: $ac_cv_lib_dir_opendir" >&5
10718 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
10719 if test $ac_cv_lib_dir_opendir = yes; then
10724 echo "$as_me:10724: checking for opendir in -lx" >&5
10725 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
10726 if test "${ac_cv_lib_x_opendir+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 ac_check_lib_save_LIBS=$LIBS
10731 cat >conftest.$ac_ext <<_ACEOF
10732 #line 10732 "configure"
10733 #include "confdefs.h"
10735 /* Override any gcc2 internal prototype to avoid an error. */
10739 /* We use char because int might match the return type of a gcc2
10740 builtin and then its argument prototype would still apply. */
10750 rm -f conftest.$ac_objext conftest$ac_exeext
10751 if { (eval echo "$as_me:10751: \"$ac_link\"") >&5
10752 (eval $ac_link) 2>&5
10754 echo "$as_me:10754: \$? = $ac_status" >&5
10755 (exit $ac_status); } &&
10756 { ac_try='test -s conftest$ac_exeext'
10757 { (eval echo "$as_me:10757: \"$ac_try\"") >&5
10758 (eval $ac_try) 2>&5
10760 echo "$as_me:10760: \$? = $ac_status" >&5
10761 (exit $ac_status); }; }; then
10762 ac_cv_lib_x_opendir=yes
10764 echo "$as_me: failed program was:" >&5
10765 cat conftest.$ac_ext >&5
10766 ac_cv_lib_x_opendir=no
10768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10769 LIBS=$ac_check_lib_save_LIBS
10771 echo "$as_me:10771: result: $ac_cv_lib_x_opendir" >&5
10772 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
10773 if test $ac_cv_lib_x_opendir = yes; then
10779 echo "$as_me:10779: checking whether time.h and sys/time.h may both be included" >&5
10780 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10781 if test "${ac_cv_header_time+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 cat >conftest.$ac_ext <<_ACEOF
10785 #line 10785 "configure"
10786 #include "confdefs.h"
10787 #include <sys/types.h>
10788 #include <sys/time.h>
10794 if ((struct tm *) 0)
10800 rm -f conftest.$ac_objext
10801 if { (eval echo "$as_me:10801: \"$ac_compile\"") >&5
10802 (eval $ac_compile) 2>&5
10804 echo "$as_me:10804: \$? = $ac_status" >&5
10805 (exit $ac_status); } &&
10806 { ac_try='test -s conftest.$ac_objext'
10807 { (eval echo "$as_me:10807: \"$ac_try\"") >&5
10808 (eval $ac_try) 2>&5
10810 echo "$as_me:10810: \$? = $ac_status" >&5
10811 (exit $ac_status); }; }; then
10812 ac_cv_header_time=yes
10814 echo "$as_me: failed program was:" >&5
10815 cat conftest.$ac_ext >&5
10816 ac_cv_header_time=no
10818 rm -f conftest.$ac_objext conftest.$ac_ext
10820 echo "$as_me:10820: result: $ac_cv_header_time" >&5
10821 echo "${ECHO_T}$ac_cv_header_time" >&6
10822 if test $ac_cv_header_time = yes; then
10824 cat >>confdefs.h <<\EOF
10825 #define TIME_WITH_SYS_TIME 1
10830 echo "$as_me:10830: checking for regular-expression headers" >&5
10831 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
10832 if test "${cf_cv_regex+set}" = set; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10836 cat >conftest.$ac_ext <<_ACEOF
10837 #line 10837 "configure"
10838 #include "confdefs.h"
10839 #include <sys/types.h>
10846 int x = regcomp(p, "", 0);
10847 int y = regexec(p, "", 0, 0, 0);
10854 rm -f conftest.$ac_objext conftest$ac_exeext
10855 if { (eval echo "$as_me:10855: \"$ac_link\"") >&5
10856 (eval $ac_link) 2>&5
10858 echo "$as_me:10858: \$? = $ac_status" >&5
10859 (exit $ac_status); } &&
10860 { ac_try='test -s conftest$ac_exeext'
10861 { (eval echo "$as_me:10861: \"$ac_try\"") >&5
10862 (eval $ac_try) 2>&5
10864 echo "$as_me:10864: \$? = $ac_status" >&5
10865 (exit $ac_status); }; }; then
10866 cf_cv_regex="regex.h"
10868 echo "$as_me: failed program was:" >&5
10869 cat conftest.$ac_ext >&5
10871 cat >conftest.$ac_ext <<_ACEOF
10872 #line 10872 "configure"
10873 #include "confdefs.h"
10874 #include <regexp.h>
10879 char *p = compile("", "", "", 0);
10880 int x = step("", "");
10886 rm -f conftest.$ac_objext conftest$ac_exeext
10887 if { (eval echo "$as_me:10887: \"$ac_link\"") >&5
10888 (eval $ac_link) 2>&5
10890 echo "$as_me:10890: \$? = $ac_status" >&5
10891 (exit $ac_status); } &&
10892 { ac_try='test -s conftest$ac_exeext'
10893 { (eval echo "$as_me:10893: \"$ac_try\"") >&5
10894 (eval $ac_try) 2>&5
10896 echo "$as_me:10896: \$? = $ac_status" >&5
10897 (exit $ac_status); }; }; then
10898 cf_cv_regex="regexp.h"
10900 echo "$as_me: failed program was:" >&5
10901 cat conftest.$ac_ext >&5
10903 cf_save_LIBS="$LIBS"
10905 cat >conftest.$ac_ext <<_ACEOF
10906 #line 10906 "configure"
10907 #include "confdefs.h"
10908 #include <regexpr.h>
10913 char *p = compile("", "", "");
10914 int x = step("", "");
10920 rm -f conftest.$ac_objext conftest$ac_exeext
10921 if { (eval echo "$as_me:10921: \"$ac_link\"") >&5
10922 (eval $ac_link) 2>&5
10924 echo "$as_me:10924: \$? = $ac_status" >&5
10925 (exit $ac_status); } &&
10926 { ac_try='test -s conftest$ac_exeext'
10927 { (eval echo "$as_me:10927: \"$ac_try\"") >&5
10928 (eval $ac_try) 2>&5
10930 echo "$as_me:10930: \$? = $ac_status" >&5
10931 (exit $ac_status); }; }; then
10932 cf_cv_regex="regexpr.h"
10934 echo "$as_me: failed program was:" >&5
10935 cat conftest.$ac_ext >&5
10936 LIBS="$cf_save_LIBS"
10938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10946 echo "$as_me:10946: result: $cf_cv_regex" >&5
10947 echo "${ECHO_T}$cf_cv_regex" >&6
10948 case $cf_cv_regex in
10949 regex.h) cat >>confdefs.h <<\EOF
10950 #define HAVE_REGEX_H_FUNCS 1
10953 regexp.h) cat >>confdefs.h <<\EOF
10954 #define HAVE_REGEXP_H_FUNCS 1
10957 regexpr.h) cat >>confdefs.h <<\EOF
10958 #define HAVE_REGEXPR_H_FUNCS 1
10981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10982 echo "$as_me:10982: checking for $ac_header" >&5
10983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10987 cat >conftest.$ac_ext <<_ACEOF
10988 #line 10988 "configure"
10989 #include "confdefs.h"
10990 #include <$ac_header>
10992 if { (eval echo "$as_me:10992: \"$ac_cpp conftest.$ac_ext\"") >&5
10993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10995 egrep -v '^ *\+' conftest.er1 >conftest.err
10997 cat conftest.err >&5
10998 echo "$as_me:10998: \$? = $ac_status" >&5
10999 (exit $ac_status); } >/dev/null; then
11000 if test -s conftest.err; then
11001 ac_cpp_err=$ac_c_preproc_warn_flag
11008 if test -z "$ac_cpp_err"; then
11009 eval "$as_ac_Header=yes"
11011 echo "$as_me: failed program was:" >&5
11012 cat conftest.$ac_ext >&5
11013 eval "$as_ac_Header=no"
11015 rm -f conftest.err conftest.$ac_ext
11017 echo "$as_me:11017: result: `eval echo '${'$as_ac_Header'}'`" >&5
11018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11020 cat >>confdefs.h <<EOF
11021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11027 # check for ISC (this may also define _POSIX_SOURCE)
11028 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
11029 if test "$ISC" = yes ; then
11031 echo "$as_me:11031: checking for main in -lcposix" >&5
11032 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
11033 if test "${ac_cv_lib_cposix_main+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 ac_check_lib_save_LIBS=$LIBS
11037 LIBS="-lcposix $LIBS"
11038 cat >conftest.$ac_ext <<_ACEOF
11039 #line 11039 "configure"
11040 #include "confdefs.h"
11050 rm -f conftest.$ac_objext conftest$ac_exeext
11051 if { (eval echo "$as_me:11051: \"$ac_link\"") >&5
11052 (eval $ac_link) 2>&5
11054 echo "$as_me:11054: \$? = $ac_status" >&5
11055 (exit $ac_status); } &&
11056 { ac_try='test -s conftest$ac_exeext'
11057 { (eval echo "$as_me:11057: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11060 echo "$as_me:11060: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_lib_cposix_main=yes
11064 echo "$as_me: failed program was:" >&5
11065 cat conftest.$ac_ext >&5
11066 ac_cv_lib_cposix_main=no
11068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11069 LIBS=$ac_check_lib_save_LIBS
11071 echo "$as_me:11071: result: $ac_cv_lib_cposix_main" >&5
11072 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
11073 if test $ac_cv_lib_cposix_main = yes; then
11074 cat >>confdefs.h <<EOF
11075 #define HAVE_LIBCPOSIX 1
11078 LIBS="-lcposix $LIBS"
11082 echo "$as_me:11082: checking for bzero in -linet" >&5
11083 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
11084 if test "${ac_cv_lib_inet_bzero+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 ac_check_lib_save_LIBS=$LIBS
11088 LIBS="-linet $LIBS"
11089 cat >conftest.$ac_ext <<_ACEOF
11090 #line 11090 "configure"
11091 #include "confdefs.h"
11093 /* Override any gcc2 internal prototype to avoid an error. */
11097 /* We use char because int might match the return type of a gcc2
11098 builtin and then its argument prototype would still apply. */
11108 rm -f conftest.$ac_objext conftest$ac_exeext
11109 if { (eval echo "$as_me:11109: \"$ac_link\"") >&5
11110 (eval $ac_link) 2>&5
11112 echo "$as_me:11112: \$? = $ac_status" >&5
11113 (exit $ac_status); } &&
11114 { ac_try='test -s conftest$ac_exeext'
11115 { (eval echo "$as_me:11115: \"$ac_try\"") >&5
11116 (eval $ac_try) 2>&5
11118 echo "$as_me:11118: \$? = $ac_status" >&5
11119 (exit $ac_status); }; }; then
11120 ac_cv_lib_inet_bzero=yes
11122 echo "$as_me: failed program was:" >&5
11123 cat conftest.$ac_ext >&5
11124 ac_cv_lib_inet_bzero=no
11126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11127 LIBS=$ac_check_lib_save_LIBS
11129 echo "$as_me:11129: result: $ac_cv_lib_inet_bzero" >&5
11130 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
11131 if test $ac_cv_lib_inet_bzero = yes; then
11132 LIBS="$LIBS -linet"
11136 echo "$as_me:11136: checking if sys/time.h works with sys/select.h" >&5
11137 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
11138 if test "${cf_cv_sys_time_select+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 cat >conftest.$ac_ext <<_ACEOF
11143 #line 11143 "configure"
11144 #include "confdefs.h"
11146 #include <sys/types.h>
11147 #ifdef HAVE_SYS_TIME_H
11148 #include <sys/time.h>
11150 #ifdef HAVE_SYS_SELECT_H
11151 #include <sys/select.h>
11162 rm -f conftest.$ac_objext
11163 if { (eval echo "$as_me:11163: \"$ac_compile\"") >&5
11164 (eval $ac_compile) 2>&5
11166 echo "$as_me:11166: \$? = $ac_status" >&5
11167 (exit $ac_status); } &&
11168 { ac_try='test -s conftest.$ac_objext'
11169 { (eval echo "$as_me:11169: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11172 echo "$as_me:11172: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }; then
11174 cf_cv_sys_time_select=yes
11176 echo "$as_me: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11178 cf_cv_sys_time_select=no
11180 rm -f conftest.$ac_objext conftest.$ac_ext
11184 echo "$as_me:11184: result: $cf_cv_sys_time_select" >&5
11185 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
11186 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
11187 #define HAVE_SYS_TIME_SELECT 1
11190 ### checks for compiler characteristics
11192 ac_cpp='$CPP $CPPFLAGS'
11193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11196 ac_main_return=return
11198 echo "$as_me:11198: checking for $CC option to accept ANSI C" >&5
11199 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11200 if test "${ac_cv_prog_cc_stdc+set}" = set; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 ac_cv_prog_cc_stdc=no
11205 cat >conftest.$ac_ext <<_ACEOF
11206 #line 11206 "configure"
11207 #include "confdefs.h"
11208 #include <stdarg.h>
11210 #include <sys/types.h>
11211 #include <sys/stat.h>
11212 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11213 struct buf { int x; };
11214 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11215 static char *e (p, i)
11221 static char *f (char * (*g) (char **, int), char **p, ...)
11226 s = g (p, va_arg (v,int));
11230 int test (int i, double x);
11231 struct s1 {int (*f) (int a);};
11232 struct s2 {int (*f) (double a);};
11233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11239 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11244 # Don't try gcc -ansi; that turns off useful extensions and
11245 # breaks some systems' header files.
11246 # AIX -qlanglvl=ansi
11247 # Ultrix and OSF/1 -std1
11248 # HP-UX 10.20 and later -Ae
11249 # HP-UX older versions -Aa -D_HPUX_SOURCE
11250 # SVR4 -Xc -D__EXTENSIONS__
11251 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11253 CC="$ac_save_CC $ac_arg"
11254 rm -f conftest.$ac_objext
11255 if { (eval echo "$as_me:11255: \"$ac_compile\"") >&5
11256 (eval $ac_compile) 2>&5
11258 echo "$as_me:11258: \$? = $ac_status" >&5
11259 (exit $ac_status); } &&
11260 { ac_try='test -s conftest.$ac_objext'
11261 { (eval echo "$as_me:11261: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11264 echo "$as_me:11264: \$? = $ac_status" >&5
11265 (exit $ac_status); }; }; then
11266 ac_cv_prog_cc_stdc=$ac_arg
11269 echo "$as_me: failed program was:" >&5
11270 cat conftest.$ac_ext >&5
11272 rm -f conftest.$ac_objext
11274 rm -f conftest.$ac_ext conftest.$ac_objext
11279 case "x$ac_cv_prog_cc_stdc" in
11281 echo "$as_me:11281: result: none needed" >&5
11282 echo "${ECHO_T}none needed" >&6 ;;
11284 echo "$as_me:11284: result: $ac_cv_prog_cc_stdc" >&5
11285 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11286 CC="$CC $ac_cv_prog_cc_stdc" ;;
11289 echo "$as_me:11289: checking for an ANSI C-conforming const" >&5
11290 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11291 if test "${ac_cv_c_const+set}" = set; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11294 cat >conftest.$ac_ext <<_ACEOF
11295 #line 11295 "configure"
11296 #include "confdefs.h"
11301 /* FIXME: Include the comments suggested by Paul. */
11302 #ifndef __cplusplus
11303 /* Ultrix mips cc rejects this. */
11304 typedef int charset[2];
11306 /* SunOS 4.1.1 cc rejects this. */
11307 char const *const *ccp;
11309 /* NEC SVR4.0.2 mips cc rejects this. */
11310 struct point {int x, y;};
11311 static struct point const zero = {0,0};
11312 /* AIX XL C 1.02.0.0 rejects this.
11313 It does not let you subtract one const X* pointer from another in
11314 an arm of an if-expression whose if-part is not a constant
11316 const char *g = "string";
11317 ccp = &g + (g ? g-g : 0);
11318 /* HPUX 7.0 cc rejects these. */
11321 ccp = (char const *const *) p;
11322 { /* SCO 3.2v4 cc rejects this. */
11324 char const *s = 0 ? (char *) 0 : (char const *) 0;
11328 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11329 int x[] = {25, 17};
11330 const int *foo = &x[0];
11333 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11334 typedef const int *iptr;
11338 { /* AIX XL C 1.02.0.0 rejects this saying
11339 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11340 struct s { int j; const int *ap[3]; };
11341 struct s *b; b->j = 5;
11343 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11344 const int foo = 10;
11352 rm -f conftest.$ac_objext
11353 if { (eval echo "$as_me:11353: \"$ac_compile\"") >&5
11354 (eval $ac_compile) 2>&5
11356 echo "$as_me:11356: \$? = $ac_status" >&5
11357 (exit $ac_status); } &&
11358 { ac_try='test -s conftest.$ac_objext'
11359 { (eval echo "$as_me:11359: \"$ac_try\"") >&5
11360 (eval $ac_try) 2>&5
11362 echo "$as_me:11362: \$? = $ac_status" >&5
11363 (exit $ac_status); }; }; then
11366 echo "$as_me: failed program was:" >&5
11367 cat conftest.$ac_ext >&5
11370 rm -f conftest.$ac_objext conftest.$ac_ext
11372 echo "$as_me:11372: result: $ac_cv_c_const" >&5
11373 echo "${ECHO_T}$ac_cv_c_const" >&6
11374 if test $ac_cv_c_const = no; then
11376 cat >>confdefs.h <<\EOF
11382 echo "$as_me:11382: checking for inline" >&5
11383 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11384 if test "${ac_cv_c_inline+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 for ac_kw in inline __inline__ __inline; do
11389 cat >conftest.$ac_ext <<_ACEOF
11390 #line 11390 "configure"
11391 #include "confdefs.h"
11392 #ifndef __cplusplus
11393 static $ac_kw int static_foo () {return 0; }
11394 $ac_kw int foo () {return 0; }
11398 rm -f conftest.$ac_objext
11399 if { (eval echo "$as_me:11399: \"$ac_compile\"") >&5
11400 (eval $ac_compile) 2>&5
11402 echo "$as_me:11402: \$? = $ac_status" >&5
11403 (exit $ac_status); } &&
11404 { ac_try='test -s conftest.$ac_objext'
11405 { (eval echo "$as_me:11405: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11408 echo "$as_me:11408: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 ac_cv_c_inline=$ac_kw; break
11412 echo "$as_me: failed program was:" >&5
11413 cat conftest.$ac_ext >&5
11415 rm -f conftest.$ac_objext conftest.$ac_ext
11419 echo "$as_me:11419: result: $ac_cv_c_inline" >&5
11420 echo "${ECHO_T}$ac_cv_c_inline" >&6
11421 case $ac_cv_c_inline in
11424 cat >>confdefs.h <<\EOF
11428 *) cat >>confdefs.h <<EOF
11429 #define inline $ac_cv_c_inline
11435 if test "$ac_cv_c_inline" != no ; then
11436 cat >>confdefs.h <<\EOF
11437 #define CC_HAS_INLINE_FUNCS 1
11440 NCURSES_INLINE=inline
11443 if test $NCURSES_CHTYPE = auto ; then
11445 echo "$as_me:11445: checking for type of chtype" >&5
11446 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
11447 if test "${cf_cv_typeof_chtype+set}" = set; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 if test "$cross_compiling" = yes; then
11452 cf_cv_typeof_chtype=long
11454 cat >conftest.$ac_ext <<_ACEOF
11455 #line 11455 "configure"
11456 #include "confdefs.h"
11458 #define WANT_BITS 31
11462 FILE *fp = fopen("cf_test.out", "w");
11464 char *result = "long";
11465 if (sizeof(unsigned long) > sizeof(unsigned int)) {
11468 for (n = 0; n < WANT_BITS; n++) {
11471 if (y != 1 || x == 0) {
11477 * If x is nonzero, an int is big enough for the bits
11480 result = (x != 0) ? "int" : "long";
11485 ${cf_cv_main_return:-return}(0);
11489 rm -f conftest$ac_exeext
11490 if { (eval echo "$as_me:11490: \"$ac_link\"") >&5
11491 (eval $ac_link) 2>&5
11493 echo "$as_me:11493: \$? = $ac_status" >&5
11494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11495 { (eval echo "$as_me:11495: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11498 echo "$as_me:11498: \$? = $ac_status" >&5
11499 (exit $ac_status); }; }; then
11500 cf_cv_typeof_chtype=`cat cf_test.out`
11502 echo "$as_me: program exited with status $ac_status" >&5
11503 echo "$as_me: failed program was:" >&5
11504 cat conftest.$ac_ext >&5
11505 cf_cv_typeof_chtype=long
11507 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11513 echo "$as_me:11513: result: $cf_cv_typeof_chtype" >&5
11514 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
11516 cat >>confdefs.h <<EOF
11517 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
11521 cf_cv_typeof_chtype=$NCURSES_CHTYPE
11523 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
11525 echo "$as_me:11525: checking if unsigned literals are legal" >&5
11526 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
11527 if test "${cf_cv_unsigned_literals+set}" = set; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11531 cat >conftest.$ac_ext <<_ACEOF
11532 #line 11532 "configure"
11533 #include "confdefs.h"
11538 long x = 1L + 1UL + 1U + 1
11543 rm -f conftest.$ac_objext
11544 if { (eval echo "$as_me:11544: \"$ac_compile\"") >&5
11545 (eval $ac_compile) 2>&5
11547 echo "$as_me:11547: \$? = $ac_status" >&5
11548 (exit $ac_status); } &&
11549 { ac_try='test -s conftest.$ac_objext'
11550 { (eval echo "$as_me:11550: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11553 echo "$as_me:11553: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 cf_cv_unsigned_literals=yes
11557 echo "$as_me: failed program was:" >&5
11558 cat conftest.$ac_ext >&5
11559 cf_cv_unsigned_literals=no
11561 rm -f conftest.$ac_objext conftest.$ac_ext
11565 echo "$as_me:11565: result: $cf_cv_unsigned_literals" >&5
11566 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
11569 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
11570 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
11572 if test $NCURSES_MMASK_T = auto ; then
11573 cf_cv_typeof_mmask_t=long
11575 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
11577 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
11579 ### Checks for external-data
11581 echo "$as_me:11581: checking if external errno is declared" >&5
11582 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
11583 if test "${cf_cv_dcl_errno+set}" = set; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 cat >conftest.$ac_ext <<_ACEOF
11588 #line 11588 "configure"
11589 #include "confdefs.h"
11591 #ifdef HAVE_STDLIB_H
11592 #include <stdlib.h>
11595 #include <sys/types.h>
11600 long x = (long) errno
11605 rm -f conftest.$ac_objext
11606 if { (eval echo "$as_me:11606: \"$ac_compile\"") >&5
11607 (eval $ac_compile) 2>&5
11609 echo "$as_me:11609: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -s conftest.$ac_objext'
11612 { (eval echo "$as_me:11612: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11615 echo "$as_me:11615: \$? = $ac_status" >&5
11616 (exit $ac_status); }; }; then
11617 cf_cv_dcl_errno=yes
11619 echo "$as_me: failed program was:" >&5
11620 cat conftest.$ac_ext >&5
11623 rm -f conftest.$ac_objext conftest.$ac_ext
11626 echo "$as_me:11626: result: $cf_cv_dcl_errno" >&5
11627 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
11629 if test "$cf_cv_dcl_errno" = no ; then
11631 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11633 cat >>confdefs.h <<EOF
11634 #define $cf_result 1
11639 # It's possible (for near-UNIX clones) that the data doesn't exist
11641 echo "$as_me:11641: checking if external errno exists" >&5
11642 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
11643 if test "${cf_cv_have_errno+set}" = set; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11647 cat >conftest.$ac_ext <<_ACEOF
11648 #line 11648 "configure"
11649 #include "confdefs.h"
11662 rm -f conftest.$ac_objext conftest$ac_exeext
11663 if { (eval echo "$as_me:11663: \"$ac_link\"") >&5
11664 (eval $ac_link) 2>&5
11666 echo "$as_me:11666: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try='test -s conftest$ac_exeext'
11669 { (eval echo "$as_me:11669: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11672 echo "$as_me:11672: \$? = $ac_status" >&5
11673 (exit $ac_status); }; }; then
11674 cf_cv_have_errno=yes
11676 echo "$as_me: failed program was:" >&5
11677 cat conftest.$ac_ext >&5
11678 cf_cv_have_errno=no
11680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11683 echo "$as_me:11683: result: $cf_cv_have_errno" >&5
11684 echo "${ECHO_T}$cf_cv_have_errno" >&6
11686 if test "$cf_cv_have_errno" = yes ; then
11688 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11690 cat >>confdefs.h <<EOF
11691 #define $cf_result 1
11696 echo "$as_me:11696: checking if data-only library module links" >&5
11697 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
11698 if test "${cf_cv_link_dataonly+set}" = set; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 cat >conftest.$ac_ext <<EOF
11704 #line 11704 "configure"
11705 int testdata[3] = { 123, 456, 789 };
11707 if { (eval echo "$as_me:11707: \"$ac_compile\"") >&5
11708 (eval $ac_compile) 2>&5
11710 echo "$as_me:11710: \$? = $ac_status" >&5
11711 (exit $ac_status); } ; then
11712 mv conftest.o data.o && \
11713 ( $AR $AR_OPTS conftest.a data.o ) 2>&5 1>/dev/null
11715 rm -f conftest.$ac_ext data.o
11716 cat >conftest.$ac_ext <<EOF
11717 #line 11717 "configure"
11721 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
11723 extern int testdata[3];
11724 return testdata[0] == 123
11725 && testdata[1] == 456
11726 && testdata[2] == 789;
11730 if { (eval echo "$as_me:11730: \"$ac_compile\"") >&5
11731 (eval $ac_compile) 2>&5
11733 echo "$as_me:11733: \$? = $ac_status" >&5
11734 (exit $ac_status); }; then
11735 mv conftest.o func.o && \
11736 ( $AR $AR_OPTS conftest.a func.o ) 2>&5 1>/dev/null
11738 rm -f conftest.$ac_ext func.o
11739 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
11740 cf_saveLIBS="$LIBS"
11741 LIBS="conftest.a $LIBS"
11742 if test "$cross_compiling" = yes; then
11743 cf_cv_link_dataonly=unknown
11745 cat >conftest.$ac_ext <<_ACEOF
11746 #line 11746 "configure"
11747 #include "confdefs.h"
11751 extern int testfunc();
11752 ${cf_cv_main_return:-return} (!testfunc());
11756 rm -f conftest$ac_exeext
11757 if { (eval echo "$as_me:11757: \"$ac_link\"") >&5
11758 (eval $ac_link) 2>&5
11760 echo "$as_me:11760: \$? = $ac_status" >&5
11761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11762 { (eval echo "$as_me:11762: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11765 echo "$as_me:11765: \$? = $ac_status" >&5
11766 (exit $ac_status); }; }; then
11767 cf_cv_link_dataonly=yes
11769 echo "$as_me: program exited with status $ac_status" >&5
11770 echo "$as_me: failed program was:" >&5
11771 cat conftest.$ac_ext >&5
11772 cf_cv_link_dataonly=no
11774 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11776 LIBS="$cf_saveLIBS"
11780 echo "$as_me:11780: result: $cf_cv_link_dataonly" >&5
11781 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
11783 if test "$cf_cv_link_dataonly" = no ; then
11784 cat >>confdefs.h <<\EOF
11785 #define BROKEN_LINKER 1
11791 ### Checks for library functions.
11814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11815 echo "$as_me:11815: checking for $ac_func" >&5
11816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11817 if eval "test \"\${$as_ac_var+set}\" = set"; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11820 cat >conftest.$ac_ext <<_ACEOF
11821 #line 11821 "configure"
11822 #include "confdefs.h"
11823 /* System header to define __stub macros and hopefully few prototypes,
11824 which can conflict with char $ac_func (); below. */
11825 #include <assert.h>
11826 /* Override any gcc2 internal prototype to avoid an error. */
11830 /* We use char because int might match the return type of a gcc2
11831 builtin and then its argument prototype would still apply. */
11838 /* The GNU C library defines this for functions which it implements
11839 to always fail with ENOSYS. Some functions are actually named
11840 something starting with __ and the normal name is an alias. */
11841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11851 rm -f conftest.$ac_objext conftest$ac_exeext
11852 if { (eval echo "$as_me:11852: \"$ac_link\"") >&5
11853 (eval $ac_link) 2>&5
11855 echo "$as_me:11855: \$? = $ac_status" >&5
11856 (exit $ac_status); } &&
11857 { ac_try='test -s conftest$ac_exeext'
11858 { (eval echo "$as_me:11858: \"$ac_try\"") >&5
11859 (eval $ac_try) 2>&5
11861 echo "$as_me:11861: \$? = $ac_status" >&5
11862 (exit $ac_status); }; }; then
11863 eval "$as_ac_var=yes"
11865 echo "$as_me: failed program was:" >&5
11866 cat conftest.$ac_ext >&5
11867 eval "$as_ac_var=no"
11869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11871 echo "$as_me:11871: result: `eval echo '${'$as_ac_var'}'`" >&5
11872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11873 if test `eval echo '${'$as_ac_var'}'` = yes; then
11874 cat >>confdefs.h <<EOF
11875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11881 if test "$with_getcap" = "yes" ; then
11883 echo "$as_me:11883: checking for terminal-capability database functions" >&5
11884 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
11885 if test "${cf_cv_cgetent+set}" = set; then
11886 echo $ECHO_N "(cached) $ECHO_C" >&6
11889 cat >conftest.$ac_ext <<_ACEOF
11890 #line 11890 "configure"
11891 #include "confdefs.h"
11893 #include <stdlib.h>
11900 char *db_array = temp;
11901 cgetent(&buf, /* int *, */ &db_array, "vt100");
11902 cgetcap(buf, "tc", '=');
11903 cgetmatch(buf, "tc");
11909 rm -f conftest.$ac_objext conftest$ac_exeext
11910 if { (eval echo "$as_me:11910: \"$ac_link\"") >&5
11911 (eval $ac_link) 2>&5
11913 echo "$as_me:11913: \$? = $ac_status" >&5
11914 (exit $ac_status); } &&
11915 { ac_try='test -s conftest$ac_exeext'
11916 { (eval echo "$as_me:11916: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11919 echo "$as_me:11919: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
11923 echo "$as_me: failed program was:" >&5
11924 cat conftest.$ac_ext >&5
11927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11931 echo "$as_me:11931: result: $cf_cv_cgetent" >&5
11932 echo "${ECHO_T}$cf_cv_cgetent" >&6
11933 test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
11934 #define HAVE_BSD_CGETENT 1
11939 echo "$as_me:11939: checking for isascii" >&5
11940 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
11941 if test "${cf_cv_have_isascii+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 cat >conftest.$ac_ext <<_ACEOF
11946 #line 11946 "configure"
11947 #include "confdefs.h"
11952 int x = isascii(' ')
11957 rm -f conftest.$ac_objext conftest$ac_exeext
11958 if { (eval echo "$as_me:11958: \"$ac_link\"") >&5
11959 (eval $ac_link) 2>&5
11961 echo "$as_me:11961: \$? = $ac_status" >&5
11962 (exit $ac_status); } &&
11963 { ac_try='test -s conftest$ac_exeext'
11964 { (eval echo "$as_me:11964: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11967 echo "$as_me:11967: \$? = $ac_status" >&5
11968 (exit $ac_status); }; }; then
11969 cf_cv_have_isascii=yes
11971 echo "$as_me: failed program was:" >&5
11972 cat conftest.$ac_ext >&5
11973 cf_cv_have_isascii=no
11975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11978 echo "$as_me:11978: result: $cf_cv_have_isascii" >&5
11979 echo "${ECHO_T}$cf_cv_have_isascii" >&6
11980 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
11981 #define HAVE_ISASCII 1
11984 if test "$ac_cv_func_sigaction" = yes; then
11985 echo "$as_me:11985: checking whether sigaction needs _POSIX_SOURCE" >&5
11986 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
11987 cat >conftest.$ac_ext <<_ACEOF
11988 #line 11988 "configure"
11989 #include "confdefs.h"
11991 #include <sys/types.h>
11992 #include <signal.h>
11996 struct sigaction act
12001 rm -f conftest.$ac_objext
12002 if { (eval echo "$as_me:12002: \"$ac_compile\"") >&5
12003 (eval $ac_compile) 2>&5
12005 echo "$as_me:12005: \$? = $ac_status" >&5
12006 (exit $ac_status); } &&
12007 { ac_try='test -s conftest.$ac_objext'
12008 { (eval echo "$as_me:12008: \"$ac_try\"") >&5
12009 (eval $ac_try) 2>&5
12011 echo "$as_me:12011: \$? = $ac_status" >&5
12012 (exit $ac_status); }; }; then
12015 echo "$as_me: failed program was:" >&5
12016 cat conftest.$ac_ext >&5
12018 cat >conftest.$ac_ext <<_ACEOF
12019 #line 12019 "configure"
12020 #include "confdefs.h"
12022 #define _POSIX_SOURCE
12023 #include <sys/types.h>
12024 #include <signal.h>
12028 struct sigaction act
12033 rm -f conftest.$ac_objext
12034 if { (eval echo "$as_me:12034: \"$ac_compile\"") >&5
12035 (eval $ac_compile) 2>&5
12037 echo "$as_me:12037: \$? = $ac_status" >&5
12038 (exit $ac_status); } &&
12039 { ac_try='test -s conftest.$ac_objext'
12040 { (eval echo "$as_me:12040: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12043 echo "$as_me:12043: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12046 cat >>confdefs.h <<\EOF
12047 #define SVR4_ACTION 1
12051 echo "$as_me: failed program was:" >&5
12052 cat conftest.$ac_ext >&5
12055 rm -f conftest.$ac_objext conftest.$ac_ext
12057 rm -f conftest.$ac_objext conftest.$ac_ext
12058 echo "$as_me:12058: result: $sigact_bad" >&5
12059 echo "${ECHO_T}$sigact_bad" >&6
12062 echo "$as_me:12062: checking if nanosleep really works" >&5
12063 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
12064 if test "${cf_cv_func_nanosleep+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12068 if test "$cross_compiling" = yes; then
12069 cf_cv_func_nanosleep=unknown
12071 cat >conftest.$ac_ext <<_ACEOF
12072 #line 12072 "configure"
12073 #include "confdefs.h"
12079 #ifdef HAVE_SYS_TIME_H
12080 #include <sys/time.h>
12084 struct timespec ts1, ts2;
12087 ts1.tv_nsec = 750000000;
12091 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
12092 ${cf_cv_main_return:-return}(code != 0);
12096 rm -f conftest$ac_exeext
12097 if { (eval echo "$as_me:12097: \"$ac_link\"") >&5
12098 (eval $ac_link) 2>&5
12100 echo "$as_me:12100: \$? = $ac_status" >&5
12101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12102 { (eval echo "$as_me:12102: \"$ac_try\"") >&5
12103 (eval $ac_try) 2>&5
12105 echo "$as_me:12105: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
12107 cf_cv_func_nanosleep=yes
12109 echo "$as_me: program exited with status $ac_status" >&5
12110 echo "$as_me: failed program was:" >&5
12111 cat conftest.$ac_ext >&5
12112 cf_cv_func_nanosleep=no
12114 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12117 echo "$as_me:12117: result: $cf_cv_func_nanosleep" >&5
12118 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
12120 test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
12121 #define HAVE_NANOSLEEP 1
12130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12131 echo "$as_me:12131: checking for $ac_header" >&5
12132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12136 cat >conftest.$ac_ext <<_ACEOF
12137 #line 12137 "configure"
12138 #include "confdefs.h"
12139 #include <$ac_header>
12141 if { (eval echo "$as_me:12141: \"$ac_cpp conftest.$ac_ext\"") >&5
12142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12144 egrep -v '^ *\+' conftest.er1 >conftest.err
12146 cat conftest.err >&5
12147 echo "$as_me:12147: \$? = $ac_status" >&5
12148 (exit $ac_status); } >/dev/null; then
12149 if test -s conftest.err; then
12150 ac_cpp_err=$ac_c_preproc_warn_flag
12157 if test -z "$ac_cpp_err"; then
12158 eval "$as_ac_Header=yes"
12160 echo "$as_me: failed program was:" >&5
12161 cat conftest.$ac_ext >&5
12162 eval "$as_ac_Header=no"
12164 rm -f conftest.err conftest.$ac_ext
12166 echo "$as_me:12166: result: `eval echo '${'$as_ac_Header'}'`" >&5
12167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12169 cat >>confdefs.h <<EOF
12170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12176 if test "$ISC" = yes ; then
12178 for ac_header in sys/termio.h
12180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12181 echo "$as_me:12181: checking for $ac_header" >&5
12182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12186 cat >conftest.$ac_ext <<_ACEOF
12187 #line 12187 "configure"
12188 #include "confdefs.h"
12189 #include <$ac_header>
12191 if { (eval echo "$as_me:12191: \"$ac_cpp conftest.$ac_ext\"") >&5
12192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12194 egrep -v '^ *\+' conftest.er1 >conftest.err
12196 cat conftest.err >&5
12197 echo "$as_me:12197: \$? = $ac_status" >&5
12198 (exit $ac_status); } >/dev/null; then
12199 if test -s conftest.err; then
12200 ac_cpp_err=$ac_c_preproc_warn_flag
12207 if test -z "$ac_cpp_err"; then
12208 eval "$as_ac_Header=yes"
12210 echo "$as_me: failed program was:" >&5
12211 cat conftest.$ac_ext >&5
12212 eval "$as_ac_Header=no"
12214 rm -f conftest.err conftest.$ac_ext
12216 echo "$as_me:12216: result: `eval echo '${'$as_ac_Header'}'`" >&5
12217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12219 cat >>confdefs.h <<EOF
12220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12227 if test "$ac_cv_header_termios_h" = yes ; then
12228 case "$CFLAGS $CPPFLAGS" in
12230 termios_bad=dunno ;;
12231 *) termios_bad=maybe ;;
12233 if test "$termios_bad" = maybe ; then
12234 echo "$as_me:12234: checking whether termios.h needs _POSIX_SOURCE" >&5
12235 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
12236 cat >conftest.$ac_ext <<_ACEOF
12237 #line 12237 "configure"
12238 #include "confdefs.h"
12239 #include <termios.h>
12243 struct termios foo; int x = foo.c_iflag
12248 rm -f conftest.$ac_objext
12249 if { (eval echo "$as_me:12249: \"$ac_compile\"") >&5
12250 (eval $ac_compile) 2>&5
12252 echo "$as_me:12252: \$? = $ac_status" >&5
12253 (exit $ac_status); } &&
12254 { ac_try='test -s conftest.$ac_objext'
12255 { (eval echo "$as_me:12255: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12258 echo "$as_me:12258: \$? = $ac_status" >&5
12259 (exit $ac_status); }; }; then
12262 echo "$as_me: failed program was:" >&5
12263 cat conftest.$ac_ext >&5
12265 cat >conftest.$ac_ext <<_ACEOF
12266 #line 12266 "configure"
12267 #include "confdefs.h"
12269 #define _POSIX_SOURCE
12270 #include <termios.h>
12274 struct termios foo; int x = foo.c_iflag
12279 rm -f conftest.$ac_objext
12280 if { (eval echo "$as_me:12280: \"$ac_compile\"") >&5
12281 (eval $ac_compile) 2>&5
12283 echo "$as_me:12283: \$? = $ac_status" >&5
12284 (exit $ac_status); } &&
12285 { ac_try='test -s conftest.$ac_objext'
12286 { (eval echo "$as_me:12286: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12289 echo "$as_me:12289: \$? = $ac_status" >&5
12290 (exit $ac_status); }; }; then
12291 termios_bad=unknown
12293 echo "$as_me: failed program was:" >&5
12294 cat conftest.$ac_ext >&5
12295 termios_bad=yes cat >>confdefs.h <<\EOF
12296 #define SVR4_TERMIO 1
12300 rm -f conftest.$ac_objext conftest.$ac_ext
12303 rm -f conftest.$ac_objext conftest.$ac_ext
12304 echo "$as_me:12304: result: $termios_bad" >&5
12305 echo "${ECHO_T}$termios_bad" >&6
12309 echo "$as_me:12309: checking for tcgetattr" >&5
12310 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
12311 if test "${cf_cv_have_tcgetattr+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 cat >conftest.$ac_ext <<_ACEOF
12316 #line 12316 "configure"
12317 #include "confdefs.h"
12319 #include <sys/types.h>
12320 #ifdef HAVE_UNISTD_H
12321 #include <unistd.h>
12323 #ifdef HAVE_TERMIOS_H
12324 #include <termios.h>
12325 #define TTY struct termios
12327 #ifdef HAVE_TERMIO_H
12328 #include <termio.h>
12329 #define TTY struct termio
12338 tcgetattr(1, &foo);
12343 rm -f conftest.$ac_objext conftest$ac_exeext
12344 if { (eval echo "$as_me:12344: \"$ac_link\"") >&5
12345 (eval $ac_link) 2>&5
12347 echo "$as_me:12347: \$? = $ac_status" >&5
12348 (exit $ac_status); } &&
12349 { ac_try='test -s conftest$ac_exeext'
12350 { (eval echo "$as_me:12350: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12353 echo "$as_me:12353: \$? = $ac_status" >&5
12354 (exit $ac_status); }; }; then
12355 cf_cv_have_tcgetattr=yes
12357 echo "$as_me: failed program was:" >&5
12358 cat conftest.$ac_ext >&5
12359 cf_cv_have_tcgetattr=no
12361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12363 echo "$as_me:12363: result: $cf_cv_have_tcgetattr" >&5
12364 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
12365 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
12366 #define HAVE_TCGETATTR 1
12369 echo "$as_me:12369: checking for vsscanf function or workaround" >&5
12370 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
12371 if test "${cf_cv_func_vsscanf+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12375 cat >conftest.$ac_ext <<_ACEOF
12376 #line 12376 "configure"
12377 #include "confdefs.h"
12379 #include <stdarg.h>
12386 vsscanf("from", "%d", ap)
12391 rm -f conftest.$ac_objext conftest$ac_exeext
12392 if { (eval echo "$as_me:12392: \"$ac_link\"") >&5
12393 (eval $ac_link) 2>&5
12395 echo "$as_me:12395: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
12397 { ac_try='test -s conftest$ac_exeext'
12398 { (eval echo "$as_me:12398: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12401 echo "$as_me:12401: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 cf_cv_func_vsscanf=vsscanf
12405 echo "$as_me: failed program was:" >&5
12406 cat conftest.$ac_ext >&5
12408 cat >conftest.$ac_ext <<_ACEOF
12409 #line 12409 "configure"
12410 #include "confdefs.h"
12412 #include <stdarg.h>
12419 char *str = "from";
12421 strbuf._flag = _IOREAD;
12422 strbuf._ptr = strbuf._base = (unsigned char *) str;
12423 strbuf._cnt = strlen(str);
12424 strbuf._file = _NFILE;
12425 return (vfscanf(&strbuf, "%d", ap))
12430 rm -f conftest.$ac_objext conftest$ac_exeext
12431 if { (eval echo "$as_me:12431: \"$ac_link\"") >&5
12432 (eval $ac_link) 2>&5
12434 echo "$as_me:12434: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -s conftest$ac_exeext'
12437 { (eval echo "$as_me:12437: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12440 echo "$as_me:12440: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 cf_cv_func_vsscanf=vfscanf
12444 echo "$as_me: failed program was:" >&5
12445 cat conftest.$ac_ext >&5
12447 cat >conftest.$ac_ext <<_ACEOF
12448 #line 12448 "configure"
12449 #include "confdefs.h"
12451 #include <stdarg.h>
12458 char *str = "from";
12460 strbuf._flag = _IOREAD;
12461 strbuf._ptr = strbuf._base = (unsigned char *) str;
12462 strbuf._cnt = strlen(str);
12463 strbuf._file = _NFILE;
12464 return (_doscan(&strbuf, "%d", ap))
12469 rm -f conftest.$ac_objext conftest$ac_exeext
12470 if { (eval echo "$as_me:12470: \"$ac_link\"") >&5
12471 (eval $ac_link) 2>&5
12473 echo "$as_me:12473: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try='test -s conftest$ac_exeext'
12476 { (eval echo "$as_me:12476: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12479 echo "$as_me:12479: \$? = $ac_status" >&5
12480 (exit $ac_status); }; }; then
12481 cf_cv_func_vsscanf=_doscan
12483 echo "$as_me: failed program was:" >&5
12484 cat conftest.$ac_ext >&5
12486 cf_cv_func_vsscanf=no
12488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12494 echo "$as_me:12494: result: $cf_cv_func_vsscanf" >&5
12495 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
12497 case $cf_cv_func_vsscanf in #(vi
12498 vsscanf) cat >>confdefs.h <<\EOF
12499 #define HAVE_VSSCANF 1
12502 vfscanf) cat >>confdefs.h <<\EOF
12503 #define HAVE_VFSCANF 1
12506 _doscan) cat >>confdefs.h <<\EOF
12507 #define HAVE__DOSCAN 1
12512 echo "$as_me:12512: checking for working mkstemp" >&5
12513 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
12514 if test "${cf_cv_func_mkstemp+set}" = set; then
12515 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 if test "$cross_compiling" = yes; then
12520 echo "$as_me:12520: checking for mkstemp" >&5
12521 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
12522 if test "${ac_cv_func_mkstemp+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 cat >conftest.$ac_ext <<_ACEOF
12526 #line 12526 "configure"
12527 #include "confdefs.h"
12528 /* System header to define __stub macros and hopefully few prototypes,
12529 which can conflict with char mkstemp (); below. */
12530 #include <assert.h>
12531 /* Override any gcc2 internal prototype to avoid an error. */
12535 /* We use char because int might match the return type of a gcc2
12536 builtin and then its argument prototype would still apply. */
12543 /* The GNU C library defines this for functions which it implements
12544 to always fail with ENOSYS. Some functions are actually named
12545 something starting with __ and the normal name is an alias. */
12546 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
12556 rm -f conftest.$ac_objext conftest$ac_exeext
12557 if { (eval echo "$as_me:12557: \"$ac_link\"") >&5
12558 (eval $ac_link) 2>&5
12560 echo "$as_me:12560: \$? = $ac_status" >&5
12561 (exit $ac_status); } &&
12562 { ac_try='test -s conftest$ac_exeext'
12563 { (eval echo "$as_me:12563: \"$ac_try\"") >&5
12564 (eval $ac_try) 2>&5
12566 echo "$as_me:12566: \$? = $ac_status" >&5
12567 (exit $ac_status); }; }; then
12568 ac_cv_func_mkstemp=yes
12570 echo "$as_me: failed program was:" >&5
12571 cat conftest.$ac_ext >&5
12572 ac_cv_func_mkstemp=no
12574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12576 echo "$as_me:12576: result: $ac_cv_func_mkstemp" >&5
12577 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
12580 cat >conftest.$ac_ext <<_ACEOF
12581 #line 12581 "configure"
12582 #include "confdefs.h"
12584 #include <sys/types.h>
12585 #include <stdlib.h>
12587 #include <string.h>
12588 #include <sys/stat.h>
12591 char *tmpl = "conftestXXXXXX";
12599 for (n = 0; n < 2; ++n) {
12600 strcpy(name[n], tmpl);
12601 if ((fd = mkstemp(name[n])) >= 0) {
12602 if (!strcmp(name[n], tmpl)
12603 || stat(name[n], &sb) != 0
12604 || (sb.st_mode & S_IFMT) != S_IFREG
12605 || (sb.st_mode & 077) != 0) {
12612 && !strcmp(name[0], name[1]))
12614 ${cf_cv_main_return:-return}(result);
12618 rm -f conftest$ac_exeext
12619 if { (eval echo "$as_me:12619: \"$ac_link\"") >&5
12620 (eval $ac_link) 2>&5
12622 echo "$as_me:12622: \$? = $ac_status" >&5
12623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12624 { (eval echo "$as_me:12624: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12627 echo "$as_me:12627: \$? = $ac_status" >&5
12628 (exit $ac_status); }; }; then
12629 cf_cv_func_mkstemp=yes
12632 echo "$as_me: program exited with status $ac_status" >&5
12633 echo "$as_me: failed program was:" >&5
12634 cat conftest.$ac_ext >&5
12635 cf_cv_func_mkstemp=no
12638 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12642 echo "$as_me:12642: result: $cf_cv_func_mkstemp" >&5
12643 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
12644 if test "$cf_cv_func_mkstemp" = yes ; then
12645 cat >>confdefs.h <<\EOF
12646 #define HAVE_MKSTEMP 1
12651 # setup for prototype of fallback for vsscanf()
12653 if test "$cf_cv_func_vsscanf" = vsscanf ; then
12659 if test "$cross_compiling" = yes ; then
12660 { echo "$as_me:12660: WARNING: cross compiling: assume setvbuf params not reversed" >&5
12661 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
12663 echo "$as_me:12663: checking whether setvbuf arguments are reversed" >&5
12664 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12665 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12668 if test "$cross_compiling" = yes; then
12669 { { echo "$as_me:12669: error: cannot run test program while cross compiling" >&5
12670 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12671 { (exit 1); exit 1; }; }
12673 cat >conftest.$ac_ext <<_ACEOF
12674 #line 12674 "configure"
12675 #include "confdefs.h"
12677 /* If setvbuf has the reversed format, exit 0. */
12681 /* This call has the arguments reversed.
12682 A reversed system may check and see that the address of main
12683 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12684 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
12685 $ac_main_return(1);
12686 putc('\r', stdout);
12687 $ac_main_return(0); /* Non-reversed systems segv here. */
12690 rm -f conftest$ac_exeext
12691 if { (eval echo "$as_me:12691: \"$ac_link\"") >&5
12692 (eval $ac_link) 2>&5
12694 echo "$as_me:12694: \$? = $ac_status" >&5
12695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12696 { (eval echo "$as_me:12696: \"$ac_try\"") >&5
12697 (eval $ac_try) 2>&5
12699 echo "$as_me:12699: \$? = $ac_status" >&5
12700 (exit $ac_status); }; }; then
12701 ac_cv_func_setvbuf_reversed=yes
12703 echo "$as_me: program exited with status $ac_status" >&5
12704 echo "$as_me: failed program was:" >&5
12705 cat conftest.$ac_ext >&5
12706 ac_cv_func_setvbuf_reversed=no
12708 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12710 rm -f core core.* *.core
12712 echo "$as_me:12712: result: $ac_cv_func_setvbuf_reversed" >&5
12713 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12714 if test $ac_cv_func_setvbuf_reversed = yes; then
12716 cat >>confdefs.h <<\EOF
12717 #define SETVBUF_REVERSED 1
12723 echo "$as_me:12723: checking return type of signal handlers" >&5
12724 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12725 if test "${ac_cv_type_signal+set}" = set; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12728 cat >conftest.$ac_ext <<_ACEOF
12729 #line 12729 "configure"
12730 #include "confdefs.h"
12731 #include <sys/types.h>
12732 #include <signal.h>
12737 extern "C" void (*signal (int, void (*)(int)))(int);
12739 void (*signal ()) ();
12750 rm -f conftest.$ac_objext
12751 if { (eval echo "$as_me:12751: \"$ac_compile\"") >&5
12752 (eval $ac_compile) 2>&5
12754 echo "$as_me:12754: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
12756 { ac_try='test -s conftest.$ac_objext'
12757 { (eval echo "$as_me:12757: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12760 echo "$as_me:12760: \$? = $ac_status" >&5
12761 (exit $ac_status); }; }; then
12762 ac_cv_type_signal=void
12764 echo "$as_me: failed program was:" >&5
12765 cat conftest.$ac_ext >&5
12766 ac_cv_type_signal=int
12768 rm -f conftest.$ac_objext conftest.$ac_ext
12770 echo "$as_me:12770: result: $ac_cv_type_signal" >&5
12771 echo "${ECHO_T}$ac_cv_type_signal" >&6
12773 cat >>confdefs.h <<EOF
12774 #define RETSIGTYPE $ac_cv_type_signal
12777 echo "$as_me:12777: checking for type sigaction_t" >&5
12778 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
12779 if test "${cf_cv_type_sigaction+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12783 cat >conftest.$ac_ext <<_ACEOF
12784 #line 12784 "configure"
12785 #include "confdefs.h"
12787 #include <signal.h>
12796 rm -f conftest.$ac_objext
12797 if { (eval echo "$as_me:12797: \"$ac_compile\"") >&5
12798 (eval $ac_compile) 2>&5
12800 echo "$as_me:12800: \$? = $ac_status" >&5
12801 (exit $ac_status); } &&
12802 { ac_try='test -s conftest.$ac_objext'
12803 { (eval echo "$as_me:12803: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12806 echo "$as_me:12806: \$? = $ac_status" >&5
12807 (exit $ac_status); }; }; then
12808 cf_cv_type_sigaction=yes
12810 echo "$as_me: failed program was:" >&5
12811 cat conftest.$ac_ext >&5
12812 cf_cv_type_sigaction=no
12814 rm -f conftest.$ac_objext conftest.$ac_ext
12817 echo "$as_me:12817: result: $cf_cv_type_sigaction" >&5
12818 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
12819 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
12820 #define HAVE_TYPE_SIGACTION 1
12823 echo "$as_me:12823: checking declaration of size-change" >&5
12824 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
12825 if test "${cf_cv_sizechange+set}" = set; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 cf_cv_sizechange=unknown
12830 cf_save_CPPFLAGS="$CPPFLAGS"
12832 for cf_opts in "" "NEED_PTEM_H"
12835 CPPFLAGS="$cf_save_CPPFLAGS"
12836 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
12837 cat >conftest.$ac_ext <<_ACEOF
12838 #line 12838 "configure"
12839 #include "confdefs.h"
12840 #include <sys/types.h>
12841 #ifdef HAVE_TERMIOS_H
12842 #include <termios.h>
12844 #ifdef HAVE_TERMIO_H
12845 #include <termio.h>
12849 /* This is a workaround for SCO: they neglected to define struct winsize in
12850 * termios.h -- it's only in termio.h and ptem.h
12852 #include <sys/stream.h>
12853 #include <sys/ptem.h>
12855 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
12856 #include <sys/ioctl.h>
12864 struct ttysize win; /* FIXME: what system is this? */
12865 int y = win.ts_lines;
12866 int x = win.ts_cols;
12869 struct winsize win;
12870 int y = win.ws_row;
12871 int x = win.ws_col;
12873 no TIOCGSIZE or TIOCGWINSZ
12874 #endif /* TIOCGWINSZ */
12875 #endif /* TIOCGSIZE */
12881 rm -f conftest.$ac_objext
12882 if { (eval echo "$as_me:12882: \"$ac_compile\"") >&5
12883 (eval $ac_compile) 2>&5
12885 echo "$as_me:12885: \$? = $ac_status" >&5
12886 (exit $ac_status); } &&
12887 { ac_try='test -s conftest.$ac_objext'
12888 { (eval echo "$as_me:12888: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12891 echo "$as_me:12891: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 cf_cv_sizechange=yes
12895 echo "$as_me: failed program was:" >&5
12896 cat conftest.$ac_ext >&5
12897 cf_cv_sizechange=no
12899 rm -f conftest.$ac_objext conftest.$ac_ext
12901 CPPFLAGS="$cf_save_CPPFLAGS"
12902 if test "$cf_cv_sizechange" = yes ; then
12903 echo "size-change succeeded ($cf_opts)" >&5
12904 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
12910 echo "$as_me:12910: result: $cf_cv_sizechange" >&5
12911 echo "${ECHO_T}$cf_cv_sizechange" >&6
12912 if test "$cf_cv_sizechange" != no ; then
12913 cat >>confdefs.h <<\EOF
12914 #define HAVE_SIZECHANGE 1
12917 case $cf_cv_sizechange in #(vi
12919 cat >>confdefs.h <<EOF
12920 #define $cf_cv_sizechange 1
12927 echo "$as_me:12927: checking for memmove" >&5
12928 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
12929 if test "${ac_cv_func_memmove+set}" = set; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
12932 cat >conftest.$ac_ext <<_ACEOF
12933 #line 12933 "configure"
12934 #include "confdefs.h"
12935 /* System header to define __stub macros and hopefully few prototypes,
12936 which can conflict with char memmove (); below. */
12937 #include <assert.h>
12938 /* Override any gcc2 internal prototype to avoid an error. */
12942 /* We use char because int might match the return type of a gcc2
12943 builtin and then its argument prototype would still apply. */
12950 /* The GNU C library defines this for functions which it implements
12951 to always fail with ENOSYS. Some functions are actually named
12952 something starting with __ and the normal name is an alias. */
12953 #if defined (__stub_memmove) || defined (__stub___memmove)
12963 rm -f conftest.$ac_objext conftest$ac_exeext
12964 if { (eval echo "$as_me:12964: \"$ac_link\"") >&5
12965 (eval $ac_link) 2>&5
12967 echo "$as_me:12967: \$? = $ac_status" >&5
12968 (exit $ac_status); } &&
12969 { ac_try='test -s conftest$ac_exeext'
12970 { (eval echo "$as_me:12970: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12973 echo "$as_me:12973: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
12975 ac_cv_func_memmove=yes
12977 echo "$as_me: failed program was:" >&5
12978 cat conftest.$ac_ext >&5
12979 ac_cv_func_memmove=no
12981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12983 echo "$as_me:12983: result: $ac_cv_func_memmove" >&5
12984 echo "${ECHO_T}$ac_cv_func_memmove" >&6
12985 if test $ac_cv_func_memmove = yes; then
12989 echo "$as_me:12989: checking for bcopy" >&5
12990 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
12991 if test "${ac_cv_func_bcopy+set}" = set; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 cat >conftest.$ac_ext <<_ACEOF
12995 #line 12995 "configure"
12996 #include "confdefs.h"
12997 /* System header to define __stub macros and hopefully few prototypes,
12998 which can conflict with char bcopy (); below. */
12999 #include <assert.h>
13000 /* Override any gcc2 internal prototype to avoid an error. */
13004 /* We use char because int might match the return type of a gcc2
13005 builtin and then its argument prototype would still apply. */
13012 /* The GNU C library defines this for functions which it implements
13013 to always fail with ENOSYS. Some functions are actually named
13014 something starting with __ and the normal name is an alias. */
13015 #if defined (__stub_bcopy) || defined (__stub___bcopy)
13025 rm -f conftest.$ac_objext conftest$ac_exeext
13026 if { (eval echo "$as_me:13026: \"$ac_link\"") >&5
13027 (eval $ac_link) 2>&5
13029 echo "$as_me:13029: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try='test -s conftest$ac_exeext'
13032 { (eval echo "$as_me:13032: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13035 echo "$as_me:13035: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_cv_func_bcopy=yes
13039 echo "$as_me: failed program was:" >&5
13040 cat conftest.$ac_ext >&5
13041 ac_cv_func_bcopy=no
13043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13045 echo "$as_me:13045: result: $ac_cv_func_bcopy" >&5
13046 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
13047 if test $ac_cv_func_bcopy = yes; then
13049 echo "$as_me:13049: checking if bcopy does overlapping moves" >&5
13050 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
13051 if test "${cf_cv_good_bcopy+set}" = set; then
13052 echo $ECHO_N "(cached) $ECHO_C" >&6
13055 if test "$cross_compiling" = yes; then
13056 cf_cv_good_bcopy=unknown
13058 cat >conftest.$ac_ext <<_ACEOF
13059 #line 13059 "configure"
13060 #include "confdefs.h"
13063 static char data[] = "abcdefghijklmnopqrstuwwxyz";
13065 bcopy(data, temp, sizeof(data));
13066 bcopy(temp+10, temp, 15);
13067 bcopy(temp+5, temp+15, 10);
13068 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
13072 rm -f conftest$ac_exeext
13073 if { (eval echo "$as_me:13073: \"$ac_link\"") >&5
13074 (eval $ac_link) 2>&5
13076 echo "$as_me:13076: \$? = $ac_status" >&5
13077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13078 { (eval echo "$as_me:13078: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13081 echo "$as_me:13081: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083 cf_cv_good_bcopy=yes
13085 echo "$as_me: program exited with status $ac_status" >&5
13086 echo "$as_me: failed program was:" >&5
13087 cat conftest.$ac_ext >&5
13088 cf_cv_good_bcopy=no
13090 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13094 echo "$as_me:13094: result: $cf_cv_good_bcopy" >&5
13095 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
13098 cf_cv_good_bcopy=no
13101 if test "$cf_cv_good_bcopy" = yes ; then
13102 cat >>confdefs.h <<\EOF
13103 #define USE_OK_BCOPY 1
13107 cat >>confdefs.h <<\EOF
13108 #define USE_MY_MEMMOVE 1
13115 echo "$as_me:13115: checking if poll really works" >&5
13116 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
13117 if test "${cf_cv_working_poll+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13121 if test "$cross_compiling" = yes; then
13122 cf_cv_working_poll=unknown
13124 cat >conftest.$ac_ext <<_ACEOF
13125 #line 13125 "configure"
13126 #include "confdefs.h"
13132 #include <sys/poll.h>
13135 struct pollfd myfds;
13139 myfds.events = POLLIN;
13141 ret = poll(&myfds, 1, 100);
13142 ${cf_cv_main_return:-return}(ret != 0);
13145 rm -f conftest$ac_exeext
13146 if { (eval echo "$as_me:13146: \"$ac_link\"") >&5
13147 (eval $ac_link) 2>&5
13149 echo "$as_me:13149: \$? = $ac_status" >&5
13150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13151 { (eval echo "$as_me:13151: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13154 echo "$as_me:13154: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
13156 cf_cv_working_poll=yes
13158 echo "$as_me: program exited with status $ac_status" >&5
13159 echo "$as_me: failed program was:" >&5
13160 cat conftest.$ac_ext >&5
13161 cf_cv_working_poll=no
13163 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13166 echo "$as_me:13166: result: $cf_cv_working_poll" >&5
13167 echo "${ECHO_T}$cf_cv_working_poll" >&6
13168 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
13169 #define HAVE_WORKING_POLL 1
13172 if test "$with_hashed_db" != no ; then
13173 cat >>confdefs.h <<\EOF
13174 #define USE_HASHED_DB 1
13177 echo "$as_me:13177: checking for db.h" >&5
13178 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
13179 if test "${ac_cv_header_db_h+set}" = set; then
13180 echo $ECHO_N "(cached) $ECHO_C" >&6
13182 cat >conftest.$ac_ext <<_ACEOF
13183 #line 13183 "configure"
13184 #include "confdefs.h"
13187 if { (eval echo "$as_me:13187: \"$ac_cpp conftest.$ac_ext\"") >&5
13188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13190 egrep -v '^ *\+' conftest.er1 >conftest.err
13192 cat conftest.err >&5
13193 echo "$as_me:13193: \$? = $ac_status" >&5
13194 (exit $ac_status); } >/dev/null; then
13195 if test -s conftest.err; then
13196 ac_cpp_err=$ac_c_preproc_warn_flag
13203 if test -z "$ac_cpp_err"; then
13204 ac_cv_header_db_h=yes
13206 echo "$as_me: failed program was:" >&5
13207 cat conftest.$ac_ext >&5
13208 ac_cv_header_db_h=no
13210 rm -f conftest.err conftest.$ac_ext
13212 echo "$as_me:13212: result: $ac_cv_header_db_h" >&5
13213 echo "${ECHO_T}$ac_cv_header_db_h" >&6
13214 if test $ac_cv_header_db_h = yes; then
13216 echo "$as_me:13216: checking for version of db" >&5
13217 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
13218 if test "${cf_cv_hashed_db_version+set}" = set; then
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13222 cf_cv_hashed_db_version=unknown
13224 for cf_db_version in 1 2 3 4
13227 echo "(line 13227) testing checking for db version $cf_db_version ..." 1>&5
13229 cat >conftest.$ac_ext <<_ACEOF
13230 #line 13230 "configure"
13231 #include "confdefs.h"
13233 $ac_includes_default
13236 #ifdef DB_VERSION_MAJOR
13237 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
13238 #if $cf_db_version == DB_VERSION_MAJOR
13244 #if $cf_db_version == 1
13245 /* ok: assuming this is DB 1.8.5 */
13259 rm -f conftest.$ac_objext
13260 if { (eval echo "$as_me:13260: \"$ac_compile\"") >&5
13261 (eval $ac_compile) 2>&5
13263 echo "$as_me:13263: \$? = $ac_status" >&5
13264 (exit $ac_status); } &&
13265 { ac_try='test -s conftest.$ac_objext'
13266 { (eval echo "$as_me:13266: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13269 echo "$as_me:13269: \$? = $ac_status" >&5
13270 (exit $ac_status); }; }; then
13272 cf_cv_hashed_db_version=$cf_db_version
13276 echo "$as_me: failed program was:" >&5
13277 cat conftest.$ac_ext >&5
13279 rm -f conftest.$ac_objext conftest.$ac_ext
13283 echo "$as_me:13283: result: $cf_cv_hashed_db_version" >&5
13284 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
13286 if test "$cf_cv_hashed_db_version" = unknown ; then
13287 { { echo "$as_me:13287: error: Cannot determine version of db" >&5
13288 echo "$as_me: error: Cannot determine version of db" >&2;}
13289 { (exit 1); exit 1; }; }
13292 echo "$as_me:13292: checking for db libraries" >&5
13293 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
13294 if test "${cf_cv_hashed_db_libs+set}" = set; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 cf_cv_hashed_db_libs=unknown
13299 for cf_db_libs in db$cf_cv_hashed_db_version db ''
13301 cf_save_libs="$LIBS"
13302 if test -n "$cf_db_libs"; then
13303 LIBS="-l$cf_db_libs $LIBS"
13306 echo "(line 13306) testing checking for library "$cf_db_libs" ..." 1>&5
13308 cat >conftest.$ac_ext <<_ACEOF
13309 #line 13309 "configure"
13310 #include "confdefs.h"
13312 $ac_includes_default
13319 char *path = "/tmp/foo";
13320 #ifdef DB_VERSION_MAJOR
13321 #if DB_VERSION_MAJOR >= 4
13323 db_create(&result, NULL, 0);
13324 result->open(result,
13331 #elif DB_VERSION_MAJOR >= 3
13333 db_create(&result, NULL, 0);
13334 result->open(result,
13340 #elif DB_VERSION_MAJOR >= 2
13349 #endif /* DB_VERSION_MAJOR */
13351 DB *result = dbopen(path,
13357 ${cf_cv_main_return:-return}(result != 0)
13363 rm -f conftest.$ac_objext conftest$ac_exeext
13364 if { (eval echo "$as_me:13364: \"$ac_link\"") >&5
13365 (eval $ac_link) 2>&5
13367 echo "$as_me:13367: \$? = $ac_status" >&5
13368 (exit $ac_status); } &&
13369 { ac_try='test -s conftest$ac_exeext'
13370 { (eval echo "$as_me:13370: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13373 echo "$as_me:13373: \$? = $ac_status" >&5
13374 (exit $ac_status); }; }; then
13376 if test -n "$cf_db_libs" ; then
13377 cf_cv_hashed_db_libs=$cf_db_libs
13379 cf_cv_hashed_db_libs=default
13381 LIBS="$cf_save_libs"
13385 echo "$as_me: failed program was:" >&5
13386 cat conftest.$ac_ext >&5
13388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13389 LIBS="$cf_save_libs"
13393 echo "$as_me:13393: result: $cf_cv_hashed_db_libs" >&5
13394 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
13396 if test "$cf_cv_hashed_db_libs" = unknown ; then
13397 { { echo "$as_me:13397: error: Cannot determine library for db" >&5
13398 echo "$as_me: error: Cannot determine library for db" >&2;}
13399 { (exit 1); exit 1; }; }
13400 elif test "$cf_cv_hashed_db_libs" != default ; then
13401 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
13407 { { echo "$as_me:13407: error: Cannot find db.h" >&5
13408 echo "$as_me: error: Cannot find db.h" >&2;}
13409 { (exit 1); exit 1; }; }
13415 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
13416 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
13417 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
13420 # Just in case, check if the C compiler has a bool type.
13422 echo "$as_me:13422: checking if we should include stdbool.h" >&5
13423 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
13425 if test "${cf_cv_header_stdbool_h+set}" = set; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13429 cat >conftest.$ac_ext <<_ACEOF
13430 #line 13430 "configure"
13431 #include "confdefs.h"
13441 rm -f conftest.$ac_objext
13442 if { (eval echo "$as_me:13442: \"$ac_compile\"") >&5
13443 (eval $ac_compile) 2>&5
13445 echo "$as_me:13445: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
13447 { ac_try='test -s conftest.$ac_objext'
13448 { (eval echo "$as_me:13448: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13451 echo "$as_me:13451: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13453 cf_cv_header_stdbool_h=0
13455 echo "$as_me: failed program was:" >&5
13456 cat conftest.$ac_ext >&5
13457 cat >conftest.$ac_ext <<_ACEOF
13458 #line 13458 "configure"
13459 #include "confdefs.h"
13462 #include <stdbool.h>
13473 rm -f conftest.$ac_objext
13474 if { (eval echo "$as_me:13474: \"$ac_compile\"") >&5
13475 (eval $ac_compile) 2>&5
13477 echo "$as_me:13477: \$? = $ac_status" >&5
13478 (exit $ac_status); } &&
13479 { ac_try='test -s conftest.$ac_objext'
13480 { (eval echo "$as_me:13480: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13483 echo "$as_me:13483: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13485 cf_cv_header_stdbool_h=1
13487 echo "$as_me: failed program was:" >&5
13488 cat conftest.$ac_ext >&5
13489 cf_cv_header_stdbool_h=0
13491 rm -f conftest.$ac_objext conftest.$ac_ext
13493 rm -f conftest.$ac_objext conftest.$ac_ext
13496 if test "$cf_cv_header_stdbool_h" = 1
13497 then echo "$as_me:13497: result: yes" >&5
13498 echo "${ECHO_T}yes" >&6
13499 else echo "$as_me:13499: result: no" >&5
13500 echo "${ECHO_T}no" >&6
13503 echo "$as_me:13503: checking for builtin bool type" >&5
13504 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
13506 if test "${cf_cv_cc_bool_type+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 cat >conftest.$ac_ext <<_ACEOF
13511 #line 13511 "configure"
13512 #include "confdefs.h"
13515 #include <sys/types.h>
13525 rm -f conftest.$ac_objext
13526 if { (eval echo "$as_me:13526: \"$ac_compile\"") >&5
13527 (eval $ac_compile) 2>&5
13529 echo "$as_me:13529: \$? = $ac_status" >&5
13530 (exit $ac_status); } &&
13531 { ac_try='test -s conftest.$ac_objext'
13532 { (eval echo "$as_me:13532: \"$ac_try\"") >&5
13533 (eval $ac_try) 2>&5
13535 echo "$as_me:13535: \$? = $ac_status" >&5
13536 (exit $ac_status); }; }; then
13537 cf_cv_cc_bool_type=1
13539 echo "$as_me: failed program was:" >&5
13540 cat conftest.$ac_ext >&5
13541 cf_cv_cc_bool_type=0
13543 rm -f conftest.$ac_objext conftest.$ac_ext
13547 if test "$cf_cv_cc_bool_type" = 1
13548 then echo "$as_me:13548: result: yes" >&5
13549 echo "${ECHO_T}yes" >&6
13550 else echo "$as_me:13550: result: no" >&5
13551 echo "${ECHO_T}no" >&6
13554 # Check for C++ compiler characteristics (and ensure that it's there!)
13555 if test -n "$CXX" ; then
13557 ac_cpp='$CXXCPP $CPPFLAGS'
13558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13561 ac_main_return=return
13563 if test -n "$GXX" ; then
13564 case $cf_cv_system_name in #(vi
13566 cf_stdcpp_libname=stdcpp
13569 cf_stdcpp_libname=stdc++
13572 echo "$as_me:13572: checking for library $cf_stdcpp_libname" >&5
13573 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
13574 if test "${cf_cv_libstdcpp+set}" = set; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 LIBS="$LIBS -l$cf_stdcpp_libname"
13580 cat >conftest.$ac_ext <<_ACEOF
13581 #line 13581 "configure"
13582 #include "confdefs.h"
13584 #include <strstream.h>
13590 strstreambuf foo(buf, sizeof(buf))
13596 rm -f conftest.$ac_objext conftest$ac_exeext
13597 if { (eval echo "$as_me:13597: \"$ac_link\"") >&5
13598 (eval $ac_link) 2>&5
13600 echo "$as_me:13600: \$? = $ac_status" >&5
13601 (exit $ac_status); } &&
13602 { ac_try='test -s conftest$ac_exeext'
13603 { (eval echo "$as_me:13603: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13606 echo "$as_me:13606: \$? = $ac_status" >&5
13607 (exit $ac_status); }; }; then
13608 cf_cv_libstdcpp=yes
13610 echo "$as_me: failed program was:" >&5
13611 cat conftest.$ac_ext >&5
13614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13618 echo "$as_me:13618: result: $cf_cv_libstdcpp" >&5
13619 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
13620 test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
13623 echo "$as_me:13623: checking whether $CXX understands -c and -o together" >&5
13624 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
13625 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
13626 echo $ECHO_N "(cached) $ECHO_C" >&6
13629 cat > conftest.$ac_ext <<CF_EOF
13633 ${cf_cv_main_return:-return}(0);
13636 # We do the test twice because some compilers refuse to overwrite an
13637 # existing .o file with -o, though they will create one.
13638 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
13639 if { (eval echo "$as_me:13639: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13642 echo "$as_me:13642: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 test -f conftest2.$ac_objext && { (eval echo "$as_me:13644: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13647 echo "$as_me:13647: \$? = $ac_status" >&5
13648 (exit $ac_status); };
13650 eval cf_cv_prog_CXX_c_o=yes
13652 eval cf_cv_prog_CXX_c_o=no
13657 if test $cf_cv_prog_CXX_c_o = yes; then
13658 echo "$as_me:13658: result: yes" >&5
13659 echo "${ECHO_T}yes" >&6
13661 echo "$as_me:13661: result: no" >&5
13662 echo "${ECHO_T}no" >&6
13665 case $GXX_VERSION in
13671 cf_cxx_library=unknown
13672 case $cf_cv_system_name in #(vi
13680 if test "$GXX" = yes; then
13681 echo "$as_me:13681: checking for lib$cf_gpp_libname" >&5
13682 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
13684 LIBS="$LIBS -l$cf_gpp_libname"
13685 cat >conftest.$ac_ext <<_ACEOF
13686 #line 13686 "configure"
13687 #include "confdefs.h"
13689 #include <$cf_gpp_libname/builtin.h>
13694 two_arg_error_handler_t foo2 = lib_error_handler
13699 rm -f conftest.$ac_objext conftest$ac_exeext
13700 if { (eval echo "$as_me:13700: \"$ac_link\"") >&5
13701 (eval $ac_link) 2>&5
13703 echo "$as_me:13703: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -s conftest$ac_exeext'
13706 { (eval echo "$as_me:13706: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13709 echo "$as_me:13709: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13712 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
13713 if test "$cf_gpp_libname" = cpp ; then
13714 cat >>confdefs.h <<\EOF
13715 #define HAVE_GPP_BUILTIN_H 1
13719 cat >>confdefs.h <<\EOF
13720 #define HAVE_GXX_BUILTIN_H 1
13725 echo "$as_me: failed program was:" >&5
13726 cat conftest.$ac_ext >&5
13727 cat >conftest.$ac_ext <<_ACEOF
13728 #line 13728 "configure"
13729 #include "confdefs.h"
13731 #include <builtin.h>
13736 two_arg_error_handler_t foo2 = lib_error_handler
13741 rm -f conftest.$ac_objext conftest$ac_exeext
13742 if { (eval echo "$as_me:13742: \"$ac_link\"") >&5
13743 (eval $ac_link) 2>&5
13745 echo "$as_me:13745: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -s conftest$ac_exeext'
13748 { (eval echo "$as_me:13748: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13751 echo "$as_me:13751: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13754 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
13755 cat >>confdefs.h <<\EOF
13756 #define HAVE_BUILTIN_H 1
13760 echo "$as_me: failed program was:" >&5
13761 cat conftest.$ac_ext >&5
13764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13768 echo "$as_me:13768: result: $cf_cxx_library" >&5
13769 echo "${ECHO_T}$cf_cxx_library" >&6
13779 ac_cpp='$CXXCPP $CPPFLAGS'
13780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13783 ac_main_return=return
13784 echo "$as_me:13784: checking how to run the C++ preprocessor" >&5
13785 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
13786 if test -z "$CXXCPP"; then
13787 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13788 echo $ECHO_N "(cached) $ECHO_C" >&6
13790 # Double quotes because CXXCPP needs to be expanded
13791 for CXXCPP in "$CXX -E" "/lib/cpp"
13793 ac_preproc_ok=false
13794 for ac_cxx_preproc_warn_flag in '' yes
13796 # Use a header file that comes with gcc, so configuring glibc
13797 # with a fresh cross-compiler works.
13798 # On the NeXT, cc -E runs the code through the compiler's parser,
13799 # not just through cpp. "Syntax error" is here to catch this case.
13800 cat >conftest.$ac_ext <<_ACEOF
13801 #line 13801 "configure"
13802 #include "confdefs.h"
13803 #include <assert.h>
13806 if { (eval echo "$as_me:13806: \"$ac_cpp conftest.$ac_ext\"") >&5
13807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13809 egrep -v '^ *\+' conftest.er1 >conftest.err
13811 cat conftest.err >&5
13812 echo "$as_me:13812: \$? = $ac_status" >&5
13813 (exit $ac_status); } >/dev/null; then
13814 if test -s conftest.err; then
13815 ac_cpp_err=$ac_cxx_preproc_warn_flag
13822 if test -z "$ac_cpp_err"; then
13825 echo "$as_me: failed program was:" >&5
13826 cat conftest.$ac_ext >&5
13827 # Broken: fails on valid input.
13830 rm -f conftest.err conftest.$ac_ext
13832 # OK, works on sane cases. Now check whether non-existent headers
13833 # can be detected and how.
13834 cat >conftest.$ac_ext <<_ACEOF
13835 #line 13835 "configure"
13836 #include "confdefs.h"
13837 #include <ac_nonexistent.h>
13839 if { (eval echo "$as_me:13839: \"$ac_cpp conftest.$ac_ext\"") >&5
13840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13842 egrep -v '^ *\+' conftest.er1 >conftest.err
13844 cat conftest.err >&5
13845 echo "$as_me:13845: \$? = $ac_status" >&5
13846 (exit $ac_status); } >/dev/null; then
13847 if test -s conftest.err; then
13848 ac_cpp_err=$ac_cxx_preproc_warn_flag
13855 if test -z "$ac_cpp_err"; then
13856 # Broken: success on invalid input.
13859 echo "$as_me: failed program was:" >&5
13860 cat conftest.$ac_ext >&5
13861 # Passes both tests.
13865 rm -f conftest.err conftest.$ac_ext
13868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13869 rm -f conftest.err conftest.$ac_ext
13870 if $ac_preproc_ok; then
13875 ac_cv_prog_CXXCPP=$CXXCPP
13878 CXXCPP=$ac_cv_prog_CXXCPP
13880 ac_cv_prog_CXXCPP=$CXXCPP
13882 echo "$as_me:13882: result: $CXXCPP" >&5
13883 echo "${ECHO_T}$CXXCPP" >&6
13884 ac_preproc_ok=false
13885 for ac_cxx_preproc_warn_flag in '' yes
13887 # Use a header file that comes with gcc, so configuring glibc
13888 # with a fresh cross-compiler works.
13889 # On the NeXT, cc -E runs the code through the compiler's parser,
13890 # not just through cpp. "Syntax error" is here to catch this case.
13891 cat >conftest.$ac_ext <<_ACEOF
13892 #line 13892 "configure"
13893 #include "confdefs.h"
13894 #include <assert.h>
13897 if { (eval echo "$as_me:13897: \"$ac_cpp conftest.$ac_ext\"") >&5
13898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13900 egrep -v '^ *\+' conftest.er1 >conftest.err
13902 cat conftest.err >&5
13903 echo "$as_me:13903: \$? = $ac_status" >&5
13904 (exit $ac_status); } >/dev/null; then
13905 if test -s conftest.err; then
13906 ac_cpp_err=$ac_cxx_preproc_warn_flag
13913 if test -z "$ac_cpp_err"; then
13916 echo "$as_me: failed program was:" >&5
13917 cat conftest.$ac_ext >&5
13918 # Broken: fails on valid input.
13921 rm -f conftest.err conftest.$ac_ext
13923 # OK, works on sane cases. Now check whether non-existent headers
13924 # can be detected and how.
13925 cat >conftest.$ac_ext <<_ACEOF
13926 #line 13926 "configure"
13927 #include "confdefs.h"
13928 #include <ac_nonexistent.h>
13930 if { (eval echo "$as_me:13930: \"$ac_cpp conftest.$ac_ext\"") >&5
13931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13933 egrep -v '^ *\+' conftest.er1 >conftest.err
13935 cat conftest.err >&5
13936 echo "$as_me:13936: \$? = $ac_status" >&5
13937 (exit $ac_status); } >/dev/null; then
13938 if test -s conftest.err; then
13939 ac_cpp_err=$ac_cxx_preproc_warn_flag
13946 if test -z "$ac_cpp_err"; then
13947 # Broken: success on invalid input.
13950 echo "$as_me: failed program was:" >&5
13951 cat conftest.$ac_ext >&5
13952 # Passes both tests.
13956 rm -f conftest.err conftest.$ac_ext
13959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13960 rm -f conftest.err conftest.$ac_ext
13961 if $ac_preproc_ok; then
13964 { { echo "$as_me:13964: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
13965 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
13966 { (exit 1); exit 1; }; }
13970 ac_cpp='$CXXCPP $CPPFLAGS'
13971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13974 ac_main_return=return
13976 for ac_header in iostream typeinfo
13978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13979 echo "$as_me:13979: checking for $ac_header" >&5
13980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13984 cat >conftest.$ac_ext <<_ACEOF
13985 #line 13985 "configure"
13986 #include "confdefs.h"
13987 #include <$ac_header>
13989 if { (eval echo "$as_me:13989: \"$ac_cpp conftest.$ac_ext\"") >&5
13990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13992 egrep -v '^ *\+' conftest.er1 >conftest.err
13994 cat conftest.err >&5
13995 echo "$as_me:13995: \$? = $ac_status" >&5
13996 (exit $ac_status); } >/dev/null; then
13997 if test -s conftest.err; then
13998 ac_cpp_err=$ac_cxx_preproc_warn_flag
14005 if test -z "$ac_cpp_err"; then
14006 eval "$as_ac_Header=yes"
14008 echo "$as_me: failed program was:" >&5
14009 cat conftest.$ac_ext >&5
14010 eval "$as_ac_Header=no"
14012 rm -f conftest.err conftest.$ac_ext
14014 echo "$as_me:14014: result: `eval echo '${'$as_ac_Header'}'`" >&5
14015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14017 cat >>confdefs.h <<EOF
14018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14024 echo "$as_me:14024: checking if we should include stdbool.h" >&5
14025 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
14027 if test "${cf_cv_header_stdbool_h+set}" = set; then
14028 echo $ECHO_N "(cached) $ECHO_C" >&6
14031 cat >conftest.$ac_ext <<_ACEOF
14032 #line 14032 "configure"
14033 #include "confdefs.h"
14043 rm -f conftest.$ac_objext
14044 if { (eval echo "$as_me:14044: \"$ac_compile\"") >&5
14045 (eval $ac_compile) 2>&5
14047 echo "$as_me:14047: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -s conftest.$ac_objext'
14050 { (eval echo "$as_me:14050: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14053 echo "$as_me:14053: \$? = $ac_status" >&5
14054 (exit $ac_status); }; }; then
14055 cf_cv_header_stdbool_h=0
14057 echo "$as_me: failed program was:" >&5
14058 cat conftest.$ac_ext >&5
14059 cat >conftest.$ac_ext <<_ACEOF
14060 #line 14060 "configure"
14061 #include "confdefs.h"
14064 #include <stdbool.h>
14075 rm -f conftest.$ac_objext
14076 if { (eval echo "$as_me:14076: \"$ac_compile\"") >&5
14077 (eval $ac_compile) 2>&5
14079 echo "$as_me:14079: \$? = $ac_status" >&5
14080 (exit $ac_status); } &&
14081 { ac_try='test -s conftest.$ac_objext'
14082 { (eval echo "$as_me:14082: \"$ac_try\"") >&5
14083 (eval $ac_try) 2>&5
14085 echo "$as_me:14085: \$? = $ac_status" >&5
14086 (exit $ac_status); }; }; then
14087 cf_cv_header_stdbool_h=1
14089 echo "$as_me: failed program was:" >&5
14090 cat conftest.$ac_ext >&5
14091 cf_cv_header_stdbool_h=0
14093 rm -f conftest.$ac_objext conftest.$ac_ext
14095 rm -f conftest.$ac_objext conftest.$ac_ext
14098 if test "$cf_cv_header_stdbool_h" = 1
14099 then echo "$as_me:14099: result: yes" >&5
14100 echo "${ECHO_T}yes" >&6
14101 else echo "$as_me:14101: result: no" >&5
14102 echo "${ECHO_T}no" >&6
14105 echo "$as_me:14105: checking for builtin bool type" >&5
14106 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
14108 if test "${cf_cv_builtin_bool+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14112 cat >conftest.$ac_ext <<_ACEOF
14113 #line 14113 "configure"
14114 #include "confdefs.h"
14117 #include <sys/types.h>
14127 rm -f conftest.$ac_objext
14128 if { (eval echo "$as_me:14128: \"$ac_compile\"") >&5
14129 (eval $ac_compile) 2>&5
14131 echo "$as_me:14131: \$? = $ac_status" >&5
14132 (exit $ac_status); } &&
14133 { ac_try='test -s conftest.$ac_objext'
14134 { (eval echo "$as_me:14134: \"$ac_try\"") >&5
14135 (eval $ac_try) 2>&5
14137 echo "$as_me:14137: \$? = $ac_status" >&5
14138 (exit $ac_status); }; }; then
14139 cf_cv_builtin_bool=1
14141 echo "$as_me: failed program was:" >&5
14142 cat conftest.$ac_ext >&5
14143 cf_cv_builtin_bool=0
14145 rm -f conftest.$ac_objext conftest.$ac_ext
14149 if test "$cf_cv_builtin_bool" = 1
14150 then echo "$as_me:14150: result: yes" >&5
14151 echo "${ECHO_T}yes" >&6
14152 else echo "$as_me:14152: result: no" >&5
14153 echo "${ECHO_T}no" >&6
14156 echo "$as_me:14156: checking for size of bool" >&5
14157 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
14158 if test "${cf_cv_type_of_bool+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14163 if test "$cross_compiling" = yes; then
14164 cf_cv_type_of_bool=unknown
14166 cat >conftest.$ac_ext <<_ACEOF
14167 #line 14167 "configure"
14168 #include "confdefs.h"
14170 #include <stdlib.h>
14173 #if defined(__cplusplus)
14175 #ifdef HAVE_GXX_BUILTIN_H
14176 #include <g++/builtin.h>
14177 #elif HAVE_GPP_BUILTIN_H
14178 #include <gpp/builtin.h>
14179 #elif HAVE_BUILTIN_H
14180 #include <builtin.h>
14185 #if $cf_cv_header_stdbool_h
14186 #include <stdbool.h>
14193 FILE *fp = fopen("cf_test.out", "w");
14196 if ((bool)(-x) >= 0)
14197 fputs("unsigned ", fp);
14198 if (sizeof(x) == sizeof(int)) fputs("int", fp);
14199 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
14200 else if (sizeof(x) == sizeof(short))fputs("short",fp);
14201 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
14204 ${cf_cv_main_return:-return}(0);
14208 rm -f conftest$ac_exeext
14209 if { (eval echo "$as_me:14209: \"$ac_link\"") >&5
14210 (eval $ac_link) 2>&5
14212 echo "$as_me:14212: \$? = $ac_status" >&5
14213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14214 { (eval echo "$as_me:14214: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
14217 echo "$as_me:14217: \$? = $ac_status" >&5
14218 (exit $ac_status); }; }; then
14219 cf_cv_type_of_bool=`cat cf_test.out`
14220 if test -z "$cf_cv_type_of_bool"; then
14221 cf_cv_type_of_bool=unknown
14224 echo "$as_me: program exited with status $ac_status" >&5
14225 echo "$as_me: failed program was:" >&5
14226 cat conftest.$ac_ext >&5
14227 cf_cv_type_of_bool=unknown
14229 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14235 echo "$as_me:14235: result: $cf_cv_type_of_bool" >&5
14236 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
14237 if test "$cf_cv_type_of_bool" = unknown ; then
14238 case .$NCURSES_BOOL in #(vi
14239 .auto|.) NCURSES_BOOL=unsigned;;
14241 { echo "$as_me:14241: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
14242 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
14243 cf_cv_type_of_bool=$NCURSES_BOOL
14246 echo "$as_me:14246: checking for special defines needed for etip.h" >&5
14247 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
14248 cf_save_CXXFLAGS="$CXXFLAGS"
14250 for cf_math in "" MATH_H
14252 for cf_excp in "" MATH_EXCEPTION
14254 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
14255 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
14256 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
14257 cat >conftest.$ac_ext <<_ACEOF
14258 #line 14258 "configure"
14259 #include "confdefs.h"
14261 #include <etip.h.in>
14271 rm -f conftest.$ac_objext
14272 if { (eval echo "$as_me:14272: \"$ac_compile\"") >&5
14273 (eval $ac_compile) 2>&5
14275 echo "$as_me:14275: \$? = $ac_status" >&5
14276 (exit $ac_status); } &&
14277 { ac_try='test -s conftest.$ac_objext'
14278 { (eval echo "$as_me:14278: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14281 echo "$as_me:14281: \$? = $ac_status" >&5
14282 (exit $ac_status); }; }; then
14284 test -n "$cf_math" && cat >>confdefs.h <<EOF
14285 #define ETIP_NEEDS_${cf_math} 1
14288 test -n "$cf_excp" && cat >>confdefs.h <<EOF
14289 #define ETIP_NEEDS_${cf_excp} 1
14292 cf_result="$cf_math $cf_excp"
14296 echo "$as_me: failed program was:" >&5
14297 cat conftest.$ac_ext >&5
14299 rm -f conftest.$ac_objext conftest.$ac_ext
14302 echo "$as_me:14302: result: $cf_result" >&5
14303 echo "${ECHO_T}$cf_result" >&6
14304 CXXFLAGS="$cf_save_CXXFLAGS"
14306 if test -n "$CXX"; then
14307 echo "$as_me:14307: checking if $CXX accepts parameter initialization" >&5
14308 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
14309 if test "${cf_cv_cpp_param_init+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 ac_cpp='$CXXCPP $CPPFLAGS'
14315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14318 ac_main_return=return
14320 if test "$cross_compiling" = yes; then
14321 cf_cv_cpp_param_init=unknown
14323 cat >conftest.$ac_ext <<_ACEOF
14324 #line 14324 "configure"
14325 #include "confdefs.h"
14335 TEST::TEST(int x = 1) // some compilers do not like second initializer
14342 rm -f conftest$ac_exeext
14343 if { (eval echo "$as_me:14343: \"$ac_link\"") >&5
14344 (eval $ac_link) 2>&5
14346 echo "$as_me:14346: \$? = $ac_status" >&5
14347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14348 { (eval echo "$as_me:14348: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14351 echo "$as_me:14351: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14353 cf_cv_cpp_param_init=yes
14355 echo "$as_me: program exited with status $ac_status" >&5
14356 echo "$as_me: failed program was:" >&5
14357 cat conftest.$ac_ext >&5
14358 cf_cv_cpp_param_init=no
14360 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14363 ac_cpp='$CXXCPP $CPPFLAGS'
14364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14367 ac_main_return=return
14370 echo "$as_me:14370: result: $cf_cv_cpp_param_init" >&5
14371 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
14373 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
14374 #define CPP_HAS_PARAM_INIT 1
14377 if test -n "$CXX"; then
14379 echo "$as_me:14379: checking if $CXX accepts static_cast" >&5
14380 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
14381 if test "${cf_cv_cpp_static_cast+set}" = set; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 ac_cpp='$CXXCPP $CPPFLAGS'
14387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14390 ac_main_return=return
14392 cat >conftest.$ac_ext <<_ACEOF
14393 #line 14393 "configure"
14394 #include "confdefs.h"
14399 NCursesPanel(int nlines,
14409 template<class T> class NCursesUserPanel : public NCursesPanel
14412 NCursesUserPanel (int nlines,
14416 const T* p_UserData = static_cast<T*>(0))
14417 : NCursesPanel (nlines, ncols, begin_y, begin_x)
14420 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
14424 virtual ~NCursesUserPanel() {};
14431 const char* p_UserData = static_cast<char*>(0)
14436 rm -f conftest.$ac_objext
14437 if { (eval echo "$as_me:14437: \"$ac_compile\"") >&5
14438 (eval $ac_compile) 2>&5
14440 echo "$as_me:14440: \$? = $ac_status" >&5
14441 (exit $ac_status); } &&
14442 { ac_try='test -s conftest.$ac_objext'
14443 { (eval echo "$as_me:14443: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14446 echo "$as_me:14446: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
14448 cf_cv_cpp_static_cast=yes
14450 echo "$as_me: failed program was:" >&5
14451 cat conftest.$ac_ext >&5
14452 cf_cv_cpp_static_cast=no
14454 rm -f conftest.$ac_objext conftest.$ac_ext
14457 ac_cpp='$CXXCPP $CPPFLAGS'
14458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14461 ac_main_return=return
14464 echo "$as_me:14464: result: $cf_cv_cpp_static_cast" >&5
14465 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
14469 test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
14470 #define CPP_HAS_STATIC_CAST 1
14474 CXX_AR_OPTS='$(AR_OPTS)'
14475 case $cf_cv_system_name in #(vi
14477 if test "$GXX" != yes ; then
14479 CXX_AR_OPTS='-ar -o'
14483 CXXLDFLAGS="-u main"
14486 if test "$GXX" != yes ; then
14488 CXX_AR_OPTS='-xar -o'
14495 cf_cv_builtin_bool=1
14497 # Just because we are not configuring against C++ right now does not
14498 # mean that a user will not want to use C++. Some distributors disable
14499 # the C++ portion of this configuration as a shortcut (or just to avoid
14500 # compiling the demo in the c++ directory). So we need a reasonable
14501 # default for the 'bool' type.
14503 # Caveat: since the storage of the bool type is not standardized, it
14506 if test "$NCURSES_BOOL" != auto ; then
14507 cf_cv_type_of_bool=$NCURSES_BOOL
14508 cf_cv_header_stdbool_h=0
14510 if test "$cf_cv_header_stdbool_h" = 1 ; then
14512 echo "$as_me:14512: checking for size of bool" >&5
14513 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
14514 if test "${cf_cv_type_of_bool+set}" = set; then
14515 echo $ECHO_N "(cached) $ECHO_C" >&6
14519 if test "$cross_compiling" = yes; then
14520 cf_cv_type_of_bool=unknown
14522 cat >conftest.$ac_ext <<_ACEOF
14523 #line 14523 "configure"
14524 #include "confdefs.h"
14526 #include <stdlib.h>
14529 #if defined(__cplusplus)
14531 #ifdef HAVE_GXX_BUILTIN_H
14532 #include <g++/builtin.h>
14533 #elif HAVE_GPP_BUILTIN_H
14534 #include <gpp/builtin.h>
14535 #elif HAVE_BUILTIN_H
14536 #include <builtin.h>
14541 #if $cf_cv_header_stdbool_h
14542 #include <stdbool.h>
14549 FILE *fp = fopen("cf_test.out", "w");
14552 if ((bool)(-x) >= 0)
14553 fputs("unsigned ", fp);
14554 if (sizeof(x) == sizeof(int)) fputs("int", fp);
14555 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
14556 else if (sizeof(x) == sizeof(short))fputs("short",fp);
14557 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
14560 ${cf_cv_main_return:-return}(0);
14564 rm -f conftest$ac_exeext
14565 if { (eval echo "$as_me:14565: \"$ac_link\"") >&5
14566 (eval $ac_link) 2>&5
14568 echo "$as_me:14568: \$? = $ac_status" >&5
14569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14570 { (eval echo "$as_me:14570: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14573 echo "$as_me:14573: \$? = $ac_status" >&5
14574 (exit $ac_status); }; }; then
14575 cf_cv_type_of_bool=`cat cf_test.out`
14576 if test -z "$cf_cv_type_of_bool"; then
14577 cf_cv_type_of_bool=unknown
14580 echo "$as_me: program exited with status $ac_status" >&5
14581 echo "$as_me: failed program was:" >&5
14582 cat conftest.$ac_ext >&5
14583 cf_cv_type_of_bool=unknown
14585 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14591 echo "$as_me:14591: result: $cf_cv_type_of_bool" >&5
14592 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
14593 if test "$cf_cv_type_of_bool" = unknown ; then
14594 case .$NCURSES_BOOL in #(vi
14595 .auto|.) NCURSES_BOOL=unsigned;;
14597 { echo "$as_me:14597: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
14598 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
14599 cf_cv_type_of_bool=$NCURSES_BOOL
14603 echo "$as_me:14603: checking for fallback type of bool" >&5
14604 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
14605 case "$host_cpu" in #(vi
14606 i?86) cf_cv_type_of_bool=char ;; #(vi
14607 *) cf_cv_type_of_bool=int ;;
14609 echo "$as_me:14609: result: $cf_cv_type_of_bool" >&5
14610 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
14615 # If the C compiler did not declare bool, and we did not determine that the C++
14616 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
14617 # ncurses library use the same type as C++ bool. Note that this allows one to
14618 # specify the type of bool in a configure-script option and postpone
14619 # integration with the C++ compiler provided that the types are compatible.
14621 if test $cf_cv_cc_bool_type = 1
14623 # oops: C has a bool. Unlikely, but C++ could differ.
14625 elif test $cf_cv_builtin_bool = 0
14630 # this is the normal case
14631 USE_CXX_BOOL='defined(__cplusplus)'
14634 if test -f "${srcdir}/Ada95/Makefile.in" ; then
14635 if test "$cf_with_ada" != "no" ; then
14636 cf_ada_make=gnatmake
14637 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
14638 set dummy $cf_ada_make; ac_word=$2
14639 echo "$as_me:14639: checking for $ac_word" >&5
14640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14641 if test "${ac_cv_prog_gnat_exists+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 if test -n "$gnat_exists"; then
14645 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
14647 ac_save_IFS=$IFS; IFS=$ac_path_separator
14649 for ac_dir in $ac_dummy; do
14651 test -z "$ac_dir" && ac_dir=.
14652 $as_executable_p "$ac_dir/$ac_word" || continue
14653 ac_cv_prog_gnat_exists="yes"
14654 echo "$as_me:14654: found $ac_dir/$ac_word" >&5
14658 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
14661 gnat_exists=$ac_cv_prog_gnat_exists
14662 if test -n "$gnat_exists"; then
14663 echo "$as_me:14663: result: $gnat_exists" >&5
14664 echo "${ECHO_T}$gnat_exists" >&6
14666 echo "$as_me:14666: result: no" >&5
14667 echo "${ECHO_T}no" >&6
14670 if test "$ac_cv_prog_gnat_exists" = no; then
14674 echo "$as_me:14674: checking for gnat version" >&5
14675 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
14676 cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
14677 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
14678 echo "$as_me:14678: result: $cf_gnat_version" >&5
14679 echo "${ECHO_T}$cf_gnat_version" >&6
14681 case $cf_gnat_version in
14682 3.1[1-9]*|3.[2-9]*|[4-9].*)
14683 cf_cv_prog_gnat_correct=yes
14685 *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
14686 cf_cv_prog_gnat_correct=no
14689 case $cf_gnat_version in
14691 cf_compile_generics=generics
14692 cf_generic_objects="\${GENOBJS}"
14694 *) cf_compile_generics=
14695 cf_generic_objects=
14699 # Extract the first word of "m4", so it can be a program name with args.
14700 set dummy m4; ac_word=$2
14701 echo "$as_me:14701: checking for $ac_word" >&5
14702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14703 if test "${ac_cv_prog_M4_exists+set}" = set; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6
14706 if test -n "$M4_exists"; then
14707 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
14709 ac_save_IFS=$IFS; IFS=$ac_path_separator
14711 for ac_dir in $ac_dummy; do
14713 test -z "$ac_dir" && ac_dir=.
14714 $as_executable_p "$ac_dir/$ac_word" || continue
14715 ac_cv_prog_M4_exists="yes"
14716 echo "$as_me:14716: found $ac_dir/$ac_word" >&5
14720 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
14723 M4_exists=$ac_cv_prog_M4_exists
14724 if test -n "$M4_exists"; then
14725 echo "$as_me:14725: result: $M4_exists" >&5
14726 echo "${ECHO_T}$M4_exists" >&6
14728 echo "$as_me:14728: result: no" >&5
14729 echo "${ECHO_T}no" >&6
14732 if test "$ac_cv_prog_M4_exists" = no; then
14733 cf_cv_prog_gnat_correct=no
14734 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
14736 if test "$cf_cv_prog_gnat_correct" = yes; then
14737 echo "$as_me:14737: checking if GNAT works" >&5
14738 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
14741 cat >>conftest.ads <<CF_EOF
14742 procedure conftest;
14744 cat >>conftest.adb <<CF_EOF
14747 procedure conftest is
14749 Text_IO.Put ("Hello World");
14751 GNAT.OS_Lib.OS_Exit (0);
14754 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
14755 if ( ./conftest 1>&5 2>&1 ) ; then
14756 cf_cv_prog_gnat_correct=yes
14758 cf_cv_prog_gnat_correct=no
14761 cf_cv_prog_gnat_correct=no
14765 echo "$as_me:14765: result: $cf_cv_prog_gnat_correct" >&5
14766 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
14769 if test "$cf_cv_prog_gnat_correct" = yes; then
14770 ADAFLAGS="-O3 -gnatpn $ADAFLAGS"
14772 echo "$as_me:14772: checking if GNAT pragma Unreferenced works" >&5
14773 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
14776 cat >>conftest.ads <<CF_EOF
14777 procedure conftest;
14779 cat >>conftest.adb <<CF_EOF
14782 procedure conftest is
14784 pragma Unreferenced (test);
14787 Text_IO.Put ("Hello World");
14789 GNAT.OS_Lib.OS_Exit (0);
14792 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
14793 cf_cv_pragma_unreferenced=yes
14795 cf_cv_pragma_unreferenced=no
14799 echo "$as_me:14799: result: $cf_cv_pragma_unreferenced" >&5
14800 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
14802 # if the pragma is supported, use it (needed in the Trace code).
14803 if test $cf_cv_pragma_unreferenced = yes ; then
14809 # Check whether --with-ada-compiler or --without-ada-compiler was given.
14810 if test "${with_ada_compiler+set}" = set; then
14811 withval="$with_ada_compiler"
14812 cf_ada_compiler=$withval
14814 cf_ada_compiler=gnatmake
14817 cf_ada_package=terminal_interface
14819 # Check whether --with-ada-include or --without-ada-include was given.
14820 if test "${with_ada_include+set}" = set; then
14821 withval="$with_ada_include"
14824 withval="${ADA_INCLUDE-$prefix/lib/ada/adainclude}"
14826 if test "x$prefix" != xNONE; then
14827 cf_path_syntax="$prefix"
14829 cf_path_syntax="$ac_default_prefix"
14832 case ".$withval" in #(vi
14833 .\$\(*\)*|.\'*\'*) #(vi
14837 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
14839 .\${*prefix}*) #(vi
14840 eval withval="$withval"
14841 case ".$withval" in #(vi
14843 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
14848 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
14851 { { echo "$as_me:14851: error: expected a pathname, not \"$withval\"" >&5
14852 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
14853 { (exit 1); exit 1; }; }
14857 ADA_INCLUDE="$withval"
14859 # Check whether --with-ada-objects or --without-ada-objects was given.
14860 if test "${with_ada_objects+set}" = set; then
14861 withval="$with_ada_objects"
14864 withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
14866 if test "x$prefix" != xNONE; then
14867 cf_path_syntax="$prefix"
14869 cf_path_syntax="$ac_default_prefix"
14872 case ".$withval" in #(vi
14873 .\$\(*\)*|.\'*\'*) #(vi
14877 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
14879 .\${*prefix}*) #(vi
14880 eval withval="$withval"
14881 case ".$withval" in #(vi
14883 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
14888 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
14891 { { echo "$as_me:14891: error: expected a pathname, not \"$withval\"" >&5
14892 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
14893 { (exit 1); exit 1; }; }
14897 ADA_OBJECTS="$withval"
14905 ### Construct the ncurses library-subsets, if any, from this set of keywords:
14906 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
14908 ### ticlib modules may be a separate library, otherwise contained in termlib.
14909 ### termlib modules may be a separate library, otherwise contained in ncurses.
14911 ### The of "+" or " " between the tokens controls the way the script
14912 ### chooses to split module lists into libraries.
14914 ### (see CF_LIB_RULES).
14915 echo "$as_me:14915: checking for library subsets" >&5
14916 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
14919 if test "$cf_with_progs" = yes || test "$with_ticlib" != no; then
14920 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
14921 if test "$with_ticlib" != no ; then
14922 LIB_SUBSETS="${LIB_SUBSETS} "
14924 LIB_SUBSETS="${LIB_SUBSETS}+"
14928 LIB_SUBSETS="${LIB_SUBSETS}termlib"
14929 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
14930 if test "$with_termlib" != no ; then
14931 LIB_SUBSETS="${LIB_SUBSETS} "
14933 LIB_SUBSETS="${LIB_SUBSETS}+"
14936 LIB_SUBSETS="${LIB_SUBSETS}base"
14937 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
14938 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
14940 echo "$as_me:14940: result: $LIB_SUBSETS" >&5
14941 echo "${ECHO_T}$LIB_SUBSETS" >&6
14943 ### Construct the list of include-directories to be generated
14945 CPPFLAGS="-I. -I../include $CPPFLAGS"
14946 if test "$srcdir" != "."; then
14947 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
14949 if test "$GCC" != yes; then
14950 CPPFLAGS="$CPPFLAGS -I\${includedir}"
14951 elif test "$includedir" != "/usr/include"; then
14952 if test "$includedir" = '${prefix}/include' ; then
14953 if test $prefix != /usr ; then
14954 CPPFLAGS="$CPPFLAGS -I\${includedir}"
14957 CPPFLAGS="$CPPFLAGS -I\${includedir}"
14961 ACPPFLAGS="-I. -I../../include $ACPPFLAGS"
14962 if test "$srcdir" != "."; then
14963 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
14965 if test "$GCC" != yes; then
14966 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
14967 elif test "$includedir" != "/usr/include"; then
14968 if test "$includedir" = '${prefix}/include' ; then
14969 if test $prefix != /usr ; then
14970 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
14973 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
14977 ### Build up pieces for makefile rules
14978 echo "$as_me:14978: checking default library suffix" >&5
14979 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
14981 case $DFT_LWR_MODEL in
14982 libtool) DFT_ARG_SUFFIX='' ;;
14983 normal) DFT_ARG_SUFFIX='' ;;
14984 debug) DFT_ARG_SUFFIX='_g' ;;
14985 profile) DFT_ARG_SUFFIX='_p' ;;
14986 shared) DFT_ARG_SUFFIX='' ;;
14988 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
14989 echo "$as_me:14989: result: $DFT_ARG_SUFFIX" >&5
14990 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
14992 echo "$as_me:14992: checking default library-dependency suffix" >&5
14993 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
14995 case $DFT_LWR_MODEL in
14996 libtool) DFT_DEP_SUFFIX='.la' ;;
14997 normal) DFT_DEP_SUFFIX='.a' ;;
14998 debug) DFT_DEP_SUFFIX='_g.a' ;;
14999 profile) DFT_DEP_SUFFIX='_p.a' ;;
15001 case $cf_cv_system_name in
15002 cygwin*) DFT_DEP_SUFFIX='.dll' ;;
15003 darwin*) DFT_DEP_SUFFIX='.dylib' ;;
15006 ia64*) DFT_DEP_SUFFIX='.so' ;;
15007 *) DFT_DEP_SUFFIX='.sl' ;;
15010 *) DFT_DEP_SUFFIX='.so' ;;
15013 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
15014 if test $DFT_LWR_MODEL = shared ; then
15015 case $cf_cv_system_name in #(vi
15017 DFT_DEP_SUFFIX=".dll.a"
15021 echo "$as_me:15021: result: $DFT_DEP_SUFFIX" >&5
15022 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
15024 echo "$as_me:15024: checking default object directory" >&5
15025 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
15027 case $DFT_LWR_MODEL in
15028 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
15029 normal) DFT_OBJ_SUBDIR='objects' ;;
15030 debug) DFT_OBJ_SUBDIR='obj_g' ;;
15031 profile) DFT_OBJ_SUBDIR='obj_p' ;;
15033 case $cf_cv_system_name in #(vi
15035 DFT_OBJ_SUBDIR='objects' ;;
15037 DFT_OBJ_SUBDIR='obj_s' ;;
15040 echo "$as_me:15040: result: $DFT_OBJ_SUBDIR" >&5
15041 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
15043 # libtool thinks it can make c++ shared libraries (perhaps only g++)
15044 if test "$cf_with_cxx" = yes ; then
15045 echo "$as_me:15045: checking c++ library-dependency suffix" >&5
15046 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
15047 if test "$with_libtool" != "no"; then
15048 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
15052 libtool) CXX_LIB_SUFFIX='.la' ;;
15053 normal) CXX_LIB_SUFFIX='.a' ;;
15054 debug) CXX_LIB_SUFFIX='_g.a' ;;
15055 profile) CXX_LIB_SUFFIX='_p.a' ;;
15057 case $cf_cv_system_name in
15058 cygwin*) CXX_LIB_SUFFIX='.dll' ;;
15059 darwin*) CXX_LIB_SUFFIX='.dylib' ;;
15062 ia64*) CXX_LIB_SUFFIX='.so' ;;
15063 *) CXX_LIB_SUFFIX='.sl' ;;
15066 *) CXX_LIB_SUFFIX='.so' ;;
15069 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
15071 echo "$as_me:15071: result: $CXX_LIB_SUFFIX" >&5
15072 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
15076 # do not want -ldl in build except as needed for -lncurses dependency
15077 if test "$with_dlsym" = yes ; then
15078 if test $DFT_LWR_MODEL = shared || \
15079 test $DFT_LWR_MODEL = libtool ; then
15081 # remove dl library from $LIBS
15082 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
15086 ### Set up low-level terminfo dependencies for makefiles.
15088 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
15089 # do not need libdl
15091 if test "$with_dlsym" = yes ; then
15093 # remove dl library from $SHLIB_LIST
15094 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
15098 if test "$with_ticlib" != no ; then
15100 if test "$with_ticlib" != yes ; then
15101 TICS_NAME=$with_ticlib
15102 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
15103 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
15104 TICS_LIB_SUFFIX="${with_ticlib}"
15106 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
15107 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
15108 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
15110 TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}"
15112 TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
15115 if test "$with_termlib" != no ; then
15117 if test "$with_termlib" != yes ; then
15118 TINFO_NAME=$with_termlib
15119 TINFO_SUFFIX="`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
15120 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
15121 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
15122 TINFO_LIB_SUFFIX="${with_termlib}"
15124 TINFO_SUFFIX=${DFT_DEP_SUFFIX}
15125 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
15126 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
15127 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
15130 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
15131 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
15132 if test "$DFT_LWR_MODEL" = "libtool"; then
15133 TEST_ARGS="${TEST_DEPS}"
15134 TEST_ARG2="${TEST_DEP2}"
15135 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
15137 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
15138 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
15139 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
15140 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
15141 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
15144 # the next lines are needed for linking libtic over libncurses
15145 TINFO_NAME=${LIB_NAME}
15146 TINFO_SUFFIX=${DFT_DEP_SUFFIX}
15147 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
15148 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
15150 TINFO_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
15153 if test "$with_dlsym" = yes ; then
15155 # remove dl library from $TICS_LIST
15156 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
15161 TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`
15163 echo "$as_me:15163: checking where we will install curses.h" >&5
15164 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
15165 test "$with_overwrite" = no && \
15166 test "x$includedir" = 'x${prefix}/include' && \
15167 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
15168 echo "$as_me:15168: result: $includedir" >&5
15169 echo "${ECHO_T}$includedir" >&6
15171 ### Resolve a conflict between normal and wide-curses by forcing applications
15172 ### that will need libutf8 to add it to their configure script.
15173 if test "$with_overwrite" != no ; then
15174 if test "$NCURSES_LIBUTF8" = 1 ; then
15175 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
15176 { echo "$as_me:15176: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
15177 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
15181 # used to separate tack out of the tree
15184 ### predefined stuff for the test programs
15185 cat >>confdefs.h <<\EOF
15186 #define HAVE_SLK_COLOR 1
15189 ### Construct the list of subdirectories for which we'll customize makefiles
15190 ### with the appropriate compile-rules.
15192 echo "$as_me:15192: checking for src modules" >&5
15193 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
15195 # dependencies and linker-arguments for test-programs
15196 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
15197 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
15198 if test "$DFT_LWR_MODEL" = "libtool"; then
15199 TEST_ARGS="${TEST_DEPS}"
15200 TEST_ARG2="${TEST_DEP2}"
15202 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
15203 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
15207 for cf_dir in $modules_to_build
15209 if test -f $srcdir/$cf_dir/modules; then
15211 # We may/may not have tack in the distribution, though the
15213 if test $cf_dir = tack ; then
15214 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
15219 if test -z "$cf_cv_src_modules"; then
15220 cf_cv_src_modules=$cf_dir
15222 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
15225 # Make the ncurses_cfg.h file record the library interface files as
15226 # well. These are header files that are the same name as their
15227 # directory. Ncurses is the only library that does not follow
15229 if test $cf_dir = tack ; then
15231 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
15233 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15235 cat >>confdefs.h <<EOF
15236 #define HAVE_${cf_have_include}_H 1
15239 cat >>confdefs.h <<EOF
15240 #define HAVE_LIB${cf_have_include} 1
15243 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
15244 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
15245 if test "$DFT_LWR_MODEL" = "libtool"; then
15246 TEST_ARGS="${TEST_DEPS}"
15247 TEST_ARG2="${TEST_DEP2}"
15249 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
15250 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
15255 echo "$as_me:15255: result: $cf_cv_src_modules" >&5
15256 echo "${ECHO_T}$cf_cv_src_modules" >&6
15258 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
15259 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
15261 SRC_SUBDIRS="man include"
15262 for cf_dir in $cf_cv_src_modules
15264 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
15266 SRC_SUBDIRS="$SRC_SUBDIRS test"
15267 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
15268 test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
15271 if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
15272 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
15273 ADA_SUBDIRS="gen src samples"
15277 for cf_dir in $SRC_SUBDIRS
15279 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
15282 if test -n "$ADA_SUBDIRS"; then
15283 for cf_dir in $ADA_SUBDIRS
15285 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
15290 if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
15291 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses-config"
15295 for cf_item in $cf_list_models
15299 libtool) cf_subdir='obj_lo' ;;
15300 normal) cf_subdir='objects' ;;
15301 debug) cf_subdir='obj_g' ;;
15302 profile) cf_subdir='obj_p' ;;
15304 case $cf_cv_system_name in #(vi
15306 cf_subdir='objects' ;;
15308 cf_subdir='obj_s' ;;
15312 for cf_item2 in $DIRS_TO_MAKE
15314 test $cf_item2 = $cf_subdir && break
15316 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
15318 for cf_dir in $DIRS_TO_MAKE
15320 test ! -d $cf_dir && mkdir $cf_dir
15323 cat >>confdefs.h <<EOF
15324 #define NCURSES_PATHSEP '$PATHSEP'
15327 cat >>confdefs.h <<EOF
15328 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
15331 ### Now that we're done running tests, add the compiler-warnings, if any
15336 cf_new_extra_cppflags=
15338 for cf_add_cflags in $EXTRA_CFLAGS
15340 case $cf_fix_cppflags in
15342 case $cf_add_cflags in #(vi
15343 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
15344 case $cf_add_cflags in
15346 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15348 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15349 && test -z "${cf_tst_cflags}" \
15350 && cf_fix_cppflags=yes
15352 if test $cf_fix_cppflags = yes ; then
15353 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15355 elif test "${cf_tst_cflags}" = "\"'" ; then
15356 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15361 case "$CPPFLAGS" in
15362 *$cf_add_cflags) #(vi
15365 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15370 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15375 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15377 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15379 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15380 && test -z "${cf_tst_cflags}" \
15381 && cf_fix_cppflags=no
15386 if test -n "$cf_new_cflags" ; then
15388 CFLAGS="$CFLAGS $cf_new_cflags"
15391 if test -n "$cf_new_cppflags" ; then
15393 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
15396 if test -n "$cf_new_extra_cppflags" ; then
15398 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15401 ### Define substitutions for header files to avoid name-pollution
15403 if test "$cf_cv_have_tcgetattr" = yes ; then
15409 if test "$ac_cv_header_termio_h" = yes ; then
15415 if test "$ac_cv_header_termios_h" = yes ; then
15421 ################################################################################
15422 test "$use_database" = yes && SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
15423 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
15424 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"
15425 ac_config_commands="$ac_config_commands default"
15426 cat >confcache <<\_ACEOF
15427 # This file is a shell script that caches the results of configure
15428 # tests run on this system so they can be shared between configure
15429 # scripts and configure runs, see configure's option --config-cache.
15430 # It is not useful on other systems. If it contains results you don't
15431 # want to keep, you may remove or edit it.
15433 # config.status only pays attention to the cache file if you give it
15434 # the --recheck option to rerun configure.
15436 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15437 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15438 # following values.
15442 # The following way of writing the cache mishandles newlines in values,
15443 # but we know of no workaround that is simple, portable, and efficient.
15444 # So, don't put newlines in cache variables' values.
15445 # Ultrix sh set writes to stderr and can't be redirected directly,
15446 # and sets the high bit in the cache file unless we assign to the vars.
15449 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15451 # `set' does not quote correctly, so add quotes (double-quote
15452 # substitution turns \\\\ into \\, and sed turns \\ into \).
15455 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15458 # `set' quotes correctly as required by POSIX, so do not add quotes.
15460 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15467 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15469 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15471 if cmp -s $cache_file confcache; then :; else
15472 if test -w $cache_file; then
15473 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15474 cat confcache >$cache_file
15476 echo "not updating unwritable cache $cache_file"
15481 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15482 # Let make expand exec_prefix.
15483 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15485 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15486 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15487 # trailing colons and then remove the whole line if VPATH becomes empty
15488 # (actually we leave an empty line to preserve line numbers).
15489 if test "x$srcdir" = x.; then
15490 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15491 s/:*\$(srcdir):*/:/;
15492 s/:*\${srcdir}:*/:/;
15494 s/^\([^=]*=[ ]*\):*/\1/;
15500 DEFS=-DHAVE_CONFIG_H
15502 : ${CONFIG_STATUS=./config.status}
15503 ac_clean_files_save=$ac_clean_files
15504 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15505 { echo "$as_me:15505: creating $CONFIG_STATUS" >&5
15506 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15507 cat >$CONFIG_STATUS <<_ACEOF
15509 # Generated automatically by configure.
15510 # Run this file to recreate the current configuration.
15511 # Compiler output produced by configure, useful for debugging
15512 # configure, is in config.log if it exists.
15515 SHELL=\${CONFIG_SHELL-$SHELL}
15516 ac_cs_invocation="\$0 \$@"
15520 cat >>$CONFIG_STATUS <<\_ACEOF
15521 # Be Bourne compatible
15522 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15525 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15529 # Name of the executable.
15530 as_me=`echo "$0" |sed 's,.*[\\/],,'`
15532 if expr a : '\(a\)' >/dev/null 2>&1; then
15538 rm -f conf$$ conf$$.exe conf$$.file
15540 if ln -s conf$$.file conf$$ 2>/dev/null; then
15541 # We could just check for DJGPP; but this test a) works b) is more generic
15542 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15543 if test -f conf$$.exe; then
15544 # Don't use ln at all; we don't have any links
15549 elif ln conf$$.file conf$$ 2>/dev/null; then
15554 rm -f conf$$ conf$$.exe conf$$.file
15556 as_executable_p="test -f"
15558 # Support unset when possible.
15559 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15566 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
15567 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
15568 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
15569 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
15570 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
15571 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
15572 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
15573 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
15576 # We need space, tab and new line, in precisely that order.
15582 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
15588 # Files that config.status was made for.
15589 if test -n "$ac_config_files"; then
15590 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15593 if test -n "$ac_config_headers"; then
15594 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15597 if test -n "$ac_config_links"; then
15598 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15601 if test -n "$ac_config_commands"; then
15602 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15605 cat >>$CONFIG_STATUS <<\EOF
15608 \`$as_me' instantiates files from templates according to the
15609 current configuration.
15611 Usage: $0 [OPTIONS] [FILE]...
15613 -h, --help print this help, then exit
15614 -V, --version print version number, then exit
15615 -d, --debug don't remove temporary files
15616 --recheck update $as_me by reconfiguring in the same conditions
15617 --file=FILE[:TEMPLATE]
15618 instantiate the configuration file FILE
15619 --header=FILE[:TEMPLATE]
15620 instantiate the configuration header FILE
15622 Configuration files:
15625 Configuration headers:
15628 Configuration commands:
15631 Report bugs to <bug-autoconf@gnu.org>."
15634 cat >>$CONFIG_STATUS <<EOF
15637 configured by $0, generated by GNU Autoconf 2.52.20061216,
15638 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15640 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15641 Free Software Foundation, Inc.
15642 This config.status script is free software; the Free Software Foundation
15643 gives unlimited permission to copy, distribute and modify it."
15648 cat >>$CONFIG_STATUS <<\EOF
15649 # If no file are specified by the user, then we need to provide default
15650 # value. By we need to know if files were specified by the user.
15656 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15657 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15659 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
15663 *) # This is not an option, so the user has probably given explicit
15665 ac_need_defaults=false;;
15669 # Handling of the options.
15671 cat >>$CONFIG_STATUS <<EOF
15672 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15673 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
15674 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
15676 cat >>$CONFIG_STATUS <<\EOF
15677 --version | --vers* | -V )
15678 echo "$ac_cs_version"; exit 0 ;;
15680 # Conflict between --help and --header
15681 { { echo "$as_me:15681: error: ambiguous option: $1
15682 Try \`$0 --help' for more information." >&5
15683 echo "$as_me: error: ambiguous option: $1
15684 Try \`$0 --help' for more information." >&2;}
15685 { (exit 1); exit 1; }; };;
15686 --help | --hel | -h )
15687 echo "$ac_cs_usage"; exit 0 ;;
15688 --debug | --d* | -d )
15690 --file | --fil | --fi | --f )
15692 CONFIG_FILES="$CONFIG_FILES $1"
15693 ac_need_defaults=false;;
15694 --header | --heade | --head | --hea )
15696 CONFIG_HEADERS="$CONFIG_HEADERS $1"
15697 ac_need_defaults=false;;
15699 # This is an error.
15700 -*) { { echo "$as_me:15700: error: unrecognized option: $1
15701 Try \`$0 --help' for more information." >&5
15702 echo "$as_me: error: unrecognized option: $1
15703 Try \`$0 --help' for more information." >&2;}
15704 { (exit 1); exit 1; }; } ;;
15706 *) ac_config_targets="$ac_config_targets $1" ;;
15715 ## ----------------------- ##
15716 ## Running config.status. ##
15717 ## ----------------------- ##
15719 This file was extended by $as_me 2.52.20061216, executed with
15720 CONFIG_FILES = $CONFIG_FILES
15721 CONFIG_HEADERS = $CONFIG_HEADERS
15722 CONFIG_LINKS = $CONFIG_LINKS
15723 CONFIG_COMMANDS = $CONFIG_COMMANDS
15724 > $ac_cs_invocation
15725 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15730 cat >>$CONFIG_STATUS <<EOF
15732 # INIT-COMMANDS section.
15735 ### Special initialization commands, used to pass information from the
15736 ### configuration-run into config.status
15739 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
15740 DFT_LWR_MODEL="$DFT_LWR_MODEL"
15741 ECHO_LINK="$ECHO_LINK"
15742 LDCONFIG="$LDCONFIG"
15743 LIB_NAME="$LIB_NAME"
15744 LIB_SUBSETS="$LIB_SUBSETS"
15745 LIB_SUFFIX="$LIB_SUFFIX"
15746 LIB_TRACING="$LIB_TRACING"
15747 MAKE_TERMINFO="$MAKE_TERMINFO"
15748 NCURSES_MAJOR="$NCURSES_MAJOR"
15749 NCURSES_MINOR="$NCURSES_MINOR"
15750 NCURSES_OSPEED="$NCURSES_OSPEED"
15751 NCURSES_PATCH="$NCURSES_PATCH"
15752 SRC_SUBDIRS="$SRC_SUBDIRS"
15753 TERMINFO="$TERMINFO"
15754 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
15755 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
15756 TINFO_NAME="$TINFO_NAME"
15757 TINFO_SUFFIX="$TINFO_SUFFIX"
15758 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
15759 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
15760 TICS_NAME="$TICS_NAME"
15761 WITH_CURSES_H="$with_curses_h"
15762 WITH_ECHO="$with_echo"
15763 WITH_OVERWRITE="$with_overwrite"
15764 cf_LIST_MODELS="$cf_list_models"
15765 cf_cv_abi_version="$cf_cv_abi_version"
15766 cf_cv_do_relink="$cf_cv_do_relink"
15767 cf_cv_do_symlinks="$cf_cv_do_symlinks"
15768 cf_cv_enable_lp64="$cf_cv_enable_lp64"
15769 cf_cv_enable_opaque="$cf_cv_enable_opaque"
15770 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
15771 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
15772 cf_cv_rel_version="$cf_cv_rel_version"
15773 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
15774 cf_cv_shlib_version="$cf_cv_shlib_version"
15775 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
15776 cf_cv_system_name="$cf_cv_system_name"
15777 cf_with_cxx_binding="$cf_with_cxx_binding"
15783 cat >>$CONFIG_STATUS <<\EOF
15784 for ac_config_target in $ac_config_targets
15786 case "$ac_config_target" in
15787 # Handling of arguments.
15788 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
15789 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
15790 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
15791 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
15792 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
15793 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15794 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15795 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
15796 *) { { echo "$as_me:15796: error: invalid argument: $ac_config_target" >&5
15797 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15798 { (exit 1); exit 1; }; };;
15802 # If the user did not use the arguments to specify the items to instantiate,
15803 # then the envvar interface is used. Set only those that are not.
15804 # We use the long form for the default assignment because of an extremely
15805 # bizarre bug on SunOS 4.1.3.
15806 if $ac_need_defaults; then
15807 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15808 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15809 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15812 # Create a temporary directory, and hook for its removal unless debugging.
15815 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15816 trap '{ (exit 1); exit 1; }' 1 2 13 15
15819 # Create a (secure) tmp directory for tmp files.
15822 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
15823 test -n "$tmp" && test -d "$tmp"
15826 tmp=$TMPDIR/cs$$-$RANDOM
15827 (umask 077 && mkdir $tmp)
15830 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
15831 { (exit 1); exit 1; }
15836 cat >>$CONFIG_STATUS <<EOF
15839 # CONFIG_FILES section.
15842 # No need to generate the scripts if there are no CONFIG_FILES.
15843 # This happens for instance when ./config.status config.h
15844 if test -n "\$CONFIG_FILES"; then
15845 # Protect against being on the right side of a sed subst in config.status.
15846 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15847 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15848 s,@SHELL@,$SHELL,;t t
15849 s,@exec_prefix@,$exec_prefix,;t t
15850 s,@prefix@,$prefix,;t t
15851 s,@program_transform_name@,$program_transform_name,;t t
15852 s,@bindir@,$bindir,;t t
15853 s,@sbindir@,$sbindir,;t t
15854 s,@libexecdir@,$libexecdir,;t t
15855 s,@datadir@,$datadir,;t t
15856 s,@sysconfdir@,$sysconfdir,;t t
15857 s,@sharedstatedir@,$sharedstatedir,;t t
15858 s,@localstatedir@,$localstatedir,;t t
15859 s,@libdir@,$libdir,;t t
15860 s,@includedir@,$includedir,;t t
15861 s,@oldincludedir@,$oldincludedir,;t t
15862 s,@infodir@,$infodir,;t t
15863 s,@mandir@,$mandir,;t t
15864 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15865 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15866 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15867 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15868 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15869 s,@build_alias@,$build_alias,;t t
15870 s,@host_alias@,$host_alias,;t t
15871 s,@target_alias@,$target_alias,;t t
15872 s,@ECHO_C@,$ECHO_C,;t t
15873 s,@ECHO_N@,$ECHO_N,;t t
15874 s,@ECHO_T@,$ECHO_T,;t t
15875 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15876 s,@DEFS@,$DEFS,;t t
15877 s,@LIBS@,$LIBS,;t t
15878 s,@top_builddir@,$top_builddir,;t t
15879 s,@EGREP@,$EGREP,;t t
15880 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
15881 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
15882 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
15883 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
15884 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
15885 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
15886 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
15887 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
15888 s,@build@,$build,;t t
15889 s,@build_cpu@,$build_cpu,;t t
15890 s,@build_vendor@,$build_vendor,;t t
15891 s,@build_os@,$build_os,;t t
15892 s,@host@,$host,;t t
15893 s,@host_cpu@,$host_cpu,;t t
15894 s,@host_vendor@,$host_vendor,;t t
15895 s,@host_os@,$host_os,;t t
15896 s,@target@,$target,;t t
15897 s,@target_cpu@,$target_cpu,;t t
15898 s,@target_vendor@,$target_vendor,;t t
15899 s,@target_os@,$target_os,;t t
15901 s,@CFLAGS@,$CFLAGS,;t t
15902 s,@LDFLAGS@,$LDFLAGS,;t t
15903 s,@CPPFLAGS@,$CPPFLAGS,;t t
15904 s,@ac_ct_CC@,$ac_ct_CC,;t t
15905 s,@EXEEXT@,$EXEEXT,;t t
15906 s,@OBJEXT@,$OBJEXT,;t t
15908 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
15909 s,@PROG_EXT@,$PROG_EXT,;t t
15910 s,@LDCONFIG@,$LDCONFIG,;t t
15912 s,@CXXFLAGS@,$CXXFLAGS,;t t
15913 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
15915 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15916 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15917 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15918 s,@LINT@,$LINT,;t t
15919 s,@LINT_OPTS@,$LINT_OPTS,;t t
15920 s,@LN_S@,$LN_S,;t t
15921 s,@SET_MAKE@,$SET_MAKE,;t t
15922 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
15923 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
15924 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
15925 s,@RANLIB@,$RANLIB,;t t
15926 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15928 s,@ac_ct_LD@,$ac_ct_LD,;t t
15930 s,@ac_ct_AR@,$ac_ct_AR,;t t
15931 s,@AR_OPTS@,$AR_OPTS,;t t
15932 s,@DESTDIR@,$DESTDIR,;t t
15933 s,@BUILD_CC@,$BUILD_CC,;t t
15934 s,@BUILD_CPP@,$BUILD_CPP,;t t
15935 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
15936 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
15937 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
15938 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
15939 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
15940 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
15941 s,@cf_list_models@,$cf_list_models,;t t
15942 s,@LIBTOOL@,$LIBTOOL,;t t
15943 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
15944 s,@LIB_CREATE@,$LIB_CREATE,;t t
15945 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
15946 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
15947 s,@LIB_PREP@,$LIB_PREP,;t t
15948 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
15949 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
15950 s,@LIB_LINK@,$LIB_LINK,;t t
15951 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
15952 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
15953 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
15954 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
15955 s,@TICS_NAME@,$TICS_NAME,;t t
15956 s,@TINFO_NAME@,$TINFO_NAME,;t t
15957 s,@LIB_NAME@,$LIB_NAME,;t t
15958 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
15959 s,@CC_G_OPT@,$CC_G_OPT,;t t
15960 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
15961 s,@LD_MODEL@,$LD_MODEL,;t t
15962 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
15963 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
15964 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
15965 s,@LINK_PROGS@,$LINK_PROGS,;t t
15966 s,@LINK_TESTS@,$LINK_TESTS,;t t
15967 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
15968 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
15969 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
15970 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
15971 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
15972 s,@PATHSEP@,$PATHSEP,;t t
15973 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
15974 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
15975 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
15976 s,@TERMINFO@,$TERMINFO,;t t
15977 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
15978 s,@TERMPATH@,$TERMPATH,;t t
15979 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
15980 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
15981 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
15982 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
15983 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
15984 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
15985 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
15986 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
15987 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
15988 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
15989 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
15990 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
15991 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
15992 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
15993 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
15994 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
15995 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
15996 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
15997 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
15998 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
15999 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
16000 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
16001 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
16002 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
16003 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
16004 s,@ECHO_LINK@,$ECHO_LINK,;t t
16005 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
16006 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
16007 s,@ADA_TRACE@,$ADA_TRACE,;t t
16008 s,@MATH_LIB@,$MATH_LIB,;t t
16009 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
16010 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
16011 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
16012 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
16013 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
16014 s,@CXXCPP@,$CXXCPP,;t t
16015 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
16016 s,@CXX_AR@,$CXX_AR,;t t
16017 s,@CXX_AR_OPTS@,$CXX_AR_OPTS,;t t
16018 s,@CXXLIBS@,$CXXLIBS,;t t
16019 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
16020 s,@gnat_exists@,$gnat_exists,;t t
16021 s,@M4_exists@,$M4_exists,;t t
16022 s,@cf_ada_make@,$cf_ada_make,;t t
16023 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
16024 s,@cf_ada_package@,$cf_ada_package,;t t
16025 s,@ADAFLAGS@,$ADAFLAGS,;t t
16026 s,@cf_compile_generics@,$cf_compile_generics,;t t
16027 s,@cf_generic_objects@,$cf_generic_objects,;t t
16028 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
16029 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
16030 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
16031 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
16032 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
16033 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
16034 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
16035 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
16036 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
16037 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
16038 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
16039 s,@TICS_ARGS@,$TICS_ARGS,;t t
16040 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
16041 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
16042 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
16043 s,@TINFO_ARGS@,$TINFO_ARGS,;t t
16044 s,@TINFO_ARGS2@,$TINFO_ARGS2,;t t
16045 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
16046 s,@TICS_LIST@,$TICS_LIST,;t t
16047 s,@TINFO_LIST@,$TINFO_LIST,;t t
16048 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
16049 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
16050 s,@TEST_ARGS@,$TEST_ARGS,;t t
16051 s,@TEST_DEPS@,$TEST_DEPS,;t t
16052 s,@TEST_ARG2@,$TEST_ARG2,;t t
16053 s,@TEST_DEP2@,$TEST_DEP2,;t t
16054 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
16055 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
16056 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
16057 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
16058 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
16063 cat >>$CONFIG_STATUS <<\EOF
16064 # Split the substitutions into bite-sized pieces for seds with
16065 # small command number limits, like on Digital OSF/1 and HP-UX.
16066 ac_max_sed_lines=48
16067 ac_sed_frag=1 # Number of current file.
16068 ac_beg=1 # First line for current file.
16069 ac_end=$ac_max_sed_lines # Line after last line for current file.
16072 while $ac_more_lines; do
16073 if test $ac_beg -gt 1; then
16074 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16076 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16078 if test ! -s $tmp/subs.frag; then
16079 ac_more_lines=false
16081 # The purpose of the label and of the branching condition is to
16082 # speed up the sed processing (if there are no `@' at all, there
16083 # is no need to browse any of the substitutions).
16084 # These are the two extra sed commands mentioned above.
16086 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16087 if test -z "$ac_sed_cmds"; then
16088 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16090 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16092 ac_sed_frag=`expr $ac_sed_frag + 1`
16094 ac_end=`expr $ac_end + $ac_max_sed_lines`
16097 if test -z "$ac_sed_cmds"; then
16100 fi # test -n "$CONFIG_FILES"
16103 cat >>$CONFIG_STATUS <<\EOF
16104 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16105 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16107 - | *:- | *:-:* ) # input from stdin
16109 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16110 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16111 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16112 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16113 * ) ac_file_in=$ac_file.in ;;
16116 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16117 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16118 X"$ac_file" : 'X\(//\)[^/]' \| \
16119 X"$ac_file" : 'X\(//\)$' \| \
16120 X"$ac_file" : 'X\(/\)' \| \
16121 . : '\(.\)' 2>/dev/null ||
16123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16125 /^X\(\/\/\)$/{ s//\1/; q; }
16126 /^X\(\/\).*/{ s//\1/; q; }
16128 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16129 { case "$ac_dir" in
16130 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16134 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16135 case $as_mkdir_dir in
16136 # Skip DOS drivespec
16137 ?:) as_incr_dir=$as_mkdir_dir ;;
16139 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16140 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
16145 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
16146 # A "../" for each directory in $ac_dir_suffix.
16147 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
16149 ac_dir_suffix= ac_dots=
16154 if test -z "$ac_dots"; then
16157 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
16159 [\\/]* | ?:[\\/]* )
16160 ac_srcdir=$srcdir$ac_dir_suffix;
16161 ac_top_srcdir=$srcdir ;;
16162 *) # Relative path.
16163 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
16164 ac_top_srcdir=$ac_dots$srcdir ;;
16168 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16169 *) ac_INSTALL=$ac_dots$INSTALL ;;
16172 if test x"$ac_file" != x-; then
16173 { echo "$as_me:16173: creating $ac_file" >&5
16174 echo "$as_me: creating $ac_file" >&6;}
16177 # Let's still pretend it is `configure' which instantiates (i.e., don't
16178 # use $as_me), people would be surprised to read:
16179 # /* config.h. Generated automatically by config.status. */
16180 configure_input="Generated automatically from `echo $ac_file_in |
16181 sed 's,.*/,,'` by configure."
16183 # First look for the input files in the build tree, otherwise in the
16185 ac_file_inputs=`IFS=:
16186 for f in $ac_file_in; do
16188 -) echo $tmp/stdin ;;
16190 # Absolute (can't be DOS-style, as IFS=:)
16191 test -f "$f" || { { echo "$as_me:16191: error: cannot find input file: $f" >&5
16192 echo "$as_me: error: cannot find input file: $f" >&2;}
16193 { (exit 1); exit 1; }; }
16196 if test -f "$f"; then
16199 elif test -f "$srcdir/$f"; then
16204 { { echo "$as_me:16204: error: cannot find input file: $f" >&5
16205 echo "$as_me: error: cannot find input file: $f" >&2;}
16206 { (exit 1); exit 1; }; }
16209 done` || { (exit 1); exit 1; }
16211 cat >>$CONFIG_STATUS <<EOF
16215 cat >>$CONFIG_STATUS <<\EOF
16217 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16218 s,@configure_input@,$configure_input,;t t
16219 s,@srcdir@,$ac_srcdir,;t t
16220 s,@top_srcdir@,$ac_top_srcdir,;t t
16221 s,@INSTALL@,$ac_INSTALL,;t t
16222 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16224 if test x"$ac_file" != x-; then
16225 mv $tmp/out $ac_file
16233 cat >>$CONFIG_STATUS <<\EOF
16236 # CONFIG_HEADER section.
16239 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16240 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16242 # ac_d sets the value in "#define NAME VALUE" lines.
16243 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16244 ac_dB='[ ].*$,\1#\2'
16247 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16248 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16249 ac_iB='\([ ]\),\1#\2define\3'
16252 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16253 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16254 ac_uB='$,\1#\2define\3'
16258 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16259 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16261 - | *:- | *:-:* ) # input from stdin
16263 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16264 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16265 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16266 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16267 * ) ac_file_in=$ac_file.in ;;
16270 test x"$ac_file" != x- && { echo "$as_me:16270: creating $ac_file" >&5
16271 echo "$as_me: creating $ac_file" >&6;}
16273 # First look for the input files in the build tree, otherwise in the
16275 ac_file_inputs=`IFS=:
16276 for f in $ac_file_in; do
16278 -) echo $tmp/stdin ;;
16280 # Absolute (can't be DOS-style, as IFS=:)
16281 test -f "$f" || { { echo "$as_me:16281: error: cannot find input file: $f" >&5
16282 echo "$as_me: error: cannot find input file: $f" >&2;}
16283 { (exit 1); exit 1; }; }
16286 if test -f "$f"; then
16289 elif test -f "$srcdir/$f"; then
16294 { { echo "$as_me:16294: error: cannot find input file: $f" >&5
16295 echo "$as_me: error: cannot find input file: $f" >&2;}
16296 { (exit 1); exit 1; }; }
16299 done` || { (exit 1); exit 1; }
16300 # Remove the trailing spaces.
16301 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16305 # Transform confdefs.h into a list of #define's. We won't use it as a sed
16306 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
16307 # be either 'cat' or 'sort'.
16308 cat confdefs.h | uniq >conftest.vals
16310 # Break up conftest.vals because some shells have a limit on
16311 # the size of here documents, and old seds have small limits too.
16313 rm -f conftest.tail
16314 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
16315 while grep . conftest.vals >/dev/null
16317 # Write chunks of a limited-size here document to conftest.frag.
16318 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
16319 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
16320 echo 'CEOF' >> $CONFIG_STATUS
16321 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16322 rm -f conftest.vals
16323 mv conftest.tail conftest.vals
16325 rm -f conftest.vals
16327 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
16329 echo ' cat >> conftest.edit <<CEOF
16330 /@DEFS@/r conftest.frag
16333 sed -f conftest.edit $tmp/in > $tmp/out
16335 mv $tmp/out $tmp/in
16336 rm -f conftest.edit conftest.frag
16337 ' >> $CONFIG_STATUS
16339 cat >>$CONFIG_STATUS <<\EOF
16340 # Let's still pretend it is `configure' which instantiates (i.e., don't
16341 # use $as_me), people would be surprised to read:
16342 # /* config.h. Generated automatically by config.status. */
16343 if test x"$ac_file" = x-; then
16344 echo "/* Generated automatically by configure. */" >$tmp/config.h
16346 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
16348 cat $tmp/in >>$tmp/config.h
16350 if test x"$ac_file" != x-; then
16351 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16352 { echo "$as_me:16352: $ac_file is unchanged" >&5
16353 echo "$as_me: $ac_file is unchanged" >&6;}
16355 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16356 X"$ac_file" : 'X\(//\)[^/]' \| \
16357 X"$ac_file" : 'X\(//\)$' \| \
16358 X"$ac_file" : 'X\(/\)' \| \
16359 . : '\(.\)' 2>/dev/null ||
16361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16363 /^X\(\/\/\)$/{ s//\1/; q; }
16364 /^X\(\/\).*/{ s//\1/; q; }
16366 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16367 { case "$ac_dir" in
16368 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16372 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16373 case $as_mkdir_dir in
16374 # Skip DOS drivespec
16375 ?:) as_incr_dir=$as_mkdir_dir ;;
16377 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16378 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
16385 mv $tmp/config.h $ac_file
16389 rm -f $tmp/config.h
16393 cat >>$CONFIG_STATUS <<\EOF
16396 # CONFIG_COMMANDS section.
16398 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16399 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16400 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16407 if test ! -d $srcdir/$cf_dir; then
16409 elif test -f $srcdir/$cf_dir/programs; then
16410 $AWK -f $srcdir/test/mk-test.awk ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
16414 case $cf_cv_system_name in
16415 OS/2*) LIB_PREFIX='' ;;
16416 os2*) LIB_PREFIX='' ;;
16417 *) LIB_PREFIX='lib' ;;
16419 cf_prefix=$LIB_PREFIX
16421 for cf_dir in $SRC_SUBDIRS
16423 if test ! -d $srcdir/$cf_dir ; then
16425 elif test -f $srcdir/$cf_dir/modules; then
16429 for cf_item in $cf_LIST_MODELS
16433 libtool) cf_suffix='.la' ;;
16434 normal) cf_suffix='.a' ;;
16435 debug) cf_suffix='_g.a' ;;
16436 profile) cf_suffix='_p.a' ;;
16438 case $cf_cv_system_name in
16439 cygwin*) cf_suffix='.dll' ;;
16440 darwin*) cf_suffix='.dylib' ;;
16443 ia64*) cf_suffix='.so' ;;
16444 *) cf_suffix='.sl' ;;
16447 *) cf_suffix='.so' ;;
16450 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
16452 if test $cf_item = shared ; then
16453 if test "$cf_cv_do_symlinks" = yes ; then
16454 case "$cf_cv_shlib_version" in #(vi
16456 case "$cf_cv_system_name" in #(vi
16458 case .${LIB_SUFFIX} in
16460 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
16461 cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
16464 cf_suffix='.${REL_VERSION}'"$cf_suffix"
16468 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
16472 case "$cf_cv_system_name" in #(vi
16474 case .${LIB_SUFFIX} in
16476 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
16477 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
16480 cf_suffix='.${ABI_VERSION}'"$cf_suffix"
16484 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
16489 # cygwin needs import library, and has unique naming convention
16490 # use autodetected ${cf_prefix} for import lib and static lib, but
16491 # use 'cyg' prefix for shared lib.
16492 if test $cf_cv_shlib_version = cygdll ; then
16493 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}\${ABI_VERSION}.dll"
16497 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
16500 if test $cf_dir = ncurses ; then
16501 cf_subsets="$LIB_SUBSETS"
16502 cf_r_parts="$cf_subsets"
16504 while test -n "$cf_r_parts"
16506 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
16507 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
16508 if test "$cf_l_parts" != "$cf_r_parts" ; then
16509 case $cf_l_parts in #(vi
16511 cf_item=`echo $LIBS_TO_MAKE |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
16514 cf_item=`echo $LIBS_TO_MAKE |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
16520 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
16526 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
16529 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
16530 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
16531 $cf_dir/Makefile >$cf_dir/Makefile.out
16532 mv $cf_dir/Makefile.out $cf_dir/Makefile
16534 $AWK -f $srcdir/mk-0th.awk \
16535 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
16536 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
16538 for cf_subset in $cf_subsets
16541 for cf_item in $cf_LIST_MODELS
16543 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
16545 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16548 libtool) cf_suffix='.la' ;;
16549 normal) cf_suffix='.a' ;;
16550 debug) cf_suffix='_g.a' ;;
16551 profile) cf_suffix='_p.a' ;;
16553 case $cf_cv_system_name in
16554 cygwin*) cf_suffix='.dll' ;;
16555 darwin*) cf_suffix='.dylib' ;;
16558 ia64*) cf_suffix='.so' ;;
16559 *) cf_suffix='.sl' ;;
16562 *) cf_suffix='.so' ;;
16565 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
16568 libtool) cf_subdir='obj_lo' ;;
16569 normal) cf_subdir='objects' ;;
16570 debug) cf_subdir='obj_g' ;;
16571 profile) cf_subdir='obj_p' ;;
16573 case $cf_cv_system_name in #(vi
16575 cf_subdir='objects' ;;
16577 cf_subdir='obj_s' ;;
16581 # Test for case where we build libtinfo with a different name.
16583 if test $cf_dir = ncurses ; then
16588 cf_libname=$TINFO_LIB_SUFFIX
16589 if test -n "${DFT_ARG_SUFFIX}" ; then
16590 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
16591 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
16595 cf_libname=$TICS_LIB_SUFFIX
16596 if test -n "${DFT_ARG_SUFFIX}" ; then
16597 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
16598 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
16604 # These dependencies really are for development, not
16605 # builds, but they are useful in porting, too.
16606 cf_depend="../include/ncurses_cfg.h"
16607 if test "$srcdir" = "."; then
16610 cf_reldir="\${srcdir}"
16613 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
16614 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
16615 elif test -f $srcdir/$cf_dir/curses.priv.h; then
16616 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
16620 old_cf_suffix="$cf_suffix"
16621 if test "$cf_cv_shlib_version_infix" = yes ; then
16622 if test -n "$LIB_SUFFIX" ; then
16623 case $LIB_SUFFIX in
16625 cf_libname=`echo $cf_libname | sed 's/w$//'`
16626 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
16633 $AWK -f $srcdir/mk-1st.awk \
16634 name=${cf_libname}${cf_dir_suffix} \
16635 traces=$LIB_TRACING \
16638 prefix=$cf_prefix \
16639 suffix=$cf_suffix \
16640 subset=$cf_subset \
16641 TermlibRoot=$TINFO_NAME \
16642 TermlibSuffix=$TINFO_SUFFIX \
16643 ShlibVer=$cf_cv_shlib_version \
16644 ShlibVerInfix=$cf_cv_shlib_version_infix \
16645 ReLink=${cf_cv_do_relink-no} \
16646 DoLinks=$cf_cv_do_symlinks \
16647 rmSoLocs=$cf_cv_rm_so_locs \
16648 ldconfig="$LDCONFIG" \
16649 overwrite=$WITH_OVERWRITE \
16650 depend="$cf_depend" \
16652 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
16654 cf_suffix="$old_cf_suffix"
16656 for cf_subdir2 in $cf_subdirs lib
16658 test $cf_subdir = $cf_subdir2 && break
16660 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
16661 $AWK -f $srcdir/mk-2nd.awk \
16663 traces=$LIB_TRACING \
16666 subset=$cf_subset \
16669 crenames=$cf_cv_prog_CC_c_o \
16670 cxxrenames=$cf_cv_prog_CXX_c_o \
16671 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
16672 cf_subdirs="$cf_subdirs $cf_subdir"
16677 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile
16680 for cf_dir in $SRC_SUBDIRS
16682 if test ! -d $srcdir/$cf_dir ; then
16686 if test -f $cf_dir/Makefile ; then
16689 echo 'libs \' >> Makefile
16690 echo 'install.libs \' >> Makefile
16691 echo 'uninstall.libs ::' >> Makefile
16692 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile
16697 if test -f $srcdir/$cf_dir/modules; then
16699 if test -f $srcdir/$cf_dir/headers; then
16700 cat >> Makefile <<CF_EOF
16701 install.includes \\
16702 uninstall.includes \\
16705 if test "$cf_dir" != "c++" ; then
16706 echo 'lint \' >> Makefile
16708 cat >> Makefile <<CF_EOF
16714 uninstall.$cf_dir ::
16715 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
16717 elif test -f $srcdir/$cf_dir/headers; then
16718 cat >> Makefile <<CF_EOF
16723 install.includes \\
16724 uninstall.includes ::
16725 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
16730 cat >> Makefile <<CF_EOF
16732 install.libs uninstall.libs \\
16733 install.data uninstall.data ::
16734 $MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@
16738 cd man && \${MAKE} \${CF_MFLAGS} \$@
16741 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
16742 rm -f headers.sh headers.sed mk_shared_lib.sh
16743 rm -rf \${DIRS_TO_MAKE}
16746 # Special case: tack's manpage lives in its own directory.
16747 if test -d tack ; then
16748 if test -f $srcdir/$tack.h; then
16749 cat >> Makefile <<CF_EOF
16753 cd tack && \${MAKE} \${CF_MFLAGS} \$@
16758 rm -f headers.sed headers.sh
16760 echo creating headers.sh
16761 cat >headers.sh <<CF_EOF
16763 # This shell script is generated by the 'configure' script. It is invoked in a
16764 # subdirectory of the build tree. It generates a sed-script in the parent
16765 # directory that is used to adjust includes for header files that reside in a
16766 # subdirectory of /usr/include, etc.
16768 while test \$# != 3
16770 PRG="\$PRG \$1"; shift
16775 TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
16776 TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
16777 echo installing \$SRC in \$DST
16780 if test $WITH_CURSES_H = yes; then
16781 cat >>headers.sh <<CF_EOF
16784 END=\`basename \$DST\`
16785 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
16787 NAME=\`basename \$i\`
16788 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
16792 echo "" >> \$TMPSED
16798 cat >>headers.sh <<CF_EOF
16801 END=\`basename \$DST\`
16802 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
16804 NAME=\`basename \$i\`
16805 if test "\$NAME" = "curses.h"
16807 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
16810 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
16814 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
16819 cat >>headers.sh <<CF_EOF
16821 sed -f \$TMPSED \$SRC > \$TMPSRC
16822 NAME=\`basename \$SRC\`
16824 if test $WITH_CURSES_H != yes; then
16825 cat >>headers.sh <<CF_EOF
16826 test "\$NAME" = "curses.h" && NAME=ncurses.h
16829 cat >>headers.sh <<CF_EOF
16830 # Just in case someone gzip'd manpages, remove the conflicting copy.
16831 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
16833 eval \$PRG \$TMPSRC \$DST/\$NAME
16834 rm -f \$TMPSRC \$TMPSED
16837 chmod 0755 headers.sh
16839 for cf_dir in $SRC_SUBDIRS
16841 if test ! -d $srcdir/$cf_dir ; then
16845 if test -f $srcdir/$cf_dir/headers; then
16846 $AWK -f $srcdir/mk-hdr.awk \
16847 subset="$LIB_SUBSETS" \
16848 compat="$WITH_CURSES_H" \
16849 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
16852 if test -f $srcdir/$cf_dir/modules; then
16853 if test "$cf_dir" != "c++" ; then
16854 cat >>$cf_dir/Makefile <<"CF_EOF"
16855 depend : ${AUTO_SRC}
16856 makedepend -- ${CPPFLAGS} -- ${C_SRC}
16858 # DO NOT DELETE THIS LINE -- make depend depends on it.
16869 cat >>$CONFIG_STATUS <<\EOF
16871 { (exit 0); exit 0; }
16873 chmod +x $CONFIG_STATUS
16874 ac_clean_files=$ac_clean_files_save
16876 # configure is writing to config.log, and then calls config.status.
16877 # config.status does its own redirection, appending to config.log.
16878 # Unfortunately, on DOS this fails, as config.log is still kept open
16879 # by configure, so config.status won't be able to write to it; its
16880 # output is simply discarded. So we exec the FD to /dev/null,
16881 # effectively closing config.log, so it can be properly (re)opened and
16882 # appended to by config.status. When coming back to configure, we
16883 # need to make the FD available again.
16884 if test "$no_create" != yes; then
16887 $SHELL $CONFIG_STATUS || ac_cs_success=false
16889 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16890 # would make configure fail if this is the last instruction.
16891 $ac_cs_success || { (exit 1); exit 1; }
16893 ${MAKE-make} preinstall