2 # From configure.in Revision: 1.479 .
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 enable experimental SCREEN-extensions
770 --enable-term-driver enable experimental terminal-driver
771 --enable-const compile with extra/non-standard const
772 --enable-ext-colors compile for 256-color support
773 --enable-ext-mouse compile for extended mouse-encoding
774 --enable-no-padding compile with $NCURSES_NO_PADDING code
775 --enable-signed-char compile using signed Boolean's in term.h
776 --enable-sigwinch compile with SIGWINCH handler
777 --enable-tcap-names compile with user-definable terminal capabilities
779 --without-develop disable development options
780 --enable-hard-tabs compile with hard-tabs code
781 --enable-xmc-glitch compile with support for xmc (magic-cookie)
783 --disable-assumed-color do not assume anything about default-colors
784 --disable-hashmap compile without hashmap scrolling-optimization
785 --enable-colorfgbg compile-in experimental $COLORFGBG code
786 --enable-interop compile-in experimental interop bindings
787 --with-pthread use POSIX thread library
788 --enable-weak-symbols enable weak-symbols for pthreads
789 --enable-reentrant compile with experimental reentrant code
790 --with-wrap-prefix=XXX override prefix used for public variables
791 --enable-safe-sprintf compile with experimental safe-sprintf code
792 --disable-scroll-hints compile without scroll-hints code
793 --enable-wgetch-events compile with experimental wgetch-events code
794 Testing/development Options:
795 --enable-echo build: display "compiling" commands (default)
796 --enable-warnings build: turn on GCC compiler warnings
797 --enable-assertions test: turn on generation of assertion code
798 --with-dmalloc test: use Gray Watson's dmalloc library
799 --with-dbmalloc test: use Conor Cahill's dbmalloc library
800 --with-valgrind test: use valgrind
801 --disable-leaks test: free permanent memory, analyze leaks
802 --enable-expanded test: generate functions for certain macros
803 --disable-macros test: use functions rather than macros
804 --with-trace test: add trace() function to all models of ncurses
805 Ada95 Binding Options:
806 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
807 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
808 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
810 Some influential environment variables:
811 CC C compiler command
812 CFLAGS C compiler flags
813 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
814 nonstandard directory <lib dir>
815 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
816 headers in a nonstandard directory <include dir>
818 CXX C++ compiler command
819 CXXFLAGS C++ compiler flags
820 CXXCPP C++ preprocessor
822 Use these variables to override the choices made by `configure' or to help
823 it to find libraries and programs with nonstandard names/locations.
828 if test "$ac_init_help" = "recursive"; then
829 # If there are subdirs, report their specific --help.
831 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
833 # A "../" for each directory in /$ac_subdir.
834 ac_dots=`echo $ac_subdir |
835 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
838 .) # No --srcdir option. We are building in place.
839 ac_sub_srcdir=$srcdir ;;
840 [\\/]* | ?:[\\/]* ) # Absolute path.
841 ac_sub_srcdir=$srcdir/$ac_subdir ;;
843 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
846 # Check for guested configure; otherwise get Cygnus style configure.
847 if test -f $ac_sub_srcdir/configure.gnu; then
849 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
850 elif test -f $ac_sub_srcdir/configure; then
852 $SHELL $ac_sub_srcdir/configure --help=recursive
853 elif test -f $ac_sub_srcdir/configure.ac ||
854 test -f $ac_sub_srcdir/configure.in; then
858 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
864 test -n "$ac_init_help" && exit 0
865 if $ac_init_version; then
868 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
869 Free Software Foundation, Inc.
870 This configure script is free software; the Free Software Foundation
871 gives unlimited permission to copy, distribute and modify it.
877 This file contains any messages produced by compilers while
878 running configure, to aid debugging if configure makes a mistake.
880 It was created by $as_me, which was
881 generated by GNU Autoconf 2.52.20081225. Invocation command line was
892 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
893 uname -m = `(uname -m) 2>/dev/null || echo unknown`
894 uname -r = `(uname -r) 2>/dev/null || echo unknown`
895 uname -s = `(uname -s) 2>/dev/null || echo unknown`
896 uname -v = `(uname -v) 2>/dev/null || echo unknown`
898 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
899 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
901 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
902 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
903 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
904 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
905 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
906 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
907 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
921 # Keep a trace of the command line.
922 # Strip out --no-create and --no-recursion so they do not pile up.
923 # Also quote any args containing shell meta-characters.
929 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
930 | --no-cr | --no-c) ;;
931 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
932 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
933 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
934 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
935 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
937 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
940 # Get rid of the leading space.
943 # When interrupted or exit'd, cleanup temporary files, and complete
944 # config.log. We remove comments because anyway the quotes in there
945 # would cause problems or look ugly.
947 # Save into config.log some information that might help in debugging.
949 echo "## ----------------- ##" >&5
950 echo "## Cache variables. ##" >&5
951 echo "## ----------------- ##" >&5
953 # The following way of writing the cache mishandles newlines in values,
956 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
959 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
964 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
968 sed "/^$/d" confdefs.h >conftest.log
969 if test -s conftest.log; then
971 echo "## ------------ ##" >&5
972 echo "## confdefs.h. ##" >&5
973 echo "## ------------ ##" >&5
978 test "$ac_signal" != 0 &&
979 echo "$as_me: caught signal $ac_signal" >&5
980 echo "$as_me: exit $exit_status" >&5
981 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
984 for ac_signal in 1 2 13 15; do
985 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
989 # confdefs.h avoids OS command line length limits that DEFS can exceed.
990 rm -rf conftest* confdefs.h
991 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
994 # Let the site file select an alternate cache file if it wants to.
995 # Prefer explicitly selected file to automatically selected ones.
996 if test -z "$CONFIG_SITE"; then
997 if test "x$prefix" != xNONE; then
998 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1000 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1003 for ac_site_file in $CONFIG_SITE; do
1004 if test -r "$ac_site_file"; then
1005 { echo "$as_me:1005: loading site script $ac_site_file" >&5
1006 echo "$as_me: loading site script $ac_site_file" >&6;}
1007 cat "$ac_site_file" >&5
1012 if test -r "$cache_file"; then
1013 # Some versions of bash will fail to source /dev/null (special
1014 # files actually), so we avoid doing that.
1015 if test -f "$cache_file"; then
1016 { echo "$as_me:1016: loading cache $cache_file" >&5
1017 echo "$as_me: loading cache $cache_file" >&6;}
1019 [\\/]* | ?:[\\/]* ) . $cache_file;;
1020 *) . ./$cache_file;;
1024 { echo "$as_me:1024: creating cache $cache_file" >&5
1025 echo "$as_me: creating cache $cache_file" >&6;}
1029 # Check that the precious variables saved in the cache have kept the same
1031 ac_cache_corrupted=false
1032 for ac_var in `(set) 2>&1 |
1033 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1034 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1035 eval ac_new_set=\$ac_env_${ac_var}_set
1036 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1037 eval ac_new_val="\$ac_env_${ac_var}_value"
1038 case $ac_old_set,$ac_new_set in
1040 { echo "$as_me:1040: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1041 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1042 ac_cache_corrupted=: ;;
1044 { echo "$as_me:1044: error: \`$ac_var' was not set in the previous run" >&5
1045 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1046 ac_cache_corrupted=: ;;
1049 if test "x$ac_old_val" != "x$ac_new_val"; then
1050 { echo "$as_me:1050: error: \`$ac_var' has changed since the previous run:" >&5
1051 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1052 { echo "$as_me:1052: former value: $ac_old_val" >&5
1053 echo "$as_me: former value: $ac_old_val" >&2;}
1054 { echo "$as_me:1054: current value: $ac_new_val" >&5
1055 echo "$as_me: current value: $ac_new_val" >&2;}
1056 ac_cache_corrupted=:
1059 # Pass precious variables to config.status. It doesn't matter if
1060 # we pass some twice (in addition to the command line arguments).
1061 if test "$ac_new_set" = set; then
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1065 ac_configure_args="$ac_configure_args '$ac_arg'"
1067 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1072 if $ac_cache_corrupted; then
1073 { echo "$as_me:1073: error: changes in the environment can compromise the build" >&5
1074 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1075 { { echo "$as_me:1075: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1076 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1077 { (exit 1); exit 1; }; }
1081 ac_cpp='$CPP $CPPFLAGS'
1082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1085 ac_main_return=return
1087 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1088 *c*,-n*) ECHO_N= ECHO_C='
1090 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1091 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1093 echo "#! $SHELL" >conftest.sh
1094 echo "exit 0" >>conftest.sh
1095 chmod +x conftest.sh
1096 if { (echo "$as_me:1096: PATH=\".;.\"; conftest.sh") >&5
1097 (PATH=".;."; conftest.sh) 2>&5
1099 echo "$as_me:1099: \$? = $ac_status" >&5
1100 (exit $ac_status); }; then
1101 ac_path_separator=';'
1105 PATH_SEPARATOR="$ac_path_separator"
1108 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1112 echo "$as_me:1112: checking for egrep" >&5
1113 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1114 if test "${ac_cv_prog_egrep+set}" = set; then
1115 echo $ECHO_N "(cached) $ECHO_C" >&6
1117 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1118 then ac_cv_prog_egrep='grep -E'
1119 else ac_cv_prog_egrep='egrep'
1122 echo "$as_me:1122: result: $ac_cv_prog_egrep" >&5
1123 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1124 EGREP=$ac_cv_prog_egrep
1126 test -z "$EGREP" && { { echo "$as_me:1126: error: No egrep program found" >&5
1127 echo "$as_me: error: No egrep program found" >&2;}
1128 { (exit 1); exit 1; }; }
1130 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1131 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1132 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1133 cf_cv_abi_version=${NCURSES_MAJOR}
1134 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1135 cf_cv_timestamp=`date`
1136 echo "$as_me:1136: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1137 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1139 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1141 # Check whether --with-rel-version or --without-rel-version was given.
1142 if test "${with_rel_version+set}" = set; then
1143 withval="$with_rel_version"
1144 { echo "$as_me:1144: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1145 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1146 cf_cv_rel_version=$withval
1149 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1150 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1152 if test -n "$NCURSES_MAJOR" ; then
1153 case $NCURSES_MAJOR in #(vi
1157 { { echo "$as_me:1157: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1158 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1159 { (exit 1); exit 1; }; }
1163 { { echo "$as_me:1163: error: Release major-version value is empty" >&5
1164 echo "$as_me: error: Release major-version value is empty" >&2;}
1165 { (exit 1); exit 1; }; }
1168 if test -n "$NCURSES_MINOR" ; then
1169 case $NCURSES_MINOR in #(vi
1173 { { echo "$as_me:1173: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1174 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1175 { (exit 1); exit 1; }; }
1179 { { echo "$as_me:1179: error: Release minor-version value is empty" >&5
1180 echo "$as_me: error: Release minor-version value is empty" >&2;}
1181 { (exit 1); exit 1; }; }
1184 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1186 # Check whether --with-abi-version or --without-abi-version was given.
1187 if test "${with_abi_version+set}" = set; then
1188 withval="$with_abi_version"
1189 { echo "$as_me:1189: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1190 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1191 cf_cv_abi_version=$withval
1194 if test -n "$cf_cv_abi_version" ; then
1195 case $cf_cv_abi_version in #(vi
1199 { { echo "$as_me:1199: error: ABI version is not a number: $cf_cv_abi_version" >&5
1200 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1201 { (exit 1); exit 1; }; }
1205 { { echo "$as_me:1205: error: ABI version value is empty" >&5
1206 echo "$as_me: error: ABI version value is empty" >&2;}
1207 { (exit 1); exit 1; }; }
1211 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1212 if test -f $ac_dir/install-sh; then
1214 ac_install_sh="$ac_aux_dir/install-sh -c"
1216 elif test -f $ac_dir/install.sh; then
1218 ac_install_sh="$ac_aux_dir/install.sh -c"
1220 elif test -f $ac_dir/shtool; then
1222 ac_install_sh="$ac_aux_dir/shtool install -c"
1226 if test -z "$ac_aux_dir"; then
1227 { { echo "$as_me:1227: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1228 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1229 { (exit 1); exit 1; }; }
1231 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1232 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1233 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1235 # Make sure we can run config.sub.
1236 $ac_config_sub sun4 >/dev/null 2>&1 ||
1237 { { echo "$as_me:1237: error: cannot run $ac_config_sub" >&5
1238 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1239 { (exit 1); exit 1; }; }
1241 echo "$as_me:1241: checking build system type" >&5
1242 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1243 if test "${ac_cv_build+set}" = set; then
1244 echo $ECHO_N "(cached) $ECHO_C" >&6
1246 ac_cv_build_alias=$build_alias
1247 test -z "$ac_cv_build_alias" &&
1248 ac_cv_build_alias=`$ac_config_guess`
1249 test -z "$ac_cv_build_alias" &&
1250 { { echo "$as_me:1250: error: cannot guess build type; you must specify one" >&5
1251 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1252 { (exit 1); exit 1; }; }
1253 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1254 { { echo "$as_me:1254: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1255 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1256 { (exit 1); exit 1; }; }
1259 echo "$as_me:1259: result: $ac_cv_build" >&5
1260 echo "${ECHO_T}$ac_cv_build" >&6
1262 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1263 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1264 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1266 echo "$as_me:1266: checking host system type" >&5
1267 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1268 if test "${ac_cv_host+set}" = set; then
1269 echo $ECHO_N "(cached) $ECHO_C" >&6
1271 ac_cv_host_alias=$host_alias
1272 test -z "$ac_cv_host_alias" &&
1273 ac_cv_host_alias=$ac_cv_build_alias
1274 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1275 { { echo "$as_me:1275: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1276 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1277 { (exit 1); exit 1; }; }
1280 echo "$as_me:1280: result: $ac_cv_host" >&5
1281 echo "${ECHO_T}$ac_cv_host" >&6
1283 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1284 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1285 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1287 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1288 echo "$as_me:1288: checking target system type" >&5
1289 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1290 if test "${ac_cv_target+set}" = set; then
1291 echo $ECHO_N "(cached) $ECHO_C" >&6
1293 ac_cv_target_alias=$target_alias
1294 test "x$ac_cv_target_alias" = "x" &&
1295 ac_cv_target_alias=$ac_cv_host_alias
1296 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1297 { { echo "$as_me:1297: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1298 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1299 { (exit 1); exit 1; }; }
1302 echo "$as_me:1302: result: $ac_cv_target" >&5
1303 echo "${ECHO_T}$ac_cv_target" >&6
1304 target=$ac_cv_target
1305 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1306 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1307 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1309 # The aliases save the names the user supplied, while $host etc.
1310 # will get canonicalized.
1311 test -n "$target_alias" &&
1312 test "$program_prefix$program_suffix$program_transform_name" = \
1314 program_prefix=${target_alias}-
1315 system_name="$host_os"
1317 system_name="`(uname -s -r) 2>/dev/null`"
1318 if test -z "$system_name" ; then
1319 system_name="`(hostname) 2>/dev/null`"
1322 test -n "$system_name" && cat >>confdefs.h <<EOF
1323 #define SYSTEM_NAME "$system_name"
1326 if test "${cf_cv_system_name+set}" = set; then
1327 echo $ECHO_N "(cached) $ECHO_C" >&6
1329 cf_cv_system_name="$system_name"
1332 test -z "$system_name" && system_name="$cf_cv_system_name"
1333 test -n "$cf_cv_system_name" && echo "$as_me:1333: result: Configuring for $cf_cv_system_name" >&5
1334 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1336 if test ".$system_name" != ".$cf_cv_system_name" ; then
1337 echo "$as_me:1337: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1338 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1339 { { echo "$as_me:1339: error: \"Please remove config.cache and try again.\"" >&5
1340 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1341 { (exit 1); exit 1; }; }
1344 # Check whether --with-system-type or --without-system-type was given.
1345 if test "${with_system_type+set}" = set; then
1346 withval="$with_system_type"
1347 { echo "$as_me:1347: WARNING: overriding system type to $withval" >&5
1348 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1349 cf_cv_system_name=$withval
1352 ### Save the given $CFLAGS to allow user-override.
1353 cf_user_CFLAGS="$CFLAGS"
1355 ### Default install-location
1357 echo "$as_me:1357: checking for prefix" >&5
1358 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1359 if test "x$prefix" = "xNONE" ; then
1360 case "$cf_cv_system_name" in
1361 # non-vendor systems don't have a conflict
1362 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1365 *) prefix=$ac_default_prefix
1369 echo "$as_me:1369: result: $prefix" >&5
1370 echo "${ECHO_T}$prefix" >&6
1372 if test "x$prefix" = "xNONE" ; then
1373 echo "$as_me:1373: checking for default include-directory" >&5
1374 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1375 test -n "$verbose" && echo 1>&6
1378 $includedir/ncurses \
1380 $prefix/include/ncurses \
1381 /usr/local/include \
1382 /usr/local/include/ncurses \
1384 /usr/include/ncurses
1386 cf_dir=`eval echo $cf_symbol`
1387 if test -f $cf_dir/curses.h ; then
1388 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1389 includedir="$cf_symbol"
1390 test -n "$verbose" && echo $ac_n " found " 1>&6
1394 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1396 echo "$as_me:1396: result: $includedir" >&5
1397 echo "${ECHO_T}$includedir" >&6
1400 ### Checks for programs.
1402 ac_cpp='$CPP $CPPFLAGS'
1403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1406 ac_main_return=return
1407 if test -n "$ac_tool_prefix"; then
1408 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1409 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1410 echo "$as_me:1410: checking for $ac_word" >&5
1411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1412 if test "${ac_cv_prog_CC+set}" = set; then
1413 echo $ECHO_N "(cached) $ECHO_C" >&6
1415 if test -n "$CC"; then
1416 ac_cv_prog_CC="$CC" # Let the user override the test.
1418 ac_save_IFS=$IFS; IFS=$ac_path_separator
1420 for ac_dir in $ac_dummy; do
1422 test -z "$ac_dir" && ac_dir=.
1423 $as_executable_p "$ac_dir/$ac_word" || continue
1424 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1425 echo "$as_me:1425: found $ac_dir/$ac_word" >&5
1432 if test -n "$CC"; then
1433 echo "$as_me:1433: result: $CC" >&5
1434 echo "${ECHO_T}$CC" >&6
1436 echo "$as_me:1436: result: no" >&5
1437 echo "${ECHO_T}no" >&6
1441 if test -z "$ac_cv_prog_CC"; then
1443 # Extract the first word of "gcc", so it can be a program name with args.
1444 set dummy gcc; ac_word=$2
1445 echo "$as_me:1445: checking for $ac_word" >&5
1446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1450 if test -n "$ac_ct_CC"; then
1451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1453 ac_save_IFS=$IFS; IFS=$ac_path_separator
1455 for ac_dir in $ac_dummy; do
1457 test -z "$ac_dir" && ac_dir=.
1458 $as_executable_p "$ac_dir/$ac_word" || continue
1459 ac_cv_prog_ac_ct_CC="gcc"
1460 echo "$as_me:1460: found $ac_dir/$ac_word" >&5
1466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1467 if test -n "$ac_ct_CC"; then
1468 echo "$as_me:1468: result: $ac_ct_CC" >&5
1469 echo "${ECHO_T}$ac_ct_CC" >&6
1471 echo "$as_me:1471: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1480 if test -z "$CC"; then
1481 if test -n "$ac_tool_prefix"; then
1482 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1483 set dummy ${ac_tool_prefix}cc; ac_word=$2
1484 echo "$as_me:1484: checking for $ac_word" >&5
1485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1486 if test "${ac_cv_prog_CC+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 if test -n "$CC"; then
1490 ac_cv_prog_CC="$CC" # Let the user override the test.
1492 ac_save_IFS=$IFS; IFS=$ac_path_separator
1494 for ac_dir in $ac_dummy; do
1496 test -z "$ac_dir" && ac_dir=.
1497 $as_executable_p "$ac_dir/$ac_word" || continue
1498 ac_cv_prog_CC="${ac_tool_prefix}cc"
1499 echo "$as_me:1499: found $ac_dir/$ac_word" >&5
1506 if test -n "$CC"; then
1507 echo "$as_me:1507: result: $CC" >&5
1508 echo "${ECHO_T}$CC" >&6
1510 echo "$as_me:1510: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1515 if test -z "$ac_cv_prog_CC"; then
1517 # Extract the first word of "cc", so it can be a program name with args.
1518 set dummy cc; ac_word=$2
1519 echo "$as_me:1519: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 if test -n "$ac_ct_CC"; then
1525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1527 ac_save_IFS=$IFS; IFS=$ac_path_separator
1529 for ac_dir in $ac_dummy; do
1531 test -z "$ac_dir" && ac_dir=.
1532 $as_executable_p "$ac_dir/$ac_word" || continue
1533 ac_cv_prog_ac_ct_CC="cc"
1534 echo "$as_me:1534: found $ac_dir/$ac_word" >&5
1540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1541 if test -n "$ac_ct_CC"; then
1542 echo "$as_me:1542: result: $ac_ct_CC" >&5
1543 echo "${ECHO_T}$ac_ct_CC" >&6
1545 echo "$as_me:1545: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1555 if test -z "$CC"; then
1556 # Extract the first word of "cc", so it can be a program name with args.
1557 set dummy cc; ac_word=$2
1558 echo "$as_me:1558: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 if test -n "$CC"; then
1564 ac_cv_prog_CC="$CC" # Let the user override the test.
1567 ac_save_IFS=$IFS; IFS=$ac_path_separator
1569 for ac_dir in $ac_dummy; do
1571 test -z "$ac_dir" && ac_dir=.
1572 $as_executable_p "$ac_dir/$ac_word" || continue
1573 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1574 ac_prog_rejected=yes
1578 echo "$as_me:1578: found $ac_dir/$ac_word" >&5
1582 if test $ac_prog_rejected = yes; then
1583 # We found a bogon in the path, so make sure we never use it.
1584 set dummy $ac_cv_prog_CC
1586 if test $# != 0; then
1587 # We chose a different compiler from the bogus one.
1588 # However, it has the same basename, so the bogon will be chosen
1589 # first if we set CC to just the basename; use the full file name.
1591 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1599 if test -n "$CC"; then
1600 echo "$as_me:1600: result: $CC" >&5
1601 echo "${ECHO_T}$CC" >&6
1603 echo "$as_me:1603: result: no" >&5
1604 echo "${ECHO_T}no" >&6
1608 if test -z "$CC"; then
1609 if test -n "$ac_tool_prefix"; then
1612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1614 echo "$as_me:1614: checking for $ac_word" >&5
1615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1616 if test "${ac_cv_prog_CC+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 if test -n "$CC"; then
1620 ac_cv_prog_CC="$CC" # Let the user override the test.
1622 ac_save_IFS=$IFS; IFS=$ac_path_separator
1624 for ac_dir in $ac_dummy; do
1626 test -z "$ac_dir" && ac_dir=.
1627 $as_executable_p "$ac_dir/$ac_word" || continue
1628 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1629 echo "$as_me:1629: found $ac_dir/$ac_word" >&5
1636 if test -n "$CC"; then
1637 echo "$as_me:1637: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1640 echo "$as_me:1640: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1644 test -n "$CC" && break
1647 if test -z "$CC"; then
1651 # Extract the first word of "$ac_prog", so it can be a program name with args.
1652 set dummy $ac_prog; ac_word=$2
1653 echo "$as_me:1653: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 if test -n "$ac_ct_CC"; then
1659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1661 ac_save_IFS=$IFS; IFS=$ac_path_separator
1663 for ac_dir in $ac_dummy; do
1665 test -z "$ac_dir" && ac_dir=.
1666 $as_executable_p "$ac_dir/$ac_word" || continue
1667 ac_cv_prog_ac_ct_CC="$ac_prog"
1668 echo "$as_me:1668: found $ac_dir/$ac_word" >&5
1674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1675 if test -n "$ac_ct_CC"; then
1676 echo "$as_me:1676: result: $ac_ct_CC" >&5
1677 echo "${ECHO_T}$ac_ct_CC" >&6
1679 echo "$as_me:1679: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1683 test -n "$ac_ct_CC" && break
1691 test -z "$CC" && { { echo "$as_me:1691: error: no acceptable cc found in \$PATH" >&5
1692 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1693 { (exit 1); exit 1; }; }
1695 # Provide some information about the compiler.
1696 echo "$as_me:1696:" \
1697 "checking for C compiler version" >&5
1698 ac_compiler=`set X $ac_compile; echo $2`
1699 { (eval echo "$as_me:1699: \"$ac_compiler --version </dev/null >&5\"") >&5
1700 (eval $ac_compiler --version </dev/null >&5) 2>&5
1702 echo "$as_me:1702: \$? = $ac_status" >&5
1703 (exit $ac_status); }
1704 { (eval echo "$as_me:1704: \"$ac_compiler -v </dev/null >&5\"") >&5
1705 (eval $ac_compiler -v </dev/null >&5) 2>&5
1707 echo "$as_me:1707: \$? = $ac_status" >&5
1708 (exit $ac_status); }
1709 { (eval echo "$as_me:1709: \"$ac_compiler -V </dev/null >&5\"") >&5
1710 (eval $ac_compiler -V </dev/null >&5) 2>&5
1712 echo "$as_me:1712: \$? = $ac_status" >&5
1713 (exit $ac_status); }
1715 cat >conftest.$ac_ext <<_ACEOF
1716 #line 1716 "configure"
1717 #include "confdefs.h"
1727 ac_clean_files_save=$ac_clean_files
1728 ac_clean_files="$ac_clean_files a.out a.exe"
1729 # Try to create an executable without -o first, disregard a.out.
1730 # It will help us diagnose broken compilers, and finding out an intuition
1732 echo "$as_me:1732: checking for C compiler default output" >&5
1733 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1734 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1735 if { (eval echo "$as_me:1735: \"$ac_link_default\"") >&5
1736 (eval $ac_link_default) 2>&5
1738 echo "$as_me:1738: \$? = $ac_status" >&5
1739 (exit $ac_status); }; then
1740 # Find the output, starting from the most likely. This scheme is
1741 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1743 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1744 ls a.out conftest 2>/dev/null;
1745 ls a.* conftest.* 2>/dev/null`; do
1747 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1748 a.out ) # We found the default executable, but exeext='' is most
1751 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1752 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1759 echo "$as_me: failed program was:" >&5
1760 cat conftest.$ac_ext >&5
1761 { { echo "$as_me:1761: error: C compiler cannot create executables" >&5
1762 echo "$as_me: error: C compiler cannot create executables" >&2;}
1763 { (exit 77); exit 77; }; }
1766 ac_exeext=$ac_cv_exeext
1767 echo "$as_me:1767: result: $ac_file" >&5
1768 echo "${ECHO_T}$ac_file" >&6
1770 # Check the compiler produces executables we can run. If not, either
1771 # the compiler is broken, or we cross compile.
1772 echo "$as_me:1772: checking whether the C compiler works" >&5
1773 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1774 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1775 # If not cross compiling, check that we can run a simple program.
1776 if test "$cross_compiling" != yes; then
1777 if { ac_try='./$ac_file'
1778 { (eval echo "$as_me:1778: \"$ac_try\"") >&5
1781 echo "$as_me:1781: \$? = $ac_status" >&5
1782 (exit $ac_status); }; }; then
1785 if test "$cross_compiling" = maybe; then
1788 { { echo "$as_me:1788: error: cannot run C compiled programs.
1789 If you meant to cross compile, use \`--host'." >&5
1790 echo "$as_me: error: cannot run C compiled programs.
1791 If you meant to cross compile, use \`--host'." >&2;}
1792 { (exit 1); exit 1; }; }
1796 echo "$as_me:1796: result: yes" >&5
1797 echo "${ECHO_T}yes" >&6
1799 rm -f a.out a.exe conftest$ac_cv_exeext
1800 ac_clean_files=$ac_clean_files_save
1801 # Check the compiler produces executables we can run. If not, either
1802 # the compiler is broken, or we cross compile.
1803 echo "$as_me:1803: checking whether we are cross compiling" >&5
1804 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1805 echo "$as_me:1805: result: $cross_compiling" >&5
1806 echo "${ECHO_T}$cross_compiling" >&6
1808 echo "$as_me:1808: checking for executable suffix" >&5
1809 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1810 if { (eval echo "$as_me:1810: \"$ac_link\"") >&5
1811 (eval $ac_link) 2>&5
1813 echo "$as_me:1813: \$? = $ac_status" >&5
1814 (exit $ac_status); }; then
1815 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1816 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1817 # work properly (i.e., refer to `conftest.exe'), while it won't with
1819 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1821 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1822 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1829 { { echo "$as_me:1829: error: cannot compute EXEEXT: cannot compile and link" >&5
1830 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1831 { (exit 1); exit 1; }; }
1834 rm -f conftest$ac_cv_exeext
1835 echo "$as_me:1835: result: $ac_cv_exeext" >&5
1836 echo "${ECHO_T}$ac_cv_exeext" >&6
1838 rm -f conftest.$ac_ext
1839 EXEEXT=$ac_cv_exeext
1841 echo "$as_me:1841: checking for object suffix" >&5
1842 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1843 if test "${ac_cv_objext+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 cat >conftest.$ac_ext <<_ACEOF
1847 #line 1847 "configure"
1848 #include "confdefs.h"
1858 rm -f conftest.o conftest.obj
1859 if { (eval echo "$as_me:1859: \"$ac_compile\"") >&5
1860 (eval $ac_compile) 2>&5
1862 echo "$as_me:1862: \$? = $ac_status" >&5
1863 (exit $ac_status); }; then
1864 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1866 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1867 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1872 echo "$as_me: failed program was:" >&5
1873 cat conftest.$ac_ext >&5
1874 { { echo "$as_me:1874: error: cannot compute OBJEXT: cannot compile" >&5
1875 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1876 { (exit 1); exit 1; }; }
1879 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1881 echo "$as_me:1881: result: $ac_cv_objext" >&5
1882 echo "${ECHO_T}$ac_cv_objext" >&6
1883 OBJEXT=$ac_cv_objext
1885 echo "$as_me:1885: checking whether we are using the GNU C compiler" >&5
1886 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1887 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 cat >conftest.$ac_ext <<_ACEOF
1891 #line 1891 "configure"
1892 #include "confdefs.h"
1905 rm -f conftest.$ac_objext
1906 if { (eval echo "$as_me:1906: \"$ac_compile\"") >&5
1907 (eval $ac_compile) 2>&5
1909 echo "$as_me:1909: \$? = $ac_status" >&5
1910 (exit $ac_status); } &&
1911 { ac_try='test -s conftest.$ac_objext'
1912 { (eval echo "$as_me:1912: \"$ac_try\"") >&5
1915 echo "$as_me:1915: \$? = $ac_status" >&5
1916 (exit $ac_status); }; }; then
1919 echo "$as_me: failed program was:" >&5
1920 cat conftest.$ac_ext >&5
1923 rm -f conftest.$ac_objext conftest.$ac_ext
1924 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1927 echo "$as_me:1927: result: $ac_cv_c_compiler_gnu" >&5
1928 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1929 GCC=`test $ac_compiler_gnu = yes && echo yes`
1930 ac_test_CFLAGS=${CFLAGS+set}
1931 ac_save_CFLAGS=$CFLAGS
1933 echo "$as_me:1933: checking whether $CC accepts -g" >&5
1934 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1935 if test "${ac_cv_prog_cc_g+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 cat >conftest.$ac_ext <<_ACEOF
1939 #line 1939 "configure"
1940 #include "confdefs.h"
1950 rm -f conftest.$ac_objext
1951 if { (eval echo "$as_me:1951: \"$ac_compile\"") >&5
1952 (eval $ac_compile) 2>&5
1954 echo "$as_me:1954: \$? = $ac_status" >&5
1955 (exit $ac_status); } &&
1956 { ac_try='test -s conftest.$ac_objext'
1957 { (eval echo "$as_me:1957: \"$ac_try\"") >&5
1960 echo "$as_me:1960: \$? = $ac_status" >&5
1961 (exit $ac_status); }; }; then
1964 echo "$as_me: failed program was:" >&5
1965 cat conftest.$ac_ext >&5
1968 rm -f conftest.$ac_objext conftest.$ac_ext
1970 echo "$as_me:1970: result: $ac_cv_prog_cc_g" >&5
1971 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1972 if test "$ac_test_CFLAGS" = set; then
1973 CFLAGS=$ac_save_CFLAGS
1974 elif test $ac_cv_prog_cc_g = yes; then
1975 if test "$GCC" = yes; then
1981 if test "$GCC" = yes; then
1987 # Some people use a C++ compiler to compile C. Since we use `exit',
1988 # in C++ we need to declare it. In case someone uses the same compiler
1989 # for both compiling C and C++ we need to have the C++ compiler decide
1990 # the declaration of exit, since it's the most demanding environment.
1991 cat >conftest.$ac_ext <<_ACEOF
1996 rm -f conftest.$ac_objext
1997 if { (eval echo "$as_me:1997: \"$ac_compile\"") >&5
1998 (eval $ac_compile) 2>&5
2000 echo "$as_me:2000: \$? = $ac_status" >&5
2001 (exit $ac_status); } &&
2002 { ac_try='test -s conftest.$ac_objext'
2003 { (eval echo "$as_me:2003: \"$ac_try\"") >&5
2006 echo "$as_me:2006: \$? = $ac_status" >&5
2007 (exit $ac_status); }; }; then
2008 for ac_declaration in \
2010 '#include <stdlib.h>' \
2011 'extern "C" void std::exit (int) throw (); using std::exit;' \
2012 'extern "C" void std::exit (int); using std::exit;' \
2013 'extern "C" void exit (int) throw ();' \
2014 'extern "C" void exit (int);' \
2017 cat >conftest.$ac_ext <<_ACEOF
2018 #line 2018 "configure"
2019 #include "confdefs.h"
2030 rm -f conftest.$ac_objext
2031 if { (eval echo "$as_me:2031: \"$ac_compile\"") >&5
2032 (eval $ac_compile) 2>&5
2034 echo "$as_me:2034: \$? = $ac_status" >&5
2035 (exit $ac_status); } &&
2036 { ac_try='test -s conftest.$ac_objext'
2037 { (eval echo "$as_me:2037: \"$ac_try\"") >&5
2040 echo "$as_me:2040: \$? = $ac_status" >&5
2041 (exit $ac_status); }; }; then
2044 echo "$as_me: failed program was:" >&5
2045 cat conftest.$ac_ext >&5
2048 rm -f conftest.$ac_objext conftest.$ac_ext
2049 cat >conftest.$ac_ext <<_ACEOF
2050 #line 2050 "configure"
2051 #include "confdefs.h"
2061 rm -f conftest.$ac_objext
2062 if { (eval echo "$as_me:2062: \"$ac_compile\"") >&5
2063 (eval $ac_compile) 2>&5
2065 echo "$as_me:2065: \$? = $ac_status" >&5
2066 (exit $ac_status); } &&
2067 { ac_try='test -s conftest.$ac_objext'
2068 { (eval echo "$as_me:2068: \"$ac_try\"") >&5
2071 echo "$as_me:2071: \$? = $ac_status" >&5
2072 (exit $ac_status); }; }; then
2075 echo "$as_me: failed program was:" >&5
2076 cat conftest.$ac_ext >&5
2078 rm -f conftest.$ac_objext conftest.$ac_ext
2081 if test -n "$ac_declaration"; then
2082 echo '#ifdef __cplusplus' >>confdefs.h
2083 echo $ac_declaration >>confdefs.h
2084 echo '#endif' >>confdefs.h
2088 echo "$as_me: failed program was:" >&5
2089 cat conftest.$ac_ext >&5
2091 rm -f conftest.$ac_objext conftest.$ac_ext
2093 ac_cpp='$CPP $CPPFLAGS'
2094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2097 ac_main_return=return
2100 if test "$GCC" = yes ; then
2101 echo "$as_me:2101: checking version of $CC" >&5
2102 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2103 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2104 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2105 echo "$as_me:2105: result: $GCC_VERSION" >&5
2106 echo "${ECHO_T}$GCC_VERSION" >&6
2110 ac_cpp='$CPP $CPPFLAGS'
2111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2114 ac_main_return=return
2115 echo "$as_me:2115: checking how to run the C preprocessor" >&5
2116 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2117 # On Suns, sometimes $CPP names a directory.
2118 if test -n "$CPP" && test -d "$CPP"; then
2121 if test -z "$CPP"; then
2122 if test "${ac_cv_prog_CPP+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 # Double quotes because CPP needs to be expanded
2126 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2129 for ac_c_preproc_warn_flag in '' yes
2131 # Use a header file that comes with gcc, so configuring glibc
2132 # with a fresh cross-compiler works.
2133 # On the NeXT, cc -E runs the code through the compiler's parser,
2134 # not just through cpp. "Syntax error" is here to catch this case.
2135 cat >conftest.$ac_ext <<_ACEOF
2136 #line 2136 "configure"
2137 #include "confdefs.h"
2141 if { (eval echo "$as_me:2141: \"$ac_cpp conftest.$ac_ext\"") >&5
2142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2144 egrep -v '^ *\+' conftest.er1 >conftest.err
2146 cat conftest.err >&5
2147 echo "$as_me:2147: \$? = $ac_status" >&5
2148 (exit $ac_status); } >/dev/null; then
2149 if test -s conftest.err; then
2150 ac_cpp_err=$ac_c_preproc_warn_flag
2157 if test -z "$ac_cpp_err"; then
2160 echo "$as_me: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2162 # Broken: fails on valid input.
2165 rm -f conftest.err conftest.$ac_ext
2167 # OK, works on sane cases. Now check whether non-existent headers
2168 # can be detected and how.
2169 cat >conftest.$ac_ext <<_ACEOF
2170 #line 2170 "configure"
2171 #include "confdefs.h"
2172 #include <ac_nonexistent.h>
2174 if { (eval echo "$as_me:2174: \"$ac_cpp conftest.$ac_ext\"") >&5
2175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2177 egrep -v '^ *\+' conftest.er1 >conftest.err
2179 cat conftest.err >&5
2180 echo "$as_me:2180: \$? = $ac_status" >&5
2181 (exit $ac_status); } >/dev/null; then
2182 if test -s conftest.err; then
2183 ac_cpp_err=$ac_c_preproc_warn_flag
2190 if test -z "$ac_cpp_err"; then
2191 # Broken: success on invalid input.
2194 echo "$as_me: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2196 # Passes both tests.
2200 rm -f conftest.err conftest.$ac_ext
2203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2204 rm -f conftest.err conftest.$ac_ext
2205 if $ac_preproc_ok; then
2217 echo "$as_me:2217: result: $CPP" >&5
2218 echo "${ECHO_T}$CPP" >&6
2220 for ac_c_preproc_warn_flag in '' yes
2222 # Use a header file that comes with gcc, so configuring glibc
2223 # with a fresh cross-compiler works.
2224 # On the NeXT, cc -E runs the code through the compiler's parser,
2225 # not just through cpp. "Syntax error" is here to catch this case.
2226 cat >conftest.$ac_ext <<_ACEOF
2227 #line 2227 "configure"
2228 #include "confdefs.h"
2232 if { (eval echo "$as_me:2232: \"$ac_cpp conftest.$ac_ext\"") >&5
2233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2235 egrep -v '^ *\+' conftest.er1 >conftest.err
2237 cat conftest.err >&5
2238 echo "$as_me:2238: \$? = $ac_status" >&5
2239 (exit $ac_status); } >/dev/null; then
2240 if test -s conftest.err; then
2241 ac_cpp_err=$ac_c_preproc_warn_flag
2248 if test -z "$ac_cpp_err"; then
2251 echo "$as_me: failed program was:" >&5
2252 cat conftest.$ac_ext >&5
2253 # Broken: fails on valid input.
2256 rm -f conftest.err conftest.$ac_ext
2258 # OK, works on sane cases. Now check whether non-existent headers
2259 # can be detected and how.
2260 cat >conftest.$ac_ext <<_ACEOF
2261 #line 2261 "configure"
2262 #include "confdefs.h"
2263 #include <ac_nonexistent.h>
2265 if { (eval echo "$as_me:2265: \"$ac_cpp conftest.$ac_ext\"") >&5
2266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2268 egrep -v '^ *\+' conftest.er1 >conftest.err
2270 cat conftest.err >&5
2271 echo "$as_me:2271: \$? = $ac_status" >&5
2272 (exit $ac_status); } >/dev/null; then
2273 if test -s conftest.err; then
2274 ac_cpp_err=$ac_c_preproc_warn_flag
2281 if test -z "$ac_cpp_err"; then
2282 # Broken: success on invalid input.
2285 echo "$as_me: failed program was:" >&5
2286 cat conftest.$ac_ext >&5
2287 # Passes both tests.
2291 rm -f conftest.err conftest.$ac_ext
2294 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2295 rm -f conftest.err conftest.$ac_ext
2296 if $ac_preproc_ok; then
2299 { { echo "$as_me:2299: error: C preprocessor \"$CPP\" fails sanity check" >&5
2300 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2301 { (exit 1); exit 1; }; }
2305 ac_cpp='$CPP $CPPFLAGS'
2306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2309 ac_main_return=return
2311 if test $ac_cv_c_compiler_gnu = yes; then
2312 echo "$as_me:2312: checking whether $CC needs -traditional" >&5
2313 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2314 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 ac_pattern="Autoconf.*'x'"
2318 cat >conftest.$ac_ext <<_ACEOF
2319 #line 2319 "configure"
2320 #include "confdefs.h"
2322 int Autoconf = TIOCGETP;
2324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2325 egrep "$ac_pattern" >/dev/null 2>&1; then
2326 ac_cv_prog_gcc_traditional=yes
2328 ac_cv_prog_gcc_traditional=no
2332 if test $ac_cv_prog_gcc_traditional = no; then
2333 cat >conftest.$ac_ext <<_ACEOF
2334 #line 2334 "configure"
2335 #include "confdefs.h"
2337 int Autoconf = TCGETA;
2339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2340 egrep "$ac_pattern" >/dev/null 2>&1; then
2341 ac_cv_prog_gcc_traditional=yes
2347 echo "$as_me:2347: result: $ac_cv_prog_gcc_traditional" >&5
2348 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2349 if test $ac_cv_prog_gcc_traditional = yes; then
2350 CC="$CC -traditional"
2354 echo "$as_me:2354: checking whether $CC understands -c and -o together" >&5
2355 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2356 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 cat > conftest.$ac_ext <<CF_EOF
2364 ${cf_cv_main_return:-return}(0);
2367 # We do the test twice because some compilers refuse to overwrite an
2368 # existing .o file with -o, though they will create one.
2369 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2370 if { (eval echo "$as_me:2370: \"$ac_try\"") >&5
2373 echo "$as_me:2373: \$? = $ac_status" >&5
2374 (exit $ac_status); } &&
2375 test -f conftest2.$ac_objext && { (eval echo "$as_me:2375: \"$ac_try\"") >&5
2378 echo "$as_me:2378: \$? = $ac_status" >&5
2379 (exit $ac_status); };
2381 eval cf_cv_prog_CC_c_o=yes
2383 eval cf_cv_prog_CC_c_o=no
2388 if test $cf_cv_prog_CC_c_o = yes; then
2389 echo "$as_me:2389: result: yes" >&5
2390 echo "${ECHO_T}yes" >&6
2392 echo "$as_me:2392: result: no" >&5
2393 echo "${ECHO_T}no" >&6
2396 echo "$as_me:2396: checking for POSIXized ISC" >&5
2397 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2398 if test -d /etc/conf/kconfig.d &&
2399 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2401 echo "$as_me:2401: result: yes" >&5
2402 echo "${ECHO_T}yes" >&6
2403 ISC=yes # If later tests want to check for ISC.
2405 cat >>confdefs.h <<\EOF
2406 #define _POSIX_SOURCE 1
2409 if test "$GCC" = yes; then
2415 echo "$as_me:2415: result: no" >&5
2416 echo "${ECHO_T}no" >&6
2420 echo "$as_me:2420: checking for ${CC-cc} option to accept ANSI C" >&5
2421 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2422 if test "${cf_cv_ansi_cc+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 cf_save_CFLAGS="$CFLAGS"
2428 cf_save_CPPFLAGS="$CPPFLAGS"
2429 # Don't try gcc -ansi; that turns off useful extensions and
2430 # breaks some systems' header files.
2431 # AIX -qlanglvl=ansi
2432 # Ultrix and OSF/1 -std1
2433 # HP-UX -Aa -D_HPUX_SOURCE
2435 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2436 for cf_arg in "-DCC_HAS_PROTOS" \
2441 "-Aa -D_HPUX_SOURCE" \
2448 cf_new_extra_cppflags=
2450 for cf_add_cflags in $cf_arg
2452 case $cf_fix_cppflags in
2454 case $cf_add_cflags in #(vi
2455 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2456 case $cf_add_cflags in
2458 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2460 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2461 && test -z "${cf_tst_cflags}" \
2462 && cf_fix_cppflags=yes
2464 if test $cf_fix_cppflags = yes ; then
2465 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2467 elif test "${cf_tst_cflags}" = "\"'" ; then
2468 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2474 *$cf_add_cflags) #(vi
2477 case $cf_add_cflags in #(vi
2479 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2481 CPPFLAGS=`echo "$CPPFLAGS" | \
2482 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2483 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2487 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2492 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2497 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2499 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2501 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2502 && test -z "${cf_tst_cflags}" \
2503 && cf_fix_cppflags=no
2508 if test -n "$cf_new_cflags" ; then
2510 CFLAGS="$CFLAGS $cf_new_cflags"
2513 if test -n "$cf_new_cppflags" ; then
2515 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2518 if test -n "$cf_new_extra_cppflags" ; then
2520 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2523 cat >conftest.$ac_ext <<_ACEOF
2524 #line 2524 "configure"
2525 #include "confdefs.h"
2527 #ifndef CC_HAS_PROTOS
2528 #if !defined(__STDC__) || (__STDC__ != 1)
2537 int test (int i, double x);
2538 struct s1 {int (*f) (int a);};
2539 struct s2 {int (*f) (double a);};
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:2545: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>&5
2548 echo "$as_me:2548: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -s conftest.$ac_objext'
2551 { (eval echo "$as_me:2551: \"$ac_try\"") >&5
2554 echo "$as_me:2554: \$? = $ac_status" >&5
2555 (exit $ac_status); }; }; then
2556 cf_cv_ansi_cc="$cf_arg"; break
2558 echo "$as_me: failed program was:" >&5
2559 cat conftest.$ac_ext >&5
2561 rm -f conftest.$ac_objext conftest.$ac_ext
2563 CFLAGS="$cf_save_CFLAGS"
2564 CPPFLAGS="$cf_save_CPPFLAGS"
2567 echo "$as_me:2567: result: $cf_cv_ansi_cc" >&5
2568 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2570 if test "$cf_cv_ansi_cc" != "no"; then
2571 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2576 cf_new_extra_cppflags=
2578 for cf_add_cflags in $cf_cv_ansi_cc
2580 case $cf_fix_cppflags in
2582 case $cf_add_cflags in #(vi
2583 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2584 case $cf_add_cflags in
2586 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2588 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2589 && test -z "${cf_tst_cflags}" \
2590 && cf_fix_cppflags=yes
2592 if test $cf_fix_cppflags = yes ; then
2593 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2595 elif test "${cf_tst_cflags}" = "\"'" ; then
2596 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2602 *$cf_add_cflags) #(vi
2605 case $cf_add_cflags in #(vi
2607 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2609 CPPFLAGS=`echo "$CPPFLAGS" | \
2610 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2611 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2615 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2620 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2625 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2627 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2629 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2630 && test -z "${cf_tst_cflags}" \
2631 && cf_fix_cppflags=no
2636 if test -n "$cf_new_cflags" ; then
2638 CFLAGS="$CFLAGS $cf_new_cflags"
2641 if test -n "$cf_new_cppflags" ; then
2643 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2646 if test -n "$cf_new_extra_cppflags" ; then
2648 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2652 cat >>confdefs.h <<\EOF
2653 #define CC_HAS_PROTOS 1
2659 if test "$cf_cv_ansi_cc" = "no"; then
2660 { { echo "$as_me:2660: error: Your compiler does not appear to recognize prototypes.
2661 You have the following choices:
2662 a. adjust your compiler options
2663 b. get an up-to-date compiler
2664 c. use a wrapper such as unproto" >&5
2665 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2666 You have the following choices:
2667 a. adjust your compiler options
2668 b. get an up-to-date compiler
2669 c. use a wrapper such as unproto" >&2;}
2670 { (exit 1); exit 1; }; }
2673 case $cf_cv_system_name in
2675 CFLAGS="$CFLAGS -Zmt"
2676 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2677 CXXFLAGS="$CXXFLAGS -Zmt"
2678 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2679 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2686 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2687 #define PROG_EXT "$PROG_EXT"
2690 if test "$cross_compiling" = yes ; then
2693 case "$cf_cv_system_name" in #(vi
2694 dragonfly*|freebsd*) #(vi
2695 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2697 *) LDPATH=$PATH:/sbin:/usr/sbin
2698 # Extract the first word of "ldconfig", so it can be a program name with args.
2699 set dummy ldconfig; ac_word=$2
2700 echo "$as_me:2700: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2702 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2710 ac_save_IFS=$IFS; IFS=$ac_path_separator
2712 for ac_dir in $ac_dummy; do
2714 test -z "$ac_dir" && ac_dir=.
2715 if $as_executable_p "$ac_dir/$ac_word"; then
2716 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2717 echo "$as_me:2717: found $ac_dir/$ac_word" >&5
2725 LDCONFIG=$ac_cv_path_LDCONFIG
2727 if test -n "$LDCONFIG"; then
2728 echo "$as_me:2728: result: $LDCONFIG" >&5
2729 echo "${ECHO_T}$LDCONFIG" >&6
2731 echo "$as_me:2731: result: no" >&5
2732 echo "${ECHO_T}no" >&6
2739 echo "$as_me:2739: checking if you want to ensure bool is consistent with C++" >&5
2740 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2742 # Check whether --with-cxx or --without-cxx was given.
2743 if test "${with_cxx+set}" = set; then
2745 cf_with_cxx=$withval
2749 echo "$as_me:2749: result: $cf_with_cxx" >&5
2750 echo "${ECHO_T}$cf_with_cxx" >&6
2751 if test "X$cf_with_cxx" = Xno ; then
2755 # with autoconf 2.13, we can change the error to a warning:
2757 ac_cpp='$CXXCPP $CPPFLAGS'
2758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2761 ac_main_return=return
2762 if test -n "$ac_tool_prefix"; then
2763 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2766 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2767 echo "$as_me:2767: checking for $ac_word" >&5
2768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2769 if test "${ac_cv_prog_CXX+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 if test -n "$CXX"; then
2773 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2775 ac_save_IFS=$IFS; IFS=$ac_path_separator
2777 for ac_dir in $ac_dummy; do
2779 test -z "$ac_dir" && ac_dir=.
2780 $as_executable_p "$ac_dir/$ac_word" || continue
2781 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2782 echo "$as_me:2782: found $ac_dir/$ac_word" >&5
2789 if test -n "$CXX"; then
2790 echo "$as_me:2790: result: $CXX" >&5
2791 echo "${ECHO_T}$CXX" >&6
2793 echo "$as_me:2793: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2797 test -n "$CXX" && break
2800 if test -z "$CXX"; then
2802 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2804 # Extract the first word of "$ac_prog", so it can be a program name with args.
2805 set dummy $ac_prog; ac_word=$2
2806 echo "$as_me:2806: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 if test -n "$ac_ct_CXX"; then
2812 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2814 ac_save_IFS=$IFS; IFS=$ac_path_separator
2816 for ac_dir in $ac_dummy; do
2818 test -z "$ac_dir" && ac_dir=.
2819 $as_executable_p "$ac_dir/$ac_word" || continue
2820 ac_cv_prog_ac_ct_CXX="$ac_prog"
2821 echo "$as_me:2821: found $ac_dir/$ac_word" >&5
2827 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2828 if test -n "$ac_ct_CXX"; then
2829 echo "$as_me:2829: result: $ac_ct_CXX" >&5
2830 echo "${ECHO_T}$ac_ct_CXX" >&6
2832 echo "$as_me:2832: result: no" >&5
2833 echo "${ECHO_T}no" >&6
2836 test -n "$ac_ct_CXX" && break
2838 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2843 # Provide some information about the compiler.
2844 echo "$as_me:2844:" \
2845 "checking for C++ compiler version" >&5
2846 ac_compiler=`set X $ac_compile; echo $2`
2847 { (eval echo "$as_me:2847: \"$ac_compiler --version </dev/null >&5\"") >&5
2848 (eval $ac_compiler --version </dev/null >&5) 2>&5
2850 echo "$as_me:2850: \$? = $ac_status" >&5
2851 (exit $ac_status); }
2852 { (eval echo "$as_me:2852: \"$ac_compiler -v </dev/null >&5\"") >&5
2853 (eval $ac_compiler -v </dev/null >&5) 2>&5
2855 echo "$as_me:2855: \$? = $ac_status" >&5
2856 (exit $ac_status); }
2857 { (eval echo "$as_me:2857: \"$ac_compiler -V </dev/null >&5\"") >&5
2858 (eval $ac_compiler -V </dev/null >&5) 2>&5
2860 echo "$as_me:2860: \$? = $ac_status" >&5
2861 (exit $ac_status); }
2863 echo "$as_me:2863: checking whether we are using the GNU C++ compiler" >&5
2864 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2865 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 cat >conftest.$ac_ext <<_ACEOF
2869 #line 2869 "configure"
2870 #include "confdefs.h"
2883 rm -f conftest.$ac_objext
2884 if { (eval echo "$as_me:2884: \"$ac_compile\"") >&5
2885 (eval $ac_compile) 2>&5
2887 echo "$as_me:2887: \$? = $ac_status" >&5
2888 (exit $ac_status); } &&
2889 { ac_try='test -s conftest.$ac_objext'
2890 { (eval echo "$as_me:2890: \"$ac_try\"") >&5
2893 echo "$as_me:2893: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2897 echo "$as_me: failed program was:" >&5
2898 cat conftest.$ac_ext >&5
2901 rm -f conftest.$ac_objext conftest.$ac_ext
2902 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2905 echo "$as_me:2905: result: $ac_cv_cxx_compiler_gnu" >&5
2906 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2907 GXX=`test $ac_compiler_gnu = yes && echo yes`
2908 ac_test_CXXFLAGS=${CXXFLAGS+set}
2909 ac_save_CXXFLAGS=$CXXFLAGS
2911 echo "$as_me:2911: checking whether $CXX accepts -g" >&5
2912 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2913 if test "${ac_cv_prog_cxx_g+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 cat >conftest.$ac_ext <<_ACEOF
2917 #line 2917 "configure"
2918 #include "confdefs.h"
2928 rm -f conftest.$ac_objext
2929 if { (eval echo "$as_me:2929: \"$ac_compile\"") >&5
2930 (eval $ac_compile) 2>&5
2932 echo "$as_me:2932: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:2935: \"$ac_try\"") >&5
2938 echo "$as_me:2938: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 ac_cv_prog_cxx_g=yes
2942 echo "$as_me: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2946 rm -f conftest.$ac_objext conftest.$ac_ext
2948 echo "$as_me:2948: result: $ac_cv_prog_cxx_g" >&5
2949 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2950 if test "$ac_test_CXXFLAGS" = set; then
2951 CXXFLAGS=$ac_save_CXXFLAGS
2952 elif test $ac_cv_prog_cxx_g = yes; then
2953 if test "$GXX" = yes; then
2959 if test "$GXX" = yes; then
2965 for ac_declaration in \
2967 '#include <stdlib.h>' \
2968 'extern "C" void std::exit (int) throw (); using std::exit;' \
2969 'extern "C" void std::exit (int); using std::exit;' \
2970 'extern "C" void exit (int) throw ();' \
2971 'extern "C" void exit (int);' \
2974 cat >conftest.$ac_ext <<_ACEOF
2975 #line 2975 "configure"
2976 #include "confdefs.h"
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:2988: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>&5
2991 echo "$as_me:2991: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:2994: \"$ac_try\"") >&5
2997 echo "$as_me:2997: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
3001 echo "$as_me: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3005 rm -f conftest.$ac_objext conftest.$ac_ext
3006 cat >conftest.$ac_ext <<_ACEOF
3007 #line 3007 "configure"
3008 #include "confdefs.h"
3018 rm -f conftest.$ac_objext
3019 if { (eval echo "$as_me:3019: \"$ac_compile\"") >&5
3020 (eval $ac_compile) 2>&5
3022 echo "$as_me:3022: \$? = $ac_status" >&5
3023 (exit $ac_status); } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (eval echo "$as_me:3025: \"$ac_try\"") >&5
3028 echo "$as_me:3028: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3032 echo "$as_me: failed program was:" >&5
3033 cat conftest.$ac_ext >&5
3035 rm -f conftest.$ac_objext conftest.$ac_ext
3038 if test -n "$ac_declaration"; then
3039 echo '#ifdef __cplusplus' >>confdefs.h
3040 echo $ac_declaration >>confdefs.h
3041 echo '#endif' >>confdefs.h
3045 ac_cpp='$CPP $CPPFLAGS'
3046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3049 ac_main_return=return
3051 # autoconf 2.5x removed the error - by hardcoding it to g++.
3052 if test "$CXX" = "g++" ; then
3053 # Extract the first word of "g++", so it can be a program name with args.
3054 set dummy g++; ac_word=$2
3055 echo "$as_me:3055: checking for $ac_word" >&5
3056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3057 if test "${ac_cv_path_CXX+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3065 ac_save_IFS=$IFS; IFS=$ac_path_separator
3067 for ac_dir in $ac_dummy; do
3069 test -z "$ac_dir" && ac_dir=.
3070 if $as_executable_p "$ac_dir/$ac_word"; then
3071 ac_cv_path_CXX="$ac_dir/$ac_word"
3072 echo "$as_me:3072: found $ac_dir/$ac_word" >&5
3082 if test -n "$CXX"; then
3083 echo "$as_me:3083: result: $CXX" >&5
3084 echo "${ECHO_T}$CXX" >&6
3086 echo "$as_me:3086: result: no" >&5
3087 echo "${ECHO_T}no" >&6
3091 if test "$CXX" = "g++" ; then
3092 { echo "$as_me:3092: WARNING: ignoring hardcoded g++" >&5
3093 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3094 cf_with_cxx=no; CXX=""; GXX="";
3099 if test "$GXX" = yes; then
3100 echo "$as_me:3100: checking version of g++" >&5
3101 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3102 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3103 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3104 echo "$as_me:3104: result: $GXX_VERSION" >&5
3105 echo "${ECHO_T}$GXX_VERSION" >&6
3108 case $GXX_VERSION in
3110 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3112 { echo "$as_me:3112: WARNING: templates do not work" >&5
3113 echo "$as_me: WARNING: templates do not work" >&2;}
3117 echo "$as_me:3117: checking if you want to build C++ binding and demo" >&5
3118 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3120 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3121 if test "${with_cxx_binding+set}" = set; then
3122 withval="$with_cxx_binding"
3123 cf_with_cxx_binding=$withval
3125 cf_with_cxx_binding=$cf_with_cxx
3127 echo "$as_me:3127: result: $cf_with_cxx_binding" >&5
3128 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3130 echo "$as_me:3130: checking if you want to build with Ada95" >&5
3131 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3133 # Check whether --with-ada or --without-ada was given.
3134 if test "${with_ada+set}" = set; then
3136 cf_with_ada=$withval
3140 echo "$as_me:3140: result: $cf_with_ada" >&5
3141 echo "${ECHO_T}$cf_with_ada" >&6
3143 echo "$as_me:3143: checking if you want to install manpages" >&5
3144 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3146 # Check whether --with-manpages or --without-manpages was given.
3147 if test "${with_manpages+set}" = set; then
3148 withval="$with_manpages"
3149 cf_with_manpages=$withval
3151 cf_with_manpages=yes
3153 echo "$as_me:3153: result: $cf_with_manpages" >&5
3154 echo "${ECHO_T}$cf_with_manpages" >&6
3156 echo "$as_me:3156: checking if you want to build programs such as tic" >&5
3157 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3159 # Check whether --with-progs or --without-progs was given.
3160 if test "${with_progs+set}" = set; then
3161 withval="$with_progs"
3162 cf_with_progs=$withval
3166 echo "$as_me:3166: result: $cf_with_progs" >&5
3167 echo "${ECHO_T}$cf_with_progs" >&6
3169 echo "$as_me:3169: checking if you wish to install curses.h" >&5
3170 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3172 # Check whether --with-curses-h or --without-curses-h was given.
3173 if test "${with_curses_h+set}" = set; then
3174 withval="$with_curses_h"
3175 with_curses_h=$withval
3179 echo "$as_me:3179: result: $with_curses_h" >&5
3180 echo "${ECHO_T}$with_curses_h" >&6
3182 modules_to_build="ncurses"
3183 if test "X$cf_with_progs" != Xno ; then
3184 modules_to_build="$modules_to_build progs tack"
3186 modules_to_build="$modules_to_build panel menu form"
3188 test "$program_prefix" != NONE &&
3189 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3190 # Use a double $ so make ignores it.
3191 test "$program_suffix" != NONE &&
3192 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3193 # Double any \ or $. echo might interpret backslashes.
3194 # By default was `s,x,x', remove it if useless.
3195 cat <<\_ACEOF >conftest.sed
3196 s/[\\$]/&&/g;s/;s,x,x,$//
3198 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3201 for ac_prog in mawk gawk nawk awk
3203 # Extract the first word of "$ac_prog", so it can be a program name with args.
3204 set dummy $ac_prog; ac_word=$2
3205 echo "$as_me:3205: checking for $ac_word" >&5
3206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207 if test "${ac_cv_prog_AWK+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 if test -n "$AWK"; then
3211 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3213 ac_save_IFS=$IFS; IFS=$ac_path_separator
3215 for ac_dir in $ac_dummy; do
3217 test -z "$ac_dir" && ac_dir=.
3218 $as_executable_p "$ac_dir/$ac_word" || continue
3219 ac_cv_prog_AWK="$ac_prog"
3220 echo "$as_me:3220: found $ac_dir/$ac_word" >&5
3227 if test -n "$AWK"; then
3228 echo "$as_me:3228: result: $AWK" >&5
3229 echo "${ECHO_T}$AWK" >&6
3231 echo "$as_me:3231: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3235 test -n "$AWK" && break
3238 test -z "$AWK" && { { echo "$as_me:3238: error: No awk program found" >&5
3239 echo "$as_me: error: No awk program found" >&2;}
3240 { (exit 1); exit 1; }; }
3242 echo "$as_me:3242: checking for egrep" >&5
3243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3244 if test "${ac_cv_prog_egrep+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3248 then ac_cv_prog_egrep='grep -E'
3249 else ac_cv_prog_egrep='egrep'
3252 echo "$as_me:3252: result: $ac_cv_prog_egrep" >&5
3253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3254 EGREP=$ac_cv_prog_egrep
3256 test -z "$EGREP" && { { echo "$as_me:3256: error: No egrep program found" >&5
3257 echo "$as_me: error: No egrep program found" >&2;}
3258 { (exit 1); exit 1; }; }
3260 # Find a good install program. We prefer a C program (faster),
3261 # so one script is as good as another. But avoid the broken or
3262 # incompatible versions:
3263 # SysV /etc/install, /usr/sbin/install
3264 # SunOS /usr/etc/install
3265 # IRIX /sbin/install
3267 # AmigaOS /C/install, which installs bootblocks on floppy discs
3268 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3269 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3270 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3271 # ./install, which can be erroneously created by make from ./install.sh.
3272 echo "$as_me:3272: checking for a BSD compatible install" >&5
3273 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3274 if test -z "$INSTALL"; then
3275 if test "${ac_cv_path_install+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 ac_save_IFS=$IFS; IFS=$ac_path_separator
3279 for ac_dir in $PATH; do
3281 # Account for people who put trailing slashes in PATH elements.
3283 / | ./ | .// | /cC/* \
3284 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3287 # OSF1 and SCO ODT 3.0 have their own names for install.
3288 # Don't use installbsd from OSF since it installs stuff as root
3290 for ac_prog in ginstall scoinst install; do
3291 if $as_executable_p "$ac_dir/$ac_prog"; then
3292 if test $ac_prog = install &&
3293 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3294 # AIX install. It has an incompatible calling convention.
3296 elif test $ac_prog = install &&
3297 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3298 # program-specific install script used by HP pwplus--don't use.
3301 ac_cv_path_install="$ac_dir/$ac_prog -c"
3311 if test "${ac_cv_path_install+set}" = set; then
3312 INSTALL=$ac_cv_path_install
3314 # As a last resort, use the slow shell script. We don't cache a
3315 # path for INSTALL within a source directory, because that will
3316 # break other packages using the cache if that directory is
3317 # removed, or if the path is relative.
3318 INSTALL=$ac_install_sh
3321 echo "$as_me:3321: result: $INSTALL" >&5
3322 echo "${ECHO_T}$INSTALL" >&6
3324 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3325 # It thinks the first close brace ends the variable substitution.
3326 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3328 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3330 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3336 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3337 test -z "$cf_dir" && cf_dir=.
3338 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3342 for ac_prog in tdlint lint alint splint lclint
3344 # Extract the first word of "$ac_prog", so it can be a program name with args.
3345 set dummy $ac_prog; ac_word=$2
3346 echo "$as_me:3346: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_prog_LINT+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 if test -n "$LINT"; then
3352 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3354 ac_save_IFS=$IFS; IFS=$ac_path_separator
3356 for ac_dir in $ac_dummy; do
3358 test -z "$ac_dir" && ac_dir=.
3359 $as_executable_p "$ac_dir/$ac_word" || continue
3360 ac_cv_prog_LINT="$ac_prog"
3361 echo "$as_me:3361: found $ac_dir/$ac_word" >&5
3367 LINT=$ac_cv_prog_LINT
3368 if test -n "$LINT"; then
3369 echo "$as_me:3369: result: $LINT" >&5
3370 echo "${ECHO_T}$LINT" >&6
3372 echo "$as_me:3372: result: no" >&5
3373 echo "${ECHO_T}no" >&6
3376 test -n "$LINT" && break
3379 echo "$as_me:3379: checking whether ln -s works" >&5
3380 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3382 if test "$LN_S" = "ln -s"; then
3383 echo "$as_me:3383: result: yes" >&5
3384 echo "${ECHO_T}yes" >&6
3386 echo "$as_me:3386: result: no, using $LN_S" >&5
3387 echo "${ECHO_T}no, using $LN_S" >&6
3390 echo "$as_me:3390: checking for long file names" >&5
3391 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3392 if test "${ac_cv_sys_long_file_names+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 ac_cv_sys_long_file_names=yes
3396 # Test for long file names in all the places we know might matter:
3397 # . the current directory, where building will happen
3398 # $prefix/lib where we will be installing things
3399 # $exec_prefix/lib likewise
3400 # eval it to expand exec_prefix.
3401 # $TMPDIR if set, where it might want to write temporary files
3402 # if $TMPDIR is not set:
3403 # /tmp where it might want to write temporary files
3406 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3409 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3411 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3412 test -d $ac_dir || continue
3413 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3414 ac_xdir=$ac_dir/cf$$
3415 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3416 ac_tf1=$ac_xdir/conftest9012345
3417 ac_tf2=$ac_xdir/conftest9012346
3418 (echo 1 >$ac_tf1) 2>/dev/null
3419 (echo 2 >$ac_tf2) 2>/dev/null
3420 ac_val=`cat $ac_tf1 2>/dev/null`
3421 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3422 ac_cv_sys_long_file_names=no
3423 rm -rf $ac_xdir 2>/dev/null
3426 rm -rf $ac_xdir 2>/dev/null
3429 echo "$as_me:3429: result: $ac_cv_sys_long_file_names" >&5
3430 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3431 if test $ac_cv_sys_long_file_names = yes; then
3433 cat >>confdefs.h <<\EOF
3434 #define HAVE_LONG_FILE_NAMES 1
3439 # if we find pkg-config, check if we should install the ".pc" files.
3441 echo "$as_me:3441: checking if you want to use pkg-config" >&5
3442 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3444 # Check whether --with-pkg-config or --without-pkg-config was given.
3445 if test "${with_pkg_config+set}" = set; then
3446 withval="$with_pkg_config"
3447 cf_pkg_config=$withval
3451 echo "$as_me:3451: result: $cf_pkg_config" >&5
3452 echo "${ECHO_T}$cf_pkg_config" >&6
3454 case $cf_pkg_config in #(vi
3459 # Extract the first word of "pkg-config", so it can be a program name with args.
3460 set dummy pkg-config; ac_word=$2
3461 echo "$as_me:3461: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3471 ac_save_IFS=$IFS; IFS=$ac_path_separator
3473 for ac_dir in $ac_dummy; do
3475 test -z "$ac_dir" && ac_dir=.
3476 if $as_executable_p "$ac_dir/$ac_word"; then
3477 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3478 echo "$as_me:3478: found $ac_dir/$ac_word" >&5
3483 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
3487 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3489 if test -n "$PKG_CONFIG"; then
3490 echo "$as_me:3490: result: $PKG_CONFIG" >&5
3491 echo "${ECHO_T}$PKG_CONFIG" >&6
3493 echo "$as_me:3493: result: no" >&5
3494 echo "${ECHO_T}no" >&6
3503 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3504 if test "$PKG_CONFIG" != none ; then
3506 if test "x$prefix" != xNONE; then
3507 cf_path_syntax="$prefix"
3509 cf_path_syntax="$ac_default_prefix"
3512 case ".$PKG_CONFIG" in #(vi
3513 .\$\(*\)*|.\'*\'*) #(vi
3517 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3520 eval PKG_CONFIG="$PKG_CONFIG"
3521 case ".$PKG_CONFIG" in #(vi
3523 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3528 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3531 { { echo "$as_me:3531: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3532 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3533 { (exit 1); exit 1; }; }
3539 if test "$PKG_CONFIG" != no ; then
3540 echo "$as_me:3540: checking if we should install .pc files for $PKG_CONFIG" >&5
3541 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3543 # Leave this as something that can be overridden in the environment.
3544 if test -z "$PKG_CONFIG_LIBDIR" ; then
3545 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
3547 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
3548 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3550 # Check whether --enable-pc-files or --disable-pc-files was given.
3551 if test "${enable_pc_files+set}" = set; then
3552 enableval="$enable_pc_files"
3553 enable_pc_files=$enableval
3557 echo "$as_me:3557: result: $enable_pc_files" >&5
3558 echo "${ECHO_T}$enable_pc_files" >&6
3560 echo "$as_me:3560: result: no" >&5
3561 echo "${ECHO_T}no" >&6
3562 { echo "$as_me:3562: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
3563 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
3568 echo "$as_me:3568: checking if we should assume mixed-case filenames" >&5
3569 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3571 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3572 if test "${enable_mixed_case+set}" = set; then
3573 enableval="$enable_mixed_case"
3574 enable_mixedcase=$enableval
3576 enable_mixedcase=auto
3578 echo "$as_me:3578: result: $enable_mixedcase" >&5
3579 echo "${ECHO_T}$enable_mixedcase" >&6
3580 if test "$enable_mixedcase" = "auto" ; then
3582 echo "$as_me:3582: checking if filesystem supports mixed-case filenames" >&5
3583 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3584 if test "${cf_cv_mixedcase+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 if test "$cross_compiling" = yes ; then
3589 case $target_alias in #(vi
3590 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3598 rm -f conftest CONFTEST
3600 if test -f CONFTEST ; then
3605 rm -f conftest CONFTEST
3609 echo "$as_me:3609: result: $cf_cv_mixedcase" >&5
3610 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3611 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3612 #define MIXEDCASE_FILENAMES 1
3616 cf_cv_mixedcase=$enable_mixedcase
3617 if test "$enable_mixedcase" = "yes" ; then
3618 cat >>confdefs.h <<\EOF
3619 #define MIXEDCASE_FILENAMES 1
3625 # do this after mixed-case option (tags/TAGS is not as important as tic).
3626 echo "$as_me:3626: checking whether ${MAKE-make} sets \${MAKE}" >&5
3627 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3628 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3629 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 cat >conftest.make <<\EOF
3634 @echo 'ac_maketemp="${MAKE}"'
3636 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3637 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3638 if test -n "$ac_maketemp"; then
3639 eval ac_cv_prog_make_${ac_make}_set=yes
3641 eval ac_cv_prog_make_${ac_make}_set=no
3645 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3646 echo "$as_me:3646: result: yes" >&5
3647 echo "${ECHO_T}yes" >&6
3650 echo "$as_me:3650: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3652 SET_MAKE="MAKE=${MAKE-make}"
3655 # Extract the first word of "ctags", so it can be a program name with args.
3656 set dummy ctags; ac_word=$2
3657 echo "$as_me:3657: checking for $ac_word" >&5
3658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3659 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 if test -n "$MAKE_LOWER_TAGS"; then
3663 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3665 ac_save_IFS=$IFS; IFS=$ac_path_separator
3667 for ac_dir in $ac_dummy; do
3669 test -z "$ac_dir" && ac_dir=.
3670 $as_executable_p "$ac_dir/$ac_word" || continue
3671 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3672 echo "$as_me:3672: found $ac_dir/$ac_word" >&5
3676 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3679 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3680 if test -n "$MAKE_LOWER_TAGS"; then
3681 echo "$as_me:3681: result: $MAKE_LOWER_TAGS" >&5
3682 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3684 echo "$as_me:3684: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3688 if test "$cf_cv_mixedcase" = yes ; then
3689 # Extract the first word of "etags", so it can be a program name with args.
3690 set dummy etags; ac_word=$2
3691 echo "$as_me:3691: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 if test -n "$MAKE_UPPER_TAGS"; then
3697 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3699 ac_save_IFS=$IFS; IFS=$ac_path_separator
3701 for ac_dir in $ac_dummy; do
3703 test -z "$ac_dir" && ac_dir=.
3704 $as_executable_p "$ac_dir/$ac_word" || continue
3705 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3706 echo "$as_me:3706: found $ac_dir/$ac_word" >&5
3710 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3713 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3714 if test -n "$MAKE_UPPER_TAGS"; then
3715 echo "$as_me:3715: result: $MAKE_UPPER_TAGS" >&5
3716 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3718 echo "$as_me:3718: result: no" >&5
3719 echo "${ECHO_T}no" >&6
3726 if test "$MAKE_UPPER_TAGS" = yes ; then
3732 if test "$MAKE_LOWER_TAGS" = yes ; then
3738 echo "$as_me:3738: checking for makeflags variable" >&5
3739 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3740 if test "${cf_cv_makeflags+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3747 cat >cf_makeflags.tmp <<CF_EOF
3750 @ echo '.$cf_option'
3752 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3753 case "$cf_result" in
3755 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3756 case "$cf_result" in
3757 .*CC=*) cf_cv_makeflags=
3759 *) cf_cv_makeflags=$cf_option
3765 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3769 rm -f cf_makeflags.tmp
3772 echo "$as_me:3772: result: $cf_cv_makeflags" >&5
3773 echo "${ECHO_T}$cf_cv_makeflags" >&6
3775 if test -n "$ac_tool_prefix"; then
3776 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3777 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3778 echo "$as_me:3778: checking for $ac_word" >&5
3779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3780 if test "${ac_cv_prog_RANLIB+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 if test -n "$RANLIB"; then
3784 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3786 ac_save_IFS=$IFS; IFS=$ac_path_separator
3788 for ac_dir in $ac_dummy; do
3790 test -z "$ac_dir" && ac_dir=.
3791 $as_executable_p "$ac_dir/$ac_word" || continue
3792 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3793 echo "$as_me:3793: found $ac_dir/$ac_word" >&5
3799 RANLIB=$ac_cv_prog_RANLIB
3800 if test -n "$RANLIB"; then
3801 echo "$as_me:3801: result: $RANLIB" >&5
3802 echo "${ECHO_T}$RANLIB" >&6
3804 echo "$as_me:3804: result: no" >&5
3805 echo "${ECHO_T}no" >&6
3809 if test -z "$ac_cv_prog_RANLIB"; then
3810 ac_ct_RANLIB=$RANLIB
3811 # Extract the first word of "ranlib", so it can be a program name with args.
3812 set dummy ranlib; ac_word=$2
3813 echo "$as_me:3813: checking for $ac_word" >&5
3814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3815 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 if test -n "$ac_ct_RANLIB"; then
3819 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3821 ac_save_IFS=$IFS; IFS=$ac_path_separator
3823 for ac_dir in $ac_dummy; do
3825 test -z "$ac_dir" && ac_dir=.
3826 $as_executable_p "$ac_dir/$ac_word" || continue
3827 ac_cv_prog_ac_ct_RANLIB="ranlib"
3828 echo "$as_me:3828: found $ac_dir/$ac_word" >&5
3832 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3835 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3836 if test -n "$ac_ct_RANLIB"; then
3837 echo "$as_me:3837: result: $ac_ct_RANLIB" >&5
3838 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3840 echo "$as_me:3840: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3844 RANLIB=$ac_ct_RANLIB
3846 RANLIB="$ac_cv_prog_RANLIB"
3849 if test -n "$ac_tool_prefix"; then
3850 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3851 set dummy ${ac_tool_prefix}ld; ac_word=$2
3852 echo "$as_me:3852: checking for $ac_word" >&5
3853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3854 if test "${ac_cv_prog_LD+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 if test -n "$LD"; then
3858 ac_cv_prog_LD="$LD" # Let the user override the test.
3860 ac_save_IFS=$IFS; IFS=$ac_path_separator
3862 for ac_dir in $ac_dummy; do
3864 test -z "$ac_dir" && ac_dir=.
3865 $as_executable_p "$ac_dir/$ac_word" || continue
3866 ac_cv_prog_LD="${ac_tool_prefix}ld"
3867 echo "$as_me:3867: found $ac_dir/$ac_word" >&5
3874 if test -n "$LD"; then
3875 echo "$as_me:3875: result: $LD" >&5
3876 echo "${ECHO_T}$LD" >&6
3878 echo "$as_me:3878: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3883 if test -z "$ac_cv_prog_LD"; then
3885 # Extract the first word of "ld", so it can be a program name with args.
3886 set dummy ld; ac_word=$2
3887 echo "$as_me:3887: checking for $ac_word" >&5
3888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3889 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 if test -n "$ac_ct_LD"; then
3893 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3895 ac_save_IFS=$IFS; IFS=$ac_path_separator
3897 for ac_dir in $ac_dummy; do
3899 test -z "$ac_dir" && ac_dir=.
3900 $as_executable_p "$ac_dir/$ac_word" || continue
3901 ac_cv_prog_ac_ct_LD="ld"
3902 echo "$as_me:3902: found $ac_dir/$ac_word" >&5
3906 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3909 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3910 if test -n "$ac_ct_LD"; then
3911 echo "$as_me:3911: result: $ac_ct_LD" >&5
3912 echo "${ECHO_T}$ac_ct_LD" >&6
3914 echo "$as_me:3914: result: no" >&5
3915 echo "${ECHO_T}no" >&6
3923 if test -n "$ac_tool_prefix"; then
3924 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3925 set dummy ${ac_tool_prefix}ar; ac_word=$2
3926 echo "$as_me:3926: checking for $ac_word" >&5
3927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3928 if test "${ac_cv_prog_AR+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 if test -n "$AR"; then
3932 ac_cv_prog_AR="$AR" # Let the user override the test.
3934 ac_save_IFS=$IFS; IFS=$ac_path_separator
3936 for ac_dir in $ac_dummy; do
3938 test -z "$ac_dir" && ac_dir=.
3939 $as_executable_p "$ac_dir/$ac_word" || continue
3940 ac_cv_prog_AR="${ac_tool_prefix}ar"
3941 echo "$as_me:3941: found $ac_dir/$ac_word" >&5
3948 if test -n "$AR"; then
3949 echo "$as_me:3949: result: $AR" >&5
3950 echo "${ECHO_T}$AR" >&6
3952 echo "$as_me:3952: result: no" >&5
3953 echo "${ECHO_T}no" >&6
3957 if test -z "$ac_cv_prog_AR"; then
3959 # Extract the first word of "ar", so it can be a program name with args.
3960 set dummy ar; ac_word=$2
3961 echo "$as_me:3961: checking for $ac_word" >&5
3962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 if test -n "$ac_ct_AR"; then
3967 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3969 ac_save_IFS=$IFS; IFS=$ac_path_separator
3971 for ac_dir in $ac_dummy; do
3973 test -z "$ac_dir" && ac_dir=.
3974 $as_executable_p "$ac_dir/$ac_word" || continue
3975 ac_cv_prog_ac_ct_AR="ar"
3976 echo "$as_me:3976: found $ac_dir/$ac_word" >&5
3980 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3983 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3984 if test -n "$ac_ct_AR"; then
3985 echo "$as_me:3985: result: $ac_ct_AR" >&5
3986 echo "${ECHO_T}$ac_ct_AR" >&6
3988 echo "$as_me:3988: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3997 if test -n "$ac_tool_prefix"; then
3998 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3999 set dummy ${ac_tool_prefix}ar; ac_word=$2
4000 echo "$as_me:4000: checking for $ac_word" >&5
4001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4002 if test "${ac_cv_prog_AR+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 if test -n "$AR"; then
4006 ac_cv_prog_AR="$AR" # Let the user override the test.
4008 ac_save_IFS=$IFS; IFS=$ac_path_separator
4010 for ac_dir in $ac_dummy; do
4012 test -z "$ac_dir" && ac_dir=.
4013 $as_executable_p "$ac_dir/$ac_word" || continue
4014 ac_cv_prog_AR="${ac_tool_prefix}ar"
4015 echo "$as_me:4015: found $ac_dir/$ac_word" >&5
4022 if test -n "$AR"; then
4023 echo "$as_me:4023: result: $AR" >&5
4024 echo "${ECHO_T}$AR" >&6
4026 echo "$as_me:4026: result: no" >&5
4027 echo "${ECHO_T}no" >&6
4031 if test -z "$ac_cv_prog_AR"; then
4033 # Extract the first word of "ar", so it can be a program name with args.
4034 set dummy ar; ac_word=$2
4035 echo "$as_me:4035: checking for $ac_word" >&5
4036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4037 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 if test -n "$ac_ct_AR"; then
4041 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4043 ac_save_IFS=$IFS; IFS=$ac_path_separator
4045 for ac_dir in $ac_dummy; do
4047 test -z "$ac_dir" && ac_dir=.
4048 $as_executable_p "$ac_dir/$ac_word" || continue
4049 ac_cv_prog_ac_ct_AR="ar"
4050 echo "$as_me:4050: found $ac_dir/$ac_word" >&5
4054 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4057 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4058 if test -n "$ac_ct_AR"; then
4059 echo "$as_me:4059: result: $ac_ct_AR" >&5
4060 echo "${ECHO_T}$ac_ct_AR" >&6
4062 echo "$as_me:4062: result: no" >&5
4063 echo "${ECHO_T}no" >&6
4071 echo "$as_me:4071: checking for options to update archives" >&5
4072 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4073 if test "${cf_cv_ar_flags+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 cf_cv_ar_flags=unknown
4078 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4080 rm -f conftest.$ac_cv_objext
4083 cat >conftest.$ac_ext <<EOF
4084 #line 4084 "configure"
4085 int testdata[3] = { 123, 456, 789 };
4087 if { (eval echo "$as_me:4087: \"$ac_compile\"") >&5
4088 (eval $ac_compile) 2>&5
4090 echo "$as_me:4090: \$? = $ac_status" >&5
4091 (exit $ac_status); } ; then
4092 $AR $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4093 if test -f conftest.a ; then
4094 cf_cv_ar_flags=$cf_ar_flags
4098 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4100 echo "${as_me-configure}:4100: testing cannot compile test-program ..." 1>&5
4105 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4108 echo "$as_me:4108: result: $cf_cv_ar_flags" >&5
4109 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4110 test -z "$ARFLAGS" && ARFLAGS=$cf_cv_ar_flags
4111 ARFLAGS=$cf_cv_ar_flags
4113 echo "$as_me:4113: checking if you have specified an install-prefix" >&5
4114 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4116 # Check whether --with-install-prefix or --without-install-prefix was given.
4117 if test "${with_install_prefix+set}" = set; then
4118 withval="$with_install_prefix"
4119 case "$withval" in #(vi
4122 *) DESTDIR="$withval"
4126 echo "$as_me:4126: result: $DESTDIR" >&5
4127 echo "${ECHO_T}$DESTDIR" >&6
4129 ###############################################################################
4131 # If we're cross-compiling, allow the user to override the tools and their
4132 # options. The configure script is oriented toward identifying the host
4133 # compiler, etc., but we need a build compiler to generate parts of the source.
4135 if test "$cross_compiling" = yes ; then
4137 # defaults that we might want to override
4138 : ${BUILD_CFLAGS:=''}
4139 : ${BUILD_CPPFLAGS:=''}
4140 : ${BUILD_LDFLAGS:=''}
4142 : ${BUILD_EXEEXT:='$x'}
4143 : ${BUILD_OBJEXT:='o'}
4145 # Check whether --with-build-cc or --without-build-cc was given.
4146 if test "${with_build_cc+set}" = set; then
4147 withval="$with_build_cc"
4150 for ac_prog in gcc cc cl
4152 # Extract the first word of "$ac_prog", so it can be a program name with args.
4153 set dummy $ac_prog; ac_word=$2
4154 echo "$as_me:4154: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 if test -n "$BUILD_CC"; then
4160 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4162 ac_save_IFS=$IFS; IFS=$ac_path_separator
4164 for ac_dir in $ac_dummy; do
4166 test -z "$ac_dir" && ac_dir=.
4167 $as_executable_p "$ac_dir/$ac_word" || continue
4168 ac_cv_prog_BUILD_CC="$ac_prog"
4169 echo "$as_me:4169: found $ac_dir/$ac_word" >&5
4175 BUILD_CC=$ac_cv_prog_BUILD_CC
4176 if test -n "$BUILD_CC"; then
4177 echo "$as_me:4177: result: $BUILD_CC" >&5
4178 echo "${ECHO_T}$BUILD_CC" >&6
4180 echo "$as_me:4180: result: no" >&5
4181 echo "${ECHO_T}no" >&6
4184 test -n "$BUILD_CC" && break
4188 echo "$as_me:4188: checking for native build C compiler" >&5
4189 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4190 echo "$as_me:4190: result: $BUILD_CC" >&5
4191 echo "${ECHO_T}$BUILD_CC" >&6
4193 echo "$as_me:4193: checking for native build C preprocessor" >&5
4194 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4196 # Check whether --with-build-cpp or --without-build-cpp was given.
4197 if test "${with_build_cpp+set}" = set; then
4198 withval="$with_build_cpp"
4199 BUILD_CPP="$withval"
4201 BUILD_CPP='${BUILD_CC} -E'
4203 echo "$as_me:4203: result: $BUILD_CPP" >&5
4204 echo "${ECHO_T}$BUILD_CPP" >&6
4206 echo "$as_me:4206: checking for native build C flags" >&5
4207 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4209 # Check whether --with-build-cflags or --without-build-cflags was given.
4210 if test "${with_build_cflags+set}" = set; then
4211 withval="$with_build_cflags"
4212 BUILD_CFLAGS="$withval"
4214 echo "$as_me:4214: result: $BUILD_CFLAGS" >&5
4215 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4217 echo "$as_me:4217: checking for native build C preprocessor-flags" >&5
4218 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4220 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4221 if test "${with_build_cppflags+set}" = set; then
4222 withval="$with_build_cppflags"
4223 BUILD_CPPFLAGS="$withval"
4225 echo "$as_me:4225: result: $BUILD_CPPFLAGS" >&5
4226 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4228 echo "$as_me:4228: checking for native build linker-flags" >&5
4229 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4231 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4232 if test "${with_build_ldflags+set}" = set; then
4233 withval="$with_build_ldflags"
4234 BUILD_LDFLAGS="$withval"
4236 echo "$as_me:4236: result: $BUILD_LDFLAGS" >&5
4237 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4239 echo "$as_me:4239: checking for native build linker-libraries" >&5
4240 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4242 # Check whether --with-build-libs or --without-build-libs was given.
4243 if test "${with_build_libs+set}" = set; then
4244 withval="$with_build_libs"
4245 BUILD_LIBS="$withval"
4247 echo "$as_me:4247: result: $BUILD_LIBS" >&5
4248 echo "${ECHO_T}$BUILD_LIBS" >&6
4250 # this assumes we're on Unix.
4254 : ${BUILD_CC:='${CC}'}
4256 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4257 { { echo "$as_me:4257: error: Cross-build requires two compilers.
4258 Use --with-build-cc to specify the native compiler." >&5
4259 echo "$as_me: error: Cross-build requires two compilers.
4260 Use --with-build-cc to specify the native compiler." >&2;}
4261 { (exit 1); exit 1; }; }
4265 : ${BUILD_CC:='${CC}'}
4266 : ${BUILD_CPP:='${CPP}'}
4267 : ${BUILD_CFLAGS:='${CFLAGS}'}
4268 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4269 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4270 : ${BUILD_LIBS:='${LIBS}'}
4271 : ${BUILD_EXEEXT:='$x'}
4272 : ${BUILD_OBJEXT:='o'}
4275 ###############################################################################
4277 ### Options to allow the user to specify the set of libraries which are used.
4278 ### Use "--without-normal --with-shared" to allow the default model to be
4279 ### shared, for example.
4284 # common library maintenance symbols that are convenient for libtool scripts:
4285 LIB_CREATE='${AR} -cr'
4286 LIB_OBJECT='${OBJECTS}'
4290 # symbols used to prop libtool up to enable it to determine what it should be
4298 echo "$as_me:4298: checking if you want to build libraries with libtool" >&5
4299 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4301 # Check whether --with-libtool or --without-libtool was given.
4302 if test "${with_libtool+set}" = set; then
4303 withval="$with_libtool"
4304 with_libtool=$withval
4308 echo "$as_me:4308: result: $with_libtool" >&5
4309 echo "${ECHO_T}$with_libtool" >&6
4310 if test "$with_libtool" != "no"; then
4312 if test "$with_libtool" != "yes" ; then
4314 if test "x$prefix" != xNONE; then
4315 cf_path_syntax="$prefix"
4317 cf_path_syntax="$ac_default_prefix"
4320 case ".$with_libtool" in #(vi
4321 .\$\(*\)*|.\'*\'*) #(vi
4325 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4328 eval with_libtool="$with_libtool"
4329 case ".$with_libtool" in #(vi
4331 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4336 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4339 { { echo "$as_me:4339: error: expected a pathname, not \"$with_libtool\"" >&5
4340 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4341 { (exit 1); exit 1; }; }
4345 LIBTOOL=$with_libtool
4347 # Extract the first word of "libtool", so it can be a program name with args.
4348 set dummy libtool; ac_word=$2
4349 echo "$as_me:4349: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4351 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4359 ac_save_IFS=$IFS; IFS=$ac_path_separator
4361 for ac_dir in $ac_dummy; do
4363 test -z "$ac_dir" && ac_dir=.
4364 if $as_executable_p "$ac_dir/$ac_word"; then
4365 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4366 echo "$as_me:4366: found $ac_dir/$ac_word" >&5
4374 LIBTOOL=$ac_cv_path_LIBTOOL
4376 if test -n "$LIBTOOL"; then
4377 echo "$as_me:4377: result: $LIBTOOL" >&5
4378 echo "${ECHO_T}$LIBTOOL" >&6
4380 echo "$as_me:4380: result: no" >&5
4381 echo "${ECHO_T}no" >&6
4385 if test -z "$LIBTOOL" ; then
4386 { { echo "$as_me:4386: error: Cannot find libtool" >&5
4387 echo "$as_me: error: Cannot find libtool" >&2;}
4388 { (exit 1); exit 1; }; }
4390 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} -o'
4391 LIB_OBJECT='${OBJECTS:.o=.lo}'
4393 LIB_CLEAN='${LIBTOOL} --mode=clean'
4394 LIB_COMPILE='${LIBTOOL} --mode=compile'
4395 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4396 LIB_INSTALL='${LIBTOOL} --mode=install'
4397 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4400 # Show the version of libtool
4401 echo "$as_me:4401: checking version of libtool" >&5
4402 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4404 # Save the version in a cache variable - this is not entirely a good
4405 # thing, but the version string from libtool is very ugly, and for
4406 # bug reports it might be useful to have the original string. "("
4407 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.].*//'`
4408 echo "$as_me:4408: result: $cf_cv_libtool_version" >&5
4409 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4410 if test -z "$cf_cv_libtool_version" ; then
4411 { { echo "$as_me:4411: error: This is not GNU libtool" >&5
4412 echo "$as_me: error: This is not GNU libtool" >&2;}
4413 { (exit 1); exit 1; }; }
4416 # special hack to add -no-undefined (which libtool should do for itself)
4418 case "$cf_cv_system_name" in #(vi
4419 cygwin*|mingw32*|uwin*|aix[456]) #(vi
4420 LT_UNDEF=-no-undefined
4424 # special hack to add --tag option for C++ compiler
4425 case $cf_cv_libtool_version in #(vi
4426 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4427 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4428 LIBTOOL="$LIBTOOL --tag=CC"
4431 LIBTOOL_CXX="$LIBTOOL"
4439 test -z "$LIBTOOL" && ECHO_LT=
4441 if test "$with_libtool" != "no" ; then
4443 cf_list_models="$cf_list_models libtool"
4447 echo "$as_me:4447: checking if you want to build shared libraries" >&5
4448 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4450 # Check whether --with-shared or --without-shared was given.
4451 if test "${with_shared+set}" = set; then
4452 withval="$with_shared"
4453 with_shared=$withval
4457 echo "$as_me:4457: result: $with_shared" >&5
4458 echo "${ECHO_T}$with_shared" >&6
4459 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4461 echo "$as_me:4461: checking if you want to build static libraries" >&5
4462 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4464 # Check whether --with-normal or --without-normal was given.
4465 if test "${with_normal+set}" = set; then
4466 withval="$with_normal"
4467 with_normal=$withval
4471 echo "$as_me:4471: result: $with_normal" >&5
4472 echo "${ECHO_T}$with_normal" >&6
4473 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4475 echo "$as_me:4475: checking if you want to build debug libraries" >&5
4476 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4478 # Check whether --with-debug or --without-debug was given.
4479 if test "${with_debug+set}" = set; then
4480 withval="$with_debug"
4485 echo "$as_me:4485: result: $with_debug" >&5
4486 echo "${ECHO_T}$with_debug" >&6
4487 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4489 echo "$as_me:4489: checking if you want to build profiling libraries" >&5
4490 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4492 # Check whether --with-profile or --without-profile was given.
4493 if test "${with_profile+set}" = set; then
4494 withval="$with_profile"
4495 with_profile=$withval
4499 echo "$as_me:4499: result: $with_profile" >&5
4500 echo "${ECHO_T}$with_profile" >&6
4501 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4505 ###############################################################################
4507 echo "$as_me:4507: checking for specified models" >&5
4508 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4509 test -z "$cf_list_models" && cf_list_models=normal
4510 test "$with_libtool" != "no" && cf_list_models=libtool
4511 echo "$as_me:4511: result: $cf_list_models" >&5
4512 echo "${ECHO_T}$cf_list_models" >&6
4514 ### Use the first model as the default, and save its suffix for use in building
4515 ### up test-applications.
4516 echo "$as_me:4516: checking for default model" >&5
4517 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4518 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4519 echo "$as_me:4519: result: $DFT_LWR_MODEL" >&5
4520 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4522 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4533 case $cf_cv_system_name in #(vi
4540 cf_prefix=$LIB_PREFIX
4542 LIB_PREFIX=$cf_prefix
4546 ###############################################################################
4548 echo "$as_me:4548: checking if you want to build a separate terminfo library" >&5
4549 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4551 # Check whether --with-termlib or --without-termlib was given.
4552 if test "${with_termlib+set}" = set; then
4553 withval="$with_termlib"
4554 with_termlib=$withval
4558 echo "$as_me:4558: result: $with_termlib" >&5
4559 echo "${ECHO_T}$with_termlib" >&6
4561 echo "$as_me:4561: checking if you want to build a separate tic library" >&5
4562 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4564 # Check whether --with-ticlib or --without-ticlib was given.
4565 if test "${with_ticlib+set}" = set; then
4566 withval="$with_ticlib"
4567 with_ticlib=$withval
4571 echo "$as_me:4571: result: $with_ticlib" >&5
4572 echo "${ECHO_T}$with_ticlib" >&6
4574 ### Checks for special libraries, must be done up-front.
4577 echo "$as_me:4577: checking if you want to link with the GPM mouse library" >&5
4578 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4580 # Check whether --with-gpm or --without-gpm was given.
4581 if test "${with_gpm+set}" = set; then
4587 echo "$as_me:4587: result: $with_gpm" >&5
4588 echo "${ECHO_T}$with_gpm" >&6
4590 if test "$with_gpm" != no ; then
4591 echo "$as_me:4591: checking for gpm.h" >&5
4592 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4593 if test "${ac_cv_header_gpm_h+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 cat >conftest.$ac_ext <<_ACEOF
4597 #line 4597 "configure"
4598 #include "confdefs.h"
4601 if { (eval echo "$as_me:4601: \"$ac_cpp conftest.$ac_ext\"") >&5
4602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4604 egrep -v '^ *\+' conftest.er1 >conftest.err
4606 cat conftest.err >&5
4607 echo "$as_me:4607: \$? = $ac_status" >&5
4608 (exit $ac_status); } >/dev/null; then
4609 if test -s conftest.err; then
4610 ac_cpp_err=$ac_c_preproc_warn_flag
4617 if test -z "$ac_cpp_err"; then
4618 ac_cv_header_gpm_h=yes
4620 echo "$as_me: failed program was:" >&5
4621 cat conftest.$ac_ext >&5
4622 ac_cv_header_gpm_h=no
4624 rm -f conftest.err conftest.$ac_ext
4626 echo "$as_me:4626: result: $ac_cv_header_gpm_h" >&5
4627 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4628 if test $ac_cv_header_gpm_h = yes; then
4630 cat >>confdefs.h <<\EOF
4631 #define HAVE_GPM_H 1
4634 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4635 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4637 echo "${as_me-configure}:4637: testing assuming we really have GPM library ..." 1>&5
4639 cat >>confdefs.h <<\EOF
4640 #define HAVE_LIBGPM 1
4644 echo "$as_me:4644: checking for Gpm_Open in -lgpm" >&5
4645 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4646 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 ac_check_lib_save_LIBS=$LIBS
4651 cat >conftest.$ac_ext <<_ACEOF
4652 #line 4652 "configure"
4653 #include "confdefs.h"
4655 /* Override any gcc2 internal prototype to avoid an error. */
4659 /* We use char because int might match the return type of a gcc2
4660 builtin and then its argument prototype would still apply. */
4670 rm -f conftest.$ac_objext conftest$ac_exeext
4671 if { (eval echo "$as_me:4671: \"$ac_link\"") >&5
4672 (eval $ac_link) 2>&5
4674 echo "$as_me:4674: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try='test -s conftest$ac_exeext'
4677 { (eval echo "$as_me:4677: \"$ac_try\"") >&5
4680 echo "$as_me:4680: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 ac_cv_lib_gpm_Gpm_Open=yes
4684 echo "$as_me: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4686 ac_cv_lib_gpm_Gpm_Open=no
4688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4689 LIBS=$ac_check_lib_save_LIBS
4691 echo "$as_me:4691: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4692 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4693 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4697 { { echo "$as_me:4697: error: Cannot link with GPM library" >&5
4698 echo "$as_me: error: Cannot link with GPM library" >&2;}
4699 { (exit 1); exit 1; }; }
4707 test "$with_gpm" != maybe && { echo "$as_me:4707: WARNING: Cannot find GPM header" >&5
4708 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4715 if test "$with_gpm" != no ; then
4716 echo "$as_me:4716: checking if you want to load GPM dynamically" >&5
4717 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4719 # Check whether --with-dlsym or --without-dlsym was given.
4720 if test "${with_dlsym+set}" = set; then
4721 withval="$with_dlsym"
4726 echo "$as_me:4726: result: $with_dlsym" >&5
4727 echo "${ECHO_T}$with_dlsym" >&6
4728 if test "$with_dlsym" = yes ; then
4731 echo "$as_me:4731: checking for dlsym" >&5
4732 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4733 if test "${ac_cv_func_dlsym+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 cat >conftest.$ac_ext <<_ACEOF
4737 #line 4737 "configure"
4738 #include "confdefs.h"
4739 /* System header to define __stub macros and hopefully few prototypes,
4740 which can conflict with char dlsym (); below. */
4742 /* Override any gcc2 internal prototype to avoid an error. */
4746 /* We use char because int might match the return type of a gcc2
4747 builtin and then its argument prototype would still apply. */
4754 /* The GNU C library defines this for functions which it implements
4755 to always fail with ENOSYS. Some functions are actually named
4756 something starting with __ and the normal name is an alias. */
4757 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4767 rm -f conftest.$ac_objext conftest$ac_exeext
4768 if { (eval echo "$as_me:4768: \"$ac_link\"") >&5
4769 (eval $ac_link) 2>&5
4771 echo "$as_me:4771: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -s conftest$ac_exeext'
4774 { (eval echo "$as_me:4774: \"$ac_try\"") >&5
4777 echo "$as_me:4777: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 ac_cv_func_dlsym=yes
4781 echo "$as_me: failed program was:" >&5
4782 cat conftest.$ac_ext >&5
4785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4787 echo "$as_me:4787: result: $ac_cv_func_dlsym" >&5
4788 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4789 if test $ac_cv_func_dlsym = yes; then
4794 echo "$as_me:4794: checking for dlsym in -ldl" >&5
4795 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4796 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 ac_check_lib_save_LIBS=$LIBS
4801 cat >conftest.$ac_ext <<_ACEOF
4802 #line 4802 "configure"
4803 #include "confdefs.h"
4805 /* Override any gcc2 internal prototype to avoid an error. */
4809 /* We use char because int might match the return type of a gcc2
4810 builtin and then its argument prototype would still apply. */
4820 rm -f conftest.$ac_objext conftest$ac_exeext
4821 if { (eval echo "$as_me:4821: \"$ac_link\"") >&5
4822 (eval $ac_link) 2>&5
4824 echo "$as_me:4824: \$? = $ac_status" >&5
4825 (exit $ac_status); } &&
4826 { ac_try='test -s conftest$ac_exeext'
4827 { (eval echo "$as_me:4827: \"$ac_try\"") >&5
4830 echo "$as_me:4830: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 ac_cv_lib_dl_dlsym=yes
4834 echo "$as_me: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4836 ac_cv_lib_dl_dlsym=no
4838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4839 LIBS=$ac_check_lib_save_LIBS
4841 echo "$as_me:4841: result: $ac_cv_lib_dl_dlsym" >&5
4842 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4843 if test $ac_cv_lib_dl_dlsym = yes; then
4851 if test "$cf_have_dlsym" = yes ; then
4852 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
4854 echo "$as_me:4854: checking whether able to link to dl*() functions" >&5
4855 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
4856 cat >conftest.$ac_ext <<_ACEOF
4857 #line 4857 "configure"
4858 #include "confdefs.h"
4865 if ((obj = dlopen("filename", 0)) != 0) {
4866 if (dlsym(obj, "symbolname") == 0) {
4874 rm -f conftest.$ac_objext conftest$ac_exeext
4875 if { (eval echo "$as_me:4875: \"$ac_link\"") >&5
4876 (eval $ac_link) 2>&5
4878 echo "$as_me:4878: \$? = $ac_status" >&5
4879 (exit $ac_status); } &&
4880 { ac_try='test -s conftest$ac_exeext'
4881 { (eval echo "$as_me:4881: \"$ac_try\"") >&5
4884 echo "$as_me:4884: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4887 cat >>confdefs.h <<\EOF
4888 #define HAVE_LIBDL 1
4892 echo "$as_me: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4895 { { echo "$as_me:4895: error: Cannot link test program for libdl" >&5
4896 echo "$as_me: error: Cannot link test program for libdl" >&2;}
4897 { (exit 1); exit 1; }; }
4899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4900 echo "$as_me:4900: result: ok" >&5
4901 echo "${ECHO_T}ok" >&6
4903 { { echo "$as_me:4903: error: Cannot find dlsym function" >&5
4904 echo "$as_me: error: Cannot find dlsym function" >&2;}
4905 { (exit 1); exit 1; }; }
4908 if test "$with_gpm" != yes ; then
4909 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
4911 echo "${as_me-configure}:4911: testing assuming soname for gpm is $with_gpm ..." 1>&5
4913 cf_cv_gpm_soname="$with_gpm"
4916 echo "$as_me:4916: checking for soname of gpm library" >&5
4917 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
4918 if test "${cf_cv_gpm_soname+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 cf_cv_gpm_soname=unknown
4923 if test "$cross_compiling" != yes ; then
4924 cat >conftest.$ac_ext <<CF_EOF
4928 if (Gpm_Open(0,0)) Gpm_Close();
4929 ${cf_cv_main_return:-return}(0);
4932 cf_save_LIBS="$LIBS"
4934 if { (eval echo "$as_me:4934: \"$ac_compile\"") >&5
4935 (eval $ac_compile) 2>&5
4937 echo "$as_me:4937: \$? = $ac_status" >&5
4938 (exit $ac_status); } ; then
4939 if { (eval echo "$as_me:4939: \"$ac_link\"") >&5
4940 (eval $ac_link) 2>&5
4942 echo "$as_me:4942: \$? = $ac_status" >&5
4943 (exit $ac_status); } ; then
4944 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
4945 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
4949 LIBS="$cf_save_LIBS"
4953 echo "$as_me:4953: result: $cf_cv_gpm_soname" >&5
4954 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
4957 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
4958 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
4961 SHLIB_LIST="-ldl $SHLIB_LIST"
4963 SHLIB_LIST="-lgpm $SHLIB_LIST"
4965 cat >>confdefs.h <<\EOF
4966 #define HAVE_LIBGPM 1
4969 echo "$as_me:4969: checking for Gpm_Wgetch in -lgpm" >&5
4970 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
4971 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 ac_check_lib_save_LIBS=$LIBS
4976 cat >conftest.$ac_ext <<_ACEOF
4977 #line 4977 "configure"
4978 #include "confdefs.h"
4980 /* Override any gcc2 internal prototype to avoid an error. */
4984 /* We use char because int might match the return type of a gcc2
4985 builtin and then its argument prototype would still apply. */
4995 rm -f conftest.$ac_objext conftest$ac_exeext
4996 if { (eval echo "$as_me:4996: \"$ac_link\"") >&5
4997 (eval $ac_link) 2>&5
4999 echo "$as_me:4999: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
5001 { ac_try='test -s conftest$ac_exeext'
5002 { (eval echo "$as_me:5002: \"$ac_try\"") >&5
5005 echo "$as_me:5005: \$? = $ac_status" >&5
5006 (exit $ac_status); }; }; then
5007 ac_cv_lib_gpm_Gpm_Wgetch=yes
5009 echo "$as_me: failed program was:" >&5
5010 cat conftest.$ac_ext >&5
5011 ac_cv_lib_gpm_Gpm_Wgetch=no
5013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5014 LIBS=$ac_check_lib_save_LIBS
5016 echo "$as_me:5016: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5017 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5018 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5020 echo "$as_me:5020: checking if GPM is weakly bound to curses library" >&5
5021 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5022 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 cf_cv_check_gpm_wgetch=unknown
5027 if test "$cross_compiling" != yes ; then
5029 cat >conftest.$ac_ext <<CF_EOF
5034 ${cf_cv_main_return:-return}(0);
5038 cf_save_LIBS="$LIBS"
5039 # This only works if we can look at the symbol table. If a shared
5040 # library is stripped for install, we cannot use that. So we're forced
5041 # to rely on the static library, noting that some packagers may not
5043 LIBS="-static -lgpm -dynamic $LIBS"
5044 if { (eval echo "$as_me:5044: \"$ac_compile\"") >&5
5045 (eval $ac_compile) 2>&5
5047 echo "$as_me:5047: \$? = $ac_status" >&5
5048 (exit $ac_status); } ; then
5049 if { (eval echo "$as_me:5049: \"$ac_link\"") >&5
5050 (eval $ac_link) 2>&5
5052 echo "$as_me:5052: \$? = $ac_status" >&5
5053 (exit $ac_status); } ; then
5054 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5055 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5056 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5060 LIBS="$cf_save_LIBS"
5064 echo "$as_me:5064: result: $cf_cv_check_gpm_wgetch" >&5
5065 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5067 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5068 { echo "$as_me:5068: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5069 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5076 # not everyone has "test -c"
5077 if test -c /dev/sysmouse 2>/dev/null ; then
5078 echo "$as_me:5078: checking if you want to use sysmouse" >&5
5079 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5081 # Check whether --with-sysmouse or --without-sysmouse was given.
5082 if test "${with_sysmouse+set}" = set; then
5083 withval="$with_sysmouse"
5084 cf_with_sysmouse=$withval
5086 cf_with_sysmouse=maybe
5088 if test "$cf_with_sysmouse" != no ; then
5089 cat >conftest.$ac_ext <<_ACEOF
5090 #line 5090 "configure"
5091 #include "confdefs.h"
5093 #include <osreldate.h>
5094 #if (__FreeBSD_version >= 400017)
5095 #include <sys/consio.h>
5096 #include <sys/fbio.h>
5098 #include <machine/console.h>
5105 struct mouse_info the_mouse;
5106 ioctl(0, CONS_MOUSECTL, &the_mouse);
5112 rm -f conftest.$ac_objext
5113 if { (eval echo "$as_me:5113: \"$ac_compile\"") >&5
5114 (eval $ac_compile) 2>&5
5116 echo "$as_me:5116: \$? = $ac_status" >&5
5117 (exit $ac_status); } &&
5118 { ac_try='test -s conftest.$ac_objext'
5119 { (eval echo "$as_me:5119: \"$ac_try\"") >&5
5122 echo "$as_me:5122: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5124 cf_with_sysmouse=yes
5126 echo "$as_me: failed program was:" >&5
5127 cat conftest.$ac_ext >&5
5130 rm -f conftest.$ac_objext conftest.$ac_ext
5132 echo "$as_me:5132: result: $cf_with_sysmouse" >&5
5133 echo "${ECHO_T}$cf_with_sysmouse" >&6
5134 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
5135 #define USE_SYSMOUSE 1
5140 if test X"$CC_G_OPT" = X"" ; then
5142 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
5145 if test X"$CXX_G_OPT" = X"" ; then
5147 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
5150 echo "$as_me:5150: checking for default loader flags" >&5
5151 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5152 case $DFT_LWR_MODEL in
5153 libtool) LD_MODEL='' ;;
5154 normal) LD_MODEL='' ;;
5155 debug) LD_MODEL=$CC_G_OPT ;;
5156 profile) LD_MODEL='-pg';;
5157 shared) LD_MODEL='' ;;
5159 echo "$as_me:5159: result: $LD_MODEL" >&5
5160 echo "${ECHO_T}$LD_MODEL" >&6
5162 case $DFT_LWR_MODEL in
5165 echo "$as_me:5165: checking if rpath option should be used" >&5
5166 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5168 # Check whether --enable-rpath or --disable-rpath was given.
5169 if test "${enable_rpath+set}" = set; then
5170 enableval="$enable_rpath"
5171 cf_cv_ld_rpath=$enableval
5175 echo "$as_me:5175: result: $cf_cv_ld_rpath" >&5
5176 echo "${ECHO_T}$cf_cv_ld_rpath" >&6
5178 echo "$as_me:5178: checking if shared libraries should be relinked during install" >&5
5179 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5181 # Check whether --enable-relink or --disable-relink was given.
5182 if test "${enable_relink+set}" = set; then
5183 enableval="$enable_relink"
5184 cf_cv_do_relink=$enableval
5188 echo "$as_me:5188: result: $cf_cv_do_relink" >&5
5189 echo "${ECHO_T}$cf_cv_do_relink" >&6
5197 INSTALL_LIB="-m 644"
5199 cf_cv_do_symlinks=no
5201 echo "$as_me:5201: checking if release/abi version should be used for shared libs" >&5
5202 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5204 # Check whether --with-shlib-version or --without-shlib-version was given.
5205 if test "${with_shlib_version+set}" = set; then
5206 withval="$with_shlib_version"
5207 test -z "$withval" && withval=auto
5208 case $withval in #(vi
5210 cf_cv_shlib_version=auto
5212 rel|abi|auto|no) #(vi
5213 cf_cv_shlib_version=$withval
5216 { { echo "$as_me:5216: error: option value must be one of: rel, abi, auto or no" >&5
5217 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5218 { (exit 1); exit 1; }; }
5223 cf_cv_shlib_version=auto
5225 echo "$as_me:5225: result: $cf_cv_shlib_version" >&5
5226 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5230 # Some less-capable ports of gcc support only -fpic
5232 if test "$GCC" = yes
5234 echo "$as_me:5234: checking which $CC option to use" >&5
5235 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5236 cf_save_CFLAGS="$CFLAGS"
5237 for CC_SHARED_OPTS in -fPIC -fpic ''
5239 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5240 cat >conftest.$ac_ext <<_ACEOF
5241 #line 5241 "configure"
5242 #include "confdefs.h"
5252 rm -f conftest.$ac_objext
5253 if { (eval echo "$as_me:5253: \"$ac_compile\"") >&5
5254 (eval $ac_compile) 2>&5
5256 echo "$as_me:5256: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -s conftest.$ac_objext'
5259 { (eval echo "$as_me:5259: \"$ac_try\"") >&5
5262 echo "$as_me:5262: \$? = $ac_status" >&5
5263 (exit $ac_status); }; }; then
5266 echo "$as_me: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5269 rm -f conftest.$ac_objext conftest.$ac_ext
5271 echo "$as_me:5271: result: $CC_SHARED_OPTS" >&5
5272 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5273 CFLAGS="$cf_save_CFLAGS"
5276 cf_cv_shlib_version_infix=no
5278 case $cf_cv_system_name in
5280 if test "$GCC" = yes; then
5282 MK_SHARED_LIB="$(CC) -shared"
5286 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5290 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5291 cf_cv_shlib_version=cygdll
5292 cf_cv_shlib_version_infix=cygdll
5293 cat >mk_shared_lib.sh <<-CF_EOF
5296 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5299 Linking shared library
5300 ** SHARED_LIB \$SHARED_LIB
5301 ** IMPORT_LIB \$IMPORT_LIB
5303 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5305 chmod +x mk_shared_lib.sh
5308 EXTRA_CFLAGS="-no-cpp-precomp"
5309 CC_SHARED_OPTS="-dynamic"
5310 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5311 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5312 cf_cv_shlib_version_infix=yes
5313 echo "$as_me:5313: checking if ld -search_paths_first works" >&5
5314 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5315 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 cf_save_LDFLAGS=$LDFLAGS
5320 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5321 cat >conftest.$ac_ext <<_ACEOF
5322 #line 5322 "configure"
5323 #include "confdefs.h"
5333 rm -f conftest.$ac_objext conftest$ac_exeext
5334 if { (eval echo "$as_me:5334: \"$ac_link\"") >&5
5335 (eval $ac_link) 2>&5
5337 echo "$as_me:5337: \$? = $ac_status" >&5
5338 (exit $ac_status); } &&
5339 { ac_try='test -s conftest$ac_exeext'
5340 { (eval echo "$as_me:5340: \"$ac_try\"") >&5
5343 echo "$as_me:5343: \$? = $ac_status" >&5
5344 (exit $ac_status); }; }; then
5345 cf_cv_ldflags_search_paths_first=yes
5347 echo "$as_me: failed program was:" >&5
5348 cat conftest.$ac_ext >&5
5349 cf_cv_ldflags_search_paths_first=no
5351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5352 LDFLAGS=$cf_save_LDFLAGS
5354 echo "$as_me:5354: result: $cf_cv_ldflags_search_paths_first" >&5
5355 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5356 if test $cf_cv_ldflags_search_paths_first = yes; then
5357 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5361 # (tested with gcc 2.7.2 -- I don't have c89)
5362 if test "$GCC" = yes; then
5363 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5366 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5368 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5369 # HP-UX shared libraries must be executable, and should be
5370 # readonly to exploit a quirk in the memory manager.
5371 INSTALL_LIB="-m 555"
5374 if test "$cf_cv_ld_rpath" = yes ; then
5375 if test "$GCC" = yes; then
5376 LD_RPATH_OPT="-Wl,-rpath,"
5377 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5379 LD_RPATH_OPT="-rpath "
5380 EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
5383 # tested with IRIX 5.2 and 'cc'.
5384 if test "$GCC" != yes; then
5385 CC_SHARED_OPTS='-KPIC'
5386 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5388 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5390 cf_cv_rm_so_locs=yes
5392 linux*|gnu*|k*bsd*-gnu)
5393 if test "$DFT_LWR_MODEL" = "shared" ; then
5394 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5395 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5397 if test "$cf_cv_ld_rpath" = yes ; then
5398 LD_RPATH_OPT="-Wl,-rpath,"
5399 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5402 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5403 if test "$cf_cv_shlib_version" = rel; then
5404 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5406 cf_cv_shared_soname='`basename $@`'
5409 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5412 if test "$DFT_LWR_MODEL" = "shared" ; then
5413 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5414 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5416 if test "$cf_cv_ld_rpath" = yes ; then
5417 LD_RPATH_OPT="-Wl,-rpath,"
5418 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5420 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5422 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5423 if test "$cf_cv_shlib_version" = rel; then
5424 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5426 cf_cv_shared_soname='`basename $@`'
5429 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5431 nto-qnx*|openbsd*|freebsd[12].*)
5432 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5433 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5434 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5437 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5438 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
5439 LOCAL_LDFLAGS="-rpath \$(LOCAL_LIBDIR)"
5440 LOCAL_LDFLAGS2="-rpath \${libdir} $LOCAL_LDFLAGS"
5441 LD_RPATH_OPT="-rpath "
5442 EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
5445 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5446 if test "$cf_cv_shlib_version" = rel; then
5447 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5449 cf_cv_shared_soname='`basename $@`'
5452 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
5455 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5456 test "$cf_cv_ld_rpath" = yes && LD_RPATH_OPT="-Wl,-rpath,"
5457 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
5458 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5459 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5460 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5461 if test "$cf_cv_shlib_version" = auto; then
5462 if test -f /usr/libexec/ld.elf_so; then
5463 cf_cv_shlib_version=abi
5465 cf_cv_shlib_version=rel
5469 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5470 if test "$cf_cv_shlib_version" = rel; then
5471 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5473 cf_cv_shared_soname='`basename $@`'
5476 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5478 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
5482 # tested with OSF/1 V3.2 and 'cc'
5483 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5484 # link with shared libs).
5485 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5488 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5491 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5492 if test "$DFT_LWR_MODEL" = "shared" ; then
5493 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5494 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5496 if test "$cf_cv_ld_rpath" = yes ; then
5497 LD_RPATH_OPT="-rpath"
5498 # EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
5500 cf_cv_rm_so_locs=yes
5502 sco3.2v5*) # (also uw2* and UW7) hops 13-Apr-98
5503 # tested with osr5.0.5
5504 if test "$GCC" != yes; then
5505 CC_SHARED_OPTS='-belf -KPIC'
5507 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5508 if test "$cf_cv_ld_rpath" = yes ; then
5509 # only way is to set LD_RUN_PATH but no switch for it
5512 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5513 LINK_PROGS='LD_RUN_PATH=${libdir}'
5514 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5517 # tested with SunOS 4.1.1 and gcc 2.7.0
5518 if test "$GCC" != yes; then
5519 CC_SHARED_OPTS='-KPIC'
5521 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5522 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5525 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5526 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5527 if test "$DFT_LWR_MODEL" = "shared" ; then
5528 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5529 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5531 if test "$cf_cv_ld_rpath" = yes ; then
5533 EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
5536 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5537 if test "$cf_cv_shlib_version" = rel; then
5538 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5540 cf_cv_shared_soname='`basename $@`'
5543 if test "$GCC" != yes; then
5544 cf_save_CFLAGS="$CFLAGS"
5545 for cf_shared_opts in -xcode=pic13 -xcode=pic32 -Kpic -KPIC -O
5547 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
5548 cat >conftest.$ac_ext <<_ACEOF
5549 #line 5549 "configure"
5550 #include "confdefs.h"
5560 rm -f conftest.$ac_objext
5561 if { (eval echo "$as_me:5561: \"$ac_compile\"") >&5
5562 (eval $ac_compile) 2>&5
5564 echo "$as_me:5564: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
5566 { ac_try='test -s conftest.$ac_objext'
5567 { (eval echo "$as_me:5567: \"$ac_try\"") >&5
5570 echo "$as_me:5570: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5574 echo "$as_me: failed program was:" >&5
5575 cat conftest.$ac_ext >&5
5577 rm -f conftest.$ac_objext conftest.$ac_ext
5579 CFLAGS="$cf_save_CFLAGS"
5580 CC_SHARED_OPTS=$cf_shared_opts
5581 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
5583 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
5587 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
5588 if test "$GCC" != yes; then
5589 CC_SHARED_OPTS='-KPIC'
5591 MK_SHARED_LIB='${LD} -d y -G -o $@'
5594 CC_SHARED_OPTS='unknown'
5595 MK_SHARED_LIB='echo unknown'
5599 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
5600 case "$cf_cv_shlib_version" in #(vi
5602 case "$MK_SHARED_LIB" in #(vi
5604 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
5607 { echo "$as_me:5607: WARNING: ignored --with-shlib-version" >&5
5608 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
5614 if test -n "$LD_RPATH_OPT" ; then
5615 echo "$as_me:5615: checking if we need a space after rpath option" >&5
5616 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5617 cf_save_LIBS="$LIBS"
5618 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
5619 cat >conftest.$ac_ext <<_ACEOF
5620 #line 5620 "configure"
5621 #include "confdefs.h"
5631 rm -f conftest.$ac_objext conftest$ac_exeext
5632 if { (eval echo "$as_me:5632: \"$ac_link\"") >&5
5633 (eval $ac_link) 2>&5
5635 echo "$as_me:5635: \$? = $ac_status" >&5
5636 (exit $ac_status); } &&
5637 { ac_try='test -s conftest$ac_exeext'
5638 { (eval echo "$as_me:5638: \"$ac_try\"") >&5
5641 echo "$as_me:5641: \$? = $ac_status" >&5
5642 (exit $ac_status); }; }; then
5645 echo "$as_me: failed program was:" >&5
5646 cat conftest.$ac_ext >&5
5649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5650 LIBS="$cf_save_LIBS"
5651 echo "$as_me:5651: result: $cf_rpath_space" >&5
5652 echo "${ECHO_T}$cf_rpath_space" >&6
5653 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5654 MK_SHARED_LIB="$MK_SHARED_LIB $LD_RPATH_OPT\${libdir}"
5657 if test "$CC_SHARED_OPTS" = "unknown"; then
5658 for model in $cf_list_models; do
5659 if test "$model" = "shared"; then
5660 { { echo "$as_me:5660: error: Shared libraries are not supported in this version" >&5
5661 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
5662 { (exit 1); exit 1; }; }
5667 ###############################################################################
5669 ### use option --disable-overwrite to leave out the link to -lcurses
5670 echo "$as_me:5670: checking if you wish to install ncurses overwriting curses" >&5
5671 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
5673 # Check whether --enable-overwrite or --disable-overwrite was given.
5674 if test "${enable_overwrite+set}" = set; then
5675 enableval="$enable_overwrite"
5676 with_overwrite=$enableval
5678 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
5680 echo "$as_me:5680: result: $with_overwrite" >&5
5681 echo "${ECHO_T}$with_overwrite" >&6
5683 echo "$as_me:5683: checking if external terminfo-database is used" >&5
5684 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
5686 # Check whether --enable-database or --disable-database was given.
5687 if test "${enable_database+set}" = set; then
5688 enableval="$enable_database"
5689 use_database=$enableval
5693 echo "$as_me:5693: result: $use_database" >&5
5694 echo "${ECHO_T}$use_database" >&6
5696 case $host_os in #(vi
5698 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
5701 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
5705 case $cf_cv_system_name in
5706 os2*) PATH_SEPARATOR=';' ;;
5707 *) PATH_SEPARATOR=':' ;;
5710 if test "$use_database" != no ; then
5711 cat >>confdefs.h <<\EOF
5712 #define USE_DATABASE 1
5715 echo "$as_me:5715: checking which terminfo source-file will be installed" >&5
5716 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
5718 # Check whether --with-database or --without-database was given.
5719 if test "${with_database+set}" = set; then
5720 withval="$with_database"
5721 TERMINFO_SRC=$withval
5723 echo "$as_me:5723: result: $TERMINFO_SRC" >&5
5724 echo "${ECHO_T}$TERMINFO_SRC" >&6
5726 echo "$as_me:5726: checking whether to use hashed database instead of directory/tree" >&5
5727 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
5729 # Check whether --with-hashed-db or --without-hashed-db was given.
5730 if test "${with_hashed_db+set}" = set; then
5731 withval="$with_hashed_db"
5736 echo "$as_me:5736: result: $with_hashed_db" >&5
5737 echo "${ECHO_T}$with_hashed_db" >&6
5742 echo "$as_me:5742: checking for list of fallback descriptions" >&5
5743 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
5745 # Check whether --with-fallbacks or --without-fallbacks was given.
5746 if test "${with_fallbacks+set}" = set; then
5747 withval="$with_fallbacks"
5748 with_fallback=$withval
5752 echo "$as_me:5752: result: $with_fallback" >&5
5753 echo "${ECHO_T}$with_fallback" >&6
5754 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
5756 echo "$as_me:5756: checking if you want modern xterm or antique" >&5
5757 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
5759 # Check whether --with-xterm-new or --without-xterm-new was given.
5760 if test "${with_xterm_new+set}" = set; then
5761 withval="$with_xterm_new"
5762 with_xterm_new=$withval
5766 case $with_xterm_new in
5767 no) with_xterm_new=xterm-old;;
5768 *) with_xterm_new=xterm-new;;
5770 echo "$as_me:5770: result: $with_xterm_new" >&5
5771 echo "${ECHO_T}$with_xterm_new" >&6
5772 WHICH_XTERM=$with_xterm_new
5775 if test "$use_database" = no ; then
5776 TERMINFO="${datadir}/terminfo"
5780 echo "$as_me:5780: checking for list of terminfo directories" >&5
5781 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
5783 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
5784 if test "${with_terminfo_dirs+set}" = set; then
5785 withval="$with_terminfo_dirs"
5788 withval=${TERMINFO_DIRS-${datadir}/terminfo}
5790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
5792 for cf_src_path in $withval
5795 if test "x$prefix" != xNONE; then
5796 cf_path_syntax="$prefix"
5798 cf_path_syntax="$ac_default_prefix"
5801 case ".$cf_src_path" in #(vi
5802 .\$\(*\)*|.\'*\'*) #(vi
5806 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5809 eval cf_src_path="$cf_src_path"
5810 case ".$cf_src_path" in #(vi
5812 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5817 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5820 { { echo "$as_me:5820: error: expected a pathname, not \"$cf_src_path\"" >&5
5821 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
5822 { (exit 1); exit 1; }; }
5826 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
5827 cf_dst_path="${cf_dst_path}${cf_src_path}"
5831 eval 'TERMINFO_DIRS="$cf_dst_path"'
5833 echo "$as_me:5833: result: $TERMINFO_DIRS" >&5
5834 echo "${ECHO_T}$TERMINFO_DIRS" >&6
5835 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
5836 #define TERMINFO_DIRS "$TERMINFO_DIRS"
5839 echo "$as_me:5839: checking for default terminfo directory" >&5
5840 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
5842 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
5843 if test "${with_default_terminfo_dir+set}" = set; then
5844 withval="$with_default_terminfo_dir"
5847 withval="${TERMINFO-${datadir}/terminfo}"
5848 fi; if test -n "${datadir}/terminfo" ; then
5850 if test "x$prefix" != xNONE; then
5851 cf_path_syntax="$prefix"
5853 cf_path_syntax="$ac_default_prefix"
5856 case ".$withval" in #(vi
5857 .\$\(*\)*|.\'*\'*) #(vi
5861 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5864 eval withval="$withval"
5865 case ".$withval" in #(vi
5867 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5872 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5875 { { echo "$as_me:5875: error: expected a pathname, not \"$withval\"" >&5
5876 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
5877 { (exit 1); exit 1; }; }
5884 echo "$as_me:5884: result: $TERMINFO" >&5
5885 echo "${ECHO_T}$TERMINFO" >&6
5886 cat >>confdefs.h <<EOF
5887 #define TERMINFO "$TERMINFO"
5892 ### use option --disable-big-core to make tic run on small machines
5893 ### We need 4Mb, check if we can allocate 50% more than that.
5894 echo "$as_me:5894: checking if big-core option selected" >&5
5895 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
5897 # Check whether --enable-big-core or --disable-big-core was given.
5898 if test "${enable_big_core+set}" = set; then
5899 enableval="$enable_big_core"
5900 with_big_core=$enableval
5902 if test "$cross_compiling" = yes; then
5905 cat >conftest.$ac_ext <<_ACEOF
5906 #line 5906 "configure"
5907 #include "confdefs.h"
5912 unsigned long n = 6000000L;
5913 char *s = malloc(n);
5916 ${cf_cv_main_return:-return}(s == 0);
5919 rm -f conftest$ac_exeext
5920 if { (eval echo "$as_me:5920: \"$ac_link\"") >&5
5921 (eval $ac_link) 2>&5
5923 echo "$as_me:5923: \$? = $ac_status" >&5
5924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5925 { (eval echo "$as_me:5925: \"$ac_try\"") >&5
5928 echo "$as_me:5928: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
5932 echo "$as_me: program exited with status $ac_status" >&5
5933 echo "$as_me: failed program was:" >&5
5934 cat conftest.$ac_ext >&5
5937 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5940 echo "$as_me:5940: result: $with_big_core" >&5
5941 echo "${ECHO_T}$with_big_core" >&6
5942 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
5943 #define HAVE_BIG_CORE 1
5946 ### ISO C only guarantees 512-char strings, we have tables which load faster
5947 ### when constructed using "big" strings. More than the C compiler, the awk
5948 ### program is a limit on most vendor UNIX systems. Check that we can build.
5949 echo "$as_me:5949: checking if big-strings option selected" >&5
5950 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
5952 # Check whether --enable-big-strings or --disable-big-strings was given.
5953 if test "${enable_big_strings+set}" = set; then
5954 enableval="$enable_big_strings"
5955 with_big_strings=$enableval
5960 eval with_big_strings=no
5963 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' \
5964 | $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
5965 eval with_big_strings=yes
5967 eval with_big_strings=no
5973 echo "$as_me:5973: result: $with_big_strings" >&5
5974 echo "${ECHO_T}$with_big_strings" >&6
5977 test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1
5979 ### use option --enable-termcap to compile in the termcap fallback support
5980 echo "$as_me:5980: checking if you want termcap-fallback support" >&5
5981 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
5983 # Check whether --enable-termcap or --disable-termcap was given.
5984 if test "${enable_termcap+set}" = set; then
5985 enableval="$enable_termcap"
5986 with_termcap=$enableval
5990 echo "$as_me:5990: result: $with_termcap" >&5
5991 echo "${ECHO_T}$with_termcap" >&6
5993 if test "$with_termcap" != "yes" ; then
5994 if test "$use_database" = no ; then
5995 if test -z "$with_fallback" ; then
5996 { { echo "$as_me:5996: error: You have disabled the database w/o specifying fallbacks" >&5
5997 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
5998 { (exit 1); exit 1; }; }
6001 cat >>confdefs.h <<\EOF
6002 #define PURE_TERMINFO 1
6007 if test "$with_ticlib" != no ; then
6008 { { echo "$as_me:6008: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
6009 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
6010 { (exit 1); exit 1; }; }
6013 cat >>confdefs.h <<\EOF
6014 #define USE_TERMCAP 1
6017 echo "$as_me:6017: checking for list of termcap files" >&5
6018 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
6020 # Check whether --with-termpath or --without-termpath was given.
6021 if test "${with_termpath+set}" = set; then
6022 withval="$with_termpath"
6025 withval=${TERMPATH-/etc/termcap:/usr/share/misc/termcap}
6027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6029 for cf_src_path in $withval
6032 if test "x$prefix" != xNONE; then
6033 cf_path_syntax="$prefix"
6035 cf_path_syntax="$ac_default_prefix"
6038 case ".$cf_src_path" in #(vi
6039 .\$\(*\)*|.\'*\'*) #(vi
6043 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6046 eval cf_src_path="$cf_src_path"
6047 case ".$cf_src_path" in #(vi
6049 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6054 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6057 { { echo "$as_me:6057: error: expected a pathname, not \"$cf_src_path\"" >&5
6058 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6059 { (exit 1); exit 1; }; }
6063 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6064 cf_dst_path="${cf_dst_path}${cf_src_path}"
6068 eval 'TERMPATH="$cf_dst_path"'
6070 echo "$as_me:6070: result: $TERMPATH" >&5
6071 echo "${ECHO_T}$TERMPATH" >&6
6072 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
6073 #define TERMPATH "$TERMPATH"
6076 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6077 echo "$as_me:6077: checking if fast termcap-loader is needed" >&5
6078 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6080 # Check whether --enable-getcap or --disable-getcap was given.
6081 if test "${enable_getcap+set}" = set; then
6082 enableval="$enable_getcap"
6083 with_getcap=$enableval
6087 echo "$as_me:6087: result: $with_getcap" >&5
6088 echo "${ECHO_T}$with_getcap" >&6
6089 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
6090 #define USE_GETCAP 1
6093 echo "$as_me:6093: checking if translated termcaps will be cached in ~/.terminfo" >&5
6094 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6096 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6097 if test "${enable_getcap_cache+set}" = set; then
6098 enableval="$enable_getcap_cache"
6099 with_getcap_cache=$enableval
6101 with_getcap_cache=no
6103 echo "$as_me:6103: result: $with_getcap_cache" >&5
6104 echo "${ECHO_T}$with_getcap_cache" >&6
6105 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
6106 #define USE_GETCAP_CACHE 1
6111 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
6112 echo "$as_me:6112: checking if ~/.terminfo is wanted" >&5
6113 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
6115 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
6116 if test "${enable_home_terminfo+set}" = set; then
6117 enableval="$enable_home_terminfo"
6118 with_home_terminfo=$enableval
6120 with_home_terminfo=yes
6122 echo "$as_me:6122: result: $with_home_terminfo" >&5
6123 echo "${ECHO_T}$with_home_terminfo" >&6
6124 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
6125 #define USE_HOME_TERMINFO 1
6128 echo "$as_me:6128: checking if you want to use restricted environment when running as root" >&5
6129 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
6131 # Check whether --enable-root-environ or --disable-root-environ was given.
6132 if test "${enable_root_environ+set}" = set; then
6133 enableval="$enable_root_environ"
6134 with_root_environ=$enableval
6136 with_root_environ=yes
6138 echo "$as_me:6138: result: $with_root_environ" >&5
6139 echo "${ECHO_T}$with_root_environ" >&6
6140 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
6141 #define USE_ROOT_ENVIRON 1
6144 ### Use option --enable-symlinks to make tic use symlinks, not hard links
6145 ### to reduce storage requirements for the terminfo database.
6151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6152 echo "$as_me:6152: checking for $ac_func" >&5
6153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6154 if eval "test \"\${$as_ac_var+set}\" = set"; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 cat >conftest.$ac_ext <<_ACEOF
6158 #line 6158 "configure"
6159 #include "confdefs.h"
6160 /* System header to define __stub macros and hopefully few prototypes,
6161 which can conflict with char $ac_func (); below. */
6163 /* Override any gcc2 internal prototype to avoid an error. */
6167 /* We use char because int might match the return type of a gcc2
6168 builtin and then its argument prototype would still apply. */
6175 /* The GNU C library defines this for functions which it implements
6176 to always fail with ENOSYS. Some functions are actually named
6177 something starting with __ and the normal name is an alias. */
6178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6188 rm -f conftest.$ac_objext conftest$ac_exeext
6189 if { (eval echo "$as_me:6189: \"$ac_link\"") >&5
6190 (eval $ac_link) 2>&5
6192 echo "$as_me:6192: \$? = $ac_status" >&5
6193 (exit $ac_status); } &&
6194 { ac_try='test -s conftest$ac_exeext'
6195 { (eval echo "$as_me:6195: \"$ac_try\"") >&5
6198 echo "$as_me:6198: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 eval "$as_ac_var=yes"
6202 echo "$as_me: failed program was:" >&5
6203 cat conftest.$ac_ext >&5
6204 eval "$as_ac_var=no"
6206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6208 echo "$as_me:6208: result: `eval echo '${'$as_ac_var'}'`" >&5
6209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6210 if test `eval echo '${'$as_ac_var'}'` = yes; then
6211 cat >>confdefs.h <<EOF
6212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6218 if test "$cross_compiling" = yes ; then
6224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6225 echo "$as_me:6225: checking for $ac_func" >&5
6226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6227 if eval "test \"\${$as_ac_var+set}\" = set"; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 cat >conftest.$ac_ext <<_ACEOF
6231 #line 6231 "configure"
6232 #include "confdefs.h"
6233 /* System header to define __stub macros and hopefully few prototypes,
6234 which can conflict with char $ac_func (); below. */
6236 /* Override any gcc2 internal prototype to avoid an error. */
6240 /* We use char because int might match the return type of a gcc2
6241 builtin and then its argument prototype would still apply. */
6248 /* The GNU C library defines this for functions which it implements
6249 to always fail with ENOSYS. Some functions are actually named
6250 something starting with __ and the normal name is an alias. */
6251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6261 rm -f conftest.$ac_objext conftest$ac_exeext
6262 if { (eval echo "$as_me:6262: \"$ac_link\"") >&5
6263 (eval $ac_link) 2>&5
6265 echo "$as_me:6265: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try='test -s conftest$ac_exeext'
6268 { (eval echo "$as_me:6268: \"$ac_try\"") >&5
6271 echo "$as_me:6271: \$? = $ac_status" >&5
6272 (exit $ac_status); }; }; then
6273 eval "$as_ac_var=yes"
6275 echo "$as_me: failed program was:" >&5
6276 cat conftest.$ac_ext >&5
6277 eval "$as_ac_var=no"
6279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6281 echo "$as_me:6281: result: `eval echo '${'$as_ac_var'}'`" >&5
6282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6283 if test `eval echo '${'$as_ac_var'}'` = yes; then
6284 cat >>confdefs.h <<EOF
6285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6292 echo "$as_me:6292: checking if link/symlink functions work" >&5
6293 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
6294 if test "${cf_cv_link_funcs+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 for cf_func in link symlink ; do
6300 if test "$cross_compiling" = yes; then
6302 eval 'ac_cv_func_'$cf_func'=error'
6304 cat >conftest.$ac_ext <<_ACEOF
6305 #line 6305 "configure"
6306 #include "confdefs.h"
6308 #include <sys/types.h>
6309 #include <sys/stat.h>
6310 #ifdef HAVE_UNISTD_H
6316 char *src = "config.log";
6317 char *dst = "conftest.chk";
6322 fail = ($cf_func("config.log", "conftest.chk") < 0)
6323 || (stat(dst, &dst_sb) < 0)
6324 || (dst_sb.st_mtime != src_sb.st_mtime);
6330 ${cf_cv_main_return:-return} (fail);
6334 rm -f conftest$ac_exeext
6335 if { (eval echo "$as_me:6335: \"$ac_link\"") >&5
6336 (eval $ac_link) 2>&5
6338 echo "$as_me:6338: \$? = $ac_status" >&5
6339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6340 { (eval echo "$as_me:6340: \"$ac_try\"") >&5
6343 echo "$as_me:6343: \$? = $ac_status" >&5
6344 (exit $ac_status); }; }; then
6346 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
6347 eval 'ac_cv_func_'$cf_func'=yes'
6349 echo "$as_me: program exited with status $ac_status" >&5
6350 echo "$as_me: failed program was:" >&5
6351 cat conftest.$ac_ext >&5
6353 eval 'ac_cv_func_'$cf_func'=no'
6355 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6358 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
6361 echo "$as_me:6361: result: $cf_cv_link_funcs" >&5
6362 echo "${ECHO_T}$cf_cv_link_funcs" >&6
6363 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
6367 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
6368 #define HAVE_SYMLINK 1
6376 # soft links (symbolic links) are useful for some systems where hard links do
6377 # not work, or to make it simpler to copy terminfo trees around.
6378 if test "$ac_cv_func_symlink" = yes ; then
6379 echo "$as_me:6379: checking if tic should use symbolic links" >&5
6380 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
6382 # Check whether --enable-symlinks or --disable-symlinks was given.
6383 if test "${enable_symlinks+set}" = set; then
6384 enableval="$enable_symlinks"
6385 with_symlinks=$enableval
6389 echo "$as_me:6389: result: $with_symlinks" >&5
6390 echo "${ECHO_T}$with_symlinks" >&6
6393 # If we have hard links and did not choose to use soft links instead, there is
6394 # no reason to make this choice optional - use the hard links.
6395 if test "$with_symlinks" = no ; then
6396 echo "$as_me:6396: checking if tic should use hard links" >&5
6397 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
6398 if test "$ac_cv_func_link" = yes ; then
6403 echo "$as_me:6403: result: $with_links" >&5
6404 echo "${ECHO_T}$with_links" >&6
6407 test "$with_links" = yes && cat >>confdefs.h <<\EOF
6411 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
6412 #define USE_SYMLINKS 1
6415 ### use option --enable-broken-linker to force on use of broken-linker support
6416 echo "$as_me:6416: checking if you want broken-linker support code" >&5
6417 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
6419 # Check whether --enable-broken_linker or --disable-broken_linker was given.
6420 if test "${enable_broken_linker+set}" = set; then
6421 enableval="$enable_broken_linker"
6422 with_broken_linker=$enableval
6424 with_broken_linker=${BROKEN_LINKER-no}
6426 echo "$as_me:6426: result: $with_broken_linker" >&5
6427 echo "${ECHO_T}$with_broken_linker" >&6
6430 if test "$with_broken_linker" = yes ; then
6431 cat >>confdefs.h <<\EOF
6432 #define BROKEN_LINKER 1
6436 elif test "$DFT_LWR_MODEL" = shared ; then
6437 case $cf_cv_system_name in #(vi
6439 cat >>confdefs.h <<\EOF
6440 #define BROKEN_LINKER 1
6444 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
6446 echo "${as_me-configure}:6446: testing cygwin linker is broken anyway ..." 1>&5
6452 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
6453 echo "$as_me:6453: checking if tputs should process BSD-style prefix padding" >&5
6454 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
6456 # Check whether --enable-bsdpad or --disable-bsdpad was given.
6457 if test "${enable_bsdpad+set}" = set; then
6458 enableval="$enable_bsdpad"
6459 with_bsdpad=$enableval
6463 echo "$as_me:6463: result: $with_bsdpad" >&5
6464 echo "${ECHO_T}$with_bsdpad" >&6
6465 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
6469 ### use option --enable-widec to turn on use of wide-character support
6478 # Check to define _XOPEN_SOURCE "automatically"
6481 cf_POSIX_C_SOURCE=199506L
6484 case $host_os in #(vi
6486 cf_xopen_source="-D_ALL_SOURCE"
6489 cf_xopen_source="-D_APPLE_C_SOURCE"
6492 cf_xopen_source="-D_DARWIN_C_SOURCE"
6494 freebsd*|dragonfly*) #(vi
6495 # 5.x headers associate
6496 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
6497 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
6498 cf_POSIX_C_SOURCE=200112L
6500 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6503 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
6506 cf_xopen_source="-D_HPUX_SOURCE"
6509 cf_xopen_source="-D_SGI_SOURCE"
6511 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
6513 echo "$as_me:6513: checking if we must define _GNU_SOURCE" >&5
6514 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
6515 if test "${cf_cv_gnu_source+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 cat >conftest.$ac_ext <<_ACEOF
6520 #line 6520 "configure"
6521 #include "confdefs.h"
6522 #include <sys/types.h>
6527 #ifndef _XOPEN_SOURCE
6534 rm -f conftest.$ac_objext
6535 if { (eval echo "$as_me:6535: \"$ac_compile\"") >&5
6536 (eval $ac_compile) 2>&5
6538 echo "$as_me:6538: \$? = $ac_status" >&5
6539 (exit $ac_status); } &&
6540 { ac_try='test -s conftest.$ac_objext'
6541 { (eval echo "$as_me:6541: \"$ac_try\"") >&5
6544 echo "$as_me:6544: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6548 echo "$as_me: failed program was:" >&5
6549 cat conftest.$ac_ext >&5
6551 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6552 cat >conftest.$ac_ext <<_ACEOF
6553 #line 6553 "configure"
6554 #include "confdefs.h"
6555 #include <sys/types.h>
6560 #ifdef _XOPEN_SOURCE
6567 rm -f conftest.$ac_objext
6568 if { (eval echo "$as_me:6568: \"$ac_compile\"") >&5
6569 (eval $ac_compile) 2>&5
6571 echo "$as_me:6571: \$? = $ac_status" >&5
6572 (exit $ac_status); } &&
6573 { ac_try='test -s conftest.$ac_objext'
6574 { (eval echo "$as_me:6574: \"$ac_try\"") >&5
6577 echo "$as_me:6577: \$? = $ac_status" >&5
6578 (exit $ac_status); }; }; then
6581 echo "$as_me: failed program was:" >&5
6582 cat conftest.$ac_ext >&5
6583 cf_cv_gnu_source=yes
6585 rm -f conftest.$ac_objext conftest.$ac_ext
6589 rm -f conftest.$ac_objext conftest.$ac_ext
6592 echo "$as_me:6592: result: $cf_cv_gnu_source" >&5
6593 echo "${ECHO_T}$cf_cv_gnu_source" >&6
6594 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6598 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
6601 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
6604 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
6607 cf_xopen_source="-D_OSF_SOURCE"
6610 cf_xopen_source="-D_QNX_SOURCE"
6613 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
6616 cf_xopen_source="-D__EXTENSIONS__"
6619 echo "$as_me:6619: checking if we should define _XOPEN_SOURCE" >&5
6620 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
6621 if test "${cf_cv_xopen_source+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 cat >conftest.$ac_ext <<_ACEOF
6626 #line 6626 "configure"
6627 #include "confdefs.h"
6628 #include <sys/types.h>
6633 #ifndef _XOPEN_SOURCE
6640 rm -f conftest.$ac_objext
6641 if { (eval echo "$as_me:6641: \"$ac_compile\"") >&5
6642 (eval $ac_compile) 2>&5
6644 echo "$as_me:6644: \$? = $ac_status" >&5
6645 (exit $ac_status); } &&
6646 { ac_try='test -s conftest.$ac_objext'
6647 { (eval echo "$as_me:6647: \"$ac_try\"") >&5
6650 echo "$as_me:6650: \$? = $ac_status" >&5
6651 (exit $ac_status); }; }; then
6652 cf_cv_xopen_source=no
6654 echo "$as_me: failed program was:" >&5
6655 cat conftest.$ac_ext >&5
6657 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6658 cat >conftest.$ac_ext <<_ACEOF
6659 #line 6659 "configure"
6660 #include "confdefs.h"
6661 #include <sys/types.h>
6666 #ifdef _XOPEN_SOURCE
6673 rm -f conftest.$ac_objext
6674 if { (eval echo "$as_me:6674: \"$ac_compile\"") >&5
6675 (eval $ac_compile) 2>&5
6677 echo "$as_me:6677: \$? = $ac_status" >&5
6678 (exit $ac_status); } &&
6679 { ac_try='test -s conftest.$ac_objext'
6680 { (eval echo "$as_me:6680: \"$ac_try\"") >&5
6683 echo "$as_me:6683: \$? = $ac_status" >&5
6684 (exit $ac_status); }; }; then
6685 cf_cv_xopen_source=no
6687 echo "$as_me: failed program was:" >&5
6688 cat conftest.$ac_ext >&5
6689 cf_cv_xopen_source=$cf_XOPEN_SOURCE
6691 rm -f conftest.$ac_objext conftest.$ac_ext
6695 rm -f conftest.$ac_objext conftest.$ac_ext
6698 echo "$as_me:6698: result: $cf_cv_xopen_source" >&5
6699 echo "${ECHO_T}$cf_cv_xopen_source" >&6
6700 if test "$cf_cv_xopen_source" != no ; then
6702 CFLAGS=`echo "$CFLAGS" | \
6703 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
6704 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
6706 CPPFLAGS=`echo "$CPPFLAGS" | \
6707 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
6708 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
6710 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
6715 cf_new_extra_cppflags=
6717 for cf_add_cflags in $cf_temp_xopen_source
6719 case $cf_fix_cppflags in
6721 case $cf_add_cflags in #(vi
6722 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
6723 case $cf_add_cflags in
6725 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
6727 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
6728 && test -z "${cf_tst_cflags}" \
6729 && cf_fix_cppflags=yes
6731 if test $cf_fix_cppflags = yes ; then
6732 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6734 elif test "${cf_tst_cflags}" = "\"'" ; then
6735 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6741 *$cf_add_cflags) #(vi
6744 case $cf_add_cflags in #(vi
6746 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
6748 CPPFLAGS=`echo "$CPPFLAGS" | \
6749 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
6750 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
6754 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
6759 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
6764 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6766 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
6768 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
6769 && test -z "${cf_tst_cflags}" \
6770 && cf_fix_cppflags=no
6775 if test -n "$cf_new_cflags" ; then
6777 CFLAGS="$CFLAGS $cf_new_cflags"
6780 if test -n "$cf_new_cppflags" ; then
6782 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
6785 if test -n "$cf_new_extra_cppflags" ; then
6787 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
6792 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
6794 cf_save_CFLAGS="$CFLAGS"
6795 cf_save_CPPFLAGS="$CPPFLAGS"
6797 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
6798 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
6799 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
6801 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
6802 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
6803 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
6805 echo "$as_me:6805: checking if we should define _POSIX_C_SOURCE" >&5
6806 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
6807 if test "${cf_cv_posix_c_source+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 echo "${as_me-configure}:6811: testing if the symbol is already defined go no further ..." 1>&5
6813 cat >conftest.$ac_ext <<_ACEOF
6814 #line 6814 "configure"
6815 #include "confdefs.h"
6816 #include <sys/types.h>
6821 #ifndef _POSIX_C_SOURCE
6828 rm -f conftest.$ac_objext
6829 if { (eval echo "$as_me:6829: \"$ac_compile\"") >&5
6830 (eval $ac_compile) 2>&5
6832 echo "$as_me:6832: \$? = $ac_status" >&5
6833 (exit $ac_status); } &&
6834 { ac_try='test -s conftest.$ac_objext'
6835 { (eval echo "$as_me:6835: \"$ac_try\"") >&5
6838 echo "$as_me:6838: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
6840 cf_cv_posix_c_source=no
6842 echo "$as_me: failed program was:" >&5
6843 cat conftest.$ac_ext >&5
6844 cf_want_posix_source=no
6845 case .$cf_POSIX_C_SOURCE in #(vi
6847 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
6850 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
6851 cf_want_posix_source=yes
6854 cf_want_posix_source=yes
6857 if test "$cf_want_posix_source" = yes ; then
6858 cat >conftest.$ac_ext <<_ACEOF
6859 #line 6859 "configure"
6860 #include "confdefs.h"
6861 #include <sys/types.h>
6866 #ifdef _POSIX_SOURCE
6873 rm -f conftest.$ac_objext
6874 if { (eval echo "$as_me:6874: \"$ac_compile\"") >&5
6875 (eval $ac_compile) 2>&5
6877 echo "$as_me:6877: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
6879 { ac_try='test -s conftest.$ac_objext'
6880 { (eval echo "$as_me:6880: \"$ac_try\"") >&5
6883 echo "$as_me:6883: \$? = $ac_status" >&5
6884 (exit $ac_status); }; }; then
6887 echo "$as_me: failed program was:" >&5
6888 cat conftest.$ac_ext >&5
6889 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
6891 rm -f conftest.$ac_objext conftest.$ac_ext
6894 echo "${as_me-configure}:6894: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
6896 CFLAGS="$cf_trim_CFLAGS"
6897 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
6899 echo "${as_me-configure}:6899: testing if the second compile does not leave our definition intact error ..." 1>&5
6901 cat >conftest.$ac_ext <<_ACEOF
6902 #line 6902 "configure"
6903 #include "confdefs.h"
6904 #include <sys/types.h>
6909 #ifndef _POSIX_C_SOURCE
6916 rm -f conftest.$ac_objext
6917 if { (eval echo "$as_me:6917: \"$ac_compile\"") >&5
6918 (eval $ac_compile) 2>&5
6920 echo "$as_me:6920: \$? = $ac_status" >&5
6921 (exit $ac_status); } &&
6922 { ac_try='test -s conftest.$ac_objext'
6923 { (eval echo "$as_me:6923: \"$ac_try\"") >&5
6926 echo "$as_me:6926: \$? = $ac_status" >&5
6927 (exit $ac_status); }; }; then
6930 echo "$as_me: failed program was:" >&5
6931 cat conftest.$ac_ext >&5
6932 cf_cv_posix_c_source=no
6934 rm -f conftest.$ac_objext conftest.$ac_ext
6935 CFLAGS="$cf_save_CFLAGS"
6936 CPPFLAGS="$cf_save_CPPFLAGS"
6939 rm -f conftest.$ac_objext conftest.$ac_ext
6942 echo "$as_me:6942: result: $cf_cv_posix_c_source" >&5
6943 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
6945 if test "$cf_cv_posix_c_source" != no ; then
6946 CFLAGS="$cf_trim_CFLAGS"
6947 CPPFLAGS="$cf_trim_CPPFLAGS"
6952 cf_new_extra_cppflags=
6954 for cf_add_cflags in $cf_cv_posix_c_source
6956 case $cf_fix_cppflags in
6958 case $cf_add_cflags in #(vi
6959 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
6960 case $cf_add_cflags in
6962 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
6964 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
6965 && test -z "${cf_tst_cflags}" \
6966 && cf_fix_cppflags=yes
6968 if test $cf_fix_cppflags = yes ; then
6969 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6971 elif test "${cf_tst_cflags}" = "\"'" ; then
6972 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6978 *$cf_add_cflags) #(vi
6981 case $cf_add_cflags in #(vi
6983 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
6985 CPPFLAGS=`echo "$CPPFLAGS" | \
6986 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
6987 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
6991 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
6996 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7001 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7003 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7005 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7006 && test -z "${cf_tst_cflags}" \
7007 && cf_fix_cppflags=no
7012 if test -n "$cf_new_cflags" ; then
7014 CFLAGS="$CFLAGS $cf_new_cflags"
7017 if test -n "$cf_new_cppflags" ; then
7019 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7022 if test -n "$cf_new_extra_cppflags" ; then
7024 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7032 if test -n "$cf_xopen_source" ; then
7037 cf_new_extra_cppflags=
7039 for cf_add_cflags in $cf_xopen_source
7041 case $cf_fix_cppflags in
7043 case $cf_add_cflags in #(vi
7044 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7045 case $cf_add_cflags in
7047 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7049 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7050 && test -z "${cf_tst_cflags}" \
7051 && cf_fix_cppflags=yes
7053 if test $cf_fix_cppflags = yes ; then
7054 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7056 elif test "${cf_tst_cflags}" = "\"'" ; then
7057 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7063 *$cf_add_cflags) #(vi
7066 case $cf_add_cflags in #(vi
7068 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7070 CPPFLAGS=`echo "$CPPFLAGS" | \
7071 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7072 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7076 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7081 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7086 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7088 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7090 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7091 && test -z "${cf_tst_cflags}" \
7092 && cf_fix_cppflags=no
7097 if test -n "$cf_new_cflags" ; then
7099 CFLAGS="$CFLAGS $cf_new_cflags"
7102 if test -n "$cf_new_cppflags" ; then
7104 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7107 if test -n "$cf_new_extra_cppflags" ; then
7109 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7114 # Work around breakage on OS X
7116 echo "$as_me:7116: checking if SIGWINCH is defined" >&5
7117 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
7118 if test "${cf_cv_define_sigwinch+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 cat >conftest.$ac_ext <<_ACEOF
7123 #line 7123 "configure"
7124 #include "confdefs.h"
7126 #include <sys/types.h>
7127 #include <sys/signal.h>
7137 rm -f conftest.$ac_objext
7138 if { (eval echo "$as_me:7138: \"$ac_compile\"") >&5
7139 (eval $ac_compile) 2>&5
7141 echo "$as_me:7141: \$? = $ac_status" >&5
7142 (exit $ac_status); } &&
7143 { ac_try='test -s conftest.$ac_objext'
7144 { (eval echo "$as_me:7144: \"$ac_try\"") >&5
7147 echo "$as_me:7147: \$? = $ac_status" >&5
7148 (exit $ac_status); }; }; then
7149 cf_cv_define_sigwinch=yes
7151 echo "$as_me: failed program was:" >&5
7152 cat conftest.$ac_ext >&5
7153 cat >conftest.$ac_ext <<_ACEOF
7154 #line 7154 "configure"
7155 #include "confdefs.h"
7157 #undef _XOPEN_SOURCE
7158 #undef _POSIX_SOURCE
7159 #undef _POSIX_C_SOURCE
7160 #include <sys/types.h>
7161 #include <sys/signal.h>
7171 rm -f conftest.$ac_objext
7172 if { (eval echo "$as_me:7172: \"$ac_compile\"") >&5
7173 (eval $ac_compile) 2>&5
7175 echo "$as_me:7175: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try='test -s conftest.$ac_objext'
7178 { (eval echo "$as_me:7178: \"$ac_try\"") >&5
7181 echo "$as_me:7181: \$? = $ac_status" >&5
7182 (exit $ac_status); }; }; then
7183 cf_cv_define_sigwinch=maybe
7185 echo "$as_me: failed program was:" >&5
7186 cat conftest.$ac_ext >&5
7187 cf_cv_define_sigwinch=no
7189 rm -f conftest.$ac_objext conftest.$ac_ext
7192 rm -f conftest.$ac_objext conftest.$ac_ext
7195 echo "$as_me:7195: result: $cf_cv_define_sigwinch" >&5
7196 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
7198 if test "$cf_cv_define_sigwinch" = maybe ; then
7199 echo "$as_me:7199: checking for actual SIGWINCH definition" >&5
7200 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
7201 if test "${cf_cv_fixup_sigwinch+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 cf_cv_fixup_sigwinch=unknown
7207 while test $cf_sigwinch != 1
7209 cat >conftest.$ac_ext <<_ACEOF
7210 #line 7210 "configure"
7211 #include "confdefs.h"
7213 #undef _XOPEN_SOURCE
7214 #undef _POSIX_SOURCE
7215 #undef _POSIX_C_SOURCE
7216 #include <sys/types.h>
7217 #include <sys/signal.h>
7223 #if SIGWINCH != $cf_sigwinch
7231 rm -f conftest.$ac_objext
7232 if { (eval echo "$as_me:7232: \"$ac_compile\"") >&5
7233 (eval $ac_compile) 2>&5
7235 echo "$as_me:7235: \$? = $ac_status" >&5
7236 (exit $ac_status); } &&
7237 { ac_try='test -s conftest.$ac_objext'
7238 { (eval echo "$as_me:7238: \"$ac_try\"") >&5
7241 echo "$as_me:7241: \$? = $ac_status" >&5
7242 (exit $ac_status); }; }; then
7243 cf_cv_fixup_sigwinch=$cf_sigwinch
7246 echo "$as_me: failed program was:" >&5
7247 cat conftest.$ac_ext >&5
7249 rm -f conftest.$ac_objext conftest.$ac_ext
7251 cf_sigwinch=`expr $cf_sigwinch - 1`
7255 echo "$as_me:7255: result: $cf_cv_fixup_sigwinch" >&5
7256 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
7258 if test "$cf_cv_fixup_sigwinch" != unknown ; then
7259 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
7263 # Checks for CODESET support.
7265 echo "$as_me:7265: checking for nl_langinfo and CODESET" >&5
7266 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7267 if test "${am_cv_langinfo_codeset+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 cat >conftest.$ac_ext <<_ACEOF
7271 #line 7271 "configure"
7272 #include "confdefs.h"
7273 #include <langinfo.h>
7277 char* cs = nl_langinfo(CODESET);
7282 rm -f conftest.$ac_objext conftest$ac_exeext
7283 if { (eval echo "$as_me:7283: \"$ac_link\"") >&5
7284 (eval $ac_link) 2>&5
7286 echo "$as_me:7286: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try='test -s conftest$ac_exeext'
7289 { (eval echo "$as_me:7289: \"$ac_try\"") >&5
7292 echo "$as_me:7292: \$? = $ac_status" >&5
7293 (exit $ac_status); }; }; then
7294 am_cv_langinfo_codeset=yes
7296 echo "$as_me: failed program was:" >&5
7297 cat conftest.$ac_ext >&5
7298 am_cv_langinfo_codeset=no
7300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7303 echo "$as_me:7303: result: $am_cv_langinfo_codeset" >&5
7304 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7305 if test $am_cv_langinfo_codeset = yes; then
7307 cat >>confdefs.h <<\EOF
7308 #define HAVE_LANGINFO_CODESET 1
7313 # use these variables to work around a defect in gcc's fixincludes.
7317 echo "$as_me:7317: checking if you want wide-character code" >&5
7318 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
7320 # Check whether --enable-widec or --disable-widec was given.
7321 if test "${enable_widec+set}" = set; then
7322 enableval="$enable_widec"
7323 with_widec=$enableval
7327 echo "$as_me:7327: result: $with_widec" >&5
7328 echo "${ECHO_T}$with_widec" >&6
7329 if test "$with_widec" = yes ; then
7330 LIB_SUFFIX="w${LIB_SUFFIX}"
7331 cat >>confdefs.h <<\EOF
7332 #define USE_WIDEC_SUPPORT 1
7335 echo "$as_me:7335: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
7336 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
7337 cat >conftest.$ac_ext <<_ACEOF
7338 #line 7338 "configure"
7339 #include "confdefs.h"
7340 #include <sys/types.h>
7346 #ifndef _XOPEN_SOURCE_EXTENDED
7353 rm -f conftest.$ac_objext
7354 if { (eval echo "$as_me:7354: \"$ac_compile\"") >&5
7355 (eval $ac_compile) 2>&5
7357 echo "$as_me:7357: \$? = $ac_status" >&5
7358 (exit $ac_status); } &&
7359 { ac_try='test -s conftest.$ac_objext'
7360 { (eval echo "$as_me:7360: \"$ac_try\"") >&5
7363 echo "$as_me:7363: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7367 echo "$as_me: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7371 rm -f conftest.$ac_objext conftest.$ac_ext
7372 echo "$as_me:7372: result: $cf_result" >&5
7373 echo "${ECHO_T}$cf_result" >&6
7375 if test "$cf_result" = yes ; then
7376 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
7377 elif test "x" != "x" ; then
7378 echo "$as_me:7378: checking checking for compatible value versus " >&5
7379 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
7380 cat >conftest.$ac_ext <<_ACEOF
7381 #line 7381 "configure"
7382 #include "confdefs.h"
7383 #include <sys/types.h>
7389 #if _XOPEN_SOURCE_EXTENDED- < 0
7396 rm -f conftest.$ac_objext
7397 if { (eval echo "$as_me:7397: \"$ac_compile\"") >&5
7398 (eval $ac_compile) 2>&5
7400 echo "$as_me:7400: \$? = $ac_status" >&5
7401 (exit $ac_status); } &&
7402 { ac_try='test -s conftest.$ac_objext'
7403 { (eval echo "$as_me:7403: \"$ac_try\"") >&5
7406 echo "$as_me:7406: \$? = $ac_status" >&5
7407 (exit $ac_status); }; }; then
7410 echo "$as_me: failed program was:" >&5
7411 cat conftest.$ac_ext >&5
7414 rm -f conftest.$ac_objext conftest.$ac_ext
7415 echo "$as_me:7415: result: $cf_result" >&5
7416 echo "${ECHO_T}$cf_result" >&6
7417 if test "$cf_result" = no ; then
7418 # perhaps we can override it - try...
7419 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
7424 NCURSES_CH_T=cchar_t
7426 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
7428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7429 echo "$as_me:7429: checking for $ac_func" >&5
7430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7431 if eval "test \"\${$as_ac_var+set}\" = set"; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 cat >conftest.$ac_ext <<_ACEOF
7435 #line 7435 "configure"
7436 #include "confdefs.h"
7437 /* System header to define __stub macros and hopefully few prototypes,
7438 which can conflict with char $ac_func (); below. */
7440 /* Override any gcc2 internal prototype to avoid an error. */
7444 /* We use char because int might match the return type of a gcc2
7445 builtin and then its argument prototype would still apply. */
7452 /* The GNU C library defines this for functions which it implements
7453 to always fail with ENOSYS. Some functions are actually named
7454 something starting with __ and the normal name is an alias. */
7455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7465 rm -f conftest.$ac_objext conftest$ac_exeext
7466 if { (eval echo "$as_me:7466: \"$ac_link\"") >&5
7467 (eval $ac_link) 2>&5
7469 echo "$as_me:7469: \$? = $ac_status" >&5
7470 (exit $ac_status); } &&
7471 { ac_try='test -s conftest$ac_exeext'
7472 { (eval echo "$as_me:7472: \"$ac_try\"") >&5
7475 echo "$as_me:7475: \$? = $ac_status" >&5
7476 (exit $ac_status); }; }; then
7477 eval "$as_ac_var=yes"
7479 echo "$as_me: failed program was:" >&5
7480 cat conftest.$ac_ext >&5
7481 eval "$as_ac_var=no"
7483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7485 echo "$as_me:7485: result: `eval echo '${'$as_ac_var'}'`" >&5
7486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7487 if test `eval echo '${'$as_ac_var'}'` = yes; then
7488 cat >>confdefs.h <<EOF
7489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7495 if test "$ac_cv_func_putwc" != yes ; then
7497 echo "$as_me:7497: checking for multibyte character support" >&5
7498 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
7499 if test "${cf_cv_utf8_lib+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 cf_save_LIBS="$LIBS"
7504 cat >conftest.$ac_ext <<_ACEOF
7505 #line 7505 "configure"
7506 #include "confdefs.h"
7517 rm -f conftest.$ac_objext conftest$ac_exeext
7518 if { (eval echo "$as_me:7518: \"$ac_link\"") >&5
7519 (eval $ac_link) 2>&5
7521 echo "$as_me:7521: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7523 { ac_try='test -s conftest$ac_exeext'
7524 { (eval echo "$as_me:7524: \"$ac_try\"") >&5
7527 echo "$as_me:7527: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7531 echo "$as_me: failed program was:" >&5
7532 cat conftest.$ac_ext >&5
7534 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
7535 # will be set on completion of the AC_TRY_LINK below.
7536 cf_cv_header_path_utf8=
7537 cf_cv_library_path_utf8=
7539 echo "${as_me-configure}:7539: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
7541 cat >conftest.$ac_ext <<_ACEOF
7542 #line 7542 "configure"
7543 #include "confdefs.h"
7545 #include <libutf8.h>
7554 rm -f conftest.$ac_objext conftest$ac_exeext
7555 if { (eval echo "$as_me:7555: \"$ac_link\"") >&5
7556 (eval $ac_link) 2>&5
7558 echo "$as_me:7558: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try='test -s conftest$ac_exeext'
7561 { (eval echo "$as_me:7561: \"$ac_try\"") >&5
7564 echo "$as_me:7564: \$? = $ac_status" >&5
7565 (exit $ac_status); }; }; then
7566 cf_cv_find_linkage_utf8=yes
7568 echo "$as_me: failed program was:" >&5
7569 cat conftest.$ac_ext >&5
7571 cf_cv_find_linkage_utf8=no
7573 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
7575 echo "${as_me-configure}:7575: testing find linkage for utf8 library ..." 1>&5
7577 echo "${as_me-configure}:7577: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
7579 cf_save_CPPFLAGS="$CPPFLAGS"
7580 cf_test_CPPFLAGS="$CPPFLAGS"
7582 cf_header_path_list=""
7583 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7584 for cf_header_path in $CPPFLAGS $CFLAGS
7586 case $cf_header_path in #(vi
7588 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7590 test "$cf_header_path" != "NONE" && \
7591 test -d "$cf_header_path" && \
7593 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7594 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7595 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
7596 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
7597 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
7598 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
7601 cf_header_path_list="$cf_header_path_list $cf_search"
7609 test "/usr" != "$prefix" && \
7611 (test $prefix = NONE || test -d $prefix) && {
7612 test -n "$verbose" && echo " ... testing for include-directories under /usr"
7613 test -d /usr/include && cf_search="$cf_search /usr/include"
7614 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
7615 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
7616 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
7617 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
7620 test "$prefix" != "NONE" && \
7621 test -d "$prefix" && \
7623 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7624 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7625 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
7626 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
7627 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
7628 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
7631 test "/usr/local" != "$prefix" && \
7632 test -d "/usr/local" && \
7633 (test $prefix = NONE || test -d $prefix) && {
7634 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
7635 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
7636 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
7637 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
7638 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
7639 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
7642 test "/opt" != "$prefix" && \
7644 (test $prefix = NONE || test -d $prefix) && {
7645 test -n "$verbose" && echo " ... testing for include-directories under /opt"
7646 test -d /opt/include && cf_search="$cf_search /opt/include"
7647 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
7648 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
7649 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
7650 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
7653 test "$HOME" != "$prefix" && \
7654 test -d "$HOME" && \
7655 (test $prefix = NONE || test -d $prefix) && {
7656 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
7657 test -d $HOME/include && cf_search="$cf_search $HOME/include"
7658 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
7659 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
7660 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
7661 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
7664 test "$includedir" != NONE && \
7665 test "$includedir" != "/usr/include" && \
7666 test -d "$includedir" && {
7667 test -d $includedir && cf_search="$cf_search $includedir"
7668 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
7671 test "$oldincludedir" != NONE && \
7672 test "$oldincludedir" != "/usr/include" && \
7673 test -d "$oldincludedir" && {
7674 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7675 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
7678 cf_search="$cf_header_path_list $cf_search"
7680 for cf_cv_header_path_utf8 in $cf_search
7682 if test -d $cf_cv_header_path_utf8 ; then
7683 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
7685 echo "${as_me-configure}:7685: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
7687 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
7688 cat >conftest.$ac_ext <<_ACEOF
7689 #line 7689 "configure"
7690 #include "confdefs.h"
7692 #include <libutf8.h>
7701 rm -f conftest.$ac_objext
7702 if { (eval echo "$as_me:7702: \"$ac_compile\"") >&5
7703 (eval $ac_compile) 2>&5
7705 echo "$as_me:7705: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try='test -s conftest.$ac_objext'
7708 { (eval echo "$as_me:7708: \"$ac_try\"") >&5
7711 echo "$as_me:7711: \$? = $ac_status" >&5
7712 (exit $ac_status); }; }; then
7714 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
7716 echo "${as_me-configure}:7716: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
7718 cf_cv_find_linkage_utf8=maybe
7719 cf_test_CPPFLAGS="$CPPFLAGS"
7722 echo "$as_me: failed program was:" >&5
7723 cat conftest.$ac_ext >&5
7725 CPPFLAGS="$cf_save_CPPFLAGS"
7728 rm -f conftest.$ac_objext conftest.$ac_ext
7732 if test "$cf_cv_find_linkage_utf8" = maybe ; then
7734 echo "${as_me-configure}:7734: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
7736 cf_save_LIBS="$LIBS"
7737 cf_save_LDFLAGS="$LDFLAGS"
7739 if test "$cf_cv_find_linkage_utf8" != yes ; then
7741 cf_library_path_list=""
7742 if test -n "${LDFLAGS}${LIBS}" ; then
7743 for cf_library_path in $LDFLAGS $LIBS
7745 case $cf_library_path in #(vi
7747 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7749 test "$cf_library_path" != "NONE" && \
7750 test -d "$cf_library_path" && \
7752 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7753 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7754 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
7755 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
7756 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
7757 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
7760 cf_library_path_list="$cf_library_path_list $cf_search"
7768 test "/usr" != "$prefix" && \
7770 (test $prefix = NONE || test -d $prefix) && {
7771 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
7772 test -d /usr/lib && cf_search="$cf_search /usr/lib"
7773 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
7774 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
7775 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
7776 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
7779 test "$prefix" != "NONE" && \
7780 test -d "$prefix" && \
7782 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7783 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7784 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
7785 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
7786 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
7787 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
7790 test "/usr/local" != "$prefix" && \
7791 test -d "/usr/local" && \
7792 (test $prefix = NONE || test -d $prefix) && {
7793 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
7794 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
7795 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
7796 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
7797 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
7798 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
7801 test "/opt" != "$prefix" && \
7803 (test $prefix = NONE || test -d $prefix) && {
7804 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
7805 test -d /opt/lib && cf_search="$cf_search /opt/lib"
7806 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
7807 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
7808 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
7809 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
7812 test "$HOME" != "$prefix" && \
7813 test -d "$HOME" && \
7814 (test $prefix = NONE || test -d $prefix) && {
7815 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
7816 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
7817 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
7818 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
7819 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
7820 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
7823 cf_search="$cf_library_path_list $cf_search"
7825 for cf_cv_library_path_utf8 in $cf_search
7827 if test -d $cf_cv_library_path_utf8 ; then
7828 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
7830 echo "${as_me-configure}:7830: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
7832 CPPFLAGS="$cf_test_CPPFLAGS"
7833 LIBS="-lutf8 $cf_save_LIBS"
7834 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
7835 cat >conftest.$ac_ext <<_ACEOF
7836 #line 7836 "configure"
7837 #include "confdefs.h"
7839 #include <libutf8.h>
7848 rm -f conftest.$ac_objext conftest$ac_exeext
7849 if { (eval echo "$as_me:7849: \"$ac_link\"") >&5
7850 (eval $ac_link) 2>&5
7852 echo "$as_me:7852: \$? = $ac_status" >&5
7853 (exit $ac_status); } &&
7854 { ac_try='test -s conftest$ac_exeext'
7855 { (eval echo "$as_me:7855: \"$ac_try\"") >&5
7858 echo "$as_me:7858: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7861 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
7863 echo "${as_me-configure}:7863: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
7865 cf_cv_find_linkage_utf8=yes
7866 cf_cv_library_file_utf8="-lutf8"
7869 echo "$as_me: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7872 CPPFLAGS="$cf_save_CPPFLAGS"
7873 LIBS="$cf_save_LIBS"
7874 LDFLAGS="$cf_save_LDFLAGS"
7877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7880 LIBS="$cf_save_LIBS"
7881 CPPFLAGS="$cf_save_CPPFLAGS"
7882 LDFLAGS="$cf_save_LDFLAGS"
7886 cf_cv_find_linkage_utf8=no
7890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7892 if test "$cf_cv_find_linkage_utf8" = yes ; then
7893 cf_cv_utf8_lib=add-on
7899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7901 echo "$as_me:7901: result: $cf_cv_utf8_lib" >&5
7902 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
7904 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
7906 if test "$cf_cv_utf8_lib" = "add-on" ; then
7907 cat >>confdefs.h <<\EOF
7908 #define HAVE_LIBUTF8_H 1
7911 if test -n "$cf_cv_header_path_utf8" ; then
7912 for cf_add_incdir in $cf_cv_header_path_utf8
7914 while test $cf_add_incdir != /usr/include
7916 if test -d $cf_add_incdir
7919 if test -n "$CFLAGS$CPPFLAGS" ; then
7920 # a loop is needed to ensure we can add subdirs of existing dirs
7921 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7922 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7923 cf_have_incdir=yes; break
7928 if test "$cf_have_incdir" = no ; then
7929 if test "$cf_add_incdir" = /usr/local/include ; then
7930 if test "$GCC" = yes
7932 cf_save_CPPFLAGS=$CPPFLAGS
7933 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7934 cat >conftest.$ac_ext <<_ACEOF
7935 #line 7935 "configure"
7936 #include "confdefs.h"
7946 rm -f conftest.$ac_objext
7947 if { (eval echo "$as_me:7947: \"$ac_compile\"") >&5
7948 (eval $ac_compile) 2>&5
7950 echo "$as_me:7950: \$? = $ac_status" >&5
7951 (exit $ac_status); } &&
7952 { ac_try='test -s conftest.$ac_objext'
7953 { (eval echo "$as_me:7953: \"$ac_try\"") >&5
7956 echo "$as_me:7956: \$? = $ac_status" >&5
7957 (exit $ac_status); }; }; then
7960 echo "$as_me: failed program was:" >&5
7961 cat conftest.$ac_ext >&5
7964 rm -f conftest.$ac_objext conftest.$ac_ext
7965 CPPFLAGS=$cf_save_CPPFLAGS
7970 if test "$cf_have_incdir" = no ; then
7971 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7973 echo "${as_me-configure}:7973: testing adding $cf_add_incdir to include-path ..." 1>&5
7975 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7977 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7978 test "$cf_top_incdir" = "$cf_add_incdir" && break
7979 cf_add_incdir="$cf_top_incdir"
7988 if test -n "$cf_cv_library_path_utf8" ; then
7989 for cf_add_libdir in $cf_cv_library_path_utf8
7991 if test $cf_add_libdir = /usr/lib ; then
7993 elif test -d $cf_add_libdir
7996 if test -n "$LDFLAGS$LIBS" ; then
7997 # a loop is needed to ensure we can add subdirs of existing dirs
7998 for cf_test_libdir in $LDFLAGS $LIBS ; do
7999 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
8000 cf_have_libdir=yes; break
8004 if test "$cf_have_libdir" = no ; then
8005 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
8007 echo "${as_me-configure}:8007: testing adding $cf_add_libdir to library-path ..." 1>&5
8009 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
8018 if test "$cf_cv_utf8_lib" != no ; then
8023 # This is needed on Tru64 5.0 to declare mbstate_t
8024 echo "$as_me:8024: checking if we must include wchar.h to declare mbstate_t" >&5
8025 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
8026 if test "${cf_cv_mbstate_t+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8030 cat >conftest.$ac_ext <<_ACEOF
8031 #line 8031 "configure"
8032 #include "confdefs.h"
8037 #ifdef HAVE_LIBUTF8_H
8038 #include <libutf8.h>
8048 rm -f conftest.$ac_objext
8049 if { (eval echo "$as_me:8049: \"$ac_compile\"") >&5
8050 (eval $ac_compile) 2>&5
8052 echo "$as_me:8052: \$? = $ac_status" >&5
8053 (exit $ac_status); } &&
8054 { ac_try='test -s conftest.$ac_objext'
8055 { (eval echo "$as_me:8055: \"$ac_try\"") >&5
8058 echo "$as_me:8058: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8062 echo "$as_me: failed program was:" >&5
8063 cat conftest.$ac_ext >&5
8064 cat >conftest.$ac_ext <<_ACEOF
8065 #line 8065 "configure"
8066 #include "confdefs.h"
8072 #ifdef HAVE_LIBUTF8_H
8073 #include <libutf8.h>
8083 rm -f conftest.$ac_objext
8084 if { (eval echo "$as_me:8084: \"$ac_compile\"") >&5
8085 (eval $ac_compile) 2>&5
8087 echo "$as_me:8087: \$? = $ac_status" >&5
8088 (exit $ac_status); } &&
8089 { ac_try='test -s conftest.$ac_objext'
8090 { (eval echo "$as_me:8090: \"$ac_try\"") >&5
8093 echo "$as_me:8093: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8097 echo "$as_me: failed program was:" >&5
8098 cat conftest.$ac_ext >&5
8099 cf_cv_mbstate_t=unknown
8101 rm -f conftest.$ac_objext conftest.$ac_ext
8103 rm -f conftest.$ac_objext conftest.$ac_ext
8105 echo "$as_me:8105: result: $cf_cv_mbstate_t" >&5
8106 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
8108 if test "$cf_cv_mbstate_t" = yes ; then
8109 cat >>confdefs.h <<\EOF
8110 #define NEED_WCHAR_H 1
8116 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
8117 if test "$cf_cv_mbstate_t" = unknown ; then
8121 # This is needed on Tru64 5.0 to declare wchar_t
8122 echo "$as_me:8122: checking if we must include wchar.h to declare wchar_t" >&5
8123 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
8124 if test "${cf_cv_wchar_t+set}" = set; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 cat >conftest.$ac_ext <<_ACEOF
8129 #line 8129 "configure"
8130 #include "confdefs.h"
8135 #ifdef HAVE_LIBUTF8_H
8136 #include <libutf8.h>
8146 rm -f conftest.$ac_objext
8147 if { (eval echo "$as_me:8147: \"$ac_compile\"") >&5
8148 (eval $ac_compile) 2>&5
8150 echo "$as_me:8150: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -s conftest.$ac_objext'
8153 { (eval echo "$as_me:8153: \"$ac_try\"") >&5
8156 echo "$as_me:8156: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8160 echo "$as_me: failed program was:" >&5
8161 cat conftest.$ac_ext >&5
8162 cat >conftest.$ac_ext <<_ACEOF
8163 #line 8163 "configure"
8164 #include "confdefs.h"
8170 #ifdef HAVE_LIBUTF8_H
8171 #include <libutf8.h>
8181 rm -f conftest.$ac_objext
8182 if { (eval echo "$as_me:8182: \"$ac_compile\"") >&5
8183 (eval $ac_compile) 2>&5
8185 echo "$as_me:8185: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try='test -s conftest.$ac_objext'
8188 { (eval echo "$as_me:8188: \"$ac_try\"") >&5
8191 echo "$as_me:8191: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8195 echo "$as_me: failed program was:" >&5
8196 cat conftest.$ac_ext >&5
8197 cf_cv_wchar_t=unknown
8199 rm -f conftest.$ac_objext conftest.$ac_ext
8201 rm -f conftest.$ac_objext conftest.$ac_ext
8203 echo "$as_me:8203: result: $cf_cv_wchar_t" >&5
8204 echo "${ECHO_T}$cf_cv_wchar_t" >&6
8206 if test "$cf_cv_wchar_t" = yes ; then
8207 cat >>confdefs.h <<\EOF
8208 #define NEED_WCHAR_H 1
8214 # if we do not find wchar_t in either place, use substitution to provide a fallback.
8215 if test "$cf_cv_wchar_t" = unknown ; then
8219 # if we find wchar_t in either place, use substitution to provide a fallback.
8220 if test "$cf_cv_wchar_t" != unknown ; then
8221 NCURSES_OK_WCHAR_T=1
8224 # This is needed on Tru64 5.0 to declare wint_t
8225 echo "$as_me:8225: checking if we must include wchar.h to declare wint_t" >&5
8226 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
8227 if test "${cf_cv_wint_t+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 cat >conftest.$ac_ext <<_ACEOF
8232 #line 8232 "configure"
8233 #include "confdefs.h"
8238 #ifdef HAVE_LIBUTF8_H
8239 #include <libutf8.h>
8249 rm -f conftest.$ac_objext
8250 if { (eval echo "$as_me:8250: \"$ac_compile\"") >&5
8251 (eval $ac_compile) 2>&5
8253 echo "$as_me:8253: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try='test -s conftest.$ac_objext'
8256 { (eval echo "$as_me:8256: \"$ac_try\"") >&5
8259 echo "$as_me:8259: \$? = $ac_status" >&5
8260 (exit $ac_status); }; }; then
8263 echo "$as_me: failed program was:" >&5
8264 cat conftest.$ac_ext >&5
8265 cat >conftest.$ac_ext <<_ACEOF
8266 #line 8266 "configure"
8267 #include "confdefs.h"
8273 #ifdef HAVE_LIBUTF8_H
8274 #include <libutf8.h>
8284 rm -f conftest.$ac_objext
8285 if { (eval echo "$as_me:8285: \"$ac_compile\"") >&5
8286 (eval $ac_compile) 2>&5
8288 echo "$as_me:8288: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try='test -s conftest.$ac_objext'
8291 { (eval echo "$as_me:8291: \"$ac_try\"") >&5
8294 echo "$as_me:8294: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8298 echo "$as_me: failed program was:" >&5
8299 cat conftest.$ac_ext >&5
8300 cf_cv_wint_t=unknown
8302 rm -f conftest.$ac_objext conftest.$ac_ext
8304 rm -f conftest.$ac_objext conftest.$ac_ext
8306 echo "$as_me:8306: result: $cf_cv_wint_t" >&5
8307 echo "${ECHO_T}$cf_cv_wint_t" >&6
8309 if test "$cf_cv_wint_t" = yes ; then
8310 cat >>confdefs.h <<\EOF
8311 #define NEED_WCHAR_H 1
8317 # if we do not find wint_t in either place, use substitution to provide a fallback.
8318 if test "$cf_cv_wint_t" = unknown ; then
8322 # if we find wint_t in either place, use substitution to provide a fallback.
8323 if test "$cf_cv_wint_t" != unknown ; then
8327 if test "$NCURSES_MBSTATE_T" != 0; then
8328 cat >>confdefs.h <<\EOF
8329 #define NEED_MBSTATE_T_DEF 1
8335 ### use option --disable-lp64 to allow long chtype
8336 case $cf_cv_abi_version in
8338 default_with_lp64=no
8341 default_with_lp64=yes
8345 echo "$as_me:8345: checking whether to enable _LP64 definition in curses.h" >&5
8346 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
8348 # Check whether --enable-lp64 or --disable-lp64 was given.
8349 if test "${enable_lp64+set}" = set; then
8350 enableval="$enable_lp64"
8351 with_lp64=$enableval
8353 with_lp64=$default_with_lp64
8355 echo "$as_me:8355: result: $with_lp64" >&5
8356 echo "${ECHO_T}$with_lp64" >&6
8358 if test "$with_lp64" = yes ; then
8364 # Check whether --enable-largefile or --disable-largefile was given.
8365 if test "${enable_largefile+set}" = set; then
8366 enableval="$enable_largefile"
8369 if test "$enable_largefile" != no; then
8371 echo "$as_me:8371: checking for special C compiler options needed for large files" >&5
8372 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
8373 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8376 ac_cv_sys_largefile_CC=no
8377 if test "$GCC" != yes; then
8380 # IRIX 6.2 and later do not support large files by default,
8381 # so use the C compiler's -n32 option if that helps.
8382 cat >conftest.$ac_ext <<_ACEOF
8383 #line 8383 "configure"
8384 #include "confdefs.h"
8385 #include <sys/types.h>
8386 /* Check that off_t can represent 2**63 - 1 correctly.
8387 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8388 since some C++ compilers masquerading as C compilers
8389 incorrectly reject 9223372036854775807. */
8390 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8391 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8392 && LARGE_OFF_T % 2147483647 == 1)
8402 rm -f conftest.$ac_objext
8403 if { (eval echo "$as_me:8403: \"$ac_compile\"") >&5
8404 (eval $ac_compile) 2>&5
8406 echo "$as_me:8406: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try='test -s conftest.$ac_objext'
8409 { (eval echo "$as_me:8409: \"$ac_try\"") >&5
8412 echo "$as_me:8412: \$? = $ac_status" >&5
8413 (exit $ac_status); }; }; then
8416 echo "$as_me: failed program was:" >&5
8417 cat conftest.$ac_ext >&5
8419 rm -f conftest.$ac_objext
8421 rm -f conftest.$ac_objext
8422 if { (eval echo "$as_me:8422: \"$ac_compile\"") >&5
8423 (eval $ac_compile) 2>&5
8425 echo "$as_me:8425: \$? = $ac_status" >&5
8426 (exit $ac_status); } &&
8427 { ac_try='test -s conftest.$ac_objext'
8428 { (eval echo "$as_me:8428: \"$ac_try\"") >&5
8431 echo "$as_me:8431: \$? = $ac_status" >&5
8432 (exit $ac_status); }; }; then
8433 ac_cv_sys_largefile_CC=' -n32'; break
8435 echo "$as_me: failed program was:" >&5
8436 cat conftest.$ac_ext >&5
8438 rm -f conftest.$ac_objext
8442 rm -f conftest.$ac_ext
8445 echo "$as_me:8445: result: $ac_cv_sys_largefile_CC" >&5
8446 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
8447 if test "$ac_cv_sys_largefile_CC" != no; then
8448 CC=$CC$ac_cv_sys_largefile_CC
8451 echo "$as_me:8451: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8452 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
8453 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 ac_cv_sys_file_offset_bits=no
8458 cat >conftest.$ac_ext <<_ACEOF
8459 #line 8459 "configure"
8460 #include "confdefs.h"
8461 #include <sys/types.h>
8462 /* Check that off_t can represent 2**63 - 1 correctly.
8463 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8464 since some C++ compilers masquerading as C compilers
8465 incorrectly reject 9223372036854775807. */
8466 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8467 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8468 && LARGE_OFF_T % 2147483647 == 1)
8478 rm -f conftest.$ac_objext
8479 if { (eval echo "$as_me:8479: \"$ac_compile\"") >&5
8480 (eval $ac_compile) 2>&5
8482 echo "$as_me:8482: \$? = $ac_status" >&5
8483 (exit $ac_status); } &&
8484 { ac_try='test -s conftest.$ac_objext'
8485 { (eval echo "$as_me:8485: \"$ac_try\"") >&5
8488 echo "$as_me:8488: \$? = $ac_status" >&5
8489 (exit $ac_status); }; }; then
8492 echo "$as_me: failed program was:" >&5
8493 cat conftest.$ac_ext >&5
8495 rm -f conftest.$ac_objext conftest.$ac_ext
8496 cat >conftest.$ac_ext <<_ACEOF
8497 #line 8497 "configure"
8498 #include "confdefs.h"
8499 #define _FILE_OFFSET_BITS 64
8500 #include <sys/types.h>
8501 /* Check that off_t can represent 2**63 - 1 correctly.
8502 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8503 since some C++ compilers masquerading as C compilers
8504 incorrectly reject 9223372036854775807. */
8505 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8506 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8507 && LARGE_OFF_T % 2147483647 == 1)
8517 rm -f conftest.$ac_objext
8518 if { (eval echo "$as_me:8518: \"$ac_compile\"") >&5
8519 (eval $ac_compile) 2>&5
8521 echo "$as_me:8521: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -s conftest.$ac_objext'
8524 { (eval echo "$as_me:8524: \"$ac_try\"") >&5
8527 echo "$as_me:8527: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8529 ac_cv_sys_file_offset_bits=64; break
8531 echo "$as_me: failed program was:" >&5
8532 cat conftest.$ac_ext >&5
8534 rm -f conftest.$ac_objext conftest.$ac_ext
8538 echo "$as_me:8538: result: $ac_cv_sys_file_offset_bits" >&5
8539 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8540 if test "$ac_cv_sys_file_offset_bits" != no; then
8542 cat >>confdefs.h <<EOF
8543 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8548 echo "$as_me:8548: checking for _LARGE_FILES value needed for large files" >&5
8549 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
8550 if test "${ac_cv_sys_large_files+set}" = set; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 ac_cv_sys_large_files=no
8555 cat >conftest.$ac_ext <<_ACEOF
8556 #line 8556 "configure"
8557 #include "confdefs.h"
8558 #include <sys/types.h>
8559 /* Check that off_t can represent 2**63 - 1 correctly.
8560 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8561 since some C++ compilers masquerading as C compilers
8562 incorrectly reject 9223372036854775807. */
8563 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8564 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8565 && LARGE_OFF_T % 2147483647 == 1)
8575 rm -f conftest.$ac_objext
8576 if { (eval echo "$as_me:8576: \"$ac_compile\"") >&5
8577 (eval $ac_compile) 2>&5
8579 echo "$as_me:8579: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -s conftest.$ac_objext'
8582 { (eval echo "$as_me:8582: \"$ac_try\"") >&5
8585 echo "$as_me:8585: \$? = $ac_status" >&5
8586 (exit $ac_status); }; }; then
8589 echo "$as_me: failed program was:" >&5
8590 cat conftest.$ac_ext >&5
8592 rm -f conftest.$ac_objext conftest.$ac_ext
8593 cat >conftest.$ac_ext <<_ACEOF
8594 #line 8594 "configure"
8595 #include "confdefs.h"
8596 #define _LARGE_FILES 1
8597 #include <sys/types.h>
8598 /* Check that off_t can represent 2**63 - 1 correctly.
8599 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8600 since some C++ compilers masquerading as C compilers
8601 incorrectly reject 9223372036854775807. */
8602 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8603 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8604 && LARGE_OFF_T % 2147483647 == 1)
8614 rm -f conftest.$ac_objext
8615 if { (eval echo "$as_me:8615: \"$ac_compile\"") >&5
8616 (eval $ac_compile) 2>&5
8618 echo "$as_me:8618: \$? = $ac_status" >&5
8619 (exit $ac_status); } &&
8620 { ac_try='test -s conftest.$ac_objext'
8621 { (eval echo "$as_me:8621: \"$ac_try\"") >&5
8624 echo "$as_me:8624: \$? = $ac_status" >&5
8625 (exit $ac_status); }; }; then
8626 ac_cv_sys_large_files=1; break
8628 echo "$as_me: failed program was:" >&5
8629 cat conftest.$ac_ext >&5
8631 rm -f conftest.$ac_objext conftest.$ac_ext
8635 echo "$as_me:8635: result: $ac_cv_sys_large_files" >&5
8636 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8637 if test "$ac_cv_sys_large_files" != no; then
8639 cat >>confdefs.h <<EOF
8640 #define _LARGE_FILES $ac_cv_sys_large_files
8647 if test "$enable_largefile" != no ; then
8648 echo "$as_me:8648: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8649 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
8650 if test "${ac_cv_sys_largefile_source+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 ac_cv_sys_largefile_source=no
8655 cat >conftest.$ac_ext <<_ACEOF
8656 #line 8656 "configure"
8657 #include "confdefs.h"
8667 rm -f conftest.$ac_objext
8668 if { (eval echo "$as_me:8668: \"$ac_compile\"") >&5
8669 (eval $ac_compile) 2>&5
8671 echo "$as_me:8671: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -s conftest.$ac_objext'
8674 { (eval echo "$as_me:8674: \"$ac_try\"") >&5
8677 echo "$as_me:8677: \$? = $ac_status" >&5
8678 (exit $ac_status); }; }; then
8681 echo "$as_me: failed program was:" >&5
8682 cat conftest.$ac_ext >&5
8684 rm -f conftest.$ac_objext conftest.$ac_ext
8685 cat >conftest.$ac_ext <<_ACEOF
8686 #line 8686 "configure"
8687 #include "confdefs.h"
8688 #define _LARGEFILE_SOURCE 1
8698 rm -f conftest.$ac_objext
8699 if { (eval echo "$as_me:8699: \"$ac_compile\"") >&5
8700 (eval $ac_compile) 2>&5
8702 echo "$as_me:8702: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try='test -s conftest.$ac_objext'
8705 { (eval echo "$as_me:8705: \"$ac_try\"") >&5
8708 echo "$as_me:8708: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_cv_sys_largefile_source=1; break
8712 echo "$as_me: failed program was:" >&5
8713 cat conftest.$ac_ext >&5
8715 rm -f conftest.$ac_objext conftest.$ac_ext
8719 echo "$as_me:8719: result: $ac_cv_sys_largefile_source" >&5
8720 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8721 if test "$ac_cv_sys_largefile_source" != no; then
8723 cat >>confdefs.h <<EOF
8724 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8730 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8731 # in glibc 2.1.3, but that breaks too many other things.
8732 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8733 echo "$as_me:8733: checking for fseeko" >&5
8734 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
8735 if test "${ac_cv_func_fseeko+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 cat >conftest.$ac_ext <<_ACEOF
8739 #line 8739 "configure"
8740 #include "confdefs.h"
8745 return fseeko && fseeko (stdin, 0, 0);
8750 rm -f conftest.$ac_objext conftest$ac_exeext
8751 if { (eval echo "$as_me:8751: \"$ac_link\"") >&5
8752 (eval $ac_link) 2>&5
8754 echo "$as_me:8754: \$? = $ac_status" >&5
8755 (exit $ac_status); } &&
8756 { ac_try='test -s conftest$ac_exeext'
8757 { (eval echo "$as_me:8757: \"$ac_try\"") >&5
8760 echo "$as_me:8760: \$? = $ac_status" >&5
8761 (exit $ac_status); }; }; then
8762 ac_cv_func_fseeko=yes
8764 echo "$as_me: failed program was:" >&5
8765 cat conftest.$ac_ext >&5
8766 ac_cv_func_fseeko=no
8768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8770 echo "$as_me:8770: result: $ac_cv_func_fseeko" >&5
8771 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
8772 if test $ac_cv_func_fseeko = yes; then
8774 cat >>confdefs.h <<\EOF
8775 #define HAVE_FSEEKO 1
8780 # Normally we would collect these definitions in the config.h,
8781 # but (like _XOPEN_SOURCE), some environments rely on having these
8782 # defined before any of the system headers are included. Another
8783 # case comes up with C++, e.g., on AIX the compiler compiles the
8784 # header files by themselves before looking at the body files it is
8785 # told to compile. For ncurses, those header files do not include
8787 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
8788 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
8789 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
8791 echo "$as_me:8791: checking whether to use struct dirent64" >&5
8792 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
8793 if test "${cf_cv_struct_dirent64+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 cat >conftest.$ac_ext <<_ACEOF
8798 #line 8798 "configure"
8799 #include "confdefs.h"
8801 #include <sys/types.h>
8808 /* if transitional largefile support is setup, this is true */
8809 extern struct dirent64 * readdir(DIR *);
8810 struct dirent64 *x = readdir((DIR *)0);
8811 struct dirent *y = readdir((DIR *)0);
8818 rm -f conftest.$ac_objext
8819 if { (eval echo "$as_me:8819: \"$ac_compile\"") >&5
8820 (eval $ac_compile) 2>&5
8822 echo "$as_me:8822: \$? = $ac_status" >&5
8823 (exit $ac_status); } &&
8824 { ac_try='test -s conftest.$ac_objext'
8825 { (eval echo "$as_me:8825: \"$ac_try\"") >&5
8828 echo "$as_me:8828: \$? = $ac_status" >&5
8829 (exit $ac_status); }; }; then
8830 cf_cv_struct_dirent64=yes
8832 echo "$as_me: failed program was:" >&5
8833 cat conftest.$ac_ext >&5
8834 cf_cv_struct_dirent64=no
8836 rm -f conftest.$ac_objext conftest.$ac_ext
8839 echo "$as_me:8839: result: $cf_cv_struct_dirent64" >&5
8840 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
8841 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
8842 #define HAVE_STRUCT_DIRENT64 1
8847 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
8848 echo "$as_me:8848: checking if you want tparm not to use X/Open fixed-parameter list" >&5
8849 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
8851 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
8852 if test "${enable_tparm_varargs+set}" = set; then
8853 enableval="$enable_tparm_varargs"
8854 with_tparm_varargs=$enableval
8856 with_tparm_varargs=yes
8858 echo "$as_me:8858: result: $with_tparm_varargs" >&5
8859 echo "${ECHO_T}$with_tparm_varargs" >&6
8860 NCURSES_TPARM_VARARGS=0
8861 test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
8863 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
8864 if test "$with_ticlib" != no ; then
8865 echo "$as_me:8865: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
8866 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
8868 # Check whether --enable-tic-depends or --disable-tic-depends was given.
8869 if test "${enable_tic_depends+set}" = set; then
8870 enableval="$enable_tic_depends"
8871 with_tic_depends=$enableval
8873 with_tic_depends=yes
8875 echo "$as_me:8875: result: $with_tic_depends" >&5
8876 echo "${ECHO_T}$with_tic_depends" >&6
8881 ### use option --with-bool to override bool's type
8882 echo "$as_me:8882: checking for type of bool" >&5
8883 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
8885 # Check whether --with-bool or --without-bool was given.
8886 if test "${with_bool+set}" = set; then
8887 withval="$with_bool"
8888 NCURSES_BOOL="$withval"
8892 echo "$as_me:8892: result: $NCURSES_BOOL" >&5
8893 echo "${ECHO_T}$NCURSES_BOOL" >&6
8895 echo "$as_me:8895: checking for alternate terminal capabilities file" >&5
8896 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
8898 # Check whether --with-caps or --without-caps was given.
8899 if test "${with_caps+set}" = set; then
8900 withval="$with_caps"
8901 TERMINFO_CAPS=Caps.$withval
8905 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
8906 echo "$as_me:8906: result: $TERMINFO_CAPS" >&5
8907 echo "${ECHO_T}$TERMINFO_CAPS" >&6
8909 ### use option --with-chtype to override chtype's type
8910 echo "$as_me:8910: checking for type of chtype" >&5
8911 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
8913 # Check whether --with-chtype or --without-chtype was given.
8914 if test "${with_chtype+set}" = set; then
8915 withval="$with_chtype"
8916 NCURSES_CHTYPE="$withval"
8920 echo "$as_me:8920: result: $NCURSES_CHTYPE" >&5
8921 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
8923 ### use option --with-ospeed to override ospeed's type
8924 echo "$as_me:8924: checking for type of ospeed" >&5
8925 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
8927 # Check whether --with-ospeed or --without-ospeed was given.
8928 if test "${with_ospeed+set}" = set; then
8929 withval="$with_ospeed"
8930 NCURSES_OSPEED="$withval"
8932 NCURSES_OSPEED=short
8934 echo "$as_me:8934: result: $NCURSES_OSPEED" >&5
8935 echo "${ECHO_T}$NCURSES_OSPEED" >&6
8937 ### use option --with-mmask-t to override mmask_t's type
8938 echo "$as_me:8938: checking for type of mmask_t" >&5
8939 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
8941 # Check whether --with-mmask-t or --without-mmask-t was given.
8942 if test "${with_mmask_t+set}" = set; then
8943 withval="$with_mmask_t"
8944 NCURSES_MMASK_T="$withval"
8946 NCURSES_MMASK_T=auto
8948 echo "$as_me:8948: result: $NCURSES_MMASK_T" >&5
8949 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
8951 ### use option --with-ccharw-max to override CCHARW_MAX size
8952 echo "$as_me:8952: checking for size CCHARW_MAX" >&5
8953 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
8955 # Check whether --with-ccharw-max or --without-ccharw-max was given.
8956 if test "${with_ccharw_max+set}" = set; then
8957 withval="$with_ccharw_max"
8958 NCURSES_CCHARW_MAX="$withval"
8960 NCURSES_CCHARW_MAX=5
8962 echo "$as_me:8962: result: $NCURSES_CCHARW_MAX" >&5
8963 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
8965 ### Enable compiling-in rcs id's
8966 echo "$as_me:8966: checking if RCS identifiers should be compiled-in" >&5
8967 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
8969 # Check whether --with-rcs-ids or --without-rcs-ids was given.
8970 if test "${with_rcs_ids+set}" = set; then
8971 withval="$with_rcs_ids"
8972 with_rcs_ids=$withval
8976 echo "$as_me:8976: result: $with_rcs_ids" >&5
8977 echo "${ECHO_T}$with_rcs_ids" >&6
8978 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
8979 #define USE_RCS_IDS 1
8982 ###############################################################################
8984 echo "$as_me:8984: checking format of man-pages" >&5
8985 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
8987 # Check whether --with-manpage-format or --without-manpage-format was given.
8988 if test "${with_manpage_format+set}" = set; then
8989 withval="$with_manpage_format"
8990 MANPAGE_FORMAT=$withval
8992 MANPAGE_FORMAT=unknown
8995 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
8996 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
9000 case $MANPAGE_FORMAT in
9002 if test -z "$MANPATH" ; then
9003 MANPATH="/usr/man:/usr/share/man"
9006 # look for the 'date' man-page (it's most likely to be installed!)
9012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
9013 for cf_dir in $MANPATH; do
9014 test -z "$cf_dir" && cf_dir=/usr/man
9015 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
9017 cf_test=`echo $cf_name | sed -e 's/*//'`
9018 if test "x$cf_test" = "x$cf_name" ; then
9021 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
9022 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
9023 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
9024 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
9038 # if we found a match in either man* or cat*, stop looking
9039 if test -n "$MANPAGE_FORMAT" ; then
9041 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
9042 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
9048 test $cf_found=yes && break
9051 # only check the first directory in $MANPATH where we find manpages
9052 if test -n "$MANPAGE_FORMAT" ; then
9056 # if we did not find the example, just assume it is normal
9057 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
9061 for cf_option in $MANPAGE_FORMAT; do
9062 case $cf_option in #(vi
9063 gzip|compress|BSDI|normal|formatted|catonly)
9066 cf_unknown="$cf_unknown $cf_option"
9073 echo "$as_me:9073: result: $MANPAGE_FORMAT" >&5
9074 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
9075 if test -n "$cf_unknown" ; then
9076 { echo "$as_me:9076: WARNING: Unexpected manpage-format $cf_unknown" >&5
9077 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
9080 echo "$as_me:9080: checking for manpage renaming" >&5
9081 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
9083 # Check whether --with-manpage-renames or --without-manpage-renames was given.
9084 if test "${with_manpage_renames+set}" = set; then
9085 withval="$with_manpage_renames"
9086 MANPAGE_RENAMES=$withval
9091 case ".$MANPAGE_RENAMES" in #(vi
9095 # Debian 'man' program?
9096 if test -f /etc/debian_version ; then
9097 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
9104 if test "$MANPAGE_RENAMES" != no ; then
9105 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
9106 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
9107 elif test ! -f $MANPAGE_RENAMES ; then
9108 { { echo "$as_me:9108: error: not a filename: $MANPAGE_RENAMES" >&5
9109 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
9110 { (exit 1); exit 1; }; }
9113 test ! -d man && mkdir man
9115 # Construct a sed-script to perform renaming within man-pages
9116 if test -n "$MANPAGE_RENAMES" ; then
9117 test ! -d man && mkdir man
9118 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
9122 echo "$as_me:9122: result: $MANPAGE_RENAMES" >&5
9123 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
9125 echo "$as_me:9125: checking if manpage aliases will be installed" >&5
9126 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
9128 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
9129 if test "${with_manpage_aliases+set}" = set; then
9130 withval="$with_manpage_aliases"
9131 MANPAGE_ALIASES=$withval
9136 echo "$as_me:9136: result: $MANPAGE_ALIASES" >&5
9137 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
9139 if test "$LN_S" = "ln -s"; then
9146 if test "$MANPAGE_ALIASES" = yes ; then
9147 echo "$as_me:9147: checking if manpage symlinks should be used" >&5
9148 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
9150 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
9151 if test "${with_manpage_symlinks+set}" = set; then
9152 withval="$with_manpage_symlinks"
9153 MANPAGE_SYMLINKS=$withval
9155 MANPAGE_SYMLINKS=$cf_use_symlinks
9158 if test "$$cf_use_symlinks" = no; then
9159 if test "$MANPAGE_SYMLINKS" = yes ; then
9160 { echo "$as_me:9160: WARNING: cannot make symlinks" >&5
9161 echo "$as_me: WARNING: cannot make symlinks" >&2;}
9166 echo "$as_me:9166: result: $MANPAGE_SYMLINKS" >&5
9167 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
9170 echo "$as_me:9170: checking for manpage tbl" >&5
9171 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
9173 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
9174 if test "${with_manpage_tbl+set}" = set; then
9175 withval="$with_manpage_tbl"
9176 MANPAGE_TBL=$withval
9181 echo "$as_me:9181: result: $MANPAGE_TBL" >&5
9182 echo "${ECHO_T}$MANPAGE_TBL" >&6
9184 if test "$prefix" = "NONE" ; then
9185 cf_prefix="$ac_default_prefix"
9190 case "$MANPAGE_FORMAT" in # (vi
9205 test ! -d man && mkdir man
9209 case "$MANPAGE_FORMAT" in #(vi
9212 cf_compress=compress
9220 cf_edit_man=./edit_man.sh
9221 cf_man_alias=`pwd`/man_alias.sed
9223 cat >$cf_edit_man <<CF_EOF
9225 # this script is generated by the configure-script CF_MAN_PAGES macro.
9230 NCURSES_MAJOR="$NCURSES_MAJOR"
9231 NCURSES_MINOR="$NCURSES_MINOR"
9232 NCURSES_PATCH="$NCURSES_PATCH"
9234 NCURSES_OSPEED="$NCURSES_OSPEED"
9235 TERMINFO="$TERMINFO"
9237 MKDIRS="sh `cd $srcdir && pwd`/mkdirs.sh"
9240 INSTALL_DATA="$INSTALL_DATA"
9242 transform="$program_transform_name"
9244 TMP=\${TMPDIR-/tmp}/man\$\$
9245 trap "rm -f \$TMP" 0 1 2 5 15
9257 top_srcdir=\$srcdir/..
9260 if test "\$form" = normal ; then
9261 if test "$cf_format" = yes ; then
9262 if test "$cf_inboth" = no ; then
9263 sh \$0 format \$verb \$mandir \$srcdir \$*
9267 cf_subdir=\$mandir/man
9268 cf_tables=$MANPAGE_TBL
9270 cf_subdir=\$mandir/cat
9274 # process the list of source-files
9277 *.orig|*.rej) ;; #(vi
9279 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
9280 if test \$verb = installing ; then
9281 if test ! -d \$cf_subdir\${section} ; then
9282 \$MKDIRS \$cf_subdir\$section
9286 # replace variables in man page
9287 if test ! -f $cf_man_alias ; then
9288 cat >>$cf_man_alias <<-CF_EOF2
9289 s,@DATADIR@,\$datadir,g
9290 s,@TERMINFO@,\$TERMINFO,g
9291 s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g
9292 s,@NCURSES_MINOR@,\$NCURSES_MINOR,g
9293 s,@NCURSES_PATCH@,\$NCURSES_PATCH,g
9294 s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g
9297 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
9299 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9300 cf_name=`echo $cf_name|sed "$program_transform_name"`
9301 cat >>$cf_edit_man <<-CF_EOF
9302 s,@$cf_NAME@,$cf_name,
9306 cat >>$cf_edit_man <<CF_EOF
9308 echo "...made $cf_man_alias"
9312 cf_source=\`basename \$i\`
9314 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
9315 if test ! -f \$inalias ; then
9316 echo .. skipped \$cf_source
9321 if test "$MANPAGE_ALIASES" != no ; then
9322 cat >>$cf_edit_man <<CF_EOF
9323 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u\`
9327 if test "$MANPAGE_RENAMES" = no ; then
9328 cat >>$cf_edit_man <<CF_EOF
9329 # perform program transformations for section 1 man pages
9330 if test \$section = 1 ; then
9331 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
9333 cf_target=\$cf_subdir\${section}/\$cf_source
9337 cat >>$cf_edit_man <<CF_EOF
9338 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
9339 if test -z "\$cf_target" ; then
9340 echo '? missing rename for '\$cf_source
9341 cf_target="\$cf_source"
9343 cf_target="\$cf_subdir\${section}/\${cf_target}"
9348 cat >>$cf_edit_man <<CF_EOF
9349 sed -f $cf_man_alias \\
9352 if test -f $MANPAGE_RENAMES ; then
9353 cat >>$cf_edit_man <<CF_EOF
9354 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
9357 cat >>$cf_edit_man <<CF_EOF
9362 cat >>$cf_edit_man <<CF_EOF
9363 if test \$cf_tables = yes ; then
9364 tbl \$TMP >\$TMP.out
9369 if test $with_curses_h != yes ; then
9370 cat >>$cf_edit_man <<CF_EOF
9371 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
9376 cat >>$cf_edit_man <<CF_EOF
9377 if test \$form = format ; then
9378 nroff -man \$TMP >\$TMP.out
9383 if test -n "$cf_compress" ; then
9384 cat >>$cf_edit_man <<CF_EOF
9385 if test \$verb = installing ; then
9386 if ( $cf_compress -f \$TMP )
9388 mv \$TMP.$cf_so_strip \$TMP
9391 cf_target="\$cf_target.$cf_so_strip"
9395 case "$MANPAGE_FORMAT" in #(vi
9397 cat >>$cf_edit_man <<CF_EOF
9398 if test \$form = format ; then
9399 # BSDI installs only .0 suffixes in the cat directories
9400 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
9406 cat >>$cf_edit_man <<CF_EOF
9407 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
9408 if test \$verb = installing ; then
9409 echo \$verb \$cf_target
9410 \$INSTALL_DATA \$TMP \$cf_target
9411 test -d \$cf_subdir\${section} &&
9412 test -n "\$aliases" && (
9413 cd \$cf_subdir\${section} && (
9414 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
9415 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
9416 cf_target=\`basename \$cf_target\`
9417 for cf_alias in \$aliases
9419 if test \$section = 1 ; then
9420 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
9423 if test "$MANPAGE_SYMLINKS" = yes ; then
9424 if test -f \$cf_alias\${suffix} ; then
9425 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
9430 echo .. \$verb alias \$cf_alias\${suffix}
9431 rm -f \$cf_alias\${suffix}
9432 $LN_S \$cf_target \$cf_alias\${suffix}
9433 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
9434 echo ".so \$cf_source" >\$TMP
9436 if test -n "$cf_compress" ; then
9437 cat >>$cf_edit_man <<CF_EOF
9438 if test -n "$cf_so_strip" ; then
9439 $cf_compress -f \$TMP
9440 mv \$TMP.$cf_so_strip \$TMP
9444 cat >>$cf_edit_man <<CF_EOF
9445 echo .. \$verb alias \$cf_alias\${suffix}
9446 rm -f \$cf_alias\${suffix}
9447 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
9452 elif test \$verb = removing ; then
9453 test -f \$cf_target && (
9454 echo \$verb \$cf_target
9457 test -d \$cf_subdir\${section} &&
9458 test -n "\$aliases" && (
9459 cd \$cf_subdir\${section} && (
9460 for cf_alias in \$aliases
9462 if test \$section = 1 ; then
9463 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
9466 echo .. \$verb alias \$cf_alias\${suffix}
9467 rm -f \$cf_alias\${suffix}
9479 if test $cf_inboth = yes ; then
9480 if test \$form != format ; then
9481 sh \$0 format \$verb \$mandir \$srcdir \$*
9487 chmod 755 $cf_edit_man
9489 ###############################################################################
9491 ### Note that some functions (such as const) are normally disabled anyway.
9492 echo "$as_me:9492: checking if you want to build with function extensions" >&5
9493 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
9495 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
9496 if test "${enable_ext_funcs+set}" = set; then
9497 enableval="$enable_ext_funcs"
9498 with_ext_funcs=$enableval
9502 echo "$as_me:9502: result: $with_ext_funcs" >&5
9503 echo "${ECHO_T}$with_ext_funcs" >&6
9504 if test "$with_ext_funcs" = yes ; then
9506 cat >>confdefs.h <<\EOF
9507 #define HAVE_CURSES_VERSION 1
9510 cat >>confdefs.h <<\EOF
9511 #define HAVE_HAS_KEY 1
9514 cat >>confdefs.h <<\EOF
9515 #define HAVE_RESIZETERM 1
9518 cat >>confdefs.h <<\EOF
9519 #define HAVE_RESIZE_TERM 1
9522 cat >>confdefs.h <<\EOF
9523 #define HAVE_USE_DEFAULT_COLORS 1
9526 cat >>confdefs.h <<\EOF
9527 #define HAVE_WRESIZE 1
9530 cat >>confdefs.h <<\EOF
9531 #define NCURSES_EXT_FUNCS 1
9534 GENERATED_EXT_FUNCS=generated
9537 GENERATED_EXT_FUNCS=
9540 echo "$as_me:9540: checking if you want to build with experimental SCREEN extensions" >&5
9541 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
9543 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
9544 if test "${enable_sp_funcs+set}" = set; then
9545 enableval="$enable_sp_funcs"
9546 with_sp_funcs=$enableval
9550 echo "$as_me:9550: result: $with_sp_funcs" >&5
9551 echo "${ECHO_T}$with_sp_funcs" >&6
9552 if test "$with_sp_funcs" = yes ; then
9554 cat >>confdefs.h <<\EOF
9555 #define NCURSES_SP_FUNCS 1
9558 GENERATED_SP_FUNCS=generated
9564 echo "$as_me:9564: checking if you want to build with experimental terminal-driver" >&5
9565 echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6
9567 # Check whether --enable-term-driver or --disable-term-driver was given.
9568 if test "${enable_term_driver+set}" = set; then
9569 enableval="$enable_term_driver"
9570 with_term_driver=$enableval
9574 echo "$as_me:9574: result: $with_term_driver" >&5
9575 echo "${ECHO_T}$with_term_driver" >&6
9576 if test "$with_term_driver" = yes ; then
9577 cat >>confdefs.h <<\EOF
9578 #define USE_TERM_DRIVER 1
9581 if test "$with_sp_funcs" != yes ; then
9582 { { echo "$as_me:9582: error: The term-driver option relies upon sp-funcs" >&5
9583 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
9584 { (exit 1); exit 1; }; }
9588 ### use option --enable-const to turn on use of const beyond that in XSI.
9589 echo "$as_me:9589: checking for extended use of const keyword" >&5
9590 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
9592 # Check whether --enable-const or --disable-const was given.
9593 if test "${enable_const+set}" = set; then
9594 enableval="$enable_const"
9595 with_ext_const=$enableval
9599 echo "$as_me:9599: result: $with_ext_const" >&5
9600 echo "${ECHO_T}$with_ext_const" >&6
9601 NCURSES_CONST='/*nothing*/'
9602 if test "$with_ext_const" = yes ; then
9606 ### use option --enable-ext-colors to turn on use of colors beyond 16.
9607 echo "$as_me:9607: checking if you want to use extended colors" >&5
9608 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
9610 # Check whether --enable-ext-colors or --disable-ext-colors was given.
9611 if test "${enable_ext_colors+set}" = set; then
9612 enableval="$enable_ext_colors"
9613 with_ext_colors=$enableval
9617 echo "$as_me:9617: result: $with_ext_colors" >&5
9618 echo "${ECHO_T}$with_ext_colors" >&6
9619 NCURSES_EXT_COLORS=0
9620 if test "$with_ext_colors" = yes ; then
9621 if test "$with_widec" != yes ; then
9622 { { echo "$as_me:9622: error: This option applies only to wide-character library" >&5
9623 echo "$as_me: error: This option applies only to wide-character library" >&2;}
9624 { (exit 1); exit 1; }; }
9626 # cannot be ABI 5 since it changes sizeof(cchar_t)
9628 if test "${with_abi_version+set}" != set; then
9629 case $cf_cv_rel_version in
9631 cf_cv_rel_version=6.0
9633 { echo "$as_me:9633: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
9634 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
9640 NCURSES_EXT_COLORS=1
9641 cat >>confdefs.h <<\EOF
9642 #define NCURSES_EXT_COLORS 1
9647 ### use option --enable-ext-mouse to modify coding to support 5-button mice
9648 echo "$as_me:9648: checking if you want to use extended mouse encoding" >&5
9649 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
9651 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
9652 if test "${enable_ext_mouse+set}" = set; then
9653 enableval="$enable_ext_mouse"
9654 with_ext_mouse=$enableval
9658 echo "$as_me:9658: result: $with_ext_mouse" >&5
9659 echo "${ECHO_T}$with_ext_mouse" >&6
9660 NCURSES_MOUSE_VERSION=1
9661 if test "$with_ext_mouse" = yes ; then
9662 NCURSES_MOUSE_VERSION=2
9664 if test "${with_abi_version+set}" != set; then
9665 case $cf_cv_rel_version in
9667 cf_cv_rel_version=6.0
9669 { echo "$as_me:9669: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
9670 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
9677 echo "$as_me:9677: checking if you want \$NCURSES_NO_PADDING code" >&5
9678 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
9680 # Check whether --enable-no-padding or --disable-no-padding was given.
9681 if test "${enable_no_padding+set}" = set; then
9682 enableval="$enable_no_padding"
9683 with_no_padding=$enableval
9685 with_no_padding=$with_ext_funcs
9687 echo "$as_me:9687: result: $with_no_padding" >&5
9688 echo "${ECHO_T}$with_no_padding" >&6
9689 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
9690 #define NCURSES_NO_PADDING 1
9693 echo "$as_me:9693: checking for ANSI C header files" >&5
9694 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9695 if test "${ac_cv_header_stdc+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 cat >conftest.$ac_ext <<_ACEOF
9699 #line 9699 "configure"
9700 #include "confdefs.h"
9707 if { (eval echo "$as_me:9707: \"$ac_cpp conftest.$ac_ext\"") >&5
9708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9710 egrep -v '^ *\+' conftest.er1 >conftest.err
9712 cat conftest.err >&5
9713 echo "$as_me:9713: \$? = $ac_status" >&5
9714 (exit $ac_status); } >/dev/null; then
9715 if test -s conftest.err; then
9716 ac_cpp_err=$ac_c_preproc_warn_flag
9723 if test -z "$ac_cpp_err"; then
9724 ac_cv_header_stdc=yes
9726 echo "$as_me: failed program was:" >&5
9727 cat conftest.$ac_ext >&5
9728 ac_cv_header_stdc=no
9730 rm -f conftest.err conftest.$ac_ext
9732 if test $ac_cv_header_stdc = yes; then
9733 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9734 cat >conftest.$ac_ext <<_ACEOF
9735 #line 9735 "configure"
9736 #include "confdefs.h"
9740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9741 egrep "memchr" >/dev/null 2>&1; then
9744 ac_cv_header_stdc=no
9750 if test $ac_cv_header_stdc = yes; then
9751 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9752 cat >conftest.$ac_ext <<_ACEOF
9753 #line 9753 "configure"
9754 #include "confdefs.h"
9758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9759 egrep "free" >/dev/null 2>&1; then
9762 ac_cv_header_stdc=no
9768 if test $ac_cv_header_stdc = yes; then
9769 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9770 if test "$cross_compiling" = yes; then
9773 cat >conftest.$ac_ext <<_ACEOF
9774 #line 9774 "configure"
9775 #include "confdefs.h"
9777 #if ((' ' & 0x0FF) == 0x020)
9778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9781 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9782 || ('j' <= (c) && (c) <= 'r') \
9783 || ('s' <= (c) && (c) <= 'z'))
9784 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9787 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9792 for (i = 0; i < 256; i++)
9793 if (XOR (islower (i), ISLOWER (i))
9794 || toupper (i) != TOUPPER (i))
9796 $ac_main_return (0);
9799 rm -f conftest$ac_exeext
9800 if { (eval echo "$as_me:9800: \"$ac_link\"") >&5
9801 (eval $ac_link) 2>&5
9803 echo "$as_me:9803: \$? = $ac_status" >&5
9804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9805 { (eval echo "$as_me:9805: \"$ac_try\"") >&5
9808 echo "$as_me:9808: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9812 echo "$as_me: program exited with status $ac_status" >&5
9813 echo "$as_me: failed program was:" >&5
9814 cat conftest.$ac_ext >&5
9815 ac_cv_header_stdc=no
9817 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9821 echo "$as_me:9821: result: $ac_cv_header_stdc" >&5
9822 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9823 if test $ac_cv_header_stdc = yes; then
9825 cat >>confdefs.h <<\EOF
9826 #define STDC_HEADERS 1
9831 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9833 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9834 inttypes.h stdint.h unistd.h
9836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9837 echo "$as_me:9837: checking for $ac_header" >&5
9838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 cat >conftest.$ac_ext <<_ACEOF
9843 #line 9843 "configure"
9844 #include "confdefs.h"
9845 $ac_includes_default
9846 #include <$ac_header>
9848 rm -f conftest.$ac_objext
9849 if { (eval echo "$as_me:9849: \"$ac_compile\"") >&5
9850 (eval $ac_compile) 2>&5
9852 echo "$as_me:9852: \$? = $ac_status" >&5
9853 (exit $ac_status); } &&
9854 { ac_try='test -s conftest.$ac_objext'
9855 { (eval echo "$as_me:9855: \"$ac_try\"") >&5
9858 echo "$as_me:9858: \$? = $ac_status" >&5
9859 (exit $ac_status); }; }; then
9860 eval "$as_ac_Header=yes"
9862 echo "$as_me: failed program was:" >&5
9863 cat conftest.$ac_ext >&5
9864 eval "$as_ac_Header=no"
9866 rm -f conftest.$ac_objext conftest.$ac_ext
9868 echo "$as_me:9868: result: `eval echo '${'$as_ac_Header'}'`" >&5
9869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9871 cat >>confdefs.h <<EOF
9872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9878 echo "$as_me:9878: checking for signed char" >&5
9879 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
9880 if test "${ac_cv_type_signed_char+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 cat >conftest.$ac_ext <<_ACEOF
9884 #line 9884 "configure"
9885 #include "confdefs.h"
9886 $ac_includes_default
9890 if ((signed char *) 0)
9892 if (sizeof (signed char))
9898 rm -f conftest.$ac_objext
9899 if { (eval echo "$as_me:9899: \"$ac_compile\"") >&5
9900 (eval $ac_compile) 2>&5
9902 echo "$as_me:9902: \$? = $ac_status" >&5
9903 (exit $ac_status); } &&
9904 { ac_try='test -s conftest.$ac_objext'
9905 { (eval echo "$as_me:9905: \"$ac_try\"") >&5
9908 echo "$as_me:9908: \$? = $ac_status" >&5
9909 (exit $ac_status); }; }; then
9910 ac_cv_type_signed_char=yes
9912 echo "$as_me: failed program was:" >&5
9913 cat conftest.$ac_ext >&5
9914 ac_cv_type_signed_char=no
9916 rm -f conftest.$ac_objext conftest.$ac_ext
9918 echo "$as_me:9918: result: $ac_cv_type_signed_char" >&5
9919 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
9921 echo "$as_me:9921: checking size of signed char" >&5
9922 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
9923 if test "${ac_cv_sizeof_signed_char+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 if test "$ac_cv_type_signed_char" = yes; then
9927 if test "$cross_compiling" = yes; then
9928 # Depending upon the size, compute the lo and hi bounds.
9929 cat >conftest.$ac_ext <<_ACEOF
9930 #line 9930 "configure"
9931 #include "confdefs.h"
9932 $ac_includes_default
9936 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
9941 rm -f conftest.$ac_objext
9942 if { (eval echo "$as_me:9942: \"$ac_compile\"") >&5
9943 (eval $ac_compile) 2>&5
9945 echo "$as_me:9945: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
9947 { ac_try='test -s conftest.$ac_objext'
9948 { (eval echo "$as_me:9948: \"$ac_try\"") >&5
9951 echo "$as_me:9951: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9955 cat >conftest.$ac_ext <<_ACEOF
9956 #line 9956 "configure"
9957 #include "confdefs.h"
9958 $ac_includes_default
9962 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
9967 rm -f conftest.$ac_objext
9968 if { (eval echo "$as_me:9968: \"$ac_compile\"") >&5
9969 (eval $ac_compile) 2>&5
9971 echo "$as_me:9971: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -s conftest.$ac_objext'
9974 { (eval echo "$as_me:9974: \"$ac_try\"") >&5
9977 echo "$as_me:9977: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_hi=$ac_mid; break
9981 echo "$as_me: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9983 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9985 rm -f conftest.$ac_objext conftest.$ac_ext
9988 echo "$as_me: failed program was:" >&5
9989 cat conftest.$ac_ext >&5
9992 cat >conftest.$ac_ext <<_ACEOF
9993 #line 9993 "configure"
9994 #include "confdefs.h"
9995 $ac_includes_default
9999 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
10004 rm -f conftest.$ac_objext
10005 if { (eval echo "$as_me:10005: \"$ac_compile\"") >&5
10006 (eval $ac_compile) 2>&5
10008 echo "$as_me:10008: \$? = $ac_status" >&5
10009 (exit $ac_status); } &&
10010 { ac_try='test -s conftest.$ac_objext'
10011 { (eval echo "$as_me:10011: \"$ac_try\"") >&5
10012 (eval $ac_try) 2>&5
10014 echo "$as_me:10014: \$? = $ac_status" >&5
10015 (exit $ac_status); }; }; then
10016 ac_lo=$ac_mid; break
10018 echo "$as_me: failed program was:" >&5
10019 cat conftest.$ac_ext >&5
10020 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10022 rm -f conftest.$ac_objext conftest.$ac_ext
10025 rm -f conftest.$ac_objext conftest.$ac_ext
10026 # Binary search between lo and hi bounds.
10027 while test "x$ac_lo" != "x$ac_hi"; do
10028 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10029 cat >conftest.$ac_ext <<_ACEOF
10030 #line 10030 "configure"
10031 #include "confdefs.h"
10032 $ac_includes_default
10036 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
10041 rm -f conftest.$ac_objext
10042 if { (eval echo "$as_me:10042: \"$ac_compile\"") >&5
10043 (eval $ac_compile) 2>&5
10045 echo "$as_me:10045: \$? = $ac_status" >&5
10046 (exit $ac_status); } &&
10047 { ac_try='test -s conftest.$ac_objext'
10048 { (eval echo "$as_me:10048: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10051 echo "$as_me:10051: \$? = $ac_status" >&5
10052 (exit $ac_status); }; }; then
10055 echo "$as_me: failed program was:" >&5
10056 cat conftest.$ac_ext >&5
10057 ac_lo=`expr $ac_mid + 1`
10059 rm -f conftest.$ac_objext conftest.$ac_ext
10061 ac_cv_sizeof_signed_char=$ac_lo
10063 if test "$cross_compiling" = yes; then
10064 { { echo "$as_me:10064: error: cannot run test program while cross compiling" >&5
10065 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10066 { (exit 1); exit 1; }; }
10068 cat >conftest.$ac_ext <<_ACEOF
10069 #line 10069 "configure"
10070 #include "confdefs.h"
10071 $ac_includes_default
10075 FILE *f = fopen ("conftest.val", "w");
10077 $ac_main_return (1);
10078 fprintf (f, "%d", (sizeof (signed char)));
10084 rm -f conftest$ac_exeext
10085 if { (eval echo "$as_me:10085: \"$ac_link\"") >&5
10086 (eval $ac_link) 2>&5
10088 echo "$as_me:10088: \$? = $ac_status" >&5
10089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10090 { (eval echo "$as_me:10090: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10093 echo "$as_me:10093: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 ac_cv_sizeof_signed_char=`cat conftest.val`
10097 echo "$as_me: program exited with status $ac_status" >&5
10098 echo "$as_me: failed program was:" >&5
10099 cat conftest.$ac_ext >&5
10101 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10106 ac_cv_sizeof_signed_char=0
10109 echo "$as_me:10109: result: $ac_cv_sizeof_signed_char" >&5
10110 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
10111 cat >>confdefs.h <<EOF
10112 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
10115 if test "$ac_cv_sizeof_signed_char" = 1 ; then
10116 NCURSES_SBOOL="signed char"
10118 NCURSES_SBOOL="char"
10120 echo "$as_me:10120: checking if you want to use signed Boolean array in term.h" >&5
10121 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
10123 # Check whether --enable-signed-char or --disable-signed-char was given.
10124 if test "${enable_signed_char+set}" = set; then
10125 enableval="$enable_signed_char"
10126 with_signed_char=$enableval
10128 with_signed_char=no
10130 echo "$as_me:10130: result: $with_signed_char" >&5
10131 echo "${ECHO_T}$with_signed_char" >&6
10132 test "$with_signed_char" != yes && NCURSES_SBOOL="char"
10134 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
10135 echo "$as_me:10135: checking if you want SIGWINCH handler" >&5
10136 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
10138 # Check whether --enable-sigwinch or --disable-sigwinch was given.
10139 if test "${enable_sigwinch+set}" = set; then
10140 enableval="$enable_sigwinch"
10141 with_sigwinch=$enableval
10143 with_sigwinch=$with_ext_funcs
10145 echo "$as_me:10145: result: $with_sigwinch" >&5
10146 echo "${ECHO_T}$with_sigwinch" >&6
10147 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
10148 #define USE_SIGWINCH 1
10151 ### use option --enable-tcap-names to allow user to define new capabilities
10152 echo "$as_me:10152: checking if you want user-definable terminal capabilities like termcap" >&5
10153 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
10155 # Check whether --enable-tcap-names or --disable-tcap-names was given.
10156 if test "${enable_tcap_names+set}" = set; then
10157 enableval="$enable_tcap_names"
10158 with_tcap_names=$enableval
10160 with_tcap_names=$with_ext_funcs
10162 echo "$as_me:10162: result: $with_tcap_names" >&5
10163 echo "${ECHO_T}$with_tcap_names" >&6
10165 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
10167 ###############################################################################
10168 # These options are relatively safe to experiment with.
10170 echo "$as_me:10170: checking if you want all development code" >&5
10171 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
10173 # Check whether --with-develop or --without-develop was given.
10174 if test "${with_develop+set}" = set; then
10175 withval="$with_develop"
10176 with_develop=$withval
10180 echo "$as_me:10180: result: $with_develop" >&5
10181 echo "${ECHO_T}$with_develop" >&6
10183 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
10184 echo "$as_me:10184: checking if you want hard-tabs code" >&5
10185 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
10187 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
10188 if test "${enable_hard_tabs+set}" = set; then
10189 enableval="$enable_hard_tabs"
10192 enable_hard_tabs=$with_develop
10194 echo "$as_me:10194: result: $enable_hard_tabs" >&5
10195 echo "${ECHO_T}$enable_hard_tabs" >&6
10196 test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
10197 #define USE_HARD_TABS 1
10200 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
10201 echo "$as_me:10201: checking if you want limited support for xmc" >&5
10202 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
10204 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
10205 if test "${enable_xmc_glitch+set}" = set; then
10206 enableval="$enable_xmc_glitch"
10209 enable_xmc_glitch=$with_develop
10211 echo "$as_me:10211: result: $enable_xmc_glitch" >&5
10212 echo "${ECHO_T}$enable_xmc_glitch" >&6
10213 test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
10214 #define USE_XMC_SUPPORT 1
10217 ###############################################################################
10218 # These are just experimental, probably should not be in a package:
10220 echo "$as_me:10220: checking if you do not want to assume colors are white-on-black" >&5
10221 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
10223 # Check whether --enable-assumed-color or --disable-assumed-color was given.
10224 if test "${enable_assumed_color+set}" = set; then
10225 enableval="$enable_assumed_color"
10226 with_assumed_color=$enableval
10228 with_assumed_color=yes
10230 echo "$as_me:10230: result: $with_assumed_color" >&5
10231 echo "${ECHO_T}$with_assumed_color" >&6
10232 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
10233 #define USE_ASSUMED_COLOR 1
10236 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
10237 echo "$as_me:10237: checking if you want hashmap scrolling-optimization code" >&5
10238 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
10240 # Check whether --enable-hashmap or --disable-hashmap was given.
10241 if test "${enable_hashmap+set}" = set; then
10242 enableval="$enable_hashmap"
10243 with_hashmap=$enableval
10247 echo "$as_me:10247: result: $with_hashmap" >&5
10248 echo "${ECHO_T}$with_hashmap" >&6
10249 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
10250 #define USE_HASHMAP 1
10253 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
10254 echo "$as_me:10254: checking if you want colorfgbg code" >&5
10255 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
10257 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
10258 if test "${enable_colorfgbg+set}" = set; then
10259 enableval="$enable_colorfgbg"
10260 with_colorfgbg=$enableval
10264 echo "$as_me:10264: result: $with_colorfgbg" >&5
10265 echo "${ECHO_T}$with_colorfgbg" >&6
10266 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
10267 #define USE_COLORFGBG 1
10270 ### use option --enable-interop to turn on use of bindings used for interop
10271 echo "$as_me:10271: checking if you want interop bindings" >&5
10272 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
10274 # Check whether --enable-interop or --disable-interop was given.
10275 if test "${enable_interop+set}" = set; then
10276 enableval="$enable_interop"
10277 with_exp_interop=$enableval
10279 with_exp_interop=no
10281 echo "$as_me:10281: result: $with_exp_interop" >&5
10282 echo "${ECHO_T}$with_exp_interop" >&6
10284 NCURSES_INTEROP_FUNCS=0
10285 test "$with_exp_interop" = yes && NCURSES_INTEROP_FUNCS=1
10287 # This is still experimental (20080329), but should ultimately be moved to
10288 # the script-block --with-normal, etc.
10290 echo "$as_me:10290: checking if you want to link with the pthread library" >&5
10291 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
10293 # Check whether --with-pthread or --without-pthread was given.
10294 if test "${with_pthread+set}" = set; then
10295 withval="$with_pthread"
10296 with_pthread=$withval
10300 echo "$as_me:10300: result: $with_pthread" >&5
10301 echo "${ECHO_T}$with_pthread" >&6
10303 if test "$with_pthread" != no ; then
10304 echo "$as_me:10304: checking for pthread.h" >&5
10305 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
10306 if test "${ac_cv_header_pthread_h+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10309 cat >conftest.$ac_ext <<_ACEOF
10310 #line 10310 "configure"
10311 #include "confdefs.h"
10312 #include <pthread.h>
10314 if { (eval echo "$as_me:10314: \"$ac_cpp conftest.$ac_ext\"") >&5
10315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10317 egrep -v '^ *\+' conftest.er1 >conftest.err
10319 cat conftest.err >&5
10320 echo "$as_me:10320: \$? = $ac_status" >&5
10321 (exit $ac_status); } >/dev/null; then
10322 if test -s conftest.err; then
10323 ac_cpp_err=$ac_c_preproc_warn_flag
10330 if test -z "$ac_cpp_err"; then
10331 ac_cv_header_pthread_h=yes
10333 echo "$as_me: failed program was:" >&5
10334 cat conftest.$ac_ext >&5
10335 ac_cv_header_pthread_h=no
10337 rm -f conftest.err conftest.$ac_ext
10339 echo "$as_me:10339: result: $ac_cv_header_pthread_h" >&5
10340 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
10341 if test $ac_cv_header_pthread_h = yes; then
10343 cat >>confdefs.h <<\EOF
10344 #define HAVE_PTHREADS_H 1
10347 echo "$as_me:10347: checking if we can link with the pthread library" >&5
10348 echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6
10349 cf_save_LIBS="$LIBS"
10350 LIBS="-lpthread $LIBS"
10351 cat >conftest.$ac_ext <<_ACEOF
10352 #line 10352 "configure"
10353 #include "confdefs.h"
10355 #include <pthread.h>
10361 int rc = pthread_create(0,0,0,0);
10367 rm -f conftest.$ac_objext conftest$ac_exeext
10368 if { (eval echo "$as_me:10368: \"$ac_link\"") >&5
10369 (eval $ac_link) 2>&5
10371 echo "$as_me:10371: \$? = $ac_status" >&5
10372 (exit $ac_status); } &&
10373 { ac_try='test -s conftest$ac_exeext'
10374 { (eval echo "$as_me:10374: \"$ac_try\"") >&5
10375 (eval $ac_try) 2>&5
10377 echo "$as_me:10377: \$? = $ac_status" >&5
10378 (exit $ac_status); }; }; then
10381 echo "$as_me: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10386 LIBS="$cf_save_LIBS"
10387 echo "$as_me:10387: result: $with_pthread" >&5
10388 echo "${ECHO_T}$with_pthread" >&6
10390 if test "$with_pthread" = yes ; then
10391 LIBS="-lpthread $LIBS"
10392 cat >>confdefs.h <<\EOF
10393 #define HAVE_LIBPTHREADS 1
10397 { { echo "$as_me:10397: error: Cannot link with pthread library" >&5
10398 echo "$as_me: error: Cannot link with pthread library" >&2;}
10399 { (exit 1); exit 1; }; }
10406 echo "$as_me:10406: checking if you want to use weak-symbols for pthreads" >&5
10407 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
10409 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
10410 if test "${enable_weak_symbols+set}" = set; then
10411 enableval="$enable_weak_symbols"
10412 use_weak_symbols=$withval
10414 use_weak_symbols=no
10416 echo "$as_me:10416: result: $use_weak_symbols" >&5
10417 echo "${ECHO_T}$use_weak_symbols" >&6
10418 if test "$use_weak_symbols" = yes ; then
10420 echo "$as_me:10420: checking if $CC supports weak symbols" >&5
10421 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
10422 if test "${cf_cv_weak_symbols+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 cat >conftest.$ac_ext <<_ACEOF
10427 #line 10427 "configure"
10428 #include "confdefs.h"
10435 #if defined(__GNUC__)
10436 # if defined __USE_ISOC99
10437 # define _cat_pragma(exp) _Pragma(#exp)
10438 # define _weak_pragma(exp) _cat_pragma(weak name)
10440 # define _weak_pragma(exp)
10442 # define _declare(name) __extension__ extern __typeof__(name) name
10443 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
10446 weak_symbol(fopen);
10452 rm -f conftest.$ac_objext
10453 if { (eval echo "$as_me:10453: \"$ac_compile\"") >&5
10454 (eval $ac_compile) 2>&5
10456 echo "$as_me:10456: \$? = $ac_status" >&5
10457 (exit $ac_status); } &&
10458 { ac_try='test -s conftest.$ac_objext'
10459 { (eval echo "$as_me:10459: \"$ac_try\"") >&5
10460 (eval $ac_try) 2>&5
10462 echo "$as_me:10462: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 cf_cv_weak_symbols=yes
10466 echo "$as_me: failed program was:" >&5
10467 cat conftest.$ac_ext >&5
10468 cf_cv_weak_symbols=no
10470 rm -f conftest.$ac_objext conftest.$ac_ext
10473 echo "$as_me:10473: result: $cf_cv_weak_symbols" >&5
10474 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
10477 cf_cv_weak_symbols=no
10480 if test $cf_cv_weak_symbols = yes ; then
10481 cat >>confdefs.h <<\EOF
10482 #define USE_WEAK_SYMBOLS 1
10488 if test "$with_pthread" = "yes" ; then
10489 cat >>confdefs.h <<\EOF
10490 #define USE_PTHREADS 1
10493 enable_reentrant=yes
10494 if test $cf_cv_weak_symbols = yes ; then
10499 # Reentrant code has to be opaque; there's little advantage to making ncurses
10500 # opaque outside of that, so there is no --enable-opaque option. We can use
10501 # this option without --with-pthreads, but this will be always set for
10503 echo "$as_me:10503: checking if you want experimental reentrant code" >&5
10504 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
10506 # Check whether --enable-reentrant or --disable-reentrant was given.
10507 if test "${enable_reentrant+set}" = set; then
10508 enableval="$enable_reentrant"
10509 with_reentrant=$enableval
10513 echo "$as_me:10513: result: $with_reentrant" >&5
10514 echo "${ECHO_T}$with_reentrant" >&6
10515 if test "$with_reentrant" = yes ; then
10516 cf_cv_enable_reentrant=1
10517 cf_cv_enable_opaque="NCURSES_INTERNALS"
10520 if test $cf_cv_weak_symbols = yes ; then
10522 # remove pthread library from $LIBS
10523 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
10526 LIB_SUFFIX="t${LIB_SUFFIX}"
10528 cat >>confdefs.h <<\EOF
10529 #define USE_REENTRANT 1
10532 if test "${with_abi_version+set}" != set; then
10533 case $cf_cv_rel_version in
10535 cf_cv_rel_version=6.0
10536 cf_cv_abi_version=6
10537 { echo "$as_me:10537: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10538 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10544 cf_cv_enable_reentrant=0
10545 cf_cv_enable_opaque="NCURSES_OPAQUE"
10547 NCURSES_SIZE_T=short
10550 ### Allow using a different wrap-prefix
10551 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
10552 echo "$as_me:10552: checking for prefix used to wrap public variables" >&5
10553 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
10555 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
10556 if test "${with_wrap_prefix+set}" = set; then
10557 withval="$with_wrap_prefix"
10558 NCURSES_WRAP_PREFIX=$withval
10560 NCURSES_WRAP_PREFIX=_nc_
10562 echo "$as_me:10562: result: $NCURSES_WRAP_PREFIX" >&5
10563 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
10565 NCURSES_WRAP_PREFIX=_nc_
10568 cat >>confdefs.h <<EOF
10569 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
10572 echo "$as_me:10572: checking if you want experimental safe-sprintf code" >&5
10573 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
10575 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
10576 if test "${enable_safe_sprintf+set}" = set; then
10577 enableval="$enable_safe_sprintf"
10578 with_safe_sprintf=$enableval
10580 with_safe_sprintf=no
10582 echo "$as_me:10582: result: $with_safe_sprintf" >&5
10583 echo "${ECHO_T}$with_safe_sprintf" >&6
10584 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
10585 #define USE_SAFE_SPRINTF 1
10588 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
10589 # when hashmap is used scroll hints are useless
10590 if test "$with_hashmap" = no ; then
10591 echo "$as_me:10591: checking if you want to experiment without scrolling-hints code" >&5
10592 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
10594 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
10595 if test "${enable_scroll_hints+set}" = set; then
10596 enableval="$enable_scroll_hints"
10597 with_scroll_hints=$enableval
10599 with_scroll_hints=yes
10601 echo "$as_me:10601: result: $with_scroll_hints" >&5
10602 echo "${ECHO_T}$with_scroll_hints" >&6
10603 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
10604 #define USE_SCROLL_HINTS 1
10609 echo "$as_me:10609: checking if you want experimental wgetch-events code" >&5
10610 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
10612 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
10613 if test "${enable_wgetch_events+set}" = set; then
10614 enableval="$enable_wgetch_events"
10615 with_wgetch_events=$enableval
10617 with_wgetch_events=no
10619 echo "$as_me:10619: result: $with_wgetch_events" >&5
10620 echo "${ECHO_T}$with_wgetch_events" >&6
10621 test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
10622 #define NCURSES_WGETCH_EVENTS 1
10625 ###############################################################################
10627 ### use option --disable-echo to suppress full display compiling commands
10628 echo "$as_me:10628: checking if you want to display full commands during build" >&5
10629 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
10631 # Check whether --enable-echo or --disable-echo was given.
10632 if test "${enable_echo+set}" = set; then
10633 enableval="$enable_echo"
10634 with_echo=$enableval
10638 if test "$with_echo" = yes; then
10641 ECHO_LINK='@ echo linking $@ ... ;'
10642 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
10643 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
10645 echo "$as_me:10645: result: $with_echo" >&5
10646 echo "${ECHO_T}$with_echo" >&6
10648 ### use option --enable-warnings to turn on all gcc warnings
10649 echo "$as_me:10649: checking if you want to see compiler warnings" >&5
10650 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
10652 # Check whether --enable-warnings or --disable-warnings was given.
10653 if test "${enable_warnings+set}" = set; then
10654 enableval="$enable_warnings"
10655 with_warnings=$enableval
10657 echo "$as_me:10657: result: $with_warnings" >&5
10658 echo "${ECHO_T}$with_warnings" >&6
10660 if test "x$with_warnings" = "xyes"; then
10661 ADAFLAGS="$ADAFLAGS -gnatg"
10665 if test "$GCC" = yes ; then
10668 echo "$as_me:10668: checking if this is really Intel C compiler" >&5
10669 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
10670 cf_save_CFLAGS="$CFLAGS"
10671 CFLAGS="$CFLAGS -no-gcc"
10672 cat >conftest.$ac_ext <<_ACEOF
10673 #line 10673 "configure"
10674 #include "confdefs.h"
10680 #ifdef __INTEL_COMPILER
10689 rm -f conftest.$ac_objext
10690 if { (eval echo "$as_me:10690: \"$ac_compile\"") >&5
10691 (eval $ac_compile) 2>&5
10693 echo "$as_me:10693: \$? = $ac_status" >&5
10694 (exit $ac_status); } &&
10695 { ac_try='test -s conftest.$ac_objext'
10696 { (eval echo "$as_me:10696: \"$ac_try\"") >&5
10697 (eval $ac_try) 2>&5
10699 echo "$as_me:10699: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
10702 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
10705 echo "$as_me: failed program was:" >&5
10706 cat conftest.$ac_ext >&5
10708 rm -f conftest.$ac_objext conftest.$ac_ext
10709 CFLAGS="$cf_save_CFLAGS"
10710 echo "$as_me:10710: result: $INTEL_COMPILER" >&5
10711 echo "${ECHO_T}$INTEL_COMPILER" >&6
10716 cat > conftest.$ac_ext <<EOF
10717 #line 10717 "${as_me-configure}"
10718 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
10721 if test "$INTEL_COMPILER" = yes
10723 # The "-wdXXX" options suppress warnings:
10724 # remark #1419: external declaration in primary source file
10725 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
10726 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
10727 # remark #193: zero used for undefined preprocessing identifier
10728 # remark #593: variable "curs_sb_left_arrow" was set but never used
10729 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
10730 # remark #869: parameter "tw" was never referenced
10731 # remark #981: operands are evaluated in unspecified order
10732 # warning #279: controlling expression is constant
10734 { echo "$as_me:10734: checking for $CC warning options..." >&5
10735 echo "$as_me: checking for $CC warning options..." >&6;}
10736 cf_save_CFLAGS="$CFLAGS"
10737 EXTRA_CFLAGS="-Wall"
10749 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
10750 if { (eval echo "$as_me:10750: \"$ac_compile\"") >&5
10751 (eval $ac_compile) 2>&5
10753 echo "$as_me:10753: \$? = $ac_status" >&5
10754 (exit $ac_status); }; then
10755 test -n "$verbose" && echo "$as_me:10755: result: ... -$cf_opt" >&5
10756 echo "${ECHO_T}... -$cf_opt" >&6
10757 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
10760 CFLAGS="$cf_save_CFLAGS"
10762 elif test "$GCC" = yes
10764 { echo "$as_me:10764: checking for $CC warning options..." >&5
10765 echo "$as_me: checking for $CC warning options..." >&6;}
10766 cf_save_CFLAGS="$CFLAGS"
10767 EXTRA_CFLAGS="-W -Wall"
10769 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
10771 Wbad-function-cast \
10775 Wmissing-declarations \
10776 Wmissing-prototypes \
10780 Wstrict-prototypes \
10781 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
10783 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
10784 if { (eval echo "$as_me:10784: \"$ac_compile\"") >&5
10785 (eval $ac_compile) 2>&5
10787 echo "$as_me:10787: \$? = $ac_status" >&5
10788 (exit $ac_status); }; then
10789 test -n "$verbose" && echo "$as_me:10789: result: ... -$cf_opt" >&5
10790 echo "${ECHO_T}... -$cf_opt" >&6
10791 case $cf_opt in #(vi
10793 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
10796 case $GCC_VERSION in
10798 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
10800 echo "${as_me-configure}:10800: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
10806 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
10809 CFLAGS="$cf_save_CFLAGS"
10813 if test "$cf_with_cxx" = yes ; then
10817 if test "$GCC" = yes ; then
10820 echo "$as_me:10820: checking if this is really Intel C++ compiler" >&5
10821 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
10822 cf_save_CFLAGS="$CXXFLAGS"
10823 CXXFLAGS="$CXXFLAGS -no-gcc"
10824 cat >conftest.$ac_ext <<_ACEOF
10825 #line 10825 "configure"
10826 #include "confdefs.h"
10832 #ifdef __INTEL_COMPILER
10841 rm -f conftest.$ac_objext
10842 if { (eval echo "$as_me:10842: \"$ac_compile\"") >&5
10843 (eval $ac_compile) 2>&5
10845 echo "$as_me:10845: \$? = $ac_status" >&5
10846 (exit $ac_status); } &&
10847 { ac_try='test -s conftest.$ac_objext'
10848 { (eval echo "$as_me:10848: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10851 echo "$as_me:10851: \$? = $ac_status" >&5
10852 (exit $ac_status); }; }; then
10853 INTEL_CPLUSPLUS=yes
10854 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
10857 echo "$as_me: failed program was:" >&5
10858 cat conftest.$ac_ext >&5
10860 rm -f conftest.$ac_objext conftest.$ac_ext
10861 CXXFLAGS="$cf_save_CFLAGS"
10862 echo "$as_me:10862: result: $INTEL_CPLUSPLUS" >&5
10863 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
10869 ac_cpp='$CXXCPP $CPPFLAGS'
10870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10873 ac_main_return=return
10875 cat > conftest.$ac_ext <<EOF
10876 #line 10876 "configure"
10877 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
10880 if test "$INTEL_CPLUSPLUS" = yes
10882 # The "-wdXXX" options suppress warnings:
10883 # remark #1419: external declaration in primary source file
10884 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
10885 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
10886 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
10887 # remark #193: zero used for undefined preprocessing identifier
10888 # remark #593: variable "curs_sb_left_arrow" was set but never used
10889 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
10890 # remark #869: parameter "tw" was never referenced
10891 # remark #981: operands are evaluated in unspecified order
10892 # warning #269: invalid format string conversion
10894 { echo "$as_me:10894: checking for $CC warning options..." >&5
10895 echo "$as_me: checking for $CC warning options..." >&6;}
10896 cf_save_CXXFLAGS="$CXXFLAGS"
10897 EXTRA_CXXFLAGS="-Wall"
10910 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
10911 if { (eval echo "$as_me:10911: \"$ac_compile\"") >&5
10912 (eval $ac_compile) 2>&5
10914 echo "$as_me:10914: \$? = $ac_status" >&5
10915 (exit $ac_status); }; then
10916 test -n "$verbose" && echo "$as_me:10916: result: ... -$cf_opt" >&5
10917 echo "${ECHO_T}... -$cf_opt" >&6
10918 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
10921 CXXFLAGS="$cf_save_CXXFLAGS"
10923 elif test "$GXX" = yes
10925 { echo "$as_me:10925: checking for $CXX warning options..." >&5
10926 echo "$as_me: checking for $CXX warning options..." >&6;}
10927 cf_save_CXXFLAGS="$CXXFLAGS"
10928 EXTRA_CXXFLAGS="-W -Wall"
10929 cf_gxx_extra_warnings=""
10930 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
10931 case "$GCC_VERSION" in
10935 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
10941 Woverloaded-virtual \
10947 Wmissing-prototypes \
10950 Wstrict-prototypes \
10951 Wundef $cf_gxx_extra_warnings Wno-unused
10953 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
10954 if { (eval echo "$as_me:10954: \"$ac_compile\"") >&5
10955 (eval $ac_compile) 2>&5
10957 echo "$as_me:10957: \$? = $ac_status" >&5
10958 (exit $ac_status); }; then
10959 test -n "$verbose" && echo "$as_me:10959: result: ... -$cf_opt" >&5
10960 echo "${ECHO_T}... -$cf_opt" >&6
10961 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
10963 test -n "$verbose" && echo "$as_me:10963: result: ... no -$cf_opt" >&5
10964 echo "${ECHO_T}... no -$cf_opt" >&6
10967 CXXFLAGS="$cf_save_CXXFLAGS"
10972 ac_cpp='$CPP $CPPFLAGS'
10973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10976 ac_main_return=return
10981 if test "$GCC" = yes
10983 cat > conftest.i <<EOF
10985 #define GCC_PRINTF 0
10988 #define GCC_SCANF 0
10990 #ifndef GCC_NORETURN
10991 #define GCC_NORETURN /* nothing */
10994 #define GCC_UNUSED /* nothing */
10997 if test "$GCC" = yes
10999 { echo "$as_me:10999: checking for $CC __attribute__ directives..." >&5
11000 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
11001 cat > conftest.$ac_ext <<EOF
11002 #line 11002 "${as_me-configure}"
11003 #include "confdefs.h"
11004 #include "conftest.h"
11005 #include "conftest.i"
11007 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
11009 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
11012 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
11014 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
11016 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
11017 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
11018 extern void foo(void) GCC_NORETURN;
11019 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
11021 cf_printf_attribute=no
11022 cf_scanf_attribute=no
11023 for cf_attribute in scanf printf unused noreturn
11026 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11028 cf_directive="__attribute__(($cf_attribute))"
11029 echo "checking for $CC $cf_directive" 1>&5
11031 case $cf_attribute in #(vi
11033 cf_printf_attribute=yes
11034 cat >conftest.h <<EOF
11035 #define GCC_$cf_ATTRIBUTE 1
11039 cf_scanf_attribute=yes
11040 cat >conftest.h <<EOF
11041 #define GCC_$cf_ATTRIBUTE 1
11045 cat >conftest.h <<EOF
11046 #define GCC_$cf_ATTRIBUTE $cf_directive
11051 if { (eval echo "$as_me:11051: \"$ac_compile\"") >&5
11052 (eval $ac_compile) 2>&5
11054 echo "$as_me:11054: \$? = $ac_status" >&5
11055 (exit $ac_status); }; then
11056 test -n "$verbose" && echo "$as_me:11056: result: ... $cf_attribute" >&5
11057 echo "${ECHO_T}... $cf_attribute" >&6
11058 cat conftest.h >>confdefs.h
11059 case $cf_attribute in #(vi
11061 if test "$cf_printf_attribute" = no ; then
11062 cat >>confdefs.h <<EOF
11063 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
11066 cat >>confdefs.h <<EOF
11067 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
11072 if test "$cf_scanf_attribute" = no ; then
11073 cat >>confdefs.h <<EOF
11074 #define GCC_SCANFLIKE(fmt,var) /* nothing */
11077 cat >>confdefs.h <<EOF
11078 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
11086 fgrep define conftest.i >>confdefs.h
11091 ### use option --enable-assertions to turn on generation of assertion code
11092 echo "$as_me:11092: checking if you want to enable runtime assertions" >&5
11093 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
11095 # Check whether --enable-assertions or --disable-assertions was given.
11096 if test "${enable_assertions+set}" = set; then
11097 enableval="$enable_assertions"
11098 with_assertions=$enableval
11102 echo "$as_me:11102: result: $with_assertions" >&5
11103 echo "${ECHO_T}$with_assertions" >&6
11106 if test "$with_assertions" = no
11108 cat >>confdefs.h <<\EOF
11112 CPPFLAGS="$CPPFLAGS -DNDEBUG"
11114 ADAFLAGS="$ADAFLAGS -gnata"
11118 ### use option --disable-leaks to suppress "permanent" leaks, for testing
11120 echo "$as_me:11120: checking if you want to use dmalloc for testing" >&5
11121 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
11123 # Check whether --with-dmalloc or --without-dmalloc was given.
11124 if test "${with_dmalloc+set}" = set; then
11125 withval="$with_dmalloc"
11126 cat >>confdefs.h <<\EOF
11127 #define USE_DMALLOC 1
11130 : ${with_cflags:=-g}
11131 : ${with_no_leaks:=yes}
11136 echo "$as_me:11136: result: ${with_dmalloc:-no}" >&5
11137 echo "${ECHO_T}${with_dmalloc:-no}" >&6
11139 case .$with_cflags in #(vi
11141 case .$CFLAGS in #(vi
11149 cf_new_extra_cppflags=
11151 for cf_add_cflags in -g
11153 case $cf_fix_cppflags in
11155 case $cf_add_cflags in #(vi
11156 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11157 case $cf_add_cflags in
11159 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11161 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11162 && test -z "${cf_tst_cflags}" \
11163 && cf_fix_cppflags=yes
11165 if test $cf_fix_cppflags = yes ; then
11166 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11168 elif test "${cf_tst_cflags}" = "\"'" ; then
11169 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11174 case "$CPPFLAGS" in
11175 *$cf_add_cflags) #(vi
11178 case $cf_add_cflags in #(vi
11180 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11182 CPPFLAGS=`echo "$CPPFLAGS" | \
11183 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11184 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11188 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11193 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11198 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11200 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11202 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11203 && test -z "${cf_tst_cflags}" \
11204 && cf_fix_cppflags=no
11209 if test -n "$cf_new_cflags" ; then
11211 CFLAGS="$CFLAGS $cf_new_cflags"
11214 if test -n "$cf_new_cppflags" ; then
11216 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11219 if test -n "$cf_new_extra_cppflags" ; then
11221 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11229 if test "$with_dmalloc" = yes ; then
11230 echo "$as_me:11230: checking for dmalloc.h" >&5
11231 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
11232 if test "${ac_cv_header_dmalloc_h+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 cat >conftest.$ac_ext <<_ACEOF
11236 #line 11236 "configure"
11237 #include "confdefs.h"
11238 #include <dmalloc.h>
11240 if { (eval echo "$as_me:11240: \"$ac_cpp conftest.$ac_ext\"") >&5
11241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11243 egrep -v '^ *\+' conftest.er1 >conftest.err
11245 cat conftest.err >&5
11246 echo "$as_me:11246: \$? = $ac_status" >&5
11247 (exit $ac_status); } >/dev/null; then
11248 if test -s conftest.err; then
11249 ac_cpp_err=$ac_c_preproc_warn_flag
11256 if test -z "$ac_cpp_err"; then
11257 ac_cv_header_dmalloc_h=yes
11259 echo "$as_me: failed program was:" >&5
11260 cat conftest.$ac_ext >&5
11261 ac_cv_header_dmalloc_h=no
11263 rm -f conftest.err conftest.$ac_ext
11265 echo "$as_me:11265: result: $ac_cv_header_dmalloc_h" >&5
11266 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
11267 if test $ac_cv_header_dmalloc_h = yes; then
11269 echo "$as_me:11269: checking for dmalloc_debug in -ldmalloc" >&5
11270 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
11271 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 ac_check_lib_save_LIBS=$LIBS
11275 LIBS="-ldmalloc $LIBS"
11276 cat >conftest.$ac_ext <<_ACEOF
11277 #line 11277 "configure"
11278 #include "confdefs.h"
11280 /* Override any gcc2 internal prototype to avoid an error. */
11284 /* We use char because int might match the return type of a gcc2
11285 builtin and then its argument prototype would still apply. */
11286 char dmalloc_debug ();
11295 rm -f conftest.$ac_objext conftest$ac_exeext
11296 if { (eval echo "$as_me:11296: \"$ac_link\"") >&5
11297 (eval $ac_link) 2>&5
11299 echo "$as_me:11299: \$? = $ac_status" >&5
11300 (exit $ac_status); } &&
11301 { ac_try='test -s conftest$ac_exeext'
11302 { (eval echo "$as_me:11302: \"$ac_try\"") >&5
11303 (eval $ac_try) 2>&5
11305 echo "$as_me:11305: \$? = $ac_status" >&5
11306 (exit $ac_status); }; }; then
11307 ac_cv_lib_dmalloc_dmalloc_debug=yes
11309 echo "$as_me: failed program was:" >&5
11310 cat conftest.$ac_ext >&5
11311 ac_cv_lib_dmalloc_dmalloc_debug=no
11313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11314 LIBS=$ac_check_lib_save_LIBS
11316 echo "$as_me:11316: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
11317 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
11318 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
11319 cat >>confdefs.h <<EOF
11320 #define HAVE_LIBDMALLOC 1
11323 LIBS="-ldmalloc $LIBS"
11331 echo "$as_me:11331: checking if you want to use dbmalloc for testing" >&5
11332 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
11334 # Check whether --with-dbmalloc or --without-dbmalloc was given.
11335 if test "${with_dbmalloc+set}" = set; then
11336 withval="$with_dbmalloc"
11337 cat >>confdefs.h <<\EOF
11338 #define USE_DBMALLOC 1
11341 : ${with_cflags:=-g}
11342 : ${with_no_leaks:=yes}
11347 echo "$as_me:11347: result: ${with_dbmalloc:-no}" >&5
11348 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
11350 case .$with_cflags in #(vi
11352 case .$CFLAGS in #(vi
11360 cf_new_extra_cppflags=
11362 for cf_add_cflags in -g
11364 case $cf_fix_cppflags in
11366 case $cf_add_cflags in #(vi
11367 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11368 case $cf_add_cflags in
11370 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11372 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11373 && test -z "${cf_tst_cflags}" \
11374 && cf_fix_cppflags=yes
11376 if test $cf_fix_cppflags = yes ; then
11377 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11379 elif test "${cf_tst_cflags}" = "\"'" ; then
11380 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11385 case "$CPPFLAGS" in
11386 *$cf_add_cflags) #(vi
11389 case $cf_add_cflags in #(vi
11391 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11393 CPPFLAGS=`echo "$CPPFLAGS" | \
11394 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11395 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11399 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11404 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11409 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11411 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11413 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11414 && test -z "${cf_tst_cflags}" \
11415 && cf_fix_cppflags=no
11420 if test -n "$cf_new_cflags" ; then
11422 CFLAGS="$CFLAGS $cf_new_cflags"
11425 if test -n "$cf_new_cppflags" ; then
11427 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11430 if test -n "$cf_new_extra_cppflags" ; then
11432 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11440 if test "$with_dbmalloc" = yes ; then
11441 echo "$as_me:11441: checking for dbmalloc.h" >&5
11442 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
11443 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 cat >conftest.$ac_ext <<_ACEOF
11447 #line 11447 "configure"
11448 #include "confdefs.h"
11449 #include <dbmalloc.h>
11451 if { (eval echo "$as_me:11451: \"$ac_cpp conftest.$ac_ext\"") >&5
11452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11454 egrep -v '^ *\+' conftest.er1 >conftest.err
11456 cat conftest.err >&5
11457 echo "$as_me:11457: \$? = $ac_status" >&5
11458 (exit $ac_status); } >/dev/null; then
11459 if test -s conftest.err; then
11460 ac_cpp_err=$ac_c_preproc_warn_flag
11467 if test -z "$ac_cpp_err"; then
11468 ac_cv_header_dbmalloc_h=yes
11470 echo "$as_me: failed program was:" >&5
11471 cat conftest.$ac_ext >&5
11472 ac_cv_header_dbmalloc_h=no
11474 rm -f conftest.err conftest.$ac_ext
11476 echo "$as_me:11476: result: $ac_cv_header_dbmalloc_h" >&5
11477 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
11478 if test $ac_cv_header_dbmalloc_h = yes; then
11480 echo "$as_me:11480: checking for debug_malloc in -ldbmalloc" >&5
11481 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
11482 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11485 ac_check_lib_save_LIBS=$LIBS
11486 LIBS="-ldbmalloc $LIBS"
11487 cat >conftest.$ac_ext <<_ACEOF
11488 #line 11488 "configure"
11489 #include "confdefs.h"
11491 /* Override any gcc2 internal prototype to avoid an error. */
11495 /* We use char because int might match the return type of a gcc2
11496 builtin and then its argument prototype would still apply. */
11497 char debug_malloc ();
11506 rm -f conftest.$ac_objext conftest$ac_exeext
11507 if { (eval echo "$as_me:11507: \"$ac_link\"") >&5
11508 (eval $ac_link) 2>&5
11510 echo "$as_me:11510: \$? = $ac_status" >&5
11511 (exit $ac_status); } &&
11512 { ac_try='test -s conftest$ac_exeext'
11513 { (eval echo "$as_me:11513: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11516 echo "$as_me:11516: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 ac_cv_lib_dbmalloc_debug_malloc=yes
11520 echo "$as_me: failed program was:" >&5
11521 cat conftest.$ac_ext >&5
11522 ac_cv_lib_dbmalloc_debug_malloc=no
11524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11525 LIBS=$ac_check_lib_save_LIBS
11527 echo "$as_me:11527: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
11528 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
11529 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
11530 cat >>confdefs.h <<EOF
11531 #define HAVE_LIBDBMALLOC 1
11534 LIBS="-ldbmalloc $LIBS"
11542 echo "$as_me:11542: checking if you want to use valgrind for testing" >&5
11543 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
11545 # Check whether --with-valgrind or --without-valgrind was given.
11546 if test "${with_valgrind+set}" = set; then
11547 withval="$with_valgrind"
11548 cat >>confdefs.h <<\EOF
11549 #define USE_VALGRIND 1
11552 : ${with_cflags:=-g}
11553 : ${with_no_leaks:=yes}
11558 echo "$as_me:11558: result: ${with_valgrind:-no}" >&5
11559 echo "${ECHO_T}${with_valgrind:-no}" >&6
11561 case .$with_cflags in #(vi
11563 case .$CFLAGS in #(vi
11571 cf_new_extra_cppflags=
11573 for cf_add_cflags in -g
11575 case $cf_fix_cppflags in
11577 case $cf_add_cflags in #(vi
11578 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11579 case $cf_add_cflags in
11581 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11583 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11584 && test -z "${cf_tst_cflags}" \
11585 && cf_fix_cppflags=yes
11587 if test $cf_fix_cppflags = yes ; then
11588 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11590 elif test "${cf_tst_cflags}" = "\"'" ; then
11591 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11596 case "$CPPFLAGS" in
11597 *$cf_add_cflags) #(vi
11600 case $cf_add_cflags in #(vi
11602 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11604 CPPFLAGS=`echo "$CPPFLAGS" | \
11605 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11606 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11610 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11615 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11620 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11622 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11624 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11625 && test -z "${cf_tst_cflags}" \
11626 && cf_fix_cppflags=no
11631 if test -n "$cf_new_cflags" ; then
11633 CFLAGS="$CFLAGS $cf_new_cflags"
11636 if test -n "$cf_new_cppflags" ; then
11638 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11641 if test -n "$cf_new_extra_cppflags" ; then
11643 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11651 echo "$as_me:11651: checking if you want to perform memory-leak testing" >&5
11652 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
11654 # Check whether --enable-leaks or --disable-leaks was given.
11655 if test "${enable_leaks+set}" = set; then
11656 enableval="$enable_leaks"
11659 : ${with_no_leaks:=no}
11661 echo "$as_me:11661: result: $with_no_leaks" >&5
11662 echo "${ECHO_T}$with_no_leaks" >&6
11664 if test "$with_no_leaks" = yes ; then
11665 cat >>confdefs.h <<\EOF
11671 cat >>confdefs.h <<\EOF
11672 #define HAVE_NC_ALLOC_H 1
11675 ### use option --enable-expanded to generate certain macros as functions
11677 # Check whether --enable-expanded or --disable-expanded was given.
11678 if test "${enable_expanded+set}" = set; then
11679 enableval="$enable_expanded"
11680 test "$enableval" = yes && cat >>confdefs.h <<\EOF
11681 #define NCURSES_EXPANDED 1
11686 ### use option --disable-macros to suppress macros in favor of functions
11688 # Check whether --enable-macros or --disable-macros was given.
11689 if test "${enable_macros+set}" = set; then
11690 enableval="$enable_macros"
11691 test "$enableval" = no && cat >>confdefs.h <<\EOF
11692 #define NCURSES_NOMACROS 1
11697 # Normally we only add trace() to the debug-library. Allow this to be
11698 # extended to all models of the ncurses library:
11700 case "$CFLAGS $CPPFLAGS" in
11706 echo "$as_me:11706: checking whether to add trace feature to all models" >&5
11707 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
11709 # Check whether --with-trace or --without-trace was given.
11710 if test "${with_trace+set}" = set; then
11711 withval="$with_trace"
11712 cf_with_trace=$withval
11714 cf_with_trace=$cf_all_traces
11716 echo "$as_me:11716: result: $cf_with_trace" >&5
11717 echo "${ECHO_T}$cf_with_trace" >&6
11719 if test "$cf_with_trace" = yes ; then
11726 cf_new_extra_cppflags=
11728 for cf_add_cflags in -DTRACE
11730 case $cf_fix_cppflags in
11732 case $cf_add_cflags in #(vi
11733 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11734 case $cf_add_cflags in
11736 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11738 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11739 && test -z "${cf_tst_cflags}" \
11740 && cf_fix_cppflags=yes
11742 if test $cf_fix_cppflags = yes ; then
11743 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11745 elif test "${cf_tst_cflags}" = "\"'" ; then
11746 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11751 case "$CPPFLAGS" in
11752 *$cf_add_cflags) #(vi
11755 case $cf_add_cflags in #(vi
11757 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11759 CPPFLAGS=`echo "$CPPFLAGS" | \
11760 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11761 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11765 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11770 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11775 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11777 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11779 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11780 && test -z "${cf_tst_cflags}" \
11781 && cf_fix_cppflags=no
11786 if test -n "$cf_new_cflags" ; then
11788 CFLAGS="$CFLAGS $cf_new_cflags"
11791 if test -n "$cf_new_cppflags" ; then
11793 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11796 if test -n "$cf_new_extra_cppflags" ; then
11798 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11806 ### Checks for libraries.
11807 case $cf_cv_system_name in #(vi
11811 echo "$as_me:11811: checking for gettimeofday" >&5
11812 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
11813 if test "${ac_cv_func_gettimeofday+set}" = set; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 cat >conftest.$ac_ext <<_ACEOF
11817 #line 11817 "configure"
11818 #include "confdefs.h"
11819 /* System header to define __stub macros and hopefully few prototypes,
11820 which can conflict with char gettimeofday (); below. */
11821 #include <assert.h>
11822 /* Override any gcc2 internal prototype to avoid an error. */
11826 /* We use char because int might match the return type of a gcc2
11827 builtin and then its argument prototype would still apply. */
11828 char gettimeofday ();
11834 /* The GNU C library defines this for functions which it implements
11835 to always fail with ENOSYS. Some functions are actually named
11836 something starting with __ and the normal name is an alias. */
11837 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
11847 rm -f conftest.$ac_objext conftest$ac_exeext
11848 if { (eval echo "$as_me:11848: \"$ac_link\"") >&5
11849 (eval $ac_link) 2>&5
11851 echo "$as_me:11851: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
11853 { ac_try='test -s conftest$ac_exeext'
11854 { (eval echo "$as_me:11854: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11857 echo "$as_me:11857: \$? = $ac_status" >&5
11858 (exit $ac_status); }; }; then
11859 ac_cv_func_gettimeofday=yes
11861 echo "$as_me: failed program was:" >&5
11862 cat conftest.$ac_ext >&5
11863 ac_cv_func_gettimeofday=no
11865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11867 echo "$as_me:11867: result: $ac_cv_func_gettimeofday" >&5
11868 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
11869 if test $ac_cv_func_gettimeofday = yes; then
11870 cat >>confdefs.h <<\EOF
11871 #define HAVE_GETTIMEOFDAY 1
11876 echo "$as_me:11876: checking for gettimeofday in -lbsd" >&5
11877 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
11878 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 ac_check_lib_save_LIBS=$LIBS
11883 cat >conftest.$ac_ext <<_ACEOF
11884 #line 11884 "configure"
11885 #include "confdefs.h"
11887 /* Override any gcc2 internal prototype to avoid an error. */
11891 /* We use char because int might match the return type of a gcc2
11892 builtin and then its argument prototype would still apply. */
11893 char gettimeofday ();
11902 rm -f conftest.$ac_objext conftest$ac_exeext
11903 if { (eval echo "$as_me:11903: \"$ac_link\"") >&5
11904 (eval $ac_link) 2>&5
11906 echo "$as_me:11906: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try='test -s conftest$ac_exeext'
11909 { (eval echo "$as_me:11909: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11912 echo "$as_me:11912: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 ac_cv_lib_bsd_gettimeofday=yes
11916 echo "$as_me: failed program was:" >&5
11917 cat conftest.$ac_ext >&5
11918 ac_cv_lib_bsd_gettimeofday=no
11920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11921 LIBS=$ac_check_lib_save_LIBS
11923 echo "$as_me:11923: result: $ac_cv_lib_bsd_gettimeofday" >&5
11924 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
11925 if test $ac_cv_lib_bsd_gettimeofday = yes; then
11926 cat >>confdefs.h <<\EOF
11927 #define HAVE_GETTIMEOFDAY 1
11937 echo "$as_me:11937: checking if -lm needed for math functions" >&5
11938 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
11939 if test "${cf_cv_need_libm+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 cat >conftest.$ac_ext <<_ACEOF
11944 #line 11944 "configure"
11945 #include "confdefs.h"
11953 double x = rand(); printf("result = %g\n", sin(x))
11958 rm -f conftest.$ac_objext conftest$ac_exeext
11959 if { (eval echo "$as_me:11959: \"$ac_link\"") >&5
11960 (eval $ac_link) 2>&5
11962 echo "$as_me:11962: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try='test -s conftest$ac_exeext'
11965 { (eval echo "$as_me:11965: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11968 echo "$as_me:11968: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
11972 echo "$as_me: failed program was:" >&5
11973 cat conftest.$ac_ext >&5
11974 cf_cv_need_libm=yes
11976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11978 echo "$as_me:11978: result: $cf_cv_need_libm" >&5
11979 echo "${ECHO_T}$cf_cv_need_libm" >&6
11980 if test "$cf_cv_need_libm" = yes
11985 ### Checks for header files.
11986 echo "$as_me:11986: checking for ANSI C header files" >&5
11987 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11988 if test "${ac_cv_header_stdc+set}" = set; then
11989 echo $ECHO_N "(cached) $ECHO_C" >&6
11991 cat >conftest.$ac_ext <<_ACEOF
11992 #line 11992 "configure"
11993 #include "confdefs.h"
11994 #include <stdlib.h>
11995 #include <stdarg.h>
11996 #include <string.h>
12000 if { (eval echo "$as_me:12000: \"$ac_cpp conftest.$ac_ext\"") >&5
12001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12003 egrep -v '^ *\+' conftest.er1 >conftest.err
12005 cat conftest.err >&5
12006 echo "$as_me:12006: \$? = $ac_status" >&5
12007 (exit $ac_status); } >/dev/null; then
12008 if test -s conftest.err; then
12009 ac_cpp_err=$ac_c_preproc_warn_flag
12016 if test -z "$ac_cpp_err"; then
12017 ac_cv_header_stdc=yes
12019 echo "$as_me: failed program was:" >&5
12020 cat conftest.$ac_ext >&5
12021 ac_cv_header_stdc=no
12023 rm -f conftest.err conftest.$ac_ext
12025 if test $ac_cv_header_stdc = yes; then
12026 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12027 cat >conftest.$ac_ext <<_ACEOF
12028 #line 12028 "configure"
12029 #include "confdefs.h"
12030 #include <string.h>
12033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12034 egrep "memchr" >/dev/null 2>&1; then
12037 ac_cv_header_stdc=no
12043 if test $ac_cv_header_stdc = yes; then
12044 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12045 cat >conftest.$ac_ext <<_ACEOF
12046 #line 12046 "configure"
12047 #include "confdefs.h"
12048 #include <stdlib.h>
12051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12052 egrep "free" >/dev/null 2>&1; then
12055 ac_cv_header_stdc=no
12061 if test $ac_cv_header_stdc = yes; then
12062 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12063 if test "$cross_compiling" = yes; then
12066 cat >conftest.$ac_ext <<_ACEOF
12067 #line 12067 "configure"
12068 #include "confdefs.h"
12070 #if ((' ' & 0x0FF) == 0x020)
12071 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12072 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12074 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12075 || ('j' <= (c) && (c) <= 'r') \
12076 || ('s' <= (c) && (c) <= 'z'))
12077 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12080 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12085 for (i = 0; i < 256; i++)
12086 if (XOR (islower (i), ISLOWER (i))
12087 || toupper (i) != TOUPPER (i))
12088 $ac_main_return(2);
12089 $ac_main_return (0);
12092 rm -f conftest$ac_exeext
12093 if { (eval echo "$as_me:12093: \"$ac_link\"") >&5
12094 (eval $ac_link) 2>&5
12096 echo "$as_me:12096: \$? = $ac_status" >&5
12097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12098 { (eval echo "$as_me:12098: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12101 echo "$as_me:12101: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12105 echo "$as_me: program exited with status $ac_status" >&5
12106 echo "$as_me: failed program was:" >&5
12107 cat conftest.$ac_ext >&5
12108 ac_cv_header_stdc=no
12110 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12114 echo "$as_me:12114: result: $ac_cv_header_stdc" >&5
12115 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12116 if test $ac_cv_header_stdc = yes; then
12118 cat >>confdefs.h <<\EOF
12119 #define STDC_HEADERS 1
12124 ac_header_dirent=no
12125 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12126 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12127 echo "$as_me:12127: checking for $ac_hdr that defines DIR" >&5
12128 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
12129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 cat >conftest.$ac_ext <<_ACEOF
12133 #line 12133 "configure"
12134 #include "confdefs.h"
12135 #include <sys/types.h>
12147 rm -f conftest.$ac_objext
12148 if { (eval echo "$as_me:12148: \"$ac_compile\"") >&5
12149 (eval $ac_compile) 2>&5
12151 echo "$as_me:12151: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try='test -s conftest.$ac_objext'
12154 { (eval echo "$as_me:12154: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12157 echo "$as_me:12157: \$? = $ac_status" >&5
12158 (exit $ac_status); }; }; then
12159 eval "$as_ac_Header=yes"
12161 echo "$as_me: failed program was:" >&5
12162 cat conftest.$ac_ext >&5
12163 eval "$as_ac_Header=no"
12165 rm -f conftest.$ac_objext conftest.$ac_ext
12167 echo "$as_me:12167: result: `eval echo '${'$as_ac_Header'}'`" >&5
12168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12170 cat >>confdefs.h <<EOF
12171 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12174 ac_header_dirent=$ac_hdr; break
12178 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12179 if test $ac_header_dirent = dirent.h; then
12180 echo "$as_me:12180: checking for opendir in -ldir" >&5
12181 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
12182 if test "${ac_cv_lib_dir_opendir+set}" = set; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12185 ac_check_lib_save_LIBS=$LIBS
12187 cat >conftest.$ac_ext <<_ACEOF
12188 #line 12188 "configure"
12189 #include "confdefs.h"
12191 /* Override any gcc2 internal prototype to avoid an error. */
12195 /* We use char because int might match the return type of a gcc2
12196 builtin and then its argument prototype would still apply. */
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (eval echo "$as_me:12207: \"$ac_link\"") >&5
12208 (eval $ac_link) 2>&5
12210 echo "$as_me:12210: \$? = $ac_status" >&5
12211 (exit $ac_status); } &&
12212 { ac_try='test -s conftest$ac_exeext'
12213 { (eval echo "$as_me:12213: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12216 echo "$as_me:12216: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
12218 ac_cv_lib_dir_opendir=yes
12220 echo "$as_me: failed program was:" >&5
12221 cat conftest.$ac_ext >&5
12222 ac_cv_lib_dir_opendir=no
12224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12225 LIBS=$ac_check_lib_save_LIBS
12227 echo "$as_me:12227: result: $ac_cv_lib_dir_opendir" >&5
12228 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
12229 if test $ac_cv_lib_dir_opendir = yes; then
12234 echo "$as_me:12234: checking for opendir in -lx" >&5
12235 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
12236 if test "${ac_cv_lib_x_opendir+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 ac_check_lib_save_LIBS=$LIBS
12241 cat >conftest.$ac_ext <<_ACEOF
12242 #line 12242 "configure"
12243 #include "confdefs.h"
12245 /* Override any gcc2 internal prototype to avoid an error. */
12249 /* We use char because int might match the return type of a gcc2
12250 builtin and then its argument prototype would still apply. */
12260 rm -f conftest.$ac_objext conftest$ac_exeext
12261 if { (eval echo "$as_me:12261: \"$ac_link\"") >&5
12262 (eval $ac_link) 2>&5
12264 echo "$as_me:12264: \$? = $ac_status" >&5
12265 (exit $ac_status); } &&
12266 { ac_try='test -s conftest$ac_exeext'
12267 { (eval echo "$as_me:12267: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12270 echo "$as_me:12270: \$? = $ac_status" >&5
12271 (exit $ac_status); }; }; then
12272 ac_cv_lib_x_opendir=yes
12274 echo "$as_me: failed program was:" >&5
12275 cat conftest.$ac_ext >&5
12276 ac_cv_lib_x_opendir=no
12278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12279 LIBS=$ac_check_lib_save_LIBS
12281 echo "$as_me:12281: result: $ac_cv_lib_x_opendir" >&5
12282 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
12283 if test $ac_cv_lib_x_opendir = yes; then
12289 echo "$as_me:12289: checking whether time.h and sys/time.h may both be included" >&5
12290 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12291 if test "${ac_cv_header_time+set}" = set; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12294 cat >conftest.$ac_ext <<_ACEOF
12295 #line 12295 "configure"
12296 #include "confdefs.h"
12297 #include <sys/types.h>
12298 #include <sys/time.h>
12304 if ((struct tm *) 0)
12310 rm -f conftest.$ac_objext
12311 if { (eval echo "$as_me:12311: \"$ac_compile\"") >&5
12312 (eval $ac_compile) 2>&5
12314 echo "$as_me:12314: \$? = $ac_status" >&5
12315 (exit $ac_status); } &&
12316 { ac_try='test -s conftest.$ac_objext'
12317 { (eval echo "$as_me:12317: \"$ac_try\"") >&5
12318 (eval $ac_try) 2>&5
12320 echo "$as_me:12320: \$? = $ac_status" >&5
12321 (exit $ac_status); }; }; then
12322 ac_cv_header_time=yes
12324 echo "$as_me: failed program was:" >&5
12325 cat conftest.$ac_ext >&5
12326 ac_cv_header_time=no
12328 rm -f conftest.$ac_objext conftest.$ac_ext
12330 echo "$as_me:12330: result: $ac_cv_header_time" >&5
12331 echo "${ECHO_T}$ac_cv_header_time" >&6
12332 if test $ac_cv_header_time = yes; then
12334 cat >>confdefs.h <<\EOF
12335 #define TIME_WITH_SYS_TIME 1
12340 echo "$as_me:12340: checking for regular-expression headers" >&5
12341 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
12342 if test "${cf_cv_regex+set}" = set; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 cat >conftest.$ac_ext <<_ACEOF
12347 #line 12347 "configure"
12348 #include "confdefs.h"
12349 #include <sys/types.h>
12356 int x = regcomp(p, "", 0);
12357 int y = regexec(p, "", 0, 0, 0);
12364 rm -f conftest.$ac_objext conftest$ac_exeext
12365 if { (eval echo "$as_me:12365: \"$ac_link\"") >&5
12366 (eval $ac_link) 2>&5
12368 echo "$as_me:12368: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
12370 { ac_try='test -s conftest$ac_exeext'
12371 { (eval echo "$as_me:12371: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12374 echo "$as_me:12374: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 cf_cv_regex="regex.h"
12378 echo "$as_me: failed program was:" >&5
12379 cat conftest.$ac_ext >&5
12381 cat >conftest.$ac_ext <<_ACEOF
12382 #line 12382 "configure"
12383 #include "confdefs.h"
12384 #include <regexp.h>
12389 char *p = compile("", "", "", 0);
12390 int x = step("", "");
12396 rm -f conftest.$ac_objext conftest$ac_exeext
12397 if { (eval echo "$as_me:12397: \"$ac_link\"") >&5
12398 (eval $ac_link) 2>&5
12400 echo "$as_me:12400: \$? = $ac_status" >&5
12401 (exit $ac_status); } &&
12402 { ac_try='test -s conftest$ac_exeext'
12403 { (eval echo "$as_me:12403: \"$ac_try\"") >&5
12404 (eval $ac_try) 2>&5
12406 echo "$as_me:12406: \$? = $ac_status" >&5
12407 (exit $ac_status); }; }; then
12408 cf_cv_regex="regexp.h"
12410 echo "$as_me: failed program was:" >&5
12411 cat conftest.$ac_ext >&5
12413 cf_save_LIBS="$LIBS"
12415 cat >conftest.$ac_ext <<_ACEOF
12416 #line 12416 "configure"
12417 #include "confdefs.h"
12418 #include <regexpr.h>
12423 char *p = compile("", "", "");
12424 int x = step("", "");
12430 rm -f conftest.$ac_objext conftest$ac_exeext
12431 if { (eval echo "$as_me:12431: \"$ac_link\"") >&5
12432 (eval $ac_link) 2>&5
12434 echo "$as_me:12434: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -s conftest$ac_exeext'
12437 { (eval echo "$as_me:12437: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12440 echo "$as_me:12440: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 cf_cv_regex="regexpr.h"
12444 echo "$as_me: failed program was:" >&5
12445 cat conftest.$ac_ext >&5
12446 LIBS="$cf_save_LIBS"
12448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12456 echo "$as_me:12456: result: $cf_cv_regex" >&5
12457 echo "${ECHO_T}$cf_cv_regex" >&6
12458 case $cf_cv_regex in
12459 regex.h) cat >>confdefs.h <<\EOF
12460 #define HAVE_REGEX_H_FUNCS 1
12463 regexp.h) cat >>confdefs.h <<\EOF
12464 #define HAVE_REGEXP_H_FUNCS 1
12467 regexpr.h) cat >>confdefs.h <<\EOF
12468 #define HAVE_REGEXPR_H_FUNCS 1
12491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12492 echo "$as_me:12492: checking for $ac_header" >&5
12493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 cat >conftest.$ac_ext <<_ACEOF
12498 #line 12498 "configure"
12499 #include "confdefs.h"
12500 #include <$ac_header>
12502 if { (eval echo "$as_me:12502: \"$ac_cpp conftest.$ac_ext\"") >&5
12503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12505 egrep -v '^ *\+' conftest.er1 >conftest.err
12507 cat conftest.err >&5
12508 echo "$as_me:12508: \$? = $ac_status" >&5
12509 (exit $ac_status); } >/dev/null; then
12510 if test -s conftest.err; then
12511 ac_cpp_err=$ac_c_preproc_warn_flag
12518 if test -z "$ac_cpp_err"; then
12519 eval "$as_ac_Header=yes"
12521 echo "$as_me: failed program was:" >&5
12522 cat conftest.$ac_ext >&5
12523 eval "$as_ac_Header=no"
12525 rm -f conftest.err conftest.$ac_ext
12527 echo "$as_me:12527: result: `eval echo '${'$as_ac_Header'}'`" >&5
12528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12530 cat >>confdefs.h <<EOF
12531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12537 # check for ISC (this may also define _POSIX_SOURCE)
12538 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
12539 if test "$ISC" = yes ; then
12541 echo "$as_me:12541: checking for main in -lcposix" >&5
12542 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
12543 if test "${ac_cv_lib_cposix_main+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12546 ac_check_lib_save_LIBS=$LIBS
12547 LIBS="-lcposix $LIBS"
12548 cat >conftest.$ac_ext <<_ACEOF
12549 #line 12549 "configure"
12550 #include "confdefs.h"
12560 rm -f conftest.$ac_objext conftest$ac_exeext
12561 if { (eval echo "$as_me:12561: \"$ac_link\"") >&5
12562 (eval $ac_link) 2>&5
12564 echo "$as_me:12564: \$? = $ac_status" >&5
12565 (exit $ac_status); } &&
12566 { ac_try='test -s conftest$ac_exeext'
12567 { (eval echo "$as_me:12567: \"$ac_try\"") >&5
12568 (eval $ac_try) 2>&5
12570 echo "$as_me:12570: \$? = $ac_status" >&5
12571 (exit $ac_status); }; }; then
12572 ac_cv_lib_cposix_main=yes
12574 echo "$as_me: failed program was:" >&5
12575 cat conftest.$ac_ext >&5
12576 ac_cv_lib_cposix_main=no
12578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12579 LIBS=$ac_check_lib_save_LIBS
12581 echo "$as_me:12581: result: $ac_cv_lib_cposix_main" >&5
12582 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
12583 if test $ac_cv_lib_cposix_main = yes; then
12584 cat >>confdefs.h <<EOF
12585 #define HAVE_LIBCPOSIX 1
12588 LIBS="-lcposix $LIBS"
12592 echo "$as_me:12592: checking for bzero in -linet" >&5
12593 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
12594 if test "${ac_cv_lib_inet_bzero+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 ac_check_lib_save_LIBS=$LIBS
12598 LIBS="-linet $LIBS"
12599 cat >conftest.$ac_ext <<_ACEOF
12600 #line 12600 "configure"
12601 #include "confdefs.h"
12603 /* Override any gcc2 internal prototype to avoid an error. */
12607 /* We use char because int might match the return type of a gcc2
12608 builtin and then its argument prototype would still apply. */
12618 rm -f conftest.$ac_objext conftest$ac_exeext
12619 if { (eval echo "$as_me:12619: \"$ac_link\"") >&5
12620 (eval $ac_link) 2>&5
12622 echo "$as_me:12622: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
12624 { ac_try='test -s conftest$ac_exeext'
12625 { (eval echo "$as_me:12625: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12628 echo "$as_me:12628: \$? = $ac_status" >&5
12629 (exit $ac_status); }; }; then
12630 ac_cv_lib_inet_bzero=yes
12632 echo "$as_me: failed program was:" >&5
12633 cat conftest.$ac_ext >&5
12634 ac_cv_lib_inet_bzero=no
12636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12637 LIBS=$ac_check_lib_save_LIBS
12639 echo "$as_me:12639: result: $ac_cv_lib_inet_bzero" >&5
12640 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
12641 if test $ac_cv_lib_inet_bzero = yes; then
12642 LIBS="$LIBS -linet"
12646 echo "$as_me:12646: checking if sys/time.h works with sys/select.h" >&5
12647 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
12648 if test "${cf_cv_sys_time_select+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12652 cat >conftest.$ac_ext <<_ACEOF
12653 #line 12653 "configure"
12654 #include "confdefs.h"
12656 #include <sys/types.h>
12657 #ifdef HAVE_SYS_TIME_H
12658 #include <sys/time.h>
12660 #ifdef HAVE_SYS_SELECT_H
12661 #include <sys/select.h>
12672 rm -f conftest.$ac_objext
12673 if { (eval echo "$as_me:12673: \"$ac_compile\"") >&5
12674 (eval $ac_compile) 2>&5
12676 echo "$as_me:12676: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try='test -s conftest.$ac_objext'
12679 { (eval echo "$as_me:12679: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12682 echo "$as_me:12682: \$? = $ac_status" >&5
12683 (exit $ac_status); }; }; then
12684 cf_cv_sys_time_select=yes
12686 echo "$as_me: failed program was:" >&5
12687 cat conftest.$ac_ext >&5
12688 cf_cv_sys_time_select=no
12690 rm -f conftest.$ac_objext conftest.$ac_ext
12694 echo "$as_me:12694: result: $cf_cv_sys_time_select" >&5
12695 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
12696 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
12697 #define HAVE_SYS_TIME_SELECT 1
12700 ### checks for compiler characteristics
12702 ac_cpp='$CPP $CPPFLAGS'
12703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12706 ac_main_return=return
12708 echo "$as_me:12708: checking for $CC option to accept ANSI C" >&5
12709 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12710 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 ac_cv_prog_cc_stdc=no
12715 cat >conftest.$ac_ext <<_ACEOF
12716 #line 12716 "configure"
12717 #include "confdefs.h"
12718 #include <stdarg.h>
12720 #include <sys/types.h>
12721 #include <sys/stat.h>
12722 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12723 struct buf { int x; };
12724 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12725 static char *e (p, i)
12731 static char *f (char * (*g) (char **, int), char **p, ...)
12736 s = g (p, va_arg (v,int));
12740 int test (int i, double x);
12741 struct s1 {int (*f) (int a);};
12742 struct s2 {int (*f) (double a);};
12743 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12749 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12754 # Don't try gcc -ansi; that turns off useful extensions and
12755 # breaks some systems' header files.
12756 # AIX -qlanglvl=ansi
12757 # Ultrix and OSF/1 -std1
12758 # HP-UX 10.20 and later -Ae
12759 # HP-UX older versions -Aa -D_HPUX_SOURCE
12760 # SVR4 -Xc -D__EXTENSIONS__
12761 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12763 CC="$ac_save_CC $ac_arg"
12764 rm -f conftest.$ac_objext
12765 if { (eval echo "$as_me:12765: \"$ac_compile\"") >&5
12766 (eval $ac_compile) 2>&5
12768 echo "$as_me:12768: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
12770 { ac_try='test -s conftest.$ac_objext'
12771 { (eval echo "$as_me:12771: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12774 echo "$as_me:12774: \$? = $ac_status" >&5
12775 (exit $ac_status); }; }; then
12776 ac_cv_prog_cc_stdc=$ac_arg
12779 echo "$as_me: failed program was:" >&5
12780 cat conftest.$ac_ext >&5
12782 rm -f conftest.$ac_objext
12784 rm -f conftest.$ac_ext conftest.$ac_objext
12789 case "x$ac_cv_prog_cc_stdc" in
12791 echo "$as_me:12791: result: none needed" >&5
12792 echo "${ECHO_T}none needed" >&6 ;;
12794 echo "$as_me:12794: result: $ac_cv_prog_cc_stdc" >&5
12795 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12796 CC="$CC $ac_cv_prog_cc_stdc" ;;
12799 echo "$as_me:12799: checking for an ANSI C-conforming const" >&5
12800 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12801 if test "${ac_cv_c_const+set}" = set; then
12802 echo $ECHO_N "(cached) $ECHO_C" >&6
12804 cat >conftest.$ac_ext <<_ACEOF
12805 #line 12805 "configure"
12806 #include "confdefs.h"
12811 /* FIXME: Include the comments suggested by Paul. */
12812 #ifndef __cplusplus
12813 /* Ultrix mips cc rejects this. */
12814 typedef int charset[2];
12816 /* SunOS 4.1.1 cc rejects this. */
12817 char const *const *ccp;
12819 /* NEC SVR4.0.2 mips cc rejects this. */
12820 struct point {int x, y;};
12821 static struct point const zero = {0,0};
12822 /* AIX XL C 1.02.0.0 rejects this.
12823 It does not let you subtract one const X* pointer from another in
12824 an arm of an if-expression whose if-part is not a constant
12826 const char *g = "string";
12827 ccp = &g + (g ? g-g : 0);
12828 /* HPUX 7.0 cc rejects these. */
12831 ccp = (char const *const *) p;
12832 { /* SCO 3.2v4 cc rejects this. */
12834 char const *s = 0 ? (char *) 0 : (char const *) 0;
12838 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12839 int x[] = {25, 17};
12840 const int *foo = &x[0];
12843 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12844 typedef const int *iptr;
12848 { /* AIX XL C 1.02.0.0 rejects this saying
12849 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12850 struct s { int j; const int *ap[3]; };
12851 struct s *b; b->j = 5;
12853 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12854 const int foo = 10;
12862 rm -f conftest.$ac_objext
12863 if { (eval echo "$as_me:12863: \"$ac_compile\"") >&5
12864 (eval $ac_compile) 2>&5
12866 echo "$as_me:12866: \$? = $ac_status" >&5
12867 (exit $ac_status); } &&
12868 { ac_try='test -s conftest.$ac_objext'
12869 { (eval echo "$as_me:12869: \"$ac_try\"") >&5
12870 (eval $ac_try) 2>&5
12872 echo "$as_me:12872: \$? = $ac_status" >&5
12873 (exit $ac_status); }; }; then
12876 echo "$as_me: failed program was:" >&5
12877 cat conftest.$ac_ext >&5
12880 rm -f conftest.$ac_objext conftest.$ac_ext
12882 echo "$as_me:12882: result: $ac_cv_c_const" >&5
12883 echo "${ECHO_T}$ac_cv_c_const" >&6
12884 if test $ac_cv_c_const = no; then
12886 cat >>confdefs.h <<\EOF
12892 echo "$as_me:12892: checking for inline" >&5
12893 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12894 if test "${ac_cv_c_inline+set}" = set; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 for ac_kw in inline __inline__ __inline; do
12899 cat >conftest.$ac_ext <<_ACEOF
12900 #line 12900 "configure"
12901 #include "confdefs.h"
12902 #ifndef __cplusplus
12903 static $ac_kw int static_foo () {return 0; }
12904 $ac_kw int foo () {return 0; }
12908 rm -f conftest.$ac_objext
12909 if { (eval echo "$as_me:12909: \"$ac_compile\"") >&5
12910 (eval $ac_compile) 2>&5
12912 echo "$as_me:12912: \$? = $ac_status" >&5
12913 (exit $ac_status); } &&
12914 { ac_try='test -s conftest.$ac_objext'
12915 { (eval echo "$as_me:12915: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12918 echo "$as_me:12918: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
12920 ac_cv_c_inline=$ac_kw; break
12922 echo "$as_me: failed program was:" >&5
12923 cat conftest.$ac_ext >&5
12925 rm -f conftest.$ac_objext conftest.$ac_ext
12929 echo "$as_me:12929: result: $ac_cv_c_inline" >&5
12930 echo "${ECHO_T}$ac_cv_c_inline" >&6
12931 case $ac_cv_c_inline in
12934 cat >>confdefs.h <<\EOF
12938 *) cat >>confdefs.h <<EOF
12939 #define inline $ac_cv_c_inline
12945 if test "$ac_cv_c_inline" != no ; then
12946 NCURSES_INLINE=inline
12947 if test "$INTEL_COMPILER" = yes
12950 elif test "$GCC" = yes
12952 echo "$as_me:12952: checking if gcc supports options to tune inlining" >&5
12953 echo $ECHO_N "checking if gcc supports options to tune inlining... $ECHO_C" >&6
12954 if test "${cf_cv_gcc_inline+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12958 cf_save_CFLAGS=$CFLAGS
12959 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
12960 cat >conftest.$ac_ext <<_ACEOF
12961 #line 12961 "configure"
12962 #include "confdefs.h"
12963 inline int foo(void) { return 1; }
12967 ${cf_cv_main_return:-return} foo()
12972 rm -f conftest.$ac_objext
12973 if { (eval echo "$as_me:12973: \"$ac_compile\"") >&5
12974 (eval $ac_compile) 2>&5
12976 echo "$as_me:12976: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try='test -s conftest.$ac_objext'
12979 { (eval echo "$as_me:12979: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12982 echo "$as_me:12982: \$? = $ac_status" >&5
12983 (exit $ac_status); }; }; then
12984 cf_cv_gcc_inline=yes
12986 echo "$as_me: failed program was:" >&5
12987 cat conftest.$ac_ext >&5
12988 cf_cv_gcc_inline=no
12990 rm -f conftest.$ac_objext conftest.$ac_ext
12991 CFLAGS=$cf_save_CFLAGS
12994 echo "$as_me:12994: result: $cf_cv_gcc_inline" >&5
12995 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
12996 if test "$cf_cv_gcc_inline" = yes ; then
13001 cf_new_extra_cppflags=
13003 for cf_add_cflags in --param max-inline-insns-single=1200
13005 case $cf_fix_cppflags in
13007 case $cf_add_cflags in #(vi
13008 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13009 case $cf_add_cflags in
13011 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13013 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13014 && test -z "${cf_tst_cflags}" \
13015 && cf_fix_cppflags=yes
13017 if test $cf_fix_cppflags = yes ; then
13018 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13020 elif test "${cf_tst_cflags}" = "\"'" ; then
13021 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13026 case "$CPPFLAGS" in
13027 *$cf_add_cflags) #(vi
13030 case $cf_add_cflags in #(vi
13032 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13034 CPPFLAGS=`echo "$CPPFLAGS" | \
13035 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13036 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13040 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13045 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13050 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13052 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13054 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13055 && test -z "${cf_tst_cflags}" \
13056 && cf_fix_cppflags=no
13061 if test -n "$cf_new_cflags" ; then
13063 CFLAGS="$CFLAGS $cf_new_cflags"
13066 if test -n "$cf_new_cppflags" ; then
13068 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13071 if test -n "$cf_new_extra_cppflags" ; then
13073 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13080 echo "$as_me:13080: checking for signal global datatype" >&5
13081 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
13082 if test "${cf_cv_sig_atomic_t+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 "volatile sig_atomic_t" \
13091 cat >conftest.$ac_ext <<_ACEOF
13092 #line 13092 "configure"
13093 #include "confdefs.h"
13095 #include <sys/types.h>
13096 #include <signal.h>
13101 static void handler(int sig)
13108 signal(SIGINT, handler);
13114 rm -f conftest.$ac_objext
13115 if { (eval echo "$as_me:13115: \"$ac_compile\"") >&5
13116 (eval $ac_compile) 2>&5
13118 echo "$as_me:13118: \$? = $ac_status" >&5
13119 (exit $ac_status); } &&
13120 { ac_try='test -s conftest.$ac_objext'
13121 { (eval echo "$as_me:13121: \"$ac_try\"") >&5
13122 (eval $ac_try) 2>&5
13124 echo "$as_me:13124: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
13126 cf_cv_sig_atomic_t=$cf_type
13128 echo "$as_me: failed program was:" >&5
13129 cat conftest.$ac_ext >&5
13130 cf_cv_sig_atomic_t=no
13132 rm -f conftest.$ac_objext conftest.$ac_ext
13133 test "$cf_cv_sig_atomic_t" != no && break
13138 echo "$as_me:13138: result: $cf_cv_sig_atomic_t" >&5
13139 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
13140 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
13141 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
13144 if test $NCURSES_CHTYPE = auto ; then
13146 echo "$as_me:13146: checking for type of chtype" >&5
13147 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
13148 if test "${cf_cv_typeof_chtype+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 if test "$cross_compiling" = yes; then
13153 cf_cv_typeof_chtype=long
13155 cat >conftest.$ac_ext <<_ACEOF
13156 #line 13156 "configure"
13157 #include "confdefs.h"
13159 #define WANT_BITS 31
13163 FILE *fp = fopen("cf_test.out", "w");
13165 char *result = "long";
13166 if (sizeof(unsigned long) > sizeof(unsigned int)) {
13169 for (n = 0; n < WANT_BITS; n++) {
13172 if (y != 1 || x == 0) {
13178 * If x is nonzero, an int is big enough for the bits
13181 result = (x != 0) ? "int" : "long";
13186 ${cf_cv_main_return:-return}(0);
13190 rm -f conftest$ac_exeext
13191 if { (eval echo "$as_me:13191: \"$ac_link\"") >&5
13192 (eval $ac_link) 2>&5
13194 echo "$as_me:13194: \$? = $ac_status" >&5
13195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13196 { (eval echo "$as_me:13196: \"$ac_try\"") >&5
13197 (eval $ac_try) 2>&5
13199 echo "$as_me:13199: \$? = $ac_status" >&5
13200 (exit $ac_status); }; }; then
13201 cf_cv_typeof_chtype=`cat cf_test.out`
13203 echo "$as_me: program exited with status $ac_status" >&5
13204 echo "$as_me: failed program was:" >&5
13205 cat conftest.$ac_ext >&5
13206 cf_cv_typeof_chtype=long
13208 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13214 echo "$as_me:13214: result: $cf_cv_typeof_chtype" >&5
13215 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
13217 cat >>confdefs.h <<EOF
13218 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
13222 cf_cv_typeof_chtype=$NCURSES_CHTYPE
13224 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
13226 echo "$as_me:13226: checking if unsigned literals are legal" >&5
13227 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
13228 if test "${cf_cv_unsigned_literals+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 cat >conftest.$ac_ext <<_ACEOF
13233 #line 13233 "configure"
13234 #include "confdefs.h"
13239 long x = 1L + 1UL + 1U + 1
13244 rm -f conftest.$ac_objext
13245 if { (eval echo "$as_me:13245: \"$ac_compile\"") >&5
13246 (eval $ac_compile) 2>&5
13248 echo "$as_me:13248: \$? = $ac_status" >&5
13249 (exit $ac_status); } &&
13250 { ac_try='test -s conftest.$ac_objext'
13251 { (eval echo "$as_me:13251: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13254 echo "$as_me:13254: \$? = $ac_status" >&5
13255 (exit $ac_status); }; }; then
13256 cf_cv_unsigned_literals=yes
13258 echo "$as_me: failed program was:" >&5
13259 cat conftest.$ac_ext >&5
13260 cf_cv_unsigned_literals=no
13262 rm -f conftest.$ac_objext conftest.$ac_ext
13266 echo "$as_me:13266: result: $cf_cv_unsigned_literals" >&5
13267 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
13270 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
13271 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
13273 if test $NCURSES_MMASK_T = auto ; then
13274 cf_cv_typeof_mmask_t=long
13276 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
13278 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
13280 ### Checks for external-data
13282 echo "$as_me:13282: checking if external errno is declared" >&5
13283 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
13284 if test "${cf_cv_dcl_errno+set}" = set; then
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 cat >conftest.$ac_ext <<_ACEOF
13289 #line 13289 "configure"
13290 #include "confdefs.h"
13292 #ifdef HAVE_STDLIB_H
13293 #include <stdlib.h>
13296 #include <sys/types.h>
13301 int x = (int) errno
13306 rm -f conftest.$ac_objext
13307 if { (eval echo "$as_me:13307: \"$ac_compile\"") >&5
13308 (eval $ac_compile) 2>&5
13310 echo "$as_me:13310: \$? = $ac_status" >&5
13311 (exit $ac_status); } &&
13312 { ac_try='test -s conftest.$ac_objext'
13313 { (eval echo "$as_me:13313: \"$ac_try\"") >&5
13314 (eval $ac_try) 2>&5
13316 echo "$as_me:13316: \$? = $ac_status" >&5
13317 (exit $ac_status); }; }; then
13318 cf_cv_dcl_errno=yes
13320 echo "$as_me: failed program was:" >&5
13321 cat conftest.$ac_ext >&5
13324 rm -f conftest.$ac_objext conftest.$ac_ext
13327 echo "$as_me:13327: result: $cf_cv_dcl_errno" >&5
13328 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
13330 if test "$cf_cv_dcl_errno" = no ; then
13332 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13334 cat >>confdefs.h <<EOF
13335 #define $cf_result 1
13340 # It's possible (for near-UNIX clones) that the data doesn't exist
13342 echo "$as_me:13342: checking if external errno exists" >&5
13343 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
13344 if test "${cf_cv_have_errno+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13348 cat >conftest.$ac_ext <<_ACEOF
13349 #line 13349 "configure"
13350 #include "confdefs.h"
13363 rm -f conftest.$ac_objext conftest$ac_exeext
13364 if { (eval echo "$as_me:13364: \"$ac_link\"") >&5
13365 (eval $ac_link) 2>&5
13367 echo "$as_me:13367: \$? = $ac_status" >&5
13368 (exit $ac_status); } &&
13369 { ac_try='test -s conftest$ac_exeext'
13370 { (eval echo "$as_me:13370: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13373 echo "$as_me:13373: \$? = $ac_status" >&5
13374 (exit $ac_status); }; }; then
13375 cf_cv_have_errno=yes
13377 echo "$as_me: failed program was:" >&5
13378 cat conftest.$ac_ext >&5
13379 cf_cv_have_errno=no
13381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13384 echo "$as_me:13384: result: $cf_cv_have_errno" >&5
13385 echo "${ECHO_T}$cf_cv_have_errno" >&6
13387 if test "$cf_cv_have_errno" = yes ; then
13389 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13391 cat >>confdefs.h <<EOF
13392 #define $cf_result 1
13397 echo "$as_me:13397: checking if data-only library module links" >&5
13398 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
13399 if test "${cf_cv_link_dataonly+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 cat >conftest.$ac_ext <<EOF
13405 #line 13405 "configure"
13406 int testdata[3] = { 123, 456, 789 };
13408 if { (eval echo "$as_me:13408: \"$ac_compile\"") >&5
13409 (eval $ac_compile) 2>&5
13411 echo "$as_me:13411: \$? = $ac_status" >&5
13412 (exit $ac_status); } ; then
13413 mv conftest.o data.o && \
13414 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
13416 rm -f conftest.$ac_ext data.o
13417 cat >conftest.$ac_ext <<EOF
13418 #line 13418 "configure"
13422 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
13424 extern int testdata[3];
13425 return testdata[0] == 123
13426 && testdata[1] == 456
13427 && testdata[2] == 789;
13431 if { (eval echo "$as_me:13431: \"$ac_compile\"") >&5
13432 (eval $ac_compile) 2>&5
13434 echo "$as_me:13434: \$? = $ac_status" >&5
13435 (exit $ac_status); }; then
13436 mv conftest.o func.o && \
13437 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
13439 rm -f conftest.$ac_ext func.o
13440 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
13441 cf_saveLIBS="$LIBS"
13442 LIBS="conftest.a $LIBS"
13443 if test "$cross_compiling" = yes; then
13444 cf_cv_link_dataonly=unknown
13446 cat >conftest.$ac_ext <<_ACEOF
13447 #line 13447 "configure"
13448 #include "confdefs.h"
13452 extern int testfunc();
13453 ${cf_cv_main_return:-return} (!testfunc());
13457 rm -f conftest$ac_exeext
13458 if { (eval echo "$as_me:13458: \"$ac_link\"") >&5
13459 (eval $ac_link) 2>&5
13461 echo "$as_me:13461: \$? = $ac_status" >&5
13462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13463 { (eval echo "$as_me:13463: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13466 echo "$as_me:13466: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468 cf_cv_link_dataonly=yes
13470 echo "$as_me: program exited with status $ac_status" >&5
13471 echo "$as_me: failed program was:" >&5
13472 cat conftest.$ac_ext >&5
13473 cf_cv_link_dataonly=no
13475 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13477 LIBS="$cf_saveLIBS"
13481 echo "$as_me:13481: result: $cf_cv_link_dataonly" >&5
13482 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
13484 if test "$cf_cv_link_dataonly" = no ; then
13485 cat >>confdefs.h <<\EOF
13486 #define BROKEN_LINKER 1
13492 ### Checks for library functions.
13515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13516 echo "$as_me:13516: checking for $ac_func" >&5
13517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13518 if eval "test \"\${$as_ac_var+set}\" = set"; then
13519 echo $ECHO_N "(cached) $ECHO_C" >&6
13521 cat >conftest.$ac_ext <<_ACEOF
13522 #line 13522 "configure"
13523 #include "confdefs.h"
13524 /* System header to define __stub macros and hopefully few prototypes,
13525 which can conflict with char $ac_func (); below. */
13526 #include <assert.h>
13527 /* Override any gcc2 internal prototype to avoid an error. */
13531 /* We use char because int might match the return type of a gcc2
13532 builtin and then its argument prototype would still apply. */
13539 /* The GNU C library defines this for functions which it implements
13540 to always fail with ENOSYS. Some functions are actually named
13541 something starting with __ and the normal name is an alias. */
13542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13552 rm -f conftest.$ac_objext conftest$ac_exeext
13553 if { (eval echo "$as_me:13553: \"$ac_link\"") >&5
13554 (eval $ac_link) 2>&5
13556 echo "$as_me:13556: \$? = $ac_status" >&5
13557 (exit $ac_status); } &&
13558 { ac_try='test -s conftest$ac_exeext'
13559 { (eval echo "$as_me:13559: \"$ac_try\"") >&5
13560 (eval $ac_try) 2>&5
13562 echo "$as_me:13562: \$? = $ac_status" >&5
13563 (exit $ac_status); }; }; then
13564 eval "$as_ac_var=yes"
13566 echo "$as_me: failed program was:" >&5
13567 cat conftest.$ac_ext >&5
13568 eval "$as_ac_var=no"
13570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13572 echo "$as_me:13572: result: `eval echo '${'$as_ac_var'}'`" >&5
13573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13574 if test `eval echo '${'$as_ac_var'}'` = yes; then
13575 cat >>confdefs.h <<EOF
13576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13582 if test "$with_getcap" = "yes" ; then
13584 echo "$as_me:13584: checking for terminal-capability database functions" >&5
13585 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
13586 if test "${cf_cv_cgetent+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 cat >conftest.$ac_ext <<_ACEOF
13591 #line 13591 "configure"
13592 #include "confdefs.h"
13594 #include <stdlib.h>
13601 char *db_array = temp;
13602 cgetent(&buf, /* int *, */ &db_array, "vt100");
13603 cgetcap(buf, "tc", '=');
13604 cgetmatch(buf, "tc");
13610 rm -f conftest.$ac_objext conftest$ac_exeext
13611 if { (eval echo "$as_me:13611: \"$ac_link\"") >&5
13612 (eval $ac_link) 2>&5
13614 echo "$as_me:13614: \$? = $ac_status" >&5
13615 (exit $ac_status); } &&
13616 { ac_try='test -s conftest$ac_exeext'
13617 { (eval echo "$as_me:13617: \"$ac_try\"") >&5
13618 (eval $ac_try) 2>&5
13620 echo "$as_me:13620: \$? = $ac_status" >&5
13621 (exit $ac_status); }; }; then
13624 echo "$as_me: failed program was:" >&5
13625 cat conftest.$ac_ext >&5
13628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13632 echo "$as_me:13632: result: $cf_cv_cgetent" >&5
13633 echo "${ECHO_T}$cf_cv_cgetent" >&6
13634 test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
13635 #define HAVE_BSD_CGETENT 1
13640 echo "$as_me:13640: checking for isascii" >&5
13641 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
13642 if test "${cf_cv_have_isascii+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 cat >conftest.$ac_ext <<_ACEOF
13647 #line 13647 "configure"
13648 #include "confdefs.h"
13653 int x = isascii(' ')
13658 rm -f conftest.$ac_objext conftest$ac_exeext
13659 if { (eval echo "$as_me:13659: \"$ac_link\"") >&5
13660 (eval $ac_link) 2>&5
13662 echo "$as_me:13662: \$? = $ac_status" >&5
13663 (exit $ac_status); } &&
13664 { ac_try='test -s conftest$ac_exeext'
13665 { (eval echo "$as_me:13665: \"$ac_try\"") >&5
13666 (eval $ac_try) 2>&5
13668 echo "$as_me:13668: \$? = $ac_status" >&5
13669 (exit $ac_status); }; }; then
13670 cf_cv_have_isascii=yes
13672 echo "$as_me: failed program was:" >&5
13673 cat conftest.$ac_ext >&5
13674 cf_cv_have_isascii=no
13676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13679 echo "$as_me:13679: result: $cf_cv_have_isascii" >&5
13680 echo "${ECHO_T}$cf_cv_have_isascii" >&6
13681 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
13682 #define HAVE_ISASCII 1
13685 if test "$ac_cv_func_sigaction" = yes; then
13686 echo "$as_me:13686: checking whether sigaction needs _POSIX_SOURCE" >&5
13687 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
13688 cat >conftest.$ac_ext <<_ACEOF
13689 #line 13689 "configure"
13690 #include "confdefs.h"
13692 #include <sys/types.h>
13693 #include <signal.h>
13697 struct sigaction act
13702 rm -f conftest.$ac_objext
13703 if { (eval echo "$as_me:13703: \"$ac_compile\"") >&5
13704 (eval $ac_compile) 2>&5
13706 echo "$as_me:13706: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
13708 { ac_try='test -s conftest.$ac_objext'
13709 { (eval echo "$as_me:13709: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13712 echo "$as_me:13712: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
13716 echo "$as_me: failed program was:" >&5
13717 cat conftest.$ac_ext >&5
13719 cat >conftest.$ac_ext <<_ACEOF
13720 #line 13720 "configure"
13721 #include "confdefs.h"
13723 #define _POSIX_SOURCE
13724 #include <sys/types.h>
13725 #include <signal.h>
13729 struct sigaction act
13734 rm -f conftest.$ac_objext
13735 if { (eval echo "$as_me:13735: \"$ac_compile\"") >&5
13736 (eval $ac_compile) 2>&5
13738 echo "$as_me:13738: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
13740 { ac_try='test -s conftest.$ac_objext'
13741 { (eval echo "$as_me:13741: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13744 echo "$as_me:13744: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
13747 cat >>confdefs.h <<\EOF
13748 #define SVR4_ACTION 1
13752 echo "$as_me: failed program was:" >&5
13753 cat conftest.$ac_ext >&5
13756 rm -f conftest.$ac_objext conftest.$ac_ext
13758 rm -f conftest.$ac_objext conftest.$ac_ext
13759 echo "$as_me:13759: result: $sigact_bad" >&5
13760 echo "${ECHO_T}$sigact_bad" >&6
13763 echo "$as_me:13763: checking if nanosleep really works" >&5
13764 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
13765 if test "${cf_cv_func_nanosleep+set}" = set; then
13766 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 if test "$cross_compiling" = yes; then
13770 cf_cv_func_nanosleep=unknown
13772 cat >conftest.$ac_ext <<_ACEOF
13773 #line 13773 "configure"
13774 #include "confdefs.h"
13780 #ifdef HAVE_SYS_TIME_H
13781 #include <sys/time.h>
13785 struct timespec ts1, ts2;
13788 ts1.tv_nsec = 750000000;
13792 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
13793 ${cf_cv_main_return:-return}(code != 0);
13797 rm -f conftest$ac_exeext
13798 if { (eval echo "$as_me:13798: \"$ac_link\"") >&5
13799 (eval $ac_link) 2>&5
13801 echo "$as_me:13801: \$? = $ac_status" >&5
13802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13803 { (eval echo "$as_me:13803: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13806 echo "$as_me:13806: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 cf_cv_func_nanosleep=yes
13810 echo "$as_me: program exited with status $ac_status" >&5
13811 echo "$as_me: failed program was:" >&5
13812 cat conftest.$ac_ext >&5
13813 cf_cv_func_nanosleep=no
13815 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13818 echo "$as_me:13818: result: $cf_cv_func_nanosleep" >&5
13819 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
13821 test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
13822 #define HAVE_NANOSLEEP 1
13831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13832 echo "$as_me:13832: checking for $ac_header" >&5
13833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 cat >conftest.$ac_ext <<_ACEOF
13838 #line 13838 "configure"
13839 #include "confdefs.h"
13840 #include <$ac_header>
13842 if { (eval echo "$as_me:13842: \"$ac_cpp conftest.$ac_ext\"") >&5
13843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13845 egrep -v '^ *\+' conftest.er1 >conftest.err
13847 cat conftest.err >&5
13848 echo "$as_me:13848: \$? = $ac_status" >&5
13849 (exit $ac_status); } >/dev/null; then
13850 if test -s conftest.err; then
13851 ac_cpp_err=$ac_c_preproc_warn_flag
13858 if test -z "$ac_cpp_err"; then
13859 eval "$as_ac_Header=yes"
13861 echo "$as_me: failed program was:" >&5
13862 cat conftest.$ac_ext >&5
13863 eval "$as_ac_Header=no"
13865 rm -f conftest.err conftest.$ac_ext
13867 echo "$as_me:13867: result: `eval echo '${'$as_ac_Header'}'`" >&5
13868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13870 cat >>confdefs.h <<EOF
13871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13877 if test "$ISC" = yes ; then
13879 for ac_header in sys/termio.h
13881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13882 echo "$as_me:13882: checking for $ac_header" >&5
13883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 cat >conftest.$ac_ext <<_ACEOF
13888 #line 13888 "configure"
13889 #include "confdefs.h"
13890 #include <$ac_header>
13892 if { (eval echo "$as_me:13892: \"$ac_cpp conftest.$ac_ext\"") >&5
13893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13895 egrep -v '^ *\+' conftest.er1 >conftest.err
13897 cat conftest.err >&5
13898 echo "$as_me:13898: \$? = $ac_status" >&5
13899 (exit $ac_status); } >/dev/null; then
13900 if test -s conftest.err; then
13901 ac_cpp_err=$ac_c_preproc_warn_flag
13908 if test -z "$ac_cpp_err"; then
13909 eval "$as_ac_Header=yes"
13911 echo "$as_me: failed program was:" >&5
13912 cat conftest.$ac_ext >&5
13913 eval "$as_ac_Header=no"
13915 rm -f conftest.err conftest.$ac_ext
13917 echo "$as_me:13917: result: `eval echo '${'$as_ac_Header'}'`" >&5
13918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13920 cat >>confdefs.h <<EOF
13921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13928 if test "$ac_cv_header_termios_h" = yes ; then
13929 case "$CFLAGS $CPPFLAGS" in
13931 termios_bad=dunno ;;
13932 *) termios_bad=maybe ;;
13934 if test "$termios_bad" = maybe ; then
13935 echo "$as_me:13935: checking whether termios.h needs _POSIX_SOURCE" >&5
13936 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
13937 cat >conftest.$ac_ext <<_ACEOF
13938 #line 13938 "configure"
13939 #include "confdefs.h"
13940 #include <termios.h>
13944 struct termios foo; int x = foo.c_iflag
13949 rm -f conftest.$ac_objext
13950 if { (eval echo "$as_me:13950: \"$ac_compile\"") >&5
13951 (eval $ac_compile) 2>&5
13953 echo "$as_me:13953: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try='test -s conftest.$ac_objext'
13956 { (eval echo "$as_me:13956: \"$ac_try\"") >&5
13957 (eval $ac_try) 2>&5
13959 echo "$as_me:13959: \$? = $ac_status" >&5
13960 (exit $ac_status); }; }; then
13963 echo "$as_me: failed program was:" >&5
13964 cat conftest.$ac_ext >&5
13966 cat >conftest.$ac_ext <<_ACEOF
13967 #line 13967 "configure"
13968 #include "confdefs.h"
13970 #define _POSIX_SOURCE
13971 #include <termios.h>
13975 struct termios foo; int x = foo.c_iflag
13980 rm -f conftest.$ac_objext
13981 if { (eval echo "$as_me:13981: \"$ac_compile\"") >&5
13982 (eval $ac_compile) 2>&5
13984 echo "$as_me:13984: \$? = $ac_status" >&5
13985 (exit $ac_status); } &&
13986 { ac_try='test -s conftest.$ac_objext'
13987 { (eval echo "$as_me:13987: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13990 echo "$as_me:13990: \$? = $ac_status" >&5
13991 (exit $ac_status); }; }; then
13992 termios_bad=unknown
13994 echo "$as_me: failed program was:" >&5
13995 cat conftest.$ac_ext >&5
13996 termios_bad=yes cat >>confdefs.h <<\EOF
13997 #define SVR4_TERMIO 1
14001 rm -f conftest.$ac_objext conftest.$ac_ext
14004 rm -f conftest.$ac_objext conftest.$ac_ext
14005 echo "$as_me:14005: result: $termios_bad" >&5
14006 echo "${ECHO_T}$termios_bad" >&6
14010 echo "$as_me:14010: checking for tcgetattr" >&5
14011 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
14012 if test "${cf_cv_have_tcgetattr+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 cat >conftest.$ac_ext <<_ACEOF
14017 #line 14017 "configure"
14018 #include "confdefs.h"
14020 #include <sys/types.h>
14021 #ifdef HAVE_UNISTD_H
14022 #include <unistd.h>
14024 #ifdef HAVE_TERMIOS_H
14025 #include <termios.h>
14026 #define TTY struct termios
14028 #ifdef HAVE_TERMIO_H
14029 #include <termio.h>
14030 #define TTY struct termio
14039 tcgetattr(1, &foo);
14044 rm -f conftest.$ac_objext conftest$ac_exeext
14045 if { (eval echo "$as_me:14045: \"$ac_link\"") >&5
14046 (eval $ac_link) 2>&5
14048 echo "$as_me:14048: \$? = $ac_status" >&5
14049 (exit $ac_status); } &&
14050 { ac_try='test -s conftest$ac_exeext'
14051 { (eval echo "$as_me:14051: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14054 echo "$as_me:14054: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 cf_cv_have_tcgetattr=yes
14058 echo "$as_me: failed program was:" >&5
14059 cat conftest.$ac_ext >&5
14060 cf_cv_have_tcgetattr=no
14062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14064 echo "$as_me:14064: result: $cf_cv_have_tcgetattr" >&5
14065 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
14066 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
14067 #define HAVE_TCGETATTR 1
14070 echo "$as_me:14070: checking for vsscanf function or workaround" >&5
14071 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
14072 if test "${cf_cv_func_vsscanf+set}" = set; then
14073 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 cat >conftest.$ac_ext <<_ACEOF
14077 #line 14077 "configure"
14078 #include "confdefs.h"
14080 #include <stdarg.h>
14087 vsscanf("from", "%d", ap)
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (eval echo "$as_me:14093: \"$ac_link\"") >&5
14094 (eval $ac_link) 2>&5
14096 echo "$as_me:14096: \$? = $ac_status" >&5
14097 (exit $ac_status); } &&
14098 { ac_try='test -s conftest$ac_exeext'
14099 { (eval echo "$as_me:14099: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14102 echo "$as_me:14102: \$? = $ac_status" >&5
14103 (exit $ac_status); }; }; then
14104 cf_cv_func_vsscanf=vsscanf
14106 echo "$as_me: failed program was:" >&5
14107 cat conftest.$ac_ext >&5
14109 cat >conftest.$ac_ext <<_ACEOF
14110 #line 14110 "configure"
14111 #include "confdefs.h"
14113 #include <stdarg.h>
14120 char *str = "from";
14122 strbuf._flag = _IOREAD;
14123 strbuf._ptr = strbuf._base = (unsigned char *) str;
14124 strbuf._cnt = strlen(str);
14125 strbuf._file = _NFILE;
14126 return (vfscanf(&strbuf, "%d", ap))
14131 rm -f conftest.$ac_objext conftest$ac_exeext
14132 if { (eval echo "$as_me:14132: \"$ac_link\"") >&5
14133 (eval $ac_link) 2>&5
14135 echo "$as_me:14135: \$? = $ac_status" >&5
14136 (exit $ac_status); } &&
14137 { ac_try='test -s conftest$ac_exeext'
14138 { (eval echo "$as_me:14138: \"$ac_try\"") >&5
14139 (eval $ac_try) 2>&5
14141 echo "$as_me:14141: \$? = $ac_status" >&5
14142 (exit $ac_status); }; }; then
14143 cf_cv_func_vsscanf=vfscanf
14145 echo "$as_me: failed program was:" >&5
14146 cat conftest.$ac_ext >&5
14148 cat >conftest.$ac_ext <<_ACEOF
14149 #line 14149 "configure"
14150 #include "confdefs.h"
14152 #include <stdarg.h>
14159 char *str = "from";
14161 strbuf._flag = _IOREAD;
14162 strbuf._ptr = strbuf._base = (unsigned char *) str;
14163 strbuf._cnt = strlen(str);
14164 strbuf._file = _NFILE;
14165 return (_doscan(&strbuf, "%d", ap))
14170 rm -f conftest.$ac_objext conftest$ac_exeext
14171 if { (eval echo "$as_me:14171: \"$ac_link\"") >&5
14172 (eval $ac_link) 2>&5
14174 echo "$as_me:14174: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try='test -s conftest$ac_exeext'
14177 { (eval echo "$as_me:14177: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14180 echo "$as_me:14180: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 cf_cv_func_vsscanf=_doscan
14184 echo "$as_me: failed program was:" >&5
14185 cat conftest.$ac_ext >&5
14187 cf_cv_func_vsscanf=no
14189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14195 echo "$as_me:14195: result: $cf_cv_func_vsscanf" >&5
14196 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
14198 case $cf_cv_func_vsscanf in #(vi
14199 vsscanf) cat >>confdefs.h <<\EOF
14200 #define HAVE_VSSCANF 1
14203 vfscanf) cat >>confdefs.h <<\EOF
14204 #define HAVE_VFSCANF 1
14207 _doscan) cat >>confdefs.h <<\EOF
14208 #define HAVE__DOSCAN 1
14213 echo "$as_me:14213: checking for working mkstemp" >&5
14214 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
14215 if test "${cf_cv_func_mkstemp+set}" = set; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 if test "$cross_compiling" = yes; then
14221 echo "$as_me:14221: checking for mkstemp" >&5
14222 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
14223 if test "${ac_cv_func_mkstemp+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 cat >conftest.$ac_ext <<_ACEOF
14227 #line 14227 "configure"
14228 #include "confdefs.h"
14229 /* System header to define __stub macros and hopefully few prototypes,
14230 which can conflict with char mkstemp (); below. */
14231 #include <assert.h>
14232 /* Override any gcc2 internal prototype to avoid an error. */
14236 /* We use char because int might match the return type of a gcc2
14237 builtin and then its argument prototype would still apply. */
14244 /* The GNU C library defines this for functions which it implements
14245 to always fail with ENOSYS. Some functions are actually named
14246 something starting with __ and the normal name is an alias. */
14247 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
14257 rm -f conftest.$ac_objext conftest$ac_exeext
14258 if { (eval echo "$as_me:14258: \"$ac_link\"") >&5
14259 (eval $ac_link) 2>&5
14261 echo "$as_me:14261: \$? = $ac_status" >&5
14262 (exit $ac_status); } &&
14263 { ac_try='test -s conftest$ac_exeext'
14264 { (eval echo "$as_me:14264: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14267 echo "$as_me:14267: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14269 ac_cv_func_mkstemp=yes
14271 echo "$as_me: failed program was:" >&5
14272 cat conftest.$ac_ext >&5
14273 ac_cv_func_mkstemp=no
14275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14277 echo "$as_me:14277: result: $ac_cv_func_mkstemp" >&5
14278 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
14281 cat >conftest.$ac_ext <<_ACEOF
14282 #line 14282 "configure"
14283 #include "confdefs.h"
14285 #include <sys/types.h>
14286 #include <stdlib.h>
14288 #include <string.h>
14289 #include <sys/stat.h>
14292 char *tmpl = "conftestXXXXXX";
14300 for (n = 0; n < 2; ++n) {
14301 strcpy(name[n], tmpl);
14302 if ((fd = mkstemp(name[n])) >= 0) {
14303 if (!strcmp(name[n], tmpl)
14304 || stat(name[n], &sb) != 0
14305 || (sb.st_mode & S_IFMT) != S_IFREG
14306 || (sb.st_mode & 077) != 0) {
14313 && !strcmp(name[0], name[1]))
14315 ${cf_cv_main_return:-return}(result);
14319 rm -f conftest$ac_exeext
14320 if { (eval echo "$as_me:14320: \"$ac_link\"") >&5
14321 (eval $ac_link) 2>&5
14323 echo "$as_me:14323: \$? = $ac_status" >&5
14324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14325 { (eval echo "$as_me:14325: \"$ac_try\"") >&5
14326 (eval $ac_try) 2>&5
14328 echo "$as_me:14328: \$? = $ac_status" >&5
14329 (exit $ac_status); }; }; then
14330 cf_cv_func_mkstemp=yes
14333 echo "$as_me: program exited with status $ac_status" >&5
14334 echo "$as_me: failed program was:" >&5
14335 cat conftest.$ac_ext >&5
14336 cf_cv_func_mkstemp=no
14339 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14343 echo "$as_me:14343: result: $cf_cv_func_mkstemp" >&5
14344 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
14345 if test "$cf_cv_func_mkstemp" = yes ; then
14346 cat >>confdefs.h <<\EOF
14347 #define HAVE_MKSTEMP 1
14352 # setup for prototype of fallback for vsscanf()
14354 if test "$cf_cv_func_vsscanf" = vsscanf ; then
14360 if test "$cross_compiling" = yes ; then
14361 { echo "$as_me:14361: WARNING: cross compiling: assume setvbuf params not reversed" >&5
14362 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
14364 echo "$as_me:14364: checking whether setvbuf arguments are reversed" >&5
14365 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
14366 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14369 if test "$cross_compiling" = yes; then
14370 { { echo "$as_me:14370: error: cannot run test program while cross compiling" >&5
14371 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14372 { (exit 1); exit 1; }; }
14374 cat >conftest.$ac_ext <<_ACEOF
14375 #line 14375 "configure"
14376 #include "confdefs.h"
14378 /* If setvbuf has the reversed format, exit 0. */
14382 /* This call has the arguments reversed.
14383 A reversed system may check and see that the address of main
14384 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
14385 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
14386 $ac_main_return(1);
14387 putc('\r', stdout);
14388 $ac_main_return(0); /* Non-reversed systems segv here. */
14391 rm -f conftest$ac_exeext
14392 if { (eval echo "$as_me:14392: \"$ac_link\"") >&5
14393 (eval $ac_link) 2>&5
14395 echo "$as_me:14395: \$? = $ac_status" >&5
14396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14397 { (eval echo "$as_me:14397: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14400 echo "$as_me:14400: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 ac_cv_func_setvbuf_reversed=yes
14404 echo "$as_me: program exited with status $ac_status" >&5
14405 echo "$as_me: failed program was:" >&5
14406 cat conftest.$ac_ext >&5
14407 ac_cv_func_setvbuf_reversed=no
14409 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14411 rm -f core core.* *.core
14413 echo "$as_me:14413: result: $ac_cv_func_setvbuf_reversed" >&5
14414 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
14415 if test $ac_cv_func_setvbuf_reversed = yes; then
14417 cat >>confdefs.h <<\EOF
14418 #define SETVBUF_REVERSED 1
14424 echo "$as_me:14424: checking return type of signal handlers" >&5
14425 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
14426 if test "${ac_cv_type_signal+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 cat >conftest.$ac_ext <<_ACEOF
14430 #line 14430 "configure"
14431 #include "confdefs.h"
14432 #include <sys/types.h>
14433 #include <signal.h>
14438 extern "C" void (*signal (int, void (*)(int)))(int);
14440 void (*signal ()) ();
14451 rm -f conftest.$ac_objext
14452 if { (eval echo "$as_me:14452: \"$ac_compile\"") >&5
14453 (eval $ac_compile) 2>&5
14455 echo "$as_me:14455: \$? = $ac_status" >&5
14456 (exit $ac_status); } &&
14457 { ac_try='test -s conftest.$ac_objext'
14458 { (eval echo "$as_me:14458: \"$ac_try\"") >&5
14459 (eval $ac_try) 2>&5
14461 echo "$as_me:14461: \$? = $ac_status" >&5
14462 (exit $ac_status); }; }; then
14463 ac_cv_type_signal=void
14465 echo "$as_me: failed program was:" >&5
14466 cat conftest.$ac_ext >&5
14467 ac_cv_type_signal=int
14469 rm -f conftest.$ac_objext conftest.$ac_ext
14471 echo "$as_me:14471: result: $ac_cv_type_signal" >&5
14472 echo "${ECHO_T}$ac_cv_type_signal" >&6
14474 cat >>confdefs.h <<EOF
14475 #define RETSIGTYPE $ac_cv_type_signal
14478 echo "$as_me:14478: checking for type sigaction_t" >&5
14479 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
14480 if test "${cf_cv_type_sigaction+set}" = set; then
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 cat >conftest.$ac_ext <<_ACEOF
14485 #line 14485 "configure"
14486 #include "confdefs.h"
14488 #include <signal.h>
14497 rm -f conftest.$ac_objext
14498 if { (eval echo "$as_me:14498: \"$ac_compile\"") >&5
14499 (eval $ac_compile) 2>&5
14501 echo "$as_me:14501: \$? = $ac_status" >&5
14502 (exit $ac_status); } &&
14503 { ac_try='test -s conftest.$ac_objext'
14504 { (eval echo "$as_me:14504: \"$ac_try\"") >&5
14505 (eval $ac_try) 2>&5
14507 echo "$as_me:14507: \$? = $ac_status" >&5
14508 (exit $ac_status); }; }; then
14509 cf_cv_type_sigaction=yes
14511 echo "$as_me: failed program was:" >&5
14512 cat conftest.$ac_ext >&5
14513 cf_cv_type_sigaction=no
14515 rm -f conftest.$ac_objext conftest.$ac_ext
14518 echo "$as_me:14518: result: $cf_cv_type_sigaction" >&5
14519 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
14520 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
14521 #define HAVE_TYPE_SIGACTION 1
14524 echo "$as_me:14524: checking declaration of size-change" >&5
14525 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
14526 if test "${cf_cv_sizechange+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14530 cf_cv_sizechange=unknown
14531 cf_save_CPPFLAGS="$CPPFLAGS"
14533 for cf_opts in "" "NEED_PTEM_H"
14536 CPPFLAGS="$cf_save_CPPFLAGS"
14537 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
14538 cat >conftest.$ac_ext <<_ACEOF
14539 #line 14539 "configure"
14540 #include "confdefs.h"
14541 #include <sys/types.h>
14542 #ifdef HAVE_TERMIOS_H
14543 #include <termios.h>
14545 #ifdef HAVE_TERMIO_H
14546 #include <termio.h>
14550 /* This is a workaround for SCO: they neglected to define struct winsize in
14551 * termios.h -- it's only in termio.h and ptem.h
14553 #include <sys/stream.h>
14554 #include <sys/ptem.h>
14556 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
14557 #include <sys/ioctl.h>
14565 struct ttysize win; /* FIXME: what system is this? */
14566 int y = win.ts_lines;
14567 int x = win.ts_cols;
14570 struct winsize win;
14571 int y = win.ws_row;
14572 int x = win.ws_col;
14574 no TIOCGSIZE or TIOCGWINSZ
14575 #endif /* TIOCGWINSZ */
14576 #endif /* TIOCGSIZE */
14582 rm -f conftest.$ac_objext
14583 if { (eval echo "$as_me:14583: \"$ac_compile\"") >&5
14584 (eval $ac_compile) 2>&5
14586 echo "$as_me:14586: \$? = $ac_status" >&5
14587 (exit $ac_status); } &&
14588 { ac_try='test -s conftest.$ac_objext'
14589 { (eval echo "$as_me:14589: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14592 echo "$as_me:14592: \$? = $ac_status" >&5
14593 (exit $ac_status); }; }; then
14594 cf_cv_sizechange=yes
14596 echo "$as_me: failed program was:" >&5
14597 cat conftest.$ac_ext >&5
14598 cf_cv_sizechange=no
14600 rm -f conftest.$ac_objext conftest.$ac_ext
14602 CPPFLAGS="$cf_save_CPPFLAGS"
14603 if test "$cf_cv_sizechange" = yes ; then
14604 echo "size-change succeeded ($cf_opts)" >&5
14605 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
14611 echo "$as_me:14611: result: $cf_cv_sizechange" >&5
14612 echo "${ECHO_T}$cf_cv_sizechange" >&6
14613 if test "$cf_cv_sizechange" != no ; then
14614 cat >>confdefs.h <<\EOF
14615 #define HAVE_SIZECHANGE 1
14618 case $cf_cv_sizechange in #(vi
14620 cat >>confdefs.h <<EOF
14621 #define $cf_cv_sizechange 1
14628 echo "$as_me:14628: checking for memmove" >&5
14629 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
14630 if test "${ac_cv_func_memmove+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14633 cat >conftest.$ac_ext <<_ACEOF
14634 #line 14634 "configure"
14635 #include "confdefs.h"
14636 /* System header to define __stub macros and hopefully few prototypes,
14637 which can conflict with char memmove (); below. */
14638 #include <assert.h>
14639 /* Override any gcc2 internal prototype to avoid an error. */
14643 /* We use char because int might match the return type of a gcc2
14644 builtin and then its argument prototype would still apply. */
14651 /* The GNU C library defines this for functions which it implements
14652 to always fail with ENOSYS. Some functions are actually named
14653 something starting with __ and the normal name is an alias. */
14654 #if defined (__stub_memmove) || defined (__stub___memmove)
14664 rm -f conftest.$ac_objext conftest$ac_exeext
14665 if { (eval echo "$as_me:14665: \"$ac_link\"") >&5
14666 (eval $ac_link) 2>&5
14668 echo "$as_me:14668: \$? = $ac_status" >&5
14669 (exit $ac_status); } &&
14670 { ac_try='test -s conftest$ac_exeext'
14671 { (eval echo "$as_me:14671: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14674 echo "$as_me:14674: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
14676 ac_cv_func_memmove=yes
14678 echo "$as_me: failed program was:" >&5
14679 cat conftest.$ac_ext >&5
14680 ac_cv_func_memmove=no
14682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14684 echo "$as_me:14684: result: $ac_cv_func_memmove" >&5
14685 echo "${ECHO_T}$ac_cv_func_memmove" >&6
14686 if test $ac_cv_func_memmove = yes; then
14690 echo "$as_me:14690: checking for bcopy" >&5
14691 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
14692 if test "${ac_cv_func_bcopy+set}" = set; then
14693 echo $ECHO_N "(cached) $ECHO_C" >&6
14695 cat >conftest.$ac_ext <<_ACEOF
14696 #line 14696 "configure"
14697 #include "confdefs.h"
14698 /* System header to define __stub macros and hopefully few prototypes,
14699 which can conflict with char bcopy (); below. */
14700 #include <assert.h>
14701 /* Override any gcc2 internal prototype to avoid an error. */
14705 /* We use char because int might match the return type of a gcc2
14706 builtin and then its argument prototype would still apply. */
14713 /* The GNU C library defines this for functions which it implements
14714 to always fail with ENOSYS. Some functions are actually named
14715 something starting with __ and the normal name is an alias. */
14716 #if defined (__stub_bcopy) || defined (__stub___bcopy)
14726 rm -f conftest.$ac_objext conftest$ac_exeext
14727 if { (eval echo "$as_me:14727: \"$ac_link\"") >&5
14728 (eval $ac_link) 2>&5
14730 echo "$as_me:14730: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
14732 { ac_try='test -s conftest$ac_exeext'
14733 { (eval echo "$as_me:14733: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14736 echo "$as_me:14736: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 ac_cv_func_bcopy=yes
14740 echo "$as_me: failed program was:" >&5
14741 cat conftest.$ac_ext >&5
14742 ac_cv_func_bcopy=no
14744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14746 echo "$as_me:14746: result: $ac_cv_func_bcopy" >&5
14747 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
14748 if test $ac_cv_func_bcopy = yes; then
14750 echo "$as_me:14750: checking if bcopy does overlapping moves" >&5
14751 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
14752 if test "${cf_cv_good_bcopy+set}" = set; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 if test "$cross_compiling" = yes; then
14757 cf_cv_good_bcopy=unknown
14759 cat >conftest.$ac_ext <<_ACEOF
14760 #line 14760 "configure"
14761 #include "confdefs.h"
14764 static char data[] = "abcdefghijklmnopqrstuwwxyz";
14766 bcopy(data, temp, sizeof(data));
14767 bcopy(temp+10, temp, 15);
14768 bcopy(temp+5, temp+15, 10);
14769 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
14773 rm -f conftest$ac_exeext
14774 if { (eval echo "$as_me:14774: \"$ac_link\"") >&5
14775 (eval $ac_link) 2>&5
14777 echo "$as_me:14777: \$? = $ac_status" >&5
14778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14779 { (eval echo "$as_me:14779: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14782 echo "$as_me:14782: \$? = $ac_status" >&5
14783 (exit $ac_status); }; }; then
14784 cf_cv_good_bcopy=yes
14786 echo "$as_me: program exited with status $ac_status" >&5
14787 echo "$as_me: failed program was:" >&5
14788 cat conftest.$ac_ext >&5
14789 cf_cv_good_bcopy=no
14791 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14795 echo "$as_me:14795: result: $cf_cv_good_bcopy" >&5
14796 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
14799 cf_cv_good_bcopy=no
14802 if test "$cf_cv_good_bcopy" = yes ; then
14803 cat >>confdefs.h <<\EOF
14804 #define USE_OK_BCOPY 1
14808 cat >>confdefs.h <<\EOF
14809 #define USE_MY_MEMMOVE 1
14816 echo "$as_me:14816: checking if poll really works" >&5
14817 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
14818 if test "${cf_cv_working_poll+set}" = set; then
14819 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 if test "$cross_compiling" = yes; then
14823 cf_cv_working_poll=unknown
14825 cat >conftest.$ac_ext <<_ACEOF
14826 #line 14826 "configure"
14827 #include "confdefs.h"
14833 #include <sys/poll.h>
14836 struct pollfd myfds;
14840 myfds.events = POLLIN;
14842 ret = poll(&myfds, 1, 100);
14843 ${cf_cv_main_return:-return}(ret != 0);
14846 rm -f conftest$ac_exeext
14847 if { (eval echo "$as_me:14847: \"$ac_link\"") >&5
14848 (eval $ac_link) 2>&5
14850 echo "$as_me:14850: \$? = $ac_status" >&5
14851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14852 { (eval echo "$as_me:14852: \"$ac_try\"") >&5
14853 (eval $ac_try) 2>&5
14855 echo "$as_me:14855: \$? = $ac_status" >&5
14856 (exit $ac_status); }; }; then
14857 cf_cv_working_poll=yes
14859 echo "$as_me: program exited with status $ac_status" >&5
14860 echo "$as_me: failed program was:" >&5
14861 cat conftest.$ac_ext >&5
14862 cf_cv_working_poll=no
14864 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14867 echo "$as_me:14867: result: $cf_cv_working_poll" >&5
14868 echo "${ECHO_T}$cf_cv_working_poll" >&6
14869 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
14870 #define HAVE_WORKING_POLL 1
14873 # special check for test/ditto.c
14875 echo "$as_me:14875: checking for openpty in -lutil" >&5
14876 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
14877 if test "${ac_cv_lib_util_openpty+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 ac_check_lib_save_LIBS=$LIBS
14881 LIBS="-lutil $LIBS"
14882 cat >conftest.$ac_ext <<_ACEOF
14883 #line 14883 "configure"
14884 #include "confdefs.h"
14886 /* Override any gcc2 internal prototype to avoid an error. */
14890 /* We use char because int might match the return type of a gcc2
14891 builtin and then its argument prototype would still apply. */
14901 rm -f conftest.$ac_objext conftest$ac_exeext
14902 if { (eval echo "$as_me:14902: \"$ac_link\"") >&5
14903 (eval $ac_link) 2>&5
14905 echo "$as_me:14905: \$? = $ac_status" >&5
14906 (exit $ac_status); } &&
14907 { ac_try='test -s conftest$ac_exeext'
14908 { (eval echo "$as_me:14908: \"$ac_try\"") >&5
14909 (eval $ac_try) 2>&5
14911 echo "$as_me:14911: \$? = $ac_status" >&5
14912 (exit $ac_status); }; }; then
14913 ac_cv_lib_util_openpty=yes
14915 echo "$as_me: failed program was:" >&5
14916 cat conftest.$ac_ext >&5
14917 ac_cv_lib_util_openpty=no
14919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14920 LIBS=$ac_check_lib_save_LIBS
14922 echo "$as_me:14922: result: $ac_cv_lib_util_openpty" >&5
14923 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
14924 if test $ac_cv_lib_util_openpty = yes; then
14930 echo "$as_me:14930: checking for openpty header" >&5
14931 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
14932 if test "${cf_cv_func_openpty+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14936 cf_save_LIBS="$LIBS"
14937 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
14938 for cf_header in pty.h libutil.h util.h
14940 cat >conftest.$ac_ext <<_ACEOF
14941 #line 14941 "configure"
14942 #include "confdefs.h"
14944 #include <$cf_header>
14950 int x = openpty((int *)0, (int *)0, (char *)0,
14951 (struct termios *)0, (struct winsize *)0);
14957 rm -f conftest.$ac_objext conftest$ac_exeext
14958 if { (eval echo "$as_me:14958: \"$ac_link\"") >&5
14959 (eval $ac_link) 2>&5
14961 echo "$as_me:14961: \$? = $ac_status" >&5
14962 (exit $ac_status); } &&
14963 { ac_try='test -s conftest$ac_exeext'
14964 { (eval echo "$as_me:14964: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14967 echo "$as_me:14967: \$? = $ac_status" >&5
14968 (exit $ac_status); }; }; then
14970 cf_cv_func_openpty=$cf_header
14974 echo "$as_me: failed program was:" >&5
14975 cat conftest.$ac_ext >&5
14977 cf_cv_func_openpty=no
14980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14982 LIBS="$cf_save_LIBS"
14985 echo "$as_me:14985: result: $cf_cv_func_openpty" >&5
14986 echo "${ECHO_T}$cf_cv_func_openpty" >&6
14988 if test "$cf_cv_func_openpty" != no ; then
14989 cat >>confdefs.h <<EOF
14990 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
14993 cat >>confdefs.h <<\EOF
14994 #define USE_XTERM_PTY 1
14997 if test "$cf_cv_lib_util" = yes ; then
14998 TEST_LIBS="-lutil $TEST_LIBS"
15002 if test "$with_hashed_db" != no ; then
15003 cat >>confdefs.h <<\EOF
15004 #define USE_HASHED_DB 1
15007 case $with_hashed_db in #(vi
15011 if test -d "$with_hashed_db" ; then
15013 if test -n "$with_hashed_db/include" ; then
15014 for cf_add_incdir in $with_hashed_db/include
15016 while test $cf_add_incdir != /usr/include
15018 if test -d $cf_add_incdir
15021 if test -n "$CFLAGS$CPPFLAGS" ; then
15022 # a loop is needed to ensure we can add subdirs of existing dirs
15023 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
15024 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
15025 cf_have_incdir=yes; break
15030 if test "$cf_have_incdir" = no ; then
15031 if test "$cf_add_incdir" = /usr/local/include ; then
15032 if test "$GCC" = yes
15034 cf_save_CPPFLAGS=$CPPFLAGS
15035 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
15036 cat >conftest.$ac_ext <<_ACEOF
15037 #line 15037 "configure"
15038 #include "confdefs.h"
15048 rm -f conftest.$ac_objext
15049 if { (eval echo "$as_me:15049: \"$ac_compile\"") >&5
15050 (eval $ac_compile) 2>&5
15052 echo "$as_me:15052: \$? = $ac_status" >&5
15053 (exit $ac_status); } &&
15054 { ac_try='test -s conftest.$ac_objext'
15055 { (eval echo "$as_me:15055: \"$ac_try\"") >&5
15056 (eval $ac_try) 2>&5
15058 echo "$as_me:15058: \$? = $ac_status" >&5
15059 (exit $ac_status); }; }; then
15062 echo "$as_me: failed program was:" >&5
15063 cat conftest.$ac_ext >&5
15066 rm -f conftest.$ac_objext conftest.$ac_ext
15067 CPPFLAGS=$cf_save_CPPFLAGS
15072 if test "$cf_have_incdir" = no ; then
15073 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
15075 echo "${as_me-configure}:15075: testing adding $cf_add_incdir to include-path ..." 1>&5
15077 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
15079 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
15080 test "$cf_top_incdir" = "$cf_add_incdir" && break
15081 cf_add_incdir="$cf_top_incdir"
15090 if test -n "$with_hashed_db/lib" ; then
15091 for cf_add_libdir in $with_hashed_db/lib
15093 if test $cf_add_libdir = /usr/lib ; then
15095 elif test -d $cf_add_libdir
15098 if test -n "$LDFLAGS$LIBS" ; then
15099 # a loop is needed to ensure we can add subdirs of existing dirs
15100 for cf_test_libdir in $LDFLAGS $LIBS ; do
15101 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
15102 cf_have_libdir=yes; break
15106 if test "$cf_have_libdir" = no ; then
15107 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
15109 echo "${as_me-configure}:15109: testing adding $cf_add_libdir to library-path ..." 1>&5
15111 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
15120 echo "$as_me:15120: checking for db.h" >&5
15121 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
15122 if test "${ac_cv_header_db_h+set}" = set; then
15123 echo $ECHO_N "(cached) $ECHO_C" >&6
15125 cat >conftest.$ac_ext <<_ACEOF
15126 #line 15126 "configure"
15127 #include "confdefs.h"
15130 if { (eval echo "$as_me:15130: \"$ac_cpp conftest.$ac_ext\"") >&5
15131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15133 egrep -v '^ *\+' conftest.er1 >conftest.err
15135 cat conftest.err >&5
15136 echo "$as_me:15136: \$? = $ac_status" >&5
15137 (exit $ac_status); } >/dev/null; then
15138 if test -s conftest.err; then
15139 ac_cpp_err=$ac_c_preproc_warn_flag
15146 if test -z "$ac_cpp_err"; then
15147 ac_cv_header_db_h=yes
15149 echo "$as_me: failed program was:" >&5
15150 cat conftest.$ac_ext >&5
15151 ac_cv_header_db_h=no
15153 rm -f conftest.err conftest.$ac_ext
15155 echo "$as_me:15155: result: $ac_cv_header_db_h" >&5
15156 echo "${ECHO_T}$ac_cv_header_db_h" >&6
15157 if test $ac_cv_header_db_h = yes; then
15159 echo "$as_me:15159: checking for version of db" >&5
15160 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
15161 if test "${cf_cv_hashed_db_version+set}" = set; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15165 cf_cv_hashed_db_version=unknown
15167 for cf_db_version in 1 2 3 4 5
15170 echo "${as_me-configure}:15170: testing checking for db version $cf_db_version ..." 1>&5
15172 cat >conftest.$ac_ext <<_ACEOF
15173 #line 15173 "configure"
15174 #include "confdefs.h"
15176 $ac_includes_default
15179 #ifdef DB_VERSION_MAJOR
15180 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
15181 #if $cf_db_version == DB_VERSION_MAJOR
15187 #if $cf_db_version == 1
15188 /* ok: assuming this is DB 1.8.5 */
15202 rm -f conftest.$ac_objext
15203 if { (eval echo "$as_me:15203: \"$ac_compile\"") >&5
15204 (eval $ac_compile) 2>&5
15206 echo "$as_me:15206: \$? = $ac_status" >&5
15207 (exit $ac_status); } &&
15208 { ac_try='test -s conftest.$ac_objext'
15209 { (eval echo "$as_me:15209: \"$ac_try\"") >&5
15210 (eval $ac_try) 2>&5
15212 echo "$as_me:15212: \$? = $ac_status" >&5
15213 (exit $ac_status); }; }; then
15215 cf_cv_hashed_db_version=$cf_db_version
15219 echo "$as_me: failed program was:" >&5
15220 cat conftest.$ac_ext >&5
15222 rm -f conftest.$ac_objext conftest.$ac_ext
15226 echo "$as_me:15226: result: $cf_cv_hashed_db_version" >&5
15227 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
15229 if test "$cf_cv_hashed_db_version" = unknown ; then
15230 { { echo "$as_me:15230: error: Cannot determine version of db" >&5
15231 echo "$as_me: error: Cannot determine version of db" >&2;}
15232 { (exit 1); exit 1; }; }
15235 echo "$as_me:15235: checking for db libraries" >&5
15236 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
15237 if test "${cf_cv_hashed_db_libs+set}" = set; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15241 cf_cv_hashed_db_libs=unknown
15242 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
15244 cf_save_libs="$LIBS"
15245 if test -n "$cf_db_libs"; then
15246 LIBS="-l$cf_db_libs $LIBS"
15249 echo "${as_me-configure}:15249: testing checking for library "$cf_db_libs" ..." 1>&5
15251 cat >conftest.$ac_ext <<_ACEOF
15252 #line 15252 "configure"
15253 #include "confdefs.h"
15255 $ac_includes_default
15262 char *path = "/tmp/foo";
15263 #ifdef DB_VERSION_MAJOR
15264 #if DB_VERSION_MAJOR >= 4
15266 db_create(&result, NULL, 0);
15267 result->open(result,
15274 #elif DB_VERSION_MAJOR >= 3
15276 db_create(&result, NULL, 0);
15277 result->open(result,
15283 #elif DB_VERSION_MAJOR >= 2
15292 #endif /* DB_VERSION_MAJOR */
15294 DB *result = dbopen(path,
15300 ${cf_cv_main_return:-return}(result != 0)
15306 rm -f conftest.$ac_objext conftest$ac_exeext
15307 if { (eval echo "$as_me:15307: \"$ac_link\"") >&5
15308 (eval $ac_link) 2>&5
15310 echo "$as_me:15310: \$? = $ac_status" >&5
15311 (exit $ac_status); } &&
15312 { ac_try='test -s conftest$ac_exeext'
15313 { (eval echo "$as_me:15313: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15316 echo "$as_me:15316: \$? = $ac_status" >&5
15317 (exit $ac_status); }; }; then
15319 if test -n "$cf_db_libs" ; then
15320 cf_cv_hashed_db_libs=$cf_db_libs
15322 cf_cv_hashed_db_libs=default
15324 LIBS="$cf_save_libs"
15328 echo "$as_me: failed program was:" >&5
15329 cat conftest.$ac_ext >&5
15331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15332 LIBS="$cf_save_libs"
15336 echo "$as_me:15336: result: $cf_cv_hashed_db_libs" >&5
15337 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
15339 if test "$cf_cv_hashed_db_libs" = unknown ; then
15340 { { echo "$as_me:15340: error: Cannot determine library for db" >&5
15341 echo "$as_me: error: Cannot determine library for db" >&2;}
15342 { (exit 1); exit 1; }; }
15343 elif test "$cf_cv_hashed_db_libs" != default ; then
15344 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
15350 { { echo "$as_me:15350: error: Cannot find db.h" >&5
15351 echo "$as_me: error: Cannot find db.h" >&2;}
15352 { (exit 1); exit 1; }; }
15358 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
15359 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
15360 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
15363 # Just in case, check if the C compiler has a bool type.
15365 echo "$as_me:15365: checking if we should include stdbool.h" >&5
15366 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
15368 if test "${cf_cv_header_stdbool_h+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15372 cat >conftest.$ac_ext <<_ACEOF
15373 #line 15373 "configure"
15374 #include "confdefs.h"
15384 rm -f conftest.$ac_objext
15385 if { (eval echo "$as_me:15385: \"$ac_compile\"") >&5
15386 (eval $ac_compile) 2>&5
15388 echo "$as_me:15388: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -s conftest.$ac_objext'
15391 { (eval echo "$as_me:15391: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15394 echo "$as_me:15394: \$? = $ac_status" >&5
15395 (exit $ac_status); }; }; then
15396 cf_cv_header_stdbool_h=0
15398 echo "$as_me: failed program was:" >&5
15399 cat conftest.$ac_ext >&5
15400 cat >conftest.$ac_ext <<_ACEOF
15401 #line 15401 "configure"
15402 #include "confdefs.h"
15405 #include <stdbool.h>
15416 rm -f conftest.$ac_objext
15417 if { (eval echo "$as_me:15417: \"$ac_compile\"") >&5
15418 (eval $ac_compile) 2>&5
15420 echo "$as_me:15420: \$? = $ac_status" >&5
15421 (exit $ac_status); } &&
15422 { ac_try='test -s conftest.$ac_objext'
15423 { (eval echo "$as_me:15423: \"$ac_try\"") >&5
15424 (eval $ac_try) 2>&5
15426 echo "$as_me:15426: \$? = $ac_status" >&5
15427 (exit $ac_status); }; }; then
15428 cf_cv_header_stdbool_h=1
15430 echo "$as_me: failed program was:" >&5
15431 cat conftest.$ac_ext >&5
15432 cf_cv_header_stdbool_h=0
15434 rm -f conftest.$ac_objext conftest.$ac_ext
15436 rm -f conftest.$ac_objext conftest.$ac_ext
15439 if test "$cf_cv_header_stdbool_h" = 1
15440 then echo "$as_me:15440: result: yes" >&5
15441 echo "${ECHO_T}yes" >&6
15442 else echo "$as_me:15442: result: no" >&5
15443 echo "${ECHO_T}no" >&6
15446 echo "$as_me:15446: checking for builtin bool type" >&5
15447 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
15449 if test "${cf_cv_cc_bool_type+set}" = set; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15453 cat >conftest.$ac_ext <<_ACEOF
15454 #line 15454 "configure"
15455 #include "confdefs.h"
15458 #include <sys/types.h>
15468 rm -f conftest.$ac_objext
15469 if { (eval echo "$as_me:15469: \"$ac_compile\"") >&5
15470 (eval $ac_compile) 2>&5
15472 echo "$as_me:15472: \$? = $ac_status" >&5
15473 (exit $ac_status); } &&
15474 { ac_try='test -s conftest.$ac_objext'
15475 { (eval echo "$as_me:15475: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15478 echo "$as_me:15478: \$? = $ac_status" >&5
15479 (exit $ac_status); }; }; then
15480 cf_cv_cc_bool_type=1
15482 echo "$as_me: failed program was:" >&5
15483 cat conftest.$ac_ext >&5
15484 cf_cv_cc_bool_type=0
15486 rm -f conftest.$ac_objext conftest.$ac_ext
15490 if test "$cf_cv_cc_bool_type" = 1
15491 then echo "$as_me:15491: result: yes" >&5
15492 echo "${ECHO_T}yes" >&6
15493 else echo "$as_me:15493: result: no" >&5
15494 echo "${ECHO_T}no" >&6
15497 # Check for C++ compiler characteristics (and ensure that it's there!)
15498 if test -n "$CXX" ; then
15500 ac_cpp='$CXXCPP $CPPFLAGS'
15501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15504 ac_main_return=return
15506 if test -n "$GXX" ; then
15507 case $cf_cv_system_name in #(vi
15509 cf_stdcpp_libname=stdcpp
15512 cf_stdcpp_libname=stdc++
15515 echo "$as_me:15515: checking for library $cf_stdcpp_libname" >&5
15516 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
15517 if test "${cf_cv_libstdcpp+set}" = set; then
15518 echo $ECHO_N "(cached) $ECHO_C" >&6
15522 LIBS="-l$cf_stdcpp_libname $LIBS"
15523 cat >conftest.$ac_ext <<_ACEOF
15524 #line 15524 "configure"
15525 #include "confdefs.h"
15527 #include <strstream.h>
15533 strstreambuf foo(buf, sizeof(buf))
15539 rm -f conftest.$ac_objext conftest$ac_exeext
15540 if { (eval echo "$as_me:15540: \"$ac_link\"") >&5
15541 (eval $ac_link) 2>&5
15543 echo "$as_me:15543: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try='test -s conftest$ac_exeext'
15546 { (eval echo "$as_me:15546: \"$ac_try\"") >&5
15547 (eval $ac_try) 2>&5
15549 echo "$as_me:15549: \$? = $ac_status" >&5
15550 (exit $ac_status); }; }; then
15551 cf_cv_libstdcpp=yes
15553 echo "$as_me: failed program was:" >&5
15554 cat conftest.$ac_ext >&5
15557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15561 echo "$as_me:15561: result: $cf_cv_libstdcpp" >&5
15562 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
15563 test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
15566 echo "$as_me:15566: checking whether $CXX understands -c and -o together" >&5
15567 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
15568 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15572 cat > conftest.$ac_ext <<CF_EOF
15576 ${cf_cv_main_return:-return}(0);
15579 # We do the test twice because some compilers refuse to overwrite an
15580 # existing .o file with -o, though they will create one.
15581 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15582 if { (eval echo "$as_me:15582: \"$ac_try\"") >&5
15583 (eval $ac_try) 2>&5
15585 echo "$as_me:15585: \$? = $ac_status" >&5
15586 (exit $ac_status); } &&
15587 test -f conftest2.$ac_objext && { (eval echo "$as_me:15587: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15590 echo "$as_me:15590: \$? = $ac_status" >&5
15591 (exit $ac_status); };
15593 eval cf_cv_prog_CXX_c_o=yes
15595 eval cf_cv_prog_CXX_c_o=no
15600 if test $cf_cv_prog_CXX_c_o = yes; then
15601 echo "$as_me:15601: result: yes" >&5
15602 echo "${ECHO_T}yes" >&6
15604 echo "$as_me:15604: result: no" >&5
15605 echo "${ECHO_T}no" >&6
15608 case $GXX_VERSION in
15614 cf_cxx_library=unknown
15615 case $cf_cv_system_name in #(vi
15623 if test "$GXX" = yes; then
15624 echo "$as_me:15624: checking for lib$cf_gpp_libname" >&5
15625 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
15627 LIBS="-l$cf_gpp_libname $LIBS"
15628 cat >conftest.$ac_ext <<_ACEOF
15629 #line 15629 "configure"
15630 #include "confdefs.h"
15632 #include <$cf_gpp_libname/builtin.h>
15637 two_arg_error_handler_t foo2 = lib_error_handler
15642 rm -f conftest.$ac_objext conftest$ac_exeext
15643 if { (eval echo "$as_me:15643: \"$ac_link\"") >&5
15644 (eval $ac_link) 2>&5
15646 echo "$as_me:15646: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
15648 { ac_try='test -s conftest$ac_exeext'
15649 { (eval echo "$as_me:15649: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15652 echo "$as_me:15652: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15655 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
15656 if test "$cf_gpp_libname" = cpp ; then
15657 cat >>confdefs.h <<\EOF
15658 #define HAVE_GPP_BUILTIN_H 1
15662 cat >>confdefs.h <<\EOF
15663 #define HAVE_GXX_BUILTIN_H 1
15668 echo "$as_me: failed program was:" >&5
15669 cat conftest.$ac_ext >&5
15670 cat >conftest.$ac_ext <<_ACEOF
15671 #line 15671 "configure"
15672 #include "confdefs.h"
15674 #include <builtin.h>
15679 two_arg_error_handler_t foo2 = lib_error_handler
15684 rm -f conftest.$ac_objext conftest$ac_exeext
15685 if { (eval echo "$as_me:15685: \"$ac_link\"") >&5
15686 (eval $ac_link) 2>&5
15688 echo "$as_me:15688: \$? = $ac_status" >&5
15689 (exit $ac_status); } &&
15690 { ac_try='test -s conftest$ac_exeext'
15691 { (eval echo "$as_me:15691: \"$ac_try\"") >&5
15692 (eval $ac_try) 2>&5
15694 echo "$as_me:15694: \$? = $ac_status" >&5
15695 (exit $ac_status); }; }; then
15697 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
15698 cat >>confdefs.h <<\EOF
15699 #define HAVE_BUILTIN_H 1
15703 echo "$as_me: failed program was:" >&5
15704 cat conftest.$ac_ext >&5
15707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15711 echo "$as_me:15711: result: $cf_cxx_library" >&5
15712 echo "${ECHO_T}$cf_cxx_library" >&6
15722 ac_cpp='$CXXCPP $CPPFLAGS'
15723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15726 ac_main_return=return
15727 echo "$as_me:15727: checking how to run the C++ preprocessor" >&5
15728 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15729 if test -z "$CXXCPP"; then
15730 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15733 # Double quotes because CXXCPP needs to be expanded
15734 for CXXCPP in "$CXX -E" "/lib/cpp"
15736 ac_preproc_ok=false
15737 for ac_cxx_preproc_warn_flag in '' yes
15739 # Use a header file that comes with gcc, so configuring glibc
15740 # with a fresh cross-compiler works.
15741 # On the NeXT, cc -E runs the code through the compiler's parser,
15742 # not just through cpp. "Syntax error" is here to catch this case.
15743 cat >conftest.$ac_ext <<_ACEOF
15744 #line 15744 "configure"
15745 #include "confdefs.h"
15746 #include <assert.h>
15749 if { (eval echo "$as_me:15749: \"$ac_cpp conftest.$ac_ext\"") >&5
15750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15752 egrep -v '^ *\+' conftest.er1 >conftest.err
15754 cat conftest.err >&5
15755 echo "$as_me:15755: \$? = $ac_status" >&5
15756 (exit $ac_status); } >/dev/null; then
15757 if test -s conftest.err; then
15758 ac_cpp_err=$ac_cxx_preproc_warn_flag
15765 if test -z "$ac_cpp_err"; then
15768 echo "$as_me: failed program was:" >&5
15769 cat conftest.$ac_ext >&5
15770 # Broken: fails on valid input.
15773 rm -f conftest.err conftest.$ac_ext
15775 # OK, works on sane cases. Now check whether non-existent headers
15776 # can be detected and how.
15777 cat >conftest.$ac_ext <<_ACEOF
15778 #line 15778 "configure"
15779 #include "confdefs.h"
15780 #include <ac_nonexistent.h>
15782 if { (eval echo "$as_me:15782: \"$ac_cpp conftest.$ac_ext\"") >&5
15783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15785 egrep -v '^ *\+' conftest.er1 >conftest.err
15787 cat conftest.err >&5
15788 echo "$as_me:15788: \$? = $ac_status" >&5
15789 (exit $ac_status); } >/dev/null; then
15790 if test -s conftest.err; then
15791 ac_cpp_err=$ac_cxx_preproc_warn_flag
15798 if test -z "$ac_cpp_err"; then
15799 # Broken: success on invalid input.
15802 echo "$as_me: failed program was:" >&5
15803 cat conftest.$ac_ext >&5
15804 # Passes both tests.
15808 rm -f conftest.err conftest.$ac_ext
15811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15812 rm -f conftest.err conftest.$ac_ext
15813 if $ac_preproc_ok; then
15818 ac_cv_prog_CXXCPP=$CXXCPP
15821 CXXCPP=$ac_cv_prog_CXXCPP
15823 ac_cv_prog_CXXCPP=$CXXCPP
15825 echo "$as_me:15825: result: $CXXCPP" >&5
15826 echo "${ECHO_T}$CXXCPP" >&6
15827 ac_preproc_ok=false
15828 for ac_cxx_preproc_warn_flag in '' yes
15830 # Use a header file that comes with gcc, so configuring glibc
15831 # with a fresh cross-compiler works.
15832 # On the NeXT, cc -E runs the code through the compiler's parser,
15833 # not just through cpp. "Syntax error" is here to catch this case.
15834 cat >conftest.$ac_ext <<_ACEOF
15835 #line 15835 "configure"
15836 #include "confdefs.h"
15837 #include <assert.h>
15840 if { (eval echo "$as_me:15840: \"$ac_cpp conftest.$ac_ext\"") >&5
15841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15843 egrep -v '^ *\+' conftest.er1 >conftest.err
15845 cat conftest.err >&5
15846 echo "$as_me:15846: \$? = $ac_status" >&5
15847 (exit $ac_status); } >/dev/null; then
15848 if test -s conftest.err; then
15849 ac_cpp_err=$ac_cxx_preproc_warn_flag
15856 if test -z "$ac_cpp_err"; then
15859 echo "$as_me: failed program was:" >&5
15860 cat conftest.$ac_ext >&5
15861 # Broken: fails on valid input.
15864 rm -f conftest.err conftest.$ac_ext
15866 # OK, works on sane cases. Now check whether non-existent headers
15867 # can be detected and how.
15868 cat >conftest.$ac_ext <<_ACEOF
15869 #line 15869 "configure"
15870 #include "confdefs.h"
15871 #include <ac_nonexistent.h>
15873 if { (eval echo "$as_me:15873: \"$ac_cpp conftest.$ac_ext\"") >&5
15874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15876 egrep -v '^ *\+' conftest.er1 >conftest.err
15878 cat conftest.err >&5
15879 echo "$as_me:15879: \$? = $ac_status" >&5
15880 (exit $ac_status); } >/dev/null; then
15881 if test -s conftest.err; then
15882 ac_cpp_err=$ac_cxx_preproc_warn_flag
15889 if test -z "$ac_cpp_err"; then
15890 # Broken: success on invalid input.
15893 echo "$as_me: failed program was:" >&5
15894 cat conftest.$ac_ext >&5
15895 # Passes both tests.
15899 rm -f conftest.err conftest.$ac_ext
15902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15903 rm -f conftest.err conftest.$ac_ext
15904 if $ac_preproc_ok; then
15907 { { echo "$as_me:15907: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
15908 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
15909 { (exit 1); exit 1; }; }
15913 ac_cpp='$CXXCPP $CPPFLAGS'
15914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15917 ac_main_return=return
15919 for ac_header in iostream typeinfo
15921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15922 echo "$as_me:15922: checking for $ac_header" >&5
15923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15925 echo $ECHO_N "(cached) $ECHO_C" >&6
15927 cat >conftest.$ac_ext <<_ACEOF
15928 #line 15928 "configure"
15929 #include "confdefs.h"
15930 #include <$ac_header>
15932 if { (eval echo "$as_me:15932: \"$ac_cpp conftest.$ac_ext\"") >&5
15933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15935 egrep -v '^ *\+' conftest.er1 >conftest.err
15937 cat conftest.err >&5
15938 echo "$as_me:15938: \$? = $ac_status" >&5
15939 (exit $ac_status); } >/dev/null; then
15940 if test -s conftest.err; then
15941 ac_cpp_err=$ac_cxx_preproc_warn_flag
15948 if test -z "$ac_cpp_err"; then
15949 eval "$as_ac_Header=yes"
15951 echo "$as_me: failed program was:" >&5
15952 cat conftest.$ac_ext >&5
15953 eval "$as_ac_Header=no"
15955 rm -f conftest.err conftest.$ac_ext
15957 echo "$as_me:15957: result: `eval echo '${'$as_ac_Header'}'`" >&5
15958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15960 cat >>confdefs.h <<EOF
15961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15967 if test x"$ac_cv_header_iostream" = xyes ; then
15968 echo "$as_me:15968: checking if iostream uses std-namespace" >&5
15969 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
15970 cat >conftest.$ac_ext <<_ACEOF
15971 #line 15971 "configure"
15972 #include "confdefs.h"
15974 #include <iostream>
15981 cerr << "testing" << endl;
15987 rm -f conftest.$ac_objext
15988 if { (eval echo "$as_me:15988: \"$ac_compile\"") >&5
15989 (eval $ac_compile) 2>&5
15991 echo "$as_me:15991: \$? = $ac_status" >&5
15992 (exit $ac_status); } &&
15993 { ac_try='test -s conftest.$ac_objext'
15994 { (eval echo "$as_me:15994: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15997 echo "$as_me:15997: \$? = $ac_status" >&5
15998 (exit $ac_status); }; }; then
15999 cf_iostream_namespace=yes
16001 echo "$as_me: failed program was:" >&5
16002 cat conftest.$ac_ext >&5
16003 cf_iostream_namespace=no
16005 rm -f conftest.$ac_objext conftest.$ac_ext
16006 echo "$as_me:16006: result: $cf_iostream_namespace" >&5
16007 echo "${ECHO_T}$cf_iostream_namespace" >&6
16008 if test "$cf_iostream_namespace" = yes ; then
16009 cat >>confdefs.h <<\EOF
16010 #define IOSTREAM_NAMESPACE 1
16016 echo "$as_me:16016: checking if we should include stdbool.h" >&5
16017 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
16019 if test "${cf_cv_header_stdbool_h+set}" = set; then
16020 echo $ECHO_N "(cached) $ECHO_C" >&6
16023 cat >conftest.$ac_ext <<_ACEOF
16024 #line 16024 "configure"
16025 #include "confdefs.h"
16035 rm -f conftest.$ac_objext
16036 if { (eval echo "$as_me:16036: \"$ac_compile\"") >&5
16037 (eval $ac_compile) 2>&5
16039 echo "$as_me:16039: \$? = $ac_status" >&5
16040 (exit $ac_status); } &&
16041 { ac_try='test -s conftest.$ac_objext'
16042 { (eval echo "$as_me:16042: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16045 echo "$as_me:16045: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 cf_cv_header_stdbool_h=0
16049 echo "$as_me: failed program was:" >&5
16050 cat conftest.$ac_ext >&5
16051 cat >conftest.$ac_ext <<_ACEOF
16052 #line 16052 "configure"
16053 #include "confdefs.h"
16056 #include <stdbool.h>
16067 rm -f conftest.$ac_objext
16068 if { (eval echo "$as_me:16068: \"$ac_compile\"") >&5
16069 (eval $ac_compile) 2>&5
16071 echo "$as_me:16071: \$? = $ac_status" >&5
16072 (exit $ac_status); } &&
16073 { ac_try='test -s conftest.$ac_objext'
16074 { (eval echo "$as_me:16074: \"$ac_try\"") >&5
16075 (eval $ac_try) 2>&5
16077 echo "$as_me:16077: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079 cf_cv_header_stdbool_h=1
16081 echo "$as_me: failed program was:" >&5
16082 cat conftest.$ac_ext >&5
16083 cf_cv_header_stdbool_h=0
16085 rm -f conftest.$ac_objext conftest.$ac_ext
16087 rm -f conftest.$ac_objext conftest.$ac_ext
16090 if test "$cf_cv_header_stdbool_h" = 1
16091 then echo "$as_me:16091: result: yes" >&5
16092 echo "${ECHO_T}yes" >&6
16093 else echo "$as_me:16093: result: no" >&5
16094 echo "${ECHO_T}no" >&6
16097 echo "$as_me:16097: checking for builtin bool type" >&5
16098 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
16100 if test "${cf_cv_builtin_bool+set}" = set; then
16101 echo $ECHO_N "(cached) $ECHO_C" >&6
16104 cat >conftest.$ac_ext <<_ACEOF
16105 #line 16105 "configure"
16106 #include "confdefs.h"
16109 #include <sys/types.h>
16119 rm -f conftest.$ac_objext
16120 if { (eval echo "$as_me:16120: \"$ac_compile\"") >&5
16121 (eval $ac_compile) 2>&5
16123 echo "$as_me:16123: \$? = $ac_status" >&5
16124 (exit $ac_status); } &&
16125 { ac_try='test -s conftest.$ac_objext'
16126 { (eval echo "$as_me:16126: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16129 echo "$as_me:16129: \$? = $ac_status" >&5
16130 (exit $ac_status); }; }; then
16131 cf_cv_builtin_bool=1
16133 echo "$as_me: failed program was:" >&5
16134 cat conftest.$ac_ext >&5
16135 cf_cv_builtin_bool=0
16137 rm -f conftest.$ac_objext conftest.$ac_ext
16141 if test "$cf_cv_builtin_bool" = 1
16142 then echo "$as_me:16142: result: yes" >&5
16143 echo "${ECHO_T}yes" >&6
16144 else echo "$as_me:16144: result: no" >&5
16145 echo "${ECHO_T}no" >&6
16148 echo "$as_me:16148: checking for size of bool" >&5
16149 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
16150 if test "${cf_cv_type_of_bool+set}" = set; then
16151 echo $ECHO_N "(cached) $ECHO_C" >&6
16155 if test "$cross_compiling" = yes; then
16156 cf_cv_type_of_bool=unknown
16158 cat >conftest.$ac_ext <<_ACEOF
16159 #line 16159 "configure"
16160 #include "confdefs.h"
16162 #include <stdlib.h>
16165 #if defined(__cplusplus)
16167 #ifdef HAVE_GXX_BUILTIN_H
16168 #include <g++/builtin.h>
16169 #elif HAVE_GPP_BUILTIN_H
16170 #include <gpp/builtin.h>
16171 #elif HAVE_BUILTIN_H
16172 #include <builtin.h>
16177 #if $cf_cv_header_stdbool_h
16178 #include <stdbool.h>
16185 FILE *fp = fopen("cf_test.out", "w");
16188 if ((bool)(-x) >= 0)
16189 fputs("unsigned ", fp);
16190 if (sizeof(x) == sizeof(int)) fputs("int", fp);
16191 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
16192 else if (sizeof(x) == sizeof(short))fputs("short",fp);
16193 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
16196 ${cf_cv_main_return:-return}(0);
16200 rm -f conftest$ac_exeext
16201 if { (eval echo "$as_me:16201: \"$ac_link\"") >&5
16202 (eval $ac_link) 2>&5
16204 echo "$as_me:16204: \$? = $ac_status" >&5
16205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16206 { (eval echo "$as_me:16206: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16209 echo "$as_me:16209: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211 cf_cv_type_of_bool=`cat cf_test.out`
16212 if test -z "$cf_cv_type_of_bool"; then
16213 cf_cv_type_of_bool=unknown
16216 echo "$as_me: program exited with status $ac_status" >&5
16217 echo "$as_me: failed program was:" >&5
16218 cat conftest.$ac_ext >&5
16219 cf_cv_type_of_bool=unknown
16221 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16227 echo "$as_me:16227: result: $cf_cv_type_of_bool" >&5
16228 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
16229 if test "$cf_cv_type_of_bool" = unknown ; then
16230 case .$NCURSES_BOOL in #(vi
16231 .auto|.) NCURSES_BOOL=unsigned;;
16233 { echo "$as_me:16233: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
16234 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
16235 cf_cv_type_of_bool=$NCURSES_BOOL
16238 echo "$as_me:16238: checking for special defines needed for etip.h" >&5
16239 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
16240 cf_save_CXXFLAGS="$CXXFLAGS"
16242 for cf_math in "" MATH_H
16244 for cf_excp in "" MATH_EXCEPTION
16246 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
16247 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
16248 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
16249 cat >conftest.$ac_ext <<_ACEOF
16250 #line 16250 "configure"
16251 #include "confdefs.h"
16253 #include <etip.h.in>
16263 rm -f conftest.$ac_objext
16264 if { (eval echo "$as_me:16264: \"$ac_compile\"") >&5
16265 (eval $ac_compile) 2>&5
16267 echo "$as_me:16267: \$? = $ac_status" >&5
16268 (exit $ac_status); } &&
16269 { ac_try='test -s conftest.$ac_objext'
16270 { (eval echo "$as_me:16270: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16273 echo "$as_me:16273: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16276 test -n "$cf_math" && cat >>confdefs.h <<EOF
16277 #define ETIP_NEEDS_${cf_math} 1
16280 test -n "$cf_excp" && cat >>confdefs.h <<EOF
16281 #define ETIP_NEEDS_${cf_excp} 1
16284 cf_result="$cf_math $cf_excp"
16288 echo "$as_me: failed program was:" >&5
16289 cat conftest.$ac_ext >&5
16291 rm -f conftest.$ac_objext conftest.$ac_ext
16294 echo "$as_me:16294: result: $cf_result" >&5
16295 echo "${ECHO_T}$cf_result" >&6
16296 CXXFLAGS="$cf_save_CXXFLAGS"
16298 if test -n "$CXX"; then
16299 echo "$as_me:16299: checking if $CXX accepts parameter initialization" >&5
16300 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
16301 if test "${cf_cv_cpp_param_init+set}" = set; then
16302 echo $ECHO_N "(cached) $ECHO_C" >&6
16306 ac_cpp='$CXXCPP $CPPFLAGS'
16307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16310 ac_main_return=return
16312 if test "$cross_compiling" = yes; then
16313 cf_cv_cpp_param_init=unknown
16315 cat >conftest.$ac_ext <<_ACEOF
16316 #line 16316 "configure"
16317 #include "confdefs.h"
16327 TEST::TEST(int x = 1) // some compilers do not like second initializer
16334 rm -f conftest$ac_exeext
16335 if { (eval echo "$as_me:16335: \"$ac_link\"") >&5
16336 (eval $ac_link) 2>&5
16338 echo "$as_me:16338: \$? = $ac_status" >&5
16339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16340 { (eval echo "$as_me:16340: \"$ac_try\"") >&5
16341 (eval $ac_try) 2>&5
16343 echo "$as_me:16343: \$? = $ac_status" >&5
16344 (exit $ac_status); }; }; then
16345 cf_cv_cpp_param_init=yes
16347 echo "$as_me: program exited with status $ac_status" >&5
16348 echo "$as_me: failed program was:" >&5
16349 cat conftest.$ac_ext >&5
16350 cf_cv_cpp_param_init=no
16352 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16355 ac_cpp='$CXXCPP $CPPFLAGS'
16356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16359 ac_main_return=return
16362 echo "$as_me:16362: result: $cf_cv_cpp_param_init" >&5
16363 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
16365 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
16366 #define CPP_HAS_PARAM_INIT 1
16369 if test -n "$CXX"; then
16371 echo "$as_me:16371: checking if $CXX accepts static_cast" >&5
16372 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
16373 if test "${cf_cv_cpp_static_cast+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16378 ac_cpp='$CXXCPP $CPPFLAGS'
16379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16382 ac_main_return=return
16384 cat >conftest.$ac_ext <<_ACEOF
16385 #line 16385 "configure"
16386 #include "confdefs.h"
16391 NCursesPanel(int nlines,
16401 template<class T> class NCursesUserPanel : public NCursesPanel
16404 NCursesUserPanel (int nlines,
16408 const T* p_UserData = static_cast<T*>(0))
16409 : NCursesPanel (nlines, ncols, begin_y, begin_x)
16412 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
16416 virtual ~NCursesUserPanel() {};
16423 const char* p_UserData = static_cast<char*>(0)
16428 rm -f conftest.$ac_objext
16429 if { (eval echo "$as_me:16429: \"$ac_compile\"") >&5
16430 (eval $ac_compile) 2>&5
16432 echo "$as_me:16432: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
16434 { ac_try='test -s conftest.$ac_objext'
16435 { (eval echo "$as_me:16435: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16438 echo "$as_me:16438: \$? = $ac_status" >&5
16439 (exit $ac_status); }; }; then
16440 cf_cv_cpp_static_cast=yes
16442 echo "$as_me: failed program was:" >&5
16443 cat conftest.$ac_ext >&5
16444 cf_cv_cpp_static_cast=no
16446 rm -f conftest.$ac_objext conftest.$ac_ext
16449 ac_cpp='$CXXCPP $CPPFLAGS'
16450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16453 ac_main_return=return
16456 echo "$as_me:16456: result: $cf_cv_cpp_static_cast" >&5
16457 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
16461 test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
16462 #define CPP_HAS_STATIC_CAST 1
16466 CXX_ARFLAGS='$(ARFLAGS)'
16467 case $cf_cv_system_name in #(vi
16469 if test "$GXX" != yes ; then
16471 CXX_ARFLAGS='-ar -o'
16475 CXXLDFLAGS="-u main"
16478 if test "$GXX" != yes ; then
16480 CXX_ARFLAGS='-xar -o'
16487 cf_cv_builtin_bool=1
16489 # Just because we are not configuring against C++ right now does not
16490 # mean that a user will not want to use C++. Some distributors disable
16491 # the C++ portion of this configuration as a shortcut (or just to avoid
16492 # compiling the demo in the c++ directory). So we need a reasonable
16493 # default for the 'bool' type.
16495 # Caveat: since the storage of the bool type is not standardized, it
16498 if test "$NCURSES_BOOL" != auto ; then
16499 cf_cv_type_of_bool=$NCURSES_BOOL
16500 cf_cv_header_stdbool_h=0
16502 if test "$cf_cv_header_stdbool_h" = 1 ; then
16504 echo "$as_me:16504: checking for size of bool" >&5
16505 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
16506 if test "${cf_cv_type_of_bool+set}" = set; then
16507 echo $ECHO_N "(cached) $ECHO_C" >&6
16511 if test "$cross_compiling" = yes; then
16512 cf_cv_type_of_bool=unknown
16514 cat >conftest.$ac_ext <<_ACEOF
16515 #line 16515 "configure"
16516 #include "confdefs.h"
16518 #include <stdlib.h>
16521 #if defined(__cplusplus)
16523 #ifdef HAVE_GXX_BUILTIN_H
16524 #include <g++/builtin.h>
16525 #elif HAVE_GPP_BUILTIN_H
16526 #include <gpp/builtin.h>
16527 #elif HAVE_BUILTIN_H
16528 #include <builtin.h>
16533 #if $cf_cv_header_stdbool_h
16534 #include <stdbool.h>
16541 FILE *fp = fopen("cf_test.out", "w");
16544 if ((bool)(-x) >= 0)
16545 fputs("unsigned ", fp);
16546 if (sizeof(x) == sizeof(int)) fputs("int", fp);
16547 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
16548 else if (sizeof(x) == sizeof(short))fputs("short",fp);
16549 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
16552 ${cf_cv_main_return:-return}(0);
16556 rm -f conftest$ac_exeext
16557 if { (eval echo "$as_me:16557: \"$ac_link\"") >&5
16558 (eval $ac_link) 2>&5
16560 echo "$as_me:16560: \$? = $ac_status" >&5
16561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16562 { (eval echo "$as_me:16562: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16565 echo "$as_me:16565: \$? = $ac_status" >&5
16566 (exit $ac_status); }; }; then
16567 cf_cv_type_of_bool=`cat cf_test.out`
16568 if test -z "$cf_cv_type_of_bool"; then
16569 cf_cv_type_of_bool=unknown
16572 echo "$as_me: program exited with status $ac_status" >&5
16573 echo "$as_me: failed program was:" >&5
16574 cat conftest.$ac_ext >&5
16575 cf_cv_type_of_bool=unknown
16577 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16583 echo "$as_me:16583: result: $cf_cv_type_of_bool" >&5
16584 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
16585 if test "$cf_cv_type_of_bool" = unknown ; then
16586 case .$NCURSES_BOOL in #(vi
16587 .auto|.) NCURSES_BOOL=unsigned;;
16589 { echo "$as_me:16589: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
16590 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
16591 cf_cv_type_of_bool=$NCURSES_BOOL
16595 echo "$as_me:16595: checking for fallback type of bool" >&5
16596 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
16597 case "$host_cpu" in #(vi
16598 i?86) cf_cv_type_of_bool=char ;; #(vi
16599 *) cf_cv_type_of_bool=int ;;
16601 echo "$as_me:16601: result: $cf_cv_type_of_bool" >&5
16602 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
16607 # If the C compiler did not declare bool, and we did not determine that the C++
16608 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
16609 # ncurses library use the same type as C++ bool. Note that this allows one to
16610 # specify the type of bool in a configure-script option and postpone
16611 # integration with the C++ compiler provided that the types are compatible.
16613 if test $cf_cv_cc_bool_type = 1
16615 # oops: C has a bool. Unlikely, but C++ could differ.
16617 elif test $cf_cv_builtin_bool = 0
16622 # this is the normal case
16623 USE_CXX_BOOL='defined(__cplusplus)'
16626 if test -f "${srcdir}/Ada95/Makefile.in" ; then
16628 if test "$cf_with_ada" != "no" ; then
16629 if test "$with_libtool" != "no"; then
16630 { echo "$as_me:16630: WARNING: libtool does not support Ada - disabling feature" >&5
16631 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
16636 if test "$cf_with_ada" != "no" ; then
16637 cf_ada_make=gnatmake
16638 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
16639 set dummy $cf_ada_make; ac_word=$2
16640 echo "$as_me:16640: checking for $ac_word" >&5
16641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16642 if test "${ac_cv_prog_gnat_exists+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 if test -n "$gnat_exists"; then
16646 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
16648 ac_save_IFS=$IFS; IFS=$ac_path_separator
16650 for ac_dir in $ac_dummy; do
16652 test -z "$ac_dir" && ac_dir=.
16653 $as_executable_p "$ac_dir/$ac_word" || continue
16654 ac_cv_prog_gnat_exists="yes"
16655 echo "$as_me:16655: found $ac_dir/$ac_word" >&5
16659 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
16662 gnat_exists=$ac_cv_prog_gnat_exists
16663 if test -n "$gnat_exists"; then
16664 echo "$as_me:16664: result: $gnat_exists" >&5
16665 echo "${ECHO_T}$gnat_exists" >&6
16667 echo "$as_me:16667: result: no" >&5
16668 echo "${ECHO_T}no" >&6
16671 if test "$ac_cv_prog_gnat_exists" = no; then
16675 echo "$as_me:16675: checking for gnat version" >&5
16676 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
16677 cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
16678 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
16679 echo "$as_me:16679: result: $cf_gnat_version" >&5
16680 echo "${ECHO_T}$cf_gnat_version" >&6
16682 case $cf_gnat_version in
16683 3.1[1-9]*|3.[2-9]*|[4-9].*)
16684 cf_cv_prog_gnat_correct=yes
16686 *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
16687 cf_cv_prog_gnat_correct=no
16690 case $cf_gnat_version in
16692 cf_compile_generics=generics
16693 cf_generic_objects="\${GENOBJS}"
16695 *) cf_compile_generics=
16696 cf_generic_objects=
16700 # Extract the first word of "m4", so it can be a program name with args.
16701 set dummy m4; ac_word=$2
16702 echo "$as_me:16702: checking for $ac_word" >&5
16703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16704 if test "${ac_cv_prog_M4_exists+set}" = set; then
16705 echo $ECHO_N "(cached) $ECHO_C" >&6
16707 if test -n "$M4_exists"; then
16708 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
16710 ac_save_IFS=$IFS; IFS=$ac_path_separator
16712 for ac_dir in $ac_dummy; do
16714 test -z "$ac_dir" && ac_dir=.
16715 $as_executable_p "$ac_dir/$ac_word" || continue
16716 ac_cv_prog_M4_exists="yes"
16717 echo "$as_me:16717: found $ac_dir/$ac_word" >&5
16721 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
16724 M4_exists=$ac_cv_prog_M4_exists
16725 if test -n "$M4_exists"; then
16726 echo "$as_me:16726: result: $M4_exists" >&5
16727 echo "${ECHO_T}$M4_exists" >&6
16729 echo "$as_me:16729: result: no" >&5
16730 echo "${ECHO_T}no" >&6
16733 if test "$ac_cv_prog_M4_exists" = no; then
16734 cf_cv_prog_gnat_correct=no
16735 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
16737 if test "$cf_cv_prog_gnat_correct" = yes; then
16738 echo "$as_me:16738: checking if GNAT works" >&5
16739 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
16742 cat >>conftest.ads <<CF_EOF
16743 procedure conftest;
16745 cat >>conftest.adb <<CF_EOF
16748 procedure conftest is
16750 Text_IO.Put ("Hello World");
16752 GNAT.OS_Lib.OS_Exit (0);
16755 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
16756 if ( ./conftest 1>&5 2>&1 ) ; then
16757 cf_cv_prog_gnat_correct=yes
16759 cf_cv_prog_gnat_correct=no
16762 cf_cv_prog_gnat_correct=no
16766 echo "$as_me:16766: result: $cf_cv_prog_gnat_correct" >&5
16767 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
16770 if test "$cf_cv_prog_gnat_correct" = yes; then
16771 ADAFLAGS="-O3 -gnatpn $ADAFLAGS"
16773 echo "$as_me:16773: checking if GNAT pragma Unreferenced works" >&5
16774 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
16777 cat >>conftest.ads <<CF_EOF
16778 procedure conftest;
16780 cat >>conftest.adb <<CF_EOF
16783 procedure conftest is
16785 pragma Unreferenced (test);
16788 Text_IO.Put ("Hello World");
16790 GNAT.OS_Lib.OS_Exit (0);
16793 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
16794 cf_cv_pragma_unreferenced=yes
16796 cf_cv_pragma_unreferenced=no
16800 echo "$as_me:16800: result: $cf_cv_pragma_unreferenced" >&5
16801 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
16803 # if the pragma is supported, use it (needed in the Trace code).
16804 if test $cf_cv_pragma_unreferenced = yes ; then
16810 # Check whether --with-ada-compiler or --without-ada-compiler was given.
16811 if test "${with_ada_compiler+set}" = set; then
16812 withval="$with_ada_compiler"
16813 cf_ada_compiler=$withval
16815 cf_ada_compiler=gnatmake
16818 cf_ada_package=terminal_interface
16820 # Check whether --with-ada-include or --without-ada-include was given.
16821 if test "${with_ada_include+set}" = set; then
16822 withval="$with_ada_include"
16825 withval="${ADA_INCLUDE-$prefix/lib/ada/adainclude}"
16826 fi; if test -n "$prefix/lib/ada/adainclude" ; then
16828 if test "x$prefix" != xNONE; then
16829 cf_path_syntax="$prefix"
16831 cf_path_syntax="$ac_default_prefix"
16834 case ".$withval" in #(vi
16835 .\$\(*\)*|.\'*\'*) #(vi
16839 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
16841 .\${*prefix}*) #(vi
16842 eval withval="$withval"
16843 case ".$withval" in #(vi
16845 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16850 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16853 { { echo "$as_me:16853: error: expected a pathname, not \"$withval\"" >&5
16854 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
16855 { (exit 1); exit 1; }; }
16860 ADA_INCLUDE="$withval"
16862 # Check whether --with-ada-objects or --without-ada-objects was given.
16863 if test "${with_ada_objects+set}" = set; then
16864 withval="$with_ada_objects"
16867 withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
16868 fi; if test -n "$prefix/lib/ada/adalib" ; then
16870 if test "x$prefix" != xNONE; then
16871 cf_path_syntax="$prefix"
16873 cf_path_syntax="$ac_default_prefix"
16876 case ".$withval" in #(vi
16877 .\$\(*\)*|.\'*\'*) #(vi
16881 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
16883 .\${*prefix}*) #(vi
16884 eval withval="$withval"
16885 case ".$withval" in #(vi
16887 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16892 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16895 { { echo "$as_me:16895: error: expected a pathname, not \"$withval\"" >&5
16896 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
16897 { (exit 1); exit 1; }; }
16902 ADA_OBJECTS="$withval"
16910 ### Construct the ncurses library-subsets, if any, from this set of keywords:
16911 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
16913 ### ticlib modules may be a separate library, otherwise contained in termlib.
16914 ### termlib modules may be a separate library, otherwise contained in ncurses.
16916 ### The of "+" or " " between the tokens controls the way the script
16917 ### chooses to split module lists into libraries.
16919 ### (see CF_LIB_RULES).
16920 echo "$as_me:16920: checking for library subsets" >&5
16921 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
16924 if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
16925 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
16926 if test "$with_ticlib" != no ; then
16927 LIB_SUBSETS="${LIB_SUBSETS} "
16929 LIB_SUBSETS="${LIB_SUBSETS}+"
16933 LIB_SUBSETS="${LIB_SUBSETS}termlib"
16934 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
16936 if test "$with_termlib" != no ; then
16937 LIB_SUBSETS="${LIB_SUBSETS} "
16939 LIB_SUBSETS="${LIB_SUBSETS}+"
16942 LIB_SUBSETS="${LIB_SUBSETS}base"
16944 # Most term-driver calls are to tinfo, but some like init_pair are to the
16945 # base library (so it resides in base).
16946 if test "$with_term_driver" != no ; then
16947 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
16948 case $cf_cv_system_name in #(vi
16950 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
16953 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
16958 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
16959 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
16961 echo "$as_me:16961: result: $LIB_SUBSETS" >&5
16962 echo "${ECHO_T}$LIB_SUBSETS" >&6
16964 ### Construct the list of include-directories to be generated
16966 CPPFLAGS="$CPPFLAGS -I. -I../include"
16967 if test "$srcdir" != "."; then
16968 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
16970 if test "$GCC" != yes; then
16971 CPPFLAGS="$CPPFLAGS -I\${includedir}"
16972 elif test "$includedir" != "/usr/include"; then
16973 if test "$includedir" = '${prefix}/include' ; then
16974 if test $prefix != /usr ; then
16975 CPPFLAGS="$CPPFLAGS -I\${includedir}"
16978 CPPFLAGS="$CPPFLAGS -I\${includedir}"
16982 ACPPFLAGS="-I. -I../../include $ACPPFLAGS"
16983 if test "$srcdir" != "."; then
16984 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
16986 if test "$GCC" != yes; then
16987 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
16988 elif test "$includedir" != "/usr/include"; then
16989 if test "$includedir" = '${prefix}/include' ; then
16990 if test $prefix != /usr ; then
16991 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
16994 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
16998 ### Build up pieces for makefile rules
16999 echo "$as_me:16999: checking default library suffix" >&5
17000 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
17002 case $DFT_LWR_MODEL in
17003 libtool) DFT_ARG_SUFFIX='' ;;
17004 normal) DFT_ARG_SUFFIX='' ;;
17005 debug) DFT_ARG_SUFFIX='_g' ;;
17006 profile) DFT_ARG_SUFFIX='_p' ;;
17007 shared) DFT_ARG_SUFFIX='' ;;
17009 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
17010 echo "$as_me:17010: result: $DFT_ARG_SUFFIX" >&5
17011 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
17013 echo "$as_me:17013: checking default library-dependency suffix" >&5
17014 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
17016 case $DFT_LWR_MODEL in #(vi
17018 DFT_LIB_SUFFIX='.la'
17019 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
17022 DFT_LIB_SUFFIX='.a'
17023 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
17026 DFT_LIB_SUFFIX='_g.a'
17027 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
17030 DFT_LIB_SUFFIX='_p.a'
17031 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
17034 case $cf_cv_system_name in
17036 DFT_LIB_SUFFIX='.a'
17037 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
17040 DFT_LIB_SUFFIX='.dll'
17041 DFT_DEP_SUFFIX='.dll.a'
17044 DFT_LIB_SUFFIX='.dylib'
17045 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
17050 DFT_LIB_SUFFIX='.so'
17051 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
17054 DFT_LIB_SUFFIX='.sl'
17055 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
17059 *) DFT_LIB_SUFFIX='.so'
17060 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
17064 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
17065 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
17066 echo "$as_me:17066: result: $DFT_DEP_SUFFIX" >&5
17067 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
17069 echo "$as_me:17069: checking default object directory" >&5
17070 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
17072 case $DFT_LWR_MODEL in
17073 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
17074 normal) DFT_OBJ_SUBDIR='objects' ;;
17075 debug) DFT_OBJ_SUBDIR='obj_g' ;;
17076 profile) DFT_OBJ_SUBDIR='obj_p' ;;
17078 case $cf_cv_system_name in #(vi
17080 DFT_OBJ_SUBDIR='objects' ;;
17082 DFT_OBJ_SUBDIR='obj_s' ;;
17085 echo "$as_me:17085: result: $DFT_OBJ_SUBDIR" >&5
17086 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
17088 # libtool thinks it can make c++ shared libraries (perhaps only g++)
17089 if test "$cf_with_cxx" = yes ; then
17090 echo "$as_me:17090: checking c++ library-dependency suffix" >&5
17091 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
17092 if test "$with_libtool" != "no"; then
17093 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
17096 case normal in #(vi
17098 CXX_LIB_SUFFIX='.la'
17099 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
17102 CXX_LIB_SUFFIX='.a'
17103 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
17106 CXX_LIB_SUFFIX='_g.a'
17107 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
17110 CXX_LIB_SUFFIX='_p.a'
17111 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
17114 case $cf_cv_system_name in
17116 CXX_LIB_SUFFIX='.a'
17117 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
17120 CXX_LIB_SUFFIX='.dll'
17121 CXX_DEP_SUFFIX='.dll.a'
17124 CXX_LIB_SUFFIX='.dylib'
17125 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
17130 CXX_LIB_SUFFIX='.so'
17131 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
17134 CXX_LIB_SUFFIX='.sl'
17135 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
17139 *) CXX_LIB_SUFFIX='.so'
17140 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
17144 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
17145 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
17147 echo "$as_me:17147: result: $CXX_LIB_SUFFIX" >&5
17148 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
17152 # do not want -ldl in build except as needed for -lncurses dependency
17153 if test "$with_dlsym" = yes ; then
17154 if test $DFT_LWR_MODEL = shared || \
17155 test $DFT_LWR_MODEL = libtool ; then
17157 # remove dl library from $LIBS
17158 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
17162 ### Set up low-level terminfo dependencies for makefiles.
17164 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
17165 # do not need libdl
17167 if test "$with_dlsym" = yes ; then
17169 # remove dl library from $SHLIB_LIST
17170 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
17174 if test "$with_ticlib" != no ; then
17176 if test "$with_ticlib" != yes ; then
17177 TICS_NAME=$with_ticlib
17178 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
17179 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
17180 TICS_LIB_SUFFIX="${with_ticlib}"
17182 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
17183 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
17184 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
17186 TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}"
17188 TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
17191 if test "$with_termlib" != no ; then
17193 if test "$with_termlib" != yes ; then
17194 TINFO_NAME=$with_termlib
17195 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
17196 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
17197 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
17198 TINFO_LIB_SUFFIX="${with_termlib}"
17200 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
17201 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
17202 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
17203 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
17206 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
17207 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
17208 if test "$DFT_LWR_MODEL" = "libtool"; then
17209 TEST_ARGS="${TEST_DEPS}"
17210 TEST_ARG2="${TEST_DEP2}"
17211 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
17212 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
17213 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
17215 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
17216 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
17217 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
17218 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
17219 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
17222 # the next lines are needed for linking libtic over libncurses
17223 TINFO_NAME=${LIB_NAME}
17224 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
17225 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
17226 if test "$with_tic_depends" = yes ; then
17227 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
17229 TICS_LIST="$SHLIB_LIST"
17232 TINFO_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
17235 if test "$DFT_LWR_MODEL" = shared ; then
17236 case $cf_cv_system_name in #(vi
17238 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
17244 if test "$with_dlsym" = yes ; then
17246 # remove dl library from $TICS_LIST
17247 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
17251 if test "$DFT_LWR_MODEL" = "libtool"; then
17256 TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`
17258 case $DFT_LWR_MODEL in
17259 normal|debug|profile)
17261 if test "$GCC" = yes ; then
17262 case $cf_cv_system_name in #(
17263 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
17267 *) #( normally, except when broken
17268 LDFLAGS_STATIC=-static
17269 LDFLAGS_SHARED=-dynamic
17273 case $cf_cv_system_name in #(
17274 aix[456]*) #( from ld manpage
17275 LDFLAGS_STATIC=-bstatic
17276 LDFLAGS_SHARED=-bdynamic
17278 hpux*) #( from ld manpage for hpux10.20, hpux11.11
17279 # We could also use just "archive" and "shared".
17280 LDFLAGS_STATIC=-Wl,-a,archive_shared
17281 LDFLAGS_SHARED=-Wl,-a,shared_archive
17283 irix*) #( from ld manpage IRIX64
17284 LDFLAGS_STATIC=-Bstatic
17285 LDFLAGS_SHARED=-Bdynamic
17287 osf[45]*) #( from ld manpage osf4.0d, osf5.1
17288 # alternative "-oldstyle_liblookup" (not in cc manpage)
17289 LDFLAGS_STATIC=-noso
17290 LDFLAGS_SHARED=-so_archive
17293 LDFLAGS_STATIC=-Bstatic
17294 LDFLAGS_SHARED=-Bdynamic
17302 echo "$as_me:17302: checking where we will install curses.h" >&5
17303 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
17304 test "$with_overwrite" = no && \
17305 test "x$includedir" = 'x${prefix}/include' && \
17306 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
17307 echo "$as_me:17307: result: $includedir" >&5
17308 echo "${ECHO_T}$includedir" >&6
17310 ### Resolve a conflict between normal and wide-curses by forcing applications
17311 ### that will need libutf8 to add it to their configure script.
17312 if test "$with_overwrite" != no ; then
17313 if test "$NCURSES_LIBUTF8" = 1 ; then
17314 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
17315 { echo "$as_me:17315: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
17316 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
17319 WITH_OVERWRITE=$with_overwrite
17321 # used to separate tack out of the tree
17324 ### predefined stuff for the test programs
17325 cat >>confdefs.h <<\EOF
17326 #define HAVE_SLK_COLOR 1
17329 ### Construct the list of subdirectories for which we'll customize makefiles
17330 ### with the appropriate compile-rules.
17332 echo "$as_me:17332: checking for src modules" >&5
17333 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
17335 # dependencies and linker-arguments for test-programs
17336 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
17337 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
17338 if test "$DFT_LWR_MODEL" = "libtool"; then
17339 TEST_ARGS="${TEST_DEPS}"
17340 TEST_ARG2="${TEST_DEP2}"
17342 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
17343 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
17347 for cf_dir in $modules_to_build
17349 if test -f $srcdir/$cf_dir/modules; then
17351 # We may/may not have tack in the distribution, though the
17353 if test $cf_dir = tack ; then
17354 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
17359 if test -z "$cf_cv_src_modules"; then
17360 cf_cv_src_modules=$cf_dir
17362 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
17365 # Make the ncurses_cfg.h file record the library interface files as
17366 # well. These are header files that are the same name as their
17367 # directory. Ncurses is the only library that does not follow
17369 if test $cf_dir = tack ; then
17371 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
17373 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17375 cat >>confdefs.h <<EOF
17376 #define HAVE_${cf_have_include}_H 1
17379 cat >>confdefs.h <<EOF
17380 #define HAVE_LIB${cf_have_include} 1
17383 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
17384 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
17385 if test "$DFT_LWR_MODEL" = "libtool"; then
17386 TEST_ARGS="${TEST_DEPS}"
17387 TEST_ARG2="${TEST_DEP2}"
17389 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
17390 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
17395 echo "$as_me:17395: result: $cf_cv_src_modules" >&5
17396 echo "${ECHO_T}$cf_cv_src_modules" >&6
17398 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
17399 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
17402 if test "x$cf_with_manpages" != xno ; then
17403 SRC_SUBDIRS="$SRC_SUBDIRS man"
17405 SRC_SUBDIRS="$SRC_SUBDIRS include"
17406 for cf_dir in $cf_cv_src_modules
17408 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
17410 SRC_SUBDIRS="$SRC_SUBDIRS test"
17411 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
17412 test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
17415 if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
17416 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
17417 ADA_SUBDIRS="gen src samples"
17421 for cf_dir in $SRC_SUBDIRS
17423 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
17426 if test -n "$ADA_SUBDIRS"; then
17427 for cf_dir in $ADA_SUBDIRS
17429 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
17434 if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
17435 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
17439 for cf_item in $cf_list_models
17443 libtool) cf_subdir='obj_lo' ;;
17444 normal) cf_subdir='objects' ;;
17445 debug) cf_subdir='obj_g' ;;
17446 profile) cf_subdir='obj_p' ;;
17448 case $cf_cv_system_name in #(vi
17450 cf_subdir='objects' ;;
17452 cf_subdir='obj_s' ;;
17456 for cf_item2 in $DIRS_TO_MAKE
17458 test $cf_item2 = $cf_subdir && break
17460 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
17462 for cf_dir in $DIRS_TO_MAKE
17464 test ! -d $cf_dir && mkdir $cf_dir
17467 cat >>confdefs.h <<EOF
17468 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
17471 cat >>confdefs.h <<EOF
17472 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
17475 ### Now that we're done running tests, add the compiler-warnings, if any
17480 cf_new_extra_cppflags=
17482 for cf_add_cflags in $EXTRA_CFLAGS
17484 case $cf_fix_cppflags in
17486 case $cf_add_cflags in #(vi
17487 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
17488 case $cf_add_cflags in
17490 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17492 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
17493 && test -z "${cf_tst_cflags}" \
17494 && cf_fix_cppflags=yes
17496 if test $cf_fix_cppflags = yes ; then
17497 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17499 elif test "${cf_tst_cflags}" = "\"'" ; then
17500 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17505 case "$CPPFLAGS" in
17506 *$cf_add_cflags) #(vi
17509 case $cf_add_cflags in #(vi
17511 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17513 CPPFLAGS=`echo "$CPPFLAGS" | \
17514 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17515 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17519 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17524 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17529 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17531 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17533 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
17534 && test -z "${cf_tst_cflags}" \
17535 && cf_fix_cppflags=no
17540 if test -n "$cf_new_cflags" ; then
17542 CFLAGS="$CFLAGS $cf_new_cflags"
17545 if test -n "$cf_new_cppflags" ; then
17547 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17550 if test -n "$cf_new_extra_cppflags" ; then
17552 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17555 ### If we're building with rpath, try to link non-standard libs that way too.
17556 if test "$DFT_LWR_MODEL" = "shared"; then
17558 echo "$as_me:17558: checking for updated LDFLAGS" >&5
17559 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
17560 if test -n "$LDFLAGS" ; then
17561 echo "$as_me:17561: result: maybe" >&5
17562 echo "${ECHO_T}maybe" >&6
17563 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
17565 echo "${as_me-configure}:17565: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
17567 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
17569 echo "${as_me-configure}:17569: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
17571 case "$EXTRA_LDFLAGS" in #(vi
17573 cf_rpath_hack="-Wl,-rpath,"
17576 cf_rpath_hack="-R "
17585 if test -n "$cf_rpath_hack" ; then
17587 for cf_rpath_src in $LDFLAGS
17589 test -n "$verbose" && echo " Filtering $cf_rpath_src" 1>&6
17591 echo "${as_me-configure}:17591: testing Filtering $cf_rpath_src ..." 1>&5
17593 case $cf_rpath_src in #(vi
17595 if test "$cf_rpath_hack" = "-R " ; then
17596 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e 's%-L%-R %'`
17598 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e s%-L%$cf_rpath_hack%`
17600 test -n "$verbose" && echo " ...Filter $cf_rpath_tmp" 1>&6
17602 echo "${as_me-configure}:17602: testing ...Filter $cf_rpath_tmp ..." 1>&5
17604 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
17607 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
17609 LDFLAGS=$cf_rpath_dst
17610 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
17612 echo "${as_me-configure}:17612: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
17614 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
17616 echo "${as_me-configure}:17616: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
17620 echo "$as_me:17620: result: no" >&5
17621 echo "${ECHO_T}no" >&6
17626 ### Define substitutions for header files to avoid name-pollution
17628 if test "$cf_cv_have_tcgetattr" = yes ; then
17634 if test "$ac_cv_header_termio_h" = yes ; then
17640 if test "$ac_cv_header_termios_h" = yes ; then
17646 ################################################################################
17647 test "$use_database" = yes && \
17648 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
17650 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
17652 if test x"$enable_pc_files" = xyes ; then \
17653 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
17659 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"
17660 ac_config_commands="$ac_config_commands default"
17661 cat >confcache <<\_ACEOF
17662 # This file is a shell script that caches the results of configure
17663 # tests run on this system so they can be shared between configure
17664 # scripts and configure runs, see configure's option --config-cache.
17665 # It is not useful on other systems. If it contains results you don't
17666 # want to keep, you may remove or edit it.
17668 # config.status only pays attention to the cache file if you give it
17669 # the --recheck option to rerun configure.
17671 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17672 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17673 # following values.
17677 # The following way of writing the cache mishandles newlines in values,
17678 # but we know of no workaround that is simple, portable, and efficient.
17679 # So, don't put newlines in cache variables' values.
17680 # Ultrix sh set writes to stderr and can't be redirected directly,
17681 # and sets the high bit in the cache file unless we assign to the vars.
17684 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17686 # `set' does not quote correctly, so add quotes (double-quote
17687 # substitution turns \\\\ into \\, and sed turns \\ into \).
17690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17693 # `set' quotes correctly as required by POSIX, so do not add quotes.
17695 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17702 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17704 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17706 if cmp -s $cache_file confcache; then :; else
17707 if test -w $cache_file; then
17708 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17709 cat confcache >$cache_file
17711 echo "not updating unwritable cache $cache_file"
17716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17717 # Let make expand exec_prefix.
17718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17720 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17721 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17722 # trailing colons and then remove the whole line if VPATH becomes empty
17723 # (actually we leave an empty line to preserve line numbers).
17724 if test "x$srcdir" = x.; then
17725 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17726 s/:*\$(srcdir):*/:/;
17727 s/:*\${srcdir}:*/:/;
17729 s/^\([^=]*=[ ]*\):*/\1/;
17735 DEFS=-DHAVE_CONFIG_H
17737 : ${CONFIG_STATUS=./config.status}
17738 ac_clean_files_save=$ac_clean_files
17739 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17740 { echo "$as_me:17740: creating $CONFIG_STATUS" >&5
17741 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17742 cat >$CONFIG_STATUS <<_ACEOF
17744 # Generated automatically by configure.
17745 # Run this file to recreate the current configuration.
17746 # Compiler output produced by configure, useful for debugging
17747 # configure, is in config.log if it exists.
17750 SHELL=\${CONFIG_SHELL-$SHELL}
17751 ac_cs_invocation="\$0 \$@"
17755 cat >>$CONFIG_STATUS <<\_ACEOF
17756 # Be Bourne compatible
17757 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17760 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17764 # Name of the executable.
17765 as_me=`echo "$0" |sed 's,.*[\\/],,'`
17767 if expr a : '\(a\)' >/dev/null 2>&1; then
17773 rm -f conf$$ conf$$.exe conf$$.file
17775 if ln -s conf$$.file conf$$ 2>/dev/null; then
17776 # We could just check for DJGPP; but this test a) works b) is more generic
17777 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17778 if test -f conf$$.exe; then
17779 # Don't use ln at all; we don't have any links
17784 elif ln conf$$.file conf$$ 2>/dev/null; then
17789 rm -f conf$$ conf$$.exe conf$$.file
17791 as_executable_p="test -f"
17793 # Support unset when possible.
17794 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17801 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
17802 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
17803 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
17804 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
17805 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
17806 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
17807 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
17808 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
17811 # We need space, tab and new line, in precisely that order.
17817 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
17823 # Files that config.status was made for.
17824 if test -n "$ac_config_files"; then
17825 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17828 if test -n "$ac_config_headers"; then
17829 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17832 if test -n "$ac_config_links"; then
17833 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17836 if test -n "$ac_config_commands"; then
17837 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17840 cat >>$CONFIG_STATUS <<\EOF
17843 \`$as_me' instantiates files from templates according to the
17844 current configuration.
17846 Usage: $0 [OPTIONS] [FILE]...
17848 -h, --help print this help, then exit
17849 -V, --version print version number, then exit
17850 -d, --debug don't remove temporary files
17851 --recheck update $as_me by reconfiguring in the same conditions
17852 --file=FILE[:TEMPLATE]
17853 instantiate the configuration file FILE
17854 --header=FILE[:TEMPLATE]
17855 instantiate the configuration header FILE
17857 Configuration files:
17860 Configuration headers:
17863 Configuration commands:
17866 Report bugs to <bug-autoconf@gnu.org>."
17869 cat >>$CONFIG_STATUS <<EOF
17872 configured by $0, generated by GNU Autoconf 2.52.20081225,
17873 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17875 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17876 Free Software Foundation, Inc.
17877 This config.status script is free software; the Free Software Foundation
17878 gives unlimited permission to copy, distribute and modify it."
17883 cat >>$CONFIG_STATUS <<\EOF
17884 # If no file are specified by the user, then we need to provide default
17885 # value. By we need to know if files were specified by the user.
17891 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17892 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17894 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17898 *) # This is not an option, so the user has probably given explicit
17900 ac_need_defaults=false;;
17904 # Handling of the options.
17906 cat >>$CONFIG_STATUS <<EOF
17907 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17908 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17909 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17911 cat >>$CONFIG_STATUS <<\EOF
17912 --version | --vers* | -V )
17913 echo "$ac_cs_version"; exit 0 ;;
17915 # Conflict between --help and --header
17916 { { echo "$as_me:17916: error: ambiguous option: $1
17917 Try \`$0 --help' for more information." >&5
17918 echo "$as_me: error: ambiguous option: $1
17919 Try \`$0 --help' for more information." >&2;}
17920 { (exit 1); exit 1; }; };;
17921 --help | --hel | -h )
17922 echo "$ac_cs_usage"; exit 0 ;;
17923 --debug | --d* | -d )
17925 --file | --fil | --fi | --f )
17927 CONFIG_FILES="$CONFIG_FILES $1"
17928 ac_need_defaults=false;;
17929 --header | --heade | --head | --hea )
17931 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17932 ac_need_defaults=false;;
17934 # This is an error.
17935 -*) { { echo "$as_me:17935: error: unrecognized option: $1
17936 Try \`$0 --help' for more information." >&5
17937 echo "$as_me: error: unrecognized option: $1
17938 Try \`$0 --help' for more information." >&2;}
17939 { (exit 1); exit 1; }; } ;;
17941 *) ac_config_targets="$ac_config_targets $1" ;;
17950 ## ----------------------- ##
17951 ## Running config.status. ##
17952 ## ----------------------- ##
17954 This file was extended by $as_me 2.52.20081225, executed with
17955 CONFIG_FILES = $CONFIG_FILES
17956 CONFIG_HEADERS = $CONFIG_HEADERS
17957 CONFIG_LINKS = $CONFIG_LINKS
17958 CONFIG_COMMANDS = $CONFIG_COMMANDS
17959 > $ac_cs_invocation
17960 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17965 cat >>$CONFIG_STATUS <<EOF
17967 # INIT-COMMANDS section.
17970 ### Special initialization commands, used to pass information from the
17971 ### configuration-run into config.status
17974 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
17975 DFT_LWR_MODEL="$DFT_LWR_MODEL"
17976 ECHO_LINK="$ECHO_LINK"
17977 LDCONFIG="$LDCONFIG"
17978 LIB_NAME="$LIB_NAME"
17979 LIB_SUBSETS="$LIB_SUBSETS"
17980 LIB_SUFFIX="$LIB_SUFFIX"
17981 LIB_TRACING="$LIB_TRACING"
17982 MAKE_TERMINFO="$MAKE_TERMINFO"
17983 NCURSES_MAJOR="$NCURSES_MAJOR"
17984 NCURSES_MINOR="$NCURSES_MINOR"
17985 NCURSES_OSPEED="$NCURSES_OSPEED"
17986 NCURSES_PATCH="$NCURSES_PATCH"
17987 SRC_SUBDIRS="$SRC_SUBDIRS"
17988 TERMINFO="$TERMINFO"
17989 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
17990 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
17991 TICS_NAME="$TICS_NAME"
17992 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
17993 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
17994 TINFO_NAME="$TINFO_NAME"
17995 TINFO_SUFFIX="$TINFO_SUFFIX"
17996 WITH_CURSES_H="$with_curses_h"
17997 WITH_ECHO="$with_echo"
17998 WITH_OVERWRITE="$with_overwrite"
17999 cf_LIST_MODELS="$cf_list_models"
18000 cf_cv_abi_version="$cf_cv_abi_version"
18001 cf_cv_do_relink="$cf_cv_do_relink"
18002 cf_cv_do_symlinks="$cf_cv_do_symlinks"
18003 cf_cv_enable_lp64="$cf_cv_enable_lp64"
18004 cf_cv_enable_opaque="$cf_cv_enable_opaque"
18005 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
18006 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
18007 cf_cv_rel_version="$cf_cv_rel_version"
18008 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
18009 cf_cv_shared_soname='$cf_cv_shared_soname'
18010 cf_cv_shlib_version="$cf_cv_shlib_version"
18011 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
18012 cf_cv_system_name="$cf_cv_system_name"
18013 cf_with_cxx_binding="$cf_with_cxx_binding"
18014 cf_with_manpages="$cf_with_manpages"
18020 cat >>$CONFIG_STATUS <<\EOF
18021 for ac_config_target in $ac_config_targets
18023 case "$ac_config_target" in
18024 # Handling of arguments.
18025 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
18026 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
18027 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
18028 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
18029 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
18030 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
18031 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18032 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18033 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
18034 *) { { echo "$as_me:18034: error: invalid argument: $ac_config_target" >&5
18035 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18036 { (exit 1); exit 1; }; };;
18040 # If the user did not use the arguments to specify the items to instantiate,
18041 # then the envvar interface is used. Set only those that are not.
18042 # We use the long form for the default assignment because of an extremely
18043 # bizarre bug on SunOS 4.1.3.
18044 if $ac_need_defaults; then
18045 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18046 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18047 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18050 # Create a temporary directory, and hook for its removal unless debugging.
18053 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18054 trap '{ (exit 1); exit 1; }' 1 2 13 15
18057 # Create a (secure) tmp directory for tmp files.
18060 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18061 test -n "$tmp" && test -d "$tmp"
18064 tmp=$TMPDIR/cs$$-$RANDOM
18065 (umask 077 && mkdir $tmp)
18068 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18069 { (exit 1); exit 1; }
18074 cat >>$CONFIG_STATUS <<EOF
18077 # CONFIG_FILES section.
18080 # No need to generate the scripts if there are no CONFIG_FILES.
18081 # This happens for instance when ./config.status config.h
18082 if test -n "\$CONFIG_FILES"; then
18083 # Protect against being on the right side of a sed subst in config.status.
18084 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18085 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18086 s,@SHELL@,$SHELL,;t t
18087 s,@exec_prefix@,$exec_prefix,;t t
18088 s,@prefix@,$prefix,;t t
18089 s,@program_transform_name@,$program_transform_name,;t t
18090 s,@bindir@,$bindir,;t t
18091 s,@sbindir@,$sbindir,;t t
18092 s,@libexecdir@,$libexecdir,;t t
18093 s,@datadir@,$datadir,;t t
18094 s,@sysconfdir@,$sysconfdir,;t t
18095 s,@sharedstatedir@,$sharedstatedir,;t t
18096 s,@localstatedir@,$localstatedir,;t t
18097 s,@libdir@,$libdir,;t t
18098 s,@includedir@,$includedir,;t t
18099 s,@oldincludedir@,$oldincludedir,;t t
18100 s,@infodir@,$infodir,;t t
18101 s,@mandir@,$mandir,;t t
18102 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18103 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18104 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18105 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18106 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18107 s,@build_alias@,$build_alias,;t t
18108 s,@host_alias@,$host_alias,;t t
18109 s,@target_alias@,$target_alias,;t t
18110 s,@ECHO_C@,$ECHO_C,;t t
18111 s,@ECHO_N@,$ECHO_N,;t t
18112 s,@ECHO_T@,$ECHO_T,;t t
18113 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18114 s,@DEFS@,$DEFS,;t t
18115 s,@LIBS@,$LIBS,;t t
18116 s,@top_builddir@,$top_builddir,;t t
18117 s,@EGREP@,$EGREP,;t t
18118 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
18119 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
18120 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
18121 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
18122 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
18123 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
18124 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
18125 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
18126 s,@build@,$build,;t t
18127 s,@build_cpu@,$build_cpu,;t t
18128 s,@build_vendor@,$build_vendor,;t t
18129 s,@build_os@,$build_os,;t t
18130 s,@host@,$host,;t t
18131 s,@host_cpu@,$host_cpu,;t t
18132 s,@host_vendor@,$host_vendor,;t t
18133 s,@host_os@,$host_os,;t t
18134 s,@target@,$target,;t t
18135 s,@target_cpu@,$target_cpu,;t t
18136 s,@target_vendor@,$target_vendor,;t t
18137 s,@target_os@,$target_os,;t t
18139 s,@CFLAGS@,$CFLAGS,;t t
18140 s,@LDFLAGS@,$LDFLAGS,;t t
18141 s,@CPPFLAGS@,$CPPFLAGS,;t t
18142 s,@ac_ct_CC@,$ac_ct_CC,;t t
18143 s,@EXEEXT@,$EXEEXT,;t t
18144 s,@OBJEXT@,$OBJEXT,;t t
18146 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
18147 s,@PROG_EXT@,$PROG_EXT,;t t
18148 s,@LDCONFIG@,$LDCONFIG,;t t
18150 s,@CXXFLAGS@,$CXXFLAGS,;t t
18151 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18153 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18154 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18155 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18156 s,@LINT@,$LINT,;t t
18157 s,@LINT_OPTS@,$LINT_OPTS,;t t
18158 s,@LN_S@,$LN_S,;t t
18159 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18160 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
18161 s,@SET_MAKE@,$SET_MAKE,;t t
18162 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
18163 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
18164 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
18165 s,@RANLIB@,$RANLIB,;t t
18166 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18168 s,@ac_ct_LD@,$ac_ct_LD,;t t
18170 s,@ac_ct_AR@,$ac_ct_AR,;t t
18171 s,@ARFLAGS@,$ARFLAGS,;t t
18172 s,@DESTDIR@,$DESTDIR,;t t
18173 s,@BUILD_CC@,$BUILD_CC,;t t
18174 s,@BUILD_CPP@,$BUILD_CPP,;t t
18175 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
18176 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
18177 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
18178 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
18179 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
18180 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
18181 s,@cf_list_models@,$cf_list_models,;t t
18182 s,@LIBTOOL@,$LIBTOOL,;t t
18183 s,@LT_UNDEF@,$LT_UNDEF,;t t
18184 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
18185 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
18186 s,@LIB_CREATE@,$LIB_CREATE,;t t
18187 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
18188 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
18189 s,@LIB_PREP@,$LIB_PREP,;t t
18190 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
18191 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
18192 s,@LIB_LINK@,$LIB_LINK,;t t
18193 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
18194 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
18195 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
18196 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
18197 s,@TICS_NAME@,$TICS_NAME,;t t
18198 s,@TINFO_NAME@,$TINFO_NAME,;t t
18199 s,@LIB_NAME@,$LIB_NAME,;t t
18200 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
18201 s,@CC_G_OPT@,$CC_G_OPT,;t t
18202 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
18203 s,@LD_MODEL@,$LD_MODEL,;t t
18204 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
18205 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
18206 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
18207 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
18208 s,@LINK_PROGS@,$LINK_PROGS,;t t
18209 s,@LINK_TESTS@,$LINK_TESTS,;t t
18210 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
18211 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18212 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
18213 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
18214 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
18215 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
18216 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
18217 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
18218 s,@TERMINFO@,$TERMINFO,;t t
18219 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
18220 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
18221 s,@TERMPATH@,$TERMPATH,;t t
18222 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
18223 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
18224 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
18225 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
18226 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
18227 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
18228 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
18229 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
18230 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
18231 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
18232 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
18233 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
18234 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
18235 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
18236 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
18237 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
18238 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
18239 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
18240 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
18241 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
18242 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
18243 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
18244 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
18245 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
18246 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
18247 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
18248 s,@PTHREAD@,$PTHREAD,;t t
18249 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
18250 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
18251 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
18252 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
18253 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
18254 s,@ECHO_LINK@,$ECHO_LINK,;t t
18255 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
18256 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
18257 s,@ADA_TRACE@,$ADA_TRACE,;t t
18258 s,@MATH_LIB@,$MATH_LIB,;t t
18259 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
18260 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
18261 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
18262 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
18263 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
18264 s,@TEST_LIBS@,$TEST_LIBS,;t t
18265 s,@CXXCPP@,$CXXCPP,;t t
18266 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
18267 s,@CXX_AR@,$CXX_AR,;t t
18268 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
18269 s,@CXXLIBS@,$CXXLIBS,;t t
18270 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
18271 s,@gnat_exists@,$gnat_exists,;t t
18272 s,@M4_exists@,$M4_exists,;t t
18273 s,@cf_ada_make@,$cf_ada_make,;t t
18274 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
18275 s,@cf_ada_package@,$cf_ada_package,;t t
18276 s,@ADAFLAGS@,$ADAFLAGS,;t t
18277 s,@cf_compile_generics@,$cf_compile_generics,;t t
18278 s,@cf_generic_objects@,$cf_generic_objects,;t t
18279 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
18280 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
18281 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
18282 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
18283 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
18284 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
18285 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
18286 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
18287 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
18288 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
18289 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
18290 s,@TICS_ARGS@,$TICS_ARGS,;t t
18291 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
18292 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
18293 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
18294 s,@TINFO_ARGS@,$TINFO_ARGS,;t t
18295 s,@TINFO_ARGS2@,$TINFO_ARGS2,;t t
18296 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
18297 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
18298 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
18299 s,@TICS_LIST@,$TICS_LIST,;t t
18300 s,@TINFO_LIST@,$TINFO_LIST,;t t
18301 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
18302 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
18303 s,@TEST_ARGS@,$TEST_ARGS,;t t
18304 s,@TEST_DEPS@,$TEST_DEPS,;t t
18305 s,@TEST_ARG2@,$TEST_ARG2,;t t
18306 s,@TEST_DEP2@,$TEST_DEP2,;t t
18307 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
18308 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
18309 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
18310 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
18311 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
18312 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
18313 s,@cross_compiling@,$cross_compiling,;t t
18318 cat >>$CONFIG_STATUS <<\EOF
18319 # Split the substitutions into bite-sized pieces for seds with
18320 # small command number limits, like on Digital OSF/1 and HP-UX.
18321 ac_max_sed_lines=48
18322 ac_sed_frag=1 # Number of current file.
18323 ac_beg=1 # First line for current file.
18324 ac_end=$ac_max_sed_lines # Line after last line for current file.
18327 while $ac_more_lines; do
18328 if test $ac_beg -gt 1; then
18329 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18331 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18333 if test ! -s $tmp/subs.frag; then
18334 ac_more_lines=false
18336 # The purpose of the label and of the branching condition is to
18337 # speed up the sed processing (if there are no `@' at all, there
18338 # is no need to browse any of the substitutions).
18339 # These are the two extra sed commands mentioned above.
18341 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18342 if test -z "$ac_sed_cmds"; then
18343 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18345 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18347 ac_sed_frag=`expr $ac_sed_frag + 1`
18349 ac_end=`expr $ac_end + $ac_max_sed_lines`
18352 if test -z "$ac_sed_cmds"; then
18355 fi # test -n "$CONFIG_FILES"
18358 cat >>$CONFIG_STATUS <<\EOF
18359 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18360 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18362 - | *:- | *:-:* ) # input from stdin
18364 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18365 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18366 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18367 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18368 * ) ac_file_in=$ac_file.in ;;
18371 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18372 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18373 X"$ac_file" : 'X\(//\)[^/]' \| \
18374 X"$ac_file" : 'X\(//\)$' \| \
18375 X"$ac_file" : 'X\(/\)' \| \
18376 . : '\(.\)' 2>/dev/null ||
18378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18380 /^X\(\/\/\)$/{ s//\1/; q; }
18381 /^X\(\/\).*/{ s//\1/; q; }
18383 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18384 { case "$ac_dir" in
18385 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18389 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18390 case $as_mkdir_dir in
18391 # Skip DOS drivespec
18392 ?:) as_incr_dir=$as_mkdir_dir ;;
18394 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18395 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18400 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
18401 # A "../" for each directory in $ac_dir_suffix.
18402 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
18404 ac_dir_suffix= ac_dots=
18409 if test -z "$ac_dots"; then
18412 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
18414 [\\/]* | ?:[\\/]* )
18415 ac_srcdir=$srcdir$ac_dir_suffix;
18416 ac_top_srcdir=$srcdir ;;
18417 *) # Relative path.
18418 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
18419 ac_top_srcdir=$ac_dots$srcdir ;;
18423 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18424 *) ac_INSTALL=$ac_dots$INSTALL ;;
18427 if test x"$ac_file" != x-; then
18428 { echo "$as_me:18428: creating $ac_file" >&5
18429 echo "$as_me: creating $ac_file" >&6;}
18432 # Let's still pretend it is `configure' which instantiates (i.e., don't
18433 # use $as_me), people would be surprised to read:
18434 # /* config.h. Generated automatically by config.status. */
18435 configure_input="Generated automatically from `echo $ac_file_in |
18436 sed 's,.*/,,'` by configure."
18438 # First look for the input files in the build tree, otherwise in the
18440 ac_file_inputs=`IFS=:
18441 for f in $ac_file_in; do
18443 -) echo $tmp/stdin ;;
18445 # Absolute (can't be DOS-style, as IFS=:)
18446 test -f "$f" || { { echo "$as_me:18446: error: cannot find input file: $f" >&5
18447 echo "$as_me: error: cannot find input file: $f" >&2;}
18448 { (exit 1); exit 1; }; }
18451 if test -f "$f"; then
18454 elif test -f "$srcdir/$f"; then
18459 { { echo "$as_me:18459: error: cannot find input file: $f" >&5
18460 echo "$as_me: error: cannot find input file: $f" >&2;}
18461 { (exit 1); exit 1; }; }
18464 done` || { (exit 1); exit 1; }
18466 cat >>$CONFIG_STATUS <<EOF
18470 cat >>$CONFIG_STATUS <<\EOF
18472 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18473 s,@configure_input@,$configure_input,;t t
18474 s,@srcdir@,$ac_srcdir,;t t
18475 s,@top_srcdir@,$ac_top_srcdir,;t t
18476 s,@INSTALL@,$ac_INSTALL,;t t
18477 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18479 if test x"$ac_file" != x-; then
18480 mv $tmp/out $ac_file
18488 cat >>$CONFIG_STATUS <<\EOF
18491 # CONFIG_HEADER section.
18494 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18495 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18497 # ac_d sets the value in "#define NAME VALUE" lines.
18498 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18499 ac_dB='[ ].*$,\1#\2'
18502 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18503 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18504 ac_iB='\([ ]\),\1#\2define\3'
18507 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18508 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18509 ac_uB='$,\1#\2define\3'
18513 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18514 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18516 - | *:- | *:-:* ) # input from stdin
18518 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18519 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18520 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18521 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18522 * ) ac_file_in=$ac_file.in ;;
18525 test x"$ac_file" != x- && { echo "$as_me:18525: creating $ac_file" >&5
18526 echo "$as_me: creating $ac_file" >&6;}
18528 # First look for the input files in the build tree, otherwise in the
18530 ac_file_inputs=`IFS=:
18531 for f in $ac_file_in; do
18533 -) echo $tmp/stdin ;;
18535 # Absolute (can't be DOS-style, as IFS=:)
18536 test -f "$f" || { { echo "$as_me:18536: error: cannot find input file: $f" >&5
18537 echo "$as_me: error: cannot find input file: $f" >&2;}
18538 { (exit 1); exit 1; }; }
18541 if test -f "$f"; then
18544 elif test -f "$srcdir/$f"; then
18549 { { echo "$as_me:18549: error: cannot find input file: $f" >&5
18550 echo "$as_me: error: cannot find input file: $f" >&2;}
18551 { (exit 1); exit 1; }; }
18554 done` || { (exit 1); exit 1; }
18555 # Remove the trailing spaces.
18556 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18560 # Transform confdefs.h into a list of #define's. We won't use it as a sed
18561 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
18562 # be either 'cat' or 'sort'.
18563 cat confdefs.h | uniq >conftest.vals
18565 # Break up conftest.vals because some shells have a limit on
18566 # the size of here documents, and old seds have small limits too.
18568 rm -f conftest.tail
18569 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
18570 while grep . conftest.vals >/dev/null
18572 # Write chunks of a limited-size here document to conftest.frag.
18573 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
18574 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
18575 echo 'CEOF' >> $CONFIG_STATUS
18576 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18577 rm -f conftest.vals
18578 mv conftest.tail conftest.vals
18580 rm -f conftest.vals
18582 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
18584 echo ' cat >> conftest.edit <<CEOF
18585 /@DEFS@/r conftest.frag
18588 sed -f conftest.edit $tmp/in > $tmp/out
18590 mv $tmp/out $tmp/in
18591 rm -f conftest.edit conftest.frag
18592 ' >> $CONFIG_STATUS
18594 cat >>$CONFIG_STATUS <<\EOF
18595 # Let's still pretend it is `configure' which instantiates (i.e., don't
18596 # use $as_me), people would be surprised to read:
18597 # /* config.h. Generated automatically by config.status. */
18598 if test x"$ac_file" = x-; then
18599 echo "/* Generated automatically by configure. */" >$tmp/config.h
18601 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
18603 cat $tmp/in >>$tmp/config.h
18605 if test x"$ac_file" != x-; then
18606 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18607 { echo "$as_me:18607: $ac_file is unchanged" >&5
18608 echo "$as_me: $ac_file is unchanged" >&6;}
18610 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18611 X"$ac_file" : 'X\(//\)[^/]' \| \
18612 X"$ac_file" : 'X\(//\)$' \| \
18613 X"$ac_file" : 'X\(/\)' \| \
18614 . : '\(.\)' 2>/dev/null ||
18616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18618 /^X\(\/\/\)$/{ s//\1/; q; }
18619 /^X\(\/\).*/{ s//\1/; q; }
18621 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18622 { case "$ac_dir" in
18623 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18627 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18628 case $as_mkdir_dir in
18629 # Skip DOS drivespec
18630 ?:) as_incr_dir=$as_mkdir_dir ;;
18632 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18633 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18640 mv $tmp/config.h $ac_file
18644 rm -f $tmp/config.h
18648 cat >>$CONFIG_STATUS <<\EOF
18651 # CONFIG_COMMANDS section.
18653 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18654 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18655 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18662 if test ! -d $srcdir/$cf_dir; then
18664 elif test -f $srcdir/$cf_dir/programs; then
18665 $AWK -f $srcdir/test/mk-test.awk ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
18669 case $cf_cv_system_name in #(vi
18673 *) LIB_PREFIX='lib'
18676 cf_prefix=$LIB_PREFIX
18678 if test $cf_cv_shlib_version = cygdll ; then
18679 TINFO_NAME=$TINFO_ARG_SUFFIX
18683 for cf_dir in $SRC_SUBDIRS
18685 if test ! -d $srcdir/$cf_dir ; then
18687 elif test -f $srcdir/$cf_dir/modules; then
18691 for cf_item in $cf_LIST_MODELS
18694 case $cf_item in #(vi
18697 cf_depsuf=$cf_suffix
18701 cf_depsuf=$cf_suffix
18705 cf_depsuf=$cf_suffix
18709 cf_depsuf=$cf_suffix
18712 case $cf_cv_system_name in
18715 cf_depsuf=$cf_suffix
18723 cf_depsuf=$cf_suffix
18729 cf_depsuf=$cf_suffix
18733 cf_depsuf=$cf_suffix
18738 cf_depsuf=$cf_suffix
18742 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
18743 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
18745 if test $cf_item = shared ; then
18746 if test "$cf_cv_do_symlinks" = yes ; then
18747 case "$cf_cv_shlib_version" in #(vi
18749 case "$cf_cv_system_name" in #(vi
18751 case .${LIB_SUFFIX} in
18753 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
18754 cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
18757 cf_suffix='.${REL_VERSION}'"$cf_suffix"
18761 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
18765 case "$cf_cv_system_name" in #(vi
18767 case .${LIB_SUFFIX} in
18769 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
18770 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
18773 cf_suffix='.${ABI_VERSION}'"$cf_suffix"
18777 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
18782 # cygwin needs import library, and has unique naming convention
18783 # use autodetected ${cf_prefix} for import lib and static lib, but
18784 # use 'cyg' prefix for shared lib.
18785 if test $cf_cv_shlib_version = cygdll ; then
18786 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
18787 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}"
18791 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
18794 if test $cf_dir = ncurses ; then
18795 cf_subsets="$LIB_SUBSETS"
18796 cf_r_parts="$cf_subsets"
18797 cf_liblist="$LIBS_TO_MAKE"
18799 while test -n "$cf_r_parts"
18801 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
18802 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
18803 if test "$cf_l_parts" != "$cf_r_parts" ; then
18805 case $cf_l_parts in #(vi
18807 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
18810 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
18816 if test -n "$cf_item"; then
18817 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
18824 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
18827 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
18828 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
18829 $cf_dir/Makefile >$cf_dir/Makefile.out
18830 mv $cf_dir/Makefile.out $cf_dir/Makefile
18832 $AWK -f $srcdir/mk-0th.awk \
18833 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
18834 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
18836 for cf_subset in $cf_subsets
18839 for cf_item in $cf_LIST_MODELS
18841 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
18843 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18845 case $cf_item in #(vi
18848 cf_depsuf=$cf_suffix
18852 cf_depsuf=$cf_suffix
18856 cf_depsuf=$cf_suffix
18860 cf_depsuf=$cf_suffix
18863 case $cf_cv_system_name in
18866 cf_depsuf=$cf_suffix
18874 cf_depsuf=$cf_suffix
18880 cf_depsuf=$cf_suffix
18884 cf_depsuf=$cf_suffix
18889 cf_depsuf=$cf_suffix
18893 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
18894 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
18897 libtool) cf_subdir='obj_lo' ;;
18898 normal) cf_subdir='objects' ;;
18899 debug) cf_subdir='obj_g' ;;
18900 profile) cf_subdir='obj_p' ;;
18902 case $cf_cv_system_name in #(vi
18904 cf_subdir='objects' ;;
18906 cf_subdir='obj_s' ;;
18910 # Test for case where we build libtinfo with a different name.
18912 if test $cf_dir = ncurses ; then
18915 cf_libname=${cf_libname}$LIB_SUFFIX
18918 cf_libname=$TINFO_LIB_SUFFIX
18921 cf_libname=$TICS_LIB_SUFFIX
18925 cf_libname=${cf_libname}$LIB_SUFFIX
18927 if test -n "${DFT_ARG_SUFFIX}" ; then
18928 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
18929 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
18932 # These dependencies really are for development, not
18933 # builds, but they are useful in porting, too.
18934 cf_depend="../include/ncurses_cfg.h"
18935 if test "$srcdir" = "."; then
18938 cf_reldir="\${srcdir}"
18941 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
18942 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
18943 elif test -f $srcdir/$cf_dir/curses.priv.h; then
18944 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
18948 old_cf_suffix="$cf_suffix"
18949 if test "$cf_cv_shlib_version_infix" = yes ; then
18950 if test -n "$LIB_SUFFIX" ; then
18951 case $LIB_SUFFIX in
18953 cf_libname=`echo $cf_libname | sed 's/w$//'`
18954 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
18961 $AWK -f $srcdir/mk-1st.awk \
18962 name=${cf_libname}${cf_dir_suffix} \
18963 traces=$LIB_TRACING \
18966 prefix=$cf_prefix \
18967 suffix=$cf_suffix \
18968 subset=$cf_subset \
18969 TermlibRoot=$TINFO_NAME \
18970 TermlibSuffix=$TINFO_SUFFIX \
18971 ShlibVer=$cf_cv_shlib_version \
18972 ShlibVerInfix=$cf_cv_shlib_version_infix \
18973 ReLink=${cf_cv_do_relink-no} \
18974 DoLinks=$cf_cv_do_symlinks \
18975 rmSoLocs=$cf_cv_rm_so_locs \
18976 ldconfig="$LDCONFIG" \
18977 overwrite=$WITH_OVERWRITE \
18978 depend="$cf_depend" \
18980 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
18982 cf_suffix="$old_cf_suffix"
18984 for cf_subdir2 in $cf_subdirs lib
18986 test $cf_subdir = $cf_subdir2 && break
18988 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
18989 $AWK -f $srcdir/mk-2nd.awk \
18991 traces=$LIB_TRACING \
18994 subset=$cf_subset \
18997 crenames=$cf_cv_prog_CC_c_o \
18998 cxxrenames=$cf_cv_prog_CXX_c_o \
18999 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
19000 cf_subdirs="$cf_subdirs $cf_subdir"
19005 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile
19008 for cf_dir in $SRC_SUBDIRS
19010 if test ! -d $srcdir/$cf_dir ; then
19014 if test -f $cf_dir/Makefile ; then
19017 echo 'libs \' >> Makefile
19018 echo 'install.libs \' >> Makefile
19019 echo 'uninstall.libs ::' >> Makefile
19020 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile
19025 if test -f $srcdir/$cf_dir/modules; then
19027 if test -f $srcdir/$cf_dir/headers; then
19028 cat >> Makefile <<CF_EOF
19029 install.includes \\
19030 uninstall.includes \\
19033 if test "$cf_dir" != "c++" ; then
19034 echo 'lint \' >> Makefile
19036 cat >> Makefile <<CF_EOF
19042 uninstall.$cf_dir ::
19043 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
19045 elif test -f $srcdir/$cf_dir/headers; then
19046 cat >> Makefile <<CF_EOF
19051 install.includes \\
19052 uninstall.includes ::
19053 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
19058 cat >> Makefile <<CF_EOF
19060 install.libs uninstall.libs \\
19061 install.data uninstall.data ::
19062 $MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@
19065 if test "x$cf_with_manpages" = xyes; then
19066 cat >> Makefile <<CF_EOF
19070 cd man && \${MAKE} \${CF_MFLAGS} \$@
19074 cat >> Makefile <<CF_EOF
19077 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
19078 rm -f headers.sh headers.sed mk_shared_lib.sh
19079 rm -f edit_man.* man_alias.*
19080 rm -rf \${DIRS_TO_MAKE}
19083 # Special case: tack's manpage lives in its own directory.
19084 if test "x$cf_with_manpages" = xyes; then
19085 if test -d tack ; then
19086 if test -f $srcdir/$tack.h; then
19087 cat >> Makefile <<CF_EOF
19091 cd tack && \${MAKE} \${CF_MFLAGS} \$@
19097 rm -f headers.sed headers.sh
19099 echo creating headers.sh
19100 cat >headers.sh <<CF_EOF
19102 # This shell script is generated by the 'configure' script. It is invoked in a
19103 # subdirectory of the build tree. It generates a sed-script in the parent
19104 # directory that is used to adjust includes for header files that reside in a
19105 # subdirectory of /usr/include, etc.
19107 while test \$# != 3
19109 PRG="\$PRG \$1"; shift
19114 TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
19115 TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
19116 echo installing \$SRC in \$DST
19119 if test $WITH_CURSES_H = yes; then
19120 cat >>headers.sh <<CF_EOF
19123 END=\`basename \$DST\`
19124 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
19126 NAME=\`basename \$i\`
19127 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
19131 echo "" >> \$TMPSED
19137 cat >>headers.sh <<CF_EOF
19140 END=\`basename \$DST\`
19141 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
19143 NAME=\`basename \$i\`
19144 if test "\$NAME" = "curses.h"
19146 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
19149 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
19153 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
19158 cat >>headers.sh <<CF_EOF
19160 sed -f \$TMPSED \$SRC > \$TMPSRC
19161 NAME=\`basename \$SRC\`
19163 if test $WITH_CURSES_H != yes; then
19164 cat >>headers.sh <<CF_EOF
19165 test "\$NAME" = "curses.h" && NAME=ncurses.h
19168 cat >>headers.sh <<CF_EOF
19169 # Just in case someone gzip'd manpages, remove the conflicting copy.
19170 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
19172 eval \$PRG \$TMPSRC \$DST/\$NAME
19173 rm -f \$TMPSRC \$TMPSED
19176 chmod 0755 headers.sh
19178 for cf_dir in $SRC_SUBDIRS
19180 if test ! -d $srcdir/$cf_dir ; then
19184 if test -f $srcdir/$cf_dir/headers; then
19185 $AWK -f $srcdir/mk-hdr.awk \
19186 subset="$LIB_SUBSETS" \
19187 compat="$WITH_CURSES_H" \
19188 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
19191 if test -f $srcdir/$cf_dir/modules; then
19192 if test "$cf_dir" != "c++" ; then
19193 cat >>$cf_dir/Makefile <<"CF_EOF"
19194 depend : ${AUTO_SRC}
19195 makedepend -- ${CPPFLAGS} -- ${C_SRC}
19197 # DO NOT DELETE THIS LINE -- make depend depends on it.
19208 cat >>$CONFIG_STATUS <<\EOF
19210 { (exit 0); exit 0; }
19212 chmod +x $CONFIG_STATUS
19213 ac_clean_files=$ac_clean_files_save
19215 # configure is writing to config.log, and then calls config.status.
19216 # config.status does its own redirection, appending to config.log.
19217 # Unfortunately, on DOS this fails, as config.log is still kept open
19218 # by configure, so config.status won't be able to write to it; its
19219 # output is simply discarded. So we exec the FD to /dev/null,
19220 # effectively closing config.log, so it can be properly (re)opened and
19221 # appended to by config.status. When coming back to configure, we
19222 # need to make the FD available again.
19223 if test "$no_create" != yes; then
19226 $SHELL $CONFIG_STATUS || ac_cs_success=false
19228 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19229 # would make configure fail if this is the last instruction.
19230 $ac_cs_success || { (exit 1); exit 1; }
19232 ${MAKE-make} preinstall