2 # From configure.in Revision: 1.472 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20081225.
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-manpages suppress install of manpages
701 --without-progs suppress build with programs (e.g., tic)
702 --without-curses-h install curses.h as ncurses.h only
703 --with-pkg-config{=path} enable/disable use of pkg-config
704 --enable-pc-files generate and install .pc files for pkg-config
705 --enable-mixed-case tic should assume mixed-case filenames
706 --with-install-prefix prefixes actual install-location ($DESTDIR)
707 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
708 --with-build-cc=XXX the build C compiler ($BUILD_CC)
709 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
710 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
711 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
712 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
713 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
714 Options to Specify the Libraries Built/Used:
715 --with-libtool generate libraries with libtool
716 --with-shared generate shared-libraries
717 --with-normal generate normal-libraries (default)
718 --with-debug generate debug-libraries (default)
719 --with-profile generate profile-libraries
720 --with-termlib generate separate terminfo library
721 --with-ticlib generate separate tic library
722 --with-gpm use Alessandro Rubini's GPM library
723 --without-dlsym do not use dlsym() to load GPM dynamically
724 --with-sysmouse use sysmouse (FreeBSD console)
725 --enable-rpath use rpath option when generating shared libraries
726 --disable-relink relink shared libraries during install
727 --with-shlib-version=X Specify rel or abi version for shared libs
728 Fine-Tuning Your Configuration:
729 --disable-overwrite leave out the link to -lcurses
730 --disable-database do not use terminfo, only fallbacks/termcap
731 --with-database=XXX specify terminfo source to install
732 --with-hashed-db specify hashed-database library
733 --with-fallbacks=XXX specify list of fallback terminal descriptions
734 --without-xterm-new specify if xterm terminfo should be old version
735 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
736 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
737 --disable-big-core assume machine has little memory
738 --disable-big-strings assume compiler has only standard-size strings
739 --enable-termcap compile in termcap fallback support
740 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
741 --enable-getcap fast termcap load, no xrefs to terminfo
742 --enable-getcap-cache cache translated termcaps in ~/.terminfo
743 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
744 --disable-root-environ restrict environment when running as root
745 --enable-symlinks make tic use symbolic links not hard links
746 --enable-broken_linker compile with broken-linker support code
747 --enable-bsdpad recognize BSD-style prefix padding
748 --enable-widec compile with wide-char/UTF-8 code
749 --disable-lp64 allow chtype to be long (ignore _LP64)
750 --disable-largefile omit support for large files
751 --disable-tparm-varargs compile tparm() without varargs interface
752 --disable-tic-depends link tic library without explicit dependency on ncurses library
753 --with-bool=TYPE override fallback type of bool variable
754 --with-caps=alt compile with alternate Caps file
755 --with-chtype=TYPE override type of chtype
756 --with-ospeed=TYPE override type of ospeed variable
757 --with-mmask-t=TYPE override type of mmask_t
758 --with-ccharw-max=XXX override size CCHARW_MAX
759 --with-rcs-ids compile-in RCS identifiers
760 Options to Specify How Manpages are Installed:
761 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
762 optionally formatted/catonly, e.g., gzip,formatted
763 --with-manpage-renames specify manpage-renaming
764 --with-manpage-aliases specify manpage-aliases using .so
765 --with-manpage-symlinks specify manpage-aliases using symlinks
766 --with-manpage-tbl specify manpage processing with tbl
768 --disable-ext-funcs disable function-extensions
769 --enable-sp-funcs disable experimental SCREEN-extensions
770 --enable-const compile with extra/non-standard const
771 --enable-ext-colors compile for 256-color support
772 --enable-ext-mouse compile for extended mouse-encoding
773 --enable-no-padding compile with $NCURSES_NO_PADDING code
774 --enable-signed-char compile using signed Boolean's in term.h
775 --enable-sigwinch compile with SIGWINCH handler
776 --enable-tcap-names compile with user-definable terminal capabilities
778 --without-develop disable development options
779 --enable-hard-tabs compile with hard-tabs code
780 --enable-xmc-glitch compile with support for xmc (magic-cookie)
782 --disable-assumed-color do not assume anything about default-colors
783 --disable-hashmap compile without hashmap scrolling-optimization
784 --enable-colorfgbg compile with $COLORFGBG code
785 --with-pthread use POSIX thread library
786 --enable-weak-symbols enable weak-symbols for pthreads
787 --enable-reentrant compile with experimental reentrant code
788 --with-wrap-prefix=XXX override prefix used for public variables
789 --enable-safe-sprintf compile with experimental safe-sprintf code
790 --disable-scroll-hints compile without scroll-hints code
791 --enable-wgetch-events compile with experimental wgetch-events code
792 Testing/development Options:
793 --enable-echo build: display "compiling" commands (default)
794 --enable-warnings build: turn on GCC compiler warnings
795 --enable-assertions test: turn on generation of assertion code
796 --with-dmalloc test: use Gray Watson's dmalloc library
797 --with-dbmalloc test: use Conor Cahill's dbmalloc library
798 --with-valgrind test: use valgrind
799 --disable-leaks test: free permanent memory, analyze leaks
800 --enable-expanded test: generate functions for certain macros
801 --disable-macros test: use functions rather than macros
802 --with-trace test: add trace() function to all models of ncurses
803 Ada95 Binding Options:
804 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
805 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
806 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
808 Some influential environment variables:
809 CC C compiler command
810 CFLAGS C compiler flags
811 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
812 nonstandard directory <lib dir>
813 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
814 headers in a nonstandard directory <include dir>
816 CXX C++ compiler command
817 CXXFLAGS C++ compiler flags
818 CXXCPP C++ preprocessor
820 Use these variables to override the choices made by `configure' or to help
821 it to find libraries and programs with nonstandard names/locations.
826 if test "$ac_init_help" = "recursive"; then
827 # If there are subdirs, report their specific --help.
829 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
831 # A "../" for each directory in /$ac_subdir.
832 ac_dots=`echo $ac_subdir |
833 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
836 .) # No --srcdir option. We are building in place.
837 ac_sub_srcdir=$srcdir ;;
838 [\\/]* | ?:[\\/]* ) # Absolute path.
839 ac_sub_srcdir=$srcdir/$ac_subdir ;;
841 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
844 # Check for guested configure; otherwise get Cygnus style configure.
845 if test -f $ac_sub_srcdir/configure.gnu; then
847 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
848 elif test -f $ac_sub_srcdir/configure; then
850 $SHELL $ac_sub_srcdir/configure --help=recursive
851 elif test -f $ac_sub_srcdir/configure.ac ||
852 test -f $ac_sub_srcdir/configure.in; then
856 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
862 test -n "$ac_init_help" && exit 0
863 if $ac_init_version; then
866 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
867 Free Software Foundation, Inc.
868 This configure script is free software; the Free Software Foundation
869 gives unlimited permission to copy, distribute and modify it.
875 This file contains any messages produced by compilers while
876 running configure, to aid debugging if configure makes a mistake.
878 It was created by $as_me, which was
879 generated by GNU Autoconf 2.52.20081225. Invocation command line was
890 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
891 uname -m = `(uname -m) 2>/dev/null || echo unknown`
892 uname -r = `(uname -r) 2>/dev/null || echo unknown`
893 uname -s = `(uname -s) 2>/dev/null || echo unknown`
894 uname -v = `(uname -v) 2>/dev/null || echo unknown`
896 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
897 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
899 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
900 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
901 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
902 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
903 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
904 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
905 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
919 # Keep a trace of the command line.
920 # Strip out --no-create and --no-recursion so they do not pile up.
921 # Also quote any args containing shell meta-characters.
927 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
928 | --no-cr | --no-c) ;;
929 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
930 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
931 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
932 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
933 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
935 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
938 # Get rid of the leading space.
941 # When interrupted or exit'd, cleanup temporary files, and complete
942 # config.log. We remove comments because anyway the quotes in there
943 # would cause problems or look ugly.
945 # Save into config.log some information that might help in debugging.
947 echo "## ----------------- ##" >&5
948 echo "## Cache variables. ##" >&5
949 echo "## ----------------- ##" >&5
951 # The following way of writing the cache mishandles newlines in values,
954 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
957 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
962 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
966 sed "/^$/d" confdefs.h >conftest.log
967 if test -s conftest.log; then
969 echo "## ------------ ##" >&5
970 echo "## confdefs.h. ##" >&5
971 echo "## ------------ ##" >&5
976 test "$ac_signal" != 0 &&
977 echo "$as_me: caught signal $ac_signal" >&5
978 echo "$as_me: exit $exit_status" >&5
979 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
982 for ac_signal in 1 2 13 15; do
983 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
987 # confdefs.h avoids OS command line length limits that DEFS can exceed.
988 rm -rf conftest* confdefs.h
989 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
992 # Let the site file select an alternate cache file if it wants to.
993 # Prefer explicitly selected file to automatically selected ones.
994 if test -z "$CONFIG_SITE"; then
995 if test "x$prefix" != xNONE; then
996 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
998 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1001 for ac_site_file in $CONFIG_SITE; do
1002 if test -r "$ac_site_file"; then
1003 { echo "$as_me:1003: loading site script $ac_site_file" >&5
1004 echo "$as_me: loading site script $ac_site_file" >&6;}
1005 cat "$ac_site_file" >&5
1010 if test -r "$cache_file"; then
1011 # Some versions of bash will fail to source /dev/null (special
1012 # files actually), so we avoid doing that.
1013 if test -f "$cache_file"; then
1014 { echo "$as_me:1014: loading cache $cache_file" >&5
1015 echo "$as_me: loading cache $cache_file" >&6;}
1017 [\\/]* | ?:[\\/]* ) . $cache_file;;
1018 *) . ./$cache_file;;
1022 { echo "$as_me:1022: creating cache $cache_file" >&5
1023 echo "$as_me: creating cache $cache_file" >&6;}
1027 # Check that the precious variables saved in the cache have kept the same
1029 ac_cache_corrupted=false
1030 for ac_var in `(set) 2>&1 |
1031 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1032 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1033 eval ac_new_set=\$ac_env_${ac_var}_set
1034 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1035 eval ac_new_val="\$ac_env_${ac_var}_value"
1036 case $ac_old_set,$ac_new_set in
1038 { echo "$as_me:1038: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1039 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1040 ac_cache_corrupted=: ;;
1042 { echo "$as_me:1042: error: \`$ac_var' was not set in the previous run" >&5
1043 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1044 ac_cache_corrupted=: ;;
1047 if test "x$ac_old_val" != "x$ac_new_val"; then
1048 { echo "$as_me:1048: error: \`$ac_var' has changed since the previous run:" >&5
1049 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1050 { echo "$as_me:1050: former value: $ac_old_val" >&5
1051 echo "$as_me: former value: $ac_old_val" >&2;}
1052 { echo "$as_me:1052: current value: $ac_new_val" >&5
1053 echo "$as_me: current value: $ac_new_val" >&2;}
1054 ac_cache_corrupted=:
1057 # Pass precious variables to config.status. It doesn't matter if
1058 # we pass some twice (in addition to the command line arguments).
1059 if test "$ac_new_set" = set; then
1061 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1062 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1063 ac_configure_args="$ac_configure_args '$ac_arg'"
1065 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1070 if $ac_cache_corrupted; then
1071 { echo "$as_me:1071: error: changes in the environment can compromise the build" >&5
1072 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1073 { { echo "$as_me:1073: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1074 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1075 { (exit 1); exit 1; }; }
1079 ac_cpp='$CPP $CPPFLAGS'
1080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1083 ac_main_return=return
1085 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1086 *c*,-n*) ECHO_N= ECHO_C='
1088 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1089 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1091 echo "#! $SHELL" >conftest.sh
1092 echo "exit 0" >>conftest.sh
1093 chmod +x conftest.sh
1094 if { (echo "$as_me:1094: PATH=\".;.\"; conftest.sh") >&5
1095 (PATH=".;."; conftest.sh) 2>&5
1097 echo "$as_me:1097: \$? = $ac_status" >&5
1098 (exit $ac_status); }; then
1099 ac_path_separator=';'
1103 PATH_SEPARATOR="$ac_path_separator"
1106 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1110 echo "$as_me:1110: checking for egrep" >&5
1111 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1112 if test "${ac_cv_prog_egrep+set}" = set; then
1113 echo $ECHO_N "(cached) $ECHO_C" >&6
1115 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1116 then ac_cv_prog_egrep='grep -E'
1117 else ac_cv_prog_egrep='egrep'
1120 echo "$as_me:1120: result: $ac_cv_prog_egrep" >&5
1121 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1122 EGREP=$ac_cv_prog_egrep
1124 test -z "$EGREP" && { { echo "$as_me:1124: error: No egrep program found" >&5
1125 echo "$as_me: error: No egrep program found" >&2;}
1126 { (exit 1); exit 1; }; }
1128 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1129 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1130 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1131 cf_cv_abi_version=${NCURSES_MAJOR}
1132 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1133 cf_cv_timestamp=`date`
1134 echo "$as_me:1134: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1135 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1137 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1139 # Check whether --with-rel-version or --without-rel-version was given.
1140 if test "${with_rel_version+set}" = set; then
1141 withval="$with_rel_version"
1142 { echo "$as_me:1142: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1143 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1144 cf_cv_rel_version=$withval
1147 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1148 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1150 if test -n "$NCURSES_MAJOR" ; then
1151 case $NCURSES_MAJOR in #(vi
1155 { { echo "$as_me:1155: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1156 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1157 { (exit 1); exit 1; }; }
1161 { { echo "$as_me:1161: error: Release major-version value is empty" >&5
1162 echo "$as_me: error: Release major-version value is empty" >&2;}
1163 { (exit 1); exit 1; }; }
1166 if test -n "$NCURSES_MINOR" ; then
1167 case $NCURSES_MINOR in #(vi
1171 { { echo "$as_me:1171: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1172 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1173 { (exit 1); exit 1; }; }
1177 { { echo "$as_me:1177: error: Release minor-version value is empty" >&5
1178 echo "$as_me: error: Release minor-version value is empty" >&2;}
1179 { (exit 1); exit 1; }; }
1182 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1184 # Check whether --with-abi-version or --without-abi-version was given.
1185 if test "${with_abi_version+set}" = set; then
1186 withval="$with_abi_version"
1187 { echo "$as_me:1187: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1188 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1189 cf_cv_abi_version=$withval
1192 if test -n "$cf_cv_abi_version" ; then
1193 case $cf_cv_abi_version in #(vi
1197 { { echo "$as_me:1197: error: ABI version is not a number: $cf_cv_abi_version" >&5
1198 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1199 { (exit 1); exit 1; }; }
1203 { { echo "$as_me:1203: error: ABI version value is empty" >&5
1204 echo "$as_me: error: ABI version value is empty" >&2;}
1205 { (exit 1); exit 1; }; }
1209 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1210 if test -f $ac_dir/install-sh; then
1212 ac_install_sh="$ac_aux_dir/install-sh -c"
1214 elif test -f $ac_dir/install.sh; then
1216 ac_install_sh="$ac_aux_dir/install.sh -c"
1218 elif test -f $ac_dir/shtool; then
1220 ac_install_sh="$ac_aux_dir/shtool install -c"
1224 if test -z "$ac_aux_dir"; then
1225 { { echo "$as_me:1225: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1226 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1227 { (exit 1); exit 1; }; }
1229 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1230 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1231 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1233 # Make sure we can run config.sub.
1234 $ac_config_sub sun4 >/dev/null 2>&1 ||
1235 { { echo "$as_me:1235: error: cannot run $ac_config_sub" >&5
1236 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1237 { (exit 1); exit 1; }; }
1239 echo "$as_me:1239: checking build system type" >&5
1240 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1241 if test "${ac_cv_build+set}" = set; then
1242 echo $ECHO_N "(cached) $ECHO_C" >&6
1244 ac_cv_build_alias=$build_alias
1245 test -z "$ac_cv_build_alias" &&
1246 ac_cv_build_alias=`$ac_config_guess`
1247 test -z "$ac_cv_build_alias" &&
1248 { { echo "$as_me:1248: error: cannot guess build type; you must specify one" >&5
1249 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1250 { (exit 1); exit 1; }; }
1251 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1252 { { echo "$as_me:1252: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1253 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1254 { (exit 1); exit 1; }; }
1257 echo "$as_me:1257: result: $ac_cv_build" >&5
1258 echo "${ECHO_T}$ac_cv_build" >&6
1260 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1261 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1262 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1264 echo "$as_me:1264: checking host system type" >&5
1265 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1266 if test "${ac_cv_host+set}" = set; then
1267 echo $ECHO_N "(cached) $ECHO_C" >&6
1269 ac_cv_host_alias=$host_alias
1270 test -z "$ac_cv_host_alias" &&
1271 ac_cv_host_alias=$ac_cv_build_alias
1272 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1273 { { echo "$as_me:1273: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1274 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1275 { (exit 1); exit 1; }; }
1278 echo "$as_me:1278: result: $ac_cv_host" >&5
1279 echo "${ECHO_T}$ac_cv_host" >&6
1281 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1282 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1283 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1285 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1286 echo "$as_me:1286: checking target system type" >&5
1287 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1288 if test "${ac_cv_target+set}" = set; then
1289 echo $ECHO_N "(cached) $ECHO_C" >&6
1291 ac_cv_target_alias=$target_alias
1292 test "x$ac_cv_target_alias" = "x" &&
1293 ac_cv_target_alias=$ac_cv_host_alias
1294 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1295 { { echo "$as_me:1295: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1296 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1297 { (exit 1); exit 1; }; }
1300 echo "$as_me:1300: result: $ac_cv_target" >&5
1301 echo "${ECHO_T}$ac_cv_target" >&6
1302 target=$ac_cv_target
1303 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1304 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1305 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1307 # The aliases save the names the user supplied, while $host etc.
1308 # will get canonicalized.
1309 test -n "$target_alias" &&
1310 test "$program_prefix$program_suffix$program_transform_name" = \
1312 program_prefix=${target_alias}-
1313 system_name="$host_os"
1315 system_name="`(uname -s -r) 2>/dev/null`"
1316 if test -z "$system_name" ; then
1317 system_name="`(hostname) 2>/dev/null`"
1320 test -n "$system_name" && cat >>confdefs.h <<EOF
1321 #define SYSTEM_NAME "$system_name"
1324 if test "${cf_cv_system_name+set}" = set; then
1325 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 cf_cv_system_name="$system_name"
1330 test -z "$system_name" && system_name="$cf_cv_system_name"
1331 test -n "$cf_cv_system_name" && echo "$as_me:1331: result: Configuring for $cf_cv_system_name" >&5
1332 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1334 if test ".$system_name" != ".$cf_cv_system_name" ; then
1335 echo "$as_me:1335: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1336 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1337 { { echo "$as_me:1337: error: \"Please remove config.cache and try again.\"" >&5
1338 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1339 { (exit 1); exit 1; }; }
1342 # Check whether --with-system-type or --without-system-type was given.
1343 if test "${with_system_type+set}" = set; then
1344 withval="$with_system_type"
1345 { echo "$as_me:1345: WARNING: overriding system type to $withval" >&5
1346 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1347 cf_cv_system_name=$withval
1350 ### Save the given $CFLAGS to allow user-override.
1351 cf_user_CFLAGS="$CFLAGS"
1353 ### Default install-location
1355 echo "$as_me:1355: checking for prefix" >&5
1356 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1357 if test "x$prefix" = "xNONE" ; then
1358 case "$cf_cv_system_name" in
1359 # non-vendor systems don't have a conflict
1360 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1363 *) prefix=$ac_default_prefix
1367 echo "$as_me:1367: result: $prefix" >&5
1368 echo "${ECHO_T}$prefix" >&6
1370 if test "x$prefix" = "xNONE" ; then
1371 echo "$as_me:1371: checking for default include-directory" >&5
1372 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1373 test -n "$verbose" && echo 1>&6
1376 $includedir/ncurses \
1378 $prefix/include/ncurses \
1379 /usr/local/include \
1380 /usr/local/include/ncurses \
1382 /usr/include/ncurses
1384 cf_dir=`eval echo $cf_symbol`
1385 if test -f $cf_dir/curses.h ; then
1386 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1387 includedir="$cf_symbol"
1388 test -n "$verbose" && echo $ac_n " found " 1>&6
1392 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1394 echo "$as_me:1394: result: $includedir" >&5
1395 echo "${ECHO_T}$includedir" >&6
1398 ### Checks for programs.
1400 ac_cpp='$CPP $CPPFLAGS'
1401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1404 ac_main_return=return
1405 if test -n "$ac_tool_prefix"; then
1406 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1407 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1408 echo "$as_me:1408: checking for $ac_word" >&5
1409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410 if test "${ac_cv_prog_CC+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 if test -n "$CC"; then
1414 ac_cv_prog_CC="$CC" # Let the user override the test.
1416 ac_save_IFS=$IFS; IFS=$ac_path_separator
1418 for ac_dir in $ac_dummy; do
1420 test -z "$ac_dir" && ac_dir=.
1421 $as_executable_p "$ac_dir/$ac_word" || continue
1422 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1423 echo "$as_me:1423: found $ac_dir/$ac_word" >&5
1430 if test -n "$CC"; then
1431 echo "$as_me:1431: result: $CC" >&5
1432 echo "${ECHO_T}$CC" >&6
1434 echo "$as_me:1434: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1439 if test -z "$ac_cv_prog_CC"; then
1441 # Extract the first word of "gcc", so it can be a program name with args.
1442 set dummy gcc; ac_word=$2
1443 echo "$as_me:1443: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 if test -n "$ac_ct_CC"; then
1449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1451 ac_save_IFS=$IFS; IFS=$ac_path_separator
1453 for ac_dir in $ac_dummy; do
1455 test -z "$ac_dir" && ac_dir=.
1456 $as_executable_p "$ac_dir/$ac_word" || continue
1457 ac_cv_prog_ac_ct_CC="gcc"
1458 echo "$as_me:1458: found $ac_dir/$ac_word" >&5
1464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1465 if test -n "$ac_ct_CC"; then
1466 echo "$as_me:1466: result: $ac_ct_CC" >&5
1467 echo "${ECHO_T}$ac_ct_CC" >&6
1469 echo "$as_me:1469: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1478 if test -z "$CC"; then
1479 if test -n "$ac_tool_prefix"; then
1480 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1481 set dummy ${ac_tool_prefix}cc; ac_word=$2
1482 echo "$as_me:1482: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 if test -n "$CC"; then
1488 ac_cv_prog_CC="$CC" # Let the user override the test.
1490 ac_save_IFS=$IFS; IFS=$ac_path_separator
1492 for ac_dir in $ac_dummy; do
1494 test -z "$ac_dir" && ac_dir=.
1495 $as_executable_p "$ac_dir/$ac_word" || continue
1496 ac_cv_prog_CC="${ac_tool_prefix}cc"
1497 echo "$as_me:1497: found $ac_dir/$ac_word" >&5
1504 if test -n "$CC"; then
1505 echo "$as_me:1505: result: $CC" >&5
1506 echo "${ECHO_T}$CC" >&6
1508 echo "$as_me:1508: result: no" >&5
1509 echo "${ECHO_T}no" >&6
1513 if test -z "$ac_cv_prog_CC"; then
1515 # Extract the first word of "cc", so it can be a program name with args.
1516 set dummy cc; ac_word=$2
1517 echo "$as_me:1517: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 if test -n "$ac_ct_CC"; then
1523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1525 ac_save_IFS=$IFS; IFS=$ac_path_separator
1527 for ac_dir in $ac_dummy; do
1529 test -z "$ac_dir" && ac_dir=.
1530 $as_executable_p "$ac_dir/$ac_word" || continue
1531 ac_cv_prog_ac_ct_CC="cc"
1532 echo "$as_me:1532: found $ac_dir/$ac_word" >&5
1538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1539 if test -n "$ac_ct_CC"; then
1540 echo "$as_me:1540: result: $ac_ct_CC" >&5
1541 echo "${ECHO_T}$ac_ct_CC" >&6
1543 echo "$as_me:1543: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1553 if test -z "$CC"; then
1554 # Extract the first word of "cc", so it can be a program name with args.
1555 set dummy cc; ac_word=$2
1556 echo "$as_me:1556: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 if test -n "$CC"; then
1562 ac_cv_prog_CC="$CC" # Let the user override the test.
1565 ac_save_IFS=$IFS; IFS=$ac_path_separator
1567 for ac_dir in $ac_dummy; do
1569 test -z "$ac_dir" && ac_dir=.
1570 $as_executable_p "$ac_dir/$ac_word" || continue
1571 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1572 ac_prog_rejected=yes
1576 echo "$as_me:1576: found $ac_dir/$ac_word" >&5
1580 if test $ac_prog_rejected = yes; then
1581 # We found a bogon in the path, so make sure we never use it.
1582 set dummy $ac_cv_prog_CC
1584 if test $# != 0; then
1585 # We chose a different compiler from the bogus one.
1586 # However, it has the same basename, so the bogon will be chosen
1587 # first if we set CC to just the basename; use the full file name.
1589 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1597 if test -n "$CC"; then
1598 echo "$as_me:1598: result: $CC" >&5
1599 echo "${ECHO_T}$CC" >&6
1601 echo "$as_me:1601: result: no" >&5
1602 echo "${ECHO_T}no" >&6
1606 if test -z "$CC"; then
1607 if test -n "$ac_tool_prefix"; then
1610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1612 echo "$as_me:1612: checking for $ac_word" >&5
1613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614 if test "${ac_cv_prog_CC+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 if test -n "$CC"; then
1618 ac_cv_prog_CC="$CC" # Let the user override the test.
1620 ac_save_IFS=$IFS; IFS=$ac_path_separator
1622 for ac_dir in $ac_dummy; do
1624 test -z "$ac_dir" && ac_dir=.
1625 $as_executable_p "$ac_dir/$ac_word" || continue
1626 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1627 echo "$as_me:1627: found $ac_dir/$ac_word" >&5
1634 if test -n "$CC"; then
1635 echo "$as_me:1635: result: $CC" >&5
1636 echo "${ECHO_T}$CC" >&6
1638 echo "$as_me:1638: result: no" >&5
1639 echo "${ECHO_T}no" >&6
1642 test -n "$CC" && break
1645 if test -z "$CC"; then
1649 # Extract the first word of "$ac_prog", so it can be a program name with args.
1650 set dummy $ac_prog; ac_word=$2
1651 echo "$as_me:1651: checking for $ac_word" >&5
1652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 if test -n "$ac_ct_CC"; then
1657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1659 ac_save_IFS=$IFS; IFS=$ac_path_separator
1661 for ac_dir in $ac_dummy; do
1663 test -z "$ac_dir" && ac_dir=.
1664 $as_executable_p "$ac_dir/$ac_word" || continue
1665 ac_cv_prog_ac_ct_CC="$ac_prog"
1666 echo "$as_me:1666: found $ac_dir/$ac_word" >&5
1672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1673 if test -n "$ac_ct_CC"; then
1674 echo "$as_me:1674: result: $ac_ct_CC" >&5
1675 echo "${ECHO_T}$ac_ct_CC" >&6
1677 echo "$as_me:1677: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1681 test -n "$ac_ct_CC" && break
1689 test -z "$CC" && { { echo "$as_me:1689: error: no acceptable cc found in \$PATH" >&5
1690 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1691 { (exit 1); exit 1; }; }
1693 # Provide some information about the compiler.
1694 echo "$as_me:1694:" \
1695 "checking for C compiler version" >&5
1696 ac_compiler=`set X $ac_compile; echo $2`
1697 { (eval echo "$as_me:1697: \"$ac_compiler --version </dev/null >&5\"") >&5
1698 (eval $ac_compiler --version </dev/null >&5) 2>&5
1700 echo "$as_me:1700: \$? = $ac_status" >&5
1701 (exit $ac_status); }
1702 { (eval echo "$as_me:1702: \"$ac_compiler -v </dev/null >&5\"") >&5
1703 (eval $ac_compiler -v </dev/null >&5) 2>&5
1705 echo "$as_me:1705: \$? = $ac_status" >&5
1706 (exit $ac_status); }
1707 { (eval echo "$as_me:1707: \"$ac_compiler -V </dev/null >&5\"") >&5
1708 (eval $ac_compiler -V </dev/null >&5) 2>&5
1710 echo "$as_me:1710: \$? = $ac_status" >&5
1711 (exit $ac_status); }
1713 cat >conftest.$ac_ext <<_ACEOF
1714 #line 1714 "configure"
1715 #include "confdefs.h"
1725 ac_clean_files_save=$ac_clean_files
1726 ac_clean_files="$ac_clean_files a.out a.exe"
1727 # Try to create an executable without -o first, disregard a.out.
1728 # It will help us diagnose broken compilers, and finding out an intuition
1730 echo "$as_me:1730: checking for C compiler default output" >&5
1731 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1732 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1733 if { (eval echo "$as_me:1733: \"$ac_link_default\"") >&5
1734 (eval $ac_link_default) 2>&5
1736 echo "$as_me:1736: \$? = $ac_status" >&5
1737 (exit $ac_status); }; then
1738 # Find the output, starting from the most likely. This scheme is
1739 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1741 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1742 ls a.out conftest 2>/dev/null;
1743 ls a.* conftest.* 2>/dev/null`; do
1745 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1746 a.out ) # We found the default executable, but exeext='' is most
1749 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1750 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1757 echo "$as_me: failed program was:" >&5
1758 cat conftest.$ac_ext >&5
1759 { { echo "$as_me:1759: error: C compiler cannot create executables" >&5
1760 echo "$as_me: error: C compiler cannot create executables" >&2;}
1761 { (exit 77); exit 77; }; }
1764 ac_exeext=$ac_cv_exeext
1765 echo "$as_me:1765: result: $ac_file" >&5
1766 echo "${ECHO_T}$ac_file" >&6
1768 # Check the compiler produces executables we can run. If not, either
1769 # the compiler is broken, or we cross compile.
1770 echo "$as_me:1770: checking whether the C compiler works" >&5
1771 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1772 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1773 # If not cross compiling, check that we can run a simple program.
1774 if test "$cross_compiling" != yes; then
1775 if { ac_try='./$ac_file'
1776 { (eval echo "$as_me:1776: \"$ac_try\"") >&5
1779 echo "$as_me:1779: \$? = $ac_status" >&5
1780 (exit $ac_status); }; }; then
1783 if test "$cross_compiling" = maybe; then
1786 { { echo "$as_me:1786: error: cannot run C compiled programs.
1787 If you meant to cross compile, use \`--host'." >&5
1788 echo "$as_me: error: cannot run C compiled programs.
1789 If you meant to cross compile, use \`--host'." >&2;}
1790 { (exit 1); exit 1; }; }
1794 echo "$as_me:1794: result: yes" >&5
1795 echo "${ECHO_T}yes" >&6
1797 rm -f a.out a.exe conftest$ac_cv_exeext
1798 ac_clean_files=$ac_clean_files_save
1799 # Check the compiler produces executables we can run. If not, either
1800 # the compiler is broken, or we cross compile.
1801 echo "$as_me:1801: checking whether we are cross compiling" >&5
1802 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1803 echo "$as_me:1803: result: $cross_compiling" >&5
1804 echo "${ECHO_T}$cross_compiling" >&6
1806 echo "$as_me:1806: checking for executable suffix" >&5
1807 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1808 if { (eval echo "$as_me:1808: \"$ac_link\"") >&5
1809 (eval $ac_link) 2>&5
1811 echo "$as_me:1811: \$? = $ac_status" >&5
1812 (exit $ac_status); }; then
1813 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1814 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1815 # work properly (i.e., refer to `conftest.exe'), while it won't with
1817 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1819 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1820 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1827 { { echo "$as_me:1827: error: cannot compute EXEEXT: cannot compile and link" >&5
1828 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1829 { (exit 1); exit 1; }; }
1832 rm -f conftest$ac_cv_exeext
1833 echo "$as_me:1833: result: $ac_cv_exeext" >&5
1834 echo "${ECHO_T}$ac_cv_exeext" >&6
1836 rm -f conftest.$ac_ext
1837 EXEEXT=$ac_cv_exeext
1839 echo "$as_me:1839: checking for object suffix" >&5
1840 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1841 if test "${ac_cv_objext+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 cat >conftest.$ac_ext <<_ACEOF
1845 #line 1845 "configure"
1846 #include "confdefs.h"
1856 rm -f conftest.o conftest.obj
1857 if { (eval echo "$as_me:1857: \"$ac_compile\"") >&5
1858 (eval $ac_compile) 2>&5
1860 echo "$as_me:1860: \$? = $ac_status" >&5
1861 (exit $ac_status); }; then
1862 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1864 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1865 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1870 echo "$as_me: failed program was:" >&5
1871 cat conftest.$ac_ext >&5
1872 { { echo "$as_me:1872: error: cannot compute OBJEXT: cannot compile" >&5
1873 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1874 { (exit 1); exit 1; }; }
1877 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1879 echo "$as_me:1879: result: $ac_cv_objext" >&5
1880 echo "${ECHO_T}$ac_cv_objext" >&6
1881 OBJEXT=$ac_cv_objext
1883 echo "$as_me:1883: checking whether we are using the GNU C compiler" >&5
1884 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1885 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 cat >conftest.$ac_ext <<_ACEOF
1889 #line 1889 "configure"
1890 #include "confdefs.h"
1903 rm -f conftest.$ac_objext
1904 if { (eval echo "$as_me:1904: \"$ac_compile\"") >&5
1905 (eval $ac_compile) 2>&5
1907 echo "$as_me:1907: \$? = $ac_status" >&5
1908 (exit $ac_status); } &&
1909 { ac_try='test -s conftest.$ac_objext'
1910 { (eval echo "$as_me:1910: \"$ac_try\"") >&5
1913 echo "$as_me:1913: \$? = $ac_status" >&5
1914 (exit $ac_status); }; }; then
1917 echo "$as_me: failed program was:" >&5
1918 cat conftest.$ac_ext >&5
1921 rm -f conftest.$ac_objext conftest.$ac_ext
1922 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1925 echo "$as_me:1925: result: $ac_cv_c_compiler_gnu" >&5
1926 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1927 GCC=`test $ac_compiler_gnu = yes && echo yes`
1928 ac_test_CFLAGS=${CFLAGS+set}
1929 ac_save_CFLAGS=$CFLAGS
1931 echo "$as_me:1931: checking whether $CC accepts -g" >&5
1932 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1933 if test "${ac_cv_prog_cc_g+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 cat >conftest.$ac_ext <<_ACEOF
1937 #line 1937 "configure"
1938 #include "confdefs.h"
1948 rm -f conftest.$ac_objext
1949 if { (eval echo "$as_me:1949: \"$ac_compile\"") >&5
1950 (eval $ac_compile) 2>&5
1952 echo "$as_me:1952: \$? = $ac_status" >&5
1953 (exit $ac_status); } &&
1954 { ac_try='test -s conftest.$ac_objext'
1955 { (eval echo "$as_me:1955: \"$ac_try\"") >&5
1958 echo "$as_me:1958: \$? = $ac_status" >&5
1959 (exit $ac_status); }; }; then
1962 echo "$as_me: failed program was:" >&5
1963 cat conftest.$ac_ext >&5
1966 rm -f conftest.$ac_objext conftest.$ac_ext
1968 echo "$as_me:1968: result: $ac_cv_prog_cc_g" >&5
1969 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1970 if test "$ac_test_CFLAGS" = set; then
1971 CFLAGS=$ac_save_CFLAGS
1972 elif test $ac_cv_prog_cc_g = yes; then
1973 if test "$GCC" = yes; then
1979 if test "$GCC" = yes; then
1985 # Some people use a C++ compiler to compile C. Since we use `exit',
1986 # in C++ we need to declare it. In case someone uses the same compiler
1987 # for both compiling C and C++ we need to have the C++ compiler decide
1988 # the declaration of exit, since it's the most demanding environment.
1989 cat >conftest.$ac_ext <<_ACEOF
1994 rm -f conftest.$ac_objext
1995 if { (eval echo "$as_me:1995: \"$ac_compile\"") >&5
1996 (eval $ac_compile) 2>&5
1998 echo "$as_me:1998: \$? = $ac_status" >&5
1999 (exit $ac_status); } &&
2000 { ac_try='test -s conftest.$ac_objext'
2001 { (eval echo "$as_me:2001: \"$ac_try\"") >&5
2004 echo "$as_me:2004: \$? = $ac_status" >&5
2005 (exit $ac_status); }; }; then
2006 for ac_declaration in \
2008 '#include <stdlib.h>' \
2009 'extern "C" void std::exit (int) throw (); using std::exit;' \
2010 'extern "C" void std::exit (int); using std::exit;' \
2011 'extern "C" void exit (int) throw ();' \
2012 'extern "C" void exit (int);' \
2015 cat >conftest.$ac_ext <<_ACEOF
2016 #line 2016 "configure"
2017 #include "confdefs.h"
2028 rm -f conftest.$ac_objext
2029 if { (eval echo "$as_me:2029: \"$ac_compile\"") >&5
2030 (eval $ac_compile) 2>&5
2032 echo "$as_me:2032: \$? = $ac_status" >&5
2033 (exit $ac_status); } &&
2034 { ac_try='test -s conftest.$ac_objext'
2035 { (eval echo "$as_me:2035: \"$ac_try\"") >&5
2038 echo "$as_me:2038: \$? = $ac_status" >&5
2039 (exit $ac_status); }; }; then
2042 echo "$as_me: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2046 rm -f conftest.$ac_objext conftest.$ac_ext
2047 cat >conftest.$ac_ext <<_ACEOF
2048 #line 2048 "configure"
2049 #include "confdefs.h"
2059 rm -f conftest.$ac_objext
2060 if { (eval echo "$as_me:2060: \"$ac_compile\"") >&5
2061 (eval $ac_compile) 2>&5
2063 echo "$as_me:2063: \$? = $ac_status" >&5
2064 (exit $ac_status); } &&
2065 { ac_try='test -s conftest.$ac_objext'
2066 { (eval echo "$as_me:2066: \"$ac_try\"") >&5
2069 echo "$as_me:2069: \$? = $ac_status" >&5
2070 (exit $ac_status); }; }; then
2073 echo "$as_me: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2076 rm -f conftest.$ac_objext conftest.$ac_ext
2079 if test -n "$ac_declaration"; then
2080 echo '#ifdef __cplusplus' >>confdefs.h
2081 echo $ac_declaration >>confdefs.h
2082 echo '#endif' >>confdefs.h
2086 echo "$as_me: failed program was:" >&5
2087 cat conftest.$ac_ext >&5
2089 rm -f conftest.$ac_objext conftest.$ac_ext
2091 ac_cpp='$CPP $CPPFLAGS'
2092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095 ac_main_return=return
2098 if test "$GCC" = yes ; then
2099 echo "$as_me:2099: checking version of $CC" >&5
2100 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2101 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2102 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2103 echo "$as_me:2103: result: $GCC_VERSION" >&5
2104 echo "${ECHO_T}$GCC_VERSION" >&6
2108 ac_cpp='$CPP $CPPFLAGS'
2109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2112 ac_main_return=return
2113 echo "$as_me:2113: checking how to run the C preprocessor" >&5
2114 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2115 # On Suns, sometimes $CPP names a directory.
2116 if test -n "$CPP" && test -d "$CPP"; then
2119 if test -z "$CPP"; then
2120 if test "${ac_cv_prog_CPP+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 # Double quotes because CPP needs to be expanded
2124 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2127 for ac_c_preproc_warn_flag in '' yes
2129 # Use a header file that comes with gcc, so configuring glibc
2130 # with a fresh cross-compiler works.
2131 # On the NeXT, cc -E runs the code through the compiler's parser,
2132 # not just through cpp. "Syntax error" is here to catch this case.
2133 cat >conftest.$ac_ext <<_ACEOF
2134 #line 2134 "configure"
2135 #include "confdefs.h"
2139 if { (eval echo "$as_me:2139: \"$ac_cpp conftest.$ac_ext\"") >&5
2140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2142 egrep -v '^ *\+' conftest.er1 >conftest.err
2144 cat conftest.err >&5
2145 echo "$as_me:2145: \$? = $ac_status" >&5
2146 (exit $ac_status); } >/dev/null; then
2147 if test -s conftest.err; then
2148 ac_cpp_err=$ac_c_preproc_warn_flag
2155 if test -z "$ac_cpp_err"; then
2158 echo "$as_me: failed program was:" >&5
2159 cat conftest.$ac_ext >&5
2160 # Broken: fails on valid input.
2163 rm -f conftest.err conftest.$ac_ext
2165 # OK, works on sane cases. Now check whether non-existent headers
2166 # can be detected and how.
2167 cat >conftest.$ac_ext <<_ACEOF
2168 #line 2168 "configure"
2169 #include "confdefs.h"
2170 #include <ac_nonexistent.h>
2172 if { (eval echo "$as_me:2172: \"$ac_cpp conftest.$ac_ext\"") >&5
2173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2175 egrep -v '^ *\+' conftest.er1 >conftest.err
2177 cat conftest.err >&5
2178 echo "$as_me:2178: \$? = $ac_status" >&5
2179 (exit $ac_status); } >/dev/null; then
2180 if test -s conftest.err; then
2181 ac_cpp_err=$ac_c_preproc_warn_flag
2188 if test -z "$ac_cpp_err"; then
2189 # Broken: success on invalid input.
2192 echo "$as_me: failed program was:" >&5
2193 cat conftest.$ac_ext >&5
2194 # Passes both tests.
2198 rm -f conftest.err conftest.$ac_ext
2201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2202 rm -f conftest.err conftest.$ac_ext
2203 if $ac_preproc_ok; then
2215 echo "$as_me:2215: result: $CPP" >&5
2216 echo "${ECHO_T}$CPP" >&6
2218 for ac_c_preproc_warn_flag in '' yes
2220 # Use a header file that comes with gcc, so configuring glibc
2221 # with a fresh cross-compiler works.
2222 # On the NeXT, cc -E runs the code through the compiler's parser,
2223 # not just through cpp. "Syntax error" is here to catch this case.
2224 cat >conftest.$ac_ext <<_ACEOF
2225 #line 2225 "configure"
2226 #include "confdefs.h"
2230 if { (eval echo "$as_me:2230: \"$ac_cpp conftest.$ac_ext\"") >&5
2231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2233 egrep -v '^ *\+' conftest.er1 >conftest.err
2235 cat conftest.err >&5
2236 echo "$as_me:2236: \$? = $ac_status" >&5
2237 (exit $ac_status); } >/dev/null; then
2238 if test -s conftest.err; then
2239 ac_cpp_err=$ac_c_preproc_warn_flag
2246 if test -z "$ac_cpp_err"; then
2249 echo "$as_me: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2251 # Broken: fails on valid input.
2254 rm -f conftest.err conftest.$ac_ext
2256 # OK, works on sane cases. Now check whether non-existent headers
2257 # can be detected and how.
2258 cat >conftest.$ac_ext <<_ACEOF
2259 #line 2259 "configure"
2260 #include "confdefs.h"
2261 #include <ac_nonexistent.h>
2263 if { (eval echo "$as_me:2263: \"$ac_cpp conftest.$ac_ext\"") >&5
2264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2266 egrep -v '^ *\+' conftest.er1 >conftest.err
2268 cat conftest.err >&5
2269 echo "$as_me:2269: \$? = $ac_status" >&5
2270 (exit $ac_status); } >/dev/null; then
2271 if test -s conftest.err; then
2272 ac_cpp_err=$ac_c_preproc_warn_flag
2279 if test -z "$ac_cpp_err"; then
2280 # Broken: success on invalid input.
2283 echo "$as_me: failed program was:" >&5
2284 cat conftest.$ac_ext >&5
2285 # Passes both tests.
2289 rm -f conftest.err conftest.$ac_ext
2292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2293 rm -f conftest.err conftest.$ac_ext
2294 if $ac_preproc_ok; then
2297 { { echo "$as_me:2297: error: C preprocessor \"$CPP\" fails sanity check" >&5
2298 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2299 { (exit 1); exit 1; }; }
2303 ac_cpp='$CPP $CPPFLAGS'
2304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2307 ac_main_return=return
2309 if test $ac_cv_c_compiler_gnu = yes; then
2310 echo "$as_me:2310: checking whether $CC needs -traditional" >&5
2311 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2312 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 ac_pattern="Autoconf.*'x'"
2316 cat >conftest.$ac_ext <<_ACEOF
2317 #line 2317 "configure"
2318 #include "confdefs.h"
2320 int Autoconf = TIOCGETP;
2322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2323 egrep "$ac_pattern" >/dev/null 2>&1; then
2324 ac_cv_prog_gcc_traditional=yes
2326 ac_cv_prog_gcc_traditional=no
2330 if test $ac_cv_prog_gcc_traditional = no; then
2331 cat >conftest.$ac_ext <<_ACEOF
2332 #line 2332 "configure"
2333 #include "confdefs.h"
2335 int Autoconf = TCGETA;
2337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2338 egrep "$ac_pattern" >/dev/null 2>&1; then
2339 ac_cv_prog_gcc_traditional=yes
2345 echo "$as_me:2345: result: $ac_cv_prog_gcc_traditional" >&5
2346 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2347 if test $ac_cv_prog_gcc_traditional = yes; then
2348 CC="$CC -traditional"
2352 echo "$as_me:2352: checking whether $CC understands -c and -o together" >&5
2353 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2354 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 cat > conftest.$ac_ext <<CF_EOF
2362 ${cf_cv_main_return:-return}(0);
2365 # We do the test twice because some compilers refuse to overwrite an
2366 # existing .o file with -o, though they will create one.
2367 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2368 if { (eval echo "$as_me:2368: \"$ac_try\"") >&5
2371 echo "$as_me:2371: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 test -f conftest2.$ac_objext && { (eval echo "$as_me:2373: \"$ac_try\"") >&5
2376 echo "$as_me:2376: \$? = $ac_status" >&5
2377 (exit $ac_status); };
2379 eval cf_cv_prog_CC_c_o=yes
2381 eval cf_cv_prog_CC_c_o=no
2386 if test $cf_cv_prog_CC_c_o = yes; then
2387 echo "$as_me:2387: result: yes" >&5
2388 echo "${ECHO_T}yes" >&6
2390 echo "$as_me:2390: result: no" >&5
2391 echo "${ECHO_T}no" >&6
2394 echo "$as_me:2394: checking for POSIXized ISC" >&5
2395 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2396 if test -d /etc/conf/kconfig.d &&
2397 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2399 echo "$as_me:2399: result: yes" >&5
2400 echo "${ECHO_T}yes" >&6
2401 ISC=yes # If later tests want to check for ISC.
2403 cat >>confdefs.h <<\EOF
2404 #define _POSIX_SOURCE 1
2407 if test "$GCC" = yes; then
2413 echo "$as_me:2413: result: no" >&5
2414 echo "${ECHO_T}no" >&6
2418 echo "$as_me:2418: checking for ${CC-cc} option to accept ANSI C" >&5
2419 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2420 if test "${cf_cv_ansi_cc+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 cf_save_CFLAGS="$CFLAGS"
2426 cf_save_CPPFLAGS="$CPPFLAGS"
2427 # Don't try gcc -ansi; that turns off useful extensions and
2428 # breaks some systems' header files.
2429 # AIX -qlanglvl=ansi
2430 # Ultrix and OSF/1 -std1
2431 # HP-UX -Aa -D_HPUX_SOURCE
2433 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2434 for cf_arg in "-DCC_HAS_PROTOS" \
2439 "-Aa -D_HPUX_SOURCE" \
2446 cf_new_extra_cppflags=
2448 for cf_add_cflags in $cf_arg
2450 case $cf_fix_cppflags in
2452 case $cf_add_cflags in #(vi
2453 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2454 case $cf_add_cflags in
2456 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2458 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2459 && test -z "${cf_tst_cflags}" \
2460 && cf_fix_cppflags=yes
2462 if test $cf_fix_cppflags = yes ; then
2463 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2465 elif test "${cf_tst_cflags}" = "\"'" ; then
2466 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2472 *$cf_add_cflags) #(vi
2475 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2480 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2485 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2487 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2489 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2490 && test -z "${cf_tst_cflags}" \
2491 && cf_fix_cppflags=no
2496 if test -n "$cf_new_cflags" ; then
2498 CFLAGS="$CFLAGS $cf_new_cflags"
2501 if test -n "$cf_new_cppflags" ; then
2503 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2506 if test -n "$cf_new_extra_cppflags" ; then
2508 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2511 cat >conftest.$ac_ext <<_ACEOF
2512 #line 2512 "configure"
2513 #include "confdefs.h"
2515 #ifndef CC_HAS_PROTOS
2516 #if !defined(__STDC__) || (__STDC__ != 1)
2525 int test (int i, double x);
2526 struct s1 {int (*f) (int a);};
2527 struct s2 {int (*f) (double a);};
2532 rm -f conftest.$ac_objext
2533 if { (eval echo "$as_me:2533: \"$ac_compile\"") >&5
2534 (eval $ac_compile) 2>&5
2536 echo "$as_me:2536: \$? = $ac_status" >&5
2537 (exit $ac_status); } &&
2538 { ac_try='test -s conftest.$ac_objext'
2539 { (eval echo "$as_me:2539: \"$ac_try\"") >&5
2542 echo "$as_me:2542: \$? = $ac_status" >&5
2543 (exit $ac_status); }; }; then
2544 cf_cv_ansi_cc="$cf_arg"; break
2546 echo "$as_me: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2549 rm -f conftest.$ac_objext conftest.$ac_ext
2551 CFLAGS="$cf_save_CFLAGS"
2552 CPPFLAGS="$cf_save_CPPFLAGS"
2555 echo "$as_me:2555: result: $cf_cv_ansi_cc" >&5
2556 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2558 if test "$cf_cv_ansi_cc" != "no"; then
2559 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2564 cf_new_extra_cppflags=
2566 for cf_add_cflags in $cf_cv_ansi_cc
2568 case $cf_fix_cppflags in
2570 case $cf_add_cflags in #(vi
2571 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2572 case $cf_add_cflags in
2574 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2576 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2577 && test -z "${cf_tst_cflags}" \
2578 && cf_fix_cppflags=yes
2580 if test $cf_fix_cppflags = yes ; then
2581 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2583 elif test "${cf_tst_cflags}" = "\"'" ; then
2584 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2590 *$cf_add_cflags) #(vi
2593 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2598 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2603 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2605 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2607 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2608 && test -z "${cf_tst_cflags}" \
2609 && cf_fix_cppflags=no
2614 if test -n "$cf_new_cflags" ; then
2616 CFLAGS="$CFLAGS $cf_new_cflags"
2619 if test -n "$cf_new_cppflags" ; then
2621 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2624 if test -n "$cf_new_extra_cppflags" ; then
2626 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2630 cat >>confdefs.h <<\EOF
2631 #define CC_HAS_PROTOS 1
2637 if test "$cf_cv_ansi_cc" = "no"; then
2638 { { echo "$as_me:2638: error: Your compiler does not appear to recognize prototypes.
2639 You have the following choices:
2640 a. adjust your compiler options
2641 b. get an up-to-date compiler
2642 c. use a wrapper such as unproto" >&5
2643 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2644 You have the following choices:
2645 a. adjust your compiler options
2646 b. get an up-to-date compiler
2647 c. use a wrapper such as unproto" >&2;}
2648 { (exit 1); exit 1; }; }
2651 case $cf_cv_system_name in
2653 CFLAGS="$CFLAGS -Zmt"
2654 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2655 CXXFLAGS="$CXXFLAGS -Zmt"
2656 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2657 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2664 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2665 #define PROG_EXT "$PROG_EXT"
2668 if test "$cross_compiling" = yes ; then
2671 case "$cf_cv_system_name" in #(vi
2672 dragonfly*|freebsd*) #(vi
2673 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2675 *) LDPATH=$PATH:/sbin:/usr/sbin
2676 # Extract the first word of "ldconfig", so it can be a program name with args.
2677 set dummy ldconfig; ac_word=$2
2678 echo "$as_me:2678: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2688 ac_save_IFS=$IFS; IFS=$ac_path_separator
2690 for ac_dir in $ac_dummy; do
2692 test -z "$ac_dir" && ac_dir=.
2693 if $as_executable_p "$ac_dir/$ac_word"; then
2694 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2695 echo "$as_me:2695: found $ac_dir/$ac_word" >&5
2703 LDCONFIG=$ac_cv_path_LDCONFIG
2705 if test -n "$LDCONFIG"; then
2706 echo "$as_me:2706: result: $LDCONFIG" >&5
2707 echo "${ECHO_T}$LDCONFIG" >&6
2709 echo "$as_me:2709: result: no" >&5
2710 echo "${ECHO_T}no" >&6
2717 echo "$as_me:2717: checking if you want to ensure bool is consistent with C++" >&5
2718 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2720 # Check whether --with-cxx or --without-cxx was given.
2721 if test "${with_cxx+set}" = set; then
2723 cf_with_cxx=$withval
2727 echo "$as_me:2727: result: $cf_with_cxx" >&5
2728 echo "${ECHO_T}$cf_with_cxx" >&6
2729 if test "X$cf_with_cxx" = Xno ; then
2733 # with autoconf 2.13, we can change the error to a warning:
2735 ac_cpp='$CXXCPP $CPPFLAGS'
2736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2739 ac_main_return=return
2740 if test -n "$ac_tool_prefix"; then
2741 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2745 echo "$as_me:2745: checking for $ac_word" >&5
2746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2747 if test "${ac_cv_prog_CXX+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 if test -n "$CXX"; then
2751 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2753 ac_save_IFS=$IFS; IFS=$ac_path_separator
2755 for ac_dir in $ac_dummy; do
2757 test -z "$ac_dir" && ac_dir=.
2758 $as_executable_p "$ac_dir/$ac_word" || continue
2759 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2760 echo "$as_me:2760: found $ac_dir/$ac_word" >&5
2767 if test -n "$CXX"; then
2768 echo "$as_me:2768: result: $CXX" >&5
2769 echo "${ECHO_T}$CXX" >&6
2771 echo "$as_me:2771: result: no" >&5
2772 echo "${ECHO_T}no" >&6
2775 test -n "$CXX" && break
2778 if test -z "$CXX"; then
2780 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 echo "$as_me:2784: checking for $ac_word" >&5
2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2786 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 if test -n "$ac_ct_CXX"; then
2790 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2792 ac_save_IFS=$IFS; IFS=$ac_path_separator
2794 for ac_dir in $ac_dummy; do
2796 test -z "$ac_dir" && ac_dir=.
2797 $as_executable_p "$ac_dir/$ac_word" || continue
2798 ac_cv_prog_ac_ct_CXX="$ac_prog"
2799 echo "$as_me:2799: found $ac_dir/$ac_word" >&5
2805 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2806 if test -n "$ac_ct_CXX"; then
2807 echo "$as_me:2807: result: $ac_ct_CXX" >&5
2808 echo "${ECHO_T}$ac_ct_CXX" >&6
2810 echo "$as_me:2810: result: no" >&5
2811 echo "${ECHO_T}no" >&6
2814 test -n "$ac_ct_CXX" && break
2816 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2821 # Provide some information about the compiler.
2822 echo "$as_me:2822:" \
2823 "checking for C++ compiler version" >&5
2824 ac_compiler=`set X $ac_compile; echo $2`
2825 { (eval echo "$as_me:2825: \"$ac_compiler --version </dev/null >&5\"") >&5
2826 (eval $ac_compiler --version </dev/null >&5) 2>&5
2828 echo "$as_me:2828: \$? = $ac_status" >&5
2829 (exit $ac_status); }
2830 { (eval echo "$as_me:2830: \"$ac_compiler -v </dev/null >&5\"") >&5
2831 (eval $ac_compiler -v </dev/null >&5) 2>&5
2833 echo "$as_me:2833: \$? = $ac_status" >&5
2834 (exit $ac_status); }
2835 { (eval echo "$as_me:2835: \"$ac_compiler -V </dev/null >&5\"") >&5
2836 (eval $ac_compiler -V </dev/null >&5) 2>&5
2838 echo "$as_me:2838: \$? = $ac_status" >&5
2839 (exit $ac_status); }
2841 echo "$as_me:2841: checking whether we are using the GNU C++ compiler" >&5
2842 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2843 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 cat >conftest.$ac_ext <<_ACEOF
2847 #line 2847 "configure"
2848 #include "confdefs.h"
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:2862: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>&5
2865 echo "$as_me:2865: \$? = $ac_status" >&5
2866 (exit $ac_status); } &&
2867 { ac_try='test -s conftest.$ac_objext'
2868 { (eval echo "$as_me:2868: \"$ac_try\"") >&5
2871 echo "$as_me:2871: \$? = $ac_status" >&5
2872 (exit $ac_status); }; }; then
2875 echo "$as_me: failed program was:" >&5
2876 cat conftest.$ac_ext >&5
2879 rm -f conftest.$ac_objext conftest.$ac_ext
2880 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2883 echo "$as_me:2883: result: $ac_cv_cxx_compiler_gnu" >&5
2884 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2885 GXX=`test $ac_compiler_gnu = yes && echo yes`
2886 ac_test_CXXFLAGS=${CXXFLAGS+set}
2887 ac_save_CXXFLAGS=$CXXFLAGS
2889 echo "$as_me:2889: checking whether $CXX accepts -g" >&5
2890 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2891 if test "${ac_cv_prog_cxx_g+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 cat >conftest.$ac_ext <<_ACEOF
2895 #line 2895 "configure"
2896 #include "confdefs.h"
2906 rm -f conftest.$ac_objext
2907 if { (eval echo "$as_me:2907: \"$ac_compile\"") >&5
2908 (eval $ac_compile) 2>&5
2910 echo "$as_me:2910: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -s conftest.$ac_objext'
2913 { (eval echo "$as_me:2913: \"$ac_try\"") >&5
2916 echo "$as_me:2916: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2918 ac_cv_prog_cxx_g=yes
2920 echo "$as_me: failed program was:" >&5
2921 cat conftest.$ac_ext >&5
2924 rm -f conftest.$ac_objext conftest.$ac_ext
2926 echo "$as_me:2926: result: $ac_cv_prog_cxx_g" >&5
2927 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2928 if test "$ac_test_CXXFLAGS" = set; then
2929 CXXFLAGS=$ac_save_CXXFLAGS
2930 elif test $ac_cv_prog_cxx_g = yes; then
2931 if test "$GXX" = yes; then
2937 if test "$GXX" = yes; then
2943 for ac_declaration in \
2945 '#include <stdlib.h>' \
2946 'extern "C" void std::exit (int) throw (); using std::exit;' \
2947 'extern "C" void std::exit (int); using std::exit;' \
2948 'extern "C" void exit (int) throw ();' \
2949 'extern "C" void exit (int);' \
2952 cat >conftest.$ac_ext <<_ACEOF
2953 #line 2953 "configure"
2954 #include "confdefs.h"
2965 rm -f conftest.$ac_objext
2966 if { (eval echo "$as_me:2966: \"$ac_compile\"") >&5
2967 (eval $ac_compile) 2>&5
2969 echo "$as_me:2969: \$? = $ac_status" >&5
2970 (exit $ac_status); } &&
2971 { ac_try='test -s conftest.$ac_objext'
2972 { (eval echo "$as_me:2972: \"$ac_try\"") >&5
2975 echo "$as_me:2975: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2979 echo "$as_me: failed program was:" >&5
2980 cat conftest.$ac_ext >&5
2983 rm -f conftest.$ac_objext conftest.$ac_ext
2984 cat >conftest.$ac_ext <<_ACEOF
2985 #line 2985 "configure"
2986 #include "confdefs.h"
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:2997: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>&5
3000 echo "$as_me:3000: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -s conftest.$ac_objext'
3003 { (eval echo "$as_me:3003: \"$ac_try\"") >&5
3006 echo "$as_me:3006: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3010 echo "$as_me: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3013 rm -f conftest.$ac_objext conftest.$ac_ext
3016 if test -n "$ac_declaration"; then
3017 echo '#ifdef __cplusplus' >>confdefs.h
3018 echo $ac_declaration >>confdefs.h
3019 echo '#endif' >>confdefs.h
3023 ac_cpp='$CPP $CPPFLAGS'
3024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027 ac_main_return=return
3029 # autoconf 2.5x removed the error - by hardcoding it to g++.
3030 if test "$CXX" = "g++" ; then
3031 # Extract the first word of "g++", so it can be a program name with args.
3032 set dummy g++; ac_word=$2
3033 echo "$as_me:3033: checking for $ac_word" >&5
3034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3035 if test "${ac_cv_path_CXX+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3043 ac_save_IFS=$IFS; IFS=$ac_path_separator
3045 for ac_dir in $ac_dummy; do
3047 test -z "$ac_dir" && ac_dir=.
3048 if $as_executable_p "$ac_dir/$ac_word"; then
3049 ac_cv_path_CXX="$ac_dir/$ac_word"
3050 echo "$as_me:3050: found $ac_dir/$ac_word" >&5
3060 if test -n "$CXX"; then
3061 echo "$as_me:3061: result: $CXX" >&5
3062 echo "${ECHO_T}$CXX" >&6
3064 echo "$as_me:3064: result: no" >&5
3065 echo "${ECHO_T}no" >&6
3069 if test "$CXX" = "g++" ; then
3070 { echo "$as_me:3070: WARNING: ignoring hardcoded g++" >&5
3071 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3072 cf_with_cxx=no; CXX=""; GXX="";
3077 if test "$GXX" = yes; then
3078 echo "$as_me:3078: checking version of g++" >&5
3079 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3080 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3081 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3082 echo "$as_me:3082: result: $GXX_VERSION" >&5
3083 echo "${ECHO_T}$GXX_VERSION" >&6
3086 case $GXX_VERSION in
3088 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3090 { echo "$as_me:3090: WARNING: templates do not work" >&5
3091 echo "$as_me: WARNING: templates do not work" >&2;}
3095 echo "$as_me:3095: checking if you want to build C++ binding and demo" >&5
3096 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3098 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3099 if test "${with_cxx_binding+set}" = set; then
3100 withval="$with_cxx_binding"
3101 cf_with_cxx_binding=$withval
3103 cf_with_cxx_binding=$cf_with_cxx
3105 echo "$as_me:3105: result: $cf_with_cxx_binding" >&5
3106 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3108 echo "$as_me:3108: checking if you want to build with Ada95" >&5
3109 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3111 # Check whether --with-ada or --without-ada was given.
3112 if test "${with_ada+set}" = set; then
3114 cf_with_ada=$withval
3118 echo "$as_me:3118: result: $cf_with_ada" >&5
3119 echo "${ECHO_T}$cf_with_ada" >&6
3121 echo "$as_me:3121: checking if you want to install manpages" >&5
3122 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3124 # Check whether --with-manpages or --without-manpages was given.
3125 if test "${with_manpages+set}" = set; then
3126 withval="$with_manpages"
3127 cf_with_manpages=$withval
3129 cf_with_manpages=yes
3131 echo "$as_me:3131: result: $cf_with_manpages" >&5
3132 echo "${ECHO_T}$cf_with_manpages" >&6
3134 echo "$as_me:3134: checking if you want to build programs such as tic" >&5
3135 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3137 # Check whether --with-progs or --without-progs was given.
3138 if test "${with_progs+set}" = set; then
3139 withval="$with_progs"
3140 cf_with_progs=$withval
3144 echo "$as_me:3144: result: $cf_with_progs" >&5
3145 echo "${ECHO_T}$cf_with_progs" >&6
3147 echo "$as_me:3147: checking if you wish to install curses.h" >&5
3148 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3150 # Check whether --with-curses-h or --without-curses-h was given.
3151 if test "${with_curses_h+set}" = set; then
3152 withval="$with_curses_h"
3153 with_curses_h=$withval
3157 echo "$as_me:3157: result: $with_curses_h" >&5
3158 echo "${ECHO_T}$with_curses_h" >&6
3160 modules_to_build="ncurses"
3161 if test "X$cf_with_progs" != Xno ; then
3162 modules_to_build="$modules_to_build progs tack"
3164 modules_to_build="$modules_to_build panel menu form"
3166 test "$program_prefix" != NONE &&
3167 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3168 # Use a double $ so make ignores it.
3169 test "$program_suffix" != NONE &&
3170 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3171 # Double any \ or $. echo might interpret backslashes.
3172 # By default was `s,x,x', remove it if useless.
3173 cat <<\_ACEOF >conftest.sed
3174 s/[\\$]/&&/g;s/;s,x,x,$//
3176 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3179 for ac_prog in mawk gawk nawk awk
3181 # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 echo "$as_me:3183: checking for $ac_word" >&5
3184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3185 if test "${ac_cv_prog_AWK+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 if test -n "$AWK"; then
3189 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3191 ac_save_IFS=$IFS; IFS=$ac_path_separator
3193 for ac_dir in $ac_dummy; do
3195 test -z "$ac_dir" && ac_dir=.
3196 $as_executable_p "$ac_dir/$ac_word" || continue
3197 ac_cv_prog_AWK="$ac_prog"
3198 echo "$as_me:3198: found $ac_dir/$ac_word" >&5
3205 if test -n "$AWK"; then
3206 echo "$as_me:3206: result: $AWK" >&5
3207 echo "${ECHO_T}$AWK" >&6
3209 echo "$as_me:3209: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3213 test -n "$AWK" && break
3216 test -z "$AWK" && { { echo "$as_me:3216: error: No awk program found" >&5
3217 echo "$as_me: error: No awk program found" >&2;}
3218 { (exit 1); exit 1; }; }
3220 echo "$as_me:3220: checking for egrep" >&5
3221 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3222 if test "${ac_cv_prog_egrep+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3226 then ac_cv_prog_egrep='grep -E'
3227 else ac_cv_prog_egrep='egrep'
3230 echo "$as_me:3230: result: $ac_cv_prog_egrep" >&5
3231 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3232 EGREP=$ac_cv_prog_egrep
3234 test -z "$EGREP" && { { echo "$as_me:3234: error: No egrep program found" >&5
3235 echo "$as_me: error: No egrep program found" >&2;}
3236 { (exit 1); exit 1; }; }
3238 # Find a good install program. We prefer a C program (faster),
3239 # so one script is as good as another. But avoid the broken or
3240 # incompatible versions:
3241 # SysV /etc/install, /usr/sbin/install
3242 # SunOS /usr/etc/install
3243 # IRIX /sbin/install
3245 # AmigaOS /C/install, which installs bootblocks on floppy discs
3246 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3247 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3248 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3249 # ./install, which can be erroneously created by make from ./install.sh.
3250 echo "$as_me:3250: checking for a BSD compatible install" >&5
3251 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3252 if test -z "$INSTALL"; then
3253 if test "${ac_cv_path_install+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 ac_save_IFS=$IFS; IFS=$ac_path_separator
3257 for ac_dir in $PATH; do
3259 # Account for people who put trailing slashes in PATH elements.
3261 / | ./ | .// | /cC/* \
3262 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3265 # OSF1 and SCO ODT 3.0 have their own names for install.
3266 # Don't use installbsd from OSF since it installs stuff as root
3268 for ac_prog in ginstall scoinst install; do
3269 if $as_executable_p "$ac_dir/$ac_prog"; then
3270 if test $ac_prog = install &&
3271 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3272 # AIX install. It has an incompatible calling convention.
3274 elif test $ac_prog = install &&
3275 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3276 # program-specific install script used by HP pwplus--don't use.
3279 ac_cv_path_install="$ac_dir/$ac_prog -c"
3289 if test "${ac_cv_path_install+set}" = set; then
3290 INSTALL=$ac_cv_path_install
3292 # As a last resort, use the slow shell script. We don't cache a
3293 # path for INSTALL within a source directory, because that will
3294 # break other packages using the cache if that directory is
3295 # removed, or if the path is relative.
3296 INSTALL=$ac_install_sh
3299 echo "$as_me:3299: result: $INSTALL" >&5
3300 echo "${ECHO_T}$INSTALL" >&6
3302 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3303 # It thinks the first close brace ends the variable substitution.
3304 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3306 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3308 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3314 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3315 test -z "$cf_dir" && cf_dir=.
3316 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3320 for ac_prog in tdlint lint alint
3322 # Extract the first word of "$ac_prog", so it can be a program name with args.
3323 set dummy $ac_prog; ac_word=$2
3324 echo "$as_me:3324: checking for $ac_word" >&5
3325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3326 if test "${ac_cv_prog_LINT+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 if test -n "$LINT"; then
3330 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3332 ac_save_IFS=$IFS; IFS=$ac_path_separator
3334 for ac_dir in $ac_dummy; do
3336 test -z "$ac_dir" && ac_dir=.
3337 $as_executable_p "$ac_dir/$ac_word" || continue
3338 ac_cv_prog_LINT="$ac_prog"
3339 echo "$as_me:3339: found $ac_dir/$ac_word" >&5
3345 LINT=$ac_cv_prog_LINT
3346 if test -n "$LINT"; then
3347 echo "$as_me:3347: result: $LINT" >&5
3348 echo "${ECHO_T}$LINT" >&6
3350 echo "$as_me:3350: result: no" >&5
3351 echo "${ECHO_T}no" >&6
3354 test -n "$LINT" && break
3357 echo "$as_me:3357: checking whether ln -s works" >&5
3358 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3360 if test "$LN_S" = "ln -s"; then
3361 echo "$as_me:3361: result: yes" >&5
3362 echo "${ECHO_T}yes" >&6
3364 echo "$as_me:3364: result: no, using $LN_S" >&5
3365 echo "${ECHO_T}no, using $LN_S" >&6
3368 echo "$as_me:3368: checking for long file names" >&5
3369 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3370 if test "${ac_cv_sys_long_file_names+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 ac_cv_sys_long_file_names=yes
3374 # Test for long file names in all the places we know might matter:
3375 # . the current directory, where building will happen
3376 # $prefix/lib where we will be installing things
3377 # $exec_prefix/lib likewise
3378 # eval it to expand exec_prefix.
3379 # $TMPDIR if set, where it might want to write temporary files
3380 # if $TMPDIR is not set:
3381 # /tmp where it might want to write temporary files
3384 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3387 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3389 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3390 test -d $ac_dir || continue
3391 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3392 ac_xdir=$ac_dir/cf$$
3393 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3394 ac_tf1=$ac_xdir/conftest9012345
3395 ac_tf2=$ac_xdir/conftest9012346
3396 (echo 1 >$ac_tf1) 2>/dev/null
3397 (echo 2 >$ac_tf2) 2>/dev/null
3398 ac_val=`cat $ac_tf1 2>/dev/null`
3399 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3400 ac_cv_sys_long_file_names=no
3401 rm -rf $ac_xdir 2>/dev/null
3404 rm -rf $ac_xdir 2>/dev/null
3407 echo "$as_me:3407: result: $ac_cv_sys_long_file_names" >&5
3408 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3409 if test $ac_cv_sys_long_file_names = yes; then
3411 cat >>confdefs.h <<\EOF
3412 #define HAVE_LONG_FILE_NAMES 1
3417 # if we find pkg-config, check if we should install the ".pc" files.
3419 echo "$as_me:3419: checking if you want to use pkg-config" >&5
3420 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3422 # Check whether --with-pkg-config or --without-pkg-config was given.
3423 if test "${with_pkg_config+set}" = set; then
3424 withval="$with_pkg_config"
3425 cf_pkg_config=$withval
3429 echo "$as_me:3429: result: $cf_pkg_config" >&5
3430 echo "${ECHO_T}$cf_pkg_config" >&6
3432 case $cf_pkg_config in #(vi
3437 # Extract the first word of "pkg-config", so it can be a program name with args.
3438 set dummy pkg-config; ac_word=$2
3439 echo "$as_me:3439: checking for $ac_word" >&5
3440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3441 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3449 ac_save_IFS=$IFS; IFS=$ac_path_separator
3451 for ac_dir in $ac_dummy; do
3453 test -z "$ac_dir" && ac_dir=.
3454 if $as_executable_p "$ac_dir/$ac_word"; then
3455 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3456 echo "$as_me:3456: found $ac_dir/$ac_word" >&5
3461 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
3465 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3467 if test -n "$PKG_CONFIG"; then
3468 echo "$as_me:3468: result: $PKG_CONFIG" >&5
3469 echo "${ECHO_T}$PKG_CONFIG" >&6
3471 echo "$as_me:3471: result: no" >&5
3472 echo "${ECHO_T}no" >&6
3481 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3482 if test "$PKG_CONFIG" != none ; then
3484 if test "x$prefix" != xNONE; then
3485 cf_path_syntax="$prefix"
3487 cf_path_syntax="$ac_default_prefix"
3490 case ".$PKG_CONFIG" in #(vi
3491 .\$\(*\)*|.\'*\'*) #(vi
3495 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3498 eval PKG_CONFIG="$PKG_CONFIG"
3499 case ".$PKG_CONFIG" in #(vi
3501 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3506 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3509 { { echo "$as_me:3509: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3510 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3511 { (exit 1); exit 1; }; }
3517 if test "$PKG_CONFIG" != no ; then
3518 echo "$as_me:3518: checking if we should install .pc files for $PKG_CONFIG" >&5
3519 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3521 # Leave this as something that can be overridden in the environment.
3522 if test -z "$PKG_CONFIG_LIBDIR" ; then
3523 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
3526 if test -d "$PKG_CONFIG_LIBDIR" ; then
3528 # Check whether --enable-pc-files or --disable-pc-files was given.
3529 if test "${enable_pc_files+set}" = set; then
3530 enableval="$enable_pc_files"
3531 enable_pc_files=$enableval
3535 echo "$as_me:3535: result: $enable_pc_files" >&5
3536 echo "${ECHO_T}$enable_pc_files" >&6
3538 echo "$as_me:3538: result: no" >&5
3539 echo "${ECHO_T}no" >&6
3540 { echo "$as_me:3540: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
3541 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
3546 echo "$as_me:3546: checking if we should assume mixed-case filenames" >&5
3547 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3549 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3550 if test "${enable_mixed_case+set}" = set; then
3551 enableval="$enable_mixed_case"
3552 enable_mixedcase=$enableval
3554 enable_mixedcase=auto
3556 echo "$as_me:3556: result: $enable_mixedcase" >&5
3557 echo "${ECHO_T}$enable_mixedcase" >&6
3558 if test "$enable_mixedcase" = "auto" ; then
3560 echo "$as_me:3560: checking if filesystem supports mixed-case filenames" >&5
3561 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3562 if test "${cf_cv_mixedcase+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 if test "$cross_compiling" = yes ; then
3567 case $target_alias in #(vi
3568 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3576 rm -f conftest CONFTEST
3578 if test -f CONFTEST ; then
3583 rm -f conftest CONFTEST
3587 echo "$as_me:3587: result: $cf_cv_mixedcase" >&5
3588 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3589 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3590 #define MIXEDCASE_FILENAMES 1
3594 cf_cv_mixedcase=$enable_mixedcase
3595 if test "$enable_mixedcase" = "yes" ; then
3596 cat >>confdefs.h <<\EOF
3597 #define MIXEDCASE_FILENAMES 1
3603 # do this after mixed-case option (tags/TAGS is not as important as tic).
3604 echo "$as_me:3604: checking whether ${MAKE-make} sets \${MAKE}" >&5
3605 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3606 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3607 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 cat >conftest.make <<\EOF
3612 @echo 'ac_maketemp="${MAKE}"'
3614 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3615 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3616 if test -n "$ac_maketemp"; then
3617 eval ac_cv_prog_make_${ac_make}_set=yes
3619 eval ac_cv_prog_make_${ac_make}_set=no
3623 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3624 echo "$as_me:3624: result: yes" >&5
3625 echo "${ECHO_T}yes" >&6
3628 echo "$as_me:3628: result: no" >&5
3629 echo "${ECHO_T}no" >&6
3630 SET_MAKE="MAKE=${MAKE-make}"
3633 # Extract the first word of "ctags", so it can be a program name with args.
3634 set dummy ctags; ac_word=$2
3635 echo "$as_me:3635: checking for $ac_word" >&5
3636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 if test -n "$MAKE_LOWER_TAGS"; then
3641 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3643 ac_save_IFS=$IFS; IFS=$ac_path_separator
3645 for ac_dir in $ac_dummy; do
3647 test -z "$ac_dir" && ac_dir=.
3648 $as_executable_p "$ac_dir/$ac_word" || continue
3649 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3650 echo "$as_me:3650: found $ac_dir/$ac_word" >&5
3654 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3657 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3658 if test -n "$MAKE_LOWER_TAGS"; then
3659 echo "$as_me:3659: result: $MAKE_LOWER_TAGS" >&5
3660 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3662 echo "$as_me:3662: result: no" >&5
3663 echo "${ECHO_T}no" >&6
3666 if test "$cf_cv_mixedcase" = yes ; then
3667 # Extract the first word of "etags", so it can be a program name with args.
3668 set dummy etags; ac_word=$2
3669 echo "$as_me:3669: checking for $ac_word" >&5
3670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3671 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 if test -n "$MAKE_UPPER_TAGS"; then
3675 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3677 ac_save_IFS=$IFS; IFS=$ac_path_separator
3679 for ac_dir in $ac_dummy; do
3681 test -z "$ac_dir" && ac_dir=.
3682 $as_executable_p "$ac_dir/$ac_word" || continue
3683 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3684 echo "$as_me:3684: found $ac_dir/$ac_word" >&5
3688 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3691 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3692 if test -n "$MAKE_UPPER_TAGS"; then
3693 echo "$as_me:3693: result: $MAKE_UPPER_TAGS" >&5
3694 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3696 echo "$as_me:3696: result: no" >&5
3697 echo "${ECHO_T}no" >&6
3704 if test "$MAKE_UPPER_TAGS" = yes ; then
3710 if test "$MAKE_LOWER_TAGS" = yes ; then
3716 echo "$as_me:3716: checking for makeflags variable" >&5
3717 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3718 if test "${cf_cv_makeflags+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3725 cat >cf_makeflags.tmp <<CF_EOF
3728 @ echo '.$cf_option'
3730 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3731 case "$cf_result" in
3733 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3734 case "$cf_result" in
3735 .*CC=*) cf_cv_makeflags=
3737 *) cf_cv_makeflags=$cf_option
3743 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3747 rm -f cf_makeflags.tmp
3750 echo "$as_me:3750: result: $cf_cv_makeflags" >&5
3751 echo "${ECHO_T}$cf_cv_makeflags" >&6
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3756 echo "$as_me:3756: checking for $ac_word" >&5
3757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3758 if test "${ac_cv_prog_RANLIB+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 if test -n "$RANLIB"; then
3762 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3764 ac_save_IFS=$IFS; IFS=$ac_path_separator
3766 for ac_dir in $ac_dummy; do
3768 test -z "$ac_dir" && ac_dir=.
3769 $as_executable_p "$ac_dir/$ac_word" || continue
3770 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3771 echo "$as_me:3771: found $ac_dir/$ac_word" >&5
3777 RANLIB=$ac_cv_prog_RANLIB
3778 if test -n "$RANLIB"; then
3779 echo "$as_me:3779: result: $RANLIB" >&5
3780 echo "${ECHO_T}$RANLIB" >&6
3782 echo "$as_me:3782: result: no" >&5
3783 echo "${ECHO_T}no" >&6
3787 if test -z "$ac_cv_prog_RANLIB"; then
3788 ac_ct_RANLIB=$RANLIB
3789 # Extract the first word of "ranlib", so it can be a program name with args.
3790 set dummy ranlib; ac_word=$2
3791 echo "$as_me:3791: checking for $ac_word" >&5
3792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3793 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 if test -n "$ac_ct_RANLIB"; then
3797 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3799 ac_save_IFS=$IFS; IFS=$ac_path_separator
3801 for ac_dir in $ac_dummy; do
3803 test -z "$ac_dir" && ac_dir=.
3804 $as_executable_p "$ac_dir/$ac_word" || continue
3805 ac_cv_prog_ac_ct_RANLIB="ranlib"
3806 echo "$as_me:3806: found $ac_dir/$ac_word" >&5
3810 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3813 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3814 if test -n "$ac_ct_RANLIB"; then
3815 echo "$as_me:3815: result: $ac_ct_RANLIB" >&5
3816 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3818 echo "$as_me:3818: result: no" >&5
3819 echo "${ECHO_T}no" >&6
3822 RANLIB=$ac_ct_RANLIB
3824 RANLIB="$ac_cv_prog_RANLIB"
3827 if test -n "$ac_tool_prefix"; then
3828 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3829 set dummy ${ac_tool_prefix}ld; ac_word=$2
3830 echo "$as_me:3830: checking for $ac_word" >&5
3831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3832 if test "${ac_cv_prog_LD+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 if test -n "$LD"; then
3836 ac_cv_prog_LD="$LD" # Let the user override the test.
3838 ac_save_IFS=$IFS; IFS=$ac_path_separator
3840 for ac_dir in $ac_dummy; do
3842 test -z "$ac_dir" && ac_dir=.
3843 $as_executable_p "$ac_dir/$ac_word" || continue
3844 ac_cv_prog_LD="${ac_tool_prefix}ld"
3845 echo "$as_me:3845: found $ac_dir/$ac_word" >&5
3852 if test -n "$LD"; then
3853 echo "$as_me:3853: result: $LD" >&5
3854 echo "${ECHO_T}$LD" >&6
3856 echo "$as_me:3856: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3861 if test -z "$ac_cv_prog_LD"; then
3863 # Extract the first word of "ld", so it can be a program name with args.
3864 set dummy ld; ac_word=$2
3865 echo "$as_me:3865: checking for $ac_word" >&5
3866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3867 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 if test -n "$ac_ct_LD"; then
3871 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3873 ac_save_IFS=$IFS; IFS=$ac_path_separator
3875 for ac_dir in $ac_dummy; do
3877 test -z "$ac_dir" && ac_dir=.
3878 $as_executable_p "$ac_dir/$ac_word" || continue
3879 ac_cv_prog_ac_ct_LD="ld"
3880 echo "$as_me:3880: found $ac_dir/$ac_word" >&5
3884 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3887 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3888 if test -n "$ac_ct_LD"; then
3889 echo "$as_me:3889: result: $ac_ct_LD" >&5
3890 echo "${ECHO_T}$ac_ct_LD" >&6
3892 echo "$as_me:3892: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3901 if test -n "$ac_tool_prefix"; then
3902 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3903 set dummy ${ac_tool_prefix}ar; ac_word=$2
3904 echo "$as_me:3904: checking for $ac_word" >&5
3905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906 if test "${ac_cv_prog_AR+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 if test -n "$AR"; then
3910 ac_cv_prog_AR="$AR" # Let the user override the test.
3912 ac_save_IFS=$IFS; IFS=$ac_path_separator
3914 for ac_dir in $ac_dummy; do
3916 test -z "$ac_dir" && ac_dir=.
3917 $as_executable_p "$ac_dir/$ac_word" || continue
3918 ac_cv_prog_AR="${ac_tool_prefix}ar"
3919 echo "$as_me:3919: found $ac_dir/$ac_word" >&5
3926 if test -n "$AR"; then
3927 echo "$as_me:3927: result: $AR" >&5
3928 echo "${ECHO_T}$AR" >&6
3930 echo "$as_me:3930: result: no" >&5
3931 echo "${ECHO_T}no" >&6
3935 if test -z "$ac_cv_prog_AR"; then
3937 # Extract the first word of "ar", so it can be a program name with args.
3938 set dummy ar; ac_word=$2
3939 echo "$as_me:3939: checking for $ac_word" >&5
3940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3941 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 if test -n "$ac_ct_AR"; then
3945 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3947 ac_save_IFS=$IFS; IFS=$ac_path_separator
3949 for ac_dir in $ac_dummy; do
3951 test -z "$ac_dir" && ac_dir=.
3952 $as_executable_p "$ac_dir/$ac_word" || continue
3953 ac_cv_prog_ac_ct_AR="ar"
3954 echo "$as_me:3954: found $ac_dir/$ac_word" >&5
3958 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3961 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3962 if test -n "$ac_ct_AR"; then
3963 echo "$as_me:3963: result: $ac_ct_AR" >&5
3964 echo "${ECHO_T}$ac_ct_AR" >&6
3966 echo "$as_me:3966: result: no" >&5
3967 echo "${ECHO_T}no" >&6
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3977 set dummy ${ac_tool_prefix}ar; ac_word=$2
3978 echo "$as_me:3978: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_AR+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 if test -n "$AR"; then
3984 ac_cv_prog_AR="$AR" # Let the user override the test.
3986 ac_save_IFS=$IFS; IFS=$ac_path_separator
3988 for ac_dir in $ac_dummy; do
3990 test -z "$ac_dir" && ac_dir=.
3991 $as_executable_p "$ac_dir/$ac_word" || continue
3992 ac_cv_prog_AR="${ac_tool_prefix}ar"
3993 echo "$as_me:3993: found $ac_dir/$ac_word" >&5
4000 if test -n "$AR"; then
4001 echo "$as_me:4001: result: $AR" >&5
4002 echo "${ECHO_T}$AR" >&6
4004 echo "$as_me:4004: result: no" >&5
4005 echo "${ECHO_T}no" >&6
4009 if test -z "$ac_cv_prog_AR"; then
4011 # Extract the first word of "ar", so it can be a program name with args.
4012 set dummy ar; ac_word=$2
4013 echo "$as_me:4013: checking for $ac_word" >&5
4014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4015 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 if test -n "$ac_ct_AR"; then
4019 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4021 ac_save_IFS=$IFS; IFS=$ac_path_separator
4023 for ac_dir in $ac_dummy; do
4025 test -z "$ac_dir" && ac_dir=.
4026 $as_executable_p "$ac_dir/$ac_word" || continue
4027 ac_cv_prog_ac_ct_AR="ar"
4028 echo "$as_me:4028: found $ac_dir/$ac_word" >&5
4032 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4035 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4036 if test -n "$ac_ct_AR"; then
4037 echo "$as_me:4037: result: $ac_ct_AR" >&5
4038 echo "${ECHO_T}$ac_ct_AR" >&6
4040 echo "$as_me:4040: result: no" >&5
4041 echo "${ECHO_T}no" >&6
4049 echo "$as_me:4049: checking for options to update archives" >&5
4050 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4051 if test "${cf_cv_ar_flags+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 cf_cv_ar_flags=unknown
4056 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4058 rm -f conftest.$ac_cv_objext
4061 cat >conftest.$ac_ext <<EOF
4062 #line 4062 "configure"
4063 int testdata[3] = { 123, 456, 789 };
4065 if { (eval echo "$as_me:4065: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>&5
4068 echo "$as_me:4068: \$? = $ac_status" >&5
4069 (exit $ac_status); } ; then
4070 $AR $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4071 if test -f conftest.a ; then
4072 cf_cv_ar_flags=$cf_ar_flags
4076 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4078 echo "${as_me-configure}:4078: testing cannot compile test-program ..." 1>&5
4083 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4086 echo "$as_me:4086: result: $cf_cv_ar_flags" >&5
4087 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4088 test -z "$ARFLAGS" && ARFLAGS=$cf_cv_ar_flags
4089 ARFLAGS=$cf_cv_ar_flags
4091 echo "$as_me:4091: checking if you have specified an install-prefix" >&5
4092 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4094 # Check whether --with-install-prefix or --without-install-prefix was given.
4095 if test "${with_install_prefix+set}" = set; then
4096 withval="$with_install_prefix"
4097 case "$withval" in #(vi
4100 *) DESTDIR="$withval"
4104 echo "$as_me:4104: result: $DESTDIR" >&5
4105 echo "${ECHO_T}$DESTDIR" >&6
4107 ###############################################################################
4109 # If we're cross-compiling, allow the user to override the tools and their
4110 # options. The configure script is oriented toward identifying the host
4111 # compiler, etc., but we need a build compiler to generate parts of the source.
4113 if test "$cross_compiling" = yes ; then
4115 # defaults that we might want to override
4116 : ${BUILD_CFLAGS:=''}
4117 : ${BUILD_CPPFLAGS:=''}
4118 : ${BUILD_LDFLAGS:=''}
4120 : ${BUILD_EXEEXT:='$x'}
4121 : ${BUILD_OBJEXT:='o'}
4123 # Check whether --with-build-cc or --without-build-cc was given.
4124 if test "${with_build_cc+set}" = set; then
4125 withval="$with_build_cc"
4128 for ac_prog in gcc cc cl
4130 # Extract the first word of "$ac_prog", so it can be a program name with args.
4131 set dummy $ac_prog; ac_word=$2
4132 echo "$as_me:4132: checking for $ac_word" >&5
4133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4134 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 if test -n "$BUILD_CC"; then
4138 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4140 ac_save_IFS=$IFS; IFS=$ac_path_separator
4142 for ac_dir in $ac_dummy; do
4144 test -z "$ac_dir" && ac_dir=.
4145 $as_executable_p "$ac_dir/$ac_word" || continue
4146 ac_cv_prog_BUILD_CC="$ac_prog"
4147 echo "$as_me:4147: found $ac_dir/$ac_word" >&5
4153 BUILD_CC=$ac_cv_prog_BUILD_CC
4154 if test -n "$BUILD_CC"; then
4155 echo "$as_me:4155: result: $BUILD_CC" >&5
4156 echo "${ECHO_T}$BUILD_CC" >&6
4158 echo "$as_me:4158: result: no" >&5
4159 echo "${ECHO_T}no" >&6
4162 test -n "$BUILD_CC" && break
4166 echo "$as_me:4166: checking for native build C compiler" >&5
4167 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4168 echo "$as_me:4168: result: $BUILD_CC" >&5
4169 echo "${ECHO_T}$BUILD_CC" >&6
4171 echo "$as_me:4171: checking for native build C preprocessor" >&5
4172 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4174 # Check whether --with-build-cpp or --without-build-cpp was given.
4175 if test "${with_build_cpp+set}" = set; then
4176 withval="$with_build_cpp"
4177 BUILD_CPP="$withval"
4179 BUILD_CPP='${BUILD_CC} -E'
4181 echo "$as_me:4181: result: $BUILD_CPP" >&5
4182 echo "${ECHO_T}$BUILD_CPP" >&6
4184 echo "$as_me:4184: checking for native build C flags" >&5
4185 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4187 # Check whether --with-build-cflags or --without-build-cflags was given.
4188 if test "${with_build_cflags+set}" = set; then
4189 withval="$with_build_cflags"
4190 BUILD_CFLAGS="$withval"
4192 echo "$as_me:4192: result: $BUILD_CFLAGS" >&5
4193 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4195 echo "$as_me:4195: checking for native build C preprocessor-flags" >&5
4196 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4198 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4199 if test "${with_build_cppflags+set}" = set; then
4200 withval="$with_build_cppflags"
4201 BUILD_CPPFLAGS="$withval"
4203 echo "$as_me:4203: result: $BUILD_CPPFLAGS" >&5
4204 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4206 echo "$as_me:4206: checking for native build linker-flags" >&5
4207 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4209 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4210 if test "${with_build_ldflags+set}" = set; then
4211 withval="$with_build_ldflags"
4212 BUILD_LDFLAGS="$withval"
4214 echo "$as_me:4214: result: $BUILD_LDFLAGS" >&5
4215 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4217 echo "$as_me:4217: checking for native build linker-libraries" >&5
4218 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4220 # Check whether --with-build-libs or --without-build-libs was given.
4221 if test "${with_build_libs+set}" = set; then
4222 withval="$with_build_libs"
4223 BUILD_LIBS="$withval"
4225 echo "$as_me:4225: result: $BUILD_LIBS" >&5
4226 echo "${ECHO_T}$BUILD_LIBS" >&6
4228 # this assumes we're on Unix.
4232 : ${BUILD_CC:='${CC}'}
4234 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4235 { { echo "$as_me:4235: error: Cross-build requires two compilers.
4236 Use --with-build-cc to specify the native compiler." >&5
4237 echo "$as_me: error: Cross-build requires two compilers.
4238 Use --with-build-cc to specify the native compiler." >&2;}
4239 { (exit 1); exit 1; }; }
4243 : ${BUILD_CC:='${CC}'}
4244 : ${BUILD_CPP:='${CPP}'}
4245 : ${BUILD_CFLAGS:='${CFLAGS}'}
4246 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4247 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4248 : ${BUILD_LIBS:='${LIBS}'}
4249 : ${BUILD_EXEEXT:='$x'}
4250 : ${BUILD_OBJEXT:='o'}
4253 ###############################################################################
4255 ### Options to allow the user to specify the set of libraries which are used.
4256 ### Use "--without-normal --with-shared" to allow the default model to be
4257 ### shared, for example.
4262 # common library maintenance symbols that are convenient for libtool scripts:
4263 LIB_CREATE='${AR} -cr'
4264 LIB_OBJECT='${OBJECTS}'
4268 # symbols used to prop libtool up to enable it to determine what it should be
4276 echo "$as_me:4276: checking if you want to build libraries with libtool" >&5
4277 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4279 # Check whether --with-libtool or --without-libtool was given.
4280 if test "${with_libtool+set}" = set; then
4281 withval="$with_libtool"
4282 with_libtool=$withval
4286 echo "$as_me:4286: result: $with_libtool" >&5
4287 echo "${ECHO_T}$with_libtool" >&6
4288 if test "$with_libtool" != "no"; then
4290 if test "$with_libtool" != "yes" ; then
4292 if test "x$prefix" != xNONE; then
4293 cf_path_syntax="$prefix"
4295 cf_path_syntax="$ac_default_prefix"
4298 case ".$with_libtool" in #(vi
4299 .\$\(*\)*|.\'*\'*) #(vi
4303 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4306 eval with_libtool="$with_libtool"
4307 case ".$with_libtool" in #(vi
4309 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4314 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4317 { { echo "$as_me:4317: error: expected a pathname, not \"$with_libtool\"" >&5
4318 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4319 { (exit 1); exit 1; }; }
4323 LIBTOOL=$with_libtool
4325 # Extract the first word of "libtool", so it can be a program name with args.
4326 set dummy libtool; ac_word=$2
4327 echo "$as_me:4327: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4337 ac_save_IFS=$IFS; IFS=$ac_path_separator
4339 for ac_dir in $ac_dummy; do
4341 test -z "$ac_dir" && ac_dir=.
4342 if $as_executable_p "$ac_dir/$ac_word"; then
4343 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4344 echo "$as_me:4344: found $ac_dir/$ac_word" >&5
4352 LIBTOOL=$ac_cv_path_LIBTOOL
4354 if test -n "$LIBTOOL"; then
4355 echo "$as_me:4355: result: $LIBTOOL" >&5
4356 echo "${ECHO_T}$LIBTOOL" >&6
4358 echo "$as_me:4358: result: no" >&5
4359 echo "${ECHO_T}no" >&6
4363 if test -z "$LIBTOOL" ; then
4364 { { echo "$as_me:4364: error: Cannot find libtool" >&5
4365 echo "$as_me: error: Cannot find libtool" >&2;}
4366 { (exit 1); exit 1; }; }
4368 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} -o'
4369 LIB_OBJECT='${OBJECTS:.o=.lo}'
4371 LIB_CLEAN='${LIBTOOL} --mode=clean'
4372 LIB_COMPILE='${LIBTOOL} --mode=compile'
4373 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4374 LIB_INSTALL='${LIBTOOL} --mode=install'
4375 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4378 # Show the version of libtool
4379 echo "$as_me:4379: checking version of libtool" >&5
4380 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4382 # Save the version in a cache variable - this is not entirely a good
4383 # thing, but the version string from libtool is very ugly, and for
4384 # bug reports it might be useful to have the original string. "("
4385 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.].*//'`
4386 echo "$as_me:4386: result: $cf_cv_libtool_version" >&5
4387 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4388 if test -z "$cf_cv_libtool_version" ; then
4389 { { echo "$as_me:4389: error: This is not GNU libtool" >&5
4390 echo "$as_me: error: This is not GNU libtool" >&2;}
4391 { (exit 1); exit 1; }; }
4394 # special hack to add -no-undefined (which libtool should do for itself)
4396 case "$cf_cv_system_name" in #(vi
4397 cygwin*|mingw32*|uwin*|aix[456]) #(vi
4398 LT_UNDEF=-no-undefined
4402 # special hack to add --tag option for C++ compiler
4403 case $cf_cv_libtool_version in #(vi
4404 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4405 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4406 LIBTOOL="$LIBTOOL --tag=CC"
4409 LIBTOOL_CXX="$LIBTOOL"
4417 test -z "$LIBTOOL" && ECHO_LT=
4419 if test "$with_libtool" != "no" ; then
4421 cf_list_models="$cf_list_models libtool"
4425 echo "$as_me:4425: checking if you want to build shared libraries" >&5
4426 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4428 # Check whether --with-shared or --without-shared was given.
4429 if test "${with_shared+set}" = set; then
4430 withval="$with_shared"
4431 with_shared=$withval
4435 echo "$as_me:4435: result: $with_shared" >&5
4436 echo "${ECHO_T}$with_shared" >&6
4437 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4439 echo "$as_me:4439: checking if you want to build static libraries" >&5
4440 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4442 # Check whether --with-normal or --without-normal was given.
4443 if test "${with_normal+set}" = set; then
4444 withval="$with_normal"
4445 with_normal=$withval
4449 echo "$as_me:4449: result: $with_normal" >&5
4450 echo "${ECHO_T}$with_normal" >&6
4451 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4453 echo "$as_me:4453: checking if you want to build debug libraries" >&5
4454 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4456 # Check whether --with-debug or --without-debug was given.
4457 if test "${with_debug+set}" = set; then
4458 withval="$with_debug"
4463 echo "$as_me:4463: result: $with_debug" >&5
4464 echo "${ECHO_T}$with_debug" >&6
4465 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4467 echo "$as_me:4467: checking if you want to build profiling libraries" >&5
4468 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4470 # Check whether --with-profile or --without-profile was given.
4471 if test "${with_profile+set}" = set; then
4472 withval="$with_profile"
4473 with_profile=$withval
4477 echo "$as_me:4477: result: $with_profile" >&5
4478 echo "${ECHO_T}$with_profile" >&6
4479 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4483 ###############################################################################
4485 echo "$as_me:4485: checking for specified models" >&5
4486 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4487 test -z "$cf_list_models" && cf_list_models=normal
4488 test "$with_libtool" != "no" && cf_list_models=libtool
4489 echo "$as_me:4489: result: $cf_list_models" >&5
4490 echo "${ECHO_T}$cf_list_models" >&6
4492 ### Use the first model as the default, and save its suffix for use in building
4493 ### up test-applications.
4494 echo "$as_me:4494: checking for default model" >&5
4495 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4496 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4497 echo "$as_me:4497: result: $DFT_LWR_MODEL" >&5
4498 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4500 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4511 case $cf_cv_system_name in #(vi
4518 cf_prefix=$LIB_PREFIX
4520 LIB_PREFIX=$cf_prefix
4524 ###############################################################################
4526 echo "$as_me:4526: checking if you want to build a separate terminfo library" >&5
4527 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4529 # Check whether --with-termlib or --without-termlib was given.
4530 if test "${with_termlib+set}" = set; then
4531 withval="$with_termlib"
4532 with_termlib=$withval
4536 echo "$as_me:4536: result: $with_termlib" >&5
4537 echo "${ECHO_T}$with_termlib" >&6
4539 echo "$as_me:4539: checking if you want to build a separate tic library" >&5
4540 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4542 # Check whether --with-ticlib or --without-ticlib was given.
4543 if test "${with_ticlib+set}" = set; then
4544 withval="$with_ticlib"
4545 with_ticlib=$withval
4549 echo "$as_me:4549: result: $with_ticlib" >&5
4550 echo "${ECHO_T}$with_ticlib" >&6
4552 ### Checks for special libraries, must be done up-front.
4555 echo "$as_me:4555: checking if you want to link with the GPM mouse library" >&5
4556 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4558 # Check whether --with-gpm or --without-gpm was given.
4559 if test "${with_gpm+set}" = set; then
4565 echo "$as_me:4565: result: $with_gpm" >&5
4566 echo "${ECHO_T}$with_gpm" >&6
4568 if test "$with_gpm" != no ; then
4569 echo "$as_me:4569: checking for gpm.h" >&5
4570 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4571 if test "${ac_cv_header_gpm_h+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 cat >conftest.$ac_ext <<_ACEOF
4575 #line 4575 "configure"
4576 #include "confdefs.h"
4579 if { (eval echo "$as_me:4579: \"$ac_cpp conftest.$ac_ext\"") >&5
4580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4582 egrep -v '^ *\+' conftest.er1 >conftest.err
4584 cat conftest.err >&5
4585 echo "$as_me:4585: \$? = $ac_status" >&5
4586 (exit $ac_status); } >/dev/null; then
4587 if test -s conftest.err; then
4588 ac_cpp_err=$ac_c_preproc_warn_flag
4595 if test -z "$ac_cpp_err"; then
4596 ac_cv_header_gpm_h=yes
4598 echo "$as_me: failed program was:" >&5
4599 cat conftest.$ac_ext >&5
4600 ac_cv_header_gpm_h=no
4602 rm -f conftest.err conftest.$ac_ext
4604 echo "$as_me:4604: result: $ac_cv_header_gpm_h" >&5
4605 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4606 if test $ac_cv_header_gpm_h = yes; then
4608 cat >>confdefs.h <<\EOF
4609 #define HAVE_GPM_H 1
4612 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4613 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4615 echo "${as_me-configure}:4615: testing assuming we really have GPM library ..." 1>&5
4617 cat >>confdefs.h <<\EOF
4618 #define HAVE_LIBGPM 1
4622 echo "$as_me:4622: checking for Gpm_Open in -lgpm" >&5
4623 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4624 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 ac_check_lib_save_LIBS=$LIBS
4629 cat >conftest.$ac_ext <<_ACEOF
4630 #line 4630 "configure"
4631 #include "confdefs.h"
4633 /* Override any gcc2 internal prototype to avoid an error. */
4637 /* We use char because int might match the return type of a gcc2
4638 builtin and then its argument prototype would still apply. */
4648 rm -f conftest.$ac_objext conftest$ac_exeext
4649 if { (eval echo "$as_me:4649: \"$ac_link\"") >&5
4650 (eval $ac_link) 2>&5
4652 echo "$as_me:4652: \$? = $ac_status" >&5
4653 (exit $ac_status); } &&
4654 { ac_try='test -s conftest$ac_exeext'
4655 { (eval echo "$as_me:4655: \"$ac_try\"") >&5
4658 echo "$as_me:4658: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4660 ac_cv_lib_gpm_Gpm_Open=yes
4662 echo "$as_me: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4664 ac_cv_lib_gpm_Gpm_Open=no
4666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4667 LIBS=$ac_check_lib_save_LIBS
4669 echo "$as_me:4669: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4670 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4671 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4675 { { echo "$as_me:4675: error: Cannot link with GPM library" >&5
4676 echo "$as_me: error: Cannot link with GPM library" >&2;}
4677 { (exit 1); exit 1; }; }
4685 test "$with_gpm" != maybe && { echo "$as_me:4685: WARNING: Cannot find GPM header" >&5
4686 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4693 if test "$with_gpm" != no ; then
4694 echo "$as_me:4694: checking if you want to load GPM dynamically" >&5
4695 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4697 # Check whether --with-dlsym or --without-dlsym was given.
4698 if test "${with_dlsym+set}" = set; then
4699 withval="$with_dlsym"
4704 echo "$as_me:4704: result: $with_dlsym" >&5
4705 echo "${ECHO_T}$with_dlsym" >&6
4706 if test "$with_dlsym" = yes ; then
4709 echo "$as_me:4709: checking for dlsym" >&5
4710 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4711 if test "${ac_cv_func_dlsym+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 cat >conftest.$ac_ext <<_ACEOF
4715 #line 4715 "configure"
4716 #include "confdefs.h"
4717 /* System header to define __stub macros and hopefully few prototypes,
4718 which can conflict with char dlsym (); below. */
4720 /* Override any gcc2 internal prototype to avoid an error. */
4724 /* We use char because int might match the return type of a gcc2
4725 builtin and then its argument prototype would still apply. */
4732 /* The GNU C library defines this for functions which it implements
4733 to always fail with ENOSYS. Some functions are actually named
4734 something starting with __ and the normal name is an alias. */
4735 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4745 rm -f conftest.$ac_objext conftest$ac_exeext
4746 if { (eval echo "$as_me:4746: \"$ac_link\"") >&5
4747 (eval $ac_link) 2>&5
4749 echo "$as_me:4749: \$? = $ac_status" >&5
4750 (exit $ac_status); } &&
4751 { ac_try='test -s conftest$ac_exeext'
4752 { (eval echo "$as_me:4752: \"$ac_try\"") >&5
4755 echo "$as_me:4755: \$? = $ac_status" >&5
4756 (exit $ac_status); }; }; then
4757 ac_cv_func_dlsym=yes
4759 echo "$as_me: failed program was:" >&5
4760 cat conftest.$ac_ext >&5
4763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4765 echo "$as_me:4765: result: $ac_cv_func_dlsym" >&5
4766 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4767 if test $ac_cv_func_dlsym = yes; then
4772 echo "$as_me:4772: checking for dlsym in -ldl" >&5
4773 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4774 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 ac_check_lib_save_LIBS=$LIBS
4779 cat >conftest.$ac_ext <<_ACEOF
4780 #line 4780 "configure"
4781 #include "confdefs.h"
4783 /* Override any gcc2 internal prototype to avoid an error. */
4787 /* We use char because int might match the return type of a gcc2
4788 builtin and then its argument prototype would still apply. */
4798 rm -f conftest.$ac_objext conftest$ac_exeext
4799 if { (eval echo "$as_me:4799: \"$ac_link\"") >&5
4800 (eval $ac_link) 2>&5
4802 echo "$as_me:4802: \$? = $ac_status" >&5
4803 (exit $ac_status); } &&
4804 { ac_try='test -s conftest$ac_exeext'
4805 { (eval echo "$as_me:4805: \"$ac_try\"") >&5
4808 echo "$as_me:4808: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 ac_cv_lib_dl_dlsym=yes
4812 echo "$as_me: failed program was:" >&5
4813 cat conftest.$ac_ext >&5
4814 ac_cv_lib_dl_dlsym=no
4816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4817 LIBS=$ac_check_lib_save_LIBS
4819 echo "$as_me:4819: result: $ac_cv_lib_dl_dlsym" >&5
4820 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4821 if test $ac_cv_lib_dl_dlsym = yes; then
4829 if test "$cf_have_dlsym" = yes ; then
4830 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
4832 echo "$as_me:4832: checking whether able to link to dl*() functions" >&5
4833 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
4834 cat >conftest.$ac_ext <<_ACEOF
4835 #line 4835 "configure"
4836 #include "confdefs.h"
4843 if ((obj = dlopen("filename", 0)) != 0) {
4844 if (dlsym(obj, "symbolname") == 0) {
4852 rm -f conftest.$ac_objext conftest$ac_exeext
4853 if { (eval echo "$as_me:4853: \"$ac_link\"") >&5
4854 (eval $ac_link) 2>&5
4856 echo "$as_me:4856: \$? = $ac_status" >&5
4857 (exit $ac_status); } &&
4858 { ac_try='test -s conftest$ac_exeext'
4859 { (eval echo "$as_me:4859: \"$ac_try\"") >&5
4862 echo "$as_me:4862: \$? = $ac_status" >&5
4863 (exit $ac_status); }; }; then
4865 cat >>confdefs.h <<\EOF
4866 #define HAVE_LIBDL 1
4870 echo "$as_me: failed program was:" >&5
4871 cat conftest.$ac_ext >&5
4873 { { echo "$as_me:4873: error: Cannot link test program for libdl" >&5
4874 echo "$as_me: error: Cannot link test program for libdl" >&2;}
4875 { (exit 1); exit 1; }; }
4877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4878 echo "$as_me:4878: result: ok" >&5
4879 echo "${ECHO_T}ok" >&6
4881 { { echo "$as_me:4881: error: Cannot find dlsym function" >&5
4882 echo "$as_me: error: Cannot find dlsym function" >&2;}
4883 { (exit 1); exit 1; }; }
4886 if test "$with_gpm" != yes ; then
4887 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
4889 echo "${as_me-configure}:4889: testing assuming soname for gpm is $with_gpm ..." 1>&5
4891 cf_cv_gpm_soname="$with_gpm"
4894 echo "$as_me:4894: checking for soname of gpm library" >&5
4895 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
4896 if test "${cf_cv_gpm_soname+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 cf_cv_gpm_soname=unknown
4901 if test "$cross_compiling" != yes ; then
4902 cat >conftest.$ac_ext <<CF_EOF
4906 if (Gpm_Open(0,0)) Gpm_Close();
4907 ${cf_cv_main_return:-return}(0);
4910 cf_save_LIBS="$LIBS"
4912 if { (eval echo "$as_me:4912: \"$ac_compile\"") >&5
4913 (eval $ac_compile) 2>&5
4915 echo "$as_me:4915: \$? = $ac_status" >&5
4916 (exit $ac_status); } ; then
4917 if { (eval echo "$as_me:4917: \"$ac_link\"") >&5
4918 (eval $ac_link) 2>&5
4920 echo "$as_me:4920: \$? = $ac_status" >&5
4921 (exit $ac_status); } ; then
4922 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
4923 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
4927 LIBS="$cf_save_LIBS"
4931 echo "$as_me:4931: result: $cf_cv_gpm_soname" >&5
4932 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
4935 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
4936 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
4939 SHLIB_LIST="-ldl $SHLIB_LIST"
4941 SHLIB_LIST="-lgpm $SHLIB_LIST"
4943 cat >>confdefs.h <<\EOF
4944 #define HAVE_LIBGPM 1
4947 echo "$as_me:4947: checking for Gpm_Wgetch in -lgpm" >&5
4948 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
4949 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 ac_check_lib_save_LIBS=$LIBS
4954 cat >conftest.$ac_ext <<_ACEOF
4955 #line 4955 "configure"
4956 #include "confdefs.h"
4958 /* Override any gcc2 internal prototype to avoid an error. */
4962 /* We use char because int might match the return type of a gcc2
4963 builtin and then its argument prototype would still apply. */
4973 rm -f conftest.$ac_objext conftest$ac_exeext
4974 if { (eval echo "$as_me:4974: \"$ac_link\"") >&5
4975 (eval $ac_link) 2>&5
4977 echo "$as_me:4977: \$? = $ac_status" >&5
4978 (exit $ac_status); } &&
4979 { ac_try='test -s conftest$ac_exeext'
4980 { (eval echo "$as_me:4980: \"$ac_try\"") >&5
4983 echo "$as_me:4983: \$? = $ac_status" >&5
4984 (exit $ac_status); }; }; then
4985 ac_cv_lib_gpm_Gpm_Wgetch=yes
4987 echo "$as_me: failed program was:" >&5
4988 cat conftest.$ac_ext >&5
4989 ac_cv_lib_gpm_Gpm_Wgetch=no
4991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4992 LIBS=$ac_check_lib_save_LIBS
4994 echo "$as_me:4994: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
4995 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
4996 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
4998 echo "$as_me:4998: checking if GPM is weakly bound to curses library" >&5
4999 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5000 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 cf_cv_check_gpm_wgetch=unknown
5005 if test "$cross_compiling" != yes ; then
5007 cat >conftest.$ac_ext <<CF_EOF
5012 ${cf_cv_main_return:-return}(0);
5016 cf_save_LIBS="$LIBS"
5017 # This only works if we can look at the symbol table. If a shared
5018 # library is stripped for install, we cannot use that. So we're forced
5019 # to rely on the static library, noting that some packagers may not
5021 LIBS="-static -lgpm -dynamic $LIBS"
5022 if { (eval echo "$as_me:5022: \"$ac_compile\"") >&5
5023 (eval $ac_compile) 2>&5
5025 echo "$as_me:5025: \$? = $ac_status" >&5
5026 (exit $ac_status); } ; then
5027 if { (eval echo "$as_me:5027: \"$ac_link\"") >&5
5028 (eval $ac_link) 2>&5
5030 echo "$as_me:5030: \$? = $ac_status" >&5
5031 (exit $ac_status); } ; then
5032 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5033 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5034 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5038 LIBS="$cf_save_LIBS"
5042 echo "$as_me:5042: result: $cf_cv_check_gpm_wgetch" >&5
5043 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5045 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5046 { echo "$as_me:5046: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5047 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5054 # not everyone has "test -c"
5055 if test -c /dev/sysmouse 2>/dev/null ; then
5056 echo "$as_me:5056: checking if you want to use sysmouse" >&5
5057 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5059 # Check whether --with-sysmouse or --without-sysmouse was given.
5060 if test "${with_sysmouse+set}" = set; then
5061 withval="$with_sysmouse"
5062 cf_with_sysmouse=$withval
5064 cf_with_sysmouse=maybe
5066 if test "$cf_with_sysmouse" != no ; then
5067 cat >conftest.$ac_ext <<_ACEOF
5068 #line 5068 "configure"
5069 #include "confdefs.h"
5071 #include <osreldate.h>
5072 #if (__FreeBSD_version >= 400017)
5073 #include <sys/consio.h>
5074 #include <sys/fbio.h>
5076 #include <machine/console.h>
5083 struct mouse_info the_mouse;
5084 ioctl(0, CONS_MOUSECTL, &the_mouse);
5090 rm -f conftest.$ac_objext
5091 if { (eval echo "$as_me:5091: \"$ac_compile\"") >&5
5092 (eval $ac_compile) 2>&5
5094 echo "$as_me:5094: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try='test -s conftest.$ac_objext'
5097 { (eval echo "$as_me:5097: \"$ac_try\"") >&5
5100 echo "$as_me:5100: \$? = $ac_status" >&5
5101 (exit $ac_status); }; }; then
5102 cf_with_sysmouse=yes
5104 echo "$as_me: failed program was:" >&5
5105 cat conftest.$ac_ext >&5
5108 rm -f conftest.$ac_objext conftest.$ac_ext
5110 echo "$as_me:5110: result: $cf_with_sysmouse" >&5
5111 echo "${ECHO_T}$cf_with_sysmouse" >&6
5112 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
5113 #define USE_SYSMOUSE 1
5118 if test X"$CC_G_OPT" = X"" ; then
5120 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
5123 if test X"$CXX_G_OPT" = X"" ; then
5125 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
5128 echo "$as_me:5128: checking for default loader flags" >&5
5129 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5130 case $DFT_LWR_MODEL in
5131 libtool) LD_MODEL='' ;;
5132 normal) LD_MODEL='' ;;
5133 debug) LD_MODEL=$CC_G_OPT ;;
5134 profile) LD_MODEL='-pg';;
5135 shared) LD_MODEL='' ;;
5137 echo "$as_me:5137: result: $LD_MODEL" >&5
5138 echo "${ECHO_T}$LD_MODEL" >&6
5140 case $DFT_LWR_MODEL in
5143 echo "$as_me:5143: checking if rpath option should be used" >&5
5144 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5146 # Check whether --enable-rpath or --disable-rpath was given.
5147 if test "${enable_rpath+set}" = set; then
5148 enableval="$enable_rpath"
5149 cf_cv_ld_rpath=$enableval
5153 echo "$as_me:5153: result: $cf_cv_ld_rpath" >&5
5154 echo "${ECHO_T}$cf_cv_ld_rpath" >&6
5156 echo "$as_me:5156: checking if shared libraries should be relinked during install" >&5
5157 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5159 # Check whether --enable-relink or --disable-relink was given.
5160 if test "${enable_relink+set}" = set; then
5161 enableval="$enable_relink"
5162 cf_cv_do_relink=$enableval
5166 echo "$as_me:5166: result: $cf_cv_do_relink" >&5
5167 echo "${ECHO_T}$cf_cv_do_relink" >&6
5175 INSTALL_LIB="-m 644"
5177 cf_cv_do_symlinks=no
5179 echo "$as_me:5179: checking if release/abi version should be used for shared libs" >&5
5180 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5182 # Check whether --with-shlib-version or --without-shlib-version was given.
5183 if test "${with_shlib_version+set}" = set; then
5184 withval="$with_shlib_version"
5185 test -z "$withval" && withval=auto
5186 case $withval in #(vi
5188 cf_cv_shlib_version=auto
5190 rel|abi|auto|no) #(vi
5191 cf_cv_shlib_version=$withval
5194 { { echo "$as_me:5194: error: option value must be one of: rel, abi, auto or no" >&5
5195 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5196 { (exit 1); exit 1; }; }
5201 cf_cv_shlib_version=auto
5203 echo "$as_me:5203: result: $cf_cv_shlib_version" >&5
5204 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5208 # Some less-capable ports of gcc support only -fpic
5210 if test "$GCC" = yes
5212 echo "$as_me:5212: checking which $CC option to use" >&5
5213 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5214 cf_save_CFLAGS="$CFLAGS"
5215 for CC_SHARED_OPTS in -fPIC -fpic ''
5217 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5218 cat >conftest.$ac_ext <<_ACEOF
5219 #line 5219 "configure"
5220 #include "confdefs.h"
5230 rm -f conftest.$ac_objext
5231 if { (eval echo "$as_me:5231: \"$ac_compile\"") >&5
5232 (eval $ac_compile) 2>&5
5234 echo "$as_me:5234: \$? = $ac_status" >&5
5235 (exit $ac_status); } &&
5236 { ac_try='test -s conftest.$ac_objext'
5237 { (eval echo "$as_me:5237: \"$ac_try\"") >&5
5240 echo "$as_me:5240: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5244 echo "$as_me: failed program was:" >&5
5245 cat conftest.$ac_ext >&5
5247 rm -f conftest.$ac_objext conftest.$ac_ext
5249 echo "$as_me:5249: result: $CC_SHARED_OPTS" >&5
5250 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5251 CFLAGS="$cf_save_CFLAGS"
5254 cf_cv_shlib_version_infix=no
5256 case $cf_cv_system_name in
5258 if test "$GCC" = yes; then
5260 MK_SHARED_LIB="$(CC) -shared"
5264 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5268 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5269 cf_cv_shlib_version=cygdll
5270 cf_cv_shlib_version_infix=cygdll
5271 cat >mk_shared_lib.sh <<-CF_EOF
5274 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5277 Linking shared library
5278 ** SHARED_LIB \$SHARED_LIB
5279 ** IMPORT_LIB \$IMPORT_LIB
5281 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5283 chmod +x mk_shared_lib.sh
5286 EXTRA_CFLAGS="-no-cpp-precomp"
5287 CC_SHARED_OPTS="-dynamic"
5288 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5289 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5290 cf_cv_shlib_version_infix=yes
5291 echo "$as_me:5291: checking if ld -search_paths_first works" >&5
5292 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5293 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 cf_save_LDFLAGS=$LDFLAGS
5298 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5299 cat >conftest.$ac_ext <<_ACEOF
5300 #line 5300 "configure"
5301 #include "confdefs.h"
5311 rm -f conftest.$ac_objext conftest$ac_exeext
5312 if { (eval echo "$as_me:5312: \"$ac_link\"") >&5
5313 (eval $ac_link) 2>&5
5315 echo "$as_me:5315: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -s conftest$ac_exeext'
5318 { (eval echo "$as_me:5318: \"$ac_try\"") >&5
5321 echo "$as_me:5321: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 cf_cv_ldflags_search_paths_first=yes
5325 echo "$as_me: failed program was:" >&5
5326 cat conftest.$ac_ext >&5
5327 cf_cv_ldflags_search_paths_first=no
5329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5330 LDFLAGS=$cf_save_LDFLAGS
5332 echo "$as_me:5332: result: $cf_cv_ldflags_search_paths_first" >&5
5333 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5334 if test $cf_cv_ldflags_search_paths_first = yes; then
5335 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5339 # (tested with gcc 2.7.2 -- I don't have c89)
5340 if test "$GCC" = yes; then
5341 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5344 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5346 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5347 # HP-UX shared libraries must be executable, and should be
5348 # readonly to exploit a quirk in the memory manager.
5349 INSTALL_LIB="-m 555"
5352 if test "$cf_cv_ld_rpath" = yes ; then
5353 if test "$GCC" = yes; then
5354 LD_RPATH_OPT="-Wl,-rpath,"
5355 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5357 LD_RPATH_OPT="-rpath "
5358 EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
5361 # tested with IRIX 5.2 and 'cc'.
5362 if test "$GCC" != yes; then
5363 CC_SHARED_OPTS='-KPIC'
5364 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5366 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5368 cf_cv_rm_so_locs=yes
5370 linux*|gnu*|k*bsd*-gnu)
5371 if test "$DFT_LWR_MODEL" = "shared" ; then
5372 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5373 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5375 if test "$cf_cv_ld_rpath" = yes ; then
5376 LD_RPATH_OPT="-Wl,-rpath,"
5377 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5380 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5381 if test "$cf_cv_shlib_version" = rel; then
5382 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5384 cf_cv_shared_soname='`basename $@`'
5387 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5390 if test "$DFT_LWR_MODEL" = "shared" ; then
5391 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5392 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5394 if test "$cf_cv_ld_rpath" = yes ; then
5395 LD_RPATH_OPT="-Wl,-rpath,"
5396 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5398 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5400 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5401 if test "$cf_cv_shlib_version" = rel; then
5402 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5404 cf_cv_shared_soname='`basename $@`'
5407 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5409 nto-qnx*|openbsd*|freebsd[12].*)
5410 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5411 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5412 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5415 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5416 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
5417 LOCAL_LDFLAGS="-rpath \$(LOCAL_LIBDIR)"
5418 LOCAL_LDFLAGS2="-rpath \${libdir} $LOCAL_LDFLAGS"
5419 LD_RPATH_OPT="-rpath "
5420 EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
5423 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5424 if test "$cf_cv_shlib_version" = rel; then
5425 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5427 cf_cv_shared_soname='`basename $@`'
5430 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
5433 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5434 test "$cf_cv_ld_rpath" = yes && LD_RPATH_OPT="-Wl,-rpath,"
5435 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
5436 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5437 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5438 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5439 if test "$cf_cv_shlib_version" = auto; then
5440 if test -f /usr/libexec/ld.elf_so; then
5441 cf_cv_shlib_version=abi
5443 cf_cv_shlib_version=rel
5447 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5448 if test "$cf_cv_shlib_version" = rel; then
5449 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5451 cf_cv_shared_soname='`basename $@`'
5454 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5456 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
5460 # tested with OSF/1 V3.2 and 'cc'
5461 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5462 # link with shared libs).
5463 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5466 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5469 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5470 if test "$DFT_LWR_MODEL" = "shared" ; then
5471 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5472 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5474 if test "$cf_cv_ld_rpath" = yes ; then
5475 LD_RPATH_OPT="-rpath"
5476 # EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
5478 cf_cv_rm_so_locs=yes
5480 sco3.2v5*) # (also uw2* and UW7) hops 13-Apr-98
5481 # tested with osr5.0.5
5482 if test "$GCC" != yes; then
5483 CC_SHARED_OPTS='-belf -KPIC'
5485 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5486 if test "$cf_cv_ld_rpath" = yes ; then
5487 # only way is to set LD_RUN_PATH but no switch for it
5490 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5491 LINK_PROGS='LD_RUN_PATH=${libdir}'
5492 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5495 # tested with SunOS 4.1.1 and gcc 2.7.0
5496 if test "$GCC" != yes; then
5497 CC_SHARED_OPTS='-KPIC'
5499 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5500 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5503 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5504 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5505 if test "$DFT_LWR_MODEL" = "shared" ; then
5506 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5507 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5509 if test "$cf_cv_ld_rpath" = yes ; then
5511 EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
5514 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5515 if test "$cf_cv_shlib_version" = rel; then
5516 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5518 cf_cv_shared_soname='`basename $@`'
5521 if test "$GCC" != yes; then
5522 cf_save_CFLAGS="$CFLAGS"
5523 for cf_shared_opts in -xcode=pic13 -xcode=pic32 -Kpic -KPIC -O
5525 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
5526 cat >conftest.$ac_ext <<_ACEOF
5527 #line 5527 "configure"
5528 #include "confdefs.h"
5538 rm -f conftest.$ac_objext
5539 if { (eval echo "$as_me:5539: \"$ac_compile\"") >&5
5540 (eval $ac_compile) 2>&5
5542 echo "$as_me:5542: \$? = $ac_status" >&5
5543 (exit $ac_status); } &&
5544 { ac_try='test -s conftest.$ac_objext'
5545 { (eval echo "$as_me:5545: \"$ac_try\"") >&5
5548 echo "$as_me:5548: \$? = $ac_status" >&5
5549 (exit $ac_status); }; }; then
5552 echo "$as_me: failed program was:" >&5
5553 cat conftest.$ac_ext >&5
5555 rm -f conftest.$ac_objext conftest.$ac_ext
5557 CFLAGS="$cf_save_CFLAGS"
5558 CC_SHARED_OPTS=$cf_shared_opts
5559 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
5561 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
5565 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
5566 if test "$GCC" != yes; then
5567 CC_SHARED_OPTS='-KPIC'
5569 MK_SHARED_LIB='${LD} -d y -G -o $@'
5572 CC_SHARED_OPTS='unknown'
5573 MK_SHARED_LIB='echo unknown'
5577 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
5578 case "$cf_cv_shlib_version" in #(vi
5580 case "$MK_SHARED_LIB" in #(vi
5582 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
5585 { echo "$as_me:5585: WARNING: ignored --with-shlib-version" >&5
5586 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
5592 if test -n "$LD_RPATH_OPT" ; then
5593 echo "$as_me:5593: checking if we need a space after rpath option" >&5
5594 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5595 cf_save_LIBS="$LIBS"
5596 LIBS="$LIBS ${LD_RPATH_OPT}$libdir"
5597 cat >conftest.$ac_ext <<_ACEOF
5598 #line 5598 "configure"
5599 #include "confdefs.h"
5609 rm -f conftest.$ac_objext conftest$ac_exeext
5610 if { (eval echo "$as_me:5610: \"$ac_link\"") >&5
5611 (eval $ac_link) 2>&5
5613 echo "$as_me:5613: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try='test -s conftest$ac_exeext'
5616 { (eval echo "$as_me:5616: \"$ac_try\"") >&5
5619 echo "$as_me:5619: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5623 echo "$as_me: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5628 LIBS="$cf_save_LIBS"
5629 echo "$as_me:5629: result: $cf_rpath_space" >&5
5630 echo "${ECHO_T}$cf_rpath_space" >&6
5631 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5632 MK_SHARED_LIB="$MK_SHARED_LIB $LD_RPATH_OPT\${libdir}"
5635 if test "$CC_SHARED_OPTS" = "unknown"; then
5636 for model in $cf_list_models; do
5637 if test "$model" = "shared"; then
5638 { { echo "$as_me:5638: error: Shared libraries are not supported in this version" >&5
5639 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
5640 { (exit 1); exit 1; }; }
5645 ###############################################################################
5647 ### use option --disable-overwrite to leave out the link to -lcurses
5648 echo "$as_me:5648: checking if you wish to install ncurses overwriting curses" >&5
5649 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
5651 # Check whether --enable-overwrite or --disable-overwrite was given.
5652 if test "${enable_overwrite+set}" = set; then
5653 enableval="$enable_overwrite"
5654 with_overwrite=$enableval
5656 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
5658 echo "$as_me:5658: result: $with_overwrite" >&5
5659 echo "${ECHO_T}$with_overwrite" >&6
5661 echo "$as_me:5661: checking if external terminfo-database is used" >&5
5662 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
5664 # Check whether --enable-database or --disable-database was given.
5665 if test "${enable_database+set}" = set; then
5666 enableval="$enable_database"
5667 use_database=$enableval
5671 echo "$as_me:5671: result: $use_database" >&5
5672 echo "${ECHO_T}$use_database" >&6
5674 case $host_os in #(vi
5676 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
5679 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
5683 case $cf_cv_system_name in
5684 os2*) PATH_SEPARATOR=';' ;;
5685 *) PATH_SEPARATOR=':' ;;
5688 if test "$use_database" != no ; then
5689 cat >>confdefs.h <<\EOF
5690 #define USE_DATABASE 1
5693 echo "$as_me:5693: checking which terminfo source-file will be installed" >&5
5694 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
5696 # Check whether --enable-database or --disable-database was given.
5697 if test "${enable_database+set}" = set; then
5698 enableval="$enable_database"
5699 TERMINFO_SRC=$withval
5701 echo "$as_me:5701: result: $TERMINFO_SRC" >&5
5702 echo "${ECHO_T}$TERMINFO_SRC" >&6
5704 echo "$as_me:5704: checking whether to use hashed database instead of directory/tree" >&5
5705 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
5707 # Check whether --with-hashed-db or --without-hashed-db was given.
5708 if test "${with_hashed_db+set}" = set; then
5709 withval="$with_hashed_db"
5714 echo "$as_me:5714: result: $with_hashed_db" >&5
5715 echo "${ECHO_T}$with_hashed_db" >&6
5720 echo "$as_me:5720: checking for list of fallback descriptions" >&5
5721 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
5723 # Check whether --with-fallbacks or --without-fallbacks was given.
5724 if test "${with_fallbacks+set}" = set; then
5725 withval="$with_fallbacks"
5726 with_fallback=$withval
5730 echo "$as_me:5730: result: $with_fallback" >&5
5731 echo "${ECHO_T}$with_fallback" >&6
5732 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
5734 echo "$as_me:5734: checking if you want modern xterm or antique" >&5
5735 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
5737 # Check whether --with-xterm-new or --without-xterm-new was given.
5738 if test "${with_xterm_new+set}" = set; then
5739 withval="$with_xterm_new"
5740 with_xterm_new=$withval
5744 case $with_xterm_new in
5745 no) with_xterm_new=xterm-old;;
5746 *) with_xterm_new=xterm-new;;
5748 echo "$as_me:5748: result: $with_xterm_new" >&5
5749 echo "${ECHO_T}$with_xterm_new" >&6
5750 WHICH_XTERM=$with_xterm_new
5753 if test "$use_database" = no ; then
5754 TERMINFO="${datadir}/terminfo"
5758 echo "$as_me:5758: checking for list of terminfo directories" >&5
5759 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
5761 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
5762 if test "${with_terminfo_dirs+set}" = set; then
5763 withval="$with_terminfo_dirs"
5766 withval=${TERMINFO_DIRS-${datadir}/terminfo}
5768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
5770 for cf_src_path in $withval
5773 if test "x$prefix" != xNONE; then
5774 cf_path_syntax="$prefix"
5776 cf_path_syntax="$ac_default_prefix"
5779 case ".$cf_src_path" in #(vi
5780 .\$\(*\)*|.\'*\'*) #(vi
5784 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5787 eval cf_src_path="$cf_src_path"
5788 case ".$cf_src_path" in #(vi
5790 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5795 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5798 { { echo "$as_me:5798: error: expected a pathname, not \"$cf_src_path\"" >&5
5799 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
5800 { (exit 1); exit 1; }; }
5804 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
5805 cf_dst_path="${cf_dst_path}${cf_src_path}"
5809 eval 'TERMINFO_DIRS="$cf_dst_path"'
5811 echo "$as_me:5811: result: $TERMINFO_DIRS" >&5
5812 echo "${ECHO_T}$TERMINFO_DIRS" >&6
5813 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
5814 #define TERMINFO_DIRS "$TERMINFO_DIRS"
5817 echo "$as_me:5817: checking for default terminfo directory" >&5
5818 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
5820 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
5821 if test "${with_default_terminfo_dir+set}" = set; then
5822 withval="$with_default_terminfo_dir"
5825 withval="${TERMINFO-${datadir}/terminfo}"
5826 fi; if test -n "${datadir}/terminfo" ; then
5828 if test "x$prefix" != xNONE; then
5829 cf_path_syntax="$prefix"
5831 cf_path_syntax="$ac_default_prefix"
5834 case ".$withval" in #(vi
5835 .\$\(*\)*|.\'*\'*) #(vi
5839 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5842 eval withval="$withval"
5843 case ".$withval" in #(vi
5845 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5850 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5853 { { echo "$as_me:5853: error: expected a pathname, not \"$withval\"" >&5
5854 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
5855 { (exit 1); exit 1; }; }
5862 echo "$as_me:5862: result: $TERMINFO" >&5
5863 echo "${ECHO_T}$TERMINFO" >&6
5864 cat >>confdefs.h <<EOF
5865 #define TERMINFO "$TERMINFO"
5870 ### use option --disable-big-core to make tic run on small machines
5871 ### We need 4Mb, check if we can allocate 50% more than that.
5872 echo "$as_me:5872: checking if big-core option selected" >&5
5873 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
5875 # Check whether --enable-big-core or --disable-big-core was given.
5876 if test "${enable_big_core+set}" = set; then
5877 enableval="$enable_big_core"
5878 with_big_core=$enableval
5880 if test "$cross_compiling" = yes; then
5883 cat >conftest.$ac_ext <<_ACEOF
5884 #line 5884 "configure"
5885 #include "confdefs.h"
5890 unsigned long n = 6000000L;
5891 char *s = malloc(n);
5894 ${cf_cv_main_return:-return}(s == 0);
5897 rm -f conftest$ac_exeext
5898 if { (eval echo "$as_me:5898: \"$ac_link\"") >&5
5899 (eval $ac_link) 2>&5
5901 echo "$as_me:5901: \$? = $ac_status" >&5
5902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5903 { (eval echo "$as_me:5903: \"$ac_try\"") >&5
5906 echo "$as_me:5906: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
5910 echo "$as_me: program exited with status $ac_status" >&5
5911 echo "$as_me: failed program was:" >&5
5912 cat conftest.$ac_ext >&5
5915 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5918 echo "$as_me:5918: result: $with_big_core" >&5
5919 echo "${ECHO_T}$with_big_core" >&6
5920 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
5921 #define HAVE_BIG_CORE 1
5924 ### ISO C only guarantees 512-char strings, we have tables which load faster
5925 ### when constructed using "big" strings. More than the C compiler, the awk
5926 ### program is a limit on most vendor UNIX systems. Check that we can build.
5927 echo "$as_me:5927: checking if big-strings option selected" >&5
5928 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
5930 # Check whether --enable-big-strings or --disable-big-strings was given.
5931 if test "${enable_big_strings+set}" = set; then
5932 enableval="$enable_big_strings"
5933 with_big_strings=$enableval
5938 eval with_big_strings=no
5941 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' \
5942 | $AWK '{ printf "%d\n", length($0); }' | $AWK 'BEGIN { eqls=0; recs=0; } { recs++; if ($0 == 12000) eqls++; } END { if (recs != 1 || eqls != 1) exit 1; }' 2>/dev/null >/dev/null ) ; then
5943 eval with_big_strings=yes
5945 eval with_big_strings=no
5951 echo "$as_me:5951: result: $with_big_strings" >&5
5952 echo "${ECHO_T}$with_big_strings" >&6
5955 test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1
5957 ### use option --enable-termcap to compile in the termcap fallback support
5958 echo "$as_me:5958: checking if you want termcap-fallback support" >&5
5959 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
5961 # Check whether --enable-termcap or --disable-termcap was given.
5962 if test "${enable_termcap+set}" = set; then
5963 enableval="$enable_termcap"
5964 with_termcap=$enableval
5968 echo "$as_me:5968: result: $with_termcap" >&5
5969 echo "${ECHO_T}$with_termcap" >&6
5971 if test "$with_termcap" != "yes" ; then
5972 if test "$use_database" = no ; then
5973 if test -z "$with_fallback" ; then
5974 { { echo "$as_me:5974: error: You have disabled the database w/o specifying fallbacks" >&5
5975 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
5976 { (exit 1); exit 1; }; }
5979 cat >>confdefs.h <<\EOF
5980 #define PURE_TERMINFO 1
5985 if test "$with_ticlib" != no ; then
5986 { { echo "$as_me:5986: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
5987 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
5988 { (exit 1); exit 1; }; }
5991 cat >>confdefs.h <<\EOF
5992 #define USE_TERMCAP 1
5995 echo "$as_me:5995: checking for list of termcap files" >&5
5996 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
5998 # Check whether --with-termpath or --without-termpath was given.
5999 if test "${with_termpath+set}" = set; then
6000 withval="$with_termpath"
6003 withval=${TERMPATH-/etc/termcap:/usr/share/misc/termcap}
6005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6007 for cf_src_path in $withval
6010 if test "x$prefix" != xNONE; then
6011 cf_path_syntax="$prefix"
6013 cf_path_syntax="$ac_default_prefix"
6016 case ".$cf_src_path" in #(vi
6017 .\$\(*\)*|.\'*\'*) #(vi
6021 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6024 eval cf_src_path="$cf_src_path"
6025 case ".$cf_src_path" in #(vi
6027 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6032 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6035 { { echo "$as_me:6035: error: expected a pathname, not \"$cf_src_path\"" >&5
6036 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6037 { (exit 1); exit 1; }; }
6041 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6042 cf_dst_path="${cf_dst_path}${cf_src_path}"
6046 eval 'TERMPATH="$cf_dst_path"'
6048 echo "$as_me:6048: result: $TERMPATH" >&5
6049 echo "${ECHO_T}$TERMPATH" >&6
6050 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
6051 #define TERMPATH "$TERMPATH"
6054 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6055 echo "$as_me:6055: checking if fast termcap-loader is needed" >&5
6056 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6058 # Check whether --enable-getcap or --disable-getcap was given.
6059 if test "${enable_getcap+set}" = set; then
6060 enableval="$enable_getcap"
6061 with_getcap=$enableval
6065 echo "$as_me:6065: result: $with_getcap" >&5
6066 echo "${ECHO_T}$with_getcap" >&6
6067 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
6068 #define USE_GETCAP 1
6071 echo "$as_me:6071: checking if translated termcaps will be cached in ~/.terminfo" >&5
6072 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6074 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6075 if test "${enable_getcap_cache+set}" = set; then
6076 enableval="$enable_getcap_cache"
6077 with_getcap_cache=$enableval
6079 with_getcap_cache=no
6081 echo "$as_me:6081: result: $with_getcap_cache" >&5
6082 echo "${ECHO_T}$with_getcap_cache" >&6
6083 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
6084 #define USE_GETCAP_CACHE 1
6089 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
6090 echo "$as_me:6090: checking if ~/.terminfo is wanted" >&5
6091 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
6093 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
6094 if test "${enable_home_terminfo+set}" = set; then
6095 enableval="$enable_home_terminfo"
6096 with_home_terminfo=$enableval
6098 with_home_terminfo=yes
6100 echo "$as_me:6100: result: $with_home_terminfo" >&5
6101 echo "${ECHO_T}$with_home_terminfo" >&6
6102 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
6103 #define USE_HOME_TERMINFO 1
6106 echo "$as_me:6106: checking if you want to use restricted environment when running as root" >&5
6107 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
6109 # Check whether --enable-root-environ or --disable-root-environ was given.
6110 if test "${enable_root_environ+set}" = set; then
6111 enableval="$enable_root_environ"
6112 with_root_environ=$enableval
6114 with_root_environ=yes
6116 echo "$as_me:6116: result: $with_root_environ" >&5
6117 echo "${ECHO_T}$with_root_environ" >&6
6118 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
6119 #define USE_ROOT_ENVIRON 1
6122 ### Use option --enable-symlinks to make tic use symlinks, not hard links
6123 ### to reduce storage requirements for the terminfo database.
6129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6130 echo "$as_me:6130: checking for $ac_func" >&5
6131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6132 if eval "test \"\${$as_ac_var+set}\" = set"; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 cat >conftest.$ac_ext <<_ACEOF
6136 #line 6136 "configure"
6137 #include "confdefs.h"
6138 /* System header to define __stub macros and hopefully few prototypes,
6139 which can conflict with char $ac_func (); below. */
6141 /* Override any gcc2 internal prototype to avoid an error. */
6145 /* We use char because int might match the return type of a gcc2
6146 builtin and then its argument prototype would still apply. */
6153 /* The GNU C library defines this for functions which it implements
6154 to always fail with ENOSYS. Some functions are actually named
6155 something starting with __ and the normal name is an alias. */
6156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6166 rm -f conftest.$ac_objext conftest$ac_exeext
6167 if { (eval echo "$as_me:6167: \"$ac_link\"") >&5
6168 (eval $ac_link) 2>&5
6170 echo "$as_me:6170: \$? = $ac_status" >&5
6171 (exit $ac_status); } &&
6172 { ac_try='test -s conftest$ac_exeext'
6173 { (eval echo "$as_me:6173: \"$ac_try\"") >&5
6176 echo "$as_me:6176: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6178 eval "$as_ac_var=yes"
6180 echo "$as_me: failed program was:" >&5
6181 cat conftest.$ac_ext >&5
6182 eval "$as_ac_var=no"
6184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6186 echo "$as_me:6186: result: `eval echo '${'$as_ac_var'}'`" >&5
6187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6188 if test `eval echo '${'$as_ac_var'}'` = yes; then
6189 cat >>confdefs.h <<EOF
6190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6196 if test "$cross_compiling" = yes ; then
6202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6203 echo "$as_me:6203: checking for $ac_func" >&5
6204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6205 if eval "test \"\${$as_ac_var+set}\" = set"; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 cat >conftest.$ac_ext <<_ACEOF
6209 #line 6209 "configure"
6210 #include "confdefs.h"
6211 /* System header to define __stub macros and hopefully few prototypes,
6212 which can conflict with char $ac_func (); below. */
6214 /* Override any gcc2 internal prototype to avoid an error. */
6218 /* We use char because int might match the return type of a gcc2
6219 builtin and then its argument prototype would still apply. */
6226 /* The GNU C library defines this for functions which it implements
6227 to always fail with ENOSYS. Some functions are actually named
6228 something starting with __ and the normal name is an alias. */
6229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6239 rm -f conftest.$ac_objext conftest$ac_exeext
6240 if { (eval echo "$as_me:6240: \"$ac_link\"") >&5
6241 (eval $ac_link) 2>&5
6243 echo "$as_me:6243: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
6245 { ac_try='test -s conftest$ac_exeext'
6246 { (eval echo "$as_me:6246: \"$ac_try\"") >&5
6249 echo "$as_me:6249: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 eval "$as_ac_var=yes"
6253 echo "$as_me: failed program was:" >&5
6254 cat conftest.$ac_ext >&5
6255 eval "$as_ac_var=no"
6257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6259 echo "$as_me:6259: result: `eval echo '${'$as_ac_var'}'`" >&5
6260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6261 if test `eval echo '${'$as_ac_var'}'` = yes; then
6262 cat >>confdefs.h <<EOF
6263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6270 echo "$as_me:6270: checking if link/symlink functions work" >&5
6271 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
6272 if test "${cf_cv_link_funcs+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 for cf_func in link symlink ; do
6278 if test "$cross_compiling" = yes; then
6280 eval 'ac_cv_func_'$cf_func'=error'
6282 cat >conftest.$ac_ext <<_ACEOF
6283 #line 6283 "configure"
6284 #include "confdefs.h"
6286 #include <sys/types.h>
6287 #include <sys/stat.h>
6288 #ifdef HAVE_UNISTD_H
6294 char *src = "config.log";
6295 char *dst = "conftest.chk";
6300 fail = ($cf_func("config.log", "conftest.chk") < 0)
6301 || (stat(dst, &dst_sb) < 0)
6302 || (dst_sb.st_mtime != src_sb.st_mtime);
6308 ${cf_cv_main_return:-return} (fail);
6312 rm -f conftest$ac_exeext
6313 if { (eval echo "$as_me:6313: \"$ac_link\"") >&5
6314 (eval $ac_link) 2>&5
6316 echo "$as_me:6316: \$? = $ac_status" >&5
6317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6318 { (eval echo "$as_me:6318: \"$ac_try\"") >&5
6321 echo "$as_me:6321: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6324 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
6325 eval 'ac_cv_func_'$cf_func'=yes'
6327 echo "$as_me: program exited with status $ac_status" >&5
6328 echo "$as_me: failed program was:" >&5
6329 cat conftest.$ac_ext >&5
6331 eval 'ac_cv_func_'$cf_func'=no'
6333 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6336 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
6339 echo "$as_me:6339: result: $cf_cv_link_funcs" >&5
6340 echo "${ECHO_T}$cf_cv_link_funcs" >&6
6341 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
6345 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
6346 #define HAVE_SYMLINK 1
6354 # soft links (symbolic links) are useful for some systems where hard links do
6355 # not work, or to make it simpler to copy terminfo trees around.
6356 if test "$ac_cv_func_symlink" = yes ; then
6357 echo "$as_me:6357: checking if tic should use symbolic links" >&5
6358 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
6360 # Check whether --enable-symlinks or --disable-symlinks was given.
6361 if test "${enable_symlinks+set}" = set; then
6362 enableval="$enable_symlinks"
6363 with_symlinks=$enableval
6367 echo "$as_me:6367: result: $with_symlinks" >&5
6368 echo "${ECHO_T}$with_symlinks" >&6
6371 # If we have hard links and did not choose to use soft links instead, there is
6372 # no reason to make this choice optional - use the hard links.
6373 if test "$with_symlinks" = no ; then
6374 echo "$as_me:6374: checking if tic should use hard links" >&5
6375 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
6376 if test "$ac_cv_func_link" = yes ; then
6381 echo "$as_me:6381: result: $with_links" >&5
6382 echo "${ECHO_T}$with_links" >&6
6385 test "$with_links" = yes && cat >>confdefs.h <<\EOF
6389 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
6390 #define USE_SYMLINKS 1
6393 ### use option --enable-broken-linker to force on use of broken-linker support
6394 echo "$as_me:6394: checking if you want broken-linker support code" >&5
6395 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
6397 # Check whether --enable-broken_linker or --disable-broken_linker was given.
6398 if test "${enable_broken_linker+set}" = set; then
6399 enableval="$enable_broken_linker"
6400 with_broken_linker=$enableval
6402 with_broken_linker=${BROKEN_LINKER-no}
6404 echo "$as_me:6404: result: $with_broken_linker" >&5
6405 echo "${ECHO_T}$with_broken_linker" >&6
6408 if test "$with_broken_linker" = yes ; then
6409 cat >>confdefs.h <<\EOF
6410 #define BROKEN_LINKER 1
6414 elif test "$DFT_LWR_MODEL" = shared ; then
6415 case $cf_cv_system_name in #(vi
6417 cat >>confdefs.h <<\EOF
6418 #define BROKEN_LINKER 1
6422 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
6424 echo "${as_me-configure}:6424: testing cygwin linker is broken anyway ..." 1>&5
6430 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
6431 echo "$as_me:6431: checking if tputs should process BSD-style prefix padding" >&5
6432 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
6434 # Check whether --enable-bsdpad or --disable-bsdpad was given.
6435 if test "${enable_bsdpad+set}" = set; then
6436 enableval="$enable_bsdpad"
6437 with_bsdpad=$enableval
6441 echo "$as_me:6441: result: $with_bsdpad" >&5
6442 echo "${ECHO_T}$with_bsdpad" >&6
6443 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
6447 ### use option --enable-widec to turn on use of wide-character support
6456 # Check to define _XOPEN_SOURCE "automatically"
6458 echo "$as_me:6458: checking if $CC -U and -D options work together" >&5
6459 echo $ECHO_N "checking if $CC -U and -D options work together... $ECHO_C" >&6
6460 if test "${cf_cv_cc_u_d_options+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 cf_save_CPPFLAGS="$CPPFLAGS"
6465 CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS"
6466 cat >conftest.$ac_ext <<_ACEOF
6467 #line 6467 "configure"
6468 #include "confdefs.h"
6475 make an undefined-error
6478 make a defined-error
6485 rm -f conftest.$ac_objext
6486 if { (eval echo "$as_me:6486: \"$ac_compile\"") >&5
6487 (eval $ac_compile) 2>&5
6489 echo "$as_me:6489: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try='test -s conftest.$ac_objext'
6492 { (eval echo "$as_me:6492: \"$ac_try\"") >&5
6495 echo "$as_me:6495: \$? = $ac_status" >&5
6496 (exit $ac_status); }; }; then
6498 cf_cv_cc_u_d_options=yes
6500 echo "$as_me: failed program was:" >&5
6501 cat conftest.$ac_ext >&5
6503 cf_cv_cc_u_d_options=no
6505 rm -f conftest.$ac_objext conftest.$ac_ext
6506 CPPFLAGS="$cf_save_CPPFLAGS"
6509 echo "$as_me:6509: result: $cf_cv_cc_u_d_options" >&5
6510 echo "${ECHO_T}$cf_cv_cc_u_d_options" >&6
6513 cf_POSIX_C_SOURCE=199506L
6515 case $host_os in #(vi
6517 CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE"
6519 freebsd*|dragonfly*) #(vi
6520 # 5.x headers associate
6521 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
6522 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
6523 cf_POSIX_C_SOURCE=200112L
6525 CPPFLAGS="$CPPFLAGS -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6528 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
6531 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
6534 CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
6536 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
6538 echo "$as_me:6538: checking if we must define _GNU_SOURCE" >&5
6539 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
6540 if test "${cf_cv_gnu_source+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 cat >conftest.$ac_ext <<_ACEOF
6545 #line 6545 "configure"
6546 #include "confdefs.h"
6547 #include <sys/types.h>
6552 #ifndef _XOPEN_SOURCE
6559 rm -f conftest.$ac_objext
6560 if { (eval echo "$as_me:6560: \"$ac_compile\"") >&5
6561 (eval $ac_compile) 2>&5
6563 echo "$as_me:6563: \$? = $ac_status" >&5
6564 (exit $ac_status); } &&
6565 { ac_try='test -s conftest.$ac_objext'
6566 { (eval echo "$as_me:6566: \"$ac_try\"") >&5
6569 echo "$as_me:6569: \$? = $ac_status" >&5
6570 (exit $ac_status); }; }; then
6573 echo "$as_me: failed program was:" >&5
6574 cat conftest.$ac_ext >&5
6576 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6577 cat >conftest.$ac_ext <<_ACEOF
6578 #line 6578 "configure"
6579 #include "confdefs.h"
6580 #include <sys/types.h>
6585 #ifdef _XOPEN_SOURCE
6592 rm -f conftest.$ac_objext
6593 if { (eval echo "$as_me:6593: \"$ac_compile\"") >&5
6594 (eval $ac_compile) 2>&5
6596 echo "$as_me:6596: \$? = $ac_status" >&5
6597 (exit $ac_status); } &&
6598 { ac_try='test -s conftest.$ac_objext'
6599 { (eval echo "$as_me:6599: \"$ac_try\"") >&5
6602 echo "$as_me:6602: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6606 echo "$as_me: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6608 cf_cv_gnu_source=yes
6610 rm -f conftest.$ac_objext conftest.$ac_ext
6614 rm -f conftest.$ac_objext conftest.$ac_ext
6617 echo "$as_me:6617: result: $cf_cv_gnu_source" >&5
6618 echo "${ECHO_T}$cf_cv_gnu_source" >&6
6619 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6623 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
6626 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
6629 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
6632 CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE"
6635 CPPFLAGS="$CPPFLAGS -D_QNX_SOURCE"
6638 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
6641 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
6644 echo "$as_me:6644: checking if we should define _XOPEN_SOURCE" >&5
6645 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
6646 if test "${cf_cv_xopen_source+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 cat >conftest.$ac_ext <<_ACEOF
6651 #line 6651 "configure"
6652 #include "confdefs.h"
6653 #include <sys/types.h>
6658 #ifndef _XOPEN_SOURCE
6665 rm -f conftest.$ac_objext
6666 if { (eval echo "$as_me:6666: \"$ac_compile\"") >&5
6667 (eval $ac_compile) 2>&5
6669 echo "$as_me:6669: \$? = $ac_status" >&5
6670 (exit $ac_status); } &&
6671 { ac_try='test -s conftest.$ac_objext'
6672 { (eval echo "$as_me:6672: \"$ac_try\"") >&5
6675 echo "$as_me:6675: \$? = $ac_status" >&5
6676 (exit $ac_status); }; }; then
6677 cf_cv_xopen_source=no
6679 echo "$as_me: failed program was:" >&5
6680 cat conftest.$ac_ext >&5
6682 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6683 cat >conftest.$ac_ext <<_ACEOF
6684 #line 6684 "configure"
6685 #include "confdefs.h"
6686 #include <sys/types.h>
6691 #ifdef _XOPEN_SOURCE
6698 rm -f conftest.$ac_objext
6699 if { (eval echo "$as_me:6699: \"$ac_compile\"") >&5
6700 (eval $ac_compile) 2>&5
6702 echo "$as_me:6702: \$? = $ac_status" >&5
6703 (exit $ac_status); } &&
6704 { ac_try='test -s conftest.$ac_objext'
6705 { (eval echo "$as_me:6705: \"$ac_try\"") >&5
6708 echo "$as_me:6708: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 cf_cv_xopen_source=no
6712 echo "$as_me: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6714 cf_cv_xopen_source=$cf_XOPEN_SOURCE
6716 rm -f conftest.$ac_objext conftest.$ac_ext
6720 rm -f conftest.$ac_objext conftest.$ac_ext
6723 echo "$as_me:6723: result: $cf_cv_xopen_source" >&5
6724 echo "${ECHO_T}$cf_cv_xopen_source" >&6
6725 if test "$cf_cv_xopen_source" != no ; then
6727 # remove _XOPEN_SOURCE symbol from $CFLAGS
6728 CFLAGS=`echo "$CFLAGS" | \
6729 sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6730 -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'`
6732 # remove _XOPEN_SOURCE symbol from $CPPFLAGS
6733 CPPFLAGS=`echo "$CPPFLAGS" | \
6734 sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6735 -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'`
6737 test "$cf_cv_cc_u_d_options" = yes && \
6738 CPPFLAGS="$CPPFLAGS -U_XOPEN_SOURCE"
6739 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_cv_xopen_source"
6742 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
6744 cf_save_CFLAGS="$CFLAGS"
6745 cf_save_CPPFLAGS="$CPPFLAGS"
6747 # remove _POSIX_C_SOURCE symbol from $cf_save_CFLAGS
6748 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
6749 sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6750 -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'`
6752 # remove _POSIX_C_SOURCE symbol from $cf_save_CPPFLAGS
6753 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
6754 sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6755 -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'`
6757 echo "$as_me:6757: checking if we should define _POSIX_C_SOURCE" >&5
6758 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
6759 if test "${cf_cv_posix_c_source+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 echo "${as_me-configure}:6763: testing if the symbol is already defined go no further ..." 1>&5
6765 cat >conftest.$ac_ext <<_ACEOF
6766 #line 6766 "configure"
6767 #include "confdefs.h"
6768 #include <sys/types.h>
6773 #ifndef _POSIX_C_SOURCE
6780 rm -f conftest.$ac_objext
6781 if { (eval echo "$as_me:6781: \"$ac_compile\"") >&5
6782 (eval $ac_compile) 2>&5
6784 echo "$as_me:6784: \$? = $ac_status" >&5
6785 (exit $ac_status); } &&
6786 { ac_try='test -s conftest.$ac_objext'
6787 { (eval echo "$as_me:6787: \"$ac_try\"") >&5
6790 echo "$as_me:6790: \$? = $ac_status" >&5
6791 (exit $ac_status); }; }; then
6792 cf_cv_posix_c_source=no
6794 echo "$as_me: failed program was:" >&5
6795 cat conftest.$ac_ext >&5
6796 cf_want_posix_source=no
6797 case .$cf_POSIX_C_SOURCE in #(vi
6799 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
6802 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
6803 cf_want_posix_source=yes
6806 cf_want_posix_source=yes
6809 if test "$cf_want_posix_source" = yes ; then
6810 cat >conftest.$ac_ext <<_ACEOF
6811 #line 6811 "configure"
6812 #include "confdefs.h"
6813 #include <sys/types.h>
6818 #ifdef _POSIX_SOURCE
6825 rm -f conftest.$ac_objext
6826 if { (eval echo "$as_me:6826: \"$ac_compile\"") >&5
6827 (eval $ac_compile) 2>&5
6829 echo "$as_me:6829: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
6831 { ac_try='test -s conftest.$ac_objext'
6832 { (eval echo "$as_me:6832: \"$ac_try\"") >&5
6835 echo "$as_me:6835: \$? = $ac_status" >&5
6836 (exit $ac_status); }; }; then
6839 echo "$as_me: failed program was:" >&5
6840 cat conftest.$ac_ext >&5
6841 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
6843 rm -f conftest.$ac_objext conftest.$ac_ext
6846 echo "${as_me-configure}:6846: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
6848 CFLAGS="$cf_trim_CFLAGS"
6849 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
6851 echo "${as_me-configure}:6851: testing if the second compile does not leave our definition intact error ..." 1>&5
6853 cat >conftest.$ac_ext <<_ACEOF
6854 #line 6854 "configure"
6855 #include "confdefs.h"
6856 #include <sys/types.h>
6861 #ifndef _POSIX_C_SOURCE
6868 rm -f conftest.$ac_objext
6869 if { (eval echo "$as_me:6869: \"$ac_compile\"") >&5
6870 (eval $ac_compile) 2>&5
6872 echo "$as_me:6872: \$? = $ac_status" >&5
6873 (exit $ac_status); } &&
6874 { ac_try='test -s conftest.$ac_objext'
6875 { (eval echo "$as_me:6875: \"$ac_try\"") >&5
6878 echo "$as_me:6878: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6882 echo "$as_me: failed program was:" >&5
6883 cat conftest.$ac_ext >&5
6884 cf_cv_posix_c_source=no
6886 rm -f conftest.$ac_objext conftest.$ac_ext
6887 CFLAGS="$cf_save_CFLAGS"
6888 CPPFLAGS="$cf_save_CPPFLAGS"
6891 rm -f conftest.$ac_objext conftest.$ac_ext
6894 echo "$as_me:6894: result: $cf_cv_posix_c_source" >&5
6895 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
6897 if test "$cf_cv_posix_c_source" != no ; then
6898 CFLAGS="$cf_trim_CFLAGS"
6899 CPPFLAGS="$cf_trim_CPPFLAGS"
6900 if test "$cf_cv_cc_u_d_options" = yes ; then
6901 cf_temp_posix_c_source=`echo "$cf_cv_posix_c_source" | \
6902 sed -e 's/-D/-U/g' -e 's/=[^ ]*//g'`
6903 CPPFLAGS="$CPPFLAGS $cf_temp_posix_c_source"
6905 CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source"
6911 # Work around breakage on OS X
6913 echo "$as_me:6913: checking if SIGWINCH is defined" >&5
6914 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
6915 if test "${cf_cv_define_sigwinch+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 cat >conftest.$ac_ext <<_ACEOF
6920 #line 6920 "configure"
6921 #include "confdefs.h"
6923 #include <sys/types.h>
6924 #include <sys/signal.h>
6934 rm -f conftest.$ac_objext
6935 if { (eval echo "$as_me:6935: \"$ac_compile\"") >&5
6936 (eval $ac_compile) 2>&5
6938 echo "$as_me:6938: \$? = $ac_status" >&5
6939 (exit $ac_status); } &&
6940 { ac_try='test -s conftest.$ac_objext'
6941 { (eval echo "$as_me:6941: \"$ac_try\"") >&5
6944 echo "$as_me:6944: \$? = $ac_status" >&5
6945 (exit $ac_status); }; }; then
6946 cf_cv_define_sigwinch=yes
6948 echo "$as_me: failed program was:" >&5
6949 cat conftest.$ac_ext >&5
6950 cat >conftest.$ac_ext <<_ACEOF
6951 #line 6951 "configure"
6952 #include "confdefs.h"
6954 #undef _XOPEN_SOURCE
6955 #undef _POSIX_SOURCE
6956 #undef _POSIX_C_SOURCE
6957 #include <sys/types.h>
6958 #include <sys/signal.h>
6968 rm -f conftest.$ac_objext
6969 if { (eval echo "$as_me:6969: \"$ac_compile\"") >&5
6970 (eval $ac_compile) 2>&5
6972 echo "$as_me:6972: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try='test -s conftest.$ac_objext'
6975 { (eval echo "$as_me:6975: \"$ac_try\"") >&5
6978 echo "$as_me:6978: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6980 cf_cv_define_sigwinch=maybe
6982 echo "$as_me: failed program was:" >&5
6983 cat conftest.$ac_ext >&5
6984 cf_cv_define_sigwinch=no
6986 rm -f conftest.$ac_objext conftest.$ac_ext
6989 rm -f conftest.$ac_objext conftest.$ac_ext
6992 echo "$as_me:6992: result: $cf_cv_define_sigwinch" >&5
6993 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
6995 if test "$cf_cv_define_sigwinch" = maybe ; then
6996 echo "$as_me:6996: checking for actual SIGWINCH definition" >&5
6997 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
6998 if test "${cf_cv_fixup_sigwinch+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 cf_cv_fixup_sigwinch=unknown
7004 while test $cf_sigwinch != 1
7006 cat >conftest.$ac_ext <<_ACEOF
7007 #line 7007 "configure"
7008 #include "confdefs.h"
7010 #undef _XOPEN_SOURCE
7011 #undef _POSIX_SOURCE
7012 #undef _POSIX_C_SOURCE
7013 #include <sys/types.h>
7014 #include <sys/signal.h>
7020 #if SIGWINCH != $cf_sigwinch
7028 rm -f conftest.$ac_objext
7029 if { (eval echo "$as_me:7029: \"$ac_compile\"") >&5
7030 (eval $ac_compile) 2>&5
7032 echo "$as_me:7032: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -s conftest.$ac_objext'
7035 { (eval echo "$as_me:7035: \"$ac_try\"") >&5
7038 echo "$as_me:7038: \$? = $ac_status" >&5
7039 (exit $ac_status); }; }; then
7040 cf_cv_fixup_sigwinch=$cf_sigwinch
7043 echo "$as_me: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7046 rm -f conftest.$ac_objext conftest.$ac_ext
7048 cf_sigwinch=`expr $cf_sigwinch - 1`
7052 echo "$as_me:7052: result: $cf_cv_fixup_sigwinch" >&5
7053 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
7055 if test "$cf_cv_fixup_sigwinch" != unknown ; then
7056 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
7060 # Checks for CODESET support.
7062 echo "$as_me:7062: checking for nl_langinfo and CODESET" >&5
7063 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7064 if test "${am_cv_langinfo_codeset+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 cat >conftest.$ac_ext <<_ACEOF
7068 #line 7068 "configure"
7069 #include "confdefs.h"
7070 #include <langinfo.h>
7074 char* cs = nl_langinfo(CODESET);
7079 rm -f conftest.$ac_objext conftest$ac_exeext
7080 if { (eval echo "$as_me:7080: \"$ac_link\"") >&5
7081 (eval $ac_link) 2>&5
7083 echo "$as_me:7083: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try='test -s conftest$ac_exeext'
7086 { (eval echo "$as_me:7086: \"$ac_try\"") >&5
7089 echo "$as_me:7089: \$? = $ac_status" >&5
7090 (exit $ac_status); }; }; then
7091 am_cv_langinfo_codeset=yes
7093 echo "$as_me: failed program was:" >&5
7094 cat conftest.$ac_ext >&5
7095 am_cv_langinfo_codeset=no
7097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7100 echo "$as_me:7100: result: $am_cv_langinfo_codeset" >&5
7101 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7102 if test $am_cv_langinfo_codeset = yes; then
7104 cat >>confdefs.h <<\EOF
7105 #define HAVE_LANGINFO_CODESET 1
7110 # use these variables to work around a defect in gcc's fixincludes.
7114 echo "$as_me:7114: checking if you want wide-character code" >&5
7115 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
7117 # Check whether --enable-widec or --disable-widec was given.
7118 if test "${enable_widec+set}" = set; then
7119 enableval="$enable_widec"
7120 with_widec=$enableval
7124 echo "$as_me:7124: result: $with_widec" >&5
7125 echo "${ECHO_T}$with_widec" >&6
7126 if test "$with_widec" = yes ; then
7127 LIB_SUFFIX="w${LIB_SUFFIX}"
7128 cat >>confdefs.h <<\EOF
7129 #define USE_WIDEC_SUPPORT 1
7132 echo "$as_me:7132: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
7133 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
7134 cat >conftest.$ac_ext <<_ACEOF
7135 #line 7135 "configure"
7136 #include "confdefs.h"
7137 #include <sys/types.h>
7143 #ifndef _XOPEN_SOURCE_EXTENDED
7150 rm -f conftest.$ac_objext
7151 if { (eval echo "$as_me:7151: \"$ac_compile\"") >&5
7152 (eval $ac_compile) 2>&5
7154 echo "$as_me:7154: \$? = $ac_status" >&5
7155 (exit $ac_status); } &&
7156 { ac_try='test -s conftest.$ac_objext'
7157 { (eval echo "$as_me:7157: \"$ac_try\"") >&5
7160 echo "$as_me:7160: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7164 echo "$as_me: failed program was:" >&5
7165 cat conftest.$ac_ext >&5
7168 rm -f conftest.$ac_objext conftest.$ac_ext
7169 echo "$as_me:7169: result: $cf_result" >&5
7170 echo "${ECHO_T}$cf_result" >&6
7172 if test "$cf_result" = yes ; then
7173 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
7174 elif test "x" != "x" ; then
7175 echo "$as_me:7175: checking checking for compatible value versus " >&5
7176 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
7177 cat >conftest.$ac_ext <<_ACEOF
7178 #line 7178 "configure"
7179 #include "confdefs.h"
7180 #include <sys/types.h>
7186 #if _XOPEN_SOURCE_EXTENDED- < 0
7193 rm -f conftest.$ac_objext
7194 if { (eval echo "$as_me:7194: \"$ac_compile\"") >&5
7195 (eval $ac_compile) 2>&5
7197 echo "$as_me:7197: \$? = $ac_status" >&5
7198 (exit $ac_status); } &&
7199 { ac_try='test -s conftest.$ac_objext'
7200 { (eval echo "$as_me:7200: \"$ac_try\"") >&5
7203 echo "$as_me:7203: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7207 echo "$as_me: failed program was:" >&5
7208 cat conftest.$ac_ext >&5
7211 rm -f conftest.$ac_objext conftest.$ac_ext
7212 echo "$as_me:7212: result: $cf_result" >&5
7213 echo "${ECHO_T}$cf_result" >&6
7214 if test "$cf_result" = no ; then
7215 # perhaps we can override it - try...
7216 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
7221 NCURSES_CH_T=cchar_t
7223 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
7225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7226 echo "$as_me:7226: checking for $ac_func" >&5
7227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7228 if eval "test \"\${$as_ac_var+set}\" = set"; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 cat >conftest.$ac_ext <<_ACEOF
7232 #line 7232 "configure"
7233 #include "confdefs.h"
7234 /* System header to define __stub macros and hopefully few prototypes,
7235 which can conflict with char $ac_func (); below. */
7237 /* Override any gcc2 internal prototype to avoid an error. */
7241 /* We use char because int might match the return type of a gcc2
7242 builtin and then its argument prototype would still apply. */
7249 /* The GNU C library defines this for functions which it implements
7250 to always fail with ENOSYS. Some functions are actually named
7251 something starting with __ and the normal name is an alias. */
7252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7262 rm -f conftest.$ac_objext conftest$ac_exeext
7263 if { (eval echo "$as_me:7263: \"$ac_link\"") >&5
7264 (eval $ac_link) 2>&5
7266 echo "$as_me:7266: \$? = $ac_status" >&5
7267 (exit $ac_status); } &&
7268 { ac_try='test -s conftest$ac_exeext'
7269 { (eval echo "$as_me:7269: \"$ac_try\"") >&5
7272 echo "$as_me:7272: \$? = $ac_status" >&5
7273 (exit $ac_status); }; }; then
7274 eval "$as_ac_var=yes"
7276 echo "$as_me: failed program was:" >&5
7277 cat conftest.$ac_ext >&5
7278 eval "$as_ac_var=no"
7280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7282 echo "$as_me:7282: result: `eval echo '${'$as_ac_var'}'`" >&5
7283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7284 if test `eval echo '${'$as_ac_var'}'` = yes; then
7285 cat >>confdefs.h <<EOF
7286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7292 if test "$ac_cv_func_putwc" != yes ; then
7294 echo "$as_me:7294: checking for multibyte character support" >&5
7295 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
7296 if test "${cf_cv_utf8_lib+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 cf_save_LIBS="$LIBS"
7301 cat >conftest.$ac_ext <<_ACEOF
7302 #line 7302 "configure"
7303 #include "confdefs.h"
7314 rm -f conftest.$ac_objext conftest$ac_exeext
7315 if { (eval echo "$as_me:7315: \"$ac_link\"") >&5
7316 (eval $ac_link) 2>&5
7318 echo "$as_me:7318: \$? = $ac_status" >&5
7319 (exit $ac_status); } &&
7320 { ac_try='test -s conftest$ac_exeext'
7321 { (eval echo "$as_me:7321: \"$ac_try\"") >&5
7324 echo "$as_me:7324: \$? = $ac_status" >&5
7325 (exit $ac_status); }; }; then
7328 echo "$as_me: failed program was:" >&5
7329 cat conftest.$ac_ext >&5
7331 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
7332 # will be set on completion of the AC_TRY_LINK below.
7333 cf_cv_header_path_utf8=
7334 cf_cv_library_path_utf8=
7336 echo "${as_me-configure}:7336: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
7338 cat >conftest.$ac_ext <<_ACEOF
7339 #line 7339 "configure"
7340 #include "confdefs.h"
7342 #include <libutf8.h>
7351 rm -f conftest.$ac_objext conftest$ac_exeext
7352 if { (eval echo "$as_me:7352: \"$ac_link\"") >&5
7353 (eval $ac_link) 2>&5
7355 echo "$as_me:7355: \$? = $ac_status" >&5
7356 (exit $ac_status); } &&
7357 { ac_try='test -s conftest$ac_exeext'
7358 { (eval echo "$as_me:7358: \"$ac_try\"") >&5
7361 echo "$as_me:7361: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 cf_cv_find_linkage_utf8=yes
7365 echo "$as_me: failed program was:" >&5
7366 cat conftest.$ac_ext >&5
7368 cf_cv_find_linkage_utf8=no
7370 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
7372 echo "${as_me-configure}:7372: testing find linkage for utf8 library ..." 1>&5
7374 echo "${as_me-configure}:7374: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
7376 cf_save_CPPFLAGS="$CPPFLAGS"
7377 cf_test_CPPFLAGS="$CPPFLAGS"
7379 cf_header_path_list=""
7380 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7381 for cf_header_path in $CPPFLAGS $CFLAGS
7383 case $cf_header_path in #(vi
7385 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7387 test "$cf_header_path" != "NONE" && \
7388 test -d "$cf_header_path" && \
7390 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7391 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7392 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
7393 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
7394 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
7395 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
7398 cf_header_path_list="$cf_header_path_list $cf_search"
7406 test "/usr" != "$prefix" && \
7408 (test $prefix = NONE || test -d $prefix) && {
7409 test -n "$verbose" && echo " ... testing for include-directories under /usr"
7410 test -d /usr/include && cf_search="$cf_search /usr/include"
7411 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
7412 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
7413 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
7414 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
7417 test "$prefix" != "NONE" && \
7418 test -d "$prefix" && \
7420 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7421 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7422 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
7423 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
7424 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
7425 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
7428 test "/usr/local" != "$prefix" && \
7429 test -d "/usr/local" && \
7430 (test $prefix = NONE || test -d $prefix) && {
7431 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
7432 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
7433 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
7434 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
7435 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
7436 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
7439 test "/opt" != "$prefix" && \
7441 (test $prefix = NONE || test -d $prefix) && {
7442 test -n "$verbose" && echo " ... testing for include-directories under /opt"
7443 test -d /opt/include && cf_search="$cf_search /opt/include"
7444 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
7445 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
7446 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
7447 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
7450 test "$HOME" != "$prefix" && \
7451 test -d "$HOME" && \
7452 (test $prefix = NONE || test -d $prefix) && {
7453 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
7454 test -d $HOME/include && cf_search="$cf_search $HOME/include"
7455 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
7456 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
7457 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
7458 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
7461 test "$includedir" != NONE && \
7462 test "$includedir" != "/usr/include" && \
7463 test -d "$includedir" && {
7464 test -d $includedir && cf_search="$cf_search $includedir"
7465 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
7468 test "$oldincludedir" != NONE && \
7469 test "$oldincludedir" != "/usr/include" && \
7470 test -d "$oldincludedir" && {
7471 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7472 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
7475 cf_search="$cf_header_path_list $cf_search"
7477 for cf_cv_header_path_utf8 in $cf_search
7479 if test -d $cf_cv_header_path_utf8 ; then
7480 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
7482 echo "${as_me-configure}:7482: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
7484 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
7485 cat >conftest.$ac_ext <<_ACEOF
7486 #line 7486 "configure"
7487 #include "confdefs.h"
7489 #include <libutf8.h>
7498 rm -f conftest.$ac_objext
7499 if { (eval echo "$as_me:7499: \"$ac_compile\"") >&5
7500 (eval $ac_compile) 2>&5
7502 echo "$as_me:7502: \$? = $ac_status" >&5
7503 (exit $ac_status); } &&
7504 { ac_try='test -s conftest.$ac_objext'
7505 { (eval echo "$as_me:7505: \"$ac_try\"") >&5
7508 echo "$as_me:7508: \$? = $ac_status" >&5
7509 (exit $ac_status); }; }; then
7511 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
7513 echo "${as_me-configure}:7513: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
7515 cf_cv_find_linkage_utf8=maybe
7516 cf_test_CPPFLAGS="$CPPFLAGS"
7519 echo "$as_me: failed program was:" >&5
7520 cat conftest.$ac_ext >&5
7522 CPPFLAGS="$cf_save_CPPFLAGS"
7525 rm -f conftest.$ac_objext conftest.$ac_ext
7529 if test "$cf_cv_find_linkage_utf8" = maybe ; then
7531 echo "${as_me-configure}:7531: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
7533 cf_save_LIBS="$LIBS"
7534 cf_save_LDFLAGS="$LDFLAGS"
7536 if test "$cf_cv_find_linkage_utf8" != yes ; then
7538 cf_library_path_list=""
7539 if test -n "${LDFLAGS}${LIBS}" ; then
7540 for cf_library_path in $LDFLAGS $LIBS
7542 case $cf_library_path in #(vi
7544 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7546 test "$cf_library_path" != "NONE" && \
7547 test -d "$cf_library_path" && \
7549 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7550 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7551 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
7552 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
7553 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
7554 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
7557 cf_library_path_list="$cf_library_path_list $cf_search"
7565 test "/usr" != "$prefix" && \
7567 (test $prefix = NONE || test -d $prefix) && {
7568 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
7569 test -d /usr/lib && cf_search="$cf_search /usr/lib"
7570 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
7571 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
7572 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
7573 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
7576 test "$prefix" != "NONE" && \
7577 test -d "$prefix" && \
7579 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7580 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7581 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
7582 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
7583 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
7584 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
7587 test "/usr/local" != "$prefix" && \
7588 test -d "/usr/local" && \
7589 (test $prefix = NONE || test -d $prefix) && {
7590 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
7591 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
7592 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
7593 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
7594 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
7595 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
7598 test "/opt" != "$prefix" && \
7600 (test $prefix = NONE || test -d $prefix) && {
7601 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
7602 test -d /opt/lib && cf_search="$cf_search /opt/lib"
7603 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
7604 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
7605 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
7606 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
7609 test "$HOME" != "$prefix" && \
7610 test -d "$HOME" && \
7611 (test $prefix = NONE || test -d $prefix) && {
7612 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
7613 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
7614 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
7615 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
7616 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
7617 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
7620 cf_search="$cf_library_path_list $cf_search"
7622 for cf_cv_library_path_utf8 in $cf_search
7624 if test -d $cf_cv_library_path_utf8 ; then
7625 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
7627 echo "${as_me-configure}:7627: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
7629 CPPFLAGS="$cf_test_CPPFLAGS"
7630 LIBS="-lutf8 $cf_save_LIBS"
7631 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
7632 cat >conftest.$ac_ext <<_ACEOF
7633 #line 7633 "configure"
7634 #include "confdefs.h"
7636 #include <libutf8.h>
7645 rm -f conftest.$ac_objext conftest$ac_exeext
7646 if { (eval echo "$as_me:7646: \"$ac_link\"") >&5
7647 (eval $ac_link) 2>&5
7649 echo "$as_me:7649: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try='test -s conftest$ac_exeext'
7652 { (eval echo "$as_me:7652: \"$ac_try\"") >&5
7655 echo "$as_me:7655: \$? = $ac_status" >&5
7656 (exit $ac_status); }; }; then
7658 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
7660 echo "${as_me-configure}:7660: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
7662 cf_cv_find_linkage_utf8=yes
7663 cf_cv_library_file_utf8="-lutf8"
7666 echo "$as_me: failed program was:" >&5
7667 cat conftest.$ac_ext >&5
7669 CPPFLAGS="$cf_save_CPPFLAGS"
7670 LIBS="$cf_save_LIBS"
7671 LDFLAGS="$cf_save_LDFLAGS"
7674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7677 LIBS="$cf_save_LIBS"
7678 CPPFLAGS="$cf_save_CPPFLAGS"
7679 LDFLAGS="$cf_save_LDFLAGS"
7683 cf_cv_find_linkage_utf8=no
7687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7689 if test "$cf_cv_find_linkage_utf8" = yes ; then
7690 cf_cv_utf8_lib=add-on
7696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7698 echo "$as_me:7698: result: $cf_cv_utf8_lib" >&5
7699 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
7701 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
7703 if test "$cf_cv_utf8_lib" = "add-on" ; then
7704 cat >>confdefs.h <<\EOF
7705 #define HAVE_LIBUTF8_H 1
7708 if test -n "$cf_cv_header_path_utf8" ; then
7709 for cf_add_incdir in $cf_cv_header_path_utf8
7711 while test $cf_add_incdir != /usr/include
7713 if test -d $cf_add_incdir
7716 if test -n "$CFLAGS$CPPFLAGS" ; then
7717 # a loop is needed to ensure we can add subdirs of existing dirs
7718 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7719 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7720 cf_have_incdir=yes; break
7725 if test "$cf_have_incdir" = no ; then
7726 if test "$cf_add_incdir" = /usr/local/include ; then
7727 if test "$GCC" = yes
7729 cf_save_CPPFLAGS=$CPPFLAGS
7730 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7731 cat >conftest.$ac_ext <<_ACEOF
7732 #line 7732 "configure"
7733 #include "confdefs.h"
7743 rm -f conftest.$ac_objext
7744 if { (eval echo "$as_me:7744: \"$ac_compile\"") >&5
7745 (eval $ac_compile) 2>&5
7747 echo "$as_me:7747: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try='test -s conftest.$ac_objext'
7750 { (eval echo "$as_me:7750: \"$ac_try\"") >&5
7753 echo "$as_me:7753: \$? = $ac_status" >&5
7754 (exit $ac_status); }; }; then
7757 echo "$as_me: failed program was:" >&5
7758 cat conftest.$ac_ext >&5
7761 rm -f conftest.$ac_objext conftest.$ac_ext
7762 CPPFLAGS=$cf_save_CPPFLAGS
7767 if test "$cf_have_incdir" = no ; then
7768 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7770 echo "${as_me-configure}:7770: testing adding $cf_add_incdir to include-path ..." 1>&5
7772 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7774 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7775 test "$cf_top_incdir" = "$cf_add_incdir" && break
7776 cf_add_incdir="$cf_top_incdir"
7785 if test -n "$cf_cv_library_path_utf8" ; then
7786 for cf_add_libdir in $cf_cv_library_path_utf8
7788 if test $cf_add_libdir = /usr/lib ; then
7790 elif test -d $cf_add_libdir
7793 if test -n "$LDFLAGS$LIBS" ; then
7794 # a loop is needed to ensure we can add subdirs of existing dirs
7795 for cf_test_libdir in $LDFLAGS $LIBS ; do
7796 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7797 cf_have_libdir=yes; break
7801 if test "$cf_have_libdir" = no ; then
7802 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7804 echo "${as_me-configure}:7804: testing adding $cf_add_libdir to library-path ..." 1>&5
7806 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7815 if test "$cf_cv_utf8_lib" != no ; then
7820 # This is needed on Tru64 5.0 to declare mbstate_t
7821 echo "$as_me:7821: checking if we must include wchar.h to declare mbstate_t" >&5
7822 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
7823 if test "${cf_cv_mbstate_t+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 cat >conftest.$ac_ext <<_ACEOF
7828 #line 7828 "configure"
7829 #include "confdefs.h"
7834 #ifdef HAVE_LIBUTF8_H
7835 #include <libutf8.h>
7845 rm -f conftest.$ac_objext
7846 if { (eval echo "$as_me:7846: \"$ac_compile\"") >&5
7847 (eval $ac_compile) 2>&5
7849 echo "$as_me:7849: \$? = $ac_status" >&5
7850 (exit $ac_status); } &&
7851 { ac_try='test -s conftest.$ac_objext'
7852 { (eval echo "$as_me:7852: \"$ac_try\"") >&5
7855 echo "$as_me:7855: \$? = $ac_status" >&5
7856 (exit $ac_status); }; }; then
7859 echo "$as_me: failed program was:" >&5
7860 cat conftest.$ac_ext >&5
7861 cat >conftest.$ac_ext <<_ACEOF
7862 #line 7862 "configure"
7863 #include "confdefs.h"
7869 #ifdef HAVE_LIBUTF8_H
7870 #include <libutf8.h>
7880 rm -f conftest.$ac_objext
7881 if { (eval echo "$as_me:7881: \"$ac_compile\"") >&5
7882 (eval $ac_compile) 2>&5
7884 echo "$as_me:7884: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -s conftest.$ac_objext'
7887 { (eval echo "$as_me:7887: \"$ac_try\"") >&5
7890 echo "$as_me:7890: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7894 echo "$as_me: failed program was:" >&5
7895 cat conftest.$ac_ext >&5
7896 cf_cv_mbstate_t=unknown
7898 rm -f conftest.$ac_objext conftest.$ac_ext
7900 rm -f conftest.$ac_objext conftest.$ac_ext
7902 echo "$as_me:7902: result: $cf_cv_mbstate_t" >&5
7903 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
7905 if test "$cf_cv_mbstate_t" = yes ; then
7906 cat >>confdefs.h <<\EOF
7907 #define NEED_WCHAR_H 1
7913 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
7914 if test "$cf_cv_mbstate_t" = unknown ; then
7918 # This is needed on Tru64 5.0 to declare wchar_t
7919 echo "$as_me:7919: checking if we must include wchar.h to declare wchar_t" >&5
7920 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
7921 if test "${cf_cv_wchar_t+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 cat >conftest.$ac_ext <<_ACEOF
7926 #line 7926 "configure"
7927 #include "confdefs.h"
7932 #ifdef HAVE_LIBUTF8_H
7933 #include <libutf8.h>
7943 rm -f conftest.$ac_objext
7944 if { (eval echo "$as_me:7944: \"$ac_compile\"") >&5
7945 (eval $ac_compile) 2>&5
7947 echo "$as_me:7947: \$? = $ac_status" >&5
7948 (exit $ac_status); } &&
7949 { ac_try='test -s conftest.$ac_objext'
7950 { (eval echo "$as_me:7950: \"$ac_try\"") >&5
7953 echo "$as_me:7953: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7957 echo "$as_me: failed program was:" >&5
7958 cat conftest.$ac_ext >&5
7959 cat >conftest.$ac_ext <<_ACEOF
7960 #line 7960 "configure"
7961 #include "confdefs.h"
7967 #ifdef HAVE_LIBUTF8_H
7968 #include <libutf8.h>
7978 rm -f conftest.$ac_objext
7979 if { (eval echo "$as_me:7979: \"$ac_compile\"") >&5
7980 (eval $ac_compile) 2>&5
7982 echo "$as_me:7982: \$? = $ac_status" >&5
7983 (exit $ac_status); } &&
7984 { ac_try='test -s conftest.$ac_objext'
7985 { (eval echo "$as_me:7985: \"$ac_try\"") >&5
7988 echo "$as_me:7988: \$? = $ac_status" >&5
7989 (exit $ac_status); }; }; then
7992 echo "$as_me: failed program was:" >&5
7993 cat conftest.$ac_ext >&5
7994 cf_cv_wchar_t=unknown
7996 rm -f conftest.$ac_objext conftest.$ac_ext
7998 rm -f conftest.$ac_objext conftest.$ac_ext
8000 echo "$as_me:8000: result: $cf_cv_wchar_t" >&5
8001 echo "${ECHO_T}$cf_cv_wchar_t" >&6
8003 if test "$cf_cv_wchar_t" = yes ; then
8004 cat >>confdefs.h <<\EOF
8005 #define NEED_WCHAR_H 1
8011 # if we do not find wchar_t in either place, use substitution to provide a fallback.
8012 if test "$cf_cv_wchar_t" = unknown ; then
8016 # if we find wchar_t in either place, use substitution to provide a fallback.
8017 if test "$cf_cv_wchar_t" != unknown ; then
8018 NCURSES_OK_WCHAR_T=1
8021 # This is needed on Tru64 5.0 to declare wint_t
8022 echo "$as_me:8022: checking if we must include wchar.h to declare wint_t" >&5
8023 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
8024 if test "${cf_cv_wint_t+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 cat >conftest.$ac_ext <<_ACEOF
8029 #line 8029 "configure"
8030 #include "confdefs.h"
8035 #ifdef HAVE_LIBUTF8_H
8036 #include <libutf8.h>
8046 rm -f conftest.$ac_objext
8047 if { (eval echo "$as_me:8047: \"$ac_compile\"") >&5
8048 (eval $ac_compile) 2>&5
8050 echo "$as_me:8050: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -s conftest.$ac_objext'
8053 { (eval echo "$as_me:8053: \"$ac_try\"") >&5
8056 echo "$as_me:8056: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
8060 echo "$as_me: failed program was:" >&5
8061 cat conftest.$ac_ext >&5
8062 cat >conftest.$ac_ext <<_ACEOF
8063 #line 8063 "configure"
8064 #include "confdefs.h"
8070 #ifdef HAVE_LIBUTF8_H
8071 #include <libutf8.h>
8081 rm -f conftest.$ac_objext
8082 if { (eval echo "$as_me:8082: \"$ac_compile\"") >&5
8083 (eval $ac_compile) 2>&5
8085 echo "$as_me:8085: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -s conftest.$ac_objext'
8088 { (eval echo "$as_me:8088: \"$ac_try\"") >&5
8091 echo "$as_me:8091: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8095 echo "$as_me: failed program was:" >&5
8096 cat conftest.$ac_ext >&5
8097 cf_cv_wint_t=unknown
8099 rm -f conftest.$ac_objext conftest.$ac_ext
8101 rm -f conftest.$ac_objext conftest.$ac_ext
8103 echo "$as_me:8103: result: $cf_cv_wint_t" >&5
8104 echo "${ECHO_T}$cf_cv_wint_t" >&6
8106 if test "$cf_cv_wint_t" = yes ; then
8107 cat >>confdefs.h <<\EOF
8108 #define NEED_WCHAR_H 1
8114 # if we do not find wint_t in either place, use substitution to provide a fallback.
8115 if test "$cf_cv_wint_t" = unknown ; then
8119 # if we find wint_t in either place, use substitution to provide a fallback.
8120 if test "$cf_cv_wint_t" != unknown ; then
8124 if test "$NCURSES_MBSTATE_T" != 0; then
8125 cat >>confdefs.h <<\EOF
8126 #define NEED_MBSTATE_T_DEF 1
8132 ### use option --disable-lp64 to allow long chtype
8133 case $cf_cv_abi_version in
8135 default_with_lp64=no
8138 default_with_lp64=yes
8142 echo "$as_me:8142: checking whether to enable _LP64 definition in curses.h" >&5
8143 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
8145 # Check whether --enable-lp64 or --disable-lp64 was given.
8146 if test "${enable_lp64+set}" = set; then
8147 enableval="$enable_lp64"
8148 with_lp64=$enableval
8150 with_lp64=$default_with_lp64
8152 echo "$as_me:8152: result: $with_lp64" >&5
8153 echo "${ECHO_T}$with_lp64" >&6
8155 if test "$with_lp64" = yes ; then
8161 # Check whether --enable-largefile or --disable-largefile was given.
8162 if test "${enable_largefile+set}" = set; then
8163 enableval="$enable_largefile"
8166 if test "$enable_largefile" != no; then
8168 echo "$as_me:8168: checking for special C compiler options needed for large files" >&5
8169 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
8170 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 ac_cv_sys_largefile_CC=no
8174 if test "$GCC" != yes; then
8177 # IRIX 6.2 and later do not support large files by default,
8178 # so use the C compiler's -n32 option if that helps.
8179 cat >conftest.$ac_ext <<_ACEOF
8180 #line 8180 "configure"
8181 #include "confdefs.h"
8182 #include <sys/types.h>
8183 /* Check that off_t can represent 2**63 - 1 correctly.
8184 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8185 since some C++ compilers masquerading as C compilers
8186 incorrectly reject 9223372036854775807. */
8187 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8188 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8189 && LARGE_OFF_T % 2147483647 == 1)
8199 rm -f conftest.$ac_objext
8200 if { (eval echo "$as_me:8200: \"$ac_compile\"") >&5
8201 (eval $ac_compile) 2>&5
8203 echo "$as_me:8203: \$? = $ac_status" >&5
8204 (exit $ac_status); } &&
8205 { ac_try='test -s conftest.$ac_objext'
8206 { (eval echo "$as_me:8206: \"$ac_try\"") >&5
8209 echo "$as_me:8209: \$? = $ac_status" >&5
8210 (exit $ac_status); }; }; then
8213 echo "$as_me: failed program was:" >&5
8214 cat conftest.$ac_ext >&5
8216 rm -f conftest.$ac_objext
8218 rm -f conftest.$ac_objext
8219 if { (eval echo "$as_me:8219: \"$ac_compile\"") >&5
8220 (eval $ac_compile) 2>&5
8222 echo "$as_me:8222: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -s conftest.$ac_objext'
8225 { (eval echo "$as_me:8225: \"$ac_try\"") >&5
8228 echo "$as_me:8228: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 ac_cv_sys_largefile_CC=' -n32'; break
8232 echo "$as_me: failed program was:" >&5
8233 cat conftest.$ac_ext >&5
8235 rm -f conftest.$ac_objext
8239 rm -f conftest.$ac_ext
8242 echo "$as_me:8242: result: $ac_cv_sys_largefile_CC" >&5
8243 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
8244 if test "$ac_cv_sys_largefile_CC" != no; then
8245 CC=$CC$ac_cv_sys_largefile_CC
8248 echo "$as_me:8248: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8249 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
8250 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 ac_cv_sys_file_offset_bits=no
8255 cat >conftest.$ac_ext <<_ACEOF
8256 #line 8256 "configure"
8257 #include "confdefs.h"
8258 #include <sys/types.h>
8259 /* Check that off_t can represent 2**63 - 1 correctly.
8260 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8261 since some C++ compilers masquerading as C compilers
8262 incorrectly reject 9223372036854775807. */
8263 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8264 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8265 && LARGE_OFF_T % 2147483647 == 1)
8275 rm -f conftest.$ac_objext
8276 if { (eval echo "$as_me:8276: \"$ac_compile\"") >&5
8277 (eval $ac_compile) 2>&5
8279 echo "$as_me:8279: \$? = $ac_status" >&5
8280 (exit $ac_status); } &&
8281 { ac_try='test -s conftest.$ac_objext'
8282 { (eval echo "$as_me:8282: \"$ac_try\"") >&5
8285 echo "$as_me:8285: \$? = $ac_status" >&5
8286 (exit $ac_status); }; }; then
8289 echo "$as_me: failed program was:" >&5
8290 cat conftest.$ac_ext >&5
8292 rm -f conftest.$ac_objext conftest.$ac_ext
8293 cat >conftest.$ac_ext <<_ACEOF
8294 #line 8294 "configure"
8295 #include "confdefs.h"
8296 #define _FILE_OFFSET_BITS 64
8297 #include <sys/types.h>
8298 /* Check that off_t can represent 2**63 - 1 correctly.
8299 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8300 since some C++ compilers masquerading as C compilers
8301 incorrectly reject 9223372036854775807. */
8302 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8303 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8304 && LARGE_OFF_T % 2147483647 == 1)
8314 rm -f conftest.$ac_objext
8315 if { (eval echo "$as_me:8315: \"$ac_compile\"") >&5
8316 (eval $ac_compile) 2>&5
8318 echo "$as_me:8318: \$? = $ac_status" >&5
8319 (exit $ac_status); } &&
8320 { ac_try='test -s conftest.$ac_objext'
8321 { (eval echo "$as_me:8321: \"$ac_try\"") >&5
8324 echo "$as_me:8324: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8326 ac_cv_sys_file_offset_bits=64; break
8328 echo "$as_me: failed program was:" >&5
8329 cat conftest.$ac_ext >&5
8331 rm -f conftest.$ac_objext conftest.$ac_ext
8335 echo "$as_me:8335: result: $ac_cv_sys_file_offset_bits" >&5
8336 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8337 if test "$ac_cv_sys_file_offset_bits" != no; then
8339 cat >>confdefs.h <<EOF
8340 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8345 echo "$as_me:8345: checking for _LARGE_FILES value needed for large files" >&5
8346 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
8347 if test "${ac_cv_sys_large_files+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 ac_cv_sys_large_files=no
8352 cat >conftest.$ac_ext <<_ACEOF
8353 #line 8353 "configure"
8354 #include "confdefs.h"
8355 #include <sys/types.h>
8356 /* Check that off_t can represent 2**63 - 1 correctly.
8357 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8358 since some C++ compilers masquerading as C compilers
8359 incorrectly reject 9223372036854775807. */
8360 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8361 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8362 && LARGE_OFF_T % 2147483647 == 1)
8372 rm -f conftest.$ac_objext
8373 if { (eval echo "$as_me:8373: \"$ac_compile\"") >&5
8374 (eval $ac_compile) 2>&5
8376 echo "$as_me:8376: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try='test -s conftest.$ac_objext'
8379 { (eval echo "$as_me:8379: \"$ac_try\"") >&5
8382 echo "$as_me:8382: \$? = $ac_status" >&5
8383 (exit $ac_status); }; }; then
8386 echo "$as_me: failed program was:" >&5
8387 cat conftest.$ac_ext >&5
8389 rm -f conftest.$ac_objext conftest.$ac_ext
8390 cat >conftest.$ac_ext <<_ACEOF
8391 #line 8391 "configure"
8392 #include "confdefs.h"
8393 #define _LARGE_FILES 1
8394 #include <sys/types.h>
8395 /* Check that off_t can represent 2**63 - 1 correctly.
8396 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8397 since some C++ compilers masquerading as C compilers
8398 incorrectly reject 9223372036854775807. */
8399 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8400 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8401 && LARGE_OFF_T % 2147483647 == 1)
8411 rm -f conftest.$ac_objext
8412 if { (eval echo "$as_me:8412: \"$ac_compile\"") >&5
8413 (eval $ac_compile) 2>&5
8415 echo "$as_me:8415: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -s conftest.$ac_objext'
8418 { (eval echo "$as_me:8418: \"$ac_try\"") >&5
8421 echo "$as_me:8421: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 ac_cv_sys_large_files=1; break
8425 echo "$as_me: failed program was:" >&5
8426 cat conftest.$ac_ext >&5
8428 rm -f conftest.$ac_objext conftest.$ac_ext
8432 echo "$as_me:8432: result: $ac_cv_sys_large_files" >&5
8433 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8434 if test "$ac_cv_sys_large_files" != no; then
8436 cat >>confdefs.h <<EOF
8437 #define _LARGE_FILES $ac_cv_sys_large_files
8444 if test "$enable_largefile" != no ; then
8445 echo "$as_me:8445: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8446 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
8447 if test "${ac_cv_sys_largefile_source+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8451 ac_cv_sys_largefile_source=no
8452 cat >conftest.$ac_ext <<_ACEOF
8453 #line 8453 "configure"
8454 #include "confdefs.h"
8464 rm -f conftest.$ac_objext
8465 if { (eval echo "$as_me:8465: \"$ac_compile\"") >&5
8466 (eval $ac_compile) 2>&5
8468 echo "$as_me:8468: \$? = $ac_status" >&5
8469 (exit $ac_status); } &&
8470 { ac_try='test -s conftest.$ac_objext'
8471 { (eval echo "$as_me:8471: \"$ac_try\"") >&5
8474 echo "$as_me:8474: \$? = $ac_status" >&5
8475 (exit $ac_status); }; }; then
8478 echo "$as_me: failed program was:" >&5
8479 cat conftest.$ac_ext >&5
8481 rm -f conftest.$ac_objext conftest.$ac_ext
8482 cat >conftest.$ac_ext <<_ACEOF
8483 #line 8483 "configure"
8484 #include "confdefs.h"
8485 #define _LARGEFILE_SOURCE 1
8495 rm -f conftest.$ac_objext
8496 if { (eval echo "$as_me:8496: \"$ac_compile\"") >&5
8497 (eval $ac_compile) 2>&5
8499 echo "$as_me:8499: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -s conftest.$ac_objext'
8502 { (eval echo "$as_me:8502: \"$ac_try\"") >&5
8505 echo "$as_me:8505: \$? = $ac_status" >&5
8506 (exit $ac_status); }; }; then
8507 ac_cv_sys_largefile_source=1; break
8509 echo "$as_me: failed program was:" >&5
8510 cat conftest.$ac_ext >&5
8512 rm -f conftest.$ac_objext conftest.$ac_ext
8516 echo "$as_me:8516: result: $ac_cv_sys_largefile_source" >&5
8517 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8518 if test "$ac_cv_sys_largefile_source" != no; then
8520 cat >>confdefs.h <<EOF
8521 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8527 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8528 # in glibc 2.1.3, but that breaks too many other things.
8529 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8530 echo "$as_me:8530: checking for fseeko" >&5
8531 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
8532 if test "${ac_cv_func_fseeko+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 cat >conftest.$ac_ext <<_ACEOF
8536 #line 8536 "configure"
8537 #include "confdefs.h"
8542 return fseeko && fseeko (stdin, 0, 0);
8547 rm -f conftest.$ac_objext conftest$ac_exeext
8548 if { (eval echo "$as_me:8548: \"$ac_link\"") >&5
8549 (eval $ac_link) 2>&5
8551 echo "$as_me:8551: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -s conftest$ac_exeext'
8554 { (eval echo "$as_me:8554: \"$ac_try\"") >&5
8557 echo "$as_me:8557: \$? = $ac_status" >&5
8558 (exit $ac_status); }; }; then
8559 ac_cv_func_fseeko=yes
8561 echo "$as_me: failed program was:" >&5
8562 cat conftest.$ac_ext >&5
8563 ac_cv_func_fseeko=no
8565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8567 echo "$as_me:8567: result: $ac_cv_func_fseeko" >&5
8568 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
8569 if test $ac_cv_func_fseeko = yes; then
8571 cat >>confdefs.h <<\EOF
8572 #define HAVE_FSEEKO 1
8577 # Normally we would collect these definitions in the config.h,
8578 # but (like _XOPEN_SOURCE), some environments rely on having these
8579 # defined before any of the system headers are included. Another
8580 # case comes up with C++, e.g., on AIX the compiler compiles the
8581 # header files by themselves before looking at the body files it is
8582 # told to compile. For ncurses, those header files do not include
8584 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
8585 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
8586 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
8588 echo "$as_me:8588: checking whether to use struct dirent64" >&5
8589 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
8590 if test "${cf_cv_struct_dirent64+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 cat >conftest.$ac_ext <<_ACEOF
8595 #line 8595 "configure"
8596 #include "confdefs.h"
8598 #include <sys/types.h>
8605 /* if transitional largefile support is setup, this is true */
8606 extern struct dirent64 * readdir(DIR *);
8607 struct dirent64 *x = readdir((DIR *)0);
8608 struct dirent *y = readdir((DIR *)0);
8615 rm -f conftest.$ac_objext
8616 if { (eval echo "$as_me:8616: \"$ac_compile\"") >&5
8617 (eval $ac_compile) 2>&5
8619 echo "$as_me:8619: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try='test -s conftest.$ac_objext'
8622 { (eval echo "$as_me:8622: \"$ac_try\"") >&5
8625 echo "$as_me:8625: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 cf_cv_struct_dirent64=yes
8629 echo "$as_me: failed program was:" >&5
8630 cat conftest.$ac_ext >&5
8631 cf_cv_struct_dirent64=no
8633 rm -f conftest.$ac_objext conftest.$ac_ext
8636 echo "$as_me:8636: result: $cf_cv_struct_dirent64" >&5
8637 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
8638 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
8639 #define HAVE_STRUCT_DIRENT64 1
8644 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
8645 echo "$as_me:8645: checking if you want tparm not to use X/Open fixed-parameter list" >&5
8646 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
8648 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
8649 if test "${enable_tparm_varargs+set}" = set; then
8650 enableval="$enable_tparm_varargs"
8651 with_tparm_varargs=$enableval
8653 with_tparm_varargs=yes
8655 echo "$as_me:8655: result: $with_tparm_varargs" >&5
8656 echo "${ECHO_T}$with_tparm_varargs" >&6
8657 NCURSES_TPARM_VARARGS=0
8658 test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
8660 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
8661 if test "$with_ticlib" != no ; then
8662 echo "$as_me:8662: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
8663 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
8665 # Check whether --enable-tic-depends or --disable-tic-depends was given.
8666 if test "${enable_tic_depends+set}" = set; then
8667 enableval="$enable_tic_depends"
8668 with_tic_depends=$enableval
8670 with_tic_depends=yes
8672 echo "$as_me:8672: result: $with_tic_depends" >&5
8673 echo "${ECHO_T}$with_tic_depends" >&6
8678 ### use option --with-bool to override bool's type
8679 echo "$as_me:8679: checking for type of bool" >&5
8680 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
8682 # Check whether --with-bool or --without-bool was given.
8683 if test "${with_bool+set}" = set; then
8684 withval="$with_bool"
8685 NCURSES_BOOL="$withval"
8689 echo "$as_me:8689: result: $NCURSES_BOOL" >&5
8690 echo "${ECHO_T}$NCURSES_BOOL" >&6
8692 echo "$as_me:8692: checking for alternate terminal capabilities file" >&5
8693 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
8695 # Check whether --with-caps or --without-caps was given.
8696 if test "${with_caps+set}" = set; then
8697 withval="$with_caps"
8698 TERMINFO_CAPS=Caps.$withval
8702 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
8703 echo "$as_me:8703: result: $TERMINFO_CAPS" >&5
8704 echo "${ECHO_T}$TERMINFO_CAPS" >&6
8706 ### use option --with-chtype to override chtype's type
8707 echo "$as_me:8707: checking for type of chtype" >&5
8708 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
8710 # Check whether --with-chtype or --without-chtype was given.
8711 if test "${with_chtype+set}" = set; then
8712 withval="$with_chtype"
8713 NCURSES_CHTYPE="$withval"
8717 echo "$as_me:8717: result: $NCURSES_CHTYPE" >&5
8718 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
8720 ### use option --with-ospeed to override ospeed's type
8721 echo "$as_me:8721: checking for type of ospeed" >&5
8722 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
8724 # Check whether --with-ospeed or --without-ospeed was given.
8725 if test "${with_ospeed+set}" = set; then
8726 withval="$with_ospeed"
8727 NCURSES_OSPEED="$withval"
8729 NCURSES_OSPEED=short
8731 echo "$as_me:8731: result: $NCURSES_OSPEED" >&5
8732 echo "${ECHO_T}$NCURSES_OSPEED" >&6
8734 ### use option --with-mmask-t to override mmask_t's type
8735 echo "$as_me:8735: checking for type of mmask_t" >&5
8736 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
8738 # Check whether --with-mmask-t or --without-mmask-t was given.
8739 if test "${with_mmask_t+set}" = set; then
8740 withval="$with_mmask_t"
8741 NCURSES_MMASK_T="$withval"
8743 NCURSES_MMASK_T=auto
8745 echo "$as_me:8745: result: $NCURSES_MMASK_T" >&5
8746 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
8748 ### use option --with-ccharw-max to override CCHARW_MAX size
8749 echo "$as_me:8749: checking for size CCHARW_MAX" >&5
8750 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
8752 # Check whether --with-ccharw-max or --without-ccharw-max was given.
8753 if test "${with_ccharw_max+set}" = set; then
8754 withval="$with_ccharw_max"
8755 NCURSES_CCHARW_MAX="$withval"
8757 NCURSES_CCHARW_MAX=5
8759 echo "$as_me:8759: result: $NCURSES_CCHARW_MAX" >&5
8760 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
8762 ### Enable compiling-in rcs id's
8763 echo "$as_me:8763: checking if RCS identifiers should be compiled-in" >&5
8764 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
8766 # Check whether --with-rcs-ids or --without-rcs-ids was given.
8767 if test "${with_rcs_ids+set}" = set; then
8768 withval="$with_rcs_ids"
8769 with_rcs_ids=$withval
8773 echo "$as_me:8773: result: $with_rcs_ids" >&5
8774 echo "${ECHO_T}$with_rcs_ids" >&6
8775 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
8776 #define USE_RCS_IDS 1
8779 ###############################################################################
8781 echo "$as_me:8781: checking format of man-pages" >&5
8782 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
8784 # Check whether --with-manpage-format or --without-manpage-format was given.
8785 if test "${with_manpage_format+set}" = set; then
8786 withval="$with_manpage_format"
8787 MANPAGE_FORMAT=$withval
8789 MANPAGE_FORMAT=unknown
8792 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
8793 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
8797 case $MANPAGE_FORMAT in
8799 if test -z "$MANPATH" ; then
8800 MANPATH="/usr/man:/usr/share/man"
8803 # look for the 'date' man-page (it's most likely to be installed!)
8809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
8810 for cf_dir in $MANPATH; do
8811 test -z "$cf_dir" && cf_dir=/usr/man
8812 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
8814 cf_test=`echo $cf_name | sed -e 's/*//'`
8815 if test "x$cf_test" = "x$cf_name" ; then
8818 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
8819 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
8820 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
8821 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
8835 # if we found a match in either man* or cat*, stop looking
8836 if test -n "$MANPAGE_FORMAT" ; then
8838 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
8839 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
8845 test $cf_found=yes && break
8848 # only check the first directory in $MANPATH where we find manpages
8849 if test -n "$MANPAGE_FORMAT" ; then
8853 # if we did not find the example, just assume it is normal
8854 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
8858 for cf_option in $MANPAGE_FORMAT; do
8859 case $cf_option in #(vi
8860 gzip|compress|BSDI|normal|formatted|catonly)
8863 cf_unknown="$cf_unknown $cf_option"
8870 echo "$as_me:8870: result: $MANPAGE_FORMAT" >&5
8871 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
8872 if test -n "$cf_unknown" ; then
8873 { echo "$as_me:8873: WARNING: Unexpected manpage-format $cf_unknown" >&5
8874 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
8877 echo "$as_me:8877: checking for manpage renaming" >&5
8878 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
8880 # Check whether --with-manpage-renames or --without-manpage-renames was given.
8881 if test "${with_manpage_renames+set}" = set; then
8882 withval="$with_manpage_renames"
8883 MANPAGE_RENAMES=$withval
8888 case ".$MANPAGE_RENAMES" in #(vi
8892 # Debian 'man' program?
8893 if test -f /etc/debian_version ; then
8894 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
8901 if test "$MANPAGE_RENAMES" != no ; then
8902 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
8903 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
8904 elif test ! -f $MANPAGE_RENAMES ; then
8905 { { echo "$as_me:8905: error: not a filename: $MANPAGE_RENAMES" >&5
8906 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
8907 { (exit 1); exit 1; }; }
8910 test ! -d man && mkdir man
8912 # Construct a sed-script to perform renaming within man-pages
8913 if test -n "$MANPAGE_RENAMES" ; then
8914 test ! -d man && mkdir man
8915 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
8919 echo "$as_me:8919: result: $MANPAGE_RENAMES" >&5
8920 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
8922 echo "$as_me:8922: checking if manpage aliases will be installed" >&5
8923 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
8925 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
8926 if test "${with_manpage_aliases+set}" = set; then
8927 withval="$with_manpage_aliases"
8928 MANPAGE_ALIASES=$withval
8933 echo "$as_me:8933: result: $MANPAGE_ALIASES" >&5
8934 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
8936 if test "$LN_S" = "ln -s"; then
8943 if test "$MANPAGE_ALIASES" = yes ; then
8944 echo "$as_me:8944: checking if manpage symlinks should be used" >&5
8945 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
8947 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
8948 if test "${with_manpage_symlinks+set}" = set; then
8949 withval="$with_manpage_symlinks"
8950 MANPAGE_SYMLINKS=$withval
8952 MANPAGE_SYMLINKS=$cf_use_symlinks
8955 if test "$$cf_use_symlinks" = no; then
8956 if test "$MANPAGE_SYMLINKS" = yes ; then
8957 { echo "$as_me:8957: WARNING: cannot make symlinks" >&5
8958 echo "$as_me: WARNING: cannot make symlinks" >&2;}
8963 echo "$as_me:8963: result: $MANPAGE_SYMLINKS" >&5
8964 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
8967 echo "$as_me:8967: checking for manpage tbl" >&5
8968 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
8970 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
8971 if test "${with_manpage_tbl+set}" = set; then
8972 withval="$with_manpage_tbl"
8973 MANPAGE_TBL=$withval
8978 echo "$as_me:8978: result: $MANPAGE_TBL" >&5
8979 echo "${ECHO_T}$MANPAGE_TBL" >&6
8981 if test "$prefix" = "NONE" ; then
8982 cf_prefix="$ac_default_prefix"
8987 case "$MANPAGE_FORMAT" in # (vi
9002 test ! -d man && mkdir man
9006 case "$MANPAGE_FORMAT" in #(vi
9009 cf_compress=compress
9017 cf_edit_man=./edit_man.sh
9018 cf_man_alias=`pwd`/man_alias.sed
9020 cat >$cf_edit_man <<CF_EOF
9022 # this script is generated by the configure-script CF_MAN_PAGES macro.
9027 NCURSES_MAJOR="$NCURSES_MAJOR"
9028 NCURSES_MINOR="$NCURSES_MINOR"
9029 NCURSES_PATCH="$NCURSES_PATCH"
9031 NCURSES_OSPEED="$NCURSES_OSPEED"
9032 TERMINFO="$TERMINFO"
9034 MKDIRS="sh `cd $srcdir && pwd`/mkdirs.sh"
9037 INSTALL_DATA="$INSTALL_DATA"
9039 transform="$program_transform_name"
9041 TMP=\${TMPDIR-/tmp}/man\$\$
9042 trap "rm -f \$TMP" 0 1 2 5 15
9054 top_srcdir=\$srcdir/..
9057 if test "\$form" = normal ; then
9058 if test "$cf_format" = yes ; then
9059 if test "$cf_inboth" = no ; then
9060 sh \$0 format \$verb \$mandir \$srcdir \$*
9064 cf_subdir=\$mandir/man
9065 cf_tables=$MANPAGE_TBL
9067 cf_subdir=\$mandir/cat
9071 # process the list of source-files
9074 *.orig|*.rej) ;; #(vi
9076 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
9077 if test \$verb = installing ; then
9078 if test ! -d \$cf_subdir\${section} ; then
9079 \$MKDIRS \$cf_subdir\$section
9083 # replace variables in man page
9084 if test ! -f $cf_man_alias ; then
9085 cat >>$cf_man_alias <<-CF_EOF2
9086 s,@DATADIR@,\$datadir,g
9087 s,@TERMINFO@,\$TERMINFO,g
9088 s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g
9089 s,@NCURSES_MINOR@,\$NCURSES_MINOR,g
9090 s,@NCURSES_PATCH@,\$NCURSES_PATCH,g
9091 s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g
9094 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
9096 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9097 cf_name=`echo $cf_name|sed "$program_transform_name"`
9098 cat >>$cf_edit_man <<-CF_EOF
9099 s,@$cf_NAME@,$cf_name,
9103 cat >>$cf_edit_man <<CF_EOF
9105 echo "...made $cf_man_alias"
9109 cf_source=\`basename \$i\`
9111 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
9112 if test ! -f \$inalias ; then
9113 echo .. skipped \$cf_source
9118 if test "$MANPAGE_ALIASES" != no ; then
9119 cat >>$cf_edit_man <<CF_EOF
9120 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u\`
9124 if test "$MANPAGE_RENAMES" = no ; then
9125 cat >>$cf_edit_man <<CF_EOF
9126 # perform program transformations for section 1 man pages
9127 if test \$section = 1 ; then
9128 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
9130 cf_target=\$cf_subdir\${section}/\$cf_source
9134 cat >>$cf_edit_man <<CF_EOF
9135 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
9136 if test -z "\$cf_target" ; then
9137 echo '? missing rename for '\$cf_source
9138 cf_target="\$cf_source"
9140 cf_target="\$cf_subdir\${section}/\${cf_target}"
9145 cat >>$cf_edit_man <<CF_EOF
9146 sed -f $cf_man_alias \\
9149 if test -f $MANPAGE_RENAMES ; then
9150 cat >>$cf_edit_man <<CF_EOF
9151 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
9154 cat >>$cf_edit_man <<CF_EOF
9159 cat >>$cf_edit_man <<CF_EOF
9160 if test \$cf_tables = yes ; then
9161 tbl \$TMP >\$TMP.out
9166 if test $with_curses_h != yes ; then
9167 cat >>$cf_edit_man <<CF_EOF
9168 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
9173 cat >>$cf_edit_man <<CF_EOF
9174 if test \$form = format ; then
9175 nroff -man \$TMP >\$TMP.out
9180 if test -n "$cf_compress" ; then
9181 cat >>$cf_edit_man <<CF_EOF
9182 if test \$verb = installing ; then
9183 if ( $cf_compress -f \$TMP )
9185 mv \$TMP.$cf_so_strip \$TMP
9188 cf_target="\$cf_target.$cf_so_strip"
9192 case "$MANPAGE_FORMAT" in #(vi
9194 cat >>$cf_edit_man <<CF_EOF
9195 if test \$form = format ; then
9196 # BSDI installs only .0 suffixes in the cat directories
9197 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
9203 cat >>$cf_edit_man <<CF_EOF
9204 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
9205 if test \$verb = installing ; then
9206 echo \$verb \$cf_target
9207 \$INSTALL_DATA \$TMP \$cf_target
9208 test -d \$cf_subdir\${section} &&
9209 test -n "\$aliases" && (
9210 cd \$cf_subdir\${section} && (
9211 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
9212 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
9213 cf_target=\`basename \$cf_target\`
9214 for cf_alias in \$aliases
9216 if test \$section = 1 ; then
9217 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
9220 if test "$MANPAGE_SYMLINKS" = yes ; then
9221 if test -f \$cf_alias\${suffix} ; then
9222 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
9227 echo .. \$verb alias \$cf_alias\${suffix}
9228 rm -f \$cf_alias\${suffix}
9229 $LN_S \$cf_target \$cf_alias\${suffix}
9230 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
9231 echo ".so \$cf_source" >\$TMP
9233 if test -n "$cf_compress" ; then
9234 cat >>$cf_edit_man <<CF_EOF
9235 if test -n "$cf_so_strip" ; then
9236 $cf_compress -f \$TMP
9237 mv \$TMP.$cf_so_strip \$TMP
9241 cat >>$cf_edit_man <<CF_EOF
9242 echo .. \$verb alias \$cf_alias\${suffix}
9243 rm -f \$cf_alias\${suffix}
9244 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
9249 elif test \$verb = removing ; then
9250 test -f \$cf_target && (
9251 echo \$verb \$cf_target
9254 test -d \$cf_subdir\${section} &&
9255 test -n "\$aliases" && (
9256 cd \$cf_subdir\${section} && (
9257 for cf_alias in \$aliases
9259 if test \$section = 1 ; then
9260 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
9263 echo .. \$verb alias \$cf_alias\${suffix}
9264 rm -f \$cf_alias\${suffix}
9276 if test $cf_inboth = yes ; then
9277 if test \$form != format ; then
9278 sh \$0 format \$verb \$mandir \$srcdir \$*
9284 chmod 755 $cf_edit_man
9286 ###############################################################################
9288 ### Note that some functions (such as const) are normally disabled anyway.
9289 echo "$as_me:9289: checking if you want to build with function extensions" >&5
9290 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
9292 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
9293 if test "${enable_ext_funcs+set}" = set; then
9294 enableval="$enable_ext_funcs"
9295 with_ext_funcs=$enableval
9299 echo "$as_me:9299: result: $with_ext_funcs" >&5
9300 echo "${ECHO_T}$with_ext_funcs" >&6
9301 if test "$with_ext_funcs" = yes ; then
9303 cat >>confdefs.h <<\EOF
9304 #define HAVE_CURSES_VERSION 1
9307 cat >>confdefs.h <<\EOF
9308 #define HAVE_HAS_KEY 1
9311 cat >>confdefs.h <<\EOF
9312 #define HAVE_RESIZETERM 1
9315 cat >>confdefs.h <<\EOF
9316 #define HAVE_RESIZE_TERM 1
9319 cat >>confdefs.h <<\EOF
9320 #define HAVE_USE_DEFAULT_COLORS 1
9323 cat >>confdefs.h <<\EOF
9324 #define HAVE_WRESIZE 1
9327 cat >>confdefs.h <<\EOF
9328 #define NCURSES_EXT_FUNCS 1
9331 GENERATED_EXT_FUNCS=generated
9334 GENERATED_EXT_FUNCS=
9337 echo "$as_me:9337: checking if you want to build with experimental SCREEN extensions" >&5
9338 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
9340 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
9341 if test "${enable_sp_funcs+set}" = set; then
9342 enableval="$enable_sp_funcs"
9343 with_sp_funcs=$enableval
9347 echo "$as_me:9347: result: $with_sp_funcs" >&5
9348 echo "${ECHO_T}$with_sp_funcs" >&6
9349 if test "$with_sp_funcs" = yes ; then
9351 cat >>confdefs.h <<\EOF
9352 #define NCURSES_SP_FUNCS 1
9355 GENERATED_SP_FUNCS=generated
9361 ### use option --enable-const to turn on use of const beyond that in XSI.
9362 echo "$as_me:9362: checking for extended use of const keyword" >&5
9363 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
9365 # Check whether --enable-const or --disable-const was given.
9366 if test "${enable_const+set}" = set; then
9367 enableval="$enable_const"
9368 with_ext_const=$enableval
9372 echo "$as_me:9372: result: $with_ext_const" >&5
9373 echo "${ECHO_T}$with_ext_const" >&6
9374 NCURSES_CONST='/*nothing*/'
9375 if test "$with_ext_const" = yes ; then
9379 ### use option --enable-ext-colors to turn on use of colors beyond 16.
9380 echo "$as_me:9380: checking if you want to use extended colors" >&5
9381 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
9383 # Check whether --enable-ext-colors or --disable-ext-colors was given.
9384 if test "${enable_ext_colors+set}" = set; then
9385 enableval="$enable_ext_colors"
9386 with_ext_colors=$enableval
9390 echo "$as_me:9390: result: $with_ext_colors" >&5
9391 echo "${ECHO_T}$with_ext_colors" >&6
9392 NCURSES_EXT_COLORS=0
9393 if test "$with_ext_colors" = yes ; then
9394 if test "$with_widec" != yes ; then
9395 { { echo "$as_me:9395: error: This option applies only to wide-character library" >&5
9396 echo "$as_me: error: This option applies only to wide-character library" >&2;}
9397 { (exit 1); exit 1; }; }
9399 # cannot be ABI 5 since it changes sizeof(cchar_t)
9401 if test "${with_abi_version+set}" != set; then
9402 case $cf_cv_rel_version in
9404 cf_cv_rel_version=6.0
9406 { echo "$as_me:9406: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
9407 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
9413 NCURSES_EXT_COLORS=1
9414 cat >>confdefs.h <<\EOF
9415 #define NCURSES_EXT_COLORS 1
9420 ### use option --enable-ext-mouse to modify coding to support 5-button mice
9421 echo "$as_me:9421: checking if you want to use extended mouse encoding" >&5
9422 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
9424 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
9425 if test "${enable_ext_mouse+set}" = set; then
9426 enableval="$enable_ext_mouse"
9427 with_ext_mouse=$enableval
9431 echo "$as_me:9431: result: $with_ext_mouse" >&5
9432 echo "${ECHO_T}$with_ext_mouse" >&6
9433 NCURSES_MOUSE_VERSION=1
9434 if test "$with_ext_mouse" = yes ; then
9435 NCURSES_MOUSE_VERSION=2
9437 if test "${with_abi_version+set}" != set; then
9438 case $cf_cv_rel_version in
9440 cf_cv_rel_version=6.0
9442 { echo "$as_me:9442: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
9443 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
9450 echo "$as_me:9450: checking if you want \$NCURSES_NO_PADDING code" >&5
9451 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
9453 # Check whether --enable-no-padding or --disable-no-padding was given.
9454 if test "${enable_no_padding+set}" = set; then
9455 enableval="$enable_no_padding"
9456 with_no_padding=$enableval
9458 with_no_padding=$with_ext_funcs
9460 echo "$as_me:9460: result: $with_no_padding" >&5
9461 echo "${ECHO_T}$with_no_padding" >&6
9462 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
9463 #define NCURSES_NO_PADDING 1
9466 echo "$as_me:9466: checking for ANSI C header files" >&5
9467 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9468 if test "${ac_cv_header_stdc+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 cat >conftest.$ac_ext <<_ACEOF
9472 #line 9472 "configure"
9473 #include "confdefs.h"
9480 if { (eval echo "$as_me:9480: \"$ac_cpp conftest.$ac_ext\"") >&5
9481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9483 egrep -v '^ *\+' conftest.er1 >conftest.err
9485 cat conftest.err >&5
9486 echo "$as_me:9486: \$? = $ac_status" >&5
9487 (exit $ac_status); } >/dev/null; then
9488 if test -s conftest.err; then
9489 ac_cpp_err=$ac_c_preproc_warn_flag
9496 if test -z "$ac_cpp_err"; then
9497 ac_cv_header_stdc=yes
9499 echo "$as_me: failed program was:" >&5
9500 cat conftest.$ac_ext >&5
9501 ac_cv_header_stdc=no
9503 rm -f conftest.err conftest.$ac_ext
9505 if test $ac_cv_header_stdc = yes; then
9506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9507 cat >conftest.$ac_ext <<_ACEOF
9508 #line 9508 "configure"
9509 #include "confdefs.h"
9513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9514 egrep "memchr" >/dev/null 2>&1; then
9517 ac_cv_header_stdc=no
9523 if test $ac_cv_header_stdc = yes; then
9524 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9525 cat >conftest.$ac_ext <<_ACEOF
9526 #line 9526 "configure"
9527 #include "confdefs.h"
9531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9532 egrep "free" >/dev/null 2>&1; then
9535 ac_cv_header_stdc=no
9541 if test $ac_cv_header_stdc = yes; then
9542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9543 if test "$cross_compiling" = yes; then
9546 cat >conftest.$ac_ext <<_ACEOF
9547 #line 9547 "configure"
9548 #include "confdefs.h"
9550 #if ((' ' & 0x0FF) == 0x020)
9551 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9552 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9554 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9555 || ('j' <= (c) && (c) <= 'r') \
9556 || ('s' <= (c) && (c) <= 'z'))
9557 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9565 for (i = 0; i < 256; i++)
9566 if (XOR (islower (i), ISLOWER (i))
9567 || toupper (i) != TOUPPER (i))
9569 $ac_main_return (0);
9572 rm -f conftest$ac_exeext
9573 if { (eval echo "$as_me:9573: \"$ac_link\"") >&5
9574 (eval $ac_link) 2>&5
9576 echo "$as_me:9576: \$? = $ac_status" >&5
9577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9578 { (eval echo "$as_me:9578: \"$ac_try\"") >&5
9581 echo "$as_me:9581: \$? = $ac_status" >&5
9582 (exit $ac_status); }; }; then
9585 echo "$as_me: program exited with status $ac_status" >&5
9586 echo "$as_me: failed program was:" >&5
9587 cat conftest.$ac_ext >&5
9588 ac_cv_header_stdc=no
9590 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9594 echo "$as_me:9594: result: $ac_cv_header_stdc" >&5
9595 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9596 if test $ac_cv_header_stdc = yes; then
9598 cat >>confdefs.h <<\EOF
9599 #define STDC_HEADERS 1
9604 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9606 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9607 inttypes.h stdint.h unistd.h
9609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9610 echo "$as_me:9610: checking for $ac_header" >&5
9611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9615 cat >conftest.$ac_ext <<_ACEOF
9616 #line 9616 "configure"
9617 #include "confdefs.h"
9618 $ac_includes_default
9619 #include <$ac_header>
9621 rm -f conftest.$ac_objext
9622 if { (eval echo "$as_me:9622: \"$ac_compile\"") >&5
9623 (eval $ac_compile) 2>&5
9625 echo "$as_me:9625: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try='test -s conftest.$ac_objext'
9628 { (eval echo "$as_me:9628: \"$ac_try\"") >&5
9631 echo "$as_me:9631: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 eval "$as_ac_Header=yes"
9635 echo "$as_me: failed program was:" >&5
9636 cat conftest.$ac_ext >&5
9637 eval "$as_ac_Header=no"
9639 rm -f conftest.$ac_objext conftest.$ac_ext
9641 echo "$as_me:9641: result: `eval echo '${'$as_ac_Header'}'`" >&5
9642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9644 cat >>confdefs.h <<EOF
9645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9651 echo "$as_me:9651: checking for signed char" >&5
9652 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
9653 if test "${ac_cv_type_signed_char+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 cat >conftest.$ac_ext <<_ACEOF
9657 #line 9657 "configure"
9658 #include "confdefs.h"
9659 $ac_includes_default
9663 if ((signed char *) 0)
9665 if (sizeof (signed char))
9671 rm -f conftest.$ac_objext
9672 if { (eval echo "$as_me:9672: \"$ac_compile\"") >&5
9673 (eval $ac_compile) 2>&5
9675 echo "$as_me:9675: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try='test -s conftest.$ac_objext'
9678 { (eval echo "$as_me:9678: \"$ac_try\"") >&5
9681 echo "$as_me:9681: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 ac_cv_type_signed_char=yes
9685 echo "$as_me: failed program was:" >&5
9686 cat conftest.$ac_ext >&5
9687 ac_cv_type_signed_char=no
9689 rm -f conftest.$ac_objext conftest.$ac_ext
9691 echo "$as_me:9691: result: $ac_cv_type_signed_char" >&5
9692 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
9694 echo "$as_me:9694: checking size of signed char" >&5
9695 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
9696 if test "${ac_cv_sizeof_signed_char+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 if test "$ac_cv_type_signed_char" = yes; then
9700 if test "$cross_compiling" = yes; then
9701 # Depending upon the size, compute the lo and hi bounds.
9702 cat >conftest.$ac_ext <<_ACEOF
9703 #line 9703 "configure"
9704 #include "confdefs.h"
9705 $ac_includes_default
9709 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
9714 rm -f conftest.$ac_objext
9715 if { (eval echo "$as_me:9715: \"$ac_compile\"") >&5
9716 (eval $ac_compile) 2>&5
9718 echo "$as_me:9718: \$? = $ac_status" >&5
9719 (exit $ac_status); } &&
9720 { ac_try='test -s conftest.$ac_objext'
9721 { (eval echo "$as_me:9721: \"$ac_try\"") >&5
9724 echo "$as_me:9724: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9728 cat >conftest.$ac_ext <<_ACEOF
9729 #line 9729 "configure"
9730 #include "confdefs.h"
9731 $ac_includes_default
9735 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
9740 rm -f conftest.$ac_objext
9741 if { (eval echo "$as_me:9741: \"$ac_compile\"") >&5
9742 (eval $ac_compile) 2>&5
9744 echo "$as_me:9744: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 { ac_try='test -s conftest.$ac_objext'
9747 { (eval echo "$as_me:9747: \"$ac_try\"") >&5
9750 echo "$as_me:9750: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 ac_hi=$ac_mid; break
9754 echo "$as_me: failed program was:" >&5
9755 cat conftest.$ac_ext >&5
9756 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9758 rm -f conftest.$ac_objext conftest.$ac_ext
9761 echo "$as_me: failed program was:" >&5
9762 cat conftest.$ac_ext >&5
9765 cat >conftest.$ac_ext <<_ACEOF
9766 #line 9766 "configure"
9767 #include "confdefs.h"
9768 $ac_includes_default
9772 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
9777 rm -f conftest.$ac_objext
9778 if { (eval echo "$as_me:9778: \"$ac_compile\"") >&5
9779 (eval $ac_compile) 2>&5
9781 echo "$as_me:9781: \$? = $ac_status" >&5
9782 (exit $ac_status); } &&
9783 { ac_try='test -s conftest.$ac_objext'
9784 { (eval echo "$as_me:9784: \"$ac_try\"") >&5
9787 echo "$as_me:9787: \$? = $ac_status" >&5
9788 (exit $ac_status); }; }; then
9789 ac_lo=$ac_mid; break
9791 echo "$as_me: failed program was:" >&5
9792 cat conftest.$ac_ext >&5
9793 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9795 rm -f conftest.$ac_objext conftest.$ac_ext
9798 rm -f conftest.$ac_objext conftest.$ac_ext
9799 # Binary search between lo and hi bounds.
9800 while test "x$ac_lo" != "x$ac_hi"; do
9801 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9802 cat >conftest.$ac_ext <<_ACEOF
9803 #line 9803 "configure"
9804 #include "confdefs.h"
9805 $ac_includes_default
9809 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
9814 rm -f conftest.$ac_objext
9815 if { (eval echo "$as_me:9815: \"$ac_compile\"") >&5
9816 (eval $ac_compile) 2>&5
9818 echo "$as_me:9818: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
9820 { ac_try='test -s conftest.$ac_objext'
9821 { (eval echo "$as_me:9821: \"$ac_try\"") >&5
9824 echo "$as_me:9824: \$? = $ac_status" >&5
9825 (exit $ac_status); }; }; then
9828 echo "$as_me: failed program was:" >&5
9829 cat conftest.$ac_ext >&5
9830 ac_lo=`expr $ac_mid + 1`
9832 rm -f conftest.$ac_objext conftest.$ac_ext
9834 ac_cv_sizeof_signed_char=$ac_lo
9836 if test "$cross_compiling" = yes; then
9837 { { echo "$as_me:9837: error: cannot run test program while cross compiling" >&5
9838 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9839 { (exit 1); exit 1; }; }
9841 cat >conftest.$ac_ext <<_ACEOF
9842 #line 9842 "configure"
9843 #include "confdefs.h"
9844 $ac_includes_default
9848 FILE *f = fopen ("conftest.val", "w");
9850 $ac_main_return (1);
9851 fprintf (f, "%d", (sizeof (signed char)));
9857 rm -f conftest$ac_exeext
9858 if { (eval echo "$as_me:9858: \"$ac_link\"") >&5
9859 (eval $ac_link) 2>&5
9861 echo "$as_me:9861: \$? = $ac_status" >&5
9862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9863 { (eval echo "$as_me:9863: \"$ac_try\"") >&5
9866 echo "$as_me:9866: \$? = $ac_status" >&5
9867 (exit $ac_status); }; }; then
9868 ac_cv_sizeof_signed_char=`cat conftest.val`
9870 echo "$as_me: program exited with status $ac_status" >&5
9871 echo "$as_me: failed program was:" >&5
9872 cat conftest.$ac_ext >&5
9874 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9879 ac_cv_sizeof_signed_char=0
9882 echo "$as_me:9882: result: $ac_cv_sizeof_signed_char" >&5
9883 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
9884 cat >>confdefs.h <<EOF
9885 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
9888 if test "$ac_cv_sizeof_signed_char" = 1 ; then
9889 NCURSES_SBOOL="signed char"
9891 NCURSES_SBOOL="char"
9893 echo "$as_me:9893: checking if you want to use signed Boolean array in term.h" >&5
9894 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
9896 # Check whether --enable-signed-char or --disable-signed-char was given.
9897 if test "${enable_signed_char+set}" = set; then
9898 enableval="$enable_signed_char"
9899 with_signed_char=$enableval
9903 echo "$as_me:9903: result: $with_signed_char" >&5
9904 echo "${ECHO_T}$with_signed_char" >&6
9905 test "$with_signed_char" != yes && NCURSES_SBOOL="char"
9907 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
9908 echo "$as_me:9908: checking if you want SIGWINCH handler" >&5
9909 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
9911 # Check whether --enable-sigwinch or --disable-sigwinch was given.
9912 if test "${enable_sigwinch+set}" = set; then
9913 enableval="$enable_sigwinch"
9914 with_sigwinch=$enableval
9916 with_sigwinch=$with_ext_funcs
9918 echo "$as_me:9918: result: $with_sigwinch" >&5
9919 echo "${ECHO_T}$with_sigwinch" >&6
9920 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
9921 #define USE_SIGWINCH 1
9924 ### use option --enable-tcap-names to allow user to define new capabilities
9925 echo "$as_me:9925: checking if you want user-definable terminal capabilities like termcap" >&5
9926 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
9928 # Check whether --enable-tcap-names or --disable-tcap-names was given.
9929 if test "${enable_tcap_names+set}" = set; then
9930 enableval="$enable_tcap_names"
9931 with_tcap_names=$enableval
9933 with_tcap_names=$with_ext_funcs
9935 echo "$as_me:9935: result: $with_tcap_names" >&5
9936 echo "${ECHO_T}$with_tcap_names" >&6
9938 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
9940 ###############################################################################
9941 # These options are relatively safe to experiment with.
9943 echo "$as_me:9943: checking if you want all development code" >&5
9944 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
9946 # Check whether --with-develop or --without-develop was given.
9947 if test "${with_develop+set}" = set; then
9948 withval="$with_develop"
9949 with_develop=$withval
9953 echo "$as_me:9953: result: $with_develop" >&5
9954 echo "${ECHO_T}$with_develop" >&6
9956 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
9957 echo "$as_me:9957: checking if you want hard-tabs code" >&5
9958 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
9960 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
9961 if test "${enable_hard_tabs+set}" = set; then
9962 enableval="$enable_hard_tabs"
9965 enable_hard_tabs=$with_develop
9967 echo "$as_me:9967: result: $enable_hard_tabs" >&5
9968 echo "${ECHO_T}$enable_hard_tabs" >&6
9969 test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
9970 #define USE_HARD_TABS 1
9973 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
9974 echo "$as_me:9974: checking if you want limited support for xmc" >&5
9975 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
9977 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
9978 if test "${enable_xmc_glitch+set}" = set; then
9979 enableval="$enable_xmc_glitch"
9982 enable_xmc_glitch=$with_develop
9984 echo "$as_me:9984: result: $enable_xmc_glitch" >&5
9985 echo "${ECHO_T}$enable_xmc_glitch" >&6
9986 test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
9987 #define USE_XMC_SUPPORT 1
9990 ###############################################################################
9991 # These are just experimental, probably should not be in a package:
9993 echo "$as_me:9993: checking if you do not want to assume colors are white-on-black" >&5
9994 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
9996 # Check whether --enable-assumed-color or --disable-assumed-color was given.
9997 if test "${enable_assumed_color+set}" = set; then
9998 enableval="$enable_assumed_color"
9999 with_assumed_color=$enableval
10001 with_assumed_color=yes
10003 echo "$as_me:10003: result: $with_assumed_color" >&5
10004 echo "${ECHO_T}$with_assumed_color" >&6
10005 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
10006 #define USE_ASSUMED_COLOR 1
10009 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
10010 echo "$as_me:10010: checking if you want hashmap scrolling-optimization code" >&5
10011 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
10013 # Check whether --enable-hashmap or --disable-hashmap was given.
10014 if test "${enable_hashmap+set}" = set; then
10015 enableval="$enable_hashmap"
10016 with_hashmap=$enableval
10020 echo "$as_me:10020: result: $with_hashmap" >&5
10021 echo "${ECHO_T}$with_hashmap" >&6
10022 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
10023 #define USE_HASHMAP 1
10026 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
10027 echo "$as_me:10027: checking if you want colorfgbg code" >&5
10028 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
10030 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
10031 if test "${enable_colorfgbg+set}" = set; then
10032 enableval="$enable_colorfgbg"
10033 with_colorfgbg=$enableval
10037 echo "$as_me:10037: result: $with_colorfgbg" >&5
10038 echo "${ECHO_T}$with_colorfgbg" >&6
10039 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
10040 #define USE_COLORFGBG 1
10043 # This is still experimental (20080329), but should ultimately be moved to
10044 # the script-block --with-normal, etc.
10046 echo "$as_me:10046: checking if you want to link with the pthread library" >&5
10047 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
10049 # Check whether --with-pthread or --without-pthread was given.
10050 if test "${with_pthread+set}" = set; then
10051 withval="$with_pthread"
10052 with_pthread=$withval
10056 echo "$as_me:10056: result: $with_pthread" >&5
10057 echo "${ECHO_T}$with_pthread" >&6
10059 if test "$with_pthread" != no ; then
10060 echo "$as_me:10060: checking for pthread.h" >&5
10061 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
10062 if test "${ac_cv_header_pthread_h+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 cat >conftest.$ac_ext <<_ACEOF
10066 #line 10066 "configure"
10067 #include "confdefs.h"
10068 #include <pthread.h>
10070 if { (eval echo "$as_me:10070: \"$ac_cpp conftest.$ac_ext\"") >&5
10071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10073 egrep -v '^ *\+' conftest.er1 >conftest.err
10075 cat conftest.err >&5
10076 echo "$as_me:10076: \$? = $ac_status" >&5
10077 (exit $ac_status); } >/dev/null; then
10078 if test -s conftest.err; then
10079 ac_cpp_err=$ac_c_preproc_warn_flag
10086 if test -z "$ac_cpp_err"; then
10087 ac_cv_header_pthread_h=yes
10089 echo "$as_me: failed program was:" >&5
10090 cat conftest.$ac_ext >&5
10091 ac_cv_header_pthread_h=no
10093 rm -f conftest.err conftest.$ac_ext
10095 echo "$as_me:10095: result: $ac_cv_header_pthread_h" >&5
10096 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
10097 if test $ac_cv_header_pthread_h = yes; then
10099 cat >>confdefs.h <<\EOF
10100 #define HAVE_PTHREADS_H 1
10103 echo "$as_me:10103: checking if we can link with the pthread library" >&5
10104 echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6
10105 cf_save_LIBS="$LIBS"
10106 LIBS="-lpthread $LIBS"
10107 cat >conftest.$ac_ext <<_ACEOF
10108 #line 10108 "configure"
10109 #include "confdefs.h"
10111 #include <pthread.h>
10117 int rc = pthread_create(0,0,0,0);
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (eval echo "$as_me:10124: \"$ac_link\"") >&5
10125 (eval $ac_link) 2>&5
10127 echo "$as_me:10127: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try='test -s conftest$ac_exeext'
10130 { (eval echo "$as_me:10130: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10133 echo "$as_me:10133: \$? = $ac_status" >&5
10134 (exit $ac_status); }; }; then
10137 echo "$as_me: failed program was:" >&5
10138 cat conftest.$ac_ext >&5
10141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10142 LIBS="$cf_save_LIBS"
10143 echo "$as_me:10143: result: $with_pthread" >&5
10144 echo "${ECHO_T}$with_pthread" >&6
10146 if test "$with_pthread" = yes ; then
10147 LIBS="-lpthread $LIBS"
10148 cat >>confdefs.h <<\EOF
10149 #define HAVE_LIBPTHREADS 1
10153 { { echo "$as_me:10153: error: Cannot link with pthread library" >&5
10154 echo "$as_me: error: Cannot link with pthread library" >&2;}
10155 { (exit 1); exit 1; }; }
10162 echo "$as_me:10162: checking if you want to use weak-symbols for pthreads" >&5
10163 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
10165 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
10166 if test "${enable_weak_symbols+set}" = set; then
10167 enableval="$enable_weak_symbols"
10168 use_weak_symbols=$withval
10170 use_weak_symbols=no
10172 echo "$as_me:10172: result: $use_weak_symbols" >&5
10173 echo "${ECHO_T}$use_weak_symbols" >&6
10174 if test "$use_weak_symbols" = yes ; then
10176 echo "$as_me:10176: checking if $CC supports weak symbols" >&5
10177 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
10178 if test "${cf_cv_weak_symbols+set}" = set; then
10179 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 cat >conftest.$ac_ext <<_ACEOF
10183 #line 10183 "configure"
10184 #include "confdefs.h"
10191 #if defined(__GNUC__)
10192 # if defined __USE_ISOC99
10193 # define _cat_pragma(exp) _Pragma(#exp)
10194 # define _weak_pragma(exp) _cat_pragma(weak name)
10196 # define _weak_pragma(exp)
10198 # define _declare(name) __extension__ extern __typeof__(name) name
10199 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
10202 weak_symbol(fopen);
10208 rm -f conftest.$ac_objext
10209 if { (eval echo "$as_me:10209: \"$ac_compile\"") >&5
10210 (eval $ac_compile) 2>&5
10212 echo "$as_me:10212: \$? = $ac_status" >&5
10213 (exit $ac_status); } &&
10214 { ac_try='test -s conftest.$ac_objext'
10215 { (eval echo "$as_me:10215: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10218 echo "$as_me:10218: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 cf_cv_weak_symbols=yes
10222 echo "$as_me: failed program was:" >&5
10223 cat conftest.$ac_ext >&5
10224 cf_cv_weak_symbols=no
10226 rm -f conftest.$ac_objext conftest.$ac_ext
10229 echo "$as_me:10229: result: $cf_cv_weak_symbols" >&5
10230 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
10233 cf_cv_weak_symbols=no
10236 if test $cf_cv_weak_symbols = yes ; then
10237 cat >>confdefs.h <<\EOF
10238 #define USE_WEAK_SYMBOLS 1
10244 if test "$with_pthread" = "yes" ; then
10245 cat >>confdefs.h <<\EOF
10246 #define USE_PTHREADS 1
10249 enable_reentrant=yes
10250 if test $cf_cv_weak_symbols = yes ; then
10255 # Reentrant code has to be opaque; there's little advantage to making ncurses
10256 # opaque outside of that, so there is no --enable-opaque option. We can use
10257 # this option without --with-pthreads, but this will be always set for
10259 echo "$as_me:10259: checking if you want experimental reentrant code" >&5
10260 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
10262 # Check whether --enable-reentrant or --disable-reentrant was given.
10263 if test "${enable_reentrant+set}" = set; then
10264 enableval="$enable_reentrant"
10265 with_reentrant=$enableval
10269 echo "$as_me:10269: result: $with_reentrant" >&5
10270 echo "${ECHO_T}$with_reentrant" >&6
10271 if test "$with_reentrant" = yes ; then
10272 cf_cv_enable_reentrant=1
10273 cf_cv_enable_opaque="NCURSES_INTERNALS"
10276 if test $cf_cv_weak_symbols = yes ; then
10278 # remove pthread library from $LIBS
10279 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
10282 LIB_SUFFIX="t${LIB_SUFFIX}"
10284 cat >>confdefs.h <<\EOF
10285 #define USE_REENTRANT 1
10288 if test "${with_abi_version+set}" != set; then
10289 case $cf_cv_rel_version in
10291 cf_cv_rel_version=6.0
10292 cf_cv_abi_version=6
10293 { echo "$as_me:10293: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10294 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10300 cf_cv_enable_reentrant=0
10301 cf_cv_enable_opaque="NCURSES_OPAQUE"
10303 NCURSES_SIZE_T=short
10306 ### Allow using a different wrap-prefix
10307 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
10308 echo "$as_me:10308: checking for prefix used to wrap public variables" >&5
10309 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
10311 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
10312 if test "${with_wrap_prefix+set}" = set; then
10313 withval="$with_wrap_prefix"
10314 NCURSES_WRAP_PREFIX=$withval
10316 NCURSES_WRAP_PREFIX=_nc_
10318 echo "$as_me:10318: result: $NCURSES_WRAP_PREFIX" >&5
10319 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
10321 NCURSES_WRAP_PREFIX=_nc_
10324 cat >>confdefs.h <<EOF
10325 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
10328 echo "$as_me:10328: checking if you want experimental safe-sprintf code" >&5
10329 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
10331 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
10332 if test "${enable_safe_sprintf+set}" = set; then
10333 enableval="$enable_safe_sprintf"
10334 with_safe_sprintf=$enableval
10336 with_safe_sprintf=no
10338 echo "$as_me:10338: result: $with_safe_sprintf" >&5
10339 echo "${ECHO_T}$with_safe_sprintf" >&6
10340 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
10341 #define USE_SAFE_SPRINTF 1
10344 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
10345 # when hashmap is used scroll hints are useless
10346 if test "$with_hashmap" = no ; then
10347 echo "$as_me:10347: checking if you want to experiment without scrolling-hints code" >&5
10348 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
10350 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
10351 if test "${enable_scroll_hints+set}" = set; then
10352 enableval="$enable_scroll_hints"
10353 with_scroll_hints=$enableval
10355 with_scroll_hints=yes
10357 echo "$as_me:10357: result: $with_scroll_hints" >&5
10358 echo "${ECHO_T}$with_scroll_hints" >&6
10359 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
10360 #define USE_SCROLL_HINTS 1
10365 echo "$as_me:10365: checking if you want experimental wgetch-events code" >&5
10366 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
10368 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
10369 if test "${enable_wgetch_events+set}" = set; then
10370 enableval="$enable_wgetch_events"
10371 with_wgetch_events=$enableval
10373 with_wgetch_events=no
10375 echo "$as_me:10375: result: $with_wgetch_events" >&5
10376 echo "${ECHO_T}$with_wgetch_events" >&6
10377 test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
10378 #define NCURSES_WGETCH_EVENTS 1
10381 ###############################################################################
10383 ### use option --disable-echo to suppress full display compiling commands
10384 echo "$as_me:10384: checking if you want to display full commands during build" >&5
10385 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
10387 # Check whether --enable-echo or --disable-echo was given.
10388 if test "${enable_echo+set}" = set; then
10389 enableval="$enable_echo"
10390 with_echo=$enableval
10394 if test "$with_echo" = yes; then
10397 ECHO_LINK='@ echo linking $@ ... ;'
10398 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
10399 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
10401 echo "$as_me:10401: result: $with_echo" >&5
10402 echo "${ECHO_T}$with_echo" >&6
10404 ### use option --enable-warnings to turn on all gcc warnings
10405 echo "$as_me:10405: checking if you want to see compiler warnings" >&5
10406 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
10408 # Check whether --enable-warnings or --disable-warnings was given.
10409 if test "${enable_warnings+set}" = set; then
10410 enableval="$enable_warnings"
10411 with_warnings=$enableval
10413 echo "$as_me:10413: result: $with_warnings" >&5
10414 echo "${ECHO_T}$with_warnings" >&6
10416 if test "x$with_warnings" = "xyes"; then
10417 ADAFLAGS="$ADAFLAGS -gnatg"
10421 if test "$GCC" = yes ; then
10424 echo "$as_me:10424: checking if this is really Intel C compiler" >&5
10425 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
10426 cf_save_CFLAGS="$CFLAGS"
10427 CFLAGS="$CFLAGS -no-gcc"
10428 cat >conftest.$ac_ext <<_ACEOF
10429 #line 10429 "configure"
10430 #include "confdefs.h"
10436 #ifdef __INTEL_COMPILER
10445 rm -f conftest.$ac_objext
10446 if { (eval echo "$as_me:10446: \"$ac_compile\"") >&5
10447 (eval $ac_compile) 2>&5
10449 echo "$as_me:10449: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -s conftest.$ac_objext'
10452 { (eval echo "$as_me:10452: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10455 echo "$as_me:10455: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
10458 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
10461 echo "$as_me: failed program was:" >&5
10462 cat conftest.$ac_ext >&5
10464 rm -f conftest.$ac_objext conftest.$ac_ext
10465 CFLAGS="$cf_save_CFLAGS"
10466 echo "$as_me:10466: result: $INTEL_COMPILER" >&5
10467 echo "${ECHO_T}$INTEL_COMPILER" >&6
10472 cat > conftest.$ac_ext <<EOF
10473 #line 10473 "${as_me-configure}"
10474 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
10477 if test "$INTEL_COMPILER" = yes
10479 # The "-wdXXX" options suppress warnings:
10480 # remark #1419: external declaration in primary source file
10481 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
10482 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
10483 # remark #193: zero used for undefined preprocessing identifier
10484 # remark #593: variable "curs_sb_left_arrow" was set but never used
10485 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
10486 # remark #869: parameter "tw" was never referenced
10487 # remark #981: operands are evaluated in unspecified order
10488 # warning #279: controlling expression is constant
10490 { echo "$as_me:10490: checking for $CC warning options..." >&5
10491 echo "$as_me: checking for $CC warning options..." >&6;}
10492 cf_save_CFLAGS="$CFLAGS"
10493 EXTRA_CFLAGS="-Wall"
10505 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
10506 if { (eval echo "$as_me:10506: \"$ac_compile\"") >&5
10507 (eval $ac_compile) 2>&5
10509 echo "$as_me:10509: \$? = $ac_status" >&5
10510 (exit $ac_status); }; then
10511 test -n "$verbose" && echo "$as_me:10511: result: ... -$cf_opt" >&5
10512 echo "${ECHO_T}... -$cf_opt" >&6
10513 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
10516 CFLAGS="$cf_save_CFLAGS"
10518 elif test "$GCC" = yes
10520 { echo "$as_me:10520: checking for $CC warning options..." >&5
10521 echo "$as_me: checking for $CC warning options..." >&6;}
10522 cf_save_CFLAGS="$CFLAGS"
10523 EXTRA_CFLAGS="-W -Wall"
10525 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
10527 Wbad-function-cast \
10531 Wmissing-declarations \
10532 Wmissing-prototypes \
10536 Wstrict-prototypes \
10537 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
10539 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
10540 if { (eval echo "$as_me:10540: \"$ac_compile\"") >&5
10541 (eval $ac_compile) 2>&5
10543 echo "$as_me:10543: \$? = $ac_status" >&5
10544 (exit $ac_status); }; then
10545 test -n "$verbose" && echo "$as_me:10545: result: ... -$cf_opt" >&5
10546 echo "${ECHO_T}... -$cf_opt" >&6
10547 case $cf_opt in #(vi
10549 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
10552 case $GCC_VERSION in
10554 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
10556 echo "${as_me-configure}:10556: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
10562 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
10565 CFLAGS="$cf_save_CFLAGS"
10569 if test "$cf_with_cxx" = yes ; then
10573 if test "$GCC" = yes ; then
10576 echo "$as_me:10576: checking if this is really Intel C++ compiler" >&5
10577 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
10578 cf_save_CFLAGS="$CXXFLAGS"
10579 CXXFLAGS="$CXXFLAGS -no-gcc"
10580 cat >conftest.$ac_ext <<_ACEOF
10581 #line 10581 "configure"
10582 #include "confdefs.h"
10588 #ifdef __INTEL_COMPILER
10597 rm -f conftest.$ac_objext
10598 if { (eval echo "$as_me:10598: \"$ac_compile\"") >&5
10599 (eval $ac_compile) 2>&5
10601 echo "$as_me:10601: \$? = $ac_status" >&5
10602 (exit $ac_status); } &&
10603 { ac_try='test -s conftest.$ac_objext'
10604 { (eval echo "$as_me:10604: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10607 echo "$as_me:10607: \$? = $ac_status" >&5
10608 (exit $ac_status); }; }; then
10609 INTEL_CPLUSPLUS=yes
10610 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
10613 echo "$as_me: failed program was:" >&5
10614 cat conftest.$ac_ext >&5
10616 rm -f conftest.$ac_objext conftest.$ac_ext
10617 CXXFLAGS="$cf_save_CFLAGS"
10618 echo "$as_me:10618: result: $INTEL_CPLUSPLUS" >&5
10619 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
10625 ac_cpp='$CXXCPP $CPPFLAGS'
10626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10629 ac_main_return=return
10631 cat > conftest.$ac_ext <<EOF
10632 #line 10632 "configure"
10633 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
10636 if test "$INTEL_CPLUSPLUS" = yes
10638 # The "-wdXXX" options suppress warnings:
10639 # remark #1419: external declaration in primary source file
10640 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
10641 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
10642 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
10643 # remark #193: zero used for undefined preprocessing identifier
10644 # remark #593: variable "curs_sb_left_arrow" was set but never used
10645 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
10646 # remark #869: parameter "tw" was never referenced
10647 # remark #981: operands are evaluated in unspecified order
10648 # warning #269: invalid format string conversion
10650 { echo "$as_me:10650: checking for $CC warning options..." >&5
10651 echo "$as_me: checking for $CC warning options..." >&6;}
10652 cf_save_CXXFLAGS="$CXXFLAGS"
10653 EXTRA_CXXFLAGS="-Wall"
10666 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
10667 if { (eval echo "$as_me:10667: \"$ac_compile\"") >&5
10668 (eval $ac_compile) 2>&5
10670 echo "$as_me:10670: \$? = $ac_status" >&5
10671 (exit $ac_status); }; then
10672 test -n "$verbose" && echo "$as_me:10672: result: ... -$cf_opt" >&5
10673 echo "${ECHO_T}... -$cf_opt" >&6
10674 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
10677 CXXFLAGS="$cf_save_CXXFLAGS"
10679 elif test "$GXX" = yes
10681 { echo "$as_me:10681: checking for $CXX warning options..." >&5
10682 echo "$as_me: checking for $CXX warning options..." >&6;}
10683 cf_save_CXXFLAGS="$CXXFLAGS"
10684 EXTRA_CXXFLAGS="-W -Wall"
10685 cf_gxx_extra_warnings=""
10686 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
10687 case "$GCC_VERSION" in
10691 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
10697 Woverloaded-virtual \
10703 Wmissing-prototypes \
10706 Wstrict-prototypes \
10707 Wundef $cf_gxx_extra_warnings Wno-unused
10709 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
10710 if { (eval echo "$as_me:10710: \"$ac_compile\"") >&5
10711 (eval $ac_compile) 2>&5
10713 echo "$as_me:10713: \$? = $ac_status" >&5
10714 (exit $ac_status); }; then
10715 test -n "$verbose" && echo "$as_me:10715: result: ... -$cf_opt" >&5
10716 echo "${ECHO_T}... -$cf_opt" >&6
10717 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
10719 test -n "$verbose" && echo "$as_me:10719: result: ... no -$cf_opt" >&5
10720 echo "${ECHO_T}... no -$cf_opt" >&6
10723 CXXFLAGS="$cf_save_CXXFLAGS"
10728 ac_cpp='$CPP $CPPFLAGS'
10729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10732 ac_main_return=return
10737 if test "$GCC" = yes
10739 cat > conftest.i <<EOF
10741 #define GCC_PRINTF 0
10744 #define GCC_SCANF 0
10746 #ifndef GCC_NORETURN
10747 #define GCC_NORETURN /* nothing */
10750 #define GCC_UNUSED /* nothing */
10753 if test "$GCC" = yes
10755 { echo "$as_me:10755: checking for $CC __attribute__ directives..." >&5
10756 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
10757 cat > conftest.$ac_ext <<EOF
10758 #line 10758 "${as_me-configure}"
10759 #include "confdefs.h"
10760 #include "conftest.h"
10761 #include "conftest.i"
10763 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
10765 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
10768 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
10770 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
10772 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
10773 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
10774 extern void foo(void) GCC_NORETURN;
10775 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
10777 for cf_attribute in scanf printf unused noreturn
10780 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10782 cf_directive="__attribute__(($cf_attribute))"
10783 echo "checking for $CC $cf_directive" 1>&5
10784 case $cf_attribute in
10786 cat >conftest.h <<EOF
10787 #define GCC_$cf_ATTRIBUTE 1
10791 cat >conftest.h <<EOF
10792 #define GCC_$cf_ATTRIBUTE $cf_directive
10796 if { (eval echo "$as_me:10796: \"$ac_compile\"") >&5
10797 (eval $ac_compile) 2>&5
10799 echo "$as_me:10799: \$? = $ac_status" >&5
10800 (exit $ac_status); }; then
10801 test -n "$verbose" && echo "$as_me:10801: result: ... $cf_attribute" >&5
10802 echo "${ECHO_T}... $cf_attribute" >&6
10803 cat conftest.h >>confdefs.h
10807 fgrep define conftest.i >>confdefs.h
10812 ### use option --enable-assertions to turn on generation of assertion code
10813 echo "$as_me:10813: checking if you want to enable runtime assertions" >&5
10814 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
10816 # Check whether --enable-assertions or --disable-assertions was given.
10817 if test "${enable_assertions+set}" = set; then
10818 enableval="$enable_assertions"
10819 with_assertions=$enableval
10823 echo "$as_me:10823: result: $with_assertions" >&5
10824 echo "${ECHO_T}$with_assertions" >&6
10827 if test "$with_assertions" = no
10829 cat >>confdefs.h <<\EOF
10833 CPPFLAGS="$CPPFLAGS -DNDEBUG"
10835 ADAFLAGS="$ADAFLAGS -gnata"
10839 ### use option --disable-leaks to suppress "permanent" leaks, for testing
10841 echo "$as_me:10841: checking if you want to use dmalloc for testing" >&5
10842 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
10844 # Check whether --with-dmalloc or --without-dmalloc was given.
10845 if test "${with_dmalloc+set}" = set; then
10846 withval="$with_dmalloc"
10847 cat >>confdefs.h <<\EOF
10848 #define USE_DMALLOC 1
10851 : ${with_cflags:=-g}
10852 : ${with_no_leaks:=yes}
10857 echo "$as_me:10857: result: ${with_dmalloc:-no}" >&5
10858 echo "${ECHO_T}${with_dmalloc:-no}" >&6
10860 case .$with_cflags in #(vi
10862 case .$CFLAGS in #(vi
10870 cf_new_extra_cppflags=
10872 for cf_add_cflags in -g
10874 case $cf_fix_cppflags in
10876 case $cf_add_cflags in #(vi
10877 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10878 case $cf_add_cflags in
10880 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10882 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10883 && test -z "${cf_tst_cflags}" \
10884 && cf_fix_cppflags=yes
10886 if test $cf_fix_cppflags = yes ; then
10887 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10889 elif test "${cf_tst_cflags}" = "\"'" ; then
10890 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10895 case "$CPPFLAGS" in
10896 *$cf_add_cflags) #(vi
10899 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10904 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10909 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10911 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10913 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10914 && test -z "${cf_tst_cflags}" \
10915 && cf_fix_cppflags=no
10920 if test -n "$cf_new_cflags" ; then
10922 CFLAGS="$CFLAGS $cf_new_cflags"
10925 if test -n "$cf_new_cppflags" ; then
10927 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10930 if test -n "$cf_new_extra_cppflags" ; then
10932 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10940 if test "$with_dmalloc" = yes ; then
10941 echo "$as_me:10941: checking for dmalloc.h" >&5
10942 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
10943 if test "${ac_cv_header_dmalloc_h+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 cat >conftest.$ac_ext <<_ACEOF
10947 #line 10947 "configure"
10948 #include "confdefs.h"
10949 #include <dmalloc.h>
10951 if { (eval echo "$as_me:10951: \"$ac_cpp conftest.$ac_ext\"") >&5
10952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10954 egrep -v '^ *\+' conftest.er1 >conftest.err
10956 cat conftest.err >&5
10957 echo "$as_me:10957: \$? = $ac_status" >&5
10958 (exit $ac_status); } >/dev/null; then
10959 if test -s conftest.err; then
10960 ac_cpp_err=$ac_c_preproc_warn_flag
10967 if test -z "$ac_cpp_err"; then
10968 ac_cv_header_dmalloc_h=yes
10970 echo "$as_me: failed program was:" >&5
10971 cat conftest.$ac_ext >&5
10972 ac_cv_header_dmalloc_h=no
10974 rm -f conftest.err conftest.$ac_ext
10976 echo "$as_me:10976: result: $ac_cv_header_dmalloc_h" >&5
10977 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
10978 if test $ac_cv_header_dmalloc_h = yes; then
10980 echo "$as_me:10980: checking for dmalloc_debug in -ldmalloc" >&5
10981 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
10982 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10985 ac_check_lib_save_LIBS=$LIBS
10986 LIBS="-ldmalloc $LIBS"
10987 cat >conftest.$ac_ext <<_ACEOF
10988 #line 10988 "configure"
10989 #include "confdefs.h"
10991 /* Override any gcc2 internal prototype to avoid an error. */
10995 /* We use char because int might match the return type of a gcc2
10996 builtin and then its argument prototype would still apply. */
10997 char dmalloc_debug ();
11006 rm -f conftest.$ac_objext conftest$ac_exeext
11007 if { (eval echo "$as_me:11007: \"$ac_link\"") >&5
11008 (eval $ac_link) 2>&5
11010 echo "$as_me:11010: \$? = $ac_status" >&5
11011 (exit $ac_status); } &&
11012 { ac_try='test -s conftest$ac_exeext'
11013 { (eval echo "$as_me:11013: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11016 echo "$as_me:11016: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 ac_cv_lib_dmalloc_dmalloc_debug=yes
11020 echo "$as_me: failed program was:" >&5
11021 cat conftest.$ac_ext >&5
11022 ac_cv_lib_dmalloc_dmalloc_debug=no
11024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11025 LIBS=$ac_check_lib_save_LIBS
11027 echo "$as_me:11027: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
11028 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
11029 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
11030 cat >>confdefs.h <<EOF
11031 #define HAVE_LIBDMALLOC 1
11034 LIBS="-ldmalloc $LIBS"
11042 echo "$as_me:11042: checking if you want to use dbmalloc for testing" >&5
11043 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
11045 # Check whether --with-dbmalloc or --without-dbmalloc was given.
11046 if test "${with_dbmalloc+set}" = set; then
11047 withval="$with_dbmalloc"
11048 cat >>confdefs.h <<\EOF
11049 #define USE_DBMALLOC 1
11052 : ${with_cflags:=-g}
11053 : ${with_no_leaks:=yes}
11058 echo "$as_me:11058: result: ${with_dbmalloc:-no}" >&5
11059 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
11061 case .$with_cflags in #(vi
11063 case .$CFLAGS in #(vi
11071 cf_new_extra_cppflags=
11073 for cf_add_cflags in -g
11075 case $cf_fix_cppflags in
11077 case $cf_add_cflags in #(vi
11078 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11079 case $cf_add_cflags in
11081 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11083 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11084 && test -z "${cf_tst_cflags}" \
11085 && cf_fix_cppflags=yes
11087 if test $cf_fix_cppflags = yes ; then
11088 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11090 elif test "${cf_tst_cflags}" = "\"'" ; then
11091 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11096 case "$CPPFLAGS" in
11097 *$cf_add_cflags) #(vi
11100 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11105 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11110 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11112 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11114 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11115 && test -z "${cf_tst_cflags}" \
11116 && cf_fix_cppflags=no
11121 if test -n "$cf_new_cflags" ; then
11123 CFLAGS="$CFLAGS $cf_new_cflags"
11126 if test -n "$cf_new_cppflags" ; then
11128 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11131 if test -n "$cf_new_extra_cppflags" ; then
11133 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11141 if test "$with_dbmalloc" = yes ; then
11142 echo "$as_me:11142: checking for dbmalloc.h" >&5
11143 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
11144 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 cat >conftest.$ac_ext <<_ACEOF
11148 #line 11148 "configure"
11149 #include "confdefs.h"
11150 #include <dbmalloc.h>
11152 if { (eval echo "$as_me:11152: \"$ac_cpp conftest.$ac_ext\"") >&5
11153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11155 egrep -v '^ *\+' conftest.er1 >conftest.err
11157 cat conftest.err >&5
11158 echo "$as_me:11158: \$? = $ac_status" >&5
11159 (exit $ac_status); } >/dev/null; then
11160 if test -s conftest.err; then
11161 ac_cpp_err=$ac_c_preproc_warn_flag
11168 if test -z "$ac_cpp_err"; then
11169 ac_cv_header_dbmalloc_h=yes
11171 echo "$as_me: failed program was:" >&5
11172 cat conftest.$ac_ext >&5
11173 ac_cv_header_dbmalloc_h=no
11175 rm -f conftest.err conftest.$ac_ext
11177 echo "$as_me:11177: result: $ac_cv_header_dbmalloc_h" >&5
11178 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
11179 if test $ac_cv_header_dbmalloc_h = yes; then
11181 echo "$as_me:11181: checking for debug_malloc in -ldbmalloc" >&5
11182 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
11183 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 ac_check_lib_save_LIBS=$LIBS
11187 LIBS="-ldbmalloc $LIBS"
11188 cat >conftest.$ac_ext <<_ACEOF
11189 #line 11189 "configure"
11190 #include "confdefs.h"
11192 /* Override any gcc2 internal prototype to avoid an error. */
11196 /* We use char because int might match the return type of a gcc2
11197 builtin and then its argument prototype would still apply. */
11198 char debug_malloc ();
11207 rm -f conftest.$ac_objext conftest$ac_exeext
11208 if { (eval echo "$as_me:11208: \"$ac_link\"") >&5
11209 (eval $ac_link) 2>&5
11211 echo "$as_me:11211: \$? = $ac_status" >&5
11212 (exit $ac_status); } &&
11213 { ac_try='test -s conftest$ac_exeext'
11214 { (eval echo "$as_me:11214: \"$ac_try\"") >&5
11215 (eval $ac_try) 2>&5
11217 echo "$as_me:11217: \$? = $ac_status" >&5
11218 (exit $ac_status); }; }; then
11219 ac_cv_lib_dbmalloc_debug_malloc=yes
11221 echo "$as_me: failed program was:" >&5
11222 cat conftest.$ac_ext >&5
11223 ac_cv_lib_dbmalloc_debug_malloc=no
11225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11226 LIBS=$ac_check_lib_save_LIBS
11228 echo "$as_me:11228: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
11229 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
11230 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
11231 cat >>confdefs.h <<EOF
11232 #define HAVE_LIBDBMALLOC 1
11235 LIBS="-ldbmalloc $LIBS"
11243 echo "$as_me:11243: checking if you want to use valgrind for testing" >&5
11244 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
11246 # Check whether --with-valgrind or --without-valgrind was given.
11247 if test "${with_valgrind+set}" = set; then
11248 withval="$with_valgrind"
11249 cat >>confdefs.h <<\EOF
11250 #define USE_VALGRIND 1
11253 : ${with_cflags:=-g}
11254 : ${with_no_leaks:=yes}
11259 echo "$as_me:11259: result: ${with_valgrind:-no}" >&5
11260 echo "${ECHO_T}${with_valgrind:-no}" >&6
11262 case .$with_cflags in #(vi
11264 case .$CFLAGS in #(vi
11272 cf_new_extra_cppflags=
11274 for cf_add_cflags in -g
11276 case $cf_fix_cppflags in
11278 case $cf_add_cflags in #(vi
11279 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11280 case $cf_add_cflags in
11282 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11284 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11285 && test -z "${cf_tst_cflags}" \
11286 && cf_fix_cppflags=yes
11288 if test $cf_fix_cppflags = yes ; then
11289 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11291 elif test "${cf_tst_cflags}" = "\"'" ; then
11292 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11297 case "$CPPFLAGS" in
11298 *$cf_add_cflags) #(vi
11301 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11306 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11311 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11313 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11315 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11316 && test -z "${cf_tst_cflags}" \
11317 && cf_fix_cppflags=no
11322 if test -n "$cf_new_cflags" ; then
11324 CFLAGS="$CFLAGS $cf_new_cflags"
11327 if test -n "$cf_new_cppflags" ; then
11329 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11332 if test -n "$cf_new_extra_cppflags" ; then
11334 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11342 echo "$as_me:11342: checking if you want to perform memory-leak testing" >&5
11343 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
11345 # Check whether --enable-leaks or --disable-leaks was given.
11346 if test "${enable_leaks+set}" = set; then
11347 enableval="$enable_leaks"
11350 : ${with_no_leaks:=no}
11352 echo "$as_me:11352: result: $with_no_leaks" >&5
11353 echo "${ECHO_T}$with_no_leaks" >&6
11355 if test "$with_no_leaks" = yes ; then
11356 cat >>confdefs.h <<\EOF
11362 cat >>confdefs.h <<\EOF
11363 #define HAVE_NC_ALLOC_H 1
11366 ### use option --enable-expanded to generate certain macros as functions
11368 # Check whether --enable-expanded or --disable-expanded was given.
11369 if test "${enable_expanded+set}" = set; then
11370 enableval="$enable_expanded"
11371 test "$enableval" = yes && cat >>confdefs.h <<\EOF
11372 #define NCURSES_EXPANDED 1
11377 ### use option --disable-macros to suppress macros in favor of functions
11379 # Check whether --enable-macros or --disable-macros was given.
11380 if test "${enable_macros+set}" = set; then
11381 enableval="$enable_macros"
11382 test "$enableval" = no && cat >>confdefs.h <<\EOF
11383 #define NCURSES_NOMACROS 1
11388 # Normally we only add trace() to the debug-library. Allow this to be
11389 # extended to all models of the ncurses library:
11391 case "$CFLAGS $CPPFLAGS" in
11397 echo "$as_me:11397: checking whether to add trace feature to all models" >&5
11398 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
11400 # Check whether --with-trace or --without-trace was given.
11401 if test "${with_trace+set}" = set; then
11402 withval="$with_trace"
11403 cf_with_trace=$withval
11405 cf_with_trace=$cf_all_traces
11407 echo "$as_me:11407: result: $cf_with_trace" >&5
11408 echo "${ECHO_T}$cf_with_trace" >&6
11410 if test "$cf_with_trace" = yes ; then
11417 cf_new_extra_cppflags=
11419 for cf_add_cflags in -DTRACE
11421 case $cf_fix_cppflags in
11423 case $cf_add_cflags in #(vi
11424 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11425 case $cf_add_cflags in
11427 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11429 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11430 && test -z "${cf_tst_cflags}" \
11431 && cf_fix_cppflags=yes
11433 if test $cf_fix_cppflags = yes ; then
11434 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11436 elif test "${cf_tst_cflags}" = "\"'" ; then
11437 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11442 case "$CPPFLAGS" in
11443 *$cf_add_cflags) #(vi
11446 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11451 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11456 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11458 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11460 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11461 && test -z "${cf_tst_cflags}" \
11462 && cf_fix_cppflags=no
11467 if test -n "$cf_new_cflags" ; then
11469 CFLAGS="$CFLAGS $cf_new_cflags"
11472 if test -n "$cf_new_cppflags" ; then
11474 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11477 if test -n "$cf_new_extra_cppflags" ; then
11479 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11487 ### Checks for libraries.
11488 case $cf_cv_system_name in #(vi
11492 echo "$as_me:11492: checking for gettimeofday" >&5
11493 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
11494 if test "${ac_cv_func_gettimeofday+set}" = set; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 cat >conftest.$ac_ext <<_ACEOF
11498 #line 11498 "configure"
11499 #include "confdefs.h"
11500 /* System header to define __stub macros and hopefully few prototypes,
11501 which can conflict with char gettimeofday (); below. */
11502 #include <assert.h>
11503 /* Override any gcc2 internal prototype to avoid an error. */
11507 /* We use char because int might match the return type of a gcc2
11508 builtin and then its argument prototype would still apply. */
11509 char gettimeofday ();
11515 /* The GNU C library defines this for functions which it implements
11516 to always fail with ENOSYS. Some functions are actually named
11517 something starting with __ and the normal name is an alias. */
11518 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
11528 rm -f conftest.$ac_objext conftest$ac_exeext
11529 if { (eval echo "$as_me:11529: \"$ac_link\"") >&5
11530 (eval $ac_link) 2>&5
11532 echo "$as_me:11532: \$? = $ac_status" >&5
11533 (exit $ac_status); } &&
11534 { ac_try='test -s conftest$ac_exeext'
11535 { (eval echo "$as_me:11535: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11538 echo "$as_me:11538: \$? = $ac_status" >&5
11539 (exit $ac_status); }; }; then
11540 ac_cv_func_gettimeofday=yes
11542 echo "$as_me: failed program was:" >&5
11543 cat conftest.$ac_ext >&5
11544 ac_cv_func_gettimeofday=no
11546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11548 echo "$as_me:11548: result: $ac_cv_func_gettimeofday" >&5
11549 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
11550 if test $ac_cv_func_gettimeofday = yes; then
11551 cat >>confdefs.h <<\EOF
11552 #define HAVE_GETTIMEOFDAY 1
11557 echo "$as_me:11557: checking for gettimeofday in -lbsd" >&5
11558 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
11559 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11562 ac_check_lib_save_LIBS=$LIBS
11564 cat >conftest.$ac_ext <<_ACEOF
11565 #line 11565 "configure"
11566 #include "confdefs.h"
11568 /* Override any gcc2 internal prototype to avoid an error. */
11572 /* We use char because int might match the return type of a gcc2
11573 builtin and then its argument prototype would still apply. */
11574 char gettimeofday ();
11583 rm -f conftest.$ac_objext conftest$ac_exeext
11584 if { (eval echo "$as_me:11584: \"$ac_link\"") >&5
11585 (eval $ac_link) 2>&5
11587 echo "$as_me:11587: \$? = $ac_status" >&5
11588 (exit $ac_status); } &&
11589 { ac_try='test -s conftest$ac_exeext'
11590 { (eval echo "$as_me:11590: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11593 echo "$as_me:11593: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
11595 ac_cv_lib_bsd_gettimeofday=yes
11597 echo "$as_me: failed program was:" >&5
11598 cat conftest.$ac_ext >&5
11599 ac_cv_lib_bsd_gettimeofday=no
11601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11602 LIBS=$ac_check_lib_save_LIBS
11604 echo "$as_me:11604: result: $ac_cv_lib_bsd_gettimeofday" >&5
11605 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
11606 if test $ac_cv_lib_bsd_gettimeofday = yes; then
11607 cat >>confdefs.h <<\EOF
11608 #define HAVE_GETTIMEOFDAY 1
11618 echo "$as_me:11618: checking if -lm needed for math functions" >&5
11619 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
11620 if test "${cf_cv_need_libm+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 cat >conftest.$ac_ext <<_ACEOF
11625 #line 11625 "configure"
11626 #include "confdefs.h"
11634 double x = rand(); printf("result = %g\n", sin(x))
11639 rm -f conftest.$ac_objext conftest$ac_exeext
11640 if { (eval echo "$as_me:11640: \"$ac_link\"") >&5
11641 (eval $ac_link) 2>&5
11643 echo "$as_me:11643: \$? = $ac_status" >&5
11644 (exit $ac_status); } &&
11645 { ac_try='test -s conftest$ac_exeext'
11646 { (eval echo "$as_me:11646: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11649 echo "$as_me:11649: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11653 echo "$as_me: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11655 cf_cv_need_libm=yes
11657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11659 echo "$as_me:11659: result: $cf_cv_need_libm" >&5
11660 echo "${ECHO_T}$cf_cv_need_libm" >&6
11661 if test "$cf_cv_need_libm" = yes
11666 ### Checks for header files.
11667 echo "$as_me:11667: checking for ANSI C header files" >&5
11668 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11669 if test "${ac_cv_header_stdc+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 cat >conftest.$ac_ext <<_ACEOF
11673 #line 11673 "configure"
11674 #include "confdefs.h"
11675 #include <stdlib.h>
11676 #include <stdarg.h>
11677 #include <string.h>
11681 if { (eval echo "$as_me:11681: \"$ac_cpp conftest.$ac_ext\"") >&5
11682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11684 egrep -v '^ *\+' conftest.er1 >conftest.err
11686 cat conftest.err >&5
11687 echo "$as_me:11687: \$? = $ac_status" >&5
11688 (exit $ac_status); } >/dev/null; then
11689 if test -s conftest.err; then
11690 ac_cpp_err=$ac_c_preproc_warn_flag
11697 if test -z "$ac_cpp_err"; then
11698 ac_cv_header_stdc=yes
11700 echo "$as_me: failed program was:" >&5
11701 cat conftest.$ac_ext >&5
11702 ac_cv_header_stdc=no
11704 rm -f conftest.err conftest.$ac_ext
11706 if test $ac_cv_header_stdc = yes; then
11707 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11708 cat >conftest.$ac_ext <<_ACEOF
11709 #line 11709 "configure"
11710 #include "confdefs.h"
11711 #include <string.h>
11714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11715 egrep "memchr" >/dev/null 2>&1; then
11718 ac_cv_header_stdc=no
11724 if test $ac_cv_header_stdc = yes; then
11725 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11726 cat >conftest.$ac_ext <<_ACEOF
11727 #line 11727 "configure"
11728 #include "confdefs.h"
11729 #include <stdlib.h>
11732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11733 egrep "free" >/dev/null 2>&1; then
11736 ac_cv_header_stdc=no
11742 if test $ac_cv_header_stdc = yes; then
11743 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11744 if test "$cross_compiling" = yes; then
11747 cat >conftest.$ac_ext <<_ACEOF
11748 #line 11748 "configure"
11749 #include "confdefs.h"
11751 #if ((' ' & 0x0FF) == 0x020)
11752 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11753 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11755 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11756 || ('j' <= (c) && (c) <= 'r') \
11757 || ('s' <= (c) && (c) <= 'z'))
11758 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11761 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11766 for (i = 0; i < 256; i++)
11767 if (XOR (islower (i), ISLOWER (i))
11768 || toupper (i) != TOUPPER (i))
11769 $ac_main_return(2);
11770 $ac_main_return (0);
11773 rm -f conftest$ac_exeext
11774 if { (eval echo "$as_me:11774: \"$ac_link\"") >&5
11775 (eval $ac_link) 2>&5
11777 echo "$as_me:11777: \$? = $ac_status" >&5
11778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11779 { (eval echo "$as_me:11779: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11782 echo "$as_me:11782: \$? = $ac_status" >&5
11783 (exit $ac_status); }; }; then
11786 echo "$as_me: program exited with status $ac_status" >&5
11787 echo "$as_me: failed program was:" >&5
11788 cat conftest.$ac_ext >&5
11789 ac_cv_header_stdc=no
11791 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11795 echo "$as_me:11795: result: $ac_cv_header_stdc" >&5
11796 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11797 if test $ac_cv_header_stdc = yes; then
11799 cat >>confdefs.h <<\EOF
11800 #define STDC_HEADERS 1
11805 ac_header_dirent=no
11806 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11807 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11808 echo "$as_me:11808: checking for $ac_hdr that defines DIR" >&5
11809 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 cat >conftest.$ac_ext <<_ACEOF
11814 #line 11814 "configure"
11815 #include "confdefs.h"
11816 #include <sys/types.h>
11828 rm -f conftest.$ac_objext
11829 if { (eval echo "$as_me:11829: \"$ac_compile\"") >&5
11830 (eval $ac_compile) 2>&5
11832 echo "$as_me:11832: \$? = $ac_status" >&5
11833 (exit $ac_status); } &&
11834 { ac_try='test -s conftest.$ac_objext'
11835 { (eval echo "$as_me:11835: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11838 echo "$as_me:11838: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 eval "$as_ac_Header=yes"
11842 echo "$as_me: failed program was:" >&5
11843 cat conftest.$ac_ext >&5
11844 eval "$as_ac_Header=no"
11846 rm -f conftest.$ac_objext conftest.$ac_ext
11848 echo "$as_me:11848: result: `eval echo '${'$as_ac_Header'}'`" >&5
11849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11851 cat >>confdefs.h <<EOF
11852 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11855 ac_header_dirent=$ac_hdr; break
11859 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11860 if test $ac_header_dirent = dirent.h; then
11861 echo "$as_me:11861: checking for opendir in -ldir" >&5
11862 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
11863 if test "${ac_cv_lib_dir_opendir+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 ac_check_lib_save_LIBS=$LIBS
11868 cat >conftest.$ac_ext <<_ACEOF
11869 #line 11869 "configure"
11870 #include "confdefs.h"
11872 /* Override any gcc2 internal prototype to avoid an error. */
11876 /* We use char because int might match the return type of a gcc2
11877 builtin and then its argument prototype would still apply. */
11887 rm -f conftest.$ac_objext conftest$ac_exeext
11888 if { (eval echo "$as_me:11888: \"$ac_link\"") >&5
11889 (eval $ac_link) 2>&5
11891 echo "$as_me:11891: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:11894: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:11897: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_lib_dir_opendir=yes
11901 echo "$as_me: failed program was:" >&5
11902 cat conftest.$ac_ext >&5
11903 ac_cv_lib_dir_opendir=no
11905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11906 LIBS=$ac_check_lib_save_LIBS
11908 echo "$as_me:11908: result: $ac_cv_lib_dir_opendir" >&5
11909 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
11910 if test $ac_cv_lib_dir_opendir = yes; then
11915 echo "$as_me:11915: checking for opendir in -lx" >&5
11916 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
11917 if test "${ac_cv_lib_x_opendir+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 ac_check_lib_save_LIBS=$LIBS
11922 cat >conftest.$ac_ext <<_ACEOF
11923 #line 11923 "configure"
11924 #include "confdefs.h"
11926 /* Override any gcc2 internal prototype to avoid an error. */
11930 /* We use char because int might match the return type of a gcc2
11931 builtin and then its argument prototype would still apply. */
11941 rm -f conftest.$ac_objext conftest$ac_exeext
11942 if { (eval echo "$as_me:11942: \"$ac_link\"") >&5
11943 (eval $ac_link) 2>&5
11945 echo "$as_me:11945: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -s conftest$ac_exeext'
11948 { (eval echo "$as_me:11948: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11951 echo "$as_me:11951: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 ac_cv_lib_x_opendir=yes
11955 echo "$as_me: failed program was:" >&5
11956 cat conftest.$ac_ext >&5
11957 ac_cv_lib_x_opendir=no
11959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11960 LIBS=$ac_check_lib_save_LIBS
11962 echo "$as_me:11962: result: $ac_cv_lib_x_opendir" >&5
11963 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
11964 if test $ac_cv_lib_x_opendir = yes; then
11970 echo "$as_me:11970: checking whether time.h and sys/time.h may both be included" >&5
11971 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11972 if test "${ac_cv_header_time+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11975 cat >conftest.$ac_ext <<_ACEOF
11976 #line 11976 "configure"
11977 #include "confdefs.h"
11978 #include <sys/types.h>
11979 #include <sys/time.h>
11985 if ((struct tm *) 0)
11991 rm -f conftest.$ac_objext
11992 if { (eval echo "$as_me:11992: \"$ac_compile\"") >&5
11993 (eval $ac_compile) 2>&5
11995 echo "$as_me:11995: \$? = $ac_status" >&5
11996 (exit $ac_status); } &&
11997 { ac_try='test -s conftest.$ac_objext'
11998 { (eval echo "$as_me:11998: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12001 echo "$as_me:12001: \$? = $ac_status" >&5
12002 (exit $ac_status); }; }; then
12003 ac_cv_header_time=yes
12005 echo "$as_me: failed program was:" >&5
12006 cat conftest.$ac_ext >&5
12007 ac_cv_header_time=no
12009 rm -f conftest.$ac_objext conftest.$ac_ext
12011 echo "$as_me:12011: result: $ac_cv_header_time" >&5
12012 echo "${ECHO_T}$ac_cv_header_time" >&6
12013 if test $ac_cv_header_time = yes; then
12015 cat >>confdefs.h <<\EOF
12016 #define TIME_WITH_SYS_TIME 1
12021 echo "$as_me:12021: checking for regular-expression headers" >&5
12022 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
12023 if test "${cf_cv_regex+set}" = set; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12027 cat >conftest.$ac_ext <<_ACEOF
12028 #line 12028 "configure"
12029 #include "confdefs.h"
12030 #include <sys/types.h>
12037 int x = regcomp(p, "", 0);
12038 int y = regexec(p, "", 0, 0, 0);
12045 rm -f conftest.$ac_objext conftest$ac_exeext
12046 if { (eval echo "$as_me:12046: \"$ac_link\"") >&5
12047 (eval $ac_link) 2>&5
12049 echo "$as_me:12049: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try='test -s conftest$ac_exeext'
12052 { (eval echo "$as_me:12052: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12055 echo "$as_me:12055: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 cf_cv_regex="regex.h"
12059 echo "$as_me: failed program was:" >&5
12060 cat conftest.$ac_ext >&5
12062 cat >conftest.$ac_ext <<_ACEOF
12063 #line 12063 "configure"
12064 #include "confdefs.h"
12065 #include <regexp.h>
12070 char *p = compile("", "", "", 0);
12071 int x = step("", "");
12077 rm -f conftest.$ac_objext conftest$ac_exeext
12078 if { (eval echo "$as_me:12078: \"$ac_link\"") >&5
12079 (eval $ac_link) 2>&5
12081 echo "$as_me:12081: \$? = $ac_status" >&5
12082 (exit $ac_status); } &&
12083 { ac_try='test -s conftest$ac_exeext'
12084 { (eval echo "$as_me:12084: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12087 echo "$as_me:12087: \$? = $ac_status" >&5
12088 (exit $ac_status); }; }; then
12089 cf_cv_regex="regexp.h"
12091 echo "$as_me: failed program was:" >&5
12092 cat conftest.$ac_ext >&5
12094 cf_save_LIBS="$LIBS"
12096 cat >conftest.$ac_ext <<_ACEOF
12097 #line 12097 "configure"
12098 #include "confdefs.h"
12099 #include <regexpr.h>
12104 char *p = compile("", "", "");
12105 int x = step("", "");
12111 rm -f conftest.$ac_objext conftest$ac_exeext
12112 if { (eval echo "$as_me:12112: \"$ac_link\"") >&5
12113 (eval $ac_link) 2>&5
12115 echo "$as_me:12115: \$? = $ac_status" >&5
12116 (exit $ac_status); } &&
12117 { ac_try='test -s conftest$ac_exeext'
12118 { (eval echo "$as_me:12118: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12121 echo "$as_me:12121: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 cf_cv_regex="regexpr.h"
12125 echo "$as_me: failed program was:" >&5
12126 cat conftest.$ac_ext >&5
12127 LIBS="$cf_save_LIBS"
12129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12137 echo "$as_me:12137: result: $cf_cv_regex" >&5
12138 echo "${ECHO_T}$cf_cv_regex" >&6
12139 case $cf_cv_regex in
12140 regex.h) cat >>confdefs.h <<\EOF
12141 #define HAVE_REGEX_H_FUNCS 1
12144 regexp.h) cat >>confdefs.h <<\EOF
12145 #define HAVE_REGEXP_H_FUNCS 1
12148 regexpr.h) cat >>confdefs.h <<\EOF
12149 #define HAVE_REGEXPR_H_FUNCS 1
12172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12173 echo "$as_me:12173: checking for $ac_header" >&5
12174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 cat >conftest.$ac_ext <<_ACEOF
12179 #line 12179 "configure"
12180 #include "confdefs.h"
12181 #include <$ac_header>
12183 if { (eval echo "$as_me:12183: \"$ac_cpp conftest.$ac_ext\"") >&5
12184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12186 egrep -v '^ *\+' conftest.er1 >conftest.err
12188 cat conftest.err >&5
12189 echo "$as_me:12189: \$? = $ac_status" >&5
12190 (exit $ac_status); } >/dev/null; then
12191 if test -s conftest.err; then
12192 ac_cpp_err=$ac_c_preproc_warn_flag
12199 if test -z "$ac_cpp_err"; then
12200 eval "$as_ac_Header=yes"
12202 echo "$as_me: failed program was:" >&5
12203 cat conftest.$ac_ext >&5
12204 eval "$as_ac_Header=no"
12206 rm -f conftest.err conftest.$ac_ext
12208 echo "$as_me:12208: result: `eval echo '${'$as_ac_Header'}'`" >&5
12209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12211 cat >>confdefs.h <<EOF
12212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12218 # check for ISC (this may also define _POSIX_SOURCE)
12219 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
12220 if test "$ISC" = yes ; then
12222 echo "$as_me:12222: checking for main in -lcposix" >&5
12223 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
12224 if test "${ac_cv_lib_cposix_main+set}" = set; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 ac_check_lib_save_LIBS=$LIBS
12228 LIBS="-lcposix $LIBS"
12229 cat >conftest.$ac_ext <<_ACEOF
12230 #line 12230 "configure"
12231 #include "confdefs.h"
12241 rm -f conftest.$ac_objext conftest$ac_exeext
12242 if { (eval echo "$as_me:12242: \"$ac_link\"") >&5
12243 (eval $ac_link) 2>&5
12245 echo "$as_me:12245: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try='test -s conftest$ac_exeext'
12248 { (eval echo "$as_me:12248: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12251 echo "$as_me:12251: \$? = $ac_status" >&5
12252 (exit $ac_status); }; }; then
12253 ac_cv_lib_cposix_main=yes
12255 echo "$as_me: failed program was:" >&5
12256 cat conftest.$ac_ext >&5
12257 ac_cv_lib_cposix_main=no
12259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12260 LIBS=$ac_check_lib_save_LIBS
12262 echo "$as_me:12262: result: $ac_cv_lib_cposix_main" >&5
12263 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
12264 if test $ac_cv_lib_cposix_main = yes; then
12265 cat >>confdefs.h <<EOF
12266 #define HAVE_LIBCPOSIX 1
12269 LIBS="-lcposix $LIBS"
12273 echo "$as_me:12273: checking for bzero in -linet" >&5
12274 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
12275 if test "${ac_cv_lib_inet_bzero+set}" = set; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12278 ac_check_lib_save_LIBS=$LIBS
12279 LIBS="-linet $LIBS"
12280 cat >conftest.$ac_ext <<_ACEOF
12281 #line 12281 "configure"
12282 #include "confdefs.h"
12284 /* Override any gcc2 internal prototype to avoid an error. */
12288 /* We use char because int might match the return type of a gcc2
12289 builtin and then its argument prototype would still apply. */
12299 rm -f conftest.$ac_objext conftest$ac_exeext
12300 if { (eval echo "$as_me:12300: \"$ac_link\"") >&5
12301 (eval $ac_link) 2>&5
12303 echo "$as_me:12303: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try='test -s conftest$ac_exeext'
12306 { (eval echo "$as_me:12306: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12309 echo "$as_me:12309: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 ac_cv_lib_inet_bzero=yes
12313 echo "$as_me: failed program was:" >&5
12314 cat conftest.$ac_ext >&5
12315 ac_cv_lib_inet_bzero=no
12317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12318 LIBS=$ac_check_lib_save_LIBS
12320 echo "$as_me:12320: result: $ac_cv_lib_inet_bzero" >&5
12321 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
12322 if test $ac_cv_lib_inet_bzero = yes; then
12323 LIBS="$LIBS -linet"
12327 echo "$as_me:12327: checking if sys/time.h works with sys/select.h" >&5
12328 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
12329 if test "${cf_cv_sys_time_select+set}" = set; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12333 cat >conftest.$ac_ext <<_ACEOF
12334 #line 12334 "configure"
12335 #include "confdefs.h"
12337 #include <sys/types.h>
12338 #ifdef HAVE_SYS_TIME_H
12339 #include <sys/time.h>
12341 #ifdef HAVE_SYS_SELECT_H
12342 #include <sys/select.h>
12353 rm -f conftest.$ac_objext
12354 if { (eval echo "$as_me:12354: \"$ac_compile\"") >&5
12355 (eval $ac_compile) 2>&5
12357 echo "$as_me:12357: \$? = $ac_status" >&5
12358 (exit $ac_status); } &&
12359 { ac_try='test -s conftest.$ac_objext'
12360 { (eval echo "$as_me:12360: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12363 echo "$as_me:12363: \$? = $ac_status" >&5
12364 (exit $ac_status); }; }; then
12365 cf_cv_sys_time_select=yes
12367 echo "$as_me: failed program was:" >&5
12368 cat conftest.$ac_ext >&5
12369 cf_cv_sys_time_select=no
12371 rm -f conftest.$ac_objext conftest.$ac_ext
12375 echo "$as_me:12375: result: $cf_cv_sys_time_select" >&5
12376 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
12377 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
12378 #define HAVE_SYS_TIME_SELECT 1
12381 ### checks for compiler characteristics
12383 ac_cpp='$CPP $CPPFLAGS'
12384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12387 ac_main_return=return
12389 echo "$as_me:12389: checking for $CC option to accept ANSI C" >&5
12390 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12391 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 ac_cv_prog_cc_stdc=no
12396 cat >conftest.$ac_ext <<_ACEOF
12397 #line 12397 "configure"
12398 #include "confdefs.h"
12399 #include <stdarg.h>
12401 #include <sys/types.h>
12402 #include <sys/stat.h>
12403 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12404 struct buf { int x; };
12405 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12406 static char *e (p, i)
12412 static char *f (char * (*g) (char **, int), char **p, ...)
12417 s = g (p, va_arg (v,int));
12421 int test (int i, double x);
12422 struct s1 {int (*f) (int a);};
12423 struct s2 {int (*f) (double a);};
12424 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12430 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12435 # Don't try gcc -ansi; that turns off useful extensions and
12436 # breaks some systems' header files.
12437 # AIX -qlanglvl=ansi
12438 # Ultrix and OSF/1 -std1
12439 # HP-UX 10.20 and later -Ae
12440 # HP-UX older versions -Aa -D_HPUX_SOURCE
12441 # SVR4 -Xc -D__EXTENSIONS__
12442 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12444 CC="$ac_save_CC $ac_arg"
12445 rm -f conftest.$ac_objext
12446 if { (eval echo "$as_me:12446: \"$ac_compile\"") >&5
12447 (eval $ac_compile) 2>&5
12449 echo "$as_me:12449: \$? = $ac_status" >&5
12450 (exit $ac_status); } &&
12451 { ac_try='test -s conftest.$ac_objext'
12452 { (eval echo "$as_me:12452: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12455 echo "$as_me:12455: \$? = $ac_status" >&5
12456 (exit $ac_status); }; }; then
12457 ac_cv_prog_cc_stdc=$ac_arg
12460 echo "$as_me: failed program was:" >&5
12461 cat conftest.$ac_ext >&5
12463 rm -f conftest.$ac_objext
12465 rm -f conftest.$ac_ext conftest.$ac_objext
12470 case "x$ac_cv_prog_cc_stdc" in
12472 echo "$as_me:12472: result: none needed" >&5
12473 echo "${ECHO_T}none needed" >&6 ;;
12475 echo "$as_me:12475: result: $ac_cv_prog_cc_stdc" >&5
12476 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12477 CC="$CC $ac_cv_prog_cc_stdc" ;;
12480 echo "$as_me:12480: checking for an ANSI C-conforming const" >&5
12481 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12482 if test "${ac_cv_c_const+set}" = set; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 cat >conftest.$ac_ext <<_ACEOF
12486 #line 12486 "configure"
12487 #include "confdefs.h"
12492 /* FIXME: Include the comments suggested by Paul. */
12493 #ifndef __cplusplus
12494 /* Ultrix mips cc rejects this. */
12495 typedef int charset[2];
12497 /* SunOS 4.1.1 cc rejects this. */
12498 char const *const *ccp;
12500 /* NEC SVR4.0.2 mips cc rejects this. */
12501 struct point {int x, y;};
12502 static struct point const zero = {0,0};
12503 /* AIX XL C 1.02.0.0 rejects this.
12504 It does not let you subtract one const X* pointer from another in
12505 an arm of an if-expression whose if-part is not a constant
12507 const char *g = "string";
12508 ccp = &g + (g ? g-g : 0);
12509 /* HPUX 7.0 cc rejects these. */
12512 ccp = (char const *const *) p;
12513 { /* SCO 3.2v4 cc rejects this. */
12515 char const *s = 0 ? (char *) 0 : (char const *) 0;
12519 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12520 int x[] = {25, 17};
12521 const int *foo = &x[0];
12524 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12525 typedef const int *iptr;
12529 { /* AIX XL C 1.02.0.0 rejects this saying
12530 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12531 struct s { int j; const int *ap[3]; };
12532 struct s *b; b->j = 5;
12534 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12535 const int foo = 10;
12543 rm -f conftest.$ac_objext
12544 if { (eval echo "$as_me:12544: \"$ac_compile\"") >&5
12545 (eval $ac_compile) 2>&5
12547 echo "$as_me:12547: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try='test -s conftest.$ac_objext'
12550 { (eval echo "$as_me:12550: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12553 echo "$as_me:12553: \$? = $ac_status" >&5
12554 (exit $ac_status); }; }; then
12557 echo "$as_me: failed program was:" >&5
12558 cat conftest.$ac_ext >&5
12561 rm -f conftest.$ac_objext conftest.$ac_ext
12563 echo "$as_me:12563: result: $ac_cv_c_const" >&5
12564 echo "${ECHO_T}$ac_cv_c_const" >&6
12565 if test $ac_cv_c_const = no; then
12567 cat >>confdefs.h <<\EOF
12573 echo "$as_me:12573: checking for inline" >&5
12574 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12575 if test "${ac_cv_c_inline+set}" = set; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 for ac_kw in inline __inline__ __inline; do
12580 cat >conftest.$ac_ext <<_ACEOF
12581 #line 12581 "configure"
12582 #include "confdefs.h"
12583 #ifndef __cplusplus
12584 static $ac_kw int static_foo () {return 0; }
12585 $ac_kw int foo () {return 0; }
12589 rm -f conftest.$ac_objext
12590 if { (eval echo "$as_me:12590: \"$ac_compile\"") >&5
12591 (eval $ac_compile) 2>&5
12593 echo "$as_me:12593: \$? = $ac_status" >&5
12594 (exit $ac_status); } &&
12595 { ac_try='test -s conftest.$ac_objext'
12596 { (eval echo "$as_me:12596: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12599 echo "$as_me:12599: \$? = $ac_status" >&5
12600 (exit $ac_status); }; }; then
12601 ac_cv_c_inline=$ac_kw; break
12603 echo "$as_me: failed program was:" >&5
12604 cat conftest.$ac_ext >&5
12606 rm -f conftest.$ac_objext conftest.$ac_ext
12610 echo "$as_me:12610: result: $ac_cv_c_inline" >&5
12611 echo "${ECHO_T}$ac_cv_c_inline" >&6
12612 case $ac_cv_c_inline in
12615 cat >>confdefs.h <<\EOF
12619 *) cat >>confdefs.h <<EOF
12620 #define inline $ac_cv_c_inline
12626 if test "$ac_cv_c_inline" != no ; then
12627 NCURSES_INLINE=inline
12628 if test "$INTEL_COMPILER" = yes
12631 elif test "$GCC" = yes
12633 echo "$as_me:12633: checking if gcc supports options to tune inlining" >&5
12634 echo $ECHO_N "checking if gcc supports options to tune inlining... $ECHO_C" >&6
12635 if test "${cf_cv_gcc_inline+set}" = set; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12639 cf_save_CFLAGS=$CFLAGS
12640 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
12641 cat >conftest.$ac_ext <<_ACEOF
12642 #line 12642 "configure"
12643 #include "confdefs.h"
12644 inline int foo(void) { return 1; }
12648 ${cf_cv_main_return:-return} foo()
12653 rm -f conftest.$ac_objext
12654 if { (eval echo "$as_me:12654: \"$ac_compile\"") >&5
12655 (eval $ac_compile) 2>&5
12657 echo "$as_me:12657: \$? = $ac_status" >&5
12658 (exit $ac_status); } &&
12659 { ac_try='test -s conftest.$ac_objext'
12660 { (eval echo "$as_me:12660: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12663 echo "$as_me:12663: \$? = $ac_status" >&5
12664 (exit $ac_status); }; }; then
12665 cf_cv_gcc_inline=yes
12667 echo "$as_me: failed program was:" >&5
12668 cat conftest.$ac_ext >&5
12669 cf_cv_gcc_inline=no
12671 rm -f conftest.$ac_objext conftest.$ac_ext
12672 CFLAGS=$cf_save_CFLAGS
12675 echo "$as_me:12675: result: $cf_cv_gcc_inline" >&5
12676 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
12677 if test "$cf_cv_gcc_inline" = yes ; then
12682 cf_new_extra_cppflags=
12684 for cf_add_cflags in --param max-inline-insns-single=1200
12686 case $cf_fix_cppflags in
12688 case $cf_add_cflags in #(vi
12689 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12690 case $cf_add_cflags in
12692 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12694 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12695 && test -z "${cf_tst_cflags}" \
12696 && cf_fix_cppflags=yes
12698 if test $cf_fix_cppflags = yes ; then
12699 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12701 elif test "${cf_tst_cflags}" = "\"'" ; then
12702 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12707 case "$CPPFLAGS" in
12708 *$cf_add_cflags) #(vi
12711 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12716 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12721 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12723 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12725 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12726 && test -z "${cf_tst_cflags}" \
12727 && cf_fix_cppflags=no
12732 if test -n "$cf_new_cflags" ; then
12734 CFLAGS="$CFLAGS $cf_new_cflags"
12737 if test -n "$cf_new_cppflags" ; then
12739 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12742 if test -n "$cf_new_extra_cppflags" ; then
12744 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12751 echo "$as_me:12751: checking for signal global datatype" >&5
12752 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
12753 if test "${cf_cv_sig_atomic_t+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12758 "volatile sig_atomic_t" \
12762 cat >conftest.$ac_ext <<_ACEOF
12763 #line 12763 "configure"
12764 #include "confdefs.h"
12766 #include <sys/types.h>
12767 #include <signal.h>
12772 static void handler(int sig)
12779 signal(SIGINT, handler);
12785 rm -f conftest.$ac_objext
12786 if { (eval echo "$as_me:12786: \"$ac_compile\"") >&5
12787 (eval $ac_compile) 2>&5
12789 echo "$as_me:12789: \$? = $ac_status" >&5
12790 (exit $ac_status); } &&
12791 { ac_try='test -s conftest.$ac_objext'
12792 { (eval echo "$as_me:12792: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12795 echo "$as_me:12795: \$? = $ac_status" >&5
12796 (exit $ac_status); }; }; then
12797 cf_cv_sig_atomic_t=$cf_type
12799 echo "$as_me: failed program was:" >&5
12800 cat conftest.$ac_ext >&5
12801 cf_cv_sig_atomic_t=no
12803 rm -f conftest.$ac_objext conftest.$ac_ext
12804 test "$cf_cv_sig_atomic_t" != no && break
12809 echo "$as_me:12809: result: $cf_cv_sig_atomic_t" >&5
12810 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
12811 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
12812 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
12815 if test $NCURSES_CHTYPE = auto ; then
12817 echo "$as_me:12817: checking for type of chtype" >&5
12818 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
12819 if test "${cf_cv_typeof_chtype+set}" = set; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 if test "$cross_compiling" = yes; then
12824 cf_cv_typeof_chtype=long
12826 cat >conftest.$ac_ext <<_ACEOF
12827 #line 12827 "configure"
12828 #include "confdefs.h"
12830 #define WANT_BITS 31
12834 FILE *fp = fopen("cf_test.out", "w");
12836 char *result = "long";
12837 if (sizeof(unsigned long) > sizeof(unsigned int)) {
12840 for (n = 0; n < WANT_BITS; n++) {
12843 if (y != 1 || x == 0) {
12849 * If x is nonzero, an int is big enough for the bits
12852 result = (x != 0) ? "int" : "long";
12857 ${cf_cv_main_return:-return}(0);
12861 rm -f conftest$ac_exeext
12862 if { (eval echo "$as_me:12862: \"$ac_link\"") >&5
12863 (eval $ac_link) 2>&5
12865 echo "$as_me:12865: \$? = $ac_status" >&5
12866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12867 { (eval echo "$as_me:12867: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12870 echo "$as_me:12870: \$? = $ac_status" >&5
12871 (exit $ac_status); }; }; then
12872 cf_cv_typeof_chtype=`cat cf_test.out`
12874 echo "$as_me: program exited with status $ac_status" >&5
12875 echo "$as_me: failed program was:" >&5
12876 cat conftest.$ac_ext >&5
12877 cf_cv_typeof_chtype=long
12879 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12885 echo "$as_me:12885: result: $cf_cv_typeof_chtype" >&5
12886 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
12888 cat >>confdefs.h <<EOF
12889 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
12893 cf_cv_typeof_chtype=$NCURSES_CHTYPE
12895 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
12897 echo "$as_me:12897: checking if unsigned literals are legal" >&5
12898 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
12899 if test "${cf_cv_unsigned_literals+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 cat >conftest.$ac_ext <<_ACEOF
12904 #line 12904 "configure"
12905 #include "confdefs.h"
12910 long x = 1L + 1UL + 1U + 1
12915 rm -f conftest.$ac_objext
12916 if { (eval echo "$as_me:12916: \"$ac_compile\"") >&5
12917 (eval $ac_compile) 2>&5
12919 echo "$as_me:12919: \$? = $ac_status" >&5
12920 (exit $ac_status); } &&
12921 { ac_try='test -s conftest.$ac_objext'
12922 { (eval echo "$as_me:12922: \"$ac_try\"") >&5
12923 (eval $ac_try) 2>&5
12925 echo "$as_me:12925: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12927 cf_cv_unsigned_literals=yes
12929 echo "$as_me: failed program was:" >&5
12930 cat conftest.$ac_ext >&5
12931 cf_cv_unsigned_literals=no
12933 rm -f conftest.$ac_objext conftest.$ac_ext
12937 echo "$as_me:12937: result: $cf_cv_unsigned_literals" >&5
12938 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
12941 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
12942 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
12944 if test $NCURSES_MMASK_T = auto ; then
12945 cf_cv_typeof_mmask_t=long
12947 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
12949 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
12951 ### Checks for external-data
12953 echo "$as_me:12953: checking if external errno is declared" >&5
12954 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
12955 if test "${cf_cv_dcl_errno+set}" = set; then
12956 echo $ECHO_N "(cached) $ECHO_C" >&6
12959 cat >conftest.$ac_ext <<_ACEOF
12960 #line 12960 "configure"
12961 #include "confdefs.h"
12963 #ifdef HAVE_STDLIB_H
12964 #include <stdlib.h>
12967 #include <sys/types.h>
12972 int x = (int) errno
12977 rm -f conftest.$ac_objext
12978 if { (eval echo "$as_me:12978: \"$ac_compile\"") >&5
12979 (eval $ac_compile) 2>&5
12981 echo "$as_me:12981: \$? = $ac_status" >&5
12982 (exit $ac_status); } &&
12983 { ac_try='test -s conftest.$ac_objext'
12984 { (eval echo "$as_me:12984: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12987 echo "$as_me:12987: \$? = $ac_status" >&5
12988 (exit $ac_status); }; }; then
12989 cf_cv_dcl_errno=yes
12991 echo "$as_me: failed program was:" >&5
12992 cat conftest.$ac_ext >&5
12995 rm -f conftest.$ac_objext conftest.$ac_ext
12998 echo "$as_me:12998: result: $cf_cv_dcl_errno" >&5
12999 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
13001 if test "$cf_cv_dcl_errno" = no ; then
13003 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13005 cat >>confdefs.h <<EOF
13006 #define $cf_result 1
13011 # It's possible (for near-UNIX clones) that the data doesn't exist
13013 echo "$as_me:13013: checking if external errno exists" >&5
13014 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
13015 if test "${cf_cv_have_errno+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13019 cat >conftest.$ac_ext <<_ACEOF
13020 #line 13020 "configure"
13021 #include "confdefs.h"
13034 rm -f conftest.$ac_objext conftest$ac_exeext
13035 if { (eval echo "$as_me:13035: \"$ac_link\"") >&5
13036 (eval $ac_link) 2>&5
13038 echo "$as_me:13038: \$? = $ac_status" >&5
13039 (exit $ac_status); } &&
13040 { ac_try='test -s conftest$ac_exeext'
13041 { (eval echo "$as_me:13041: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13044 echo "$as_me:13044: \$? = $ac_status" >&5
13045 (exit $ac_status); }; }; then
13046 cf_cv_have_errno=yes
13048 echo "$as_me: failed program was:" >&5
13049 cat conftest.$ac_ext >&5
13050 cf_cv_have_errno=no
13052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13055 echo "$as_me:13055: result: $cf_cv_have_errno" >&5
13056 echo "${ECHO_T}$cf_cv_have_errno" >&6
13058 if test "$cf_cv_have_errno" = yes ; then
13060 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13062 cat >>confdefs.h <<EOF
13063 #define $cf_result 1
13068 echo "$as_me:13068: checking if data-only library module links" >&5
13069 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
13070 if test "${cf_cv_link_dataonly+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13075 cat >conftest.$ac_ext <<EOF
13076 #line 13076 "configure"
13077 int testdata[3] = { 123, 456, 789 };
13079 if { (eval echo "$as_me:13079: \"$ac_compile\"") >&5
13080 (eval $ac_compile) 2>&5
13082 echo "$as_me:13082: \$? = $ac_status" >&5
13083 (exit $ac_status); } ; then
13084 mv conftest.o data.o && \
13085 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
13087 rm -f conftest.$ac_ext data.o
13088 cat >conftest.$ac_ext <<EOF
13089 #line 13089 "configure"
13093 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
13095 extern int testdata[3];
13096 return testdata[0] == 123
13097 && testdata[1] == 456
13098 && testdata[2] == 789;
13102 if { (eval echo "$as_me:13102: \"$ac_compile\"") >&5
13103 (eval $ac_compile) 2>&5
13105 echo "$as_me:13105: \$? = $ac_status" >&5
13106 (exit $ac_status); }; then
13107 mv conftest.o func.o && \
13108 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
13110 rm -f conftest.$ac_ext func.o
13111 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
13112 cf_saveLIBS="$LIBS"
13113 LIBS="conftest.a $LIBS"
13114 if test "$cross_compiling" = yes; then
13115 cf_cv_link_dataonly=unknown
13117 cat >conftest.$ac_ext <<_ACEOF
13118 #line 13118 "configure"
13119 #include "confdefs.h"
13123 extern int testfunc();
13124 ${cf_cv_main_return:-return} (!testfunc());
13128 rm -f conftest$ac_exeext
13129 if { (eval echo "$as_me:13129: \"$ac_link\"") >&5
13130 (eval $ac_link) 2>&5
13132 echo "$as_me:13132: \$? = $ac_status" >&5
13133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13134 { (eval echo "$as_me:13134: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13137 echo "$as_me:13137: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 cf_cv_link_dataonly=yes
13141 echo "$as_me: program exited with status $ac_status" >&5
13142 echo "$as_me: failed program was:" >&5
13143 cat conftest.$ac_ext >&5
13144 cf_cv_link_dataonly=no
13146 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13148 LIBS="$cf_saveLIBS"
13152 echo "$as_me:13152: result: $cf_cv_link_dataonly" >&5
13153 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
13155 if test "$cf_cv_link_dataonly" = no ; then
13156 cat >>confdefs.h <<\EOF
13157 #define BROKEN_LINKER 1
13163 ### Checks for library functions.
13186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13187 echo "$as_me:13187: checking for $ac_func" >&5
13188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13189 if eval "test \"\${$as_ac_var+set}\" = set"; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 cat >conftest.$ac_ext <<_ACEOF
13193 #line 13193 "configure"
13194 #include "confdefs.h"
13195 /* System header to define __stub macros and hopefully few prototypes,
13196 which can conflict with char $ac_func (); below. */
13197 #include <assert.h>
13198 /* Override any gcc2 internal prototype to avoid an error. */
13202 /* We use char because int might match the return type of a gcc2
13203 builtin and then its argument prototype would still apply. */
13210 /* The GNU C library defines this for functions which it implements
13211 to always fail with ENOSYS. Some functions are actually named
13212 something starting with __ and the normal name is an alias. */
13213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13223 rm -f conftest.$ac_objext conftest$ac_exeext
13224 if { (eval echo "$as_me:13224: \"$ac_link\"") >&5
13225 (eval $ac_link) 2>&5
13227 echo "$as_me:13227: \$? = $ac_status" >&5
13228 (exit $ac_status); } &&
13229 { ac_try='test -s conftest$ac_exeext'
13230 { (eval echo "$as_me:13230: \"$ac_try\"") >&5
13231 (eval $ac_try) 2>&5
13233 echo "$as_me:13233: \$? = $ac_status" >&5
13234 (exit $ac_status); }; }; then
13235 eval "$as_ac_var=yes"
13237 echo "$as_me: failed program was:" >&5
13238 cat conftest.$ac_ext >&5
13239 eval "$as_ac_var=no"
13241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13243 echo "$as_me:13243: result: `eval echo '${'$as_ac_var'}'`" >&5
13244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13245 if test `eval echo '${'$as_ac_var'}'` = yes; then
13246 cat >>confdefs.h <<EOF
13247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13253 if test "$with_getcap" = "yes" ; then
13255 echo "$as_me:13255: checking for terminal-capability database functions" >&5
13256 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
13257 if test "${cf_cv_cgetent+set}" = set; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13261 cat >conftest.$ac_ext <<_ACEOF
13262 #line 13262 "configure"
13263 #include "confdefs.h"
13265 #include <stdlib.h>
13272 char *db_array = temp;
13273 cgetent(&buf, /* int *, */ &db_array, "vt100");
13274 cgetcap(buf, "tc", '=');
13275 cgetmatch(buf, "tc");
13281 rm -f conftest.$ac_objext conftest$ac_exeext
13282 if { (eval echo "$as_me:13282: \"$ac_link\"") >&5
13283 (eval $ac_link) 2>&5
13285 echo "$as_me:13285: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
13287 { ac_try='test -s conftest$ac_exeext'
13288 { (eval echo "$as_me:13288: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13291 echo "$as_me:13291: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13295 echo "$as_me: failed program was:" >&5
13296 cat conftest.$ac_ext >&5
13299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13303 echo "$as_me:13303: result: $cf_cv_cgetent" >&5
13304 echo "${ECHO_T}$cf_cv_cgetent" >&6
13305 test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
13306 #define HAVE_BSD_CGETENT 1
13311 echo "$as_me:13311: checking for isascii" >&5
13312 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
13313 if test "${cf_cv_have_isascii+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 cat >conftest.$ac_ext <<_ACEOF
13318 #line 13318 "configure"
13319 #include "confdefs.h"
13324 int x = isascii(' ')
13329 rm -f conftest.$ac_objext conftest$ac_exeext
13330 if { (eval echo "$as_me:13330: \"$ac_link\"") >&5
13331 (eval $ac_link) 2>&5
13333 echo "$as_me:13333: \$? = $ac_status" >&5
13334 (exit $ac_status); } &&
13335 { ac_try='test -s conftest$ac_exeext'
13336 { (eval echo "$as_me:13336: \"$ac_try\"") >&5
13337 (eval $ac_try) 2>&5
13339 echo "$as_me:13339: \$? = $ac_status" >&5
13340 (exit $ac_status); }; }; then
13341 cf_cv_have_isascii=yes
13343 echo "$as_me: failed program was:" >&5
13344 cat conftest.$ac_ext >&5
13345 cf_cv_have_isascii=no
13347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13350 echo "$as_me:13350: result: $cf_cv_have_isascii" >&5
13351 echo "${ECHO_T}$cf_cv_have_isascii" >&6
13352 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
13353 #define HAVE_ISASCII 1
13356 if test "$ac_cv_func_sigaction" = yes; then
13357 echo "$as_me:13357: checking whether sigaction needs _POSIX_SOURCE" >&5
13358 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
13359 cat >conftest.$ac_ext <<_ACEOF
13360 #line 13360 "configure"
13361 #include "confdefs.h"
13363 #include <sys/types.h>
13364 #include <signal.h>
13368 struct sigaction act
13373 rm -f conftest.$ac_objext
13374 if { (eval echo "$as_me:13374: \"$ac_compile\"") >&5
13375 (eval $ac_compile) 2>&5
13377 echo "$as_me:13377: \$? = $ac_status" >&5
13378 (exit $ac_status); } &&
13379 { ac_try='test -s conftest.$ac_objext'
13380 { (eval echo "$as_me:13380: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13383 echo "$as_me:13383: \$? = $ac_status" >&5
13384 (exit $ac_status); }; }; then
13387 echo "$as_me: failed program was:" >&5
13388 cat conftest.$ac_ext >&5
13390 cat >conftest.$ac_ext <<_ACEOF
13391 #line 13391 "configure"
13392 #include "confdefs.h"
13394 #define _POSIX_SOURCE
13395 #include <sys/types.h>
13396 #include <signal.h>
13400 struct sigaction act
13405 rm -f conftest.$ac_objext
13406 if { (eval echo "$as_me:13406: \"$ac_compile\"") >&5
13407 (eval $ac_compile) 2>&5
13409 echo "$as_me:13409: \$? = $ac_status" >&5
13410 (exit $ac_status); } &&
13411 { ac_try='test -s conftest.$ac_objext'
13412 { (eval echo "$as_me:13412: \"$ac_try\"") >&5
13413 (eval $ac_try) 2>&5
13415 echo "$as_me:13415: \$? = $ac_status" >&5
13416 (exit $ac_status); }; }; then
13418 cat >>confdefs.h <<\EOF
13419 #define SVR4_ACTION 1
13423 echo "$as_me: failed program was:" >&5
13424 cat conftest.$ac_ext >&5
13427 rm -f conftest.$ac_objext conftest.$ac_ext
13429 rm -f conftest.$ac_objext conftest.$ac_ext
13430 echo "$as_me:13430: result: $sigact_bad" >&5
13431 echo "${ECHO_T}$sigact_bad" >&6
13434 echo "$as_me:13434: checking if nanosleep really works" >&5
13435 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
13436 if test "${cf_cv_func_nanosleep+set}" = set; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13440 if test "$cross_compiling" = yes; then
13441 cf_cv_func_nanosleep=unknown
13443 cat >conftest.$ac_ext <<_ACEOF
13444 #line 13444 "configure"
13445 #include "confdefs.h"
13451 #ifdef HAVE_SYS_TIME_H
13452 #include <sys/time.h>
13456 struct timespec ts1, ts2;
13459 ts1.tv_nsec = 750000000;
13463 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
13464 ${cf_cv_main_return:-return}(code != 0);
13468 rm -f conftest$ac_exeext
13469 if { (eval echo "$as_me:13469: \"$ac_link\"") >&5
13470 (eval $ac_link) 2>&5
13472 echo "$as_me:13472: \$? = $ac_status" >&5
13473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13474 { (eval echo "$as_me:13474: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13477 echo "$as_me:13477: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }; then
13479 cf_cv_func_nanosleep=yes
13481 echo "$as_me: program exited with status $ac_status" >&5
13482 echo "$as_me: failed program was:" >&5
13483 cat conftest.$ac_ext >&5
13484 cf_cv_func_nanosleep=no
13486 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13489 echo "$as_me:13489: result: $cf_cv_func_nanosleep" >&5
13490 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
13492 test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
13493 #define HAVE_NANOSLEEP 1
13502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13503 echo "$as_me:13503: checking for $ac_header" >&5
13504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 cat >conftest.$ac_ext <<_ACEOF
13509 #line 13509 "configure"
13510 #include "confdefs.h"
13511 #include <$ac_header>
13513 if { (eval echo "$as_me:13513: \"$ac_cpp conftest.$ac_ext\"") >&5
13514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13516 egrep -v '^ *\+' conftest.er1 >conftest.err
13518 cat conftest.err >&5
13519 echo "$as_me:13519: \$? = $ac_status" >&5
13520 (exit $ac_status); } >/dev/null; then
13521 if test -s conftest.err; then
13522 ac_cpp_err=$ac_c_preproc_warn_flag
13529 if test -z "$ac_cpp_err"; then
13530 eval "$as_ac_Header=yes"
13532 echo "$as_me: failed program was:" >&5
13533 cat conftest.$ac_ext >&5
13534 eval "$as_ac_Header=no"
13536 rm -f conftest.err conftest.$ac_ext
13538 echo "$as_me:13538: result: `eval echo '${'$as_ac_Header'}'`" >&5
13539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13541 cat >>confdefs.h <<EOF
13542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13548 if test "$ISC" = yes ; then
13550 for ac_header in sys/termio.h
13552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13553 echo "$as_me:13553: checking for $ac_header" >&5
13554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
13558 cat >conftest.$ac_ext <<_ACEOF
13559 #line 13559 "configure"
13560 #include "confdefs.h"
13561 #include <$ac_header>
13563 if { (eval echo "$as_me:13563: \"$ac_cpp conftest.$ac_ext\"") >&5
13564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13566 egrep -v '^ *\+' conftest.er1 >conftest.err
13568 cat conftest.err >&5
13569 echo "$as_me:13569: \$? = $ac_status" >&5
13570 (exit $ac_status); } >/dev/null; then
13571 if test -s conftest.err; then
13572 ac_cpp_err=$ac_c_preproc_warn_flag
13579 if test -z "$ac_cpp_err"; then
13580 eval "$as_ac_Header=yes"
13582 echo "$as_me: failed program was:" >&5
13583 cat conftest.$ac_ext >&5
13584 eval "$as_ac_Header=no"
13586 rm -f conftest.err conftest.$ac_ext
13588 echo "$as_me:13588: result: `eval echo '${'$as_ac_Header'}'`" >&5
13589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13591 cat >>confdefs.h <<EOF
13592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13599 if test "$ac_cv_header_termios_h" = yes ; then
13600 case "$CFLAGS $CPPFLAGS" in
13602 termios_bad=dunno ;;
13603 *) termios_bad=maybe ;;
13605 if test "$termios_bad" = maybe ; then
13606 echo "$as_me:13606: checking whether termios.h needs _POSIX_SOURCE" >&5
13607 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
13608 cat >conftest.$ac_ext <<_ACEOF
13609 #line 13609 "configure"
13610 #include "confdefs.h"
13611 #include <termios.h>
13615 struct termios foo; int x = foo.c_iflag
13620 rm -f conftest.$ac_objext
13621 if { (eval echo "$as_me:13621: \"$ac_compile\"") >&5
13622 (eval $ac_compile) 2>&5
13624 echo "$as_me:13624: \$? = $ac_status" >&5
13625 (exit $ac_status); } &&
13626 { ac_try='test -s conftest.$ac_objext'
13627 { (eval echo "$as_me:13627: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13630 echo "$as_me:13630: \$? = $ac_status" >&5
13631 (exit $ac_status); }; }; then
13634 echo "$as_me: failed program was:" >&5
13635 cat conftest.$ac_ext >&5
13637 cat >conftest.$ac_ext <<_ACEOF
13638 #line 13638 "configure"
13639 #include "confdefs.h"
13641 #define _POSIX_SOURCE
13642 #include <termios.h>
13646 struct termios foo; int x = foo.c_iflag
13651 rm -f conftest.$ac_objext
13652 if { (eval echo "$as_me:13652: \"$ac_compile\"") >&5
13653 (eval $ac_compile) 2>&5
13655 echo "$as_me:13655: \$? = $ac_status" >&5
13656 (exit $ac_status); } &&
13657 { ac_try='test -s conftest.$ac_objext'
13658 { (eval echo "$as_me:13658: \"$ac_try\"") >&5
13659 (eval $ac_try) 2>&5
13661 echo "$as_me:13661: \$? = $ac_status" >&5
13662 (exit $ac_status); }; }; then
13663 termios_bad=unknown
13665 echo "$as_me: failed program was:" >&5
13666 cat conftest.$ac_ext >&5
13667 termios_bad=yes cat >>confdefs.h <<\EOF
13668 #define SVR4_TERMIO 1
13672 rm -f conftest.$ac_objext conftest.$ac_ext
13675 rm -f conftest.$ac_objext conftest.$ac_ext
13676 echo "$as_me:13676: result: $termios_bad" >&5
13677 echo "${ECHO_T}$termios_bad" >&6
13681 echo "$as_me:13681: checking for tcgetattr" >&5
13682 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
13683 if test "${cf_cv_have_tcgetattr+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13687 cat >conftest.$ac_ext <<_ACEOF
13688 #line 13688 "configure"
13689 #include "confdefs.h"
13691 #include <sys/types.h>
13692 #ifdef HAVE_UNISTD_H
13693 #include <unistd.h>
13695 #ifdef HAVE_TERMIOS_H
13696 #include <termios.h>
13697 #define TTY struct termios
13699 #ifdef HAVE_TERMIO_H
13700 #include <termio.h>
13701 #define TTY struct termio
13710 tcgetattr(1, &foo);
13715 rm -f conftest.$ac_objext conftest$ac_exeext
13716 if { (eval echo "$as_me:13716: \"$ac_link\"") >&5
13717 (eval $ac_link) 2>&5
13719 echo "$as_me:13719: \$? = $ac_status" >&5
13720 (exit $ac_status); } &&
13721 { ac_try='test -s conftest$ac_exeext'
13722 { (eval echo "$as_me:13722: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13725 echo "$as_me:13725: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
13727 cf_cv_have_tcgetattr=yes
13729 echo "$as_me: failed program was:" >&5
13730 cat conftest.$ac_ext >&5
13731 cf_cv_have_tcgetattr=no
13733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13735 echo "$as_me:13735: result: $cf_cv_have_tcgetattr" >&5
13736 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
13737 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
13738 #define HAVE_TCGETATTR 1
13741 echo "$as_me:13741: checking for vsscanf function or workaround" >&5
13742 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
13743 if test "${cf_cv_func_vsscanf+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13747 cat >conftest.$ac_ext <<_ACEOF
13748 #line 13748 "configure"
13749 #include "confdefs.h"
13751 #include <stdarg.h>
13758 vsscanf("from", "%d", ap)
13763 rm -f conftest.$ac_objext conftest$ac_exeext
13764 if { (eval echo "$as_me:13764: \"$ac_link\"") >&5
13765 (eval $ac_link) 2>&5
13767 echo "$as_me:13767: \$? = $ac_status" >&5
13768 (exit $ac_status); } &&
13769 { ac_try='test -s conftest$ac_exeext'
13770 { (eval echo "$as_me:13770: \"$ac_try\"") >&5
13771 (eval $ac_try) 2>&5
13773 echo "$as_me:13773: \$? = $ac_status" >&5
13774 (exit $ac_status); }; }; then
13775 cf_cv_func_vsscanf=vsscanf
13777 echo "$as_me: failed program was:" >&5
13778 cat conftest.$ac_ext >&5
13780 cat >conftest.$ac_ext <<_ACEOF
13781 #line 13781 "configure"
13782 #include "confdefs.h"
13784 #include <stdarg.h>
13791 char *str = "from";
13793 strbuf._flag = _IOREAD;
13794 strbuf._ptr = strbuf._base = (unsigned char *) str;
13795 strbuf._cnt = strlen(str);
13796 strbuf._file = _NFILE;
13797 return (vfscanf(&strbuf, "%d", ap))
13802 rm -f conftest.$ac_objext conftest$ac_exeext
13803 if { (eval echo "$as_me:13803: \"$ac_link\"") >&5
13804 (eval $ac_link) 2>&5
13806 echo "$as_me:13806: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
13808 { ac_try='test -s conftest$ac_exeext'
13809 { (eval echo "$as_me:13809: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13812 echo "$as_me:13812: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }; then
13814 cf_cv_func_vsscanf=vfscanf
13816 echo "$as_me: failed program was:" >&5
13817 cat conftest.$ac_ext >&5
13819 cat >conftest.$ac_ext <<_ACEOF
13820 #line 13820 "configure"
13821 #include "confdefs.h"
13823 #include <stdarg.h>
13830 char *str = "from";
13832 strbuf._flag = _IOREAD;
13833 strbuf._ptr = strbuf._base = (unsigned char *) str;
13834 strbuf._cnt = strlen(str);
13835 strbuf._file = _NFILE;
13836 return (_doscan(&strbuf, "%d", ap))
13841 rm -f conftest.$ac_objext conftest$ac_exeext
13842 if { (eval echo "$as_me:13842: \"$ac_link\"") >&5
13843 (eval $ac_link) 2>&5
13845 echo "$as_me:13845: \$? = $ac_status" >&5
13846 (exit $ac_status); } &&
13847 { ac_try='test -s conftest$ac_exeext'
13848 { (eval echo "$as_me:13848: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13851 echo "$as_me:13851: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 cf_cv_func_vsscanf=_doscan
13855 echo "$as_me: failed program was:" >&5
13856 cat conftest.$ac_ext >&5
13858 cf_cv_func_vsscanf=no
13860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13866 echo "$as_me:13866: result: $cf_cv_func_vsscanf" >&5
13867 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
13869 case $cf_cv_func_vsscanf in #(vi
13870 vsscanf) cat >>confdefs.h <<\EOF
13871 #define HAVE_VSSCANF 1
13874 vfscanf) cat >>confdefs.h <<\EOF
13875 #define HAVE_VFSCANF 1
13878 _doscan) cat >>confdefs.h <<\EOF
13879 #define HAVE__DOSCAN 1
13884 echo "$as_me:13884: checking for working mkstemp" >&5
13885 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
13886 if test "${cf_cv_func_mkstemp+set}" = set; then
13887 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 if test "$cross_compiling" = yes; then
13892 echo "$as_me:13892: checking for mkstemp" >&5
13893 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
13894 if test "${ac_cv_func_mkstemp+set}" = set; then
13895 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 cat >conftest.$ac_ext <<_ACEOF
13898 #line 13898 "configure"
13899 #include "confdefs.h"
13900 /* System header to define __stub macros and hopefully few prototypes,
13901 which can conflict with char mkstemp (); below. */
13902 #include <assert.h>
13903 /* Override any gcc2 internal prototype to avoid an error. */
13907 /* We use char because int might match the return type of a gcc2
13908 builtin and then its argument prototype would still apply. */
13915 /* The GNU C library defines this for functions which it implements
13916 to always fail with ENOSYS. Some functions are actually named
13917 something starting with __ and the normal name is an alias. */
13918 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
13928 rm -f conftest.$ac_objext conftest$ac_exeext
13929 if { (eval echo "$as_me:13929: \"$ac_link\"") >&5
13930 (eval $ac_link) 2>&5
13932 echo "$as_me:13932: \$? = $ac_status" >&5
13933 (exit $ac_status); } &&
13934 { ac_try='test -s conftest$ac_exeext'
13935 { (eval echo "$as_me:13935: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13938 echo "$as_me:13938: \$? = $ac_status" >&5
13939 (exit $ac_status); }; }; then
13940 ac_cv_func_mkstemp=yes
13942 echo "$as_me: failed program was:" >&5
13943 cat conftest.$ac_ext >&5
13944 ac_cv_func_mkstemp=no
13946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13948 echo "$as_me:13948: result: $ac_cv_func_mkstemp" >&5
13949 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
13952 cat >conftest.$ac_ext <<_ACEOF
13953 #line 13953 "configure"
13954 #include "confdefs.h"
13956 #include <sys/types.h>
13957 #include <stdlib.h>
13959 #include <string.h>
13960 #include <sys/stat.h>
13963 char *tmpl = "conftestXXXXXX";
13971 for (n = 0; n < 2; ++n) {
13972 strcpy(name[n], tmpl);
13973 if ((fd = mkstemp(name[n])) >= 0) {
13974 if (!strcmp(name[n], tmpl)
13975 || stat(name[n], &sb) != 0
13976 || (sb.st_mode & S_IFMT) != S_IFREG
13977 || (sb.st_mode & 077) != 0) {
13984 && !strcmp(name[0], name[1]))
13986 ${cf_cv_main_return:-return}(result);
13990 rm -f conftest$ac_exeext
13991 if { (eval echo "$as_me:13991: \"$ac_link\"") >&5
13992 (eval $ac_link) 2>&5
13994 echo "$as_me:13994: \$? = $ac_status" >&5
13995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13996 { (eval echo "$as_me:13996: \"$ac_try\"") >&5
13997 (eval $ac_try) 2>&5
13999 echo "$as_me:13999: \$? = $ac_status" >&5
14000 (exit $ac_status); }; }; then
14001 cf_cv_func_mkstemp=yes
14004 echo "$as_me: program exited with status $ac_status" >&5
14005 echo "$as_me: failed program was:" >&5
14006 cat conftest.$ac_ext >&5
14007 cf_cv_func_mkstemp=no
14010 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14014 echo "$as_me:14014: result: $cf_cv_func_mkstemp" >&5
14015 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
14016 if test "$cf_cv_func_mkstemp" = yes ; then
14017 cat >>confdefs.h <<\EOF
14018 #define HAVE_MKSTEMP 1
14023 # setup for prototype of fallback for vsscanf()
14025 if test "$cf_cv_func_vsscanf" = vsscanf ; then
14031 if test "$cross_compiling" = yes ; then
14032 { echo "$as_me:14032: WARNING: cross compiling: assume setvbuf params not reversed" >&5
14033 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
14035 echo "$as_me:14035: checking whether setvbuf arguments are reversed" >&5
14036 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
14037 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14040 if test "$cross_compiling" = yes; then
14041 { { echo "$as_me:14041: error: cannot run test program while cross compiling" >&5
14042 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14043 { (exit 1); exit 1; }; }
14045 cat >conftest.$ac_ext <<_ACEOF
14046 #line 14046 "configure"
14047 #include "confdefs.h"
14049 /* If setvbuf has the reversed format, exit 0. */
14053 /* This call has the arguments reversed.
14054 A reversed system may check and see that the address of main
14055 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
14056 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
14057 $ac_main_return(1);
14058 putc('\r', stdout);
14059 $ac_main_return(0); /* Non-reversed systems segv here. */
14062 rm -f conftest$ac_exeext
14063 if { (eval echo "$as_me:14063: \"$ac_link\"") >&5
14064 (eval $ac_link) 2>&5
14066 echo "$as_me:14066: \$? = $ac_status" >&5
14067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14068 { (eval echo "$as_me:14068: \"$ac_try\"") >&5
14069 (eval $ac_try) 2>&5
14071 echo "$as_me:14071: \$? = $ac_status" >&5
14072 (exit $ac_status); }; }; then
14073 ac_cv_func_setvbuf_reversed=yes
14075 echo "$as_me: program exited with status $ac_status" >&5
14076 echo "$as_me: failed program was:" >&5
14077 cat conftest.$ac_ext >&5
14078 ac_cv_func_setvbuf_reversed=no
14080 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14082 rm -f core core.* *.core
14084 echo "$as_me:14084: result: $ac_cv_func_setvbuf_reversed" >&5
14085 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
14086 if test $ac_cv_func_setvbuf_reversed = yes; then
14088 cat >>confdefs.h <<\EOF
14089 #define SETVBUF_REVERSED 1
14095 echo "$as_me:14095: checking return type of signal handlers" >&5
14096 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
14097 if test "${ac_cv_type_signal+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14100 cat >conftest.$ac_ext <<_ACEOF
14101 #line 14101 "configure"
14102 #include "confdefs.h"
14103 #include <sys/types.h>
14104 #include <signal.h>
14109 extern "C" void (*signal (int, void (*)(int)))(int);
14111 void (*signal ()) ();
14122 rm -f conftest.$ac_objext
14123 if { (eval echo "$as_me:14123: \"$ac_compile\"") >&5
14124 (eval $ac_compile) 2>&5
14126 echo "$as_me:14126: \$? = $ac_status" >&5
14127 (exit $ac_status); } &&
14128 { ac_try='test -s conftest.$ac_objext'
14129 { (eval echo "$as_me:14129: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14132 echo "$as_me:14132: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14134 ac_cv_type_signal=void
14136 echo "$as_me: failed program was:" >&5
14137 cat conftest.$ac_ext >&5
14138 ac_cv_type_signal=int
14140 rm -f conftest.$ac_objext conftest.$ac_ext
14142 echo "$as_me:14142: result: $ac_cv_type_signal" >&5
14143 echo "${ECHO_T}$ac_cv_type_signal" >&6
14145 cat >>confdefs.h <<EOF
14146 #define RETSIGTYPE $ac_cv_type_signal
14149 echo "$as_me:14149: checking for type sigaction_t" >&5
14150 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
14151 if test "${cf_cv_type_sigaction+set}" = set; then
14152 echo $ECHO_N "(cached) $ECHO_C" >&6
14155 cat >conftest.$ac_ext <<_ACEOF
14156 #line 14156 "configure"
14157 #include "confdefs.h"
14159 #include <signal.h>
14168 rm -f conftest.$ac_objext
14169 if { (eval echo "$as_me:14169: \"$ac_compile\"") >&5
14170 (eval $ac_compile) 2>&5
14172 echo "$as_me:14172: \$? = $ac_status" >&5
14173 (exit $ac_status); } &&
14174 { ac_try='test -s conftest.$ac_objext'
14175 { (eval echo "$as_me:14175: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14178 echo "$as_me:14178: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 cf_cv_type_sigaction=yes
14182 echo "$as_me: failed program was:" >&5
14183 cat conftest.$ac_ext >&5
14184 cf_cv_type_sigaction=no
14186 rm -f conftest.$ac_objext conftest.$ac_ext
14189 echo "$as_me:14189: result: $cf_cv_type_sigaction" >&5
14190 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
14191 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
14192 #define HAVE_TYPE_SIGACTION 1
14195 echo "$as_me:14195: checking declaration of size-change" >&5
14196 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
14197 if test "${cf_cv_sizechange+set}" = set; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 cf_cv_sizechange=unknown
14202 cf_save_CPPFLAGS="$CPPFLAGS"
14204 for cf_opts in "" "NEED_PTEM_H"
14207 CPPFLAGS="$cf_save_CPPFLAGS"
14208 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
14209 cat >conftest.$ac_ext <<_ACEOF
14210 #line 14210 "configure"
14211 #include "confdefs.h"
14212 #include <sys/types.h>
14213 #ifdef HAVE_TERMIOS_H
14214 #include <termios.h>
14216 #ifdef HAVE_TERMIO_H
14217 #include <termio.h>
14221 /* This is a workaround for SCO: they neglected to define struct winsize in
14222 * termios.h -- it's only in termio.h and ptem.h
14224 #include <sys/stream.h>
14225 #include <sys/ptem.h>
14227 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
14228 #include <sys/ioctl.h>
14236 struct ttysize win; /* FIXME: what system is this? */
14237 int y = win.ts_lines;
14238 int x = win.ts_cols;
14241 struct winsize win;
14242 int y = win.ws_row;
14243 int x = win.ws_col;
14245 no TIOCGSIZE or TIOCGWINSZ
14246 #endif /* TIOCGWINSZ */
14247 #endif /* TIOCGSIZE */
14253 rm -f conftest.$ac_objext
14254 if { (eval echo "$as_me:14254: \"$ac_compile\"") >&5
14255 (eval $ac_compile) 2>&5
14257 echo "$as_me:14257: \$? = $ac_status" >&5
14258 (exit $ac_status); } &&
14259 { ac_try='test -s conftest.$ac_objext'
14260 { (eval echo "$as_me:14260: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14263 echo "$as_me:14263: \$? = $ac_status" >&5
14264 (exit $ac_status); }; }; then
14265 cf_cv_sizechange=yes
14267 echo "$as_me: failed program was:" >&5
14268 cat conftest.$ac_ext >&5
14269 cf_cv_sizechange=no
14271 rm -f conftest.$ac_objext conftest.$ac_ext
14273 CPPFLAGS="$cf_save_CPPFLAGS"
14274 if test "$cf_cv_sizechange" = yes ; then
14275 echo "size-change succeeded ($cf_opts)" >&5
14276 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
14282 echo "$as_me:14282: result: $cf_cv_sizechange" >&5
14283 echo "${ECHO_T}$cf_cv_sizechange" >&6
14284 if test "$cf_cv_sizechange" != no ; then
14285 cat >>confdefs.h <<\EOF
14286 #define HAVE_SIZECHANGE 1
14289 case $cf_cv_sizechange in #(vi
14291 cat >>confdefs.h <<EOF
14292 #define $cf_cv_sizechange 1
14299 echo "$as_me:14299: checking for memmove" >&5
14300 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
14301 if test "${ac_cv_func_memmove+set}" = set; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14304 cat >conftest.$ac_ext <<_ACEOF
14305 #line 14305 "configure"
14306 #include "confdefs.h"
14307 /* System header to define __stub macros and hopefully few prototypes,
14308 which can conflict with char memmove (); below. */
14309 #include <assert.h>
14310 /* Override any gcc2 internal prototype to avoid an error. */
14314 /* We use char because int might match the return type of a gcc2
14315 builtin and then its argument prototype would still apply. */
14322 /* The GNU C library defines this for functions which it implements
14323 to always fail with ENOSYS. Some functions are actually named
14324 something starting with __ and the normal name is an alias. */
14325 #if defined (__stub_memmove) || defined (__stub___memmove)
14335 rm -f conftest.$ac_objext conftest$ac_exeext
14336 if { (eval echo "$as_me:14336: \"$ac_link\"") >&5
14337 (eval $ac_link) 2>&5
14339 echo "$as_me:14339: \$? = $ac_status" >&5
14340 (exit $ac_status); } &&
14341 { ac_try='test -s conftest$ac_exeext'
14342 { (eval echo "$as_me:14342: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14345 echo "$as_me:14345: \$? = $ac_status" >&5
14346 (exit $ac_status); }; }; then
14347 ac_cv_func_memmove=yes
14349 echo "$as_me: failed program was:" >&5
14350 cat conftest.$ac_ext >&5
14351 ac_cv_func_memmove=no
14353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14355 echo "$as_me:14355: result: $ac_cv_func_memmove" >&5
14356 echo "${ECHO_T}$ac_cv_func_memmove" >&6
14357 if test $ac_cv_func_memmove = yes; then
14361 echo "$as_me:14361: checking for bcopy" >&5
14362 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
14363 if test "${ac_cv_func_bcopy+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 cat >conftest.$ac_ext <<_ACEOF
14367 #line 14367 "configure"
14368 #include "confdefs.h"
14369 /* System header to define __stub macros and hopefully few prototypes,
14370 which can conflict with char bcopy (); below. */
14371 #include <assert.h>
14372 /* Override any gcc2 internal prototype to avoid an error. */
14376 /* We use char because int might match the return type of a gcc2
14377 builtin and then its argument prototype would still apply. */
14384 /* The GNU C library defines this for functions which it implements
14385 to always fail with ENOSYS. Some functions are actually named
14386 something starting with __ and the normal name is an alias. */
14387 #if defined (__stub_bcopy) || defined (__stub___bcopy)
14397 rm -f conftest.$ac_objext conftest$ac_exeext
14398 if { (eval echo "$as_me:14398: \"$ac_link\"") >&5
14399 (eval $ac_link) 2>&5
14401 echo "$as_me:14401: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -s conftest$ac_exeext'
14404 { (eval echo "$as_me:14404: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14407 echo "$as_me:14407: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 ac_cv_func_bcopy=yes
14411 echo "$as_me: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14413 ac_cv_func_bcopy=no
14415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14417 echo "$as_me:14417: result: $ac_cv_func_bcopy" >&5
14418 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
14419 if test $ac_cv_func_bcopy = yes; then
14421 echo "$as_me:14421: checking if bcopy does overlapping moves" >&5
14422 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
14423 if test "${cf_cv_good_bcopy+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14427 if test "$cross_compiling" = yes; then
14428 cf_cv_good_bcopy=unknown
14430 cat >conftest.$ac_ext <<_ACEOF
14431 #line 14431 "configure"
14432 #include "confdefs.h"
14435 static char data[] = "abcdefghijklmnopqrstuwwxyz";
14437 bcopy(data, temp, sizeof(data));
14438 bcopy(temp+10, temp, 15);
14439 bcopy(temp+5, temp+15, 10);
14440 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
14444 rm -f conftest$ac_exeext
14445 if { (eval echo "$as_me:14445: \"$ac_link\"") >&5
14446 (eval $ac_link) 2>&5
14448 echo "$as_me:14448: \$? = $ac_status" >&5
14449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14450 { (eval echo "$as_me:14450: \"$ac_try\"") >&5
14451 (eval $ac_try) 2>&5
14453 echo "$as_me:14453: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
14455 cf_cv_good_bcopy=yes
14457 echo "$as_me: program exited with status $ac_status" >&5
14458 echo "$as_me: failed program was:" >&5
14459 cat conftest.$ac_ext >&5
14460 cf_cv_good_bcopy=no
14462 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14466 echo "$as_me:14466: result: $cf_cv_good_bcopy" >&5
14467 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
14470 cf_cv_good_bcopy=no
14473 if test "$cf_cv_good_bcopy" = yes ; then
14474 cat >>confdefs.h <<\EOF
14475 #define USE_OK_BCOPY 1
14479 cat >>confdefs.h <<\EOF
14480 #define USE_MY_MEMMOVE 1
14487 echo "$as_me:14487: checking if poll really works" >&5
14488 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
14489 if test "${cf_cv_working_poll+set}" = set; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 if test "$cross_compiling" = yes; then
14494 cf_cv_working_poll=unknown
14496 cat >conftest.$ac_ext <<_ACEOF
14497 #line 14497 "configure"
14498 #include "confdefs.h"
14504 #include <sys/poll.h>
14507 struct pollfd myfds;
14511 myfds.events = POLLIN;
14513 ret = poll(&myfds, 1, 100);
14514 ${cf_cv_main_return:-return}(ret != 0);
14517 rm -f conftest$ac_exeext
14518 if { (eval echo "$as_me:14518: \"$ac_link\"") >&5
14519 (eval $ac_link) 2>&5
14521 echo "$as_me:14521: \$? = $ac_status" >&5
14522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14523 { (eval echo "$as_me:14523: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14526 echo "$as_me:14526: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 cf_cv_working_poll=yes
14530 echo "$as_me: program exited with status $ac_status" >&5
14531 echo "$as_me: failed program was:" >&5
14532 cat conftest.$ac_ext >&5
14533 cf_cv_working_poll=no
14535 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14538 echo "$as_me:14538: result: $cf_cv_working_poll" >&5
14539 echo "${ECHO_T}$cf_cv_working_poll" >&6
14540 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
14541 #define HAVE_WORKING_POLL 1
14544 # special check for test/ditto.c
14546 echo "$as_me:14546: checking for openpty in -lutil" >&5
14547 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
14548 if test "${ac_cv_lib_util_openpty+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14551 ac_check_lib_save_LIBS=$LIBS
14552 LIBS="-lutil $LIBS"
14553 cat >conftest.$ac_ext <<_ACEOF
14554 #line 14554 "configure"
14555 #include "confdefs.h"
14557 /* Override any gcc2 internal prototype to avoid an error. */
14561 /* We use char because int might match the return type of a gcc2
14562 builtin and then its argument prototype would still apply. */
14572 rm -f conftest.$ac_objext conftest$ac_exeext
14573 if { (eval echo "$as_me:14573: \"$ac_link\"") >&5
14574 (eval $ac_link) 2>&5
14576 echo "$as_me:14576: \$? = $ac_status" >&5
14577 (exit $ac_status); } &&
14578 { ac_try='test -s conftest$ac_exeext'
14579 { (eval echo "$as_me:14579: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14582 echo "$as_me:14582: \$? = $ac_status" >&5
14583 (exit $ac_status); }; }; then
14584 ac_cv_lib_util_openpty=yes
14586 echo "$as_me: failed program was:" >&5
14587 cat conftest.$ac_ext >&5
14588 ac_cv_lib_util_openpty=no
14590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14591 LIBS=$ac_check_lib_save_LIBS
14593 echo "$as_me:14593: result: $ac_cv_lib_util_openpty" >&5
14594 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
14595 if test $ac_cv_lib_util_openpty = yes; then
14601 echo "$as_me:14601: checking for openpty header" >&5
14602 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
14603 if test "${cf_cv_func_openpty+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14607 cf_save_LIBS="$LIBS"
14608 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
14609 for cf_header in pty.h libutil.h util.h
14611 cat >conftest.$ac_ext <<_ACEOF
14612 #line 14612 "configure"
14613 #include "confdefs.h"
14615 #include <$cf_header>
14621 int x = openpty((int *)0, (int *)0, (char *)0,
14622 (struct termios *)0, (struct winsize *)0);
14628 rm -f conftest.$ac_objext conftest$ac_exeext
14629 if { (eval echo "$as_me:14629: \"$ac_link\"") >&5
14630 (eval $ac_link) 2>&5
14632 echo "$as_me:14632: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
14634 { ac_try='test -s conftest$ac_exeext'
14635 { (eval echo "$as_me:14635: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14638 echo "$as_me:14638: \$? = $ac_status" >&5
14639 (exit $ac_status); }; }; then
14641 cf_cv_func_openpty=$cf_header
14645 echo "$as_me: failed program was:" >&5
14646 cat conftest.$ac_ext >&5
14648 cf_cv_func_openpty=no
14651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14653 LIBS="$cf_save_LIBS"
14656 echo "$as_me:14656: result: $cf_cv_func_openpty" >&5
14657 echo "${ECHO_T}$cf_cv_func_openpty" >&6
14659 if test "$cf_cv_func_openpty" != no ; then
14660 cat >>confdefs.h <<EOF
14661 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
14664 cat >>confdefs.h <<\EOF
14665 #define USE_XTERM_PTY 1
14668 if test "$cf_cv_lib_util" = yes ; then
14669 TEST_LIBS="-lutil $TEST_LIBS"
14673 if test "$with_hashed_db" != no ; then
14674 cat >>confdefs.h <<\EOF
14675 #define USE_HASHED_DB 1
14678 case $with_hashed_db in #(vi
14682 if test -d "$with_hashed_db" ; then
14684 if test -n "$with_hashed_db/include" ; then
14685 for cf_add_incdir in $with_hashed_db/include
14687 while test $cf_add_incdir != /usr/include
14689 if test -d $cf_add_incdir
14692 if test -n "$CFLAGS$CPPFLAGS" ; then
14693 # a loop is needed to ensure we can add subdirs of existing dirs
14694 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
14695 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
14696 cf_have_incdir=yes; break
14701 if test "$cf_have_incdir" = no ; then
14702 if test "$cf_add_incdir" = /usr/local/include ; then
14703 if test "$GCC" = yes
14705 cf_save_CPPFLAGS=$CPPFLAGS
14706 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
14707 cat >conftest.$ac_ext <<_ACEOF
14708 #line 14708 "configure"
14709 #include "confdefs.h"
14719 rm -f conftest.$ac_objext
14720 if { (eval echo "$as_me:14720: \"$ac_compile\"") >&5
14721 (eval $ac_compile) 2>&5
14723 echo "$as_me:14723: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
14725 { ac_try='test -s conftest.$ac_objext'
14726 { (eval echo "$as_me:14726: \"$ac_try\"") >&5
14727 (eval $ac_try) 2>&5
14729 echo "$as_me:14729: \$? = $ac_status" >&5
14730 (exit $ac_status); }; }; then
14733 echo "$as_me: failed program was:" >&5
14734 cat conftest.$ac_ext >&5
14737 rm -f conftest.$ac_objext conftest.$ac_ext
14738 CPPFLAGS=$cf_save_CPPFLAGS
14743 if test "$cf_have_incdir" = no ; then
14744 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
14746 echo "${as_me-configure}:14746: testing adding $cf_add_incdir to include-path ..." 1>&5
14748 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
14750 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
14751 test "$cf_top_incdir" = "$cf_add_incdir" && break
14752 cf_add_incdir="$cf_top_incdir"
14761 if test -n "$with_hashed_db/lib" ; then
14762 for cf_add_libdir in $with_hashed_db/lib
14764 if test $cf_add_libdir = /usr/lib ; then
14766 elif test -d $cf_add_libdir
14769 if test -n "$LDFLAGS$LIBS" ; then
14770 # a loop is needed to ensure we can add subdirs of existing dirs
14771 for cf_test_libdir in $LDFLAGS $LIBS ; do
14772 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
14773 cf_have_libdir=yes; break
14777 if test "$cf_have_libdir" = no ; then
14778 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
14780 echo "${as_me-configure}:14780: testing adding $cf_add_libdir to library-path ..." 1>&5
14782 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
14791 echo "$as_me:14791: checking for db.h" >&5
14792 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
14793 if test "${ac_cv_header_db_h+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14796 cat >conftest.$ac_ext <<_ACEOF
14797 #line 14797 "configure"
14798 #include "confdefs.h"
14801 if { (eval echo "$as_me:14801: \"$ac_cpp conftest.$ac_ext\"") >&5
14802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14804 egrep -v '^ *\+' conftest.er1 >conftest.err
14806 cat conftest.err >&5
14807 echo "$as_me:14807: \$? = $ac_status" >&5
14808 (exit $ac_status); } >/dev/null; then
14809 if test -s conftest.err; then
14810 ac_cpp_err=$ac_c_preproc_warn_flag
14817 if test -z "$ac_cpp_err"; then
14818 ac_cv_header_db_h=yes
14820 echo "$as_me: failed program was:" >&5
14821 cat conftest.$ac_ext >&5
14822 ac_cv_header_db_h=no
14824 rm -f conftest.err conftest.$ac_ext
14826 echo "$as_me:14826: result: $ac_cv_header_db_h" >&5
14827 echo "${ECHO_T}$ac_cv_header_db_h" >&6
14828 if test $ac_cv_header_db_h = yes; then
14830 echo "$as_me:14830: checking for version of db" >&5
14831 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
14832 if test "${cf_cv_hashed_db_version+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 cf_cv_hashed_db_version=unknown
14838 for cf_db_version in 1 2 3 4 5
14841 echo "${as_me-configure}:14841: testing checking for db version $cf_db_version ..." 1>&5
14843 cat >conftest.$ac_ext <<_ACEOF
14844 #line 14844 "configure"
14845 #include "confdefs.h"
14847 $ac_includes_default
14850 #ifdef DB_VERSION_MAJOR
14851 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
14852 #if $cf_db_version == DB_VERSION_MAJOR
14858 #if $cf_db_version == 1
14859 /* ok: assuming this is DB 1.8.5 */
14873 rm -f conftest.$ac_objext
14874 if { (eval echo "$as_me:14874: \"$ac_compile\"") >&5
14875 (eval $ac_compile) 2>&5
14877 echo "$as_me:14877: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try='test -s conftest.$ac_objext'
14880 { (eval echo "$as_me:14880: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14883 echo "$as_me:14883: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }; then
14886 cf_cv_hashed_db_version=$cf_db_version
14890 echo "$as_me: failed program was:" >&5
14891 cat conftest.$ac_ext >&5
14893 rm -f conftest.$ac_objext conftest.$ac_ext
14897 echo "$as_me:14897: result: $cf_cv_hashed_db_version" >&5
14898 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
14900 if test "$cf_cv_hashed_db_version" = unknown ; then
14901 { { echo "$as_me:14901: error: Cannot determine version of db" >&5
14902 echo "$as_me: error: Cannot determine version of db" >&2;}
14903 { (exit 1); exit 1; }; }
14906 echo "$as_me:14906: checking for db libraries" >&5
14907 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
14908 if test "${cf_cv_hashed_db_libs+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14912 cf_cv_hashed_db_libs=unknown
14913 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
14915 cf_save_libs="$LIBS"
14916 if test -n "$cf_db_libs"; then
14917 LIBS="-l$cf_db_libs $LIBS"
14920 echo "${as_me-configure}:14920: testing checking for library "$cf_db_libs" ..." 1>&5
14922 cat >conftest.$ac_ext <<_ACEOF
14923 #line 14923 "configure"
14924 #include "confdefs.h"
14926 $ac_includes_default
14933 char *path = "/tmp/foo";
14934 #ifdef DB_VERSION_MAJOR
14935 #if DB_VERSION_MAJOR >= 4
14937 db_create(&result, NULL, 0);
14938 result->open(result,
14945 #elif DB_VERSION_MAJOR >= 3
14947 db_create(&result, NULL, 0);
14948 result->open(result,
14954 #elif DB_VERSION_MAJOR >= 2
14963 #endif /* DB_VERSION_MAJOR */
14965 DB *result = dbopen(path,
14971 ${cf_cv_main_return:-return}(result != 0)
14977 rm -f conftest.$ac_objext conftest$ac_exeext
14978 if { (eval echo "$as_me:14978: \"$ac_link\"") >&5
14979 (eval $ac_link) 2>&5
14981 echo "$as_me:14981: \$? = $ac_status" >&5
14982 (exit $ac_status); } &&
14983 { ac_try='test -s conftest$ac_exeext'
14984 { (eval echo "$as_me:14984: \"$ac_try\"") >&5
14985 (eval $ac_try) 2>&5
14987 echo "$as_me:14987: \$? = $ac_status" >&5
14988 (exit $ac_status); }; }; then
14990 if test -n "$cf_db_libs" ; then
14991 cf_cv_hashed_db_libs=$cf_db_libs
14993 cf_cv_hashed_db_libs=default
14995 LIBS="$cf_save_libs"
14999 echo "$as_me: failed program was:" >&5
15000 cat conftest.$ac_ext >&5
15002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15003 LIBS="$cf_save_libs"
15007 echo "$as_me:15007: result: $cf_cv_hashed_db_libs" >&5
15008 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
15010 if test "$cf_cv_hashed_db_libs" = unknown ; then
15011 { { echo "$as_me:15011: error: Cannot determine library for db" >&5
15012 echo "$as_me: error: Cannot determine library for db" >&2;}
15013 { (exit 1); exit 1; }; }
15014 elif test "$cf_cv_hashed_db_libs" != default ; then
15015 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
15021 { { echo "$as_me:15021: error: Cannot find db.h" >&5
15022 echo "$as_me: error: Cannot find db.h" >&2;}
15023 { (exit 1); exit 1; }; }
15029 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
15030 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
15031 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
15034 # Just in case, check if the C compiler has a bool type.
15036 echo "$as_me:15036: checking if we should include stdbool.h" >&5
15037 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
15039 if test "${cf_cv_header_stdbool_h+set}" = set; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 cat >conftest.$ac_ext <<_ACEOF
15044 #line 15044 "configure"
15045 #include "confdefs.h"
15055 rm -f conftest.$ac_objext
15056 if { (eval echo "$as_me:15056: \"$ac_compile\"") >&5
15057 (eval $ac_compile) 2>&5
15059 echo "$as_me:15059: \$? = $ac_status" >&5
15060 (exit $ac_status); } &&
15061 { ac_try='test -s conftest.$ac_objext'
15062 { (eval echo "$as_me:15062: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15065 echo "$as_me:15065: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
15067 cf_cv_header_stdbool_h=0
15069 echo "$as_me: failed program was:" >&5
15070 cat conftest.$ac_ext >&5
15071 cat >conftest.$ac_ext <<_ACEOF
15072 #line 15072 "configure"
15073 #include "confdefs.h"
15076 #include <stdbool.h>
15087 rm -f conftest.$ac_objext
15088 if { (eval echo "$as_me:15088: \"$ac_compile\"") >&5
15089 (eval $ac_compile) 2>&5
15091 echo "$as_me:15091: \$? = $ac_status" >&5
15092 (exit $ac_status); } &&
15093 { ac_try='test -s conftest.$ac_objext'
15094 { (eval echo "$as_me:15094: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15097 echo "$as_me:15097: \$? = $ac_status" >&5
15098 (exit $ac_status); }; }; then
15099 cf_cv_header_stdbool_h=1
15101 echo "$as_me: failed program was:" >&5
15102 cat conftest.$ac_ext >&5
15103 cf_cv_header_stdbool_h=0
15105 rm -f conftest.$ac_objext conftest.$ac_ext
15107 rm -f conftest.$ac_objext conftest.$ac_ext
15110 if test "$cf_cv_header_stdbool_h" = 1
15111 then echo "$as_me:15111: result: yes" >&5
15112 echo "${ECHO_T}yes" >&6
15113 else echo "$as_me:15113: result: no" >&5
15114 echo "${ECHO_T}no" >&6
15117 echo "$as_me:15117: checking for builtin bool type" >&5
15118 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
15120 if test "${cf_cv_cc_bool_type+set}" = set; then
15121 echo $ECHO_N "(cached) $ECHO_C" >&6
15124 cat >conftest.$ac_ext <<_ACEOF
15125 #line 15125 "configure"
15126 #include "confdefs.h"
15129 #include <sys/types.h>
15139 rm -f conftest.$ac_objext
15140 if { (eval echo "$as_me:15140: \"$ac_compile\"") >&5
15141 (eval $ac_compile) 2>&5
15143 echo "$as_me:15143: \$? = $ac_status" >&5
15144 (exit $ac_status); } &&
15145 { ac_try='test -s conftest.$ac_objext'
15146 { (eval echo "$as_me:15146: \"$ac_try\"") >&5
15147 (eval $ac_try) 2>&5
15149 echo "$as_me:15149: \$? = $ac_status" >&5
15150 (exit $ac_status); }; }; then
15151 cf_cv_cc_bool_type=1
15153 echo "$as_me: failed program was:" >&5
15154 cat conftest.$ac_ext >&5
15155 cf_cv_cc_bool_type=0
15157 rm -f conftest.$ac_objext conftest.$ac_ext
15161 if test "$cf_cv_cc_bool_type" = 1
15162 then echo "$as_me:15162: result: yes" >&5
15163 echo "${ECHO_T}yes" >&6
15164 else echo "$as_me:15164: result: no" >&5
15165 echo "${ECHO_T}no" >&6
15168 # Check for C++ compiler characteristics (and ensure that it's there!)
15169 if test -n "$CXX" ; then
15171 ac_cpp='$CXXCPP $CPPFLAGS'
15172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15175 ac_main_return=return
15177 if test -n "$GXX" ; then
15178 case $cf_cv_system_name in #(vi
15180 cf_stdcpp_libname=stdcpp
15183 cf_stdcpp_libname=stdc++
15186 echo "$as_me:15186: checking for library $cf_stdcpp_libname" >&5
15187 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
15188 if test "${cf_cv_libstdcpp+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 LIBS="$LIBS -l$cf_stdcpp_libname"
15194 cat >conftest.$ac_ext <<_ACEOF
15195 #line 15195 "configure"
15196 #include "confdefs.h"
15198 #include <strstream.h>
15204 strstreambuf foo(buf, sizeof(buf))
15210 rm -f conftest.$ac_objext conftest$ac_exeext
15211 if { (eval echo "$as_me:15211: \"$ac_link\"") >&5
15212 (eval $ac_link) 2>&5
15214 echo "$as_me:15214: \$? = $ac_status" >&5
15215 (exit $ac_status); } &&
15216 { ac_try='test -s conftest$ac_exeext'
15217 { (eval echo "$as_me:15217: \"$ac_try\"") >&5
15218 (eval $ac_try) 2>&5
15220 echo "$as_me:15220: \$? = $ac_status" >&5
15221 (exit $ac_status); }; }; then
15222 cf_cv_libstdcpp=yes
15224 echo "$as_me: failed program was:" >&5
15225 cat conftest.$ac_ext >&5
15228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15232 echo "$as_me:15232: result: $cf_cv_libstdcpp" >&5
15233 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
15234 test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
15237 echo "$as_me:15237: checking whether $CXX understands -c and -o together" >&5
15238 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
15239 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
15240 echo $ECHO_N "(cached) $ECHO_C" >&6
15243 cat > conftest.$ac_ext <<CF_EOF
15247 ${cf_cv_main_return:-return}(0);
15250 # We do the test twice because some compilers refuse to overwrite an
15251 # existing .o file with -o, though they will create one.
15252 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15253 if { (eval echo "$as_me:15253: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15256 echo "$as_me:15256: \$? = $ac_status" >&5
15257 (exit $ac_status); } &&
15258 test -f conftest2.$ac_objext && { (eval echo "$as_me:15258: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15261 echo "$as_me:15261: \$? = $ac_status" >&5
15262 (exit $ac_status); };
15264 eval cf_cv_prog_CXX_c_o=yes
15266 eval cf_cv_prog_CXX_c_o=no
15271 if test $cf_cv_prog_CXX_c_o = yes; then
15272 echo "$as_me:15272: result: yes" >&5
15273 echo "${ECHO_T}yes" >&6
15275 echo "$as_me:15275: result: no" >&5
15276 echo "${ECHO_T}no" >&6
15279 case $GXX_VERSION in
15285 cf_cxx_library=unknown
15286 case $cf_cv_system_name in #(vi
15294 if test "$GXX" = yes; then
15295 echo "$as_me:15295: checking for lib$cf_gpp_libname" >&5
15296 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
15298 LIBS="$LIBS -l$cf_gpp_libname"
15299 cat >conftest.$ac_ext <<_ACEOF
15300 #line 15300 "configure"
15301 #include "confdefs.h"
15303 #include <$cf_gpp_libname/builtin.h>
15308 two_arg_error_handler_t foo2 = lib_error_handler
15313 rm -f conftest.$ac_objext conftest$ac_exeext
15314 if { (eval echo "$as_me:15314: \"$ac_link\"") >&5
15315 (eval $ac_link) 2>&5
15317 echo "$as_me:15317: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
15319 { ac_try='test -s conftest$ac_exeext'
15320 { (eval echo "$as_me:15320: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15323 echo "$as_me:15323: \$? = $ac_status" >&5
15324 (exit $ac_status); }; }; then
15326 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
15327 if test "$cf_gpp_libname" = cpp ; then
15328 cat >>confdefs.h <<\EOF
15329 #define HAVE_GPP_BUILTIN_H 1
15333 cat >>confdefs.h <<\EOF
15334 #define HAVE_GXX_BUILTIN_H 1
15339 echo "$as_me: failed program was:" >&5
15340 cat conftest.$ac_ext >&5
15341 cat >conftest.$ac_ext <<_ACEOF
15342 #line 15342 "configure"
15343 #include "confdefs.h"
15345 #include <builtin.h>
15350 two_arg_error_handler_t foo2 = lib_error_handler
15355 rm -f conftest.$ac_objext conftest$ac_exeext
15356 if { (eval echo "$as_me:15356: \"$ac_link\"") >&5
15357 (eval $ac_link) 2>&5
15359 echo "$as_me:15359: \$? = $ac_status" >&5
15360 (exit $ac_status); } &&
15361 { ac_try='test -s conftest$ac_exeext'
15362 { (eval echo "$as_me:15362: \"$ac_try\"") >&5
15363 (eval $ac_try) 2>&5
15365 echo "$as_me:15365: \$? = $ac_status" >&5
15366 (exit $ac_status); }; }; then
15368 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
15369 cat >>confdefs.h <<\EOF
15370 #define HAVE_BUILTIN_H 1
15374 echo "$as_me: failed program was:" >&5
15375 cat conftest.$ac_ext >&5
15378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15382 echo "$as_me:15382: result: $cf_cxx_library" >&5
15383 echo "${ECHO_T}$cf_cxx_library" >&6
15393 ac_cpp='$CXXCPP $CPPFLAGS'
15394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15397 ac_main_return=return
15398 echo "$as_me:15398: checking how to run the C++ preprocessor" >&5
15399 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15400 if test -z "$CXXCPP"; then
15401 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15402 echo $ECHO_N "(cached) $ECHO_C" >&6
15404 # Double quotes because CXXCPP needs to be expanded
15405 for CXXCPP in "$CXX -E" "/lib/cpp"
15407 ac_preproc_ok=false
15408 for ac_cxx_preproc_warn_flag in '' yes
15410 # Use a header file that comes with gcc, so configuring glibc
15411 # with a fresh cross-compiler works.
15412 # On the NeXT, cc -E runs the code through the compiler's parser,
15413 # not just through cpp. "Syntax error" is here to catch this case.
15414 cat >conftest.$ac_ext <<_ACEOF
15415 #line 15415 "configure"
15416 #include "confdefs.h"
15417 #include <assert.h>
15420 if { (eval echo "$as_me:15420: \"$ac_cpp conftest.$ac_ext\"") >&5
15421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15423 egrep -v '^ *\+' conftest.er1 >conftest.err
15425 cat conftest.err >&5
15426 echo "$as_me:15426: \$? = $ac_status" >&5
15427 (exit $ac_status); } >/dev/null; then
15428 if test -s conftest.err; then
15429 ac_cpp_err=$ac_cxx_preproc_warn_flag
15436 if test -z "$ac_cpp_err"; then
15439 echo "$as_me: failed program was:" >&5
15440 cat conftest.$ac_ext >&5
15441 # Broken: fails on valid input.
15444 rm -f conftest.err conftest.$ac_ext
15446 # OK, works on sane cases. Now check whether non-existent headers
15447 # can be detected and how.
15448 cat >conftest.$ac_ext <<_ACEOF
15449 #line 15449 "configure"
15450 #include "confdefs.h"
15451 #include <ac_nonexistent.h>
15453 if { (eval echo "$as_me:15453: \"$ac_cpp conftest.$ac_ext\"") >&5
15454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15456 egrep -v '^ *\+' conftest.er1 >conftest.err
15458 cat conftest.err >&5
15459 echo "$as_me:15459: \$? = $ac_status" >&5
15460 (exit $ac_status); } >/dev/null; then
15461 if test -s conftest.err; then
15462 ac_cpp_err=$ac_cxx_preproc_warn_flag
15469 if test -z "$ac_cpp_err"; then
15470 # Broken: success on invalid input.
15473 echo "$as_me: failed program was:" >&5
15474 cat conftest.$ac_ext >&5
15475 # Passes both tests.
15479 rm -f conftest.err conftest.$ac_ext
15482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15483 rm -f conftest.err conftest.$ac_ext
15484 if $ac_preproc_ok; then
15489 ac_cv_prog_CXXCPP=$CXXCPP
15492 CXXCPP=$ac_cv_prog_CXXCPP
15494 ac_cv_prog_CXXCPP=$CXXCPP
15496 echo "$as_me:15496: result: $CXXCPP" >&5
15497 echo "${ECHO_T}$CXXCPP" >&6
15498 ac_preproc_ok=false
15499 for ac_cxx_preproc_warn_flag in '' yes
15501 # Use a header file that comes with gcc, so configuring glibc
15502 # with a fresh cross-compiler works.
15503 # On the NeXT, cc -E runs the code through the compiler's parser,
15504 # not just through cpp. "Syntax error" is here to catch this case.
15505 cat >conftest.$ac_ext <<_ACEOF
15506 #line 15506 "configure"
15507 #include "confdefs.h"
15508 #include <assert.h>
15511 if { (eval echo "$as_me:15511: \"$ac_cpp conftest.$ac_ext\"") >&5
15512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15514 egrep -v '^ *\+' conftest.er1 >conftest.err
15516 cat conftest.err >&5
15517 echo "$as_me:15517: \$? = $ac_status" >&5
15518 (exit $ac_status); } >/dev/null; then
15519 if test -s conftest.err; then
15520 ac_cpp_err=$ac_cxx_preproc_warn_flag
15527 if test -z "$ac_cpp_err"; then
15530 echo "$as_me: failed program was:" >&5
15531 cat conftest.$ac_ext >&5
15532 # Broken: fails on valid input.
15535 rm -f conftest.err conftest.$ac_ext
15537 # OK, works on sane cases. Now check whether non-existent headers
15538 # can be detected and how.
15539 cat >conftest.$ac_ext <<_ACEOF
15540 #line 15540 "configure"
15541 #include "confdefs.h"
15542 #include <ac_nonexistent.h>
15544 if { (eval echo "$as_me:15544: \"$ac_cpp conftest.$ac_ext\"") >&5
15545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15547 egrep -v '^ *\+' conftest.er1 >conftest.err
15549 cat conftest.err >&5
15550 echo "$as_me:15550: \$? = $ac_status" >&5
15551 (exit $ac_status); } >/dev/null; then
15552 if test -s conftest.err; then
15553 ac_cpp_err=$ac_cxx_preproc_warn_flag
15560 if test -z "$ac_cpp_err"; then
15561 # Broken: success on invalid input.
15564 echo "$as_me: failed program was:" >&5
15565 cat conftest.$ac_ext >&5
15566 # Passes both tests.
15570 rm -f conftest.err conftest.$ac_ext
15573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15574 rm -f conftest.err conftest.$ac_ext
15575 if $ac_preproc_ok; then
15578 { { echo "$as_me:15578: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
15579 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
15580 { (exit 1); exit 1; }; }
15584 ac_cpp='$CXXCPP $CPPFLAGS'
15585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15588 ac_main_return=return
15590 for ac_header in iostream typeinfo
15592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15593 echo "$as_me:15593: checking for $ac_header" >&5
15594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15598 cat >conftest.$ac_ext <<_ACEOF
15599 #line 15599 "configure"
15600 #include "confdefs.h"
15601 #include <$ac_header>
15603 if { (eval echo "$as_me:15603: \"$ac_cpp conftest.$ac_ext\"") >&5
15604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15606 egrep -v '^ *\+' conftest.er1 >conftest.err
15608 cat conftest.err >&5
15609 echo "$as_me:15609: \$? = $ac_status" >&5
15610 (exit $ac_status); } >/dev/null; then
15611 if test -s conftest.err; then
15612 ac_cpp_err=$ac_cxx_preproc_warn_flag
15619 if test -z "$ac_cpp_err"; then
15620 eval "$as_ac_Header=yes"
15622 echo "$as_me: failed program was:" >&5
15623 cat conftest.$ac_ext >&5
15624 eval "$as_ac_Header=no"
15626 rm -f conftest.err conftest.$ac_ext
15628 echo "$as_me:15628: result: `eval echo '${'$as_ac_Header'}'`" >&5
15629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15631 cat >>confdefs.h <<EOF
15632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15638 if test x"$ac_cv_header_iostream" = xyes ; then
15639 echo "$as_me:15639: checking if iostream uses std-namespace" >&5
15640 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
15641 cat >conftest.$ac_ext <<_ACEOF
15642 #line 15642 "configure"
15643 #include "confdefs.h"
15645 #include <iostream>
15652 cerr << "testing" << endl;
15658 rm -f conftest.$ac_objext
15659 if { (eval echo "$as_me:15659: \"$ac_compile\"") >&5
15660 (eval $ac_compile) 2>&5
15662 echo "$as_me:15662: \$? = $ac_status" >&5
15663 (exit $ac_status); } &&
15664 { ac_try='test -s conftest.$ac_objext'
15665 { (eval echo "$as_me:15665: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15668 echo "$as_me:15668: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 cf_iostream_namespace=yes
15672 echo "$as_me: failed program was:" >&5
15673 cat conftest.$ac_ext >&5
15674 cf_iostream_namespace=no
15676 rm -f conftest.$ac_objext conftest.$ac_ext
15677 echo "$as_me:15677: result: $cf_iostream_namespace" >&5
15678 echo "${ECHO_T}$cf_iostream_namespace" >&6
15679 if test "$cf_iostream_namespace" = yes ; then
15680 cat >>confdefs.h <<\EOF
15681 #define IOSTREAM_NAMESPACE 1
15687 echo "$as_me:15687: checking if we should include stdbool.h" >&5
15688 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
15690 if test "${cf_cv_header_stdbool_h+set}" = set; then
15691 echo $ECHO_N "(cached) $ECHO_C" >&6
15694 cat >conftest.$ac_ext <<_ACEOF
15695 #line 15695 "configure"
15696 #include "confdefs.h"
15706 rm -f conftest.$ac_objext
15707 if { (eval echo "$as_me:15707: \"$ac_compile\"") >&5
15708 (eval $ac_compile) 2>&5
15710 echo "$as_me:15710: \$? = $ac_status" >&5
15711 (exit $ac_status); } &&
15712 { ac_try='test -s conftest.$ac_objext'
15713 { (eval echo "$as_me:15713: \"$ac_try\"") >&5
15714 (eval $ac_try) 2>&5
15716 echo "$as_me:15716: \$? = $ac_status" >&5
15717 (exit $ac_status); }; }; then
15718 cf_cv_header_stdbool_h=0
15720 echo "$as_me: failed program was:" >&5
15721 cat conftest.$ac_ext >&5
15722 cat >conftest.$ac_ext <<_ACEOF
15723 #line 15723 "configure"
15724 #include "confdefs.h"
15727 #include <stdbool.h>
15738 rm -f conftest.$ac_objext
15739 if { (eval echo "$as_me:15739: \"$ac_compile\"") >&5
15740 (eval $ac_compile) 2>&5
15742 echo "$as_me:15742: \$? = $ac_status" >&5
15743 (exit $ac_status); } &&
15744 { ac_try='test -s conftest.$ac_objext'
15745 { (eval echo "$as_me:15745: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15748 echo "$as_me:15748: \$? = $ac_status" >&5
15749 (exit $ac_status); }; }; then
15750 cf_cv_header_stdbool_h=1
15752 echo "$as_me: failed program was:" >&5
15753 cat conftest.$ac_ext >&5
15754 cf_cv_header_stdbool_h=0
15756 rm -f conftest.$ac_objext conftest.$ac_ext
15758 rm -f conftest.$ac_objext conftest.$ac_ext
15761 if test "$cf_cv_header_stdbool_h" = 1
15762 then echo "$as_me:15762: result: yes" >&5
15763 echo "${ECHO_T}yes" >&6
15764 else echo "$as_me:15764: result: no" >&5
15765 echo "${ECHO_T}no" >&6
15768 echo "$as_me:15768: checking for builtin bool type" >&5
15769 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
15771 if test "${cf_cv_builtin_bool+set}" = set; then
15772 echo $ECHO_N "(cached) $ECHO_C" >&6
15775 cat >conftest.$ac_ext <<_ACEOF
15776 #line 15776 "configure"
15777 #include "confdefs.h"
15780 #include <sys/types.h>
15790 rm -f conftest.$ac_objext
15791 if { (eval echo "$as_me:15791: \"$ac_compile\"") >&5
15792 (eval $ac_compile) 2>&5
15794 echo "$as_me:15794: \$? = $ac_status" >&5
15795 (exit $ac_status); } &&
15796 { ac_try='test -s conftest.$ac_objext'
15797 { (eval echo "$as_me:15797: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15800 echo "$as_me:15800: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802 cf_cv_builtin_bool=1
15804 echo "$as_me: failed program was:" >&5
15805 cat conftest.$ac_ext >&5
15806 cf_cv_builtin_bool=0
15808 rm -f conftest.$ac_objext conftest.$ac_ext
15812 if test "$cf_cv_builtin_bool" = 1
15813 then echo "$as_me:15813: result: yes" >&5
15814 echo "${ECHO_T}yes" >&6
15815 else echo "$as_me:15815: result: no" >&5
15816 echo "${ECHO_T}no" >&6
15819 echo "$as_me:15819: checking for size of bool" >&5
15820 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
15821 if test "${cf_cv_type_of_bool+set}" = set; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15826 if test "$cross_compiling" = yes; then
15827 cf_cv_type_of_bool=unknown
15829 cat >conftest.$ac_ext <<_ACEOF
15830 #line 15830 "configure"
15831 #include "confdefs.h"
15833 #include <stdlib.h>
15836 #if defined(__cplusplus)
15838 #ifdef HAVE_GXX_BUILTIN_H
15839 #include <g++/builtin.h>
15840 #elif HAVE_GPP_BUILTIN_H
15841 #include <gpp/builtin.h>
15842 #elif HAVE_BUILTIN_H
15843 #include <builtin.h>
15848 #if $cf_cv_header_stdbool_h
15849 #include <stdbool.h>
15856 FILE *fp = fopen("cf_test.out", "w");
15859 if ((bool)(-x) >= 0)
15860 fputs("unsigned ", fp);
15861 if (sizeof(x) == sizeof(int)) fputs("int", fp);
15862 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
15863 else if (sizeof(x) == sizeof(short))fputs("short",fp);
15864 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
15867 ${cf_cv_main_return:-return}(0);
15871 rm -f conftest$ac_exeext
15872 if { (eval echo "$as_me:15872: \"$ac_link\"") >&5
15873 (eval $ac_link) 2>&5
15875 echo "$as_me:15875: \$? = $ac_status" >&5
15876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15877 { (eval echo "$as_me:15877: \"$ac_try\"") >&5
15878 (eval $ac_try) 2>&5
15880 echo "$as_me:15880: \$? = $ac_status" >&5
15881 (exit $ac_status); }; }; then
15882 cf_cv_type_of_bool=`cat cf_test.out`
15883 if test -z "$cf_cv_type_of_bool"; then
15884 cf_cv_type_of_bool=unknown
15887 echo "$as_me: program exited with status $ac_status" >&5
15888 echo "$as_me: failed program was:" >&5
15889 cat conftest.$ac_ext >&5
15890 cf_cv_type_of_bool=unknown
15892 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15898 echo "$as_me:15898: result: $cf_cv_type_of_bool" >&5
15899 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
15900 if test "$cf_cv_type_of_bool" = unknown ; then
15901 case .$NCURSES_BOOL in #(vi
15902 .auto|.) NCURSES_BOOL=unsigned;;
15904 { echo "$as_me:15904: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
15905 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
15906 cf_cv_type_of_bool=$NCURSES_BOOL
15909 echo "$as_me:15909: checking for special defines needed for etip.h" >&5
15910 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
15911 cf_save_CXXFLAGS="$CXXFLAGS"
15913 for cf_math in "" MATH_H
15915 for cf_excp in "" MATH_EXCEPTION
15917 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
15918 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
15919 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
15920 cat >conftest.$ac_ext <<_ACEOF
15921 #line 15921 "configure"
15922 #include "confdefs.h"
15924 #include <etip.h.in>
15934 rm -f conftest.$ac_objext
15935 if { (eval echo "$as_me:15935: \"$ac_compile\"") >&5
15936 (eval $ac_compile) 2>&5
15938 echo "$as_me:15938: \$? = $ac_status" >&5
15939 (exit $ac_status); } &&
15940 { ac_try='test -s conftest.$ac_objext'
15941 { (eval echo "$as_me:15941: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15944 echo "$as_me:15944: \$? = $ac_status" >&5
15945 (exit $ac_status); }; }; then
15947 test -n "$cf_math" && cat >>confdefs.h <<EOF
15948 #define ETIP_NEEDS_${cf_math} 1
15951 test -n "$cf_excp" && cat >>confdefs.h <<EOF
15952 #define ETIP_NEEDS_${cf_excp} 1
15955 cf_result="$cf_math $cf_excp"
15959 echo "$as_me: failed program was:" >&5
15960 cat conftest.$ac_ext >&5
15962 rm -f conftest.$ac_objext conftest.$ac_ext
15965 echo "$as_me:15965: result: $cf_result" >&5
15966 echo "${ECHO_T}$cf_result" >&6
15967 CXXFLAGS="$cf_save_CXXFLAGS"
15969 if test -n "$CXX"; then
15970 echo "$as_me:15970: checking if $CXX accepts parameter initialization" >&5
15971 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
15972 if test "${cf_cv_cpp_param_init+set}" = set; then
15973 echo $ECHO_N "(cached) $ECHO_C" >&6
15977 ac_cpp='$CXXCPP $CPPFLAGS'
15978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15981 ac_main_return=return
15983 if test "$cross_compiling" = yes; then
15984 cf_cv_cpp_param_init=unknown
15986 cat >conftest.$ac_ext <<_ACEOF
15987 #line 15987 "configure"
15988 #include "confdefs.h"
15998 TEST::TEST(int x = 1) // some compilers do not like second initializer
16005 rm -f conftest$ac_exeext
16006 if { (eval echo "$as_me:16006: \"$ac_link\"") >&5
16007 (eval $ac_link) 2>&5
16009 echo "$as_me:16009: \$? = $ac_status" >&5
16010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16011 { (eval echo "$as_me:16011: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5
16014 echo "$as_me:16014: \$? = $ac_status" >&5
16015 (exit $ac_status); }; }; then
16016 cf_cv_cpp_param_init=yes
16018 echo "$as_me: program exited with status $ac_status" >&5
16019 echo "$as_me: failed program was:" >&5
16020 cat conftest.$ac_ext >&5
16021 cf_cv_cpp_param_init=no
16023 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16026 ac_cpp='$CXXCPP $CPPFLAGS'
16027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16030 ac_main_return=return
16033 echo "$as_me:16033: result: $cf_cv_cpp_param_init" >&5
16034 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
16036 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
16037 #define CPP_HAS_PARAM_INIT 1
16040 if test -n "$CXX"; then
16042 echo "$as_me:16042: checking if $CXX accepts static_cast" >&5
16043 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
16044 if test "${cf_cv_cpp_static_cast+set}" = set; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16049 ac_cpp='$CXXCPP $CPPFLAGS'
16050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16053 ac_main_return=return
16055 cat >conftest.$ac_ext <<_ACEOF
16056 #line 16056 "configure"
16057 #include "confdefs.h"
16062 NCursesPanel(int nlines,
16072 template<class T> class NCursesUserPanel : public NCursesPanel
16075 NCursesUserPanel (int nlines,
16079 const T* p_UserData = static_cast<T*>(0))
16080 : NCursesPanel (nlines, ncols, begin_y, begin_x)
16083 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
16087 virtual ~NCursesUserPanel() {};
16094 const char* p_UserData = static_cast<char*>(0)
16099 rm -f conftest.$ac_objext
16100 if { (eval echo "$as_me:16100: \"$ac_compile\"") >&5
16101 (eval $ac_compile) 2>&5
16103 echo "$as_me:16103: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
16105 { ac_try='test -s conftest.$ac_objext'
16106 { (eval echo "$as_me:16106: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16109 echo "$as_me:16109: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 cf_cv_cpp_static_cast=yes
16113 echo "$as_me: failed program was:" >&5
16114 cat conftest.$ac_ext >&5
16115 cf_cv_cpp_static_cast=no
16117 rm -f conftest.$ac_objext conftest.$ac_ext
16120 ac_cpp='$CXXCPP $CPPFLAGS'
16121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16124 ac_main_return=return
16127 echo "$as_me:16127: result: $cf_cv_cpp_static_cast" >&5
16128 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
16132 test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
16133 #define CPP_HAS_STATIC_CAST 1
16137 CXX_ARFLAGS='$(ARFLAGS)'
16138 case $cf_cv_system_name in #(vi
16140 if test "$GXX" != yes ; then
16142 CXX_ARFLAGS='-ar -o'
16146 CXXLDFLAGS="-u main"
16149 if test "$GXX" != yes ; then
16151 CXX_ARFLAGS='-xar -o'
16158 cf_cv_builtin_bool=1
16160 # Just because we are not configuring against C++ right now does not
16161 # mean that a user will not want to use C++. Some distributors disable
16162 # the C++ portion of this configuration as a shortcut (or just to avoid
16163 # compiling the demo in the c++ directory). So we need a reasonable
16164 # default for the 'bool' type.
16166 # Caveat: since the storage of the bool type is not standardized, it
16169 if test "$NCURSES_BOOL" != auto ; then
16170 cf_cv_type_of_bool=$NCURSES_BOOL
16171 cf_cv_header_stdbool_h=0
16173 if test "$cf_cv_header_stdbool_h" = 1 ; then
16175 echo "$as_me:16175: checking for size of bool" >&5
16176 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
16177 if test "${cf_cv_type_of_bool+set}" = set; then
16178 echo $ECHO_N "(cached) $ECHO_C" >&6
16182 if test "$cross_compiling" = yes; then
16183 cf_cv_type_of_bool=unknown
16185 cat >conftest.$ac_ext <<_ACEOF
16186 #line 16186 "configure"
16187 #include "confdefs.h"
16189 #include <stdlib.h>
16192 #if defined(__cplusplus)
16194 #ifdef HAVE_GXX_BUILTIN_H
16195 #include <g++/builtin.h>
16196 #elif HAVE_GPP_BUILTIN_H
16197 #include <gpp/builtin.h>
16198 #elif HAVE_BUILTIN_H
16199 #include <builtin.h>
16204 #if $cf_cv_header_stdbool_h
16205 #include <stdbool.h>
16212 FILE *fp = fopen("cf_test.out", "w");
16215 if ((bool)(-x) >= 0)
16216 fputs("unsigned ", fp);
16217 if (sizeof(x) == sizeof(int)) fputs("int", fp);
16218 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
16219 else if (sizeof(x) == sizeof(short))fputs("short",fp);
16220 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
16223 ${cf_cv_main_return:-return}(0);
16227 rm -f conftest$ac_exeext
16228 if { (eval echo "$as_me:16228: \"$ac_link\"") >&5
16229 (eval $ac_link) 2>&5
16231 echo "$as_me:16231: \$? = $ac_status" >&5
16232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16233 { (eval echo "$as_me:16233: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16236 echo "$as_me:16236: \$? = $ac_status" >&5
16237 (exit $ac_status); }; }; then
16238 cf_cv_type_of_bool=`cat cf_test.out`
16239 if test -z "$cf_cv_type_of_bool"; then
16240 cf_cv_type_of_bool=unknown
16243 echo "$as_me: program exited with status $ac_status" >&5
16244 echo "$as_me: failed program was:" >&5
16245 cat conftest.$ac_ext >&5
16246 cf_cv_type_of_bool=unknown
16248 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16254 echo "$as_me:16254: result: $cf_cv_type_of_bool" >&5
16255 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
16256 if test "$cf_cv_type_of_bool" = unknown ; then
16257 case .$NCURSES_BOOL in #(vi
16258 .auto|.) NCURSES_BOOL=unsigned;;
16260 { echo "$as_me:16260: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
16261 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
16262 cf_cv_type_of_bool=$NCURSES_BOOL
16266 echo "$as_me:16266: checking for fallback type of bool" >&5
16267 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
16268 case "$host_cpu" in #(vi
16269 i?86) cf_cv_type_of_bool=char ;; #(vi
16270 *) cf_cv_type_of_bool=int ;;
16272 echo "$as_me:16272: result: $cf_cv_type_of_bool" >&5
16273 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
16278 # If the C compiler did not declare bool, and we did not determine that the C++
16279 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
16280 # ncurses library use the same type as C++ bool. Note that this allows one to
16281 # specify the type of bool in a configure-script option and postpone
16282 # integration with the C++ compiler provided that the types are compatible.
16284 if test $cf_cv_cc_bool_type = 1
16286 # oops: C has a bool. Unlikely, but C++ could differ.
16288 elif test $cf_cv_builtin_bool = 0
16293 # this is the normal case
16294 USE_CXX_BOOL='defined(__cplusplus)'
16297 if test -f "${srcdir}/Ada95/Makefile.in" ; then
16299 if test "$cf_with_ada" != "no" ; then
16300 if test "$with_libtool" != "no"; then
16301 { echo "$as_me:16301: WARNING: libtool does not support Ada - disabling feature" >&5
16302 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
16307 if test "$cf_with_ada" != "no" ; then
16308 cf_ada_make=gnatmake
16309 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
16310 set dummy $cf_ada_make; ac_word=$2
16311 echo "$as_me:16311: checking for $ac_word" >&5
16312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16313 if test "${ac_cv_prog_gnat_exists+set}" = set; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16316 if test -n "$gnat_exists"; then
16317 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
16319 ac_save_IFS=$IFS; IFS=$ac_path_separator
16321 for ac_dir in $ac_dummy; do
16323 test -z "$ac_dir" && ac_dir=.
16324 $as_executable_p "$ac_dir/$ac_word" || continue
16325 ac_cv_prog_gnat_exists="yes"
16326 echo "$as_me:16326: found $ac_dir/$ac_word" >&5
16330 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
16333 gnat_exists=$ac_cv_prog_gnat_exists
16334 if test -n "$gnat_exists"; then
16335 echo "$as_me:16335: result: $gnat_exists" >&5
16336 echo "${ECHO_T}$gnat_exists" >&6
16338 echo "$as_me:16338: result: no" >&5
16339 echo "${ECHO_T}no" >&6
16342 if test "$ac_cv_prog_gnat_exists" = no; then
16346 echo "$as_me:16346: checking for gnat version" >&5
16347 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
16348 cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
16349 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
16350 echo "$as_me:16350: result: $cf_gnat_version" >&5
16351 echo "${ECHO_T}$cf_gnat_version" >&6
16353 case $cf_gnat_version in
16354 3.1[1-9]*|3.[2-9]*|[4-9].*)
16355 cf_cv_prog_gnat_correct=yes
16357 *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
16358 cf_cv_prog_gnat_correct=no
16361 case $cf_gnat_version in
16363 cf_compile_generics=generics
16364 cf_generic_objects="\${GENOBJS}"
16366 *) cf_compile_generics=
16367 cf_generic_objects=
16371 # Extract the first word of "m4", so it can be a program name with args.
16372 set dummy m4; ac_word=$2
16373 echo "$as_me:16373: checking for $ac_word" >&5
16374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16375 if test "${ac_cv_prog_M4_exists+set}" = set; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16378 if test -n "$M4_exists"; then
16379 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
16381 ac_save_IFS=$IFS; IFS=$ac_path_separator
16383 for ac_dir in $ac_dummy; do
16385 test -z "$ac_dir" && ac_dir=.
16386 $as_executable_p "$ac_dir/$ac_word" || continue
16387 ac_cv_prog_M4_exists="yes"
16388 echo "$as_me:16388: found $ac_dir/$ac_word" >&5
16392 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
16395 M4_exists=$ac_cv_prog_M4_exists
16396 if test -n "$M4_exists"; then
16397 echo "$as_me:16397: result: $M4_exists" >&5
16398 echo "${ECHO_T}$M4_exists" >&6
16400 echo "$as_me:16400: result: no" >&5
16401 echo "${ECHO_T}no" >&6
16404 if test "$ac_cv_prog_M4_exists" = no; then
16405 cf_cv_prog_gnat_correct=no
16406 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
16408 if test "$cf_cv_prog_gnat_correct" = yes; then
16409 echo "$as_me:16409: checking if GNAT works" >&5
16410 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
16413 cat >>conftest.ads <<CF_EOF
16414 procedure conftest;
16416 cat >>conftest.adb <<CF_EOF
16419 procedure conftest is
16421 Text_IO.Put ("Hello World");
16423 GNAT.OS_Lib.OS_Exit (0);
16426 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
16427 if ( ./conftest 1>&5 2>&1 ) ; then
16428 cf_cv_prog_gnat_correct=yes
16430 cf_cv_prog_gnat_correct=no
16433 cf_cv_prog_gnat_correct=no
16437 echo "$as_me:16437: result: $cf_cv_prog_gnat_correct" >&5
16438 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
16441 if test "$cf_cv_prog_gnat_correct" = yes; then
16442 ADAFLAGS="-O3 -gnatpn $ADAFLAGS"
16444 echo "$as_me:16444: checking if GNAT pragma Unreferenced works" >&5
16445 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
16448 cat >>conftest.ads <<CF_EOF
16449 procedure conftest;
16451 cat >>conftest.adb <<CF_EOF
16454 procedure conftest is
16456 pragma Unreferenced (test);
16459 Text_IO.Put ("Hello World");
16461 GNAT.OS_Lib.OS_Exit (0);
16464 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
16465 cf_cv_pragma_unreferenced=yes
16467 cf_cv_pragma_unreferenced=no
16471 echo "$as_me:16471: result: $cf_cv_pragma_unreferenced" >&5
16472 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
16474 # if the pragma is supported, use it (needed in the Trace code).
16475 if test $cf_cv_pragma_unreferenced = yes ; then
16481 # Check whether --with-ada-compiler or --without-ada-compiler was given.
16482 if test "${with_ada_compiler+set}" = set; then
16483 withval="$with_ada_compiler"
16484 cf_ada_compiler=$withval
16486 cf_ada_compiler=gnatmake
16489 cf_ada_package=terminal_interface
16491 # Check whether --with-ada-include or --without-ada-include was given.
16492 if test "${with_ada_include+set}" = set; then
16493 withval="$with_ada_include"
16496 withval="${ADA_INCLUDE-$prefix/lib/ada/adainclude}"
16497 fi; if test -n "$prefix/lib/ada/adainclude" ; then
16499 if test "x$prefix" != xNONE; then
16500 cf_path_syntax="$prefix"
16502 cf_path_syntax="$ac_default_prefix"
16505 case ".$withval" in #(vi
16506 .\$\(*\)*|.\'*\'*) #(vi
16510 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
16512 .\${*prefix}*) #(vi
16513 eval withval="$withval"
16514 case ".$withval" in #(vi
16516 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16521 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16524 { { echo "$as_me:16524: error: expected a pathname, not \"$withval\"" >&5
16525 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
16526 { (exit 1); exit 1; }; }
16531 ADA_INCLUDE="$withval"
16533 # Check whether --with-ada-objects or --without-ada-objects was given.
16534 if test "${with_ada_objects+set}" = set; then
16535 withval="$with_ada_objects"
16538 withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
16539 fi; if test -n "$prefix/lib/ada/adalib" ; then
16541 if test "x$prefix" != xNONE; then
16542 cf_path_syntax="$prefix"
16544 cf_path_syntax="$ac_default_prefix"
16547 case ".$withval" in #(vi
16548 .\$\(*\)*|.\'*\'*) #(vi
16552 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
16554 .\${*prefix}*) #(vi
16555 eval withval="$withval"
16556 case ".$withval" in #(vi
16558 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16563 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16566 { { echo "$as_me:16566: error: expected a pathname, not \"$withval\"" >&5
16567 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
16568 { (exit 1); exit 1; }; }
16573 ADA_OBJECTS="$withval"
16581 ### Construct the ncurses library-subsets, if any, from this set of keywords:
16582 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
16584 ### ticlib modules may be a separate library, otherwise contained in termlib.
16585 ### termlib modules may be a separate library, otherwise contained in ncurses.
16587 ### The of "+" or " " between the tokens controls the way the script
16588 ### chooses to split module lists into libraries.
16590 ### (see CF_LIB_RULES).
16591 echo "$as_me:16591: checking for library subsets" >&5
16592 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
16595 if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
16596 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
16597 if test "$with_ticlib" != no ; then
16598 LIB_SUBSETS="${LIB_SUBSETS} "
16600 LIB_SUBSETS="${LIB_SUBSETS}+"
16604 LIB_SUBSETS="${LIB_SUBSETS}termlib+port_drivers"
16606 case $cf_cv_system_name in #(vi
16608 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
16611 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
16615 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
16616 if test "$with_termlib" != no ; then
16617 LIB_SUBSETS="${LIB_SUBSETS} "
16619 LIB_SUBSETS="${LIB_SUBSETS}+"
16622 LIB_SUBSETS="${LIB_SUBSETS}base"
16624 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
16625 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
16627 echo "$as_me:16627: result: $LIB_SUBSETS" >&5
16628 echo "${ECHO_T}$LIB_SUBSETS" >&6
16630 ### Construct the list of include-directories to be generated
16632 CPPFLAGS="$CPPFLAGS -I. -I../include"
16633 if test "$srcdir" != "."; then
16634 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
16636 if test "$GCC" != yes; then
16637 CPPFLAGS="$CPPFLAGS -I\${includedir}"
16638 elif test "$includedir" != "/usr/include"; then
16639 if test "$includedir" = '${prefix}/include' ; then
16640 if test $prefix != /usr ; then
16641 CPPFLAGS="$CPPFLAGS -I\${includedir}"
16644 CPPFLAGS="$CPPFLAGS -I\${includedir}"
16648 ACPPFLAGS="-I. -I../../include $ACPPFLAGS"
16649 if test "$srcdir" != "."; then
16650 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
16652 if test "$GCC" != yes; then
16653 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
16654 elif test "$includedir" != "/usr/include"; then
16655 if test "$includedir" = '${prefix}/include' ; then
16656 if test $prefix != /usr ; then
16657 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
16660 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
16664 ### Build up pieces for makefile rules
16665 echo "$as_me:16665: checking default library suffix" >&5
16666 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
16668 case $DFT_LWR_MODEL in
16669 libtool) DFT_ARG_SUFFIX='' ;;
16670 normal) DFT_ARG_SUFFIX='' ;;
16671 debug) DFT_ARG_SUFFIX='_g' ;;
16672 profile) DFT_ARG_SUFFIX='_p' ;;
16673 shared) DFT_ARG_SUFFIX='' ;;
16675 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
16676 echo "$as_me:16676: result: $DFT_ARG_SUFFIX" >&5
16677 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
16679 echo "$as_me:16679: checking default library-dependency suffix" >&5
16680 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
16682 case $DFT_LWR_MODEL in #(vi
16684 DFT_LIB_SUFFIX='.la'
16685 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16688 DFT_LIB_SUFFIX='.a'
16689 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16692 DFT_LIB_SUFFIX='_g.a'
16693 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16696 DFT_LIB_SUFFIX='_p.a'
16697 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16700 case $cf_cv_system_name in
16702 DFT_LIB_SUFFIX='.a'
16703 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16706 DFT_LIB_SUFFIX='.dll'
16707 DFT_DEP_SUFFIX='.dll.a'
16710 DFT_LIB_SUFFIX='.dylib'
16711 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16716 DFT_LIB_SUFFIX='.so'
16717 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16720 DFT_LIB_SUFFIX='.sl'
16721 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16725 *) DFT_LIB_SUFFIX='.so'
16726 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16730 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
16731 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
16732 echo "$as_me:16732: result: $DFT_DEP_SUFFIX" >&5
16733 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
16735 echo "$as_me:16735: checking default object directory" >&5
16736 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
16738 case $DFT_LWR_MODEL in
16739 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
16740 normal) DFT_OBJ_SUBDIR='objects' ;;
16741 debug) DFT_OBJ_SUBDIR='obj_g' ;;
16742 profile) DFT_OBJ_SUBDIR='obj_p' ;;
16744 case $cf_cv_system_name in #(vi
16746 DFT_OBJ_SUBDIR='objects' ;;
16748 DFT_OBJ_SUBDIR='obj_s' ;;
16751 echo "$as_me:16751: result: $DFT_OBJ_SUBDIR" >&5
16752 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
16754 # libtool thinks it can make c++ shared libraries (perhaps only g++)
16755 if test "$cf_with_cxx" = yes ; then
16756 echo "$as_me:16756: checking c++ library-dependency suffix" >&5
16757 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
16758 if test "$with_libtool" != "no"; then
16759 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
16762 case normal in #(vi
16764 CXX_LIB_SUFFIX='.la'
16765 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16768 CXX_LIB_SUFFIX='.a'
16769 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16772 CXX_LIB_SUFFIX='_g.a'
16773 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16776 CXX_LIB_SUFFIX='_p.a'
16777 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16780 case $cf_cv_system_name in
16782 CXX_LIB_SUFFIX='.a'
16783 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16786 CXX_LIB_SUFFIX='.dll'
16787 CXX_DEP_SUFFIX='.dll.a'
16790 CXX_LIB_SUFFIX='.dylib'
16791 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16796 CXX_LIB_SUFFIX='.so'
16797 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16800 CXX_LIB_SUFFIX='.sl'
16801 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16805 *) CXX_LIB_SUFFIX='.so'
16806 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16810 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
16811 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
16813 echo "$as_me:16813: result: $CXX_LIB_SUFFIX" >&5
16814 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
16818 # do not want -ldl in build except as needed for -lncurses dependency
16819 if test "$with_dlsym" = yes ; then
16820 if test $DFT_LWR_MODEL = shared || \
16821 test $DFT_LWR_MODEL = libtool ; then
16823 # remove dl library from $LIBS
16824 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
16828 ### Set up low-level terminfo dependencies for makefiles.
16830 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
16831 # do not need libdl
16833 if test "$with_dlsym" = yes ; then
16835 # remove dl library from $SHLIB_LIST
16836 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
16840 if test "$with_ticlib" != no ; then
16842 if test "$with_ticlib" != yes ; then
16843 TICS_NAME=$with_ticlib
16844 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
16845 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
16846 TICS_LIB_SUFFIX="${with_ticlib}"
16848 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
16849 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
16850 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
16852 TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}"
16854 TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
16857 if test "$with_termlib" != no ; then
16859 if test "$with_termlib" != yes ; then
16860 TINFO_NAME=$with_termlib
16861 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
16862 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
16863 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
16864 TINFO_LIB_SUFFIX="${with_termlib}"
16866 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
16867 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
16868 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
16869 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
16872 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
16873 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
16874 if test "$DFT_LWR_MODEL" = "libtool"; then
16875 TEST_ARGS="${TEST_DEPS}"
16876 TEST_ARG2="${TEST_DEP2}"
16877 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
16878 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
16879 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
16881 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
16882 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
16883 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
16884 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
16885 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
16888 # the next lines are needed for linking libtic over libncurses
16889 TINFO_NAME=${LIB_NAME}
16890 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
16891 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
16892 if test "$with_tic_depends" = yes ; then
16893 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
16895 TICS_LIST="$SHLIB_LIST"
16898 TINFO_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
16901 if test "$DFT_LWR_MODEL" = shared ; then
16902 case $cf_cv_system_name in #(vi
16904 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
16910 if test "$with_dlsym" = yes ; then
16912 # remove dl library from $TICS_LIST
16913 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
16917 if test "$DFT_LWR_MODEL" = "libtool"; then
16922 TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`
16924 case $DFT_LWR_MODEL in
16925 normal|debug|profile)
16927 if test "$GCC" = yes ; then
16928 case $cf_cv_system_name in #(
16929 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
16933 *) #( normally, except when broken
16934 LDFLAGS_STATIC=-static
16935 LDFLAGS_SHARED=-dynamic
16939 case $cf_cv_system_name in #(
16940 aix[456]*) #( from ld manpage
16941 LDFLAGS_STATIC=-bstatic
16942 LDFLAGS_SHARED=-bdynamic
16944 hpux*) #( from ld manpage for hpux10.20, hpux11.11
16945 # We could also use just "archive" and "shared".
16946 LDFLAGS_STATIC=-Wl,-a,archive_shared
16947 LDFLAGS_SHARED=-Wl,-a,shared_archive
16949 irix*) #( from ld manpage IRIX64
16950 LDFLAGS_STATIC=-Bstatic
16951 LDFLAGS_SHARED=-Bdynamic
16953 osf[45]*) #( from ld manpage osf4.0d, osf5.1
16954 # alternative "-oldstyle_liblookup" (not in cc manpage)
16955 LDFLAGS_STATIC=-noso
16956 LDFLAGS_SHARED=-so_archive
16959 LDFLAGS_STATIC=-Bstatic
16960 LDFLAGS_SHARED=-Bdynamic
16968 echo "$as_me:16968: checking where we will install curses.h" >&5
16969 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
16970 test "$with_overwrite" = no && \
16971 test "x$includedir" = 'x${prefix}/include' && \
16972 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
16973 echo "$as_me:16973: result: $includedir" >&5
16974 echo "${ECHO_T}$includedir" >&6
16976 ### Resolve a conflict between normal and wide-curses by forcing applications
16977 ### that will need libutf8 to add it to their configure script.
16978 if test "$with_overwrite" != no ; then
16979 if test "$NCURSES_LIBUTF8" = 1 ; then
16980 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
16981 { echo "$as_me:16981: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
16982 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
16985 WITH_OVERWRITE=$with_overwrite
16987 # used to separate tack out of the tree
16990 ### predefined stuff for the test programs
16991 cat >>confdefs.h <<\EOF
16992 #define HAVE_SLK_COLOR 1
16995 ### Construct the list of subdirectories for which we'll customize makefiles
16996 ### with the appropriate compile-rules.
16998 echo "$as_me:16998: checking for src modules" >&5
16999 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
17001 # dependencies and linker-arguments for test-programs
17002 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
17003 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
17004 if test "$DFT_LWR_MODEL" = "libtool"; then
17005 TEST_ARGS="${TEST_DEPS}"
17006 TEST_ARG2="${TEST_DEP2}"
17008 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
17009 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
17013 for cf_dir in $modules_to_build
17015 if test -f $srcdir/$cf_dir/modules; then
17017 # We may/may not have tack in the distribution, though the
17019 if test $cf_dir = tack ; then
17020 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
17025 if test -z "$cf_cv_src_modules"; then
17026 cf_cv_src_modules=$cf_dir
17028 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
17031 # Make the ncurses_cfg.h file record the library interface files as
17032 # well. These are header files that are the same name as their
17033 # directory. Ncurses is the only library that does not follow
17035 if test $cf_dir = tack ; then
17037 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
17039 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17041 cat >>confdefs.h <<EOF
17042 #define HAVE_${cf_have_include}_H 1
17045 cat >>confdefs.h <<EOF
17046 #define HAVE_LIB${cf_have_include} 1
17049 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
17050 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
17051 if test "$DFT_LWR_MODEL" = "libtool"; then
17052 TEST_ARGS="${TEST_DEPS}"
17053 TEST_ARG2="${TEST_DEP2}"
17055 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
17056 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
17061 echo "$as_me:17061: result: $cf_cv_src_modules" >&5
17062 echo "${ECHO_T}$cf_cv_src_modules" >&6
17064 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
17065 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
17068 if test "x$cf_with_manpages" != xno ; then
17069 SRC_SUBDIRS="$SRC_SUBDIRS man"
17071 SRC_SUBDIRS="$SRC_SUBDIRS include"
17072 for cf_dir in $cf_cv_src_modules
17074 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
17076 SRC_SUBDIRS="$SRC_SUBDIRS test"
17077 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
17078 test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
17081 if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
17082 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
17083 ADA_SUBDIRS="gen src samples"
17087 for cf_dir in $SRC_SUBDIRS
17089 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
17092 if test -n "$ADA_SUBDIRS"; then
17093 for cf_dir in $ADA_SUBDIRS
17095 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
17100 if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
17101 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
17105 for cf_item in $cf_list_models
17109 libtool) cf_subdir='obj_lo' ;;
17110 normal) cf_subdir='objects' ;;
17111 debug) cf_subdir='obj_g' ;;
17112 profile) cf_subdir='obj_p' ;;
17114 case $cf_cv_system_name in #(vi
17116 cf_subdir='objects' ;;
17118 cf_subdir='obj_s' ;;
17122 for cf_item2 in $DIRS_TO_MAKE
17124 test $cf_item2 = $cf_subdir && break
17126 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
17128 for cf_dir in $DIRS_TO_MAKE
17130 test ! -d $cf_dir && mkdir $cf_dir
17133 cat >>confdefs.h <<EOF
17134 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
17137 cat >>confdefs.h <<EOF
17138 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
17141 ### Now that we're done running tests, add the compiler-warnings, if any
17146 cf_new_extra_cppflags=
17148 for cf_add_cflags in $EXTRA_CFLAGS
17150 case $cf_fix_cppflags in
17152 case $cf_add_cflags in #(vi
17153 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
17154 case $cf_add_cflags in
17156 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17158 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
17159 && test -z "${cf_tst_cflags}" \
17160 && cf_fix_cppflags=yes
17162 if test $cf_fix_cppflags = yes ; then
17163 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17165 elif test "${cf_tst_cflags}" = "\"'" ; then
17166 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17171 case "$CPPFLAGS" in
17172 *$cf_add_cflags) #(vi
17175 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17180 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17185 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17187 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17189 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
17190 && test -z "${cf_tst_cflags}" \
17191 && cf_fix_cppflags=no
17196 if test -n "$cf_new_cflags" ; then
17198 CFLAGS="$CFLAGS $cf_new_cflags"
17201 if test -n "$cf_new_cppflags" ; then
17203 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17206 if test -n "$cf_new_extra_cppflags" ; then
17208 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17211 ### If we're building with rpath, try to link non-standard libs that way too.
17212 if test "$DFT_LWR_MODEL" = "shared"; then
17214 echo "$as_me:17214: checking for updated LDFLAGS" >&5
17215 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
17216 if test -n "$LDFLAGS" ; then
17217 echo "$as_me:17217: result: maybe" >&5
17218 echo "${ECHO_T}maybe" >&6
17219 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
17221 echo "${as_me-configure}:17221: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
17223 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
17225 echo "${as_me-configure}:17225: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
17227 case "$EXTRA_LDFLAGS" in #(vi
17229 cf_rpath_hack="-Wl,-rpath,"
17232 cf_rpath_hack="-R "
17241 if test -n "$cf_rpath_hack" ; then
17243 for cf_rpath_src in $LDFLAGS
17245 test -n "$verbose" && echo " Filtering $cf_rpath_src" 1>&6
17247 echo "${as_me-configure}:17247: testing Filtering $cf_rpath_src ..." 1>&5
17249 case $cf_rpath_src in #(vi
17251 if test "$cf_rpath_hack" = "-R " ; then
17252 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e 's%-L%-R %'`
17254 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e s%-L%$cf_rpath_hack%`
17256 test -n "$verbose" && echo " ...Filter $cf_rpath_tmp" 1>&6
17258 echo "${as_me-configure}:17258: testing ...Filter $cf_rpath_tmp ..." 1>&5
17260 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
17263 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
17265 LDFLAGS=$cf_rpath_dst
17266 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
17268 echo "${as_me-configure}:17268: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
17270 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
17272 echo "${as_me-configure}:17272: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
17276 echo "$as_me:17276: result: no" >&5
17277 echo "${ECHO_T}no" >&6
17282 ### Define substitutions for header files to avoid name-pollution
17284 if test "$cf_cv_have_tcgetattr" = yes ; then
17290 if test "$ac_cv_header_termio_h" = yes ; then
17296 if test "$ac_cv_header_termios_h" = yes ; then
17302 ################################################################################
17303 test "$use_database" = yes && \
17304 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
17306 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
17308 if test x"$enable_pc_files" = xyes ; then \
17309 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
17315 ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/ncurses_dll.h include/termcap.h include/unctrl.h $SUB_MAKEFILES Makefile"
17316 ac_config_commands="$ac_config_commands default"
17317 cat >confcache <<\_ACEOF
17318 # This file is a shell script that caches the results of configure
17319 # tests run on this system so they can be shared between configure
17320 # scripts and configure runs, see configure's option --config-cache.
17321 # It is not useful on other systems. If it contains results you don't
17322 # want to keep, you may remove or edit it.
17324 # config.status only pays attention to the cache file if you give it
17325 # the --recheck option to rerun configure.
17327 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17328 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17329 # following values.
17333 # The following way of writing the cache mishandles newlines in values,
17334 # but we know of no workaround that is simple, portable, and efficient.
17335 # So, don't put newlines in cache variables' values.
17336 # Ultrix sh set writes to stderr and can't be redirected directly,
17337 # and sets the high bit in the cache file unless we assign to the vars.
17340 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17342 # `set' does not quote correctly, so add quotes (double-quote
17343 # substitution turns \\\\ into \\, and sed turns \\ into \).
17346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17349 # `set' quotes correctly as required by POSIX, so do not add quotes.
17351 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17358 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17360 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17362 if cmp -s $cache_file confcache; then :; else
17363 if test -w $cache_file; then
17364 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17365 cat confcache >$cache_file
17367 echo "not updating unwritable cache $cache_file"
17372 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17373 # Let make expand exec_prefix.
17374 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17376 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17377 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17378 # trailing colons and then remove the whole line if VPATH becomes empty
17379 # (actually we leave an empty line to preserve line numbers).
17380 if test "x$srcdir" = x.; then
17381 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17382 s/:*\$(srcdir):*/:/;
17383 s/:*\${srcdir}:*/:/;
17385 s/^\([^=]*=[ ]*\):*/\1/;
17391 DEFS=-DHAVE_CONFIG_H
17393 : ${CONFIG_STATUS=./config.status}
17394 ac_clean_files_save=$ac_clean_files
17395 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17396 { echo "$as_me:17396: creating $CONFIG_STATUS" >&5
17397 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17398 cat >$CONFIG_STATUS <<_ACEOF
17400 # Generated automatically by configure.
17401 # Run this file to recreate the current configuration.
17402 # Compiler output produced by configure, useful for debugging
17403 # configure, is in config.log if it exists.
17406 SHELL=\${CONFIG_SHELL-$SHELL}
17407 ac_cs_invocation="\$0 \$@"
17411 cat >>$CONFIG_STATUS <<\_ACEOF
17412 # Be Bourne compatible
17413 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17416 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17420 # Name of the executable.
17421 as_me=`echo "$0" |sed 's,.*[\\/],,'`
17423 if expr a : '\(a\)' >/dev/null 2>&1; then
17429 rm -f conf$$ conf$$.exe conf$$.file
17431 if ln -s conf$$.file conf$$ 2>/dev/null; then
17432 # We could just check for DJGPP; but this test a) works b) is more generic
17433 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17434 if test -f conf$$.exe; then
17435 # Don't use ln at all; we don't have any links
17440 elif ln conf$$.file conf$$ 2>/dev/null; then
17445 rm -f conf$$ conf$$.exe conf$$.file
17447 as_executable_p="test -f"
17449 # Support unset when possible.
17450 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17457 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
17458 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
17459 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
17460 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
17461 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
17462 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
17463 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
17464 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
17467 # We need space, tab and new line, in precisely that order.
17473 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
17479 # Files that config.status was made for.
17480 if test -n "$ac_config_files"; then
17481 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17484 if test -n "$ac_config_headers"; then
17485 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17488 if test -n "$ac_config_links"; then
17489 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17492 if test -n "$ac_config_commands"; then
17493 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17496 cat >>$CONFIG_STATUS <<\EOF
17499 \`$as_me' instantiates files from templates according to the
17500 current configuration.
17502 Usage: $0 [OPTIONS] [FILE]...
17504 -h, --help print this help, then exit
17505 -V, --version print version number, then exit
17506 -d, --debug don't remove temporary files
17507 --recheck update $as_me by reconfiguring in the same conditions
17508 --file=FILE[:TEMPLATE]
17509 instantiate the configuration file FILE
17510 --header=FILE[:TEMPLATE]
17511 instantiate the configuration header FILE
17513 Configuration files:
17516 Configuration headers:
17519 Configuration commands:
17522 Report bugs to <bug-autoconf@gnu.org>."
17525 cat >>$CONFIG_STATUS <<EOF
17528 configured by $0, generated by GNU Autoconf 2.52.20081225,
17529 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17531 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17532 Free Software Foundation, Inc.
17533 This config.status script is free software; the Free Software Foundation
17534 gives unlimited permission to copy, distribute and modify it."
17539 cat >>$CONFIG_STATUS <<\EOF
17540 # If no file are specified by the user, then we need to provide default
17541 # value. By we need to know if files were specified by the user.
17547 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17548 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17550 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17554 *) # This is not an option, so the user has probably given explicit
17556 ac_need_defaults=false;;
17560 # Handling of the options.
17562 cat >>$CONFIG_STATUS <<EOF
17563 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17564 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17565 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17567 cat >>$CONFIG_STATUS <<\EOF
17568 --version | --vers* | -V )
17569 echo "$ac_cs_version"; exit 0 ;;
17571 # Conflict between --help and --header
17572 { { echo "$as_me:17572: error: ambiguous option: $1
17573 Try \`$0 --help' for more information." >&5
17574 echo "$as_me: error: ambiguous option: $1
17575 Try \`$0 --help' for more information." >&2;}
17576 { (exit 1); exit 1; }; };;
17577 --help | --hel | -h )
17578 echo "$ac_cs_usage"; exit 0 ;;
17579 --debug | --d* | -d )
17581 --file | --fil | --fi | --f )
17583 CONFIG_FILES="$CONFIG_FILES $1"
17584 ac_need_defaults=false;;
17585 --header | --heade | --head | --hea )
17587 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17588 ac_need_defaults=false;;
17590 # This is an error.
17591 -*) { { echo "$as_me:17591: error: unrecognized option: $1
17592 Try \`$0 --help' for more information." >&5
17593 echo "$as_me: error: unrecognized option: $1
17594 Try \`$0 --help' for more information." >&2;}
17595 { (exit 1); exit 1; }; } ;;
17597 *) ac_config_targets="$ac_config_targets $1" ;;
17606 ## ----------------------- ##
17607 ## Running config.status. ##
17608 ## ----------------------- ##
17610 This file was extended by $as_me 2.52.20081225, executed with
17611 CONFIG_FILES = $CONFIG_FILES
17612 CONFIG_HEADERS = $CONFIG_HEADERS
17613 CONFIG_LINKS = $CONFIG_LINKS
17614 CONFIG_COMMANDS = $CONFIG_COMMANDS
17615 > $ac_cs_invocation
17616 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17621 cat >>$CONFIG_STATUS <<EOF
17623 # INIT-COMMANDS section.
17626 ### Special initialization commands, used to pass information from the
17627 ### configuration-run into config.status
17630 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
17631 DFT_LWR_MODEL="$DFT_LWR_MODEL"
17632 ECHO_LINK="$ECHO_LINK"
17633 LDCONFIG="$LDCONFIG"
17634 LIB_NAME="$LIB_NAME"
17635 LIB_SUBSETS="$LIB_SUBSETS"
17636 LIB_SUFFIX="$LIB_SUFFIX"
17637 LIB_TRACING="$LIB_TRACING"
17638 MAKE_TERMINFO="$MAKE_TERMINFO"
17639 NCURSES_MAJOR="$NCURSES_MAJOR"
17640 NCURSES_MINOR="$NCURSES_MINOR"
17641 NCURSES_OSPEED="$NCURSES_OSPEED"
17642 NCURSES_PATCH="$NCURSES_PATCH"
17643 SRC_SUBDIRS="$SRC_SUBDIRS"
17644 TERMINFO="$TERMINFO"
17645 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
17646 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
17647 TICS_NAME="$TICS_NAME"
17648 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
17649 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
17650 TINFO_NAME="$TINFO_NAME"
17651 TINFO_SUFFIX="$TINFO_SUFFIX"
17652 WITH_CURSES_H="$with_curses_h"
17653 WITH_ECHO="$with_echo"
17654 WITH_OVERWRITE="$with_overwrite"
17655 cf_LIST_MODELS="$cf_list_models"
17656 cf_cv_abi_version="$cf_cv_abi_version"
17657 cf_cv_do_relink="$cf_cv_do_relink"
17658 cf_cv_do_symlinks="$cf_cv_do_symlinks"
17659 cf_cv_enable_lp64="$cf_cv_enable_lp64"
17660 cf_cv_enable_opaque="$cf_cv_enable_opaque"
17661 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
17662 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
17663 cf_cv_rel_version="$cf_cv_rel_version"
17664 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
17665 cf_cv_shared_soname='$cf_cv_shared_soname'
17666 cf_cv_shlib_version="$cf_cv_shlib_version"
17667 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
17668 cf_cv_system_name="$cf_cv_system_name"
17669 cf_with_cxx_binding="$cf_with_cxx_binding"
17670 cf_with_manpages="$cf_with_manpages"
17676 cat >>$CONFIG_STATUS <<\EOF
17677 for ac_config_target in $ac_config_targets
17679 case "$ac_config_target" in
17680 # Handling of arguments.
17681 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
17682 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
17683 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
17684 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
17685 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
17686 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
17687 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17688 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17689 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
17690 *) { { echo "$as_me:17690: error: invalid argument: $ac_config_target" >&5
17691 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17692 { (exit 1); exit 1; }; };;
17696 # If the user did not use the arguments to specify the items to instantiate,
17697 # then the envvar interface is used. Set only those that are not.
17698 # We use the long form for the default assignment because of an extremely
17699 # bizarre bug on SunOS 4.1.3.
17700 if $ac_need_defaults; then
17701 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17702 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17703 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17706 # Create a temporary directory, and hook for its removal unless debugging.
17709 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17710 trap '{ (exit 1); exit 1; }' 1 2 13 15
17713 # Create a (secure) tmp directory for tmp files.
17716 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17717 test -n "$tmp" && test -d "$tmp"
17720 tmp=$TMPDIR/cs$$-$RANDOM
17721 (umask 077 && mkdir $tmp)
17724 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17725 { (exit 1); exit 1; }
17730 cat >>$CONFIG_STATUS <<EOF
17733 # CONFIG_FILES section.
17736 # No need to generate the scripts if there are no CONFIG_FILES.
17737 # This happens for instance when ./config.status config.h
17738 if test -n "\$CONFIG_FILES"; then
17739 # Protect against being on the right side of a sed subst in config.status.
17740 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17741 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17742 s,@SHELL@,$SHELL,;t t
17743 s,@exec_prefix@,$exec_prefix,;t t
17744 s,@prefix@,$prefix,;t t
17745 s,@program_transform_name@,$program_transform_name,;t t
17746 s,@bindir@,$bindir,;t t
17747 s,@sbindir@,$sbindir,;t t
17748 s,@libexecdir@,$libexecdir,;t t
17749 s,@datadir@,$datadir,;t t
17750 s,@sysconfdir@,$sysconfdir,;t t
17751 s,@sharedstatedir@,$sharedstatedir,;t t
17752 s,@localstatedir@,$localstatedir,;t t
17753 s,@libdir@,$libdir,;t t
17754 s,@includedir@,$includedir,;t t
17755 s,@oldincludedir@,$oldincludedir,;t t
17756 s,@infodir@,$infodir,;t t
17757 s,@mandir@,$mandir,;t t
17758 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17759 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17760 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17761 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17762 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17763 s,@build_alias@,$build_alias,;t t
17764 s,@host_alias@,$host_alias,;t t
17765 s,@target_alias@,$target_alias,;t t
17766 s,@ECHO_C@,$ECHO_C,;t t
17767 s,@ECHO_N@,$ECHO_N,;t t
17768 s,@ECHO_T@,$ECHO_T,;t t
17769 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17770 s,@DEFS@,$DEFS,;t t
17771 s,@LIBS@,$LIBS,;t t
17772 s,@top_builddir@,$top_builddir,;t t
17773 s,@EGREP@,$EGREP,;t t
17774 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
17775 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
17776 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
17777 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
17778 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
17779 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
17780 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
17781 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
17782 s,@build@,$build,;t t
17783 s,@build_cpu@,$build_cpu,;t t
17784 s,@build_vendor@,$build_vendor,;t t
17785 s,@build_os@,$build_os,;t t
17786 s,@host@,$host,;t t
17787 s,@host_cpu@,$host_cpu,;t t
17788 s,@host_vendor@,$host_vendor,;t t
17789 s,@host_os@,$host_os,;t t
17790 s,@target@,$target,;t t
17791 s,@target_cpu@,$target_cpu,;t t
17792 s,@target_vendor@,$target_vendor,;t t
17793 s,@target_os@,$target_os,;t t
17795 s,@CFLAGS@,$CFLAGS,;t t
17796 s,@LDFLAGS@,$LDFLAGS,;t t
17797 s,@CPPFLAGS@,$CPPFLAGS,;t t
17798 s,@ac_ct_CC@,$ac_ct_CC,;t t
17799 s,@EXEEXT@,$EXEEXT,;t t
17800 s,@OBJEXT@,$OBJEXT,;t t
17802 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
17803 s,@PROG_EXT@,$PROG_EXT,;t t
17804 s,@LDCONFIG@,$LDCONFIG,;t t
17806 s,@CXXFLAGS@,$CXXFLAGS,;t t
17807 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17809 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17810 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17811 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17812 s,@LINT@,$LINT,;t t
17813 s,@LINT_OPTS@,$LINT_OPTS,;t t
17814 s,@LN_S@,$LN_S,;t t
17815 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17816 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
17817 s,@SET_MAKE@,$SET_MAKE,;t t
17818 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
17819 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
17820 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
17821 s,@RANLIB@,$RANLIB,;t t
17822 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17824 s,@ac_ct_LD@,$ac_ct_LD,;t t
17826 s,@ac_ct_AR@,$ac_ct_AR,;t t
17827 s,@ARFLAGS@,$ARFLAGS,;t t
17828 s,@DESTDIR@,$DESTDIR,;t t
17829 s,@BUILD_CC@,$BUILD_CC,;t t
17830 s,@BUILD_CPP@,$BUILD_CPP,;t t
17831 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17832 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
17833 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
17834 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
17835 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
17836 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
17837 s,@cf_list_models@,$cf_list_models,;t t
17838 s,@LIBTOOL@,$LIBTOOL,;t t
17839 s,@LT_UNDEF@,$LT_UNDEF,;t t
17840 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
17841 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
17842 s,@LIB_CREATE@,$LIB_CREATE,;t t
17843 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
17844 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
17845 s,@LIB_PREP@,$LIB_PREP,;t t
17846 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
17847 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
17848 s,@LIB_LINK@,$LIB_LINK,;t t
17849 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
17850 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
17851 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
17852 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
17853 s,@TICS_NAME@,$TICS_NAME,;t t
17854 s,@TINFO_NAME@,$TINFO_NAME,;t t
17855 s,@LIB_NAME@,$LIB_NAME,;t t
17856 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
17857 s,@CC_G_OPT@,$CC_G_OPT,;t t
17858 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
17859 s,@LD_MODEL@,$LD_MODEL,;t t
17860 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
17861 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
17862 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
17863 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
17864 s,@LINK_PROGS@,$LINK_PROGS,;t t
17865 s,@LINK_TESTS@,$LINK_TESTS,;t t
17866 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
17867 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
17868 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
17869 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
17870 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
17871 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
17872 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
17873 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
17874 s,@TERMINFO@,$TERMINFO,;t t
17875 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
17876 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
17877 s,@TERMPATH@,$TERMPATH,;t t
17878 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
17879 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
17880 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
17881 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
17882 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
17883 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
17884 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
17885 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
17886 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
17887 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
17888 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
17889 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
17890 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
17891 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
17892 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
17893 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
17894 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
17895 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
17896 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
17897 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
17898 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
17899 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
17900 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
17901 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
17902 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
17903 s,@PTHREAD@,$PTHREAD,;t t
17904 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
17905 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
17906 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
17907 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
17908 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
17909 s,@ECHO_LINK@,$ECHO_LINK,;t t
17910 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
17911 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
17912 s,@ADA_TRACE@,$ADA_TRACE,;t t
17913 s,@MATH_LIB@,$MATH_LIB,;t t
17914 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
17915 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
17916 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
17917 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
17918 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
17919 s,@TEST_LIBS@,$TEST_LIBS,;t t
17920 s,@CXXCPP@,$CXXCPP,;t t
17921 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
17922 s,@CXX_AR@,$CXX_AR,;t t
17923 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
17924 s,@CXXLIBS@,$CXXLIBS,;t t
17925 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
17926 s,@gnat_exists@,$gnat_exists,;t t
17927 s,@M4_exists@,$M4_exists,;t t
17928 s,@cf_ada_make@,$cf_ada_make,;t t
17929 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
17930 s,@cf_ada_package@,$cf_ada_package,;t t
17931 s,@ADAFLAGS@,$ADAFLAGS,;t t
17932 s,@cf_compile_generics@,$cf_compile_generics,;t t
17933 s,@cf_generic_objects@,$cf_generic_objects,;t t
17934 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
17935 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
17936 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
17937 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
17938 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
17939 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
17940 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
17941 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
17942 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
17943 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
17944 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
17945 s,@TICS_ARGS@,$TICS_ARGS,;t t
17946 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
17947 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
17948 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
17949 s,@TINFO_ARGS@,$TINFO_ARGS,;t t
17950 s,@TINFO_ARGS2@,$TINFO_ARGS2,;t t
17951 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
17952 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
17953 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
17954 s,@TICS_LIST@,$TICS_LIST,;t t
17955 s,@TINFO_LIST@,$TINFO_LIST,;t t
17956 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
17957 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
17958 s,@TEST_ARGS@,$TEST_ARGS,;t t
17959 s,@TEST_DEPS@,$TEST_DEPS,;t t
17960 s,@TEST_ARG2@,$TEST_ARG2,;t t
17961 s,@TEST_DEP2@,$TEST_DEP2,;t t
17962 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
17963 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
17964 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
17965 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
17966 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
17967 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
17972 cat >>$CONFIG_STATUS <<\EOF
17973 # Split the substitutions into bite-sized pieces for seds with
17974 # small command number limits, like on Digital OSF/1 and HP-UX.
17975 ac_max_sed_lines=48
17976 ac_sed_frag=1 # Number of current file.
17977 ac_beg=1 # First line for current file.
17978 ac_end=$ac_max_sed_lines # Line after last line for current file.
17981 while $ac_more_lines; do
17982 if test $ac_beg -gt 1; then
17983 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17985 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17987 if test ! -s $tmp/subs.frag; then
17988 ac_more_lines=false
17990 # The purpose of the label and of the branching condition is to
17991 # speed up the sed processing (if there are no `@' at all, there
17992 # is no need to browse any of the substitutions).
17993 # These are the two extra sed commands mentioned above.
17995 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17996 if test -z "$ac_sed_cmds"; then
17997 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17999 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18001 ac_sed_frag=`expr $ac_sed_frag + 1`
18003 ac_end=`expr $ac_end + $ac_max_sed_lines`
18006 if test -z "$ac_sed_cmds"; then
18009 fi # test -n "$CONFIG_FILES"
18012 cat >>$CONFIG_STATUS <<\EOF
18013 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18014 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18016 - | *:- | *:-:* ) # input from stdin
18018 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18019 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18020 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18021 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18022 * ) ac_file_in=$ac_file.in ;;
18025 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18026 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18027 X"$ac_file" : 'X\(//\)[^/]' \| \
18028 X"$ac_file" : 'X\(//\)$' \| \
18029 X"$ac_file" : 'X\(/\)' \| \
18030 . : '\(.\)' 2>/dev/null ||
18032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18034 /^X\(\/\/\)$/{ s//\1/; q; }
18035 /^X\(\/\).*/{ s//\1/; q; }
18037 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18038 { case "$ac_dir" in
18039 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18043 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18044 case $as_mkdir_dir in
18045 # Skip DOS drivespec
18046 ?:) as_incr_dir=$as_mkdir_dir ;;
18048 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18049 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18054 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
18055 # A "../" for each directory in $ac_dir_suffix.
18056 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
18058 ac_dir_suffix= ac_dots=
18063 if test -z "$ac_dots"; then
18066 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
18068 [\\/]* | ?:[\\/]* )
18069 ac_srcdir=$srcdir$ac_dir_suffix;
18070 ac_top_srcdir=$srcdir ;;
18071 *) # Relative path.
18072 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
18073 ac_top_srcdir=$ac_dots$srcdir ;;
18077 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18078 *) ac_INSTALL=$ac_dots$INSTALL ;;
18081 if test x"$ac_file" != x-; then
18082 { echo "$as_me:18082: creating $ac_file" >&5
18083 echo "$as_me: creating $ac_file" >&6;}
18086 # Let's still pretend it is `configure' which instantiates (i.e., don't
18087 # use $as_me), people would be surprised to read:
18088 # /* config.h. Generated automatically by config.status. */
18089 configure_input="Generated automatically from `echo $ac_file_in |
18090 sed 's,.*/,,'` by configure."
18092 # First look for the input files in the build tree, otherwise in the
18094 ac_file_inputs=`IFS=:
18095 for f in $ac_file_in; do
18097 -) echo $tmp/stdin ;;
18099 # Absolute (can't be DOS-style, as IFS=:)
18100 test -f "$f" || { { echo "$as_me:18100: error: cannot find input file: $f" >&5
18101 echo "$as_me: error: cannot find input file: $f" >&2;}
18102 { (exit 1); exit 1; }; }
18105 if test -f "$f"; then
18108 elif test -f "$srcdir/$f"; then
18113 { { echo "$as_me:18113: error: cannot find input file: $f" >&5
18114 echo "$as_me: error: cannot find input file: $f" >&2;}
18115 { (exit 1); exit 1; }; }
18118 done` || { (exit 1); exit 1; }
18120 cat >>$CONFIG_STATUS <<EOF
18124 cat >>$CONFIG_STATUS <<\EOF
18126 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18127 s,@configure_input@,$configure_input,;t t
18128 s,@srcdir@,$ac_srcdir,;t t
18129 s,@top_srcdir@,$ac_top_srcdir,;t t
18130 s,@INSTALL@,$ac_INSTALL,;t t
18131 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18133 if test x"$ac_file" != x-; then
18134 mv $tmp/out $ac_file
18142 cat >>$CONFIG_STATUS <<\EOF
18145 # CONFIG_HEADER section.
18148 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18149 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18151 # ac_d sets the value in "#define NAME VALUE" lines.
18152 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18153 ac_dB='[ ].*$,\1#\2'
18156 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18157 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18158 ac_iB='\([ ]\),\1#\2define\3'
18161 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18162 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18163 ac_uB='$,\1#\2define\3'
18167 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18168 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18170 - | *:- | *:-:* ) # input from stdin
18172 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18173 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18174 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18175 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18176 * ) ac_file_in=$ac_file.in ;;
18179 test x"$ac_file" != x- && { echo "$as_me:18179: creating $ac_file" >&5
18180 echo "$as_me: creating $ac_file" >&6;}
18182 # First look for the input files in the build tree, otherwise in the
18184 ac_file_inputs=`IFS=:
18185 for f in $ac_file_in; do
18187 -) echo $tmp/stdin ;;
18189 # Absolute (can't be DOS-style, as IFS=:)
18190 test -f "$f" || { { echo "$as_me:18190: error: cannot find input file: $f" >&5
18191 echo "$as_me: error: cannot find input file: $f" >&2;}
18192 { (exit 1); exit 1; }; }
18195 if test -f "$f"; then
18198 elif test -f "$srcdir/$f"; then
18203 { { echo "$as_me:18203: error: cannot find input file: $f" >&5
18204 echo "$as_me: error: cannot find input file: $f" >&2;}
18205 { (exit 1); exit 1; }; }
18208 done` || { (exit 1); exit 1; }
18209 # Remove the trailing spaces.
18210 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18214 # Transform confdefs.h into a list of #define's. We won't use it as a sed
18215 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
18216 # be either 'cat' or 'sort'.
18217 cat confdefs.h | uniq >conftest.vals
18219 # Break up conftest.vals because some shells have a limit on
18220 # the size of here documents, and old seds have small limits too.
18222 rm -f conftest.tail
18223 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
18224 while grep . conftest.vals >/dev/null
18226 # Write chunks of a limited-size here document to conftest.frag.
18227 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
18228 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
18229 echo 'CEOF' >> $CONFIG_STATUS
18230 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18231 rm -f conftest.vals
18232 mv conftest.tail conftest.vals
18234 rm -f conftest.vals
18236 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
18238 echo ' cat >> conftest.edit <<CEOF
18239 /@DEFS@/r conftest.frag
18242 sed -f conftest.edit $tmp/in > $tmp/out
18244 mv $tmp/out $tmp/in
18245 rm -f conftest.edit conftest.frag
18246 ' >> $CONFIG_STATUS
18248 cat >>$CONFIG_STATUS <<\EOF
18249 # Let's still pretend it is `configure' which instantiates (i.e., don't
18250 # use $as_me), people would be surprised to read:
18251 # /* config.h. Generated automatically by config.status. */
18252 if test x"$ac_file" = x-; then
18253 echo "/* Generated automatically by configure. */" >$tmp/config.h
18255 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
18257 cat $tmp/in >>$tmp/config.h
18259 if test x"$ac_file" != x-; then
18260 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18261 { echo "$as_me:18261: $ac_file is unchanged" >&5
18262 echo "$as_me: $ac_file is unchanged" >&6;}
18264 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18265 X"$ac_file" : 'X\(//\)[^/]' \| \
18266 X"$ac_file" : 'X\(//\)$' \| \
18267 X"$ac_file" : 'X\(/\)' \| \
18268 . : '\(.\)' 2>/dev/null ||
18270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18272 /^X\(\/\/\)$/{ s//\1/; q; }
18273 /^X\(\/\).*/{ s//\1/; q; }
18275 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18276 { case "$ac_dir" in
18277 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18281 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18282 case $as_mkdir_dir in
18283 # Skip DOS drivespec
18284 ?:) as_incr_dir=$as_mkdir_dir ;;
18286 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18287 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18294 mv $tmp/config.h $ac_file
18298 rm -f $tmp/config.h
18302 cat >>$CONFIG_STATUS <<\EOF
18305 # CONFIG_COMMANDS section.
18307 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18308 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18309 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18316 if test ! -d $srcdir/$cf_dir; then
18318 elif test -f $srcdir/$cf_dir/programs; then
18319 $AWK -f $srcdir/test/mk-test.awk ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
18323 case $cf_cv_system_name in #(vi
18327 *) LIB_PREFIX='lib'
18330 cf_prefix=$LIB_PREFIX
18332 if test $cf_cv_shlib_version = cygdll ; then
18333 TINFO_NAME=$TINFO_ARG_SUFFIX
18337 for cf_dir in $SRC_SUBDIRS
18339 if test ! -d $srcdir/$cf_dir ; then
18341 elif test -f $srcdir/$cf_dir/modules; then
18345 for cf_item in $cf_LIST_MODELS
18348 case $cf_item in #(vi
18351 cf_depsuf=$cf_suffix
18355 cf_depsuf=$cf_suffix
18359 cf_depsuf=$cf_suffix
18363 cf_depsuf=$cf_suffix
18366 case $cf_cv_system_name in
18369 cf_depsuf=$cf_suffix
18377 cf_depsuf=$cf_suffix
18383 cf_depsuf=$cf_suffix
18387 cf_depsuf=$cf_suffix
18392 cf_depsuf=$cf_suffix
18396 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
18397 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
18399 if test $cf_item = shared ; then
18400 if test "$cf_cv_do_symlinks" = yes ; then
18401 case "$cf_cv_shlib_version" in #(vi
18403 case "$cf_cv_system_name" in #(vi
18405 case .${LIB_SUFFIX} in
18407 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
18408 cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
18411 cf_suffix='.${REL_VERSION}'"$cf_suffix"
18415 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
18419 case "$cf_cv_system_name" in #(vi
18421 case .${LIB_SUFFIX} in
18423 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
18424 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
18427 cf_suffix='.${ABI_VERSION}'"$cf_suffix"
18431 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
18436 # cygwin needs import library, and has unique naming convention
18437 # use autodetected ${cf_prefix} for import lib and static lib, but
18438 # use 'cyg' prefix for shared lib.
18439 if test $cf_cv_shlib_version = cygdll ; then
18440 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
18441 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}"
18445 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
18448 if test $cf_dir = ncurses ; then
18449 cf_subsets="$LIB_SUBSETS"
18450 cf_r_parts="$cf_subsets"
18451 cf_liblist="$LIBS_TO_MAKE"
18453 while test -n "$cf_r_parts"
18455 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
18456 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
18457 if test "$cf_l_parts" != "$cf_r_parts" ; then
18459 case $cf_l_parts in #(vi
18461 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
18464 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
18470 if test -n "$cf_item"; then
18471 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
18478 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
18481 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
18482 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
18483 $cf_dir/Makefile >$cf_dir/Makefile.out
18484 mv $cf_dir/Makefile.out $cf_dir/Makefile
18486 $AWK -f $srcdir/mk-0th.awk \
18487 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
18488 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
18490 for cf_subset in $cf_subsets
18493 for cf_item in $cf_LIST_MODELS
18495 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
18497 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18499 case $cf_item in #(vi
18502 cf_depsuf=$cf_suffix
18506 cf_depsuf=$cf_suffix
18510 cf_depsuf=$cf_suffix
18514 cf_depsuf=$cf_suffix
18517 case $cf_cv_system_name in
18520 cf_depsuf=$cf_suffix
18528 cf_depsuf=$cf_suffix
18534 cf_depsuf=$cf_suffix
18538 cf_depsuf=$cf_suffix
18543 cf_depsuf=$cf_suffix
18547 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
18548 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
18551 libtool) cf_subdir='obj_lo' ;;
18552 normal) cf_subdir='objects' ;;
18553 debug) cf_subdir='obj_g' ;;
18554 profile) cf_subdir='obj_p' ;;
18556 case $cf_cv_system_name in #(vi
18558 cf_subdir='objects' ;;
18560 cf_subdir='obj_s' ;;
18564 # Test for case where we build libtinfo with a different name.
18566 if test $cf_dir = ncurses ; then
18569 cf_libname=${cf_libname}$LIB_SUFFIX
18572 cf_libname=$TINFO_LIB_SUFFIX
18575 cf_libname=$TICS_LIB_SUFFIX
18579 cf_libname=${cf_libname}$LIB_SUFFIX
18581 if test -n "${DFT_ARG_SUFFIX}" ; then
18582 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
18583 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
18586 # These dependencies really are for development, not
18587 # builds, but they are useful in porting, too.
18588 cf_depend="../include/ncurses_cfg.h"
18589 if test "$srcdir" = "."; then
18592 cf_reldir="\${srcdir}"
18595 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
18596 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
18597 elif test -f $srcdir/$cf_dir/curses.priv.h; then
18598 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
18602 old_cf_suffix="$cf_suffix"
18603 if test "$cf_cv_shlib_version_infix" = yes ; then
18604 if test -n "$LIB_SUFFIX" ; then
18605 case $LIB_SUFFIX in
18607 cf_libname=`echo $cf_libname | sed 's/w$//'`
18608 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
18615 $AWK -f $srcdir/mk-1st.awk \
18616 name=${cf_libname}${cf_dir_suffix} \
18617 traces=$LIB_TRACING \
18620 prefix=$cf_prefix \
18621 suffix=$cf_suffix \
18622 subset=$cf_subset \
18623 TermlibRoot=$TINFO_NAME \
18624 TermlibSuffix=$TINFO_SUFFIX \
18625 ShlibVer=$cf_cv_shlib_version \
18626 ShlibVerInfix=$cf_cv_shlib_version_infix \
18627 ReLink=${cf_cv_do_relink-no} \
18628 DoLinks=$cf_cv_do_symlinks \
18629 rmSoLocs=$cf_cv_rm_so_locs \
18630 ldconfig="$LDCONFIG" \
18631 overwrite=$WITH_OVERWRITE \
18632 depend="$cf_depend" \
18634 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
18636 cf_suffix="$old_cf_suffix"
18638 for cf_subdir2 in $cf_subdirs lib
18640 test $cf_subdir = $cf_subdir2 && break
18642 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
18643 $AWK -f $srcdir/mk-2nd.awk \
18645 traces=$LIB_TRACING \
18648 subset=$cf_subset \
18651 crenames=$cf_cv_prog_CC_c_o \
18652 cxxrenames=$cf_cv_prog_CXX_c_o \
18653 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
18654 cf_subdirs="$cf_subdirs $cf_subdir"
18659 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile
18662 for cf_dir in $SRC_SUBDIRS
18664 if test ! -d $srcdir/$cf_dir ; then
18668 if test -f $cf_dir/Makefile ; then
18671 echo 'libs \' >> Makefile
18672 echo 'install.libs \' >> Makefile
18673 echo 'uninstall.libs ::' >> Makefile
18674 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile
18679 if test -f $srcdir/$cf_dir/modules; then
18681 if test -f $srcdir/$cf_dir/headers; then
18682 cat >> Makefile <<CF_EOF
18683 install.includes \\
18684 uninstall.includes \\
18687 if test "$cf_dir" != "c++" ; then
18688 echo 'lint \' >> Makefile
18690 cat >> Makefile <<CF_EOF
18696 uninstall.$cf_dir ::
18697 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
18699 elif test -f $srcdir/$cf_dir/headers; then
18700 cat >> Makefile <<CF_EOF
18705 install.includes \\
18706 uninstall.includes ::
18707 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
18712 cat >> Makefile <<CF_EOF
18714 install.libs uninstall.libs \\
18715 install.data uninstall.data ::
18716 $MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@
18719 if test "x$cf_with_manpages" = xyes; then
18720 cat >> Makefile <<CF_EOF
18724 cd man && \${MAKE} \${CF_MFLAGS} \$@
18728 cat >> Makefile <<CF_EOF
18731 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
18732 rm -f headers.sh headers.sed mk_shared_lib.sh
18733 rm -f edit_man.* man_alias.*
18734 rm -rf \${DIRS_TO_MAKE}
18737 # Special case: tack's manpage lives in its own directory.
18738 if test "x$cf_with_manpages" = xyes; then
18739 if test -d tack ; then
18740 if test -f $srcdir/$tack.h; then
18741 cat >> Makefile <<CF_EOF
18745 cd tack && \${MAKE} \${CF_MFLAGS} \$@
18751 rm -f headers.sed headers.sh
18753 echo creating headers.sh
18754 cat >headers.sh <<CF_EOF
18756 # This shell script is generated by the 'configure' script. It is invoked in a
18757 # subdirectory of the build tree. It generates a sed-script in the parent
18758 # directory that is used to adjust includes for header files that reside in a
18759 # subdirectory of /usr/include, etc.
18761 while test \$# != 3
18763 PRG="\$PRG \$1"; shift
18768 TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
18769 TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
18770 echo installing \$SRC in \$DST
18773 if test $WITH_CURSES_H = yes; then
18774 cat >>headers.sh <<CF_EOF
18777 END=\`basename \$DST\`
18778 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
18780 NAME=\`basename \$i\`
18781 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
18785 echo "" >> \$TMPSED
18791 cat >>headers.sh <<CF_EOF
18794 END=\`basename \$DST\`
18795 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
18797 NAME=\`basename \$i\`
18798 if test "\$NAME" = "curses.h"
18800 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
18803 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
18807 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
18812 cat >>headers.sh <<CF_EOF
18814 sed -f \$TMPSED \$SRC > \$TMPSRC
18815 NAME=\`basename \$SRC\`
18817 if test $WITH_CURSES_H != yes; then
18818 cat >>headers.sh <<CF_EOF
18819 test "\$NAME" = "curses.h" && NAME=ncurses.h
18822 cat >>headers.sh <<CF_EOF
18823 # Just in case someone gzip'd manpages, remove the conflicting copy.
18824 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
18826 eval \$PRG \$TMPSRC \$DST/\$NAME
18827 rm -f \$TMPSRC \$TMPSED
18830 chmod 0755 headers.sh
18832 for cf_dir in $SRC_SUBDIRS
18834 if test ! -d $srcdir/$cf_dir ; then
18838 if test -f $srcdir/$cf_dir/headers; then
18839 $AWK -f $srcdir/mk-hdr.awk \
18840 subset="$LIB_SUBSETS" \
18841 compat="$WITH_CURSES_H" \
18842 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
18845 if test -f $srcdir/$cf_dir/modules; then
18846 if test "$cf_dir" != "c++" ; then
18847 cat >>$cf_dir/Makefile <<"CF_EOF"
18848 depend : ${AUTO_SRC}
18849 makedepend -- ${CPPFLAGS} -- ${C_SRC}
18851 # DO NOT DELETE THIS LINE -- make depend depends on it.
18862 cat >>$CONFIG_STATUS <<\EOF
18864 { (exit 0); exit 0; }
18866 chmod +x $CONFIG_STATUS
18867 ac_clean_files=$ac_clean_files_save
18869 # configure is writing to config.log, and then calls config.status.
18870 # config.status does its own redirection, appending to config.log.
18871 # Unfortunately, on DOS this fails, as config.log is still kept open
18872 # by configure, so config.status won't be able to write to it; its
18873 # output is simply discarded. So we exec the FD to /dev/null,
18874 # effectively closing config.log, so it can be properly (re)opened and
18875 # appended to by config.status. When coming back to configure, we
18876 # need to make the FD available again.
18877 if test "$no_create" != yes; then
18880 $SHELL $CONFIG_STATUS || ac_cs_success=false
18882 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18883 # would make configure fail if this is the last instruction.
18884 $ac_cs_success || { (exit 1); exit 1; }
18886 ${MAKE-make} preinstall